/* TempMailify. Editorial, quiet, made with care: warm paper, hairline rules, serif headings, ink buttons. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular-latin.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold-latin.woff") format("woff"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic-latin.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
:root {
  --ink: #141619; --ink-2: #363a41; --ink-3: #61656d; --ink-4: #93969c;
  --line: #e8e6e1; --line-2: #f0eeea; --rule: #dcd8d0;
  --bg: #ffffff; --paper: #f8f7f4; --surface: #ffffff; --sunk: #f4f3ef;
  --accent: #c2410c; --accent-600: #9a3412; --accent-50: #fdf1ea;
  --brand: var(--ink); --brand-ink: #ffffff;
  --good: #1a7f45; --good-50: #eaf6ee; --warn: #a15c07; --warn-50: #fdf5e6; --bad: #b42318; --bad-50: #fdf0ee; --blue: #2445a8; --blue-50: #eef1fb;
  --r-sm: 4px; --r: 6px; --r-lg: 8px;
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1180px; --hdr: 60px;
  color-scheme: light;
}
[data-theme=dark] {
  --ink: #ecebe7; --ink-2: #c9c7c1; --ink-3: #9d9b95; --ink-4: #75736e;
  --line: #2c2b29; --line-2: #232220; --rule: #3a3936;
  --bg: #141413; --paper: #191918; --surface: #1d1c1b; --sunk: #171716;
  --accent: #f0864a; --accent-600: #f6a273; --accent-50: #2b1d14;
  --brand: #ecebe7; --brand-ink: #141413;
  --good: #5fc98b; --good-50: #15261b; --warn: #e7b04f; --warn-50: #2a2213; --bad: #f08a80; --bad-50: #2c1816; --blue: #9fb4f0; --blue-50: #1a1f2e;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern", "calt", "cv11"; }
img, svg { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; letter-spacing: -0.012em; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); }
h3 { font-size: 1.1rem; }
h4 { font-family: var(--sans); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--sunk); border: 1px solid var(--line-2); padding: .05em .35em; border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.muted { color: var(--ink-3); }
.grad { color: var(--accent); font-style: italic; }
.ico-i { width: 18px; height: 18px; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 6px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 650; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.015em; margin-inline-end: 22px; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.logo b { color: var(--accent); font-weight: 650; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 11px; border: 0; background: none; border-radius: 4px; color: var(--ink-2); font-weight: 500; font-size: .93rem; }
.nav-top:hover, .nav-item.open > .nav-top { color: var(--ink); background: var(--sunk); }
.nav-top .chev { width: 13px; height: 13px; transition: transform .15s; opacity: .6; }
.nav-item.open > .nav-top .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); inset-inline-start: -8px; min-width: 540px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 16px 40px -20px rgba(30, 24, 12, .28); padding: 8px; display: none; grid-template-columns: 1fr 1fr; gap: 0 4px; z-index: 60; }
.mega.one { min-width: 300px; grid-template-columns: 1fr; }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
@media (hover: hover) and (min-width: 1001px) { .nav-item:hover > .mega { display: grid; } }
.nav-item.open > .mega { display: grid; }
.mega a { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.mega a:hover { background: var(--paper); color: var(--ink); }
.mega a:hover b { color: var(--accent); }
.mega .mi { width: 20px; height: 20px; color: var(--ink-3); display: grid; place-items: center; flex: none; margin-top: 1px; }
.mega .mi svg { width: 18px; height: 18px; }
.mega b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.mega small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line-2); margin-top: 6px; padding: 8px 10px 2px; font-size: .86rem; }
.mega .mega-foot a { display: inline; padding: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid transparent; background: none; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.theme-dark-i { display: none; }
[data-theme=dark] .theme-dark-i { display: block; } [data-theme=dark] .theme-light-i { display: none; }
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-wrap svg { position: absolute; inset-inline-start: 9px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.lang-select { appearance: none; border: 1px solid transparent; background: none; padding: 0 10px 0 30px; border-radius: 4px; font-size: .88rem; color: var(--ink-2); height: 36px; cursor: pointer; }
.lang-select:hover { background: var(--sunk); }
.install-btn { height: 36px; }
.menu-btn { display: none; }
.nav-mobile-extra { display: none; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-weight: 560; font-size: .9rem; padding: 0 14px; height: 38px; border-radius: var(--r); transition: background .12s, border-color .12s, color .12s; white-space: nowrap; line-height: 1; text-decoration: none; }
.btn:hover { background: var(--paper); border-color: var(--ink-4); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary, .btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover, .btn-brand:hover { background: color-mix(in srgb, var(--brand) 86%, var(--accent)); border-color: color-mix(in srgb, var(--brand) 86%, var(--accent)); color: var(--brand-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunk); border-color: transparent; }
.btn-danger { color: var(--ink-2); }
.btn-danger:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--rule)); background: var(--bad-50); }
.btn-lg { height: 46px; padding: 0 20px; font-size: .98rem; }
.btn-sm { height: 30px; padding: 0 10px; font-size: .82rem; gap: 6px; border-radius: 4px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { border: 0; background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 5px; font-size: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--accent); }
.linkbtn svg { width: 14px; height: 14px; }

/* ============ Hero / tool region ============ */
.hero { padding: 28px 0 34px; background: linear-gradient(var(--paper), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap.app-wrap { display: flex; flex-direction: column; }
.hero-inner { order: 2; max-width: 860px; margin: 30px 0 0; }
.hero-inner h1 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); margin-bottom: .35em; }
.hero-inner .lead { font-size: 1.05rem; color: var(--ink-2); max-width: 720px; margin: 0; }
.hero .app-wrap > .tool { order: 1; width: 100%; }
.hero .app-wrap > .trust-row { order: 3; }
.hero .app-wrap > .live-counters { order: 4; }
.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ink-4); }
.trust-row { margin: 12px 0 0; color: var(--ink-3); font-size: .88rem; }
.live-counters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; font-size: .86rem; color: var(--ink-3); }
.live-counters b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============ The inbox app ============ */
.tool { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; text-align: start; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 16, 10, .05), 0 18px 40px -24px rgba(20, 16, 10, .22); }
.tool-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.inbox-tabs { display: flex; gap: 0; flex-wrap: wrap; margin: -4px 0 12px; border-bottom: 1px solid var(--line-2); }
.inbox-tabs:empty { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font-size: .84rem; font-weight: 550; height: 34px; padding: 0 10px; margin-bottom: -1px; max-width: 240px; font-family: var(--mono); }
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab .badge { background: var(--accent); color: #fff; border-radius: 3px; font-size: .66rem; padding: 0 5px; min-width: 16px; text-align: center; font-style: normal; line-height: 16px; font-family: var(--sans); }
.tab-add { color: var(--ink-3); font-family: var(--sans); }
.tab-saved { font-family: var(--sans); }
.tab-saved.active { border-bottom-color: var(--warn); }
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule); background: var(--bg); border-radius: var(--r); padding: 8px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.addr-box:hover { border-color: var(--ink-4); }
.addr-box.flash { border-color: var(--good); background: var(--good-50); }
.addr-icon { width: 20px; height: 20px; flex: none; color: var(--ink-3); display: grid; place-items: center; }
.addr-icon svg { width: 20px; height: 20px; }
.addr-text { min-width: 0; flex: 1; }
.addr-label { display: block; font-size: .76rem; color: var(--ink-3); }
.addr { font-family: var(--mono); font-size: clamp(1.02rem, 2vw, 1.28rem); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; }
.addr .addr-dom { color: var(--ink-3); font-weight: 500; }
.addr-copy { height: auto; min-height: 52px; padding: 0 22px; font-size: .96rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tool-actions .btn { height: 32px; font-size: .84rem; font-weight: 500; padding: 0 10px; border-color: transparent; background: transparent; color: var(--ink-2); border-radius: 4px; }
.tool-actions .btn:hover { background: var(--sunk); border-color: transparent; color: var(--ink); }
.tool-actions .btn svg { width: 15px; height: 15px; color: var(--ink-3); }
.tool-actions .btn-danger { margin-inline-start: auto; }
.tool-actions .btn-danger:hover { color: var(--bad); background: var(--bad-50); }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 8px; font-size: .82rem; color: var(--ink-3); }
.tool-meta b { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; font-family: var(--mono); font-size: .8rem; }
.tool-meta b.soon { color: var(--warn); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: blink 2.4s infinite; }
.tool[data-state=error] .live { color: var(--bad); }
.tool[data-state=error] .live-dot { background: var(--bad); animation: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.provider-note { margin-inline-start: auto; font-size: .76rem; }
.tool-body { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); min-height: 420px; }
.msg-list { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.msg-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 16px; font-size: .82rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.list-tools { display: flex; align-items: center; gap: 6px; }
.search-in { width: 150px; border: 1px solid var(--line); border-radius: 4px; height: 28px; padding: 0 8px; font-size: .82rem; color: var(--ink); background: var(--bg); font-weight: 400; }
.search-in:focus { outline: 0; border-color: var(--ink-4); }
.msg { display: block; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 12px 16px 12px 22px; position: relative; color: inherit; }
.msg:hover { background: var(--paper); }
.msg.active { background: var(--paper); box-shadow: inset 2px 0 0 var(--accent); }
.msg.unread::before { content: ""; position: absolute; inset-inline-start: 9px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.msg-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.msg-from { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { font-size: .74rem; color: var(--ink-4); flex: none; font-variant-numeric: tabular-nums; }
.msg-subj { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.msg.unread .msg-subj { font-weight: 600; color: var(--ink); }
.msg-prev { font-size: .8rem; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; }
.msg-chip.muted { color: var(--ink-3); font-weight: 500; }
.hint-row { font-size: .78rem; color: var(--ink-3); padding: 9px 16px; margin: 0; border-bottom: 1px solid var(--line-2); background: var(--warn-50); }
.empty { display: grid; place-items: center; text-align: center; padding: 48px 26px; color: var(--ink-3); height: 100%; }
.empty h3 { color: var(--ink); margin-top: 14px; font-size: 1.08rem; }
.empty p { max-width: 290px; margin: 0 auto; font-size: .88rem; }
.radar { position: relative; width: 48px; height: 48px; margin: 0 auto; }
.radar::before, .radar::after { display: none; }
.radar .env { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--ink-3); background: var(--bg); }
.radar .env::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--surface); animation: blink 2.4s infinite; }
.radar .env svg { width: 20px; height: 20px; }
.reader { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.reader-empty { display: grid; place-items: center; height: 100%; color: var(--ink-4); font-size: .9rem; padding: 32px; text-align: center; font-family: var(--serif); font-style: italic; }
.reader-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.reader-head h2 { font-size: 1.25rem; margin-bottom: 10px; word-break: break-word; }
.reader-from { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; flex: none; font-size: .86rem; }
.reader-from small { display: block; color: var(--ink-3); font-size: .78rem; }
.reader-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.reader-back { display: none; margin-bottom: 8px; }
.btn.starred { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--rule)); background: var(--warn-50); }
.smart { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 0; }
.smart:empty { display: none; }
.otp { display: flex; align-items: center; gap: 14px; border: 1px solid var(--rule); border-left: 3px solid var(--good); border-radius: var(--r); padding: 8px 8px 8px 14px; background: var(--bg); }
.otp small { display: block; font-size: .74rem; color: var(--ink-3); }
.otp b { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .12em; }
.verify { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-left: 3px solid var(--blue); border-radius: var(--r); padding: 10px 14px; font-weight: 550; color: var(--ink); text-decoration: none; background: var(--bg); }
.verify:hover { color: var(--blue); }
.xray { margin: 14px 20px 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.xray-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; }
.xray-head b { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.xray-body { padding: 0 14px 14px; display: grid; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.xray[data-open=false] .xray-body { display: none; }
.verdict { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; padding: 2px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid transparent; line-height: 1.35; }
.verdict svg { width: 13px; height: 13px; }
.v-good { background: var(--good-50); color: var(--good); border-color: color-mix(in srgb, var(--good) 22%, transparent); } .v-warn { background: var(--warn-50); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); } .v-bad { background: var(--bad-50); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 22%, transparent); } .v-na { background: var(--sunk); color: var(--ink-3); border-color: var(--line); }
.xr-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .85rem; }
.xr-row > span:first-child { min-width: 140px; color: var(--ink-3); }
.xr-links { display: grid; gap: 6px; font-size: .82rem; max-height: 180px; overflow: auto; }
.xr-links div { display: flex; gap: 8px; align-items: center; }
.xr-links code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.reader-content { padding: 14px 20px 20px; flex: 1; min-height: 260px; }
.reader-content iframe { width: 100%; border: 0; min-height: 300px; background: #fff; border-radius: 4px; }
.reader-content pre { white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: .94rem; margin: 0; color: var(--ink-2); }
.atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.att { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: var(--r); padding: 7px 11px; font-size: .84rem; color: var(--ink); background: var(--surface); }
.att:hover { border-color: var(--ink-4); }
.att small { color: var(--ink-3); }
.tool-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 9px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.prefs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .82rem; color: var(--ink-2); }
.prefs label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.prefs input { accent-color: var(--ink); width: 14px; height: 14px; }
.stats-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .82rem; color: var(--ink-3); }
.stats-strip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-strip:empty { display: none; }
.tips { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed var(--rule); border-radius: var(--r); padding: 8px 12px; font-size: .84rem; color: var(--ink-2); background: var(--bg); }
.tips ol { margin: 0; padding-inline-start: 1.2em; display: flex; flex-wrap: wrap; gap: 2px 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 500; font-size: .9rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: .2s; z-index: 90; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
dialog { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .4); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(20, 18, 14, .45); }
.dlg { padding: 22px 24px; }
.dlg h3 { font-size: 1.2rem; }
.dlg p { color: var(--ink-3); font-size: .9rem; }
.dlg-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.input { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); height: 42px; padding: 0 12px; color: var(--ink); background: var(--surface); }
textarea.input { height: auto; padding: 10px 12px; }
.input:focus { border-color: var(--ink-3); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.name-row { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; direction: ltr; background: var(--surface); }
.name-row:focus-within { border-color: var(--ink-3); }
.name-row input { border: 0; flex: 1; min-width: 0; height: 42px; padding: 0 12px; font-family: var(--mono); outline: 0; background: transparent; color: var(--ink); }
.name-row select { border: 0; border-inline-start: 1px solid var(--line); background: var(--paper); height: 42px; padding: 0 10px; font-family: var(--mono); font-size: .88rem; max-width: 55%; color: var(--ink); }
.form-error { color: var(--bad); font-size: .85rem; min-height: 1.2em; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); margin: 8px auto 14px; width: fit-content; }
.qr-box canvas { width: 220px; height: 220px; image-rendering: pixelated; }
kbd { background: var(--surface); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; font-size: .78rem; }
.keys { width: 100%; border-collapse: collapse; font-size: .9rem; }
.keys td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.keys td:last-child { text-align: end; }
.install-steps { margin: 12px 0 0; padding-inline-start: 1.2em; color: var(--ink-2); }
.install-steps li { margin-bottom: 8px; }

