/* RelayKit — design system: soft neutral frame, white rounded cards, deep forest-green brand. */
:root {
  --page: #e9ecea;          /* behind the app frame */
  --bg: #f4f6f4;            /* frame / page surface */
  --bg-2: #eceeec;          /* subtle fills, tracks */
  --panel: #ffffff;         /* cards */
  --panel-2: #f7f9f7;       /* inset rows */
  --line: #e7eae7;
  --line-2: #d6dbd7;
  --ink: #101a14;
  --ink-2: #48524b;
  --ink-3: #8b948d;
  --brand: #1b6b45;
  --brand-2: #145536;
  --brand-deep: #0c3a25;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1e8;
  --brand-mid: #5fbf8a;
  --mint: #9cf0bf;
  --hero: linear-gradient(140deg, #23845a 0%, #145536 55%, #0c3a25 100%);
  --hatch: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 55%, transparent) 0 2px, transparent 2px 7px);
  --amber: #b46a00; --amber-soft: #fdf0d8;
  --red: #cc3d3d; --red-soft: #fbe6e6;
  --violet: #5a4fd0; --violet-soft: #ecebfd;
  --ok: #1b7a4b; --ok-soft: #e1f3e8;
  --code-bg: #0e1712; --code-ink: #dcefe3;
  --shadow: 0 1px 2px rgba(16, 26, 20, .04), 0 6px 20px -12px rgba(16, 26, 20, .12);
  --shadow-lg: 0 30px 70px -30px rgba(16, 26, 20, .4);
  --r: 22px;
  --r-sm: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #070b09; --bg: #0d1310; --bg-2: #18211c; --panel: #141c17; --panel-2: #19231d; --line: #232e27; --line-2: #33403a;
  --ink: #ecf3ee; --ink-2: #b3c0b7; --ink-3: #7e8c83;
  --brand: #3fb87c; --brand-2: #5fcb93; --brand-deep: #0c3a25; --brand-ink: #06140c; --brand-soft: #173325; --brand-mid: #3fb87c; --mint: #9cf0bf;
  --hero: linear-gradient(140deg, #1f7a52 0%, #145536 55%, #0b2e1e 100%);
  --amber: #f0ad4a; --amber-soft: #352812; --red: #ff6f6f; --red-soft: #3a1b1d; --violet: #a49bff; --violet-soft: #25214a;
  --ok: #5fd39a; --ok-soft: #153626; --code-bg: #070c09;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--bg-2); padding: .12em .45em; border-radius: 7px; word-break: break-word; }
pre { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r-sm); padding: 16px 18px; overflow-x: auto; line-height: 1.65; margin: 0 0 1em; font-size: 12.5px; }
pre .c { color: #7d9486; } pre .s { color: #9cf0bf; } pre .k { color: #b9d7ff; } pre .n { color: #ffd38f; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Brand ── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo span em { font-style: normal; color: var(--brand); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--panel); color: var(--ink); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .06s; text-decoration: none; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line-2)); }
.btn.danger:hover { border-color: var(--red); background: var(--red-soft); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; position: relative; flex: none; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--panel); }
.arrow-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; flex: none; transition: background .15s, color .15s, border-color .15s; }
.arrow-btn svg { width: 16px; height: 16px; }
.arrow-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }

