/* TidyTweet: moderation-queue look. Onest + Martian Mono, self-hosted. */
@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/assets/fonts/martian-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/assets/fonts/martian-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #EEF3F0; --paper: #FBFDFC; --ink: #14232B; --ink-2: #3E5058; --mute: #63757C; --line: #D3E0DA; --line-2: #BFD0C8;
  --teal: #0F7666; --teal-2: #0B5C50; --teal-bg: #DCEFE9; --coral: #C8402F; --coral-bg: #FBE4DF; --amber: #A86B00; --amber-bg: #FBEFD3;
  --mark: #FFE08A; --code-bg: #E5EDE9; --shadow: 0 1px 0 rgba(20,35,43,.04), 0 8px 24px -14px rgba(20,35,43,.25);
  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1C21; --paper: #13252B; --ink: #E4EEEA; --ink-2: #B9C9C3; --mute: #8DA19A; --line: #22393F; --line-2: #2E4A51;
    --teal: #3CC2A8; --teal-2: #6FD8C3; --teal-bg: #12362F; --coral: #FF8A78; --coral-bg: #3A1F1C; --amber: #F2C35B; --amber-bg: #3A2F14;
    --mark: #6B5410; --code-bg: #1A3037; --shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 28px -16px rgba(0,0,0,.7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .8em; }
code { background: var(--code-bg); padding: .12em .38em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); padding: 1rem 1.1rem; border-radius: 10px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; font-size: 1em; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 .1em; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.05rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem .9rem; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.small { font-size: .88rem; }
.muted { color: var(--mute); }
.hint { color: var(--mute); font-weight: 400; font-size: .82rem; }
.err { color: var(--coral); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-name, .foot-brand { font-weight: 500; font-size: 1.32rem; letter-spacing: -.03em; }
.brand-name b, .foot-brand b { font-weight: 800; color: var(--teal); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .45rem .8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: .5rem; font: 600 .95rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .nav a { border-radius: 10px; padding: .7rem .8rem; font-size: 1.05rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; font: 700 1rem var(--sans); background: var(--teal); color: #fff; border: 2px solid var(--teal); padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--teal-2); border-color: var(--teal-2); color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #08201B; } }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn.small { font-size: .86rem; padding: .45rem .85rem; border-width: 1.5px; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }

/* hero */
.hero { padding: clamp(2rem, 5vw, 4.2rem) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 400px at 85% 10%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero h1 { max-width: 15ch; }
.kicker { font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin: 0 0 .9rem; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.queue { background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 20px; padding: 1.1rem 1.2rem 1rem; box-shadow: var(--shadow); }
.queue-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.queue-head h2 { font-size: 1.05rem; margin: 0; }
.queue-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-bg); }
.queue textarea { min-height: 7.5rem; }
.queue-samples { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .82rem; color: var(--mute); margin: .55rem 0 .7rem; }
.queue-samples button { font: 500 .8rem var(--sans); border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: .25rem .6rem; cursor: pointer; }
.queue-samples button:hover { border-style: solid; border-color: var(--teal); color: var(--teal); }
.queue-foot { font-size: .84rem; color: var(--mute); margin: .7rem 0 0; border-top: 1px solid var(--line); padding-top: .6rem; }
.tt-quick-score { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.tt-quick-out { min-height: 5.5rem; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero h1 { max-width: 20ch; } }

/* sections */
.section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.band-h { margin-bottom: 1.3rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { border-top: 3px solid var(--teal); padding-top: 1rem; }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { font: 600 .8rem var(--mono); color: var(--teal); display: block; margin-bottom: .3rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .steps, .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin: .45rem 0; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .75rem; height: .42rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* sample figure on home */
.sample { margin: 0; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow); }
.sample figcaption { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: .7rem; }
.sample-post { background: var(--bg); border-radius: 10px; padding: .7rem .85rem; }
.sample-steps { list-style: none; padding: 0; margin: .8rem 0; }
.sample-steps li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.sample-steps em { font: normal 600 .75rem var(--mono); color: var(--mute); white-space: nowrap; }
.sample-steps li.hit em { color: var(--coral); }
.sample-out { display: inline-block; margin: 0; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.2rem; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.card a:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h2, .card h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0 0 .9rem; flex: 1; }
.card-go { font: 600 .76rem var(--mono); color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.card-ico { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--teal-bg); color: var(--teal); font: 600 .9rem var(--mono); margin-bottom: .8rem; }
.guide-list { list-style: none; padding: 0; margin: 0; columns: 2 320px; column-gap: 2rem; }
.guide-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.guide-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.guide-list a:hover span { color: var(--teal); text-decoration: underline; }
.guide-list small { color: var(--mute); font-family: var(--mono); font-size: .72rem; white-space: nowrap; padding-top: .25rem; }
.list-foot { color: var(--ink-2); margin: 1.5rem 0 3rem; }

/* doc pages */
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 1.3rem 0 0; font-size: .85rem; color: var(--mute); }
.trail li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.trail a { color: var(--mute); }
.doc-head { padding: 1.6rem 0 1.4rem; max-width: 820px; }
.doc-head h1 { margin-bottom: .4em; }
.byline { color: var(--mute); font-size: .9rem; margin: .4rem 0 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.doc { display: grid; grid-template-columns: minmax(0, 760px); gap: 2.5rem; padding-bottom: 3.5rem; }
.doc.has-toc { grid-template-columns: minmax(0, 760px) 240px; }
.doc.has-toc .doc-head { grid-column: 1 / -1; }
.side { grid-column: 2; grid-row: 2; }
.doc.has-toc .prose { grid-column: 1; grid-row: 2; }
.toc { position: sticky; top: 84px; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.toc-h { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); margin: 0 0 .5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: .35rem 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal); }
@media (max-width: 980px) { .doc.has-toc { grid-template-columns: minmax(0, 1fr); } .side { display: none; } .doc.has-toc .prose { grid-column: 1; } }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--teal); }
.prose h2 + p > strong:only-child, .prose h2 + p strong:first-child { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: .2em 1.1em; border-left: 3px solid var(--teal); color: var(--ink-2); }
.answer, .takeaways { background: var(--paper); border: 1.5px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: .9rem 1.1rem; }
.answer p:last-child, .takeaways ul { margin-bottom: 0; }
.answer-h { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--teal); margin: 0 0 .3rem; }
.takeaways ul { margin-top: .3rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: color-mix(in srgb, var(--teal-bg) 55%, var(--paper)); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--amber-bg); border-radius: 10px; padding: .8rem 1rem; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--teal); border-radius: 4px; }