/* ============ Ads (reserved space, never inside the app) ============ */
.ad { display: none; }
.ads-on .ad { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 28px auto; max-width: var(--wrap); padding-inline: 28px; }
.ad::before { content: "Advertisement"; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.ad-slot { width: 100%; display: flex; justify-content: center; align-items: center; }
.ad-leader .ad-slot { min-height: 100px; max-width: 970px; }
.ad-rect .ad-slot { min-height: 280px; max-width: 336px; }
.ad-infeed .ad-slot { min-height: 250px; max-width: 760px; }
.ads-preview .ad-slot { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, var(--sunk) 10px, var(--sunk) 20px); border: 1px dashed var(--rule); color: var(--ink-4); font-size: .8rem; }
.ads-preview .ad-slot::after { content: "Ad space"; }
.side-ad { position: sticky; top: calc(var(--hdr) + 20px); }

/* ============ Sections ============ */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block.soft { background: var(--paper); }
section.block.ink { background: var(--paper); }
.sec-head { max-width: 760px; margin: 0 0 30px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { margin-bottom: .3em; }
.sec-head p { color: var(--ink-2); font-size: 1.04rem; margin: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.grid { display: grid; gap: 0 28px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* cards become ruled entries: a top hairline, no boxes */
.card { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 16px 0 20px; }
a.card { color: inherit; display: block; text-decoration: none; }
a.card h3 { color: var(--ink); }
a.card:hover h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card p { color: var(--ink-3); font-size: .92rem; margin: 0; }
.card h3 { margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.card h3 svg { width: 18px; height: 18px; color: var(--ink-3); }
.card .more { display: inline-block; margin-top: 10px; font-size: .86rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a.card:hover .more { color: var(--accent); }
.ico { display: none; }
.bento { display: grid; gap: 0 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento > .card.hero-card { grid-column: span 2; }
.bento > .card.hero-card h3 { font-size: 1.35rem; }
.bento > .card.hero-card p { font-size: 1rem; color: var(--ink-2); max-width: 560px; }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 16px; padding-inline-start: 44px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; inset-inline-start: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; color: var(--accent); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 7px; border-left: 1.6px solid var(--good); border-bottom: 1.6px solid var(--good); transform: rotate(-45deg) translate(2px, -2px); }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 30px 15px 0; font-weight: 600; position: relative; font-family: var(--serif); font-size: 1.04rem; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 16px; color: var(--ink-2); max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.chip { display: inline-flex; align-items: center; border: 0; background: none; padding: 2px 0; font-size: .92rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.chip:hover { color: var(--accent); text-decoration-color: var(--accent); }
button.chip { font-family: var(--mono); font-size: .86rem; border: 1px solid var(--rule); border-radius: 4px; padding: 4px 9px; text-decoration: none; background: var(--surface); }
.cta { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r-lg); padding: 32px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0 0 6px; }
.cta p { color: var(--ink-2); margin: 0; max-width: 620px; }
.cta .btn-ghost-light { background: transparent; }
.mock { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); padding: 6px 18px; font-size: .86rem; }
.mock .row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: center; flex-wrap: wrap; }
.mock .row:last-child { border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.big-stats .card b { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.big-stats .kicker { margin-bottom: 4px; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.stat-band > div { border-top: 1px solid var(--rule); padding-top: 14px; }
.stat-band b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-band span { font-size: .88rem; color: var(--ink-3); }

/* ============ Article pages ============ */
.page-hero { padding: 40px 0 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 760px; margin-bottom: 12px; font-family: var(--serif); }
.meta { font-size: .84rem; color: var(--ink-3); display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 40px 0 72px; }
.prose { font-size: 1.04rem; color: var(--ink-2); max-width: 720px; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ink-4); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-inline-start: 2px solid var(--accent); color: var(--ink-2); font-family: var(--serif); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.3em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; text-align: start; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; border-bottom-color: var(--rule); }
.tldr { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 14px 0 16px; margin-bottom: 26px; color: var(--ink); font-size: 1.02rem; }
.tldr strong { display: block; font-size: .8rem; color: var(--accent); margin-bottom: 4px; font-weight: 600; }
.tldr ul { margin: 6px 0 0; }
.toc { border-top: 1px solid var(--rule); padding: 14px 0; font-size: .88rem; }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 1rem; }
.toc ol { margin: 0; padding-inline-start: 1.1em; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.aside > * + * { margin-top: 22px; }
.mini-cta { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; background: var(--surface); }
.mini-cta h3 { font-size: 1.05rem; }
.mini-cta p { color: var(--ink-3); font-size: .9rem; }
.mini-cta .btn { background: var(--brand) !important; color: var(--brand-ink) !important; border-color: var(--brand) !important; }
.related { padding-top: 14px; }
.related h3 { font-size: 1rem; }
.related a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.related a:hover { color: var(--accent); }
.tool-embed { padding: 20px 0 8px; background: var(--paper); }
.prose table.settings-table, .settings-table { display: table; width: 100%; border-collapse: collapse; font-size: .95rem; }
.settings-table th, .settings-table td { padding: 11px 14px 11px 0; border: 0; border-bottom: 1px solid var(--line); text-align: start; background: none; }
.settings-table th { width: 32%; color: var(--ink-3); font-weight: 500; }
.reviewed { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--good); font-weight: 500; }
.code-pill { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 600; padding: 1px 8px; border-radius: 3px; font-size: .8rem; border: 1px solid; }
.code-pill.perm { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-50); } .code-pill.temp { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-50); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 26px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 10px 14px 12px 0; }
.facts div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.facts small { display: block; color: var(--ink-3); font-size: .76rem; }
.facts b { font-size: .95rem; color: var(--ink); font-weight: 600; }
.example { font-family: var(--mono); font-size: .86rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--ink-4); border-radius: 4px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }

/* ============ Summarize with AI ============ */
.ai-band { border-top: 1px solid var(--line); background: var(--bg); }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 18px 0; }
.ai-row > span { font-size: .88rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.ai-row > span svg { width: 16px; height: 16px; color: var(--accent); }
.ai-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ai-links a { font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.ai-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ============ Tool pages ============ */
.tool-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px; max-width: 880px; }
.tool-form { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-form .input { flex: 1; min-width: 200px; }
.result { margin-top: 16px; }
.result table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.result th, .result td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: top; }
.result th { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.result td code { word-break: break-all; }
.gen-out { font-family: var(--mono); font-size: 1.2rem; padding: 14px 16px; border: 1px solid var(--rule); background: var(--bg); border-radius: var(--r); word-break: break-all; margin: 10px 0 14px; direction: ltr; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0; }
.checks label { display: inline-flex; gap: 6px; align-items: center; }
.meter { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--good); transition: width .2s; }
.code-block { background: #1c1b19; color: #ece9e2; border-radius: var(--r); padding: 14px 16px; font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.bm-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r); background: var(--brand); color: var(--brand-ink) !important; font-weight: 600; cursor: grab; text-decoration: none; }

/* ============ Footer ============ */
.site-footer { background: var(--paper); color: var(--ink-3); padding: 52px 0 26px; font-size: .9rem; border-top: 1px solid var(--rule); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.foot-grid h4 { color: var(--ink); font-size: .84rem; font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 7px 0; }
.site-footer .logo { color: var(--ink); }
.foot-about { max-width: 300px; margin: 12px 0 14px; color: var(--ink-3); }
.foot-badges { display: none; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; } .aside { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); } .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .install-label { display: none; } .install-btn { width: 36px; padding: 0; }
}
@media (max-width: 1000px) {
  :root { --hdr: 54px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: fixed; top: var(--hdr); inset-inline: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 4px 18px 32px; overflow-y: auto; z-index: 55; }
  .nav-links.open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; justify-content: space-between; height: 52px; padding: 0 2px; font-size: 1.05rem; color: var(--ink); font-family: var(--serif); font-weight: 600; }
  .nav-top:hover, .nav-item.open > .nav-top { background: none; }
  .mega, .mega.one { position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px; grid-template-columns: 1fr; background: none; }
  .nav-item.open > .mega { display: grid; }
  .mega a { padding: 8px 2px; }
  .nav-mobile-extra { display: block; padding: 18px 2px; }
  .lang-wrap { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 900px) {
  .wrap { padding-inline: 16px; }
  .hero { padding: 10px 0 18px; }
  .hero .wrap.app-wrap { padding-inline: 10px; }
  .hero-inner { margin-top: 18px; padding-inline: 6px; }
  .hero-inner h1 { font-size: 1.36rem; }
  .hero-inner .lead { font-size: .95rem; }
  .hero .crumbs { display: none; }
  .trust-row { font-size: .8rem; padding-inline: 6px; margin-top: 8px; }
  .live-counters { padding-inline: 6px; }
  .tool { border-radius: 8px; }
  .tool-head { padding: 10px 10px 8px; }
  .inbox-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -2px -10px 8px; padding: 0 6px; }
  .inbox-tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; height: 32px; }
  .addr-row { gap: 6px; }
  .addr-box { padding: 7px 10px; gap: 8px; }
  .addr-icon { display: none; }
  .addr-label { font-size: .7rem; }
  .addr { font-size: .98rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
  .addr-copy { min-height: 46px; padding: 0 14px; font-size: .9rem; }
  .tool-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 6px -10px 0; padding: 0 6px 2px; gap: 2px; }
  .tool-actions::-webkit-scrollbar { display: none; }
  .tool-actions .btn { flex: none; height: 32px; font-size: .82rem; padding: 0 9px; }
  .tool-actions .btn-danger { margin-inline-start: 0; }
  .tool-meta { margin-top: 6px; gap: 2px 14px; font-size: .78rem; }
  .tool-meta .linkbtn[data-act=label] { display: none; }
  .tips { display: none; }
  .tool-body { grid-template-columns: 1fr; min-height: 0; }
  .msg-list { border-inline-end: 0; max-height: none; }
  .msg-list-head { height: 40px; padding: 0 8px 0 12px; }
  .msg { padding: 11px 12px 11px 20px; }
  .empty { padding: 24px 18px; }
  .radar { width: 42px; height: 42px; } .radar .env svg { width: 18px; height: 18px; }
  .empty h3 { margin-top: 10px; font-size: 1rem; }
  .empty p { font-size: .82rem; }
  .tool-foot { padding: 8px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prefs, .stats-strip { flex-wrap: nowrap; white-space: nowrap; font-size: .76rem; }
  .tool .reader { display: none; }
  .tool.reading .reader { display: flex; position: fixed; inset: 0; z-index: 70; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: slidein .2s ease; }
  .reader-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 8px 14px 10px; }
  .reader-back { display: inline-flex; margin: 0 0 4px -6px; font-weight: 600; color: var(--ink); border-color: transparent; }
  .reader-head h2 { font-size: 1.12rem; }
  .reader-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .reader-tools::-webkit-scrollbar { display: none; }
  .reader-tools .btn { flex: none; min-height: 34px; }
  .smart { padding: 10px 14px 0; } .otp { flex: 1; justify-content: space-between; } .verify { flex: 1; justify-content: center; }
  .xray { margin: 10px 14px 0; } .xr-row > span:first-child { min-width: 0; width: 100%; }
  .reader-content { padding: 12px 14px 80px; }
  .atts { padding: 0 14px 20px; }
  body.reader-open { overflow: hidden; }
  .tool-embed { padding: 8px 0 0; background: none; }
  .tool-embed .wrap { padding-inline: 10px; }
  section.block { padding: 40px 0; }
  .sec-head { margin-bottom: 18px; } .sec-head p { font-size: .96rem; }
  .page-hero { padding: 20px 0 16px; } .page-hero h1 { font-size: 1.55rem; } .page-hero .lead { font-size: 1rem; }
  .layout { padding: 22px 0 44px; gap: 0; } .prose { font-size: 1rem; line-height: 1.68; }
  .g3 { grid-template-columns: 1fr 1fr; } .stat-band { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .bento { grid-template-columns: 1fr 1fr; } .bento > .card.hero-card { grid-column: span 2; }
  .facts { grid-template-columns: 1fr; } .facts div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .cta { padding: 22px 20px; }
  .ad-leader .ad-slot { min-height: 60px; }
  .ai-row { padding: 14px 0; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .bento, .big-stats { grid-template-columns: 1fr; } .bento > .card.hero-card { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; }
  .search-in { width: 110px; }
  .provider-note { margin-inline-start: 0; }
  .logo { margin-inline-end: 0; font-size: 1.12rem; } .logo svg { width: 26px; height: 26px; }
}
@keyframes slidein { from { transform: translateX(14px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .ad, .tool-actions, .tool-foot, .ai-band { display: none !important; } }

/* ============ Safety grade (Email X-ray) ============ */
.grade { display: inline-flex; align-items: center; gap: 10px; }
.grade-tile { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1; color: #fff; flex: none; }
.grade-A .grade-tile { background: #1a7f45; } .grade-B .grade-tile { background: #4d7c2a; } .grade-C .grade-tile { background: #a15c07; } .grade-D .grade-tile { background: #c2410c; } .grade-F .grade-tile { background: #b42318; }
.grade-txt b { display: block; font-size: .95rem; font-weight: 650; color: var(--ink); line-height: 1.25; }
.grade-txt small { display: block; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grade-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin: 2px 14px 10px; }
.grade-bar i { display: block; height: 100%; border-radius: 3px; }
.grade-A + .grade-bar i, .grade-bar.g-A i { background: #1a7f45; } .grade-bar.g-B i { background: #4d7c2a; } .grade-bar.g-C i { background: #a15c07; } .grade-bar.g-D i { background: #c2410c; } .grade-bar.g-F i { background: #b42318; }
.xray-head { padding: 12px 14px; }
.xr-row { padding: 2px 0; }
.msg-grade { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font-size: .74rem; font-weight: 700; color: #fff; margin-inline-end: 6px; vertical-align: middle; font-family: var(--serif); }
.msg-grade.g-A { background: #1a7f45; } .msg-grade.g-B { background: #4d7c2a; } .msg-grade.g-C { background: #a15c07; } .msg-grade.g-D { background: #c2410c; } .msg-grade.g-F { background: #b42318; }
.xray-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.xray-more { font-size: .8rem; color: var(--ink-3); font-weight: 560; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.xray-more::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.xray[data-open="true"] .xray-more::after { transform: rotate(-135deg) translateY(-1px); }
[data-theme="dark"] .grade-bar { background: #2a2c30; }
/* AI assistant buttons with their logos */
.ai-links a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 9px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); text-decoration: none; font-size: .88rem; font-weight: 560; }
.ai-links a:hover { border-color: var(--ink-3); color: var(--ink); background: var(--paper); }
.ai-links img { width: 18px; height: 18px; border-radius: 4px; }
.ai-links { gap: 8px; }
/* data tables inside articles */
.table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { display: table; margin: 0; min-width: 100%; }
.prose .table-wrap th, .prose .table-wrap td { padding: 10px 14px; }
.prose .table-wrap thead th { background: var(--paper); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.prose .table-wrap tbody tr:last-child td { border-bottom: 0; }
.prose .table-wrap td:first-child { font-weight: 560; color: var(--ink); }
.example mark { background: #fff1c2; color: inherit; padding: 0 2px; border-radius: 2px; }
[data-theme="dark"] .example mark { background: #4a3b10; }
/* terms used on this page */
.terms { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); margin: 1em 0 1.6em; }
.terms > div { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 14px; }
.terms dt { font-weight: 620; } .terms dd { margin: 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 560px) { .terms > div { grid-template-columns: 1fr; gap: 2px; } }

/* ================= v8 polish: publication-grade details ================= */
:root { --r: 8px; --r-lg: 12px; --shadow-1: 0 1px 2px rgba(20,16,10,.06); --shadow-2: 0 1px 2px rgba(20,16,10,.05), 0 10px 28px -16px rgba(20,16,10,.25); }
::selection { background: #ffe2c7; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1 { letter-spacing: -0.022em; }
h2 { letter-spacing: -0.015em; }
.lead { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* header */
.site-header { background: rgba(255,255,255,.92); }
[data-theme="dark"] .site-header { background: rgba(20,21,23,.9); }
.nav-top { border-radius: 6px; font-weight: 520; }
.mega { border-radius: 12px; box-shadow: 0 2px 4px rgba(20,16,10,.04), 0 24px 48px -20px rgba(20,16,10,.28); padding: 10px; }
.mega a { border-radius: 8px; }
.mega a:hover { background: var(--paper); }

/* buttons */
.btn { border-radius: 8px; box-shadow: var(--shadow-1); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-brand { box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(0,0,0,.18); }

/* page hero: quiet paper band with a fine rule */
.page-hero { padding: 44px 0 32px; background: linear-gradient(180deg, var(--paper), var(--bg)); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); margin-inline-end: 12px; vertical-align: middle; }

/* article typography */
.prose { font-size: 1.04rem; line-height: 1.72; color: var(--ink-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: 1.55rem; margin-top: 2.1em; padding-top: .2em; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.16rem; margin-top: 1.6em; }
.prose a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ol > li::marker { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose ul:not(.checklist) > li::marker { color: var(--ink-4); }
.prose li { margin: .32em 0; }
.prose code { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.tldr { border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--paper); padding: 16px 20px; }
.tldr strong { text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; }
.prose blockquote { font-style: normal; font-family: var(--sans); background: var(--paper); border-radius: 0 8px 8px 0; padding: 12px 18px; }
.facts { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.facts div { padding: 12px 16px; }
.facts div + div { padding-inline-start: 16px; }
.example { border-radius: 8px; border-left-width: 3px; border-left-color: var(--accent); line-height: 1.65; }

/* cards and sections */
.card h3 { font-size: 1.12rem; }
a.card { transition: border-color .15s; }
a.card:hover h3 { color: var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 600; color: var(--accent); }
.block.soft { background: var(--paper); }
.toc { position: relative; }
.toc a { display: block; padding: 2px 0; }
.related a { transition: color .15s, padding .15s; }
.related a:hover { padding-inline-start: 4px; }
.mini-cta { background: linear-gradient(180deg, var(--surface), var(--paper)); box-shadow: var(--shadow-1); }
.faq summary { font-size: 1.06rem; }

/* tool */
.tool { border-radius: 14px; }

/* footer */
.site-footer { background: #151618; color: #a7a9ad; border-top: 0; }
.site-footer a { color: #d6d7d9; }
.site-footer a:hover { color: #fff; }
.foot-grid h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.site-footer .logo { color: #fff; }
.foot-about { color: #a7a9ad; }
.foot-bottom { border-top-color: #2a2c30; color: #8b8e93; }
[data-theme="dark"] .site-footer { background: #0e0f10; }

/* AI band */
.ai-band { border-top: 1px solid var(--line); background: var(--surface); }

@media (max-width: 640px) {
  .prose { font-size: 1rem; line-height: 1.68; }
  .prose h2 { font-size: 1.32rem; }
  .page-hero { padding: 26px 0 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 16px; }
  .grade-tile { width: 38px; height: 38px; font-size: 1.35rem; }
  .ai-links a { height: 34px; padding: 0 11px 0 8px; font-size: .84rem; }
}
.cta .btn { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cta { background: linear-gradient(135deg, var(--paper), var(--surface)); }
/* AI logos: always on a white tile so dark and light logos stay visible in both themes */
.ai-links a { padding: 0 13px 0 5px; }
.ai-ico { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #e4e2dd; display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.ai-ico img { width: 16px; height: 16px; border-radius: 3px; }
.ai-ico-letter::before { content: attr(data-l); font: 700 .78rem/1 var(--sans); color: #1d1f23; }
[data-theme="dark"] .ai-ico { border-color: #3a3c40; }
[data-theme="dark"] .ai-links a { background: #1c1d20; border-color: #34363a; color: #e8e8ea; }
[data-theme="dark"] .ai-links a:hover { background: #26282b; border-color: #4a4c50; }
.ai-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #17191c; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: .9rem; z-index: 200; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.rel-guides { display: grid; gap: 10px; margin: .6em 0 1.6em; }
.prose a.rel-guide { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); transition: border-color .15s, background .15s; }
.prose a.rel-guide:hover { border-color: var(--ink-4); background: var(--paper); }
.rel-guide b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.rel-guide span { display: block; color: var(--ink-3); font-size: .93rem; line-height: 1.55; }
.tool-list li { margin: .4em 0; }
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: .6em 0 1.6em; } @media (max-width: 640px) { .uc-grid { grid-template-columns: 1fr; } }
/* in-page dialogs */
dialog.tm-ask { border: 0; padding: 0; border-radius: 14px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.tm-ask::backdrop { background: rgba(15,16,18,.45); backdrop-filter: blur(2px); }
dialog.tm-ask .dlg { padding: 22px 22px 18px; }
dialog.tm-ask h3 { font-size: 1.2rem; margin: 0 0 6px; }
dialog.tm-ask p { color: var(--ink-3); margin: 0 0 14px; font-size: .94rem; }
dialog.tm-ask .input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink); margin-bottom: 16px; }
dialog.tm-ask .input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
dialog.tm-ask .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; border-color: #912018; color: #fff; }
.provider-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ================= Mobile inbox: everything visible, nothing scrolls sideways ================= */
@media (max-width: 640px) {
  .addr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .addr-box { padding: 8px 12px; min-width: 0; }
  .addr { white-space: nowrap; overflow: hidden; text-overflow: clip; overflow-wrap: normal; font-size: 1.02rem; line-height: 1.35; }
  .addr-copy { min-height: 54px; padding: 0 14px; flex-direction: column; gap: 2px; font-size: .74rem; }
  .addr-copy svg { width: 18px; height: 18px; }
  .tool-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; overflow: visible; margin: 8px 0 0; padding: 0; }
  .tool-actions .btn { flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0 2px; font-size: .68rem; font-weight: 560; line-height: 1.1; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; color: var(--ink-2); box-shadow: none; }
  .tool-actions .btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tool-actions .btn svg { width: 18px; height: 18px; color: var(--ink-2); }
  .tool-actions .btn-danger { color: var(--bad); background: var(--bad-50); border-color: transparent; }
  .tool-actions .btn-danger svg { color: var(--bad); }
  .tool-meta { justify-content: space-between; gap: 4px 10px; margin-top: 8px; }
  .tool-meta .linkbtn[data-act=label] { display: inline-flex; }
  .provider-note { width: 100%; font-size: .72rem; }
  .tool-foot { display: block; overflow: visible; padding: 10px 12px; }
  .prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; white-space: normal; font-size: .78rem; }
  .tool-foot .stats-strip, .tool-foot #tm-stats { display: none; }
  .empty { padding: 20px 16px; }
}
@media (max-width: 360px) {
  .tool-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