/* ── Forms ── */
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
label.field > small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 6px; }
input, select, textarea { width: 100%; height: 46px; padding: 0 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel-2); color: var(--ink);
  font: 14px var(--font); transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { height: auto; min-height: 96px; padding: 12px 15px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: var(--panel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
input[disabled] { opacity: .6; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Pills & notes ── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.info { background: var(--brand-soft); color: var(--brand); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.pill.plain::before { display: none; }
.pill.live::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.note { border-radius: var(--r-sm); padding: 13px 16px; font-size: 14px; background: var(--brand-soft); color: var(--ink); margin-bottom: 18px; }
.note.warn { background: var(--amber-soft); }
.note.bad { background: var(--red-soft); }
.note.ok { background: var(--ok-soft); }
.note a { font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ── Cards ── */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card > .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 4px; flex-wrap: wrap; }
.card > .hd h3 { margin: 0; font-size: 17px; }
.card > .bd { padding: 16px 22px 22px; }
.card > .table-wrap { padding: 6px 8px 10px; }
.content > .card + .card { margin-top: 18px; }

/* ── Toasts & dialogs ── */
#toasts { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: rise .2s ease-out; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
dialog { border: 0; border-radius: 26px; background: var(--panel); color: var(--ink); padding: 0; box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(8, 16, 11, .45); backdrop-filter: blur(3px); }
dialog .dh { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: center; }
dialog .dh h3 { margin: 0; font-size: 19px; }
dialog .db { padding: 16px 24px; }
dialog .df { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Copy rows ── */
.kv { display: grid; gap: 10px; }
.copy { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; min-width: 0; }
.copy .lab { font-size: 12px; font-weight: 700; color: var(--ink-3); width: 132px; flex: none; }
.copy .val { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy .btn.ghost { width: 34px; padding: 0; }
@media (max-width: 560px) { .copy { flex-wrap: wrap; } .copy .lab { width: 100%; } }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--panel-2); }
table.t tr.click:hover td:first-child { border-radius: 14px 0 0 14px; }
table.t tr.click:hover td:last-child { border-radius: 0 14px 14px 0; }
.who { min-width: 0; }
.who b { display: block; font-weight: 700; }
.who span { color: var(--ink-3); font-size: 13px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; flex: none;
  background: linear-gradient(140deg, var(--brand-mid), var(--brand-deep)); }
.av.sm { width: 34px; height: 34px; font-size: 13px; }
.av.c1 { background: linear-gradient(140deg, #f5b56b, #c4581b); } .av.c2 { background: linear-gradient(140deg, #8fb3ff, #3550c7); }
.av.c3 { background: linear-gradient(140deg, #f29bbd, #b03366); } .av.c4 { background: linear-gradient(140deg, #b8a6ff, #5a3fcf); }

/* ════════════ App shell ════════════ */
body.app { background: var(--page); }
/* App frame with layered background art: soft green glows, contour lines (top-right), fading dot grid (bottom-left). */
.shell { position: relative; isolation: isolate; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; min-height: calc(100vh - 28px); margin: 14px; padding: 14px; border-radius: 30px; overflow: clip;
  background:
    radial-gradient(900px 520px at 100% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 65%),
    radial-gradient(700px 480px at 20% 100%, color-mix(in srgb, var(--brand-mid) 10%, transparent), transparent 65%),
    var(--bg); }
.shell::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -160px; right: -200px; width: 1100px; height: 760px; opacity: var(--art-o, .55);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 760' fill='none' stroke='%231b6b45' stroke-width='1.2'%3E%3Cg opacity='.5'%3E%3Cpath d='M1100 120C960 90 860 170 760 150S560 40 430 90 220 260 60 230'/%3E%3Cpath d='M1100 160C965 132 868 212 770 194S575 86 446 134 238 302 80 274'/%3E%3Cpath d='M1100 200C970 174 876 254 780 238S590 132 462 178 256 344 100 318'/%3E%3Cpath d='M1100 240C975 216 884 296 790 282S605 178 478 222 274 386 120 362'/%3E%3Cpath d='M1100 280C980 258 892 338 800 326S620 224 494 266 292 428 140 406'/%3E%3Cpath d='M1100 320C985 300 900 380 810 370S635 270 510 310 310 470 160 450'/%3E%3Cpath d='M1100 360C990 342 908 422 820 414S650 316 526 354 328 512 180 494'/%3E%3C/g%3E%3Cg opacity='.35'%3E%3Ccircle cx='930' cy='170' r='120'/%3E%3Ccircle cx='930' cy='170' r='170'/%3E%3Ccircle cx='930' cy='170' r='225'/%3E%3Ccircle cx='930' cy='170' r='285'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.shell::after { content: ''; position: absolute; z-index: -1; pointer-events: none; left: 240px; bottom: 0; width: 640px; height: 420px;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 28%, transparent) 1.2px, transparent 1.4px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); opacity: var(--art-o, .55); }
:root[data-theme="dark"] .shell { --art-o: .4; }

/* Sidebar in the brand colour */
.sidebar { --sb-ink: #a9cbb7; --sb-muted: #6f9a82; color: #eaf6ef; border-radius: var(--r); padding: 24px 16px 16px; position: sticky; top: 28px; height: calc(100vh - 56px); overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; isolation: isolate;
  background: radial-gradient(130% 55% at 0% 0%, #23845a 0%, transparent 60%), radial-gradient(110% 45% at 100% 100%, #1a6a46 0%, transparent 60%), linear-gradient(175deg, #10442c 0%, #0a2c1d 55%, #071f15 100%);
  box-shadow: 0 24px 50px -28px rgba(7, 31, 21, .9); scrollbar-width: thin; scrollbar-color: rgba(156, 240, 191, .2) transparent; }
.sidebar::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0; border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 264 900' fill='none' stroke='%239cf0bf' stroke-opacity='.10' stroke-width='1.2'%3E%3Ccircle cx='250' cy='40' r='90'/%3E%3Ccircle cx='250' cy='40' r='140'/%3E%3Ccircle cx='250' cy='40' r='195'/%3E%3Cpath d='M-20 520C60 480 120 560 190 530S260 470 300 490'/%3E%3Cpath d='M-20 550C60 510 120 590 190 560S260 500 300 520'/%3E%3Cpath d='M-20 580C60 540 120 620 190 590S260 530 300 550'/%3E%3C/svg%3E") no-repeat top / 100% auto; }
.sidebar .logo { padding: 0 12px 20px; color: #fff; }
.sidebar .logo span em { color: var(--mint); }
.sidebar .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--sb-muted); font-weight: 700; padding: 12px 14px 6px; }
.sidebar a.nav { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 14px; border-radius: 12px; color: var(--sb-ink); font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; }
.sidebar a.nav svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.sidebar a.nav:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); }
.sidebar a.nav.on { color: #fff; font-weight: 700; background: linear-gradient(90deg, rgba(156, 240, 191, .18), rgba(156, 240, 191, .04)); box-shadow: inset 0 0 0 1px rgba(156, 240, 191, .12); }
.sidebar a.nav.on svg { color: var(--mint); opacity: 1; }
.sidebar a.nav.on::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 5px; border-radius: 0 6px 6px 0; background: var(--mint); box-shadow: 0 0 12px rgba(156, 240, 191, .7); }
.sidebar a.nav .count { margin-left: auto; background: var(--mint); color: #06190f; font-size: 11px; font-weight: 800; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.promo { margin-top: auto; border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); border: 1px solid rgba(156, 240, 191, .16); backdrop-filter: blur(6px); }
.promo::before, .promo::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(156, 240, 191, .14); }
.promo::before { width: 190px; height: 190px; right: -70px; top: -80px; }
.promo::after { width: 260px; height: 260px; right: -110px; top: -115px; }
.promo .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: #06190f; display: grid; place-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.promo .ic svg { width: 18px; height: 18px; }
.promo b { display: block; font-size: 16px; line-height: 1.25; position: relative; z-index: 1; }
.promo p { font-size: 12.5px; color: #a9cbb7; margin: 4px 0 14px; position: relative; z-index: 1; }
.promo .btn { position: relative; z-index: 1; background: var(--mint); border-color: var(--mint); color: #06190f; width: 100%; height: 38px; box-shadow: none; }
.promo .btn:hover { background: #b6f6cf; border-color: #b6f6cf; }
.promo .meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 10px 0 14px; position: relative; z-index: 1; }
.promo .meter i { display: block; height: 100%; background: var(--mint); border-radius: 99px; }
@media (max-height: 940px) and (min-width: 1001px) { .promo { padding: 16px; } .promo .ic { display: none; } .promo p { margin-bottom: 0; } .promo .meter { margin: 8px 0 12px; } }
@media (max-height: 820px) and (min-width: 1001px) { .promo { display: none; } }

.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar { background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r); padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); position: sticky; top: 28px; z-index: 20; }
.topbar .menu-btn { display: none; }
.topbar .mobile-logo { display: none; }
.search { flex: 1; max-width: 400px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.search input { height: 44px; border-radius: 999px; padding-left: 44px; padding-right: 56px; background: var(--panel-2); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--ink-3); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; }
.topbar .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .me { display: flex; align-items: center; gap: 11px; padding-left: 6px; min-width: 0; }
.topbar .me .who b { font-size: 14px; }
.topbar .me .who span { font-size: 12.5px; }
.content { min-width: 0; padding: 14px 10px 40px; }
.scrim { display: none; }
@media (max-width: 1000px) {
  body.app { background: var(--bg); }
  .shell { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 12px; border-radius: 0; min-height: 100vh; }
  .sidebar { position: fixed; z-index: 50; inset: 10px auto 10px 10px; width: 280px; height: auto; transform: translateX(-120%); transition: transform .22s ease; box-shadow: none; }
  .shell.menu .sidebar { box-shadow: var(--shadow-lg); }
  .shell.menu .sidebar { transform: none; }
  .shell.menu .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(8, 16, 11, .45); }
  .topbar .menu-btn { display: inline-grid; }
  .topbar .mobile-logo { display: inline-flex; }
  .topbar .mobile-logo span { display: none; }
  .search { display: none; }
  .topbar .me .who { display: none; }
  .content { padding: 8px 4px 40px; }
}

/* ── Page header ── */
.page-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-hd h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.035em; margin: 0; }
.page-hd p { margin: 6px 0 0; color: var(--ink-3); }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; display: inline-flex; gap: 6px; font-weight: 600; }

/* ── Stat cards ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { padding: 20px 22px 18px; display: flex; flex-direction: column; color: inherit; min-height: 168px; }
a.stat:hover { text-decoration: none; }
.stat .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat .l { font-size: 15.5px; font-weight: 600; }
.stat .v { font-size: 46px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 18px 0 16px; }
.stat .v small { font-size: 20px; color: var(--ink-3); font-weight: 600; letter-spacing: -.02em; }
.stat .s { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-top: auto; }
.stat .s .tag { display: inline-grid; place-items: center; height: 22px; min-width: 22px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.stat.hero { background: var(--hero); color: #fff; border-color: transparent; box-shadow: 0 18px 36px -20px rgba(20, 85, 54, .8); }
.stat.hero .arrow-btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.stat.hero .s { color: #c8ecd6; }
.stat.hero .s .tag { border-color: rgba(255, 255, 255, .35); color: #fff; }
.stat.hero .v small { color: #a8dbbd; }

/* ── Dashboard grid ── */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dash > * { min-width: 0; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1180px) { .dash .span-3, .dash .span-4, .dash .span-5 { grid-column: span 6; } .dash .span-7, .dash .span-8 { grid-column: span 12; } }
@media (max-width: 760px) { .dash > * { grid-column: span 12 !important; } }
.dash .card + .card { margin-top: 0; }

/* Bar chart (pill bars, hatched history, solid today) */
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: end; height: 210px; padding: 34px 4px 0; }
.bcol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; outline: none; }
.bcol i { display: block; width: min(100%, 52px); border-radius: 999px; background: var(--hatch), var(--bg-2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 30%, transparent); transition: filter .15s; min-height: 14px; }
.bcol.solid i { background: var(--brand); box-shadow: none; }
.bcol.peak i { background: var(--brand-deep); box-shadow: none; }
:root[data-theme="dark"] .bcol.peak i { background: var(--brand-mid); }
.bcol.zero i { background: var(--bg-2); box-shadow: none; }
.bcol b { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.bcol .lbl { position: absolute; top: -30px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; white-space: nowrap; }
.bcol .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: var(--bg); padding: 8px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5; }
.bcol:hover .tip, .bcol:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.bcol:hover i, .bcol:focus-visible i { filter: brightness(1.08); }
.bcol:hover .lbl, .bcol:focus-visible .lbl { opacity: 0; }

/* Gauge */
.gauge { position: relative; max-width: 300px; margin: 6px auto 0; }
.gauge svg { width: 100%; display: block; }
.gauge .val { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge .val b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.gauge .val span { font-size: 12.5px; color: var(--ink-3); }
.legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Dark status card */
.darkcard { background: radial-gradient(120% 120% at 100% 100%, #1d7a4f 0%, transparent 50%), linear-gradient(160deg, #0f3d28, #07211a); color: #fff; border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; box-shadow: 0 18px 36px -20px rgba(8, 36, 26, .9); }
.darkcard .waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.darkcard > *:not(.waves) { position: relative; z-index: 1; }
.darkcard h3 { font-size: 16px; font-weight: 600; margin: 0; color: #d9f3e3; }
.darkcard .big { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 22px 0 6px; font-variant-numeric: tabular-nums; }
.darkcard .big small { font-size: 20px; color: #9cd6b5; }
.darkcard .sub { font-size: 13px; color: #a6cdb6; }
.darkcard .acts { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.darkcard .round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-deep); border: 0; cursor: pointer; }
.darkcard .round.alt { background: #e0533f; color: #fff; }
.darkcard .round svg { width: 18px; height: 18px; }
.darkcard .chip-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--mint); background: rgba(156, 240, 191, .12); border-radius: 99px; padding: 4px 11px; }
.darkcard .chip-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.6s infinite; }
.darkcard .chip-live.off { color: #ffcf8f; background: rgba(255, 207, 143, .12); }
.darkcard .chip-live.off::before { background: #ffcf8f; }
.darkcard code { background: rgba(255, 255, 255, .08); color: #dff5e8; }

/* Lists (numbers, people, activity) */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list li { display: flex; align-items: center; gap: 13px; padding: 9px 8px; border-radius: 14px; min-width: 0; }
.list li.click { cursor: pointer; }
.list li.click:hover { background: var(--panel-2); }
.tile { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.tile svg { width: 18px; height: 18px; }
.tile.warn { background: var(--amber-soft); color: var(--amber); }
.tile.bad { background: var(--red-soft); color: var(--red); }
.tile.plain { background: var(--bg-2); color: var(--ink-3); }
.list .txt { min-width: 0; flex: 1; }
.list .txt b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .txt span { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .end { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.list .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* Highlight (reminder-style) card */
.highlight .t { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: var(--brand-deep); margin: 6px 0 4px; }
:root[data-theme="dark"] .highlight .t { color: var(--mint); }
.highlight .m { color: var(--ink-3); font-size: 13.5px; margin-bottom: 18px; }

/* ── Numbers grid ── */
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.num { padding: 22px; cursor: pointer; transition: transform .15s, box-shadow .15s; display: block; color: inherit; }
.num:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.num .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.num .who-row { display: flex; gap: 12px; align-items: center; min-width: 0; }
.num h3 { font-size: 16px; margin: 0 0 2px; }
.num .ph { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.meter { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.num .foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.num.add { border: 2px dashed var(--line-2); display: grid; place-items: center; text-align: center; color: var(--ink-3); min-height: 170px; box-shadow: none; background: transparent; font: inherit; }
.num.add:hover { border-color: var(--brand); transform: none; box-shadow: none; }
.num.add b { color: var(--brand); display: block; font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .card + .card { margin-top: 0; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.split > *, .stack > * { min-width: 0; }

.tabs { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; color: var(--ink-2); font: 600 13px var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.linker { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; }
@media (max-width: 640px) { .linker { grid-template-columns: 1fr; justify-items: center; } }
.qrbox { width: 250px; height: 250px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.qrbox img { width: 232px; height: 232px; image-rendering: pixelated; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 7px; }
.paircode { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: .14em; background: var(--brand-soft); color: var(--brand-deep); border-radius: 18px; padding: 18px 20px; text-align: center; margin: 4px 0 14px; }
:root[data-theme="dark"] .paircode { color: var(--mint); }
.success { text-align: center; padding: 22px 0; }
.success .big { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 30px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line-2); background: var(--panel); color: var(--ink-2); border-radius: 99px; padding: 6px 14px; font: 600 13px var(--font); cursor: pointer; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--ink-3); font-size: 12px; white-space: nowrap; margin-left: auto; padding-left: 10px; }
.loading { padding: 70px; text-align: center; color: var(--ink-3); }
.danger-zone .hd h3 { color: var(--red); }
.line-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.line-row span { color: var(--ink-3); }

/* ════════════ Auth ════════════ */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 14px; gap: 14px; background: var(--bg); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; padding: 0; } .auth .side { display: none; } }
.auth .side { background: radial-gradient(90% 70% at 100% 0%, #2a9563 0%, transparent 60%), linear-gradient(160deg, #10422b 0%, #071d14 100%); color: #e6f6ec; padding: 44px; border-radius: 28px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .side::before, .auth .side::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(156, 240, 191, .13); pointer-events: none; }
.auth .side::before { width: 520px; height: 520px; right: -180px; bottom: -200px; }
.auth .side::after { width: 760px; height: 760px; right: -300px; bottom: -320px; }
.auth .side .logo { color: #fff; position: relative; }
.auth .side .logo span em { color: var(--mint); }
.auth .side h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.035em; max-width: 470px; color: #fff; position: relative; }
.auth .side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; color: #bfe3cc; position: relative; }
.auth .side li { display: flex; gap: 12px; align-items: center; }
.auth .side li::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: rgba(156, 240, 191, .15); color: var(--mint); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.auth .main { display: grid; place-items: center; padding: 40px 20px; }
.auth .box { width: 100%; max-width: 410px; }
.auth .box > .logo { margin-bottom: 34px; }
.auth .box h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 6px; }
.auth .box .sub { color: var(--ink-3); margin-bottom: 28px; }
.auth .alt { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 22px; }
.gate { text-align: center; }
.gate .big { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--brand-soft); color: var(--brand); }
.gate .big svg { width: 30px; height: 30px; }

/* ════════════ Website ════════════ */
.site-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.site-nav .wrap { display: flex; align-items: center; height: 72px; gap: 24px; }
.site-nav nav { display: flex; gap: 26px; margin-left: 14px; }
.site-nav nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.site-nav .end { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 760px) { .site-nav nav { display: none; } .site-nav .end .btn.ghost { display: none; } }

section.hero { padding: 26px 0 40px; }
.hero .panel { position: relative; overflow: hidden; border-radius: 34px; background: radial-gradient(70% 90% at 100% 0%, #2a9563 0%, transparent 60%), linear-gradient(160deg, #10422b 0%, #061a12 100%); color: #fff; padding: 64px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .panel::before, .hero .panel::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(156, 240, 191, .12); pointer-events: none; }
.hero .panel::before { width: 620px; height: 620px; left: -260px; bottom: -380px; }
.hero .panel::after { width: 900px; height: 900px; left: -400px; bottom: -540px; }
.hero .panel > * { position: relative; z-index: 1; }
@media (max-width: 940px) { .hero .panel { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 26px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mint); background: rgba(156, 240, 191, .12); padding: 7px 14px; border-radius: 99px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1.03; margin-bottom: 20px; color: #fff; }
.hero h1 .hl { color: var(--mint); }
.hero .lead { font-size: 18px; color: #bfe0cc; max-width: 540px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .cta .btn.primary { background: var(--mint); border-color: var(--mint); color: #06190f; box-shadow: none; }
.hero .cta .btn.primary:hover { background: #b6f6cf; }
.hero .cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .cta .btn:not(.primary):hover { border-color: #fff; }
.hero .trust { display: flex; gap: 20px; flex-wrap: wrap; color: #a9cfb8; font-size: 13px; font-weight: 600; }
.hero .trust span::before { content: '✓ '; color: var(--mint); }
.term { background: rgba(4, 14, 9, .7); border-radius: 22px; border: 1px solid rgba(156, 240, 191, .15); overflow: hidden; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.term .bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid rgba(156, 240, 191, .1); color: #7d9486; font-size: 12px; font-family: var(--mono); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: inline-block; }
.term .bar b { margin-left: 8px; font-weight: 500; }
.term pre { margin: 0; border-radius: 0; background: transparent; padding: 18px 20px; font-size: 12.5px; }
.term .resp { border-top: 1px dashed rgba(156, 240, 191, .12); }

.section { padding: 64px 0; }
.section .head { max-width: 640px; margin-bottom: 34px; }
.section .head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section .head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.035em; }
.section .head p { color: var(--ink-2); font-size: 16px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }
.flow .step { padding: 26px; }
.flow .step::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 30px; letter-spacing: .05em; }
.flow .step:first-child { background: var(--hero); color: #fff; }
.flow .step:first-child::before { color: var(--mint); }
.flow .step:first-child p { color: #c8ecd6; }
.flow .step h3 { font-size: 19px; }
.flow .step p { color: var(--ink-2); margin: 0; font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.featured { background: var(--hero); color: #fff; }
.plan.featured .muted, .plan.featured li { color: #c8ecd6; }
.plan.featured .btn { background: var(--mint); border-color: var(--mint); color: #06190f; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -.04em; margin: 14px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); flex: 1; }
.plan li::before { content: '✓'; color: var(--brand-mid); font-weight: 800; margin-right: 9px; }
.cta-band { background: var(--hero); color: #fff; border-radius: 30px; padding: 46px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 30px; }
.cta-band p { margin: 0; color: #c8ecd6; }
.cta-band .btn { background: var(--mint); color: #06190f; border-color: var(--mint); }
@media (max-width: 560px) { .cta-band { padding: 30px 22px; } }
.site-foot { padding: 36px 0 44px; color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }

/* Docs & prose */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 40px 0 80px; }
@media (max-width: 880px) { .doc { grid-template-columns: 1fr; gap: 0; } .doc aside { display: none; } }
.doc aside { position: sticky; top: 96px; align-self: start; font-size: 14px; background: var(--panel); border-radius: var(--r); padding: 10px 20px 18px; box-shadow: var(--shadow); }
.doc aside a { display: block; color: var(--ink-2); padding: 5px 0; }
.doc aside h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 16px 0 6px; }
.doc main h1 { font-size: 38px; font-weight: 700; letter-spacing: -.04em; }
.doc main h2 { font-size: 24px; margin-top: 46px; padding-top: 12px; scroll-margin-top: 90px; }
.doc main h3 { font-size: 17px; margin-top: 28px; scroll-margin-top: 90px; }
.doc main p, .doc main li { color: var(--ink-2); }
.method { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; background: var(--panel); border-radius: 999px; padding: 6px 14px 6px 6px; margin-bottom: 12px; max-width: 100%; overflow-x: auto; white-space: nowrap; box-shadow: var(--shadow); }
.method b { color: #fff; background: var(--brand-mid); border-radius: 99px; padding: 2px 10px; font-size: 11px; }
.method b.post { background: var(--brand); }
.method b.del { background: var(--red); }
.doc table.t { background: var(--panel); border-radius: var(--r-sm); margin-bottom: 1em; box-shadow: var(--shadow); }
.prose { max-width: 760px; padding: 48px 0 80px; }
.prose h1 { font-size: 38px; letter-spacing: -.04em; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }
.bcol.tl .tip { left: 0; transform: translate(0, 4px); }
.bcol.tr .tip { left: auto; right: 0; transform: translate(0, 4px); }
.bcol.tl:hover .tip, .bcol.tl:focus-visible .tip, .bcol.tr:hover .tip, .bcol.tr:focus-visible .tip { transform: translate(0, 0); }

/* Toggle switches (number settings & webhooks) */
.toggles { display: grid; gap: 2px; margin: 2px 0 18px; }
.tgl { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tgl:last-child { border-bottom: 0; }
.tgl .tx { flex: 1; min-width: 0; }
.tgl .tx b { display: block; font-size: 14px; font-weight: 600; }
.tgl .tx small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl i { width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .18s; }
.tgl i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.tgl input:checked + i { background: var(--brand); }
.tgl input:checked + i::after { transform: translateX(18px); }
.tgl input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.qrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qrow:last-child { border-bottom: 0; }
.qrow > div { flex: 1; min-width: 0; }
.qrow b { display: block; font-size: 14px; }
.qrow span { display: block; font-size: 12.5px; color: var(--ink-3); }
.qrow strong { font-size: 22px; font-weight: 700; letter-spacing: -.03em; min-width: 32px; text-align: right; }

/* Dashboard: notifications summary + message feed */
.evsum { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 9px; }
.evsum:last-child { border-bottom: 0; }
.evsum b { font-size: 14px; }
.evchip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.evchip.on { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.ticks { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: -2px; }
.ticks.read { color: #2f9ee8; }
.ticks.bad { color: var(--red); letter-spacing: 0; }
