:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e1e4e8;
  --text: #1b1f24;
  --muted: #5f6b7a;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --good: #1a7f37;
  --good-bg: #e6f4ea;
  --bad: #c62828;
  --bad-bg: #fdecea;
  --warn: #9a6700;
  --warn-bg: #fff4d6;
  --stage: #dfe3e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --surface-2: #1f242c; --border: #2b313a;
    --text: #e6e9ee; --muted: #9aa4b2; --accent: #6b8cff; --accent-text: #0b0e13;
    --good: #5cc97a; --good-bg: #13291a; --bad: #ff7b72; --bad-bg: #2d1616;
    --warn: #e3b341; --warn-bg: #2b230f; --stage: #0b0d10;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --surface-2: #1f242c; --border: #2b313a;
  --text: #e6e9ee; --muted: #9aa4b2; --accent: #6b8cff; --accent-text: #0b0e13;
  --good: #5cc97a; --good-bg: #13291a; --bad: #ff7b72; --bad-bg: #2d1616;
  --warn: #e3b341; --warn-bg: #2b230f; --stage: #0b0d10;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, system-ui, sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--accent); }
.brand span { color: var(--text); }
.tabs { display: flex; gap: 4px; }
.tab {
  background: none; border: 0; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 500; cursor: pointer;
}
.tab.active { background: var(--surface-2); color: var(--text); }
.privacy { margin-left: auto; color: var(--muted); font-size: 13px; }

.layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px;
  padding: 24px; max-width: 1400px; margin: 0 auto;
}
.panel { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.card h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; margin: 0 0 12px;
}
.num {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-size: 12px;
}
.fields { display: flex; flex-direction: column; gap: 12px; }
.fields.off { opacity: .4; pointer-events: none; }
.fields > label, .row > label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 13px; }
.fields label output { position: absolute; right: 0; color: var(--muted); font-weight: 400; }
.fields > label:has(output) { position: relative; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=password], select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2);
}
input[type=color] { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 2px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
label.check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { accent-color: var(--accent); }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2px dashed var(--border); border-radius: 10px; padding: 20px;
  text-align: center; cursor: pointer; color: var(--muted); transition: .15s;
}
.drop strong { color: var(--accent); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface-2); }
.drop small { word-break: break-all; }

.switch { margin-left: auto; position: relative; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: var(--border); border-radius: 20px; cursor: pointer; transition: .15s;
}
.switch span::after {
  content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .15s;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); padding: 3px; border-radius: 8px; }
.seg button { border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sigmode { display: flex; flex-direction: column; gap: 6px; }
#sigPad {
  width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; touch-action: none; cursor: crosshair;
}
.typed {
  background: #fff; color: #111; border: 1px solid var(--border); border-radius: 8px;
  font-size: 40px; padding: 8px 12px; min-height: 72px; font-family: "Great Vibes", cursive;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inline select { padding: 4px 6px; font-size: 13px; }
.note {
  margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: var(--good-bg); color: var(--good);
}
.filelist { list-style: none; margin: 12px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.filelist li {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface-2); cursor: pointer; border: 1px solid transparent;
}
.filelist li.active { border-color: var(--accent); }
.filelist .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist .fmeta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filelist .badge { font-size: 11px; padding: 2px 6px; border-radius: 10px; background: var(--good-bg); color: var(--good); white-space: nowrap; }
.filelist .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.signers { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.signers li { background: var(--surface); color: var(--text); border-radius: 8px; padding: 10px 12px; }
.signers li .who { font-weight: 600; }
.signers li .meta { color: var(--muted); font-size: 12px; }
.signers li.bad .who { color: var(--bad); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; align-self: flex-start; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.keybox { background: var(--surface-2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.keybox small { color: var(--muted); }
.keybox code { font-size: 13px; letter-spacing: .5px; }
.keyactions { display: flex; gap: 16px; }

.primary {
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px;
  padding: 14px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.primary:disabled { opacity: .45; cursor: not-allowed; }

.preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.pager button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1;
}
.stage {
  background: var(--stage); border-radius: var(--radius); padding: 24px;
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 70vh; position: sticky; top: 76px;
}
#pageCanvas { max-width: 100%; height: auto; box-shadow: 0 4px 24px rgba(0,0,0,.2); cursor: crosshair; background: #fff; }
.empty { align-self: center; text-align: center; color: var(--muted); }

.verify { max-width: 720px; margin: 0 auto; padding: 24px; }
.verify p { color: var(--muted); margin-top: 0; }
.result { margin-top: 16px; border-radius: 10px; padding: 16px; }
.result h3 { margin: 0 0 8px; font-size: 16px; }
.result.good { background: var(--good-bg); color: var(--good); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result.warn { background: var(--warn-bg); color: var(--warn); }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; color: var(--text); }
.result dt { color: var(--muted); }
.result dd { margin: 0; word-break: break-all; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  box-shadow: var(--shadow); z-index: 10;
}

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; }
  .privacy { display: none; }
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .stage { position: static; min-height: 50vh; padding: 12px; }
  .preview { order: -1; }
  .verify { padding: 16px; }
}

/* ============ Home page ============ */
.home a { color: var(--accent); }
.homenav { display: flex; gap: 20px; margin-left: auto; }
.homenav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.homenav a:hover { color: var(--text); }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text) !important;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--accent); transition: transform .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }

