/* Inkwell Data — ink & gold design system */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900; src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2'); }

:root {
  /* Matches the inkwelltools.com hub: ink, paper, gold, peacock (Inkwell Data's accent) */
  --paper: #11141b;
  --panel: #171b25;
  --panel-2: #1a1f2b;
  --ink: #f3ebdd;
  --ink-2: #4fa3a8;
  --ink-2-hover: #66b7bc;
  --on-ink: #11141b;
  --gold: #4fa3a8;
  --gold-soft: rgba(79, 163, 168, .13);
  --brass: #c9a44c;
  --link: #8cc9cc;
  --text: #e9e2d5;
  --muted: #b6ac9a;
  --line: #2a3140;
  --line-2: #20252f;
  --hl: rgba(201, 164, 76, .14);
  --ok: #7bb98a;
  --ok-bg: rgba(123, 185, 138, .12);
  --err: #e8907e;
  --err-bg: rgba(192, 83, 59, .16);
  --shadow: 0 12px 30px rgba(0, 0, 0, .22);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(79,163,168,.10), transparent 60%),
    radial-gradient(90% 70% at 8% 110%, rgba(192,83,59,.08), transparent 60%);
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .5rem; font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: var(--panel); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--ink-2); font-weight: 500; }
.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 500; padding: 7px 11px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--line-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--ink-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
}

/* hero */
.hero { padding: 64px 0 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brass); }
.hero h1 em { font-style: italic; color: var(--ink-2); font-weight: 500; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted); padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--ok); flex: none; }

/* tool grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 8px 0 56px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: rgba(23,27,37,.86); border: 1px solid rgba(243,235,221,.11); border-top: 3px solid var(--ink-2); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(243,235,221,.25); border-top-color: var(--ink-2); background: rgba(26,31,42,.96); color: var(--text); }
.tool-card .ti { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 6px; }
.tool-card h3 { margin: 0; }
.tool-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.tool-card .go { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 600; color: var(--link); }

/* sections */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.cols-3 h3 { font-size: 1.05rem; }
.cols-3 p { color: var(--muted); font-size: .95rem; margin: 0; }
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.promo a { display: block; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; color: var(--text); }
.promo a:hover { border-color: var(--brass); }
.promo strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.promo span { color: var(--muted); font-size: .93rem; }

/* tool page */
.crumbs { font-size: .85rem; color: var(--muted); margin: 26px 0 8px; }
.crumbs a { color: var(--muted); }
.tool-head { padding: 0 0 22px; }
.tool-head .lede { font-size: 1.05rem; }
.bench { background: rgba(23,27,37,.86); border: 1px solid rgba(243,235,221,.11); border-top: 3px solid var(--ink-2); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 40px; }
.bench + .bench { margin-top: -20px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); margin: 4px 0 12px; font-size: .98rem; }
.step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--ink); color: var(--paper); flex: none; }
.drop { border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--panel-2); border-radius: 14px; padding: 34px 18px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.is-over { background: var(--gold-soft); border-color: var(--gold); }
.drop .big { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; color: var(--ink); display: block; margin: 8px 0 2px; }
.drop .small { font-size: .88rem; color: var(--muted); }
.drop svg { color: var(--gold); }
.drop.compact { padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.drop.compact .big { font-size: 1rem; margin: 0; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px 7px 10px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; font-size: .88rem; }
.chip-icon { color: var(--gold); display: inline-flex; }
.chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chip-meta { color: var(--muted); white-space: nowrap; }
.chip-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--muted); padding: 0 2px; }
.chip-x:hover { color: var(--err); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 22px; margin: 6px 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field small { color: var(--muted); font-size: .82rem; }
select, input[type="text"], input[type="number"], textarea {
  font: inherit; font-size: .93rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; width: 100%;
}
.field.inline select { width: auto; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-2) 20%, transparent); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; cursor: pointer; line-height: 1.4; }
.check input { margin-top: 3px; accent-color: var(--ink-2); flex: none; }
.check small { display: block; color: var(--muted); font-size: .82rem; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px 8px; max-height: 190px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.checklist .check { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: .86rem; align-items: center; }
.checklist .check input { margin: 0; }
.mini-actions { display: flex; gap: 12px; font-size: .84rem; margin: 6px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--panel-2); gap: 2px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 7px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .94rem; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ink-2); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-2-hover); color: var(--on-ink); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-busy { opacity: .85; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { margin-top: 18px; }
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 120px; }
.stat b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--ink); font-weight: 600; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.alert { border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 12px 0; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--gold-soft); color: var(--text); }

.preview-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; margin: 0 0 8px; }
.grid-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.grid { border-collapse: separate; border-spacing: 0; font-size: .84rem; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 6px 12px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.grid th { position: sticky; top: 0; background: var(--panel-2); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); z-index: 1; }
.grid .rownum { color: var(--muted); text-align: right; font-size: .76rem; position: sticky; left: 0; background: var(--panel-2); border-right: 1px solid var(--line-2); }
.grid thead .rownum { z-index: 2; }
.grid td.empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px); }
.grid .hl { background: var(--hl); }
.grid tbody tr:hover td { background: var(--line-2); }

