/* MergeMint v3 — liquid glass + mint identity.
   Frosted-glass app shell, aurora accents, mint brand color.
   Light: warm paper with mint aurora. Dark: true black with mint glow.
   All functional class names preserved so tool JS keeps working. */

:root {
  --paper: #F6F5F0;
  --paper-2: #FAF9F6;
  --card: #FFFFFF;
  --ink: #1C1916;
  --muted: #6F6A63;
  --faint: #A8A29B;
  --line: rgba(28, 25, 22, 0.14);
  --line-soft: rgba(28, 25, 22, 0.08);
  --tonal: rgba(28, 25, 22, 0.06);
  --tonal-strong: rgba(28, 25, 22, 0.1);

  --brand: #2fd08c;
  --brand-deep: #1fa973;
  --brand-ink: #0d7a4c;
  --brand-soft: rgba(47, 208, 140, 0.14);
  --brand-glow: rgba(47, 208, 140, 0.35);

  --btn-text: #FFFFFF;
  --btn-disabled: #E5E4DF;
  --danger: #C81E1E;
  --success: #1C7A4D;
  --info: #1D4ED8;
  --info-bg: #EEF3FE;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 12px 40px rgba(28, 25, 22, 0.1);
  --radius: 16px;

  /* legacy aliases (inline styles on privacy.html) */
  --slate: #1C1916;
  --slate-light: #57534E;
  --slate-faint: #A8A29B;
  --border: rgba(28, 25, 22, 0.14);
  --bg: #F6F5F0;
  --mint: #2fd08c;
  --mint-dark: #0d7a4c;
  --mint-soft: rgba(47, 208, 140, 0.14);
  --mint-pale: #FAF9F6;
}

[data-theme="dark"] {
  --paper: #000000;
  --paper-2: #0A0A0A;
  --card: #111110;
  --ink: #FAFAF8;
  --muted: rgba(250, 250, 248, 0.55);
  --faint: rgba(250, 250, 248, 0.34);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --tonal: rgba(255, 255, 255, 0.07);
  --tonal-strong: rgba(255, 255, 255, 0.13);

  --brand: #34d399;
  --brand-deep: #10b981;
  --brand-ink: #6ee7b7;
  --brand-soft: rgba(52, 211, 153, 0.16);
  --brand-glow: rgba(52, 211, 153, 0.4);

  --btn-text: #04120b;
  --btn-disabled: #262421;
  --danger: #E5484D;
  --success: #3FB97F;
  --info: #7AA5FF;
  --info-bg: rgba(122, 165, 255, 0.1);

  --glass: rgba(14, 14, 13, 0.6);
  --glass-strong: rgba(20, 20, 19, 0.75);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);

  --slate: #FAFAF8;
  --slate-light: rgba(250, 250, 248, 0.62);
  --slate-faint: rgba(250, 250, 248, 0.38);
  --border: rgba(255, 255, 255, 0.16);
  --bg: #000000;
  --mint: #34d399;
  --mint-dark: #6ee7b7;
  --mint-soft: rgba(52, 211, 153, 0.16);
  --mint-pale: #0A0A0A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  transition: background .25s, color .25s;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Aurora backdrop */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.aurora .a1 { width: 520px; height: 520px; left: -140px; top: -160px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%); }
.aurora .a2 { width: 460px; height: 460px; right: -120px; top: 22%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%); }
.aurora .a3 { width: 420px; height: 420px; left: 30%; bottom: -180px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%); opacity: 0.35; }
[data-theme="dark"] .aurora span { opacity: 0.28; }
[data-theme="dark"] .aurora .a3 { opacity: 0.2; }

.grad-text {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glass helper */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .glass { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* ================= App shell ================= */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 264px; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--glass-border);
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 60;
}

.sb-logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; text-decoration: none; color: var(--ink); }
.sb-logo:hover { text-decoration: none; }
.sb-logo img { height: 30px; width: 30px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; display: block;
  box-shadow: 0 2px 10px rgba(28, 25, 22, 0.15); }
