:root {
  --bg: #f6f7f3;
  --paper: #ffffff;
  --pale: #eef1ea;
  --ink: #10231c;
  --ink-2: #4f5d56;
  --ink-3: #6b7873;
  --rule: #d9dfd8;
  --rule-soft: #e7ebe5;
  --accent: #1f6b47;
  --accent-dark: #17563a;
  --accent-soft: #e4ece5;
  --green-2: #6ed08d;
  --dark: #0b1f18;
  --hold: #8a5f0f;
  --hold-soft: #f6ecd4;
  --remove: #b0433f;
  --remove-soft: #f7e3dc;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 66ch;
  --max: 1080px;
  --gutter: 4.8vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main, body > section.page { flex: 1 0 auto; }
body > .foot { margin-top: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.num, td.num, th.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.mono, kbd { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.table-scroll { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow, .kicker, .hero-tag, .final-left { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.dashed circle { stroke-dasharray: 2 3; }
.text-link { color: var(--accent); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.text-link:hover { color: var(--accent-dark); }
.text-link.light { color: var(--green-2); }

/* header */
.top { height: 64px; display: flex; align-items: center; gap: 1.9rem; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: rgba(246, 247, 243, 0.94); backdrop-filter: blur(16px); z-index: 20; }
.brand { font: 600 26px var(--serif); letter-spacing: -0.02em; margin-right: 0.8rem; position: relative; }
.brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 3px; background: var(--accent); }
.main-nav { display: flex; gap: 1.6rem; font-size: 13.5px; }
.main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--accent); }
.top-actions { margin-left: auto; display: flex; gap: 0.9rem; align-items: center; }
.lang { display: inline-flex; gap: 2px; }
.lang a { padding: 6px 8px; font-size: 12px; color: var(--ink-3); border-radius: 4px; }
.lang a:hover { color: var(--accent); }
.lang a[aria-current="true"] { background: #e3e9e2; color: var(--ink); font-weight: 600; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: none; font-size: 23px; cursor: pointer; color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 12px 22px; border-radius: 6px; font: 600 14px var(--sans); cursor: pointer; transition: background 0.2s, transform 0.2s; white-space: nowrap; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.button.small { padding: 9px 16px; }
.button.outline, .button.quiet { background: transparent; color: var(--accent); }
.button.outline:hover, .button.quiet:hover { background: var(--accent); color: #fff; }
.button.light { background: var(--green-2); color: var(--dark); border-color: var(--green-2); }
.button.light:hover { background: #8ddca4; border-color: #8ddca4; }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* hero */
.hero { display: grid; grid-template-columns: 46% 54%; border-bottom: 1px solid var(--rule); background: #f4f6f1; overflow: hidden; }
.hero-copy { padding: 52px var(--gutter) 48px; position: relative; z-index: 2; }
.hero .eyebrow { margin: 0 0 20px; }
.hero h1 { font-size: clamp(1.9rem, 2.9vw, 2.75rem); font-weight: 400; line-height: 1.08; margin: 0 0 24px; max-width: 22ch; }
.hero h1 .brand-word { display: block; font-size: 2.1em; font-weight: 700; line-height: 0.95; margin-bottom: 0.08em; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 600; }
.hero .lead { max-width: 470px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-facts li { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); max-width: 130px; }
.hero-facts svg { width: 30px; height: 30px; flex: none; color: var(--ink); stroke-width: 1.3; }
.hero-visual { position: relative; min-height: 560px; background: #b9c9bb url(/img/palisade/hero.jpg) center / cover no-repeat; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f4f6f1 0, rgba(244, 246, 241, 0.7) 12%, rgba(244, 246, 241, 0) 32%); }
.hero-visual .by { position: absolute; top: 14px; right: var(--gutter); font-size: 12.5px; color: #eef4ef; text-shadow: 0 1px 6px rgba(0,0,0,0.5); z-index: 2; }
.hero-visual .by span { color: var(--green-2); }
.analysis-card { position: absolute; top: 74px; left: 14%; width: 62%; padding: 22px; background: rgba(8, 24, 18, 0.95); color: #f2f6f0; border: 1px solid #2f5a45; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); transform: rotate(-1.5deg); }
.card-top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "a b" "c b"; font-size: 11px; color: #91aa9d; margin-bottom: 12px; align-items: start; column-gap: 12px; }
.card-top > span:first-child { grid-area: a; }
.card-top > b { grid-area: b; font: 500 15px var(--serif); color: var(--green-2); }
.card-top .status { grid-area: c; color: #92d3a9; margin-top: 2px; }
.card-top .status i { display: inline-block; width: 8px; height: 8px; background: #5bd081; border-radius: 50%; margin-right: 6px; }
.analysis-card .comment { background: #102e24; border: 1px solid #315547; border-radius: 7px; padding: 12px 13px; font-size: 13px; margin-bottom: 18px; line-height: 1.4; }
.scores { display: grid; gap: 9px; }
.scores > div { display: grid; grid-template-columns: 1.05fr 1.6fr; align-items: center; font-size: 11.5px; color: #c4d1ca; }
.scores > div span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #6c8a7b; margin-right: 8px; vertical-align: -1px; }
.scores > div.hit span::before { background: #d8696b; border-color: #d8696b; }
.scores > div.green span::before { background: #63bc80; border-color: #63bc80; }
.scores b { display: grid; grid-template-columns: 1fr 34px; gap: 10px; align-items: center; font-weight: 600; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12px; }
.scores b i { height: 6px; background: #d8696b; border-radius: 8px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.05); }
.scores > div:not(.hit):not(.green) b i { background: #63bc80; }
.scores .green b i { background: #63bc80; }
.verdict-box { border: 1px solid #a84e4d; background: rgba(111, 36, 36, 0.28); border-radius: 8px; padding: 14px; margin-top: 18px; display: grid; gap: 4px; }
.verdict-box strong { color: #ef7772; font-size: 12.5px; }
.verdict-box span { font-size: 11.5px; color: #d5dfd9; }
.hero-tag { position: absolute; right: var(--gutter); bottom: 60px; color: #dbe8df; text-shadow: 0 1px 8px rgba(0,0,0,0.5); line-height: 1.9; text-align: left; margin: 0; z-index: 2; }

/* sections */
.section { padding: 64px var(--gutter); }
.migration { background: var(--bg); border-bottom: 1px solid var(--rule); }
.migration-grid { display: grid; grid-template-columns: 1fr 1fr 0.5fr; gap: 44px; align-items: center; }
.migration .kicker { margin: 0 0 14px; }
.migration h2 { max-width: 16ch; }
.migration-copy p { color: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.compare { display: flex; align-items: center; justify-content: center; gap: 12px; }
.compare-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; width: 150px; min-height: 170px; display: flex; flex-direction: column; }
.compare-card small { font-weight: 700; font-size: 12.5px; }
.compare-card em { font-style: normal; color: var(--accent); font-size: 10.5px; }
.compare-card hr { border: 0; border-top: 1px solid var(--rule); width: 100%; margin: 12px 0; }
.compare-card span { font-size: 11px; margin: 3px 0; display: grid; grid-template-columns: 1fr 44px auto; gap: 8px; align-items: center; }
.compare-card span i { display: block; height: 4px; background: var(--rule-soft); border-radius: 4px; position: relative; overflow: hidden; }
.compare-card span i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--remove); border-radius: 4px; }
.compare-card span b { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-card strong { font-size: 26px; margin-top: auto; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-card.own { width: 200px; }
.compare .arrow { font-size: 22px; color: var(--accent); }
.migration blockquote { margin: 0; padding-left: 20px; border-left: 1px solid var(--rule); font: italic 15px/1.5 var(--serif); color: var(--ink-2); }

.start { background: var(--pale); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: 50%; font: 600 13px var(--sans); grid-row: 1; }
.steps h3 { font-size: 1.25rem; line-height: 30px; }
.steps p { grid-column: 2; color: var(--ink-3); font-size: 13px; margin: 10px 0 0; }

.features { background: var(--bg); border-top: 1px solid var(--rule); }
.features-intro { padding: 28px 0 8px; }
.features-intro p { color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }
.icon-strip { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.icon-strip li { border-left: 1px solid var(--rule); padding: 26px 14px; }
.icon-strip li:first-child { border-left: 0; }
.icon-strip a { display: grid; justify-items: center; align-content: start; text-align: center; gap: 16px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; max-width: 150px; margin: 0 auto; }
.icon-strip svg { width: 42px; height: 42px; color: var(--ink); stroke-width: 1.1; }
.icon-strip a:hover { color: var(--accent); }
.feature-list { border-top: 1px solid var(--rule); margin-top: 28px; }
.feature { display: grid; grid-template-columns: 60px 1.3fr 0.9fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.feature h3 { font-size: 1.6rem; margin: 0 0 12px; }
.feature p { color: var(--ink-2); max-width: 620px; margin: 0; font-size: 14.5px; }
.feature-number { font: 600 11px/1 var(--mono); letter-spacing: 1px; color: var(--accent); padding-top: 10px; }
.for-you { background: var(--accent-soft); border-radius: 8px; padding: 18px 20px; font-size: 13.5px; color: #3f4f47; margin-top: 8px; }
.for-you b { display: block; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

/* try to break it */
.break-it { background: var(--dark); color: #f1f5ef; padding: 52px var(--gutter); display: grid; grid-template-columns: 0.75fr 1fr 1fr 0.65fr; gap: 28px; align-items: start; }
.break-copy h2 { color: #f1f5ef; font-size: 2.1rem; }
.break-copy p { color: #b3c4ba; font-size: 14px; margin: 0; max-width: 26ch; }
.tester { display: grid; gap: 10px; }
.tester textarea { width: 100%; min-height: 96px; background: #0e2b21; color: #e9f1ec; border: 1px solid #3e725b; border-radius: 6px; padding: 14px; font: 14px var(--sans); resize: vertical; }
.tester textarea:focus { outline: 2px solid #65bd82; }
.tester .button { justify-self: start; }
.tester-note { font-size: 11.5px; color: #7f9a8c; margin: 0; }
.tester-result { border: 1px solid #2f5a45; border-radius: 8px; background: #0e2b21; padding: 14px 16px; display: grid; gap: 12px; min-height: 140px; align-content: start; }
.result-head { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.result-head i { width: 9px; height: 9px; background: #5bd081; border-radius: 50%; }
.result-head b { display: block; font-size: 13px; }
.result-head small { color: #88a498; }
.result-body .placeholder { border: 1px dashed #3e725b; border-radius: 6px; padding: 18px; color: #88a498; font-size: 12.5px; margin: 0; }
.result-bars { display: grid; gap: 9px; }
.result-bars label { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; font-size: 11.5px; color: #b9c9c1; gap: 10px; }
.result-bars i { height: 6px; background: #203d32; border-radius: 6px; display: block; overflow: hidden; }
.result-bars i b { display: block; height: 100%; width: 0; background: #70c989; border-radius: 6px; transition: width 0.6s; }
.result-bars label.hit i b { background: #d8696b; }
.result-bars strong { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.result-verdict { border-top: 1px solid #2f5a45; padding-top: 12px; display: grid; gap: 3px; }
.result-verdict span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: #8ca59a; }
.result-verdict strong { font: 600 20px var(--serif); color: #70d08d; }
.result-verdict.detected strong { color: #ef7772; }
.result-verdict.incomplete strong { color: #e6c46a; }
.result-verdict small { color: #9eb1a8; font-size: 12px; }
.break-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13.5px; color: #dbe6df; }
.break-points span { color: var(--green-2); margin-right: 6px; }

.pricing { background: var(--bg); }
.prices { border-collapse: collapse; width: 100%; font-size: 0.93rem; background: #fff; border: 1px solid var(--rule); }
.prices th, .prices td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule); }
.prices th { font-weight: 600; color: var(--ink-3); font-size: 0.8rem; }
.prices td:first-child { font: 600 1.15rem var(--serif); }
.prices td.num, .prices th.num { text-align: right; white-space: nowrap; }
.prices td.num { font: 600 1rem var(--sans); color: var(--accent); }
.prices tr.own td { background: var(--accent-soft); }
.prices tr.own td:first-child { border-left: 3px solid var(--accent); }
.prose.pricing-text { margin-top: 2rem; max-width: none; columns: 2; column-gap: 56px; }
.pricing-text p { max-width: none; break-inside: avoid; }
.pricing-text p:last-child { border-left: 3px solid var(--accent); padding-left: 16px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.6rem 0 0.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1rem 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.5rem 0.8rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* closing */
.final-cta { position: relative; color: #eef4ef; background: #0f2a20 url(/img/palisade/fence.jpg) center / cover no-repeat; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 24, 0.55), rgba(11, 31, 24, 0.82)); }
.final-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 40px; padding: 80px var(--gutter); min-height: 360px; }
.final-left { color: #b9cdc2; line-height: 2.1; margin: 0; }
.final-center { text-align: center; }
.final-center h2 { color: #eef4ef; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; }
.final-center p { color: #cbdad1; margin: 0 auto 26px; font-size: 14.5px; }
.final-right { display: grid; justify-self: end; gap: 4px; max-width: 200px; }
.final-right strong { font: 500 24px var(--serif); }
.final-right span { color: #b9cdc2; font-size: 13px; }
.final-right small { color: #9fb5a9; margin-top: 14px; font-size: 12.5px; line-height: 1.5; }
.final-right a { color: var(--green-2); font-weight: 600; font-size: 13px; margin-top: 10px; }

.foot { display: flex; justify-content: space-between; gap: 20px; padding: 20px var(--gutter); background: #071812; color: #7b9488; font-size: 11.5px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: #b7d5c5; }

/* inner pages */
.page { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.page h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1.4rem; }
.page .prose, .article { padding-bottom: 60px; }
.page .prose p, .article p { color: #2f3f38; }

@media (max-width: 1100px) {
  .migration-grid { grid-template-columns: 1fr 1fr; }
  .migration blockquote { grid-column: 1 / -1; }
  .break-it { grid-template-columns: 1fr 1fr; }
  .icon-strip { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .icon-strip li:nth-child(5) { border-left: 0; }
  .final-inner { grid-template-columns: 1fr; text-align: center; }
  .final-right { justify-self: center; text-align: center; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; padding: 20px; background: var(--bg); flex-direction: column; border-bottom: 1px solid var(--rule); }
  .menu-toggle { display: block; }
  .top-actions .lang { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .hero-visual::before { background: linear-gradient(180deg, #f4f6f1 0, rgba(244, 246, 241, 0) 25%); }
  .migration-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 45px 1fr; }
  .feature .for-you { grid-column: 2; }
  .compare { justify-content: flex-start; }
  .break-it { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { padding: 0 20px; gap: 1rem; }
  .brand { margin-right: 0; }
  .top-actions { display: none; }
  .hero-copy, .section, .break-it { padding-left: 20px; padding-right: 20px; }
  .hero-copy { padding-top: 40px; }
  .hero-visual { min-height: 470px; }
  .analysis-card { left: 5%; width: 90%; top: 60px; padding: 16px; }
  .hero-tag { display: none; }
  .steps { grid-template-columns: 1fr; }
  .icon-strip { grid-template-columns: 1fr 1fr; }
  .icon-strip li:nth-child(odd) { border-left: 0; }
  .feature h3 { font-size: 1.4rem; }
  .compare { flex-direction: column; align-items: stretch; }
  .compare-card, .compare-card.own { width: 100%; min-height: 0; }
  .compare .arrow { transform: rotate(90deg); text-align: center; }
  .foot { display: block; }
  .foot nav { margin-top: 12px; }
}

/* forms */
label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select {
  font: inherit; width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
.field { margin-bottom: 1.2rem; max-width: var(--measure); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; max-width: var(--measure); }
.check input { margin-top: 0.35rem; }
.notice { color: var(--ink-2); font-size: 0.92rem; max-width: var(--measure); }
.error { color: var(--remove); }

/* annotation */
.annotate { max-width: 800px; margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.annotate .status { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-3); font-size: 0.85rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.annotate .bar { height: 3px; background: var(--rule-soft); margin-bottom: 1.6rem; }
.annotate .bar i { display: block; height: 3px; background: var(--ink); width: 0; transition: width 0.15s; }
.annotate .ctx { font-size: 0.92rem; color: var(--ink-2); border-left: 2px solid var(--rule); padding: 0.2rem 0.9rem; margin: 0 0 0.9rem; white-space: pre-wrap; }
.annotate .flag { font-size: 0.85rem; font-weight: 600; color: var(--remove); background: var(--remove-soft); padding: 0.4rem 0.8rem; border-radius: 3px; margin-bottom: 0.7rem; }
.annotate .card { background: var(--paper); border: 1px solid var(--rule); padding: 1.6rem 1.8rem; font-size: 1.35rem; line-height: 1.5; min-height: 7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.annotate .keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 1.1rem; }
.annotate .keys.aux { grid-template-columns: repeat(2, 1fr); margin-top: 0.6rem; }
.annotate .keys button { font: inherit; font-size: 0.85rem; text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; cursor: pointer; color: var(--ink); }
.annotate .keys button b { display: block; font-family: var(--mono); font-size: 1.4rem; margin-bottom: 0.1rem; }
.annotate .keys button small { display: block; color: var(--ink-3); }
.annotate .keys .u b { color: var(--remove); } .annotate .keys .h b { color: var(--hold); } .annotate .keys .c b { color: var(--accent); }
.annotate .keys .q b, .annotate .keys .x b { color: var(--ink-3); }
.annotate .keys button.on, .annotate .keys button.hit { background: var(--accent-soft); border-color: var(--accent); }
.annotate .keys button.n.on { background: var(--remove-soft); border-color: var(--remove); }
.annotate .senses { margin-top: 1.1rem; background: var(--paper); border: 1px solid var(--rule); padding: 1rem 1.2rem; }
.annotate .senses h3 { margin-bottom: 0.6rem; }
.annotate .senses label { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; padding: 0.3rem 0; cursor: pointer; }
.annotate .senses kbd { border: 1px solid var(--rule); border-radius: 3px; padding: 0 0.4rem; font-size: 0.8rem; }
.annotate .senses input[type=text] { margin-top: 0.4rem; }
.annotate .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-3); flex-wrap: wrap; }
.annotate .done { background: var(--paper); border: 1px solid var(--rule); padding: 1.6rem; font-size: 1.1rem; }
kbd { border: 1px solid var(--rule); border-radius: 3px; padding: 0 0.35rem; font-size: 0.8rem; background: var(--paper); }
@media (max-width: 640px) { .annotate .keys { grid-template-columns: repeat(2, 1fr); } .annotate .card { font-size: 1.15rem; } }

/* demo */
.demo { max-width: 800px; margin: 0 auto; padding: 2.5rem var(--gutter) 3rem; }
.demo h1 { font-size: 2rem; margin-bottom: 0.6rem; }
.verdict { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.02em; margin: 2rem 0 0.4rem; }
.verdict.clean { color: var(--accent); } .verdict.incomplete { color: var(--hold); } .verdict.detected { color: var(--remove); }
.result table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin-top: 1rem; }
.result th, .result td { text-align: left; vertical-align: top; padding: 0.5rem 0.8rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.result th { font-weight: 500; color: var(--ink-2); border-bottom-color: var(--ink); }
.result td.num { white-space: nowrap; }
.result tr.hit td:first-child { border-left: 3px solid var(--remove); padding-left: 0.6rem; }
.reasons { margin-top: 1.4rem; border-left: 2px solid var(--remove); padding-left: 1rem; }
.reasons p { margin-bottom: 0.6rem; }
.wrong { margin-top: 1.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.wrong .thanks { color: var(--accent); }

/* admin */
.admin { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.admin h1 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.admin nav { margin-bottom: 1.6rem; display: flex; gap: 1.2rem; font-size: 0.95rem; }
.admin table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.admin th, .admin td { text-align: left; vertical-align: top; padding: 0.5rem 0.8rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.admin th { font-weight: 500; color: var(--ink-2); border-bottom-color: var(--ink); }
.admin form.inline { display: inline; }
.admin .inline button { font: inherit; font-size: 0.85rem; padding: 0.2rem 0.6rem; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; cursor: pointer; }
.admin .row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.admin .row .field { margin-bottom: 0; }
.admin .summary dt { font-weight: 500; margin-top: 0.8rem; } .admin .summary dd { margin: 0; }
.flash { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 0.6rem 0.9rem; margin-bottom: 1.2rem; }
.flash.err { background: var(--remove-soft); border-color: var(--remove); }


#consent { position: fixed; bottom: 1rem; left: 1rem; max-width: 340px; padding: 0.8rem 0.9rem; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; font-size: 0.85rem; color: var(--ink-2); z-index: 60; }
#consent p { margin: 0 0 0.7rem; }
#consent-buttons { display: flex; gap: 0.5rem; }
#consent button { font: inherit; padding: 0.4rem 0.7rem; border-radius: 3px; cursor: pointer; }
#consent #decline-consent { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
#consent #accept-consent { background: var(--ink); border: 1px solid var(--ink); color: var(--bg); }
#consent #accept-consent:hover { background: var(--accent); border-color: var(--accent); }