.home main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.eyebrow { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow li {
  font-size: 18px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 8px 16px; border-radius: 999px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.reassure { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

.hero-art { position: relative; display: flex; justify-content: center; }
.doc {
  position: relative; width: min(340px, 100%); aspect-ratio: 8.5 / 11; background: #fff;
  border-radius: 6px; box-shadow: 0 24px 60px rgba(20, 30, 60, .18), 0 2px 6px rgba(0,0,0,.08);
  padding: 36px 32px; overflow: hidden; transform: rotate(2deg);
}
.doc-title { height: 14px; width: 55%; background: #1f2937; border-radius: 3px; margin-bottom: 22px; }
.doc-line { height: 7px; background: #e5e7eb; border-radius: 3px; margin-bottom: 10px; }
.doc-line.short { width: 60%; margin-bottom: 18px; }
.doc-wm {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 40px; color: rgba(192, 57, 43, .18); transform: rotate(-40deg);
  letter-spacing: .04em; pointer-events: none;
}
.doc-sig { position: absolute; left: 32px; bottom: 30px; display: flex; flex-direction: column; width: 130px; }
.doc-sig-name { font-family: "Great Vibes", cursive; font-size: 34px; line-height: 1; color: #10204a; white-space: nowrap; padding-left: 4px; }
.doc-sig-meta { font-size: 8px; color: #6b7280; border-top: 1px solid #9ca3af; padding-top: 3px; }
.doc-qr {
  position: absolute; right: 28px; bottom: 28px; width: 44px; height: 44px;
  background:
    linear-gradient(90deg, #111 50%, transparent 0) 0 0 / 8px 8px,
    linear-gradient(#111 50%, transparent 0) 0 0 / 8px 8px;
  background-blend-mode: multiply; border: 3px solid #111; opacity: .85;
}
.badge-float {
  position: absolute; left: 0; top: 16%; display: flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--good); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}

.section { padding: 56px 0; }
.section h2 { font-size: 30px; letter-spacing: -.01em; margin: 0 0 28px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.ficon { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 22px; border-radius: var(--radius); background: var(--surface-2); }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); }

.privacy-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; margin: 32px 0;
}
.privacy-band h2 { text-align: left; margin-bottom: 8px; }
.privacy-band p { margin: 0; color: var(--muted); max-width: 44em; }
.privacy-band .btn { flex-shrink: 0; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.sitefoot {
  max-width: 1120px; margin: 24px auto 0; padding: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.sitefoot nav { display: flex; gap: 20px; }
.sitefoot a { color: var(--muted); text-decoration: none; }
.sitefoot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .homenav { display: none; }
  .home .topbar .btn.small { margin-left: auto; }
  .home main { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 24px; gap: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .privacy-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .section { padding: 36px 0; }
  .section h2 { font-size: 24px; }
  .sitefoot { padding: 24px 16px; }
}

/* ============ Footer disclaimer & legal pages ============ */
.sitefoot { flex-direction: column; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sitefoot nav { flex-wrap: wrap; }
.disclaimer { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 80em; }
#tab-seal ~ .sitefoot, #tab-verify ~ .sitefoot { max-width: 1400px; }
.agree { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.agree a { color: var(--accent); }
.warnbox { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: var(--warn-bg); color: var(--warn); }

.legal { max-width: 760px !important; padding-top: 48px !important; padding-bottom: 32px !important; }
.legal h1 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text); line-height: 1.65; font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.legal .fineprint { color: var(--muted); font-size: 13px; margin-top: 36px; }

/* ============ Site nav (every page) ============ */
a.tab, .home a.tab { text-decoration: none; white-space: nowrap; color: var(--muted); }
.home a.tab.active { color: var(--text); }
a.tab:hover { color: var(--text); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 860px) {
  .topbar .tabs { order: 3; width: 100%; margin: 0 -4px; }
}

/* ============ Tool pages ============ */
.toolpage { max-width: 880px !important; padding-top: 40px !important; padding-bottom: 24px; }
.toolhead h1 { font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.toolhead p { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 42em; }
.drop.big { padding: 40px 20px; font-size: 16px; background: var(--surface); }
.loading { margin-top: 20px; padding: 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }
.pill { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; vertical-align: middle; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.toolinfo { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.toolinfo h2 { font-size: 20px; margin: 28px 0 10px; }
.toolinfo p, .toolinfo li { color: var(--muted); line-height: 1.65; }
.toolinfo ul { padding-left: 20px; }
.toolinfo li { margin-bottom: 6px; }
.toolinfo strong { color: var(--text); }

/* inspector */
.verdict { margin-top: 24px; border-radius: 12px; padding: 20px 22px; }
.verdict h2 { margin: 0 0 4px; font-size: 22px; }
.verdict p { margin: 0; color: var(--text); opacity: .85; }
.verdict.good { background: var(--good-bg); color: var(--good); }
.verdict.warn { background: var(--warn-bg); color: var(--warn); }
.findings { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.finding { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.finding .dot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.finding.warn .dot { background: var(--warn-bg); color: var(--warn); }
.finding.good .dot { background: var(--good-bg); color: var(--good); }
.finding.info .dot { background: var(--surface-2); color: var(--muted); }
.fdetail { color: var(--muted); margin-top: 4px; font-size: 14px; }
.fdetail p { margin: 6px 0 0; }
.history { margin: 8px 0 0; padding-left: 18px; }
.history li { margin-bottom: 3px; }
.subhead { margin: 28px 0 8px; font-size: 16px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; word-break: break-word; }
.pwform { display: block; }
.pwrow { display: flex; gap: 8px; }
.pwrow input { flex: 1; }

/* compressor */
.levels { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.levels legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.level { position: relative; cursor: pointer; }
.level input { position: absolute; opacity: 0; }
.level span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); height: 100%; }
.level small { color: var(--muted); }
.level input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.level input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#jobs { margin-top: 20px; }
.jobs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.jobs th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.jobs td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.jobs tr:last-child td { border-bottom: 0; }
.jobs td.fname { max-width: 280px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.jobs td.acts { text-align: right; }
.jobs .link + .link { margin-left: 10px; }
.jobactions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.jobactions .link { margin-right: auto; align-self: center; }
button.btn { cursor: pointer; font: inherit; font-weight: 600; }
button.btn:disabled { opacity: .5; cursor: progress; }

/* cleaner */
.options { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 18px; margin: 20px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.options legend { font-weight: 700; padding: 0 6px; }
.options label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.options label.check input { margin-top: 3px; }
.options label.check span { display: flex; flex-direction: column; }
.options label.check small { color: var(--muted); }
.options label.sub { margin-left: 26px; margin-top: -4px; }
.report { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.report.done { border-color: color-mix(in srgb, var(--good) 50%, var(--border)); }
.report header { display: flex; align-items: center; gap: 10px; }
.report header .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report header .link { align-self: center; }
.report p { margin: 10px 0 6px; }
.found-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.found-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.found-list li span:first-child { color: var(--muted); flex-shrink: 0; }
.found-list li span:last-child { text-align: right; word-break: break-word; }
.found-list li.found span:last-child { color: var(--warn); font-weight: 500; }
.found-list li.none span:last-child { color: var(--muted); }

/* home: tools grid */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.toolcard { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text) !important; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.toolcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.toolcard h3 { margin: 4px 0 0; font-size: 16px; }
.toolcard p { margin: 0; color: var(--muted); font-size: 14px; }
.toolcard .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }

@media (max-width: 860px) {
  .toolpage { padding-top: 24px !important; }
  .levels { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .jobs th:nth-child(2), .jobs td:nth-child(2) { display: none; }
  .jobs td.fname { max-width: 140px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 8px; }
}
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }
