/* =============================================================
   Text Extractor & Rescue — tool-specific styles
   Built on the shared design system (styles.css).
   ============================================================= */

.txr-source { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.txr-source .grow { flex: 1 1 220px; min-width: 0; }
.txr-source .ic { width: 18px; height: 18px; }

.txr.droplit { outline: 2px dashed var(--brand); outline-offset: -8px; border-radius: 12px; }
.txr-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #1f2430; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 60; max-width: 90vw; }
.txr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.txr-toast.err { background: #7a1f1f; }

.txr-block { display: flex; gap: 12px; align-items: center; padding: 16px 18px; }
.txr-block-ico { font-size: 22px; }

.txr-banner { padding: 12px 16px; margin-bottom: 14px; font-size: 13px; line-height: 1.5; }
.txr-banner.warn { border-left: 4px solid #d08a2c; color: var(--text); }
[data-theme="dark"] .txr-banner.warn { border-left-color: #e0a267; }

/* ---- options ---- */
.txr-opts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px; padding: 14px 18px; margin-bottom: 14px; }
.txr-optgroup { display: flex; flex-direction: column; gap: 6px; }
.txr-optlabel { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); font-weight: 700; }
.txr-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.txr-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); cursor: pointer; }
.txr-check input { width: 15px; height: 15px; cursor: pointer; }

/* ---- output ---- */
.txr-outwrap { padding: 10px 12px 12px; margin-bottom: 14px; }
.txr-outbar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.txr-outbar .grow { flex: 1 1 auto; }
.txr-stat { font-size: 12.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.btn.btn-sm { padding: 5px 12px; font-size: 13px; }
.txr-out { width: 100%; min-height: 340px; max-height: 62vh; resize: vertical; box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace; font-size: 12.5px; line-height: 1.5;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); color: var(--text);
  white-space: pre; overflow: auto; }

.txr-legal { margin-top: 22px; font-size: 12px; color: var(--text-soft); line-height: 1.6; }
.txr-legal p { margin: 2px 0; }