/* sql */
.sql-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
@media (max-width: 820px) { .sql-layout { grid-template-columns: 1fr; } }
.schema { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 12px; font-size: .86rem; max-height: 420px; overflow: auto; }
.schema h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.schema details { margin: 0 0 8px; }
.schema summary { cursor: pointer; font-family: var(--mono); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.schema ul { list-style: none; margin: 6px 0 0 4px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.schema li { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: .8rem; padding: 2px 0; }
.schema li span:last-child { color: var(--muted); }
.schema .tmeta { color: var(--muted); font-size: .78rem; margin-left: 4px; }
.editor { font-family: var(--mono); font-size: .9rem; line-height: 1.55; min-height: 170px; resize: vertical; tab-size: 2; background: var(--panel); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.examples button { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.examples button:hover { color: var(--ink); border-color: var(--ink-2); }
.engine-note { font-size: .84rem; color: var(--muted); }

/* profile */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.prof { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.prof-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.prof-h h3 { font-family: 'Inter', sans-serif; font-size: .98rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.prof dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: .84rem; }
.prof dt { color: var(--muted); }
.prof dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin: 2px 0 10px; }
.bar i { display: block; height: 100%; background: var(--ink-2); }
.tops { font-size: .82rem; }
.tops div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 2px 0; }
.tops div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tops div span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.flag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--err-bg); color: var(--err); }
.flag.info { background: var(--ok-bg); color: var(--ok); }

/* content */
.content { max-width: 760px; }
.content h2 { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brass); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--panel); }
.related a:hover { border-color: var(--ink-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; font-size: .9rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.fineprint { margin-top: 26px; font-size: .82rem; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow); transition: .2s ease; max-width: calc(100% - 32px); z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--err); color: #11141b; }

.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bench { padding: 16px; border-radius: 14px; }
  .hero { padding: 40px 0 24px; }
  .chip-name { max-width: 160px; }
  .actions .btn { flex: 1 1 auto; }
}
.foot .brand, .foot .brand:hover { color: var(--ink); text-decoration: none; }

/* ---- transform, compare, summarize (Oct 2026) ---- */
.btn-sm { padding: 7px 12px; font-size: .86rem; }
.icon-btn { background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-size: .9rem; line-height: 1; flex: none; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.linkbtn.danger { color: var(--err); }
.field.wide { grid-column: 1 / -1; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline select { flex: 1; min-width: 0; }
.recipe-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin-top: 16px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel-2); }
.recipe-bar .field { flex: 1 1 280px; }
.recipe-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.save-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--ink-2); border-radius: 12px; background: var(--gold-soft); }
.save-box .field { flex: 1 1 260px; }
.save-box small { flex-basis: 100%; }
#step-form .step-options { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.steps-box { margin-top: 16px; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step-list li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 10px; background: var(--panel-2); }
.step-list li.bad { border-left-color: var(--err); }
.step-list li.off { border-left-color: var(--line); opacity: .6; }
.sl-main { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 320px; min-width: 0; }
.sl-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; color: var(--ink); }
.sl-text { font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.sl-text small { display: block; color: var(--muted); font-size: .8rem; }
.step-list li.bad .sl-text small { color: var(--err); }
.sl-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; }
.order-list { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px; border-radius: 6px; }
.order-list li:hover { background: var(--line-2); }
.ord-btns { display: flex; gap: 4px; }
.measure { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.measure select { width: auto; min-width: 180px; flex: 0 1 260px; }
.two-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .two-drops { grid-template-columns: 1fr; } }
.grid td.diff { background: rgba(201, 164, 76, .10); }
.diff-old { color: var(--err); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-new { color: var(--ok); font-weight: 600; }
.task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; padding: 0; list-style: none; margin: 14px 0 0; }
.task-list a { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; color: var(--text); font-size: .92rem; }
.task-list a:hover { border-color: var(--ink-2); color: var(--ink); }
.tool-card.is-new h3::after { content: 'New'; margin-left: 8px; font-family: 'Inter', system-ui, sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(201,164,76,.45); border-radius: 999px; padding: 2px 7px; vertical-align: 3px; }

/* ---- paste, samples, import options, keep going, formulas (Oct 2026, round 2) ---- */
.drop-alt { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.paste-panel { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.paste-panel textarea, textarea.expr { width: 100%; font-family: var(--mono); font-size: .86rem; resize: vertical; }
.import-opts { flex-basis: 100%; font-size: .86rem; }
.import-opts summary { cursor: pointer; color: var(--link); display: inline-block; }
.import-opts[open] { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; margin: 10px 0; }
.imp-hint { margin: 8px 0 0; color: var(--brass); }
.next-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.next-tools > span { margin-right: 4px; }
.chip-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .84rem; cursor: pointer; }
.chip-btn:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink); }
.chip-btn:disabled { opacity: .5; cursor: progress; }
.expr-tools { margin-top: 6px; }
.expr-tools select { flex: 0 1 260px; }
.expr-check { font-family: var(--mono); font-size: .8rem; margin-top: 4px; min-height: 1.2em; }
.expr-check.ok { color: var(--ok); }
.expr-check.bad { color: var(--err); }
.anon-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.anon-table th, .anon-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.anon-table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.anon-table td.col-name { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.anon-table td.sample { color: var(--muted); font-family: var(--mono); font-size: .8rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anon-table select { width: 100%; min-width: 190px; }
.anon-table tr.sens td.col-name::after { content: 'Personal'; margin-left: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(201,164,76,.45); border-radius: 999px; padding: 1px 6px; }
.anon-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
@media (max-width: 640px) { .anon-table td.sample, .anon-table th.sample { display: none; } .anon-table tr.sens td.col-name::after { display: block; width: max-content; margin: 4px 0 0; } .anon-table select { min-width: 0; } }
