:root, [data-theme="light"] {
  --bg: #f5f8f7; --panel: #ffffff; --ink: #14231f; --muted: #52625d; --line: #d9e3df; --soft: #ecf2ef;
  --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #dcf2ef; --bad: #b3261e; --ok: #1e7b4b; --warn-bg: #fff4dc;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
[data-theme="dark"] {
  --bg: #121615; --panel: #1a201e; --ink: #e9f0ed; --muted: #a2b1ab; --line: #2c3633; --soft: #222a27;
  --accent: #5eead4; --accent-ink: #062a26; --accent-soft: #163633; --bad: #f28b82; --ok: #7ccf9e; --warn-bg: #2d2717;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
a { color: var(--accent); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .bad { color: var(--bad); } .strong { font-weight: 600; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { color: var(--accent); flex: none; }
.brand strong { white-space: nowrap; }
.sep { color: var(--muted); }
.sum-t { font-weight: 600; }
.topactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.backlink { text-decoration: none; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.credits { font-size: .86rem; color: var(--muted); }
.topup { font-size: .86rem; }

button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 40px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 8px 18px; font-weight: 600; }
.primary:hover:not(:disabled) { filter: brightness(1.07); }
.primary.big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font-size: 1.05rem; min-height: 48px; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; }
.ghost:hover:not(:disabled) { background: var(--soft); }
.ghost.sq { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ghost.strong { font-weight: 600; border-color: var(--accent); color: var(--accent); }
.quiet { background: none; border: none; color: var(--accent); padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.small { min-height: 36px; }
.linkbtn { background: none; border: none; color: var(--accent); padding: 4px 0; min-height: 32px; text-align: left; font-weight: 600; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hero { padding: 22px 0 8px; max-width: 760px; }
h1 { font-size: clamp(1.55rem, 4.6vw, 2.25rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.lede { margin: 0 0 10px; color: var(--muted); font-size: 1.04rem; }
.perks { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.perks li { font-size: .82rem; background: var(--accent-soft); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.editor { padding: 10px; }
.editor.drag { outline: 2px dashed var(--accent); outline-offset: 2px; }
textarea, input[type=text], input[type=url], select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
textarea { width: 100%; padding: 10px 12px; resize: vertical; min-height: 150px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.45; tab-size: 2; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.chipbtn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; min-height: 40px; }
.chipbtn:hover, .chipbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.msg.bad { background: var(--warn-bg); color: var(--ink); border-left: 3px solid var(--bad); }

.work { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; margin-top: 16px; align-items: start; scroll-margin-top: 64px; }
.viewer { padding: 10px; min-width: 0; grid-row: span 2; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segbtn { background: transparent; border: none; border-radius: 0; color: var(--ink); padding: 6px 12px; min-height: 40px; }
.segbtn + .segbtn { border-left: 1px solid var(--line); }
.segbtn[aria-pressed="true"] { background: var(--accent-soft); font-weight: 600; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
select { padding: 6px 8px; min-height: 40px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 0; }
.stats div { display: flex; align-items: baseline; gap: 6px; }
.stats dd { margin: 0; font-weight: 700; } .stats dt { color: var(--muted); font-size: .86rem; }
.notes { margin: 8px 0 0; padding: 8px 12px 8px 28px; background: var(--warn-bg); border-radius: 10px; font-size: .9rem; }

.exports { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.exp-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-grid .ghost { flex: 1 1 auto; }
.more summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.more label.inline { display: flex; justify-content: space-between; margin: 6px 0; }

.ai { padding: 12px 14px; }
.ai summary { cursor: pointer; font-weight: 600; list-style-position: inside; padding: 4px 0; min-height: 36px; }
.badge { font-size: .74rem; font-weight: 500; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.hint { font-size: .88rem; color: var(--muted); margin: 8px 0; }
.hint.bad { color: var(--bad); }
.warn-soft { background: var(--warn-bg); color: var(--ink); padding: 8px 10px; border-radius: 8px; }
.ai input[type=text] { width: 100%; padding: 8px 10px; min-height: 40px; margin: 4px 0 8px; }
.ai-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.progress { margin-top: 10px; padding: 10px; background: var(--soft); border-radius: 10px; }
.progresshead { display: flex; justify-content: space-between; }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: .9rem; color: var(--muted); }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ok); }
.steps li.done::marker { content: "\2713  "; }
.report { margin-top: 10px; font-size: .9rem; }
.report p { margin: 6px 0; }
.report ul { margin: 4px 0 8px; padding-left: 20px; }

.history { margin-top: 16px; padding: 14px; }
.h3 { font-size: 1.05rem; margin: 0 0 4px; }
.historylist { list-style: none; padding: 0; margin: 8px 0 0; }
.historylist li { padding: 4px 0; border-top: 1px solid var(--line); }

.about { margin-top: 32px; max-width: 760px; }
.about h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.howlist { padding-left: 20px; } .howlist li { margin: 6px 0; }
.qa dt { font-weight: 600; margin-top: 12px; } .qa dd { margin: 4px 0 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 18px 16px 30px; text-align: center; color: var(--muted); font-size: .88rem; }
.foot p { margin: 4px 0; }

/* docs pages */
.doc { max-width: 900px; padding-top: 18px; }
.doc h1 { font-size: 1.8rem; } .doc h2 { margin-top: 28px; } .doc h3 { margin-top: 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: .84rem; line-height: 1.45; margin: 0; }
.codegroup { margin: 10px 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tab { background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 10px; min-height: 34px; font-size: .84rem; }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.statebox { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.statebox p { margin: 4px 0; }
.tokenrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tokenbox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); width: 100%; }
.mini { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 6px 12px; border-radius: 10px; }

@media (max-width: 860px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .viewer { grid-row: auto; }
}
@media (max-width: 480px) {
  .topbar { padding: 8px 12px; }
  .hero { padding-top: 14px; }
  .lede { font-size: .98rem; }
  textarea { min-height: 120px; }
  .segbtn { padding: 6px 9px; }
}
#exportMsg:empty { display: none; }

/* first action */
.start { padding: 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.start .primary { min-height: 44px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.start label.field { margin: 0; }
label.field input[type=text], label.field input[type=url], label.field input[type=date], label.field select, label.field textarea { width: 100%; padding: 8px 10px; min-height: 40px; color: var(--ink); font-size: 1rem; }
input[type=date] { font: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
label.field textarea { min-height: 70px; font-family: inherit; }
/* result */
.viewer .exports { padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.details { padding: 14px; }
.h4 { font-size: .95rem; margin: 12px 0 4px; }
.extras { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; margin: 6px 0 10px; }
.extras legend { font-size: .86rem; color: var(--muted); padding: 0 4px; }
.docview { margin-top: 12px; padding: 4px 8px 8px; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; border-top: 1px solid var(--line); }
.docview .doc-title { font-size: 1.35rem; margin: 12px 0 2px; }
.docview h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.docview p { margin: 6px 0; } .docview ul { margin: 4px 0 8px; padding-left: 22px; }
.docview .caps { font-size: .86rem; letter-spacing: .01em; }
mark.blank { background: var(--warn-bg); color: var(--bad); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; font-size: .9rem; }
.checks li { padding: 6px 10px 6px 30px; border-radius: 8px; margin: 4px 0; position: relative; background: var(--soft); }
.checks li::before { position: absolute; left: 10px; top: 6px; font-weight: 700; }
.checks li.ok::before { content: "\2713"; color: var(--ok); }
.checks li.warn { background: var(--warn-bg); } .checks li.warn::before { content: "!"; color: #a05a00; }
.checks li.bad { background: var(--warn-bg); border-left: 3px solid var(--bad); } .checks li.bad::before { content: "!"; color: var(--bad); }
label.check { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: .9rem; min-height: 40px; }
label.check input { width: 18px; height: 18px; flex: none; }
.ai textarea { min-height: 110px; font-family: inherit; margin: 4px 0 8px; }
#exportMsg:empty { display: none; }
@media (max-width: 860px) { .docview { max-height: 70vh; overflow-y: auto; } }
@media (max-width: 640px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .start .primary { width: 100%; }
  .docview { max-height: 65vh; }
}


/* result views */
.giview { margin: 12px 0 0; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.45; max-height: 60vh; overflow: auto; }
.codeview { white-space: pre; overflow-wrap: normal; }
.dropzone { padding: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 10px 12px; border: 2px dashed var(--line); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone textarea { min-height: 128px; font-size: .9rem; font-family: inherit; }
.dropzone .primary { min-height: 48px; font-size: 1.05rem; padding: 10px 22px; }
.droprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.droptext { flex: 1 1 160px; }
.seg { display: flex; flex-wrap: wrap; align-self: flex-start; max-width: 100%; }
.prevhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding: 4px 6px; }
.checkcard { padding: 14px; }
.details input[type=text], .details input[type=url], .details select { width: 100%; }
.details input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.okline { color: var(--ok); }
.historylist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
@media (max-width: 640px) { .droprow .primary { width: 100%; } .dropzone textarea { min-height: 110px; } .giview { max-height: 50vh; } }

.details select { min-width: 0; }
.headbtn { white-space: normal; text-align: left; max-width: 100%; height: auto; min-height: 40px; }
@media (max-width: 640px) { .codeview { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } }
.prevhead .seg { margin-left: auto; }
.segwrap { flex-wrap: wrap; }
.showset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 6px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.showset legend { padding: 0 4px; color: var(--muted); }


/* the addresses table: what is in the sitemap and what was left out */
.pages { margin-top: 14px; }
.tablewrap { max-height: 420px; overflow: auto; overscroll-behavior: contain; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.pagetable { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pagetable th, .pagetable td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pagetable th { position: sticky; top: 0; background: var(--panel); font-weight: 600; }
.pagetable td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.inline select { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.codeview { max-height: 420px; overflow: auto; }
@media (max-width: 640px) { .tablewrap { max-height: 60vh; } .pagetable { font-size: 0.8rem; } }
.keyline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 8px 0 10px; }
.keyshow { font-size: 15px; font-weight: 600; word-break: break-all; padding: 2px 6px; border-radius: 6px; background: var(--soft, rgba(127,127,127,.12)); }
#keyWhere { flex-basis: 100%; word-break: break-all; }
.keyrow { margin: -4px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#keyNote.bad { color: var(--bad, #b42318); }
.checks li, #keyWhere, #exportMsg, #loadMsg, #aiMsg, .report li, .report p { overflow-wrap: anywhere; }


/* the post form */
.postform { gap: 8px; }
.postform input[type=text] { width: 100%; padding: 10px 12px; min-height: 44px; font: inherit; }
.postform .titlein { font-weight: 600; font-size: 1.05rem; }
.subrow input[type=text] { max-width: 280px; min-height: 40px; padding: 6px 10px; font-size: .92rem; }
.postform textarea { font-family: inherit; min-height: 150px; }
.droprow .ghost { min-height: 48px; }

/* the verdict */
.verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border-left: 4px solid var(--muted); }
.verdict strong { font-size: 1.12rem; }
.verdict.v-fix { background: var(--warn-bg); border-left-color: var(--bad); }
.verdict.v-improve { background: var(--warn-bg); border-left-color: #c88a12; }
.verdict.v-ready { border-left-color: var(--ok); }
.stats dd.bad { color: var(--bad); }
.changes { list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.changes li { margin: 2px 0; }
.changes li.strong { color: var(--ink); }

/* the preview */
.rpost { margin: 8px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow-wrap: anywhere; }
.rmeta { margin: 0 0 4px; font-size: .78rem; color: var(--muted); }
.rmeta span { font-weight: 600; color: var(--ink); }
.rtitle { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.rbody { font-size: .95rem; line-height: 1.5; }
.rbody p { margin: 0 0 10px; }
.rbody ul, .rbody ol { margin: 0 0 10px; padding-left: 24px; }
.rbody blockquote { margin: 0 0 10px; padding: 2px 10px; border-left: 3px solid var(--line); color: var(--muted); }
.rbody pre { background: var(--soft); padding: 8px 10px; border-radius: 8px; overflow-x: auto; font-size: .84rem; }
.rbody code { background: var(--soft); padding: 0 4px; border-radius: 4px; }
.rbody h3, .rbody h4, .rbody h5, .rbody h6 { margin: 10px 0 6px; font-size: 1.02rem; }
.rbody hr { border: none; border-top: 1px solid var(--line); margin: 10px 0; }
.rbody .rtable { overflow-x: auto; margin: 0 0 10px; }
.rbody table { border-collapse: collapse; font-size: .88rem; }
.rbody th, .rbody td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.rlink, .rbody a { color: var(--accent); }
.spoiler { background: var(--ink); color: var(--ink); border-radius: 3px; cursor: pointer; }
.spoiler.open { background: var(--soft); color: var(--ink); }
.prevhead { margin-top: 12px; }

/* the AI result */
.airesult { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.titlepick { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.titleopt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; cursor: pointer; }
.titleopt input { width: 18px; height: 18px; margin: 2px 0 0; }
.titleopt small { grid-column: 2; }
.mini-post { max-height: 320px; overflow-y: auto; font-size: .88rem; }
.ai select { width: 100%; }
@media (max-width: 640px) { .subrow input[type=text] { max-width: none; } .droprow .ghost { width: 100%; } }


/* the ranking */
.dropzone textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.ranktable-wrap { margin-top: 12px; max-height: 520px; }
.ranktable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ranktable th, .ranktable td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ranktable th { position: sticky; top: 0; background: var(--panel); font-weight: 600; white-space: nowrap; z-index: 1; }
.ranktable th.sorted { color: var(--accent); }
.ranktable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranktable td.name { min-width: 9em; overflow-wrap: anywhere; }
.ranktable td.rank { font-weight: 700; }
.ranktable tr.above td { background: var(--accent-soft); }
.ranktable tr.lastin td { border-bottom: 3px solid var(--accent); }
.ranktable td.score { font-weight: 600; }
.ranktable td.agree { font-size: .8rem; text-transform: capitalize; }
.ranktable td.a-divergent { color: var(--bad); font-weight: 600; }
.ranktable td.a-strong { color: var(--ok); }
.plainlist { list-style: none; margin: 4px 0 8px; padding: 0; font-size: .9rem; }
.plainlist li { padding: 6px 10px; margin: 4px 0; border-radius: 8px; background: var(--soft); overflow-wrap: anywhere; }
.plainlist li.flip { border-left: 3px solid var(--accent); }
.plainlist li.ok { color: var(--ok); }
.fwlist li.not { color: var(--muted); }
.needs .plainlist li { background: var(--warn-bg); }
.viewer .h4 { margin-top: 16px; }
#lineNote { margin: 6px 2px; }
.weights .wrow { justify-content: space-between; margin: 6px 0; }
.weights input[type=number] { width: 84px; min-height: 40px; padding: 6px 8px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.aidoc { margin-top: 10px; font-size: .92rem; overflow-wrap: anywhere; }
.aidoc p { margin: 6px 0; } .aidoc ul { margin: 4px 0 8px; padding-left: 20px; }
@media (max-width: 640px) { .ranktable { font-size: .8rem; } .ranktable th, .ranktable td { padding: 6px 5px; } .ranktable-wrap { max-height: 60vh; } }

.divbox, .sensbox, .methods { margin-top: 4px; }

/* ---------------------------------------------------------------- page planner */
.pickhead { margin: 0; font-weight: 600; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.typebtn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; min-height: 44px; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.typebtn:hover { border-color: var(--accent); }
.typebtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.urlhead { font-size: .9rem; margin-top: 4px; }
.dropzone textarea#fUrls { min-height: 64px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.plantable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.plantable th, .plantable td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plantable thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; white-space: nowrap; }
.plantable th.tierrow { background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.plantable th.t-must { color: var(--accent); }
.plantable td.name { min-width: 11em; }
.plantable td.name strong { display: inline; }
.plantable .why { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.plantable td.url { overflow-wrap: anywhere; font-size: .82rem; }
.plantable tr.miss td.name strong { color: var(--bad); }
.plantable td.ok { color: var(--ok); font-weight: 600; } .plantable td.bad { font-weight: 600; }
.tag { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); vertical-align: 1px; }
.tag.soft { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.urllist li { font-size: .84rem; overflow-wrap: anywhere; }
.menus, .treebox, .extras { margin-top: 16px; }
.navdemo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.navlogo { font-weight: 800; }
.navlinks { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1 1 auto; }
.navlink { font-size: .9rem; }
.navcta { background: var(--accent); color: var(--accent-ink); padding: 3px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.footdemo { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.footcol strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.footcol ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: .86rem; }
.tree { margin: 0; padding: 10px 12px; background: var(--soft); border-radius: 10px; font-size: .82rem; line-height: 1.45; overflow-x: auto; max-height: 420px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; padding: 6px 0; min-height: 36px; cursor: pointer; }
label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
fieldset.goals { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 6px 0 10px; }
fieldset.goals legend { font-size: .88rem; color: var(--muted); padding: 0 4px; }
.verdict.v-warn { border-left-color: #c58a00; }
.verdict.v-good { border-left-color: var(--ok); }
@media (max-width: 640px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } .typebtn { font-size: .9rem; } .plantable { font-size: .8rem; } }