.sb-logo span { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }

.sb-search { position: relative; margin-bottom: 10px; }
.sb-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.sb-search input {
  width: 100%; padding: 9px 52px 9px 36px; font-size: 13.5px;
  background: var(--tonal); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 10px; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.sb-search input::placeholder { color: var(--faint); }
.sb-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--card); }
.kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 6px;
  background: var(--tonal); white-space: nowrap; pointer-events: none; font-family: inherit;
}

.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .12s, color .12s;
}
.sb-link:hover { background: var(--tonal); color: var(--ink); text-decoration: none; }
.sb-link.active {
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(47, 208, 140, 0.25);
}
.sb-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-label { font-size: 12.5px; font-weight: 600; color: var(--faint); padding: 14px 12px 4px; letter-spacing: 0.02em; }
.sb-group { border: 0; padding: 0; margin: 0; }
.sb-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500;
}
.sb-group summary::-webkit-details-marker { display: none; }
.sb-group summary:hover { background: var(--tonal); color: var(--ink); }
.sb-group summary .count {
  margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600;
  background: var(--tonal); border-radius: 99px; padding: 1px 8px;
}
.sb-group summary .chev { width: 14px; height: 14px; color: var(--faint); transition: transform .15s; }
.sb-group[open] summary .chev { transform: rotate(90deg); }
.sb-group .sb-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 4px 8px; }
.sb-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.sb-foot .fine { font-size: 12px; color: var(--faint); padding: 8px 12px 0; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .12s;
}
.icon-action:hover { background: var(--tonal); color: var(--ink); }
.icon-action svg { width: 18px; height: 18px; }
#menuBtn { display: none; }
.sb-scrim { display: none; }

.content { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 32px 72px; position: relative; }

/* ================= Dashboard home ================= */
.dash-hero { padding: 20px 0 6px; max-width: 860px; position: relative; }
.dash-hero h1 {
  font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  margin: 0 0 16px; color: var(--ink); max-width: 660px;
}
.dash-sub { font-size: 16px; color: var(--muted); margin: 0 0 26px; max-width: 600px; }
.dash-sub strong { color: var(--ink); font-weight: 600; }
.dash-search { position: relative; max-width: 640px; }
.dash-search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; z-index: 2; }
.dash-search input {
  width: 100%; padding: 15px 70px 15px 46px; font-size: 15px;
  background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: 14px; outline: none; font-family: inherit;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color .15s, box-shadow .15s;
}
.dash-search input::placeholder { color: var(--faint); }
.dash-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--glass-shadow); }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.trust-row svg { width: 15px; height: 15px; color: var(--brand-deep); }