.qa { margin-top: 2.5rem; }
.qa details { border-top: 1px solid var(--line); padding: .2rem 0; }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 700; padding: .75rem 2rem .75rem 0; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .3rem; top: .55rem; font: 400 1.4rem var(--mono); color: var(--teal); }
.qa details[open] summary::after { content: "\2212"; }
.qa-a p { margin: 0 0 .9rem; color: var(--ink-2); }
.sources { margin-top: 2.2rem; font-size: .9rem; }
.sources h2 { font-size: 1.05rem; }
.sources li { margin: .3rem 0; }
.sources span { color: var(--mute); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .88rem; margin-top: 2rem; color: var(--mute); }
.share a, .share button { font: 600 .82rem var(--sans); border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .75rem; color: var(--ink-2); text-decoration: none; background: transparent; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--teal); color: var(--teal); }
.related { margin-top: 2.2rem; }
.related h2 { font-size: 1.05rem; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.related a { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.related a:hover { border-color: var(--teal); }
.related small { display: block; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--teal); margin-bottom: .2rem; }

/* tools */
.tool { background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .tt-grid { grid-template-columns: 1fr; } }
.field { margin: 0 0 1rem; }
.field > label, .tt-row > label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
textarea, input[type=text], input:not([type]), select { width: 100%; font: 400 .9rem/1.55 var(--mono); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: .6rem .75rem; }
textarea { resize: vertical; }
select { font-family: var(--sans); font-size: .93rem; width: auto; max-width: 100%; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
textarea[readonly] { background: var(--paper); }
.opts { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: .7rem 1rem .8rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.opts legend { font-weight: 700; font-size: .9rem; padding: 0 .3rem; }
.opts label { display: inline-flex; gap: .45rem; align-items: center; font-size: .92rem; }
.opts input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
.opt-sel { display: inline-flex; gap: .4rem; align-items: center; font-size: .92rem; }
.tt-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; }
.tt-row > label { margin: 0; }
.tt-row input[type=range] { accent-color: var(--teal); width: min(260px, 100%); }
.tt-sum { font-size: .95rem; margin: .4rem 0 .8rem; color: var(--ink-2); }
.out-box { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; background: var(--bg); }
.out-label { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); margin: 0 0 .4rem; }
.tt-hl { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .98rem; }
.tt-hits table { font-size: .86rem; }
.tt-h { font-size: 1.1rem; margin: 1.4rem 0 .7rem; }
.tt-h:first-child { margin-top: 0; }
.tt-results, .tt-link-results, .tt-rule-results, .tt-rule-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tt-post { border: 1.5px solid var(--line); border-left-width: 5px; border-radius: 12px; padding: .75rem 1rem; margin-bottom: .7rem; background: var(--paper); }
.v-ok { border-left-color: var(--teal); } .v-review { border-left-color: var(--amber); } .v-spam { border-left-color: var(--coral); }
.tt-post-head { display: flex; align-items: center; gap: .6rem; }
.tt-score { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.1rem; border-radius: 8px; font: 600 .95rem var(--mono); background: var(--teal-bg); color: var(--teal); padding: 0 .4rem; }
.v-review .tt-score { background: var(--amber-bg); color: var(--amber); } .v-spam .tt-score { background: var(--coral-bg); color: var(--coral); }
.tt-verdict { font-weight: 700; }
.tt-n { margin-left: auto; font: .75rem var(--mono); color: var(--mute); }
.tt-post-text { margin: .5rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.tt-signals { list-style: none; padding: 0; margin: .3rem 0 0; font-size: .87rem; color: var(--ink-2); }
.tt-signals li { margin: .15rem 0; }
.tt-signals b { font-family: var(--mono); font-size: .8rem; color: var(--coral); display: inline-block; min-width: 2.4rem; }
.tt-signals span { color: var(--mute); }
.tt-rule { display: grid; grid-template-columns: 140px minmax(0, 1fr) 160px minmax(0, .8fr) 36px; gap: .45rem; align-items: center; padding: .45rem .5rem; border-radius: 10px; border-left: 4px solid var(--line-2); background: var(--bg); margin-bottom: .4rem; }
.tt-rule input, .tt-rule select { width: 100%; padding: .4rem .55rem; font-size: .86rem; }
.a-approve { border-left-color: var(--teal) !important; } .a-hold { border-left-color: var(--amber) !important; } .a-reject { border-left-color: var(--coral) !important; }
.tt-x { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.tt-x:hover { color: var(--coral); border-color: var(--coral); }
.tt-add { display: grid; grid-template-columns: 140px minmax(0, 1fr) 160px auto; gap: .45rem; margin: .6rem 0 1rem; }
.tt-add select { width: 100%; }
@media (max-width: 760px) {
  .tt-rule { grid-template-columns: 1fr 1fr 36px; }
  .tt-rule [data-f=value], .tt-rule [data-f=note] { grid-column: 1 / -1; }
  .tt-rule [data-f=kind] { grid-row: 1; grid-column: 1; } .tt-rule [data-f=action] { grid-row: 1; grid-column: 2; } .tt-rule .tt-x { grid-row: 1; grid-column: 3; }
  .tt-add { grid-template-columns: 1fr 1fr; } .tt-add input { grid-column: 1 / -1; grid-row: 1; }
}
.tt-rule-results li { border: 1.5px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 10px; padding: .55rem .8rem; margin-bottom: .45rem; background: var(--paper); }
.tt-rule-results p { margin: .25rem 0; overflow-wrap: anywhere; }
.tt-rule-results small { color: var(--mute); }
.tt-badge, .sample-out { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 999px; background: var(--teal-bg); color: var(--teal); }
.a-hold .tt-badge { background: var(--amber-bg); color: var(--amber); }
.a-reject .tt-badge, .sample-out.a-reject { background: var(--coral-bg); color: var(--coral); }
.sample-out { font-size: .85rem; padding: .35rem .9rem; }
.tt-msg { min-height: 1.4em; font-size: .9rem; color: var(--teal); }
.tt-changes { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.tt-changes li { margin: .25rem 0; }
.tt-card { margin: 0 0 .6rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem .9rem; font-size: .93rem; }
.tt-card.dark { background: #15202B; color: #E7E9EA; border-color: #38444D; }
.tt-card blockquote { margin: 0 0 .4rem; }
.tt-card figcaption { color: var(--mute); font-size: .8rem; overflow-wrap: anywhere; }
.tt-card.dark figcaption { color: #8B98A5; }
.tt-link-results > li { border: 1.5px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; padding: .7rem 1rem; margin-bottom: .7rem; background: var(--paper); }
.tt-link-results > li.lv-warn { border-left-color: var(--amber); } .tt-link-results > li.lv-bad { border-left-color: var(--coral); }
.tt-link-results p { margin: .2rem 0; overflow-wrap: anywhere; }
.tt-link-in code { background: none; padding: 0; font-weight: 600; }
.tt-link-out span { font-weight: 700; font-size: .85rem; }
.tt-flags { list-style: none; padding: 0; margin: .4rem 0; font-size: .9rem; }
.tt-flags li { position: relative; padding-left: 1.3rem; margin: .2rem 0; }
.tt-flags li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--mute); }
.tt-flags .f-bad::before { background: var(--coral); } .tt-flags .f-warn::before { background: var(--amber); } .tt-flags .f-ok::before { background: var(--teal); }
.tt-cmd { display: block; margin-top: .3rem; white-space: pre-wrap; }

/* 404 */
.nf { padding: 3rem 0 4rem; }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0; }
@media (max-width: 700px) { .nf-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 2.6rem 0 1.2rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 2rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--teal); text-decoration: underline; }
.foot-h { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); margin: 0 0 .6rem; }
.foot-about p { color: var(--ink-2); margin: 0 0 .7rem; max-width: 46ch; }
.foot .fine { font-size: .82rem; color: var(--mute); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--mute); font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media print { .top, .foot, .tool, .share, .related { display: none; } body { background: #fff; } }
.section .cards-tools, .cards-tools { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tool-head .byline { flex-wrap: nowrap; align-items: baseline; }
.tool-head .dot-ok { flex: none; transform: translateY(-1px); }
