/* Plag & AI Reports: one stylesheet for the public site, member area and console. */
:root {
  --paper: #F4EFE4; --paper-2: #EDE6D6; --card: #FFFDF8; --ink: #1D2521; --ink-2: #46524B; --muted: #6A746E; --line: #E2DBCB; --line-2: #D3CAB6;
  --leaf: #174D3A; --leaf-2: #0E3A2B; --leaf-soft: #DCE9DF; --leaf-mist: #EEF4EF;
  --clay: #C4542C; --clay-soft: #F8E2D5; --iris: #4C44B6; --iris-soft: #E4E2F7;
  --sun: #D99A2B; --sun-soft: #FBEFD3; --rose: #B3261E; --rose-soft: #F9E1DE; --ok: #1E7A4C; --ok-soft: #DDF0E4;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(29, 37, 33, .05), 0 6px 22px rgba(29, 37, 33, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { width: 18px; height: 18px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 28px; } }
[hidden] { display: none !important; }

/* ---------- buttons and form controls ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.b:hover { border-color: var(--ink-2); color: var(--ink); }
.b:active { transform: translateY(1px); }
.b:disabled { opacity: .5; cursor: not-allowed; }
.b-primary { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.b-primary:hover { background: var(--leaf-2); border-color: var(--leaf-2); color: #fff; }
.b-clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.b-clay:hover { background: #A9441F; border-color: #A9441F; color: #fff; }
.b-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.b-quiet:hover { background: var(--paper-2); border-color: transparent; }
.b-danger { color: var(--rose); border-color: #E9B7B1; background: var(--card); }
.b-danger:hover { background: var(--rose-soft); color: var(--rose); border-color: var(--rose); }
.b-danger-fill { background: var(--rose); border-color: var(--rose); color: #fff; }
.b-danger-fill:hover { background: #8F1D17; color: #fff; }
.b-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.b-wide { width: 100%; }
.ib { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.ib:hover { background: var(--paper-2); color: var(--ink); }
.ib.del:hover { background: var(--rose-soft); color: var(--rose); }
.inp { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; font-size: 16px; }
.inp:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.inp:disabled { background: var(--paper); color: var(--muted); }
textarea.inp { min-height: 90px; resize: vertical; line-height: 1.5; }
.fld { margin-bottom: 16px; }
.fld > label, .lbl { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.help-t { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tick { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; cursor: pointer; }
.tick input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--leaf); flex: none; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + i { background: var(--leaf); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { box-shadow: 0 0 0 3px var(--leaf-soft); }

/* ---------- labels and chips ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tag-wait { background: var(--sun-soft); color: #82570B; }
.tag-done { background: var(--ok-soft); color: var(--ok); }
.tag-off { background: var(--paper-2); color: var(--muted); }
.tag-bad { background: var(--rose-soft); color: var(--rose); }
.tag-test { background: var(--iris-soft); color: var(--iris); }
.score { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 8px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.score small { font-weight: 600; font-size: 11.5px; opacity: .8; }
.score-m { background: var(--clay-soft); color: #8F3A1B; }
.score-a { background: var(--iris-soft); color: var(--iris); }
.ext { width: 40px; height: 46px; flex: none; border-radius: 8px; background: var(--leaf-mist); border: 1px solid var(--leaf-soft); color: var(--leaf);
  display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; position: relative; }
.ext::before { content: ""; position: absolute; top: 8px; left: 9px; right: 9px; height: 2px; background: currentColor; opacity: .35; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; border-radius: 2px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--clay); font-family: var(--serif); font-weight: 600; padding: 0 1px; }

/* ---------- public header ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(244, 239, 228, .92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 8px; min-height: 66px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav .lnk { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.bar nav .lnk:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 860px) { .bar nav .lnk.wide-only { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 16px; } .bar nav .b { padding: 8px 12px; } .bar nav .lnk { padding: 8px 8px; } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 80px 0 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--clay); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 18px 0 18px; }
.hero h1 i { font-style: italic; color: var(--leaf); }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-cta .b { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts .ico { color: var(--leaf); width: 17px; height: 17px; }

/* the sample result card in the hero */
.result { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; position: relative; }
.result-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.result-top b { display: block; font-size: 15px; }
.result-top small { color: var(--muted); font-size: 13px; }
.result-top .tag { margin-left: auto; }
.dials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 0 16px; }
.dial { border-radius: 14px; padding: 16px 12px 14px; text-align: center; }
.dial-m { background: var(--clay-soft); }
.dial-a { background: var(--iris-soft); }
.dial svg { width: 112px; height: 112px; margin: 0 auto 8px; }
.dial b { display: block; font-size: 14px; }
.dial span { font-size: 12.5px; color: var(--ink-2); }
.dial .val { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.sources { display: grid; gap: 8px; }
.src { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.src i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; background: var(--clay); }
.src i.s2 { background: #D9825F; } .src i.s3 { background: #E6A88C; }
.src .bar-t { height: 6px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
.src .bar-t u { display: block; height: 100%; background: var(--clay); text-decoration: none; }
.src em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.result-note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- public sections ---------- */
.band { padding: 64px 0; }
.band-tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-leaf { background: var(--leaf); color: #EAF2EC; }
.band-leaf h2, .band-leaf h3 { color: #fff; }
.head { max-width: 640px; margin-bottom: 36px; }
.head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.head p { color: var(--ink-2); font-size: 17px; }
.band-leaf .head p { color: #C8DCCF; }
.strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip div { background: var(--card); padding: 18px 20px; }
.strip b { display: block; font-size: 15px; }
.strip span { font-size: 14px; color: var(--muted); }
.pair { display: grid; gap: 20px; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.rep { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.rep-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rep-h span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.rep-m .rep-h span { background: var(--clay-soft); color: var(--clay); }
.rep-a .rep-h span { background: var(--iris-soft); color: var(--iris); }
.rep h3 { font-size: 20px; }
.rep > p { color: var(--ink-2); margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks .ico { color: var(--leaf); margin-top: 3px; }
.flow { list-style: none; display: grid; gap: 18px; counter-reset: f; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.flow li { counter-increment: f; position: relative; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--serif); font-size: 38px; font-weight: 600; color: #F2B48C; display: block; line-height: 1; margin-bottom: 14px; }
.flow h3 { font-size: 19px; margin-bottom: 6px; }
.flow p { color: #C8DCCF; font-size: 15px; }
.who { display: grid; gap: 16px; }
@media (min-width: 640px) { .who { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .who { grid-template-columns: repeat(4, 1fr); } }
.who article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.who .ico { width: 26px; height: 26px; color: var(--clay); margin-bottom: 14px; }
.who h3 { font-size: 17px; margin-bottom: 6px; }
.who p { font-size: 14.5px; color: var(--ink-2); }
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.lead { border: 2px solid var(--leaf); position: relative; }
.plan.lead::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--leaf); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .for { color: var(--muted); font-size: 14px; margin-top: 2px; }
.plan .cost { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 18px 0 2px; line-height: 1; }
.plan .cost small { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; min-height: 22px; }
.plan .checks { margin-bottom: 22px; flex: 1; }
.paynote { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.trust { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1fr; gap: 56px; } }
.trust h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.trust p { color: var(--ink-2); margin-bottom: 12px; }
.trust-list { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 22px; }
.trust-list div { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trust-list div:last-child { border-bottom: none; }
.trust-list .ico { color: var(--leaf); width: 22px; height: 22px; margin-top: 2px; }
.trust-list b { display: block; }
.trust-list span { font-size: 14.5px; color: var(--ink-2); }
.qa { max-width: 820px; }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa details p { padding: 0 0 20px; color: var(--ink-2); }
.closer { background: var(--clay-soft); border-radius: 24px; padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .closer { grid-template-columns: 1fr auto; padding: 48px 52px; } }
.closer h2 { font-size: clamp(28px, 3.6vw, 38px); }
.closer p { color: var(--ink-2); margin-top: 8px; }
.ribbon { background: var(--sun-soft); border-top: 1px solid #F0DDB0; border-bottom: 1px solid #F0DDB0; }
.ribbon-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 0; font-size: 15px; }
.ribbon b { color: #6F4908; }

/* ---------- footer ---------- */
.foot { background: #18201C; color: #B9C4BD; padding: 52px 0 28px; margin-top: 64px; font-size: 14.5px; }
.foot a { color: #DCE6E0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.foot .links { display: grid; gap: 8px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .brand-name em { color: #F2B48C; }
.foot-base { border-top: 1px solid #2E3832; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8E9B93; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- prose pages, contact, auth ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 16px 24px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose .upd { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.prose h2 { font-family: var(--sans); font-weight: 750; font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }
.prose .box { background: var(--leaf-mist); border: 1px solid var(--leaf-soft); border-radius: 12px; padding: 16px 18px; margin: 10px 0 18px; color: var(--ink); }
.contact-grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.contact-card .ico { width: 24px; height: 24px; color: var(--clay); margin-bottom: 12px; }
.contact-card b { display: block; margin-bottom: 4px; }
.contact-card a { overflow-wrap: anywhere; font-weight: 650; }
.gate { min-height: calc(100vh - 66px); display: grid; place-items: start center; padding: 44px 16px 64px; }
.gate-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 26px; box-shadow: var(--shadow); }
@media (min-width: 500px) { .gate-card { padding: 38px 36px; } }
.gate-card h1 { font-size: 30px; margin-bottom: 6px; }
.gate-card .lede { color: var(--ink-2); margin-bottom: 24px; }
.gate-alt { text-align: center; font-size: 14.5px; margin-top: 16px; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.g-btn { background: #fff; }
.g-btn svg { width: 18px; height: 18px; }
.oops { text-align: center; padding: 90px 16px; }
.oops h1 { font-size: 88px; color: var(--clay); }

/* ---------- messages (flash) ---------- */
.flash-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid; }
.flash.success { background: var(--ok-soft); border-color: #B6DCC4; color: #135A37; }
.flash.error { background: var(--rose-soft); border-color: #EDBDB7; color: #8F1D17; }
.flash.warning { background: var(--sun-soft); border-color: #EFD9A4; color: #6F4908; }
.flash.info { background: var(--leaf-mist); border-color: var(--leaf-soft); color: var(--leaf-2); }

/* ---------- member and console shell ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.navrow { display: flex; gap: 2px; margin-left: 10px; }
.navrow a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 14.5px; }
.navrow a:hover { background: var(--paper); color: var(--ink); }
.navrow a.on { background: var(--leaf-mist); color: var(--leaf); }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--leaf); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.cnt.hot { background: var(--clay); }
.cnt.live { background: var(--ok); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.balance { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--leaf-mist); color: var(--leaf); text-decoration: none; font-weight: 800; font-size: 15px; }
.balance small { font-weight: 600; font-size: 13px; }
.round { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--clay-soft); color: #8F3A1B; font-weight: 800; text-decoration: none; flex: none; }
.bell { position: relative; }
.bell .pip { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.main { padding: 28px 0 110px; }
@media (min-width: 900px) { .main { padding-bottom: 60px; } }
.ph { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.ph h1 { font-size: clamp(28px, 4vw, 36px); }
.ph p { color: var(--ink-2); margin-top: 6px; max-width: 680px; }
.ph-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.dock { display: none; }
@media (max-width: 900px) {
  .navrow { display: none; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .dock a { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 700; position: relative; }
  .dock a.on { color: var(--leaf); background: var(--leaf-mist); }
  .dock a .ico { width: 21px; height: 21px; }
  .dock a .cnt { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .dock.scroll { overflow-x: auto; scrollbar-width: none; }
  .dock.scroll::-webkit-scrollbar { display: none; }
  .hide-narrow { display: none !important; }
}
.app-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-foot a { color: var(--muted); }

/* notices */
.note { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--r); margin-bottom: 18px; border: 1px solid; }
.note b { display: block; }
.note span { font-size: 14.5px; color: var(--ink-2); }
.note-warn { background: var(--sun-soft); border-color: #EFD9A4; }
.note-ok { background: var(--ok-soft); border-color: #B6DCC4; }
.note-promo { background: var(--clay-soft); border-color: #EFC2AC; }
.note-info { background: var(--leaf-mist); border-color: var(--leaf-soft); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat a { font-size: 13.5px; font-weight: 700; }
.stat.lead { background: var(--leaf); border-color: var(--leaf); }
.stat.lead span, .stat.lead a { color: #C8DCCF; }
.stat.lead b { color: #fff; }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-family: var(--sans); font-size: 17px; font-weight: 750; }
.panel-b { padding: 20px; }
.panel.warn-edge { border-color: #EDBDB7; }
.cols { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .cols-even { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 20px; align-content: start; }
.narrow { max-width: 760px; }

/* list toolbar */
.bar-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chips { display: inline-flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 11px; flex-wrap: wrap; }
.chips button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 650; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chips button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.find { position: relative; flex: 1 1 220px; max-width: 340px; }
.find .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.find .inp { padding-left: 38px; min-height: 40px; font-size: 15px; }

/* rows */
.rows { list-style: none; }
.r { display: grid; gap: 10px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.r:last-child { border-bottom: none; }
@media (min-width: 820px) { .r { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .r-head { display: grid !important; } }
.r-head { display: none; padding: 10px 18px; font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--paper); border-bottom: 1px solid var(--line); }
.cons .r { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .cons .r { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) auto; } }
.file { display: flex; gap: 12px; align-items: center; min-width: 0; }
.file b { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.file small { display: block; color: var(--muted); font-size: 13px; }
.cell-k { display: inline-block; font-size: 12.5px; color: var(--muted); font-weight: 650; margin-right: 6px; }
@media (min-width: 820px) { .cell-k { display: none; } }
.acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 820px) { .acts { justify-content: flex-end; } }
.acts form { display: contents; }
.duo { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.duo a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 36px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 13.5px; background: var(--card); }
.duo a + a { border-left: 1px solid var(--line-2); }
.duo a:hover { background: var(--paper); }
.duo .ico { width: 16px; height: 16px; }
.duo-m a:first-child { color: #8F3A1B; }
.duo-a a:first-child { color: var(--iris); }
.blank { padding: 44px 20px; text-align: center; }
.blank h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.blank p { color: var(--ink-2); margin-bottom: 18px; }
.no-hit { display: none; padding: 26px; text-align: center; color: var(--muted); }
.seen-line { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; margin-top: 6px; }
.seen-line i { font-style: normal; font-weight: 700; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; }
.seen-line i.v { background: var(--leaf-mist); color: var(--leaf); }
.seen-line i.d { background: var(--ok-soft); color: var(--ok); }
.seen-line i.n { background: var(--paper-2); color: var(--muted); }

/* tables and key/value */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 16px; background: var(--paper); font-weight: 700; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.scroll-x { overflow-x: auto; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; background: var(--paper); padding: 2px 8px; border-radius: 6px; }

/* presence */
.pr { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.pr .dot { width: 9px; height: 9px; border-radius: 50%; background: #B9B3A5; flex: none; }
.pr.here .dot { background: #23A45F; box-shadow: 0 0 0 3px rgba(35, 164, 95, .18); }
.pr.idle .dot { background: var(--sun); }
.pr.here .pl { color: var(--ok); font-weight: 700; }
.pr .pt { display: inline-flex; flex-direction: column; line-height: 1.25; }
.pr small { font-size: 12px; }

/* activity entries */
.evt { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.evt:last-child { border-bottom: none; }
.evt-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.evt-ic.v { background: var(--leaf-mist); color: var(--leaf); }
.evt-ic.d { background: var(--ok-soft); color: var(--ok); }
.evt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.people { display: grid; gap: 10px; padding: 16px 20px; }
@media (min-width: 700px) { .people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.person:hover { border-color: var(--leaf); color: var(--ink); }
.person b { display: block; }

/* submit page */
.dz { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 38px 18px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.dz:hover, .dz.over { border-color: var(--leaf); background: var(--leaf-mist); }
.dz .ico { width: 34px; height: 34px; color: var(--leaf); margin-bottom: 4px; }
.dz b { font-size: 17px; }
.dz span { font-size: 14.5px; color: var(--ink-2); }
.dz input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picked { display: grid; gap: 8px; margin-top: 14px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pick .nm { flex: 1; min-width: 0; }
.pick .nm b { display: block; overflow-wrap: anywhere; font-size: 14.5px; }
.pick .nm small { color: var(--muted); font-size: 12.5px; }
.pick.skip { opacity: .6; }
.pick.skip small { color: var(--rose); }
.hint-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-top: 12px; background: var(--sun-soft); border-radius: 12px; font-size: 14.5px; }
.next-steps { list-style: none; display: grid; gap: 16px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.next-steps li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-mist); color: var(--leaf); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.next-steps span { display: block; color: var(--muted); font-size: 14px; }

/* credits page */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 22px; }
.pack { position: relative; border: 1px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 16px 10px 12px; cursor: pointer; text-align: center; display: grid; gap: 2px; }
.pack:hover { border-color: var(--leaf); }
.pack.on { border: 2px solid var(--leaf); background: var(--leaf-mist); padding: 15px 9px 11px; }
.pack b { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.pack span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.pack em { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--clay); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pack i { font-style: normal; font-size: 12.5px; color: var(--ok); font-weight: 700; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stepper { display: inline-flex; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 84px; border: 0; text-align: center; font-weight: 800; font-size: 18px; min-height: 46px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.promo-box summary { cursor: pointer; font-weight: 650; color: var(--leaf); }
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-msg { font-size: 14px; margin-top: 8px; }
.promo-msg.ok { color: var(--ok); } .promo-msg.err { color: var(--rose); }
.sum div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; }
.sum .get { border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); margin: 6px 0; padding: 10px 0; font-weight: 700; }
.sum .tot { font-size: 20px; font-weight: 800; padding-top: 12px; }
.kes { font-size: 13.5px; color: var(--muted); text-align: right; margin-bottom: 16px; }
.cards-row { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.cards-row span { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.secure { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (min-width: 960px) { .sticky { position: sticky; top: 86px; } }

/* notifications page */
.sw-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sw-row:last-child { border-bottom: none; }
.sw-row.off .sw-t { opacity: .6; }
.sw-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--leaf-mist); color: var(--leaf); }
.sw-t { flex: 1; min-width: 0; }
.sw-t b { display: block; }
.sw-t span { font-size: 14.5px; color: var(--ink-2); }
.saved { font-size: 12px; font-weight: 700; color: var(--ok); margin-left: 8px; opacity: 0; transition: opacity .2s; }
.saved.show { opacity: 1; }
.devbox { margin: 0 20px 20px; padding: 16px; background: var(--paper); border-radius: 12px; }
.devbox-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.devbox-top small { margin-left: auto; color: var(--muted); }
.ddot { width: 10px; height: 10px; border-radius: 50%; background: #B9B3A5; }
.ddot.ok { background: #23A45F; } .ddot.bad { background: var(--rose); }
.devbox p { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 10px; }
.devbox .acts { justify-content: flex-start; }
.devbox details { margin-top: 12px; font-size: 14px; }
.devbox details ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; }
.devmsg { font-size: 14px; color: var(--leaf); margin-top: 8px; min-height: 1em; }
.prompt-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.prompt-strip .sw-ic { background: var(--sun-soft); color: #82570B; }
.prompt-strip div { flex: 1 1 260px; }
.prompt-strip b { display: block; }
.prompt-strip span { font-size: 14px; color: var(--ink-2); }

/* confirm dialog */
.dialog { position: fixed; inset: 0; z-index: 80; background: rgba(24, 32, 28, .5); display: none; align-items: center; justify-content: center; padding: 16px; }
.dialog.open { display: flex; }
.dialog-box { width: 100%; max-width: 440px; background: var(--card); border-radius: 18px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dialog-box h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.dialog-box p { color: var(--ink-2); margin-bottom: 16px; }
.dialog-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* console pop-up toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
@media (max-width: 900px) { .toasts { bottom: 86px; } }
.toast { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 14px; padding: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.14); animation: rise .25s ease-out; }
.toast-sub { border-left-color: var(--clay); }
.toast-help { border-left-color: var(--iris); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; }
.toast-ic svg { width: 18px; height: 18px; }
.toast-t { flex: 1; min-width: 0; font-size: 14px; }
.toast-t b { display: block; }
.toast-t span, .toast-t q { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.toast-t q { font-style: italic; quotes: none; }
.toast-acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.toast-mute { border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; }
.toast-x { border: 0; background: none; cursor: pointer; color: var(--muted); width: 26px; height: 26px; flex: none; }
.toast-x svg { width: 16px; height: 16px; }

/* ---------- help widget ---------- */
.hw { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 15px; }
body.in-app .hw { bottom: 18px; }
@media (max-width: 900px) { body.in-app .hw { bottom: 84px; } }
@media (max-width: 760px) { .hw { right: 12px; bottom: 12px; } }
.hw-launch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 0; background: var(--leaf); color: #fff; cursor: pointer; box-shadow: 0 8px 26px rgba(23, 77, 58, .35); position: relative; }
.hw-launch:hover { background: var(--leaf-2); }
.hw-launch .face { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; position: relative; }
.hw-launch .face svg { width: 20px; height: 20px; }
.hw-launch .live { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #B9B3A5; border: 2px solid var(--leaf); }
.hw-launch.on .live { background: #3DD07F; }
.hw-launch .lt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.hw-launch .lt b { font-size: 15px; }
.hw-launch .lt small { font-size: 12px; opacity: .8; }
.hw-launch .n { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.hw-launch.tucked { display: none; }
.hw-launch.mini { padding: 8px; }
.hw-launch.mini .lt { display: none; }
.hw-peek { max-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 14px 36px 14px 16px; box-shadow: var(--shadow); cursor: pointer; position: relative; font-size: 14px; }
.hw-peek b { display: block; margin-bottom: 2px; }
.hw-peek p { color: var(--ink-2); }
.hw-peek-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.hw-panel { width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: var(--card); border-radius: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 760px) { .hw-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; } }
.hw-head { background: var(--leaf); color: #fff; padding: 16px 12px 16px 18px; display: flex; align-items: center; gap: 10px; position: relative; }
.hw-head h2 { font-family: var(--sans); font-size: 16px; font-weight: 750; color: #fff; }
.hw-head .st { font-size: 12.5px; color: #C8DCCF; display: flex; align-items: center; gap: 6px; }
.hw-head .st i { width: 8px; height: 8px; border-radius: 50%; background: #B9B3A5; }
.hw-head .st.on i { background: #3DD07F; }
.hw-head .grow { flex: 1; min-width: 0; }
.hw-hb { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hw-hb:hover { background: rgba(255,255,255,.12); }
.hw-hb svg { width: 18px; height: 18px; }
.hw-menu { position: absolute; top: 60px; right: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 2; }
.hw-menu button, .hw-menu a { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font-size: 14.5px; color: var(--ink); text-decoration: none; cursor: pointer; }
.hw-menu button:hover, .hw-menu a:hover { background: var(--paper); }
.hw-menu em { font-style: normal; font-weight: 700; color: var(--ok); }
.hw-menu em.off { color: var(--muted); }
.hw-feed { flex: 1; overflow-y: auto; padding: 18px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.hw-m { display: flex; flex-direction: column; max-width: 84%; }
.hw-m.them { align-self: flex-start; }
.hw-m.me { align-self: flex-end; align-items: flex-end; }
.hw-bub { padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.hw-m.them .hw-bub { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hw-m.me .hw-bub { background: var(--leaf); color: #fff; border-bottom-right-radius: 4px; }
.hw-m.me .hw-bub a { color: #fff; }
.hw-m.sending { opacity: .6; }
.hw-m.failed .hw-bub { background: var(--rose); }
.hw-meta { font-size: 11.5px; color: var(--muted); margin: 3px 6px 8px; }
.hw-m.joined .hw-meta { display: none; }
.hw-m.joined { margin-bottom: -2px; }
.hw-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0; }
.hw-sys { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); max-width: 90%; margin: 6px 0; }
.hw-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.hw-topics button { border: 1px solid var(--leaf-soft); background: var(--card); color: var(--leaf); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.hw-topics button:hover { background: var(--leaf-mist); }
.hw-dots { display: inline-flex; gap: 4px; }
.hw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.hw-dots i:nth-child(2) { animation-delay: .2s; } .hw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.hw-id { padding: 12px 14px 0; background: var(--card); border-top: 1px solid var(--line); }
.hw-id p { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.hw-id-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.hw-id .inp { min-height: 40px; font-size: 15px; padding: 8px 12px; }
.hw-id .inp.bad { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.hw-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hw-err { color: var(--rose); font-size: 13px; padding: 0 14px; background: var(--card); min-height: 0; }
.hw-err:not(:empty) { padding-top: 8px; }
.hw-write { display: flex; gap: 8px; padding: 12px 14px; background: var(--card); align-items: flex-end; }
.hw-write textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; min-height: 44px; max-height: 130px; font-size: 15px; line-height: 1.4; background: #fff; }
.hw-write textarea:focus { outline: none; border-color: var(--leaf); }
.hw-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--leaf); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.hw-send:disabled { background: var(--line-2); cursor: default; }
.hw-send svg { width: 20px; height: 20px; }
.hw-foot { font-size: 11.5px; color: var(--muted); text-align: center; padding: 0 14px 10px; background: var(--card); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; box-shadow: 0 8px 22px rgba(0,0,0,.18); border-radius: 999px; }

/* ---------- console Messages ---------- */
.mx { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; min-height: 520px; }
@media (min-width: 761px) { .mx { grid-template-columns: 330px 1fr; } }
.mx-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.mx-tools { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.mx-tools .find { max-width: none; }
.mx-list { overflow-y: auto; flex: 1; }
.mx-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mx-item:hover { background: var(--paper); color: var(--ink); }
.mx-item.on { background: var(--leaf-mist); }
.mx-item.unread b { font-weight: 800; }
.mx-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; position: relative; flex: none; color: var(--ink); }
.mx-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card); background: #B9B3A5; }
.mx-av i.here { background: #23A45F; } .mx-av i.idle { background: var(--sun); }
.mx-mid { flex: 1; min-width: 0; }
.mx-top { display: flex; align-items: center; gap: 6px; }
.mx-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-top time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.kind { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.kind.v { background: var(--sun-soft); color: #82570B; } .kind.c { background: var(--leaf-mist); color: var(--leaf); } .kind.x { background: var(--paper-2); color: var(--muted); }
.mx-last { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.mx-last span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mx-n { min-width: 20px; height: 20px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.mx-none { padding: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }
.mx-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.mx-blank { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; }
.mx-blank h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.mx-blank p { color: var(--ink-2); max-width: 420px; }
.mx-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mx-back { display: none; }
.mx-who { flex: 1; min-width: 0; }
.mx-who b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mx-who a { font-size: 13.5px; overflow-wrap: anywhere; }
.mx-acts { display: flex; gap: 6px; align-items: center; }
.mx-acts form { display: contents; }
.mx-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.mx-feed { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 240px; }
.mx-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0; }
.mx-sys { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); max-width: 90%; margin: 6px 0; }
.mx-msg { max-width: 76%; align-self: flex-start; display: flex; flex-direction: column; }
.mx-msg.me { align-self: flex-end; align-items: flex-end; }
.mx-bub { padding: 10px 14px; border-radius: 16px; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.mx-msg.me .mx-bub { background: var(--leaf); color: #fff; }
.mx-msg.me .mx-bub a { color: #fff; }
.mx-meta { font-size: 11.5px; color: var(--muted); margin: 3px 6px 8px; }
.mx-typing { font-size: 13px; color: var(--muted); padding: 0 18px; min-height: 18px; }
.mx-canned { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.mx-canned button { flex: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.mx-canned button:hover { border-color: var(--leaf); color: var(--leaf); }
.mx-write { display: flex; gap: 8px; padding: 10px 14px; align-items: flex-end; }
.mx-write textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; min-height: 46px; max-height: 160px; font-size: 15px; line-height: 1.4; }
.mx-write textarea:focus { outline: none; border-color: var(--leaf); }
.mx-hint { font-size: 12.5px; color: var(--muted); padding: 0 16px 12px; }
.mx-hint .err { color: var(--rose); }
@media (max-width: 760px) {
  .mx-side { border-right: none; }
  .mx.reading .mx-side { display: none; }
  .mx:not(.reading) .mx-main { display: none; }
  .mx-back { display: inline-grid; }
}

/* ---------- small-screen fixes ---------- */
.hero-grid > *, .cols > *, .pair > *, .plans > *, .trust > * { min-width: 0; }
.result-top > div { min-width: 0; }
.result-top b { overflow-wrap: anywhere; }
.bar nav .lnk { white-space: nowrap; }
@media (max-width: 520px) {
  .result { padding: 16px; }
  .dials { gap: 10px; }
  .dial svg { width: 88px; height: 88px; }
  .result-top .tag { display: none; }
  .hero-cta .b { flex: 1 1 100%; }
  .brand-mark { width: 28px; height: 28px; }
  .bar-in { gap: 4px; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (max-width: 560px) { .top .brand-name { display: none; } .top-in { gap: 8px; } }