.feat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 40px 0 14px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat-card {
  position: relative; overflow: hidden;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 20px; min-height: 148px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  text-decoration: none; box-shadow: var(--glass-shadow);
  transition: transform .15s, box-shadow .15s;
}
.feat-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.5) 0%, transparent 40%);
}
[data-theme="dark"] .feat-card::before { background: linear-gradient(115deg, rgba(255,255,255,0.09) 0%, transparent 40%); }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(28, 25, 22, 0.14), inset 0 1px 0 rgba(255,255,255,0.5); text-decoration: none; }
.feat-card .feat-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.feat-card.featured {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: rgba(255, 255, 255, 0.35); color: #fff;
  box-shadow: 0 14px 44px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.feat-card.featured::before { background: linear-gradient(115deg, rgba(255,255,255,0.4) 0%, transparent 45%); }
.feat-card.featured .icon-tile { background: rgba(255, 255, 255, 0.22); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.icon-tile {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; position: relative;
  background: var(--tonal); border: 1px solid var(--line-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.icon-tile svg { width: 18px; height: 18px; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 44px 0 6px; }
.pill {
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.pill:hover { border-color: var(--brand); }
.pill.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 20px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .pill.active { color: #04120b; }

.cat { margin-top: 34px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; margin-bottom: 6px; }
.cat-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.cat-count { font-size: 12px; color: var(--faint); font-weight: 600; }
.tool-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tool-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.tool-row:hover { background: var(--brand-soft); text-decoration: none; }
.tool-row .t-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 1px 0 3px; display: block; }
.tool-row .t-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 40px 0; }
.no-results.visible { display: block; }

.section { padding: 56px 0; }
.section h2 { font-size: 1.9rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.section .lede { color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* ================= Privacy band ================= */
.privacy-band {
  margin-top: 56px; position: relative; overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--glass-shadow);
}
.privacy-band h2 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.privacy-band h2 svg { color: var(--brand-deep); }
.privacy-band > p { color: var(--muted); max-width: 680px; margin: 0; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.privacy-point { background: var(--tonal); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; }
.privacy-point strong { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14.5px; }
.privacy-point strong svg { width: 16px; height: 16px; color: var(--brand-deep); }
.privacy-point span { color: var(--muted); font-size: 13.5px; }

/* ================= FAQ ================= */
.faq-section { margin-top: 56px; max-width: 760px; }
.faq-section h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.faq-section .lede { color: var(--muted); margin: 0 0 18px; }
.faq details { border-top: 1px solid var(--line-soft); padding: 16px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; transition: transform .15s; }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq p { margin: 10px 0 4px; color: var(--muted); font-size: 14.5px; max-width: 640px; }

/* ================= Buttons ================= */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: var(--btn-text); font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 12px;
  box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform .12s, box-shadow .12s, filter .12s;
  text-decoration: none; text-align: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 30px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.4); text-decoration: none; color: var(--btn-text); }
.btn:disabled { background: var(--btn-disabled); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn-outline {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); filter: none; background: var(--glass); }
.btn-danger { background: linear-gradient(135deg, #e05252, var(--danger)); color: #fff; box-shadow: 0 8px 24px rgba(200, 30, 30, 0.3), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; }
.action-row { margin: 22px 0; }
.action-row .btn { display: block; width: 100%; }

/* ================= Tool page layout ================= */
.tool-hero { text-align: center; padding: 36px 0 6px; position: relative; }
.tool-hero h1 { margin: 0 0 10px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.tool-hero h1 .icon-tile { width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); border-color: rgba(47, 208, 140, 0.3); color: var(--brand-deep); }
.tool-hero h1 .icon-tile svg { width: 22px; height: 22px; }
.tool-hero p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tool-workspace { max-width: 1024px; margin: 0 auto; padding: 26px 0 64px; }

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 16px 48px var(--brand-glow), var(--glass-shadow);
}
.dropzone .dz-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.dropzone .dz-icon .icon-tile { width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); border-color: rgba(47, 208, 140, 0.3); color: var(--brand-deep); }
.dropzone .dz-icon .icon-tile svg { width: 20px; height: 20px; }
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.dropzone strong { color: var(--ink); font-weight: 600; font-size: 15.5px; display: block; margin-bottom: 2px; }

.file-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--glass-border); border-radius: 12px; padding: 10px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.file-item .fname { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fsize { color: var(--faint); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
.file-item .thumb { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-soft); flex-shrink: 0; }
.icon-btn {
  border: 1px solid var(--line-soft); background: var(--card); border-radius: 8px; cursor: pointer;
  width: 32px; height: 32px; font-size: 1rem; line-height: 1; color: var(--muted); flex-shrink: 0; font-family: inherit;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.icon-btn.remove:hover { border-color: var(--danger); color: var(--danger); }

.options { margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.options label { font-weight: 600; font-size: 0.95rem; }
.options input[type="text"], .options input[type="password"], .options input[type="number"],
.options input[type="email"], .options select, .options textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; width: 100%;
  background: var(--glass-strong); color: var(--ink); font-family: inherit; outline: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .15s, box-shadow .15s;
}
.options input:focus, .options select:focus, .options textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Contact form */
.contact-form { margin-top: 8px; }
.contact-form .hp { display: none; }
.form-success { border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.form-success strong { color: var(--brand-ink); }
.form-success p { margin: 6px 0 0; }
.form-error { border: 1.5px solid var(--danger); background: rgba(200, 30, 30, 0.07); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.form-error p { margin: 6px 0 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px; cursor: pointer; font-size: 0.93rem; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .12s; }
.radio-card input { margin-right: 8px; accent-color: var(--brand-deep); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint { font-size: 0.87rem; color: var(--faint); margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hint svg { width: 13px; height: 13px; flex-shrink: 0; }

.progress-wrap { display: none; margin: 18px 0; }
.progress-wrap.visible { display: block; }
.progress-bar { height: 8px; background: var(--tonal-strong); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: 99px; transition: width .2s; }
.progress-label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; text-align: center; }

.alert { border-radius: 12px; padding: 14px 18px; margin: 18px 0; display: none; font-size: 0.95rem; border: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.alert.visible { display: block; }
.alert.error { background: rgba(200, 30, 30, 0.08); border-color: rgba(200, 30, 30, 0.3); color: var(--danger); }
.alert.success { background: var(--brand-soft); border-color: rgba(47, 208, 140, 0.35); color: var(--brand-ink); }
.alert.info { background: var(--info-bg); border-color: rgba(29, 78, 216, 0.25); color: var(--info); }

.result-box { text-align: center; margin: 24px 0;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 36px 24px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
.result-box .big { display: flex; justify-content: center; margin-bottom: 12px; }
.result-box .big .icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); border-color: rgba(47, 208, 140, 0.35); color: var(--brand-deep); }
.result-box .big .icon-tile svg { width: 26px; height: 26px; }
.result-box h3 { margin: 0 0 6px; letter-spacing: -0.01em; }
.stat-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0 20px; }
.stat { background: var(--tonal); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 20px; font-size: 0.9rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.2rem; color: var(--ink); }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 28px; margin-top: 20px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.footer-grid a:hover { color: var(--brand-ink); }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 320px; margin: 10px 0 0; }
.footer-brand .sb-logo { padding: 0; }
.copyright { text-align: center; color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line-soft); padding-top: 18px; }

/* ================= Policy page ================= */
.policy { max-width: 760px; margin: 0 auto; padding: 36px 0 60px; position: relative; }
.policy h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
.policy h2 { font-size: 1.25rem; margin: 32px 0 8px; letter-spacing: -0.01em; }
.policy p, .policy li { color: var(--muted); }
.policy ul { padding-left: 20px; }
.policy a { color: var(--brand-ink); font-weight: 600; }

/* ================= Misc components (kept) ================= */
.soon-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.4px;
  background: rgba(180, 83, 9, 0.1); color: #B45309; border: 1px solid rgba(180, 83, 9, 0.3);
  padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 6px; text-transform: uppercase;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .full { grid-column: 1 / -1; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; }
.pos-cell {
  width: 52px; height: 40px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--card); cursor: pointer; font-size: 1.1rem; color: var(--faint); font-family: inherit;
}
.pos-cell:hover { border-color: var(--brand); }
.pos-cell.selected { border-color: var(--brand-deep); background: var(--brand-soft); color: var(--brand-ink); }
.sig-pad {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--glass); touch-action: none; cursor: crosshair; width: 100%; height: 220px; display: block;
}
.sig-actions { display: flex; gap: 10px; margin-top: 10px; }
.soon-panel { text-align: center; padding: 50px 20px; }
.soon-panel .big { font-size: 3.4rem; }
.soon-panel h2 { margin: 12px 0 8px; }
.soon-panel p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.ocr-output {
  background: #0F0E0C; color: #E8E4DC; border-radius: 10px; padding: 16px 18px;
  max-height: 320px; overflow: auto; white-space: pre-wrap; font-size: 0.9rem; margin-top: 16px;
  display: none; border: 1px solid var(--line-soft);
}
.ocr-output.visible { display: block; }
.preview-box {
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: var(--glass); padding: 18px; margin-top: 18px; text-align: center;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.preview-box canvas { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); background: #fff; }
.preview-dims { font-weight: 700; margin: 10px 0 2px; font-size: 1.05rem; }
.preview-dims .arrow { color: var(--muted); margin: 0 8px; }
.preview-note { font-size: 0.85rem; color: var(--faint); margin: 0; }
.dl-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.dl-list .file-item .btn { padding: 8px 18px; font-size: 0.88rem; margin-left: auto; flex-shrink: 0; width: auto; display: inline-block; }
.dim-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.dim-row > div { flex: 1; min-width: 120px; }
.lock-row { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; font-size: 0.92rem; font-weight: 600; }
.lock-row input { accent-color: var(--brand-deep); width: 18px; height: 18px; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: var(--glass-shadow); height: 100dvh;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  #menuBtn { display: inline-flex; }
  .content { padding: 20px 18px 56px; }
  .dash-hero h1 { font-size: 34px; }
  .tool-hero h1 { font-size: 30px; }
  .privacy-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .tool-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .file-item .fsize { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-hero h1 { font-size: 30px; }
  .topbar { padding: 0 12px; }
  .crumbs .here { max-width: 38vw; }
}

/* ============ Organize Pages: thumbnail grid ============ */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 6px; }
.thumb-card {
  position: relative; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden; cursor: grab;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.thumb-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.thumb-card.dragging { opacity: .35; cursor: grabbing; }
.thumb-card > img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #fff; display: block; pointer-events: none; }
.thumb-card.deleted > img { filter: grayscale(1); opacity: .45; }
.thumb-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--danger); color: #fff; border-radius: 99px; padding: 3px 10px;
}
.thumb-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
.thumb-num { font-weight: 700; font-size: 13px; margin-right: auto; }
.thumb-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--card); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit;
}
.thumb-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.thumb-btn.restore { color: var(--brand-deep); border-color: var(--brand); }
.thumb-btn svg { width: 15px; height: 15px; }

/* ============ Remove Metadata table ============ */
.meta-table { width: 100%; border-collapse: collapse; margin: 4px 0; font-size: 14px; }
.meta-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.meta-table tr:last-child td { border-bottom: 0; }
.meta-table td:first-child { font-weight: 600; width: 140px; color: var(--muted); }
.meta-found { font-weight: 600; }
.meta-empty { color: var(--faint); }

/* batch 2a additions */
.sig-preview{font-size:44px;line-height:1.25;padding:16px 12px;border:1.5px dashed var(--line-soft);border-radius:12px;text-align:center;color:var(--text);background:var(--input-bg);margin-top:10px;min-height:88px;overflow:hidden}
.options input[type="file"]{display:block;width:100%;padding:10px;border:1.5px solid var(--line);border-radius:10px;background:var(--input-bg);color:var(--text);font-size:14px;cursor:pointer}
.options .field-row .lock-row{padding-bottom:0}
.file-item{cursor:grab}
.file-item.dragging{opacity:.35}
.drag-handle{display:inline-flex;align-items:center;color:var(--muted);font-size:14px;letter-spacing:1px;padding:0 6px 0 2px;cursor:grab;user-select:none;flex-shrink:0}

/* batch 2b additions */
.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.btn-sm{padding:8px 14px;font-size:13px}
.mix-tag{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--brand-grad);color:#fff;font-weight:800;font-size:13px;flex-shrink:0;margin-right:4px}
.page-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:4px 0 12px}
.page-nav span{font-weight:700;font-size:14px}
.redact-stage{display:flex;justify-content:center;background:var(--input-bg);border:1.5px solid var(--line-soft);border-radius:12px;padding:12px;overflow:auto}
.redact-stage canvas{max-width:100%;height:auto;border-radius:6px;cursor:crosshair;touch-action:none;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.rect-list{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px}
.rect-list li{display:flex;align-items:center;justify-content:space-between;background:var(--input-bg);border:1px solid var(--line-soft);border-radius:8px;padding:8px 12px;font-size:13px}

/* batch 3 additions: photo tools */
.photo-frame{border:1.5px solid var(--line-soft);border-radius:12px;overflow:hidden;background:var(--input-bg);display:flex;justify-content:center;align-items:center;max-height:420px}
.photo-frame img{max-width:100%;max-height:400px;display:block}
.checker{background-image:conic-gradient(#d7dbe0 0 25%, #ffffff 0 50%, #d7dbe0 0 75%, #ffffff 0);background-size:22px 22px}
[data-theme="dark"] .checker{background-image:conic-gradient(#2a2f36 0 25%, #141414 0 50%, #2a2f36 0 75%, #141414 0)}
.crop-stage{position:relative;overflow:hidden;border:1.5px solid var(--line-soft);border-radius:12px;background:var(--input-bg);height:340px;cursor:grab;touch-action:none;user-select:none}
.crop-stage:active{cursor:grabbing}
.crop-stage img{position:absolute;top:0;left:0;max-width:none;pointer-events:none}
.crop-box{position:absolute;border:2.5px solid #2fd08c;border-radius:4px;box-shadow:0 0 0 9999px rgba(0,0,0,.45);pointer-events:auto;cursor:move}
.photo-results{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}
@media (max-width:640px){.photo-results{grid-template-columns:1fr}}

/* watermark visual position editor */
.wm-stage{position:relative;border:1.5px solid var(--line-soft);border-radius:12px;overflow:hidden;background:var(--input-bg);max-width:560px;touch-action:none;user-select:none}
.wm-stage canvas{display:block;width:100%;height:auto}
.wm-overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);cursor:grab;pointer-events:auto;white-space:nowrap;font-weight:700;line-height:1.2;padding:4px 8px;border:1.5px dashed transparent;border-radius:6px}
.wm-overlay:hover{border-color:#2fd08c}
.wm-overlay:active{cursor:grabbing}
.wm-overlay img{display:block;max-width:none;pointer-events:none}

/* batch 4 additions: image crop / filters / text tools */
.crop-box.selectable{box-shadow:0 0 0 9999px rgba(0,0,0,.45);cursor:move}
.ch{position:absolute;width:14px;height:14px;background:#2fd08c;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.ch[data-handle="nw"]{left:-7px;top:-7px;cursor:nwse-resize}
.ch[data-handle="ne"]{right:-7px;top:-7px;cursor:nesw-resize}
.ch[data-handle="sw"]{left:-7px;bottom:-7px;cursor:nesw-resize}
.ch[data-handle="se"]{right:-7px;bottom:-7px;cursor:nwse-resize}
.preset-row{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px}
.preset-btn{border:1.5px solid var(--line-soft);background:var(--input-bg);color:var(--text);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer}
.preset-btn:hover{border-color:#2fd08c}
.preset-btn.active{background:linear-gradient(135deg,#2fd08c,#1fa973);border-color:transparent;color:#fff}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.text-stage img{position:static;width:100%;height:auto;max-width:none}
.text-overlay{position:absolute;left:50%;top:85%;transform:translate(-50%,-50%);cursor:grab;font-weight:700;white-space:nowrap;padding:4px 10px;border:1.5px dashed transparent;border-radius:6px;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.text-overlay:hover{border-color:#2fd08c}
.text-overlay:active{cursor:grabbing}
.text-stage{height:auto}

/* SEO FAQ sections (tool pages) */
.faq{margin:30px auto 10px;max-width:760px}
.faq h2{font-size:20px;margin:0 0 12px;letter-spacing:-.01em}
.faq-item{border:1px solid var(--line-soft);border-radius:12px;margin-bottom:8px;background:var(--card);overflow:hidden}
.faq-item summary{cursor:pointer;padding:14px 16px;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--brand-deep);font-weight:700;font-size:18px;flex:none}
.faq-item[open] summary::after{content:"\2013"}
.faq-item summary:hover{color:var(--brand-ink)}
.faq-item p{padding:0 16px 14px;margin:0;color:var(--muted);line-height:1.65;font-size:14.5px}

/* ============ Homepage quick-drop (Liquid Glass) ============ */
.qa-wrap { margin-top: 26px; max-width: 640px; }
.qa-dropzone {
  position: relative; overflow: hidden; text-align: center; cursor: pointer;
  border-radius: 20px; padding: 30px 24px 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.45));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(255,255,255,0.25);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.qa-dropzone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.55) 0%, transparent 45%);
}
[data-theme="dark"] .qa-dropzone { background: linear-gradient(135deg, rgba(30,30,28,0.72), rgba(20,20,19,0.5)); }
[data-theme="dark"] .qa-dropzone::before { background: linear-gradient(115deg, rgba(255,255,255,0.1) 0%, transparent 45%); }
.qa-dropzone:hover { transform: translateY(-1px); }
.qa-dropzone:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--glass-shadow); }
.qa-dropzone.qa-dragover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), 0 18px 48px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
.qa-drop-icon {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 10px;
  background: var(--brand-soft); border: 1px solid rgba(47,208,140,0.3); color: var(--brand-deep);
}
.qa-drop-icon svg { width: 22px; height: 22px; }
.qa-drop-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; position: relative; }
.qa-drop-sub { font-size: 13.5px; color: var(--muted); margin: 0; position: relative; }
.qa-card {
  margin-top: 14px; border-radius: 20px; padding: 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
}
.qa-card[hidden] { display: none; }
.qa-file { display: flex; gap: 14px; align-items: center; }
.qa-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-soft); flex-shrink: 0; }
.qa-thumb-icon {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: var(--tonal); border: 1px solid var(--line-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em;
}
.qa-file-text { min-width: 0; flex: 1; }
.qa-name { font-size: 15px; font-weight: 600; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.qa-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 99px; padding: 2px 10px;
}
.qa-clear {
  flex-shrink: 0; border: 1px solid var(--line-soft); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.qa-clear:hover { border-color: var(--brand); color: var(--brand-ink); }
.qa-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.qa-note:empty { display: none; }
.qa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qa-actions:empty { display: none; }
.qa-btn {
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
}
.qa-btn:hover { border-color: var(--brand); text-decoration: none; }
.qa-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-theme="dark"] .qa-btn-primary { color: #04120b; }
.qa-workspace { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.qa-workspace:empty { display: none; }
.qa-workspace .qa-field { font-size: 13px; font-weight: 600; color: var(--muted); }
.qa-workspace input[type="number"], .qa-workspace select {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px;
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 14px; width: 110px;
}
.qa-workspace select { width: auto; }
.qa-workspace input[type="range"] { accent-color: var(--brand-deep); }
.qa-workspace .qa-check { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.qa-range-val { font-size: 13px; font-weight: 700; color: var(--ink); }
.qa-hint { font-size: 12.5px; color: var(--muted); margin: 0; width: 100%; }
.qa-status { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.qa-status:empty { display: none; }
@media (max-width: 560px) {
  .qa-dropzone { padding: 24px 16px 20px; }
  .qa-file { align-items: flex-start; flex-wrap: wrap; }
  .qa-clear { margin-left: 70px; }
}

/* ============ Tool-row class alias (newer rows) ============ */
.tool-row .tool-meta { display: block; min-width: 0; }
.tool-row .tool-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 1px 0 3px; display: block; }
.tool-row .tool-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-row .tool-go { margin-left: auto; color: var(--faint); font-weight: 700; flex-shrink: 0; }
