/* ==========================================================================
   urlik.xyz — UI 2 ( «Signal» ), 16.09.2026
   Написан с нуля, прежний theme/style/style.css не используется.
   Разбор решений — private/ClaudeCode/docs/DESIGN.md, раздел «UI 2».

   Порядок файла: шрифты → токены → основа → типографика → раскладка →
   элементы (кнопки, поля, карточки, таблицы…) → оболочка сайта →
   оболочка кабинета → разделы витрины → утилиты.
   ========================================================================== */

/* ---------- fonts ( self-hosted, OFL ) ---------- */
@font-face{ font-family:"Onest"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/theme/ui/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Onest"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/theme/ui/fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"Onest"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/theme/ui/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"Onest"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/theme/ui/fonts/onest-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face{ font-family:"JBMono"; font-style:normal; font-weight:100 800; font-display:swap;
  src:url(/theme/ui/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face{ font-family:"JBMono"; font-style:normal; font-weight:100 800; font-display:swap;
  src:url(/theme/ui/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ---------- tokens ---------- */
:root{
  --font:"Onest",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei","Noto Sans SC",Arial,sans-serif;
  --mono:"JBMono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;

  /* neutral scale ( cool graphite ) */
  --bg:#f5f6f8;        /* page */
  --bg-2:#eef0f3;      /* sunken areas, table heads */
  --surface:#ffffff;   /* cards */
  --surface-2:#f9fafb; /* nested card, input bg */
  --surface-3:#f1f3f6; /* hover */
  --line:#e3e6eb;
  --line-2:#d2d6dd;
  --ink:#0d1117;
  --ink-2:#3a4150;
  --ink-3:#687080;     /* muted, AA on bg */
  --ink-4:#9aa1ad;     /* placeholders, decor only */

  /* accent — urlik signal orange */
  --acc:#d4440a;       /* fill — white text on it passes WCAG AA ( 4.5:1 ) */
  --acc-2:#ff8a2a;
  --acc-ink:#c2410c;   /* accent used as TEXT on light surfaces ( AA ) */
  --acc-on:#ffffff;    /* text on accent fill */
  --acc-soft:#fff1e8;
  --acc-line:#ffd3b5;
  --acc-grad:linear-gradient(135deg,#ff9a3c 0%,#f25c05 55%,#e0400a 100%);

  /* state — colour means STATE only */
  --ok:#0f8a4b;  --ok-soft:#e5f6ec;  --ok-line:#b9e6cb;
  --warn:#a15c00; --warn-soft:#fff5dc; --warn-line:#f5d98f;
  --bad:#c62f2f; --bad-soft:#fdecec; --bad-line:#f4c0c0;
  --info:#2f5fd0; --info-soft:#e9f0ff; --info-line:#c4d4fb;
  --vio:#6d4bd8;  --vio-soft:#f0ebff;

  --ring:0 0 0 3px rgba(212,68,10,.28);
  --sh-1:0 1px 2px rgba(13,17,23,.05);
  --sh-2:0 1px 2px rgba(13,17,23,.04),0 4px 12px -2px rgba(13,17,23,.07);
  --sh-3:0 12px 32px -8px rgba(13,17,23,.16),0 2px 6px rgba(13,17,23,.05);
  --sh-pop:0 20px 48px -12px rgba(13,17,23,.25),0 0 0 1px rgba(13,17,23,.06);

  --r-xs:6px; --r-sm:8px; --r:12px; --r-lg:16px; --r-xl:24px; --r-full:999px;
  --gap:16px;
  --wrap:1200px;
  --head-h:64px;
  --side-w:252px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --dot:rgba(13,17,23,.09);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#0a0c0f; --bg-2:#0f1216; --surface:#12151a; --surface-2:#161a20; --surface-3:#1c2128;
  --line:#232932; --line-2:#303743;
  --ink:#eef1f5; --ink-2:#c4cad3; --ink-3:#8b93a0; --ink-4:#5d6572;
  --acc:#ff6a14; --acc-2:#ff9446; --acc-ink:#ff8f4d; --acc-on:#140a02;
  --acc-soft:rgba(255,106,20,.12); --acc-line:rgba(255,106,20,.35);
  --ok:#3fcf85; --ok-soft:rgba(63,207,133,.12); --ok-line:rgba(63,207,133,.32);
  --warn:#f0b43c; --warn-soft:rgba(240,180,60,.12); --warn-line:rgba(240,180,60,.32);
  --bad:#ff6b6b; --bad-soft:rgba(255,107,107,.12); --bad-line:rgba(255,107,107,.32);
  --info:#7aa2ff; --info-soft:rgba(122,162,255,.12); --info-line:rgba(122,162,255,.32);
  --vio:#a98bff; --vio-soft:rgba(169,139,255,.13);
  --ring:0 0 0 3px rgba(255,106,20,.35);
  --sh-1:0 1px 2px rgba(0,0,0,.4);
  --sh-2:0 1px 2px rgba(0,0,0,.4),0 6px 16px -4px rgba(0,0,0,.5);
  --sh-3:0 16px 40px -10px rgba(0,0,0,.7);
  --sh-pop:0 24px 60px -12px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06);
  --dot:rgba(255,255,255,.07);
  color-scheme:dark;
} }
:root[data-theme="dark"]{
  --bg:#0a0c0f; --bg-2:#0f1216; --surface:#12151a; --surface-2:#161a20; --surface-3:#1c2128;
  --line:#232932; --line-2:#303743;
  --ink:#eef1f5; --ink-2:#c4cad3; --ink-3:#8b93a0; --ink-4:#5d6572;
  --acc:#ff6a14; --acc-2:#ff9446; --acc-ink:#ff8f4d; --acc-on:#140a02;
  --acc-soft:rgba(255,106,20,.12); --acc-line:rgba(255,106,20,.35);
  --ok:#3fcf85; --ok-soft:rgba(63,207,133,.12); --ok-line:rgba(63,207,133,.32);
  --warn:#f0b43c; --warn-soft:rgba(240,180,60,.12); --warn-line:rgba(240,180,60,.32);
  --bad:#ff6b6b; --bad-soft:rgba(255,107,107,.12); --bad-line:rgba(255,107,107,.32);
  --info:#7aa2ff; --info-soft:rgba(122,162,255,.12); --info-line:rgba(122,162,255,.32);
  --vio:#a98bff; --vio-soft:rgba(169,139,255,.13);
  --ring:0 0 0 3px rgba(255,106,20,.35);
  --sh-1:0 1px 2px rgba(0,0,0,.4);
  --sh-2:0 1px 2px rgba(0,0,0,.4),0 6px 16px -4px rgba(0,0,0,.5);
  --sh-3:0 16px 40px -10px rgba(0,0,0,.7);
  --sh-pop:0 24px 60px -12px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06);
  --dot:rgba(255,255,255,.07);
  color-scheme:dark;
}

/* ---------- base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:calc(var(--head-h) + 16px); }
body{ margin:0; font-family:var(--font); font-size:15px; line-height:1.55; color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; min-height:100vh; overflow-x:hidden; }
h1,h2,h3,h4,h5,p,ul,ol,figure,blockquote,dl,dd,pre{ margin:0; }
:where(ul[class],ol[class]){ list-style:none; padding:0; }
img,svg,video,canvas{ display:block; max-width:100%; }
img{ height:auto; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
a{ color:inherit; text-decoration:none; }
[hidden]{ display:none !important; }
::selection{ background:rgba(242,92,5,.2); }
:focus{ outline:none; }
:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; border-radius:var(--r-xs); }
table{ border-collapse:collapse; }
hr{ border:0; border-top:1px solid var(--line); margin:24px 0; }
code,kbd,samp,pre{ font-family:var(--mono); font-size:.9em; }
:not(pre)>code{ background:var(--bg-2); border:1px solid var(--line); padding:.08em .38em; border-radius:var(--r-xs); font-size:.86em; }
kbd,.kbd{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; font:600 11px/1 var(--mono);
  color:var(--ink-3); background:var(--surface); border:1px solid var(--line-2); border-bottom-width:2px; border-radius:5px; }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }

.i{ width:18px; height:18px; flex:none; display:inline-block; vertical-align:middle; }
.i-sm{ width:15px; height:15px; } .i-lg{ width:22px; height:22px; } .i-xl{ width:28px; height:28px; }

.skip{ position:absolute; left:12px; top:-60px; z-index:1000; background:var(--ink); color:var(--bg); padding:10px 14px; border-radius:var(--r-sm); font-weight:600; }
.skip:focus{ top:12px; }
.sr{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- typography ---------- */
.h-display{ font-size:clamp(38px,6.2vw,76px); line-height:1.02; letter-spacing:-.04em; font-weight:760; text-wrap:balance; }
.h1,h1{ font-size:clamp(28px,3.6vw,44px); line-height:1.1; letter-spacing:-.03em; font-weight:720; text-wrap:balance; }
.h2,h2{ font-size:clamp(23px,2.6vw,34px); line-height:1.15; letter-spacing:-.025em; font-weight:700; text-wrap:balance; }
.h3,h3{ font-size:19px; line-height:1.3; letter-spacing:-.015em; font-weight:650; }
.h4,h4{ font-size:15px; line-height:1.35; font-weight:650; letter-spacing:-.005em; }
.lead{ font-size:clamp(16px,1.6vw,19px); line-height:1.55; color:var(--ink-2); text-wrap:pretty; }
.muted{ color:var(--ink-3); }
.small{ font-size:13px; }
.tiny{ font-size:12px; }
.mono{ font-family:var(--mono); letter-spacing:-.01em; }
.num{ font-variant-numeric:tabular-nums; }
.strong{ font-weight:650; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font:600 12px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--acc-ink); }
.eyebrow::before{ content:""; width:18px; height:2px; background:currentColor; border-radius:2px; }
.link{ color:var(--acc-ink); font-weight:550; text-decoration:underline; text-decoration-color:var(--acc-line); text-underline-offset:3px; }
.link:hover{ text-decoration-color:currentColor; }
.grad-text{ background:var(--acc-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.clamp-1{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* long-form content ( blog, legal, glossary, SEO blocks ) */
.prose{ font-size:16.5px; line-height:1.75; color:var(--ink-2); max-width:72ch; }
.prose>*+*{ margin-top:1.05em; }
.prose h2{ margin-top:2em; font-size:clamp(22px,2.3vw,28px); color:var(--ink); }
.prose h3{ margin-top:1.6em; font-size:19px; color:var(--ink); }
.prose h4{ margin-top:1.4em; color:var(--ink); }
.prose a{ color:var(--acc-ink); text-decoration:underline; text-decoration-color:var(--acc-line); text-underline-offset:3px; }
.prose a:hover{ text-decoration-color:currentColor; }
.prose ul,.prose ol{ padding-left:1.3em; }
.prose li+li{ margin-top:.4em; }
.prose li::marker{ color:var(--ink-4); }
.prose strong,.prose b{ color:var(--ink); font-weight:650; }
.prose blockquote{ border-left:3px solid var(--acc); padding:.2em 0 .2em 1em; color:var(--ink); font-size:1.05em; }
.prose img{ border-radius:var(--r); border:1px solid var(--line); }
.prose pre{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; overflow:auto; font-size:13.5px; line-height:1.6; }
.prose table{ width:100%; font-size:14.5px; border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:block; overflow-x:auto; }
.prose th,.prose td{ padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.prose th,.prose tr:first-child td{ background:var(--bg-2); color:var(--ink); font-weight:600; }
.prose hr{ margin:2em 0; }

/* ---------- layout primitives ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:clamp(16px,3vw,32px); }
.wrap-md{ max-width:960px; } .wrap-sm{ max-width:760px; } .wrap-xs{ max-width:480px; }
.stack{ display:flex; flex-direction:column; gap:var(--s,16px); }
.row{ display:flex; align-items:center; gap:var(--s,12px); flex-wrap:wrap; }
.row-nw{ flex-wrap:nowrap; }
.between{ justify-content:space-between; }
.grow{ flex:1 1 auto; min-width:0; }
.grid{ display:grid; gap:var(--s,16px); }
.grid>*,.split>*,.split-side>*,.workbench>*,.ov-grid>*,.form-grid>*{ min-width:0; }  /* code blocks / long words must not widen the page on phones */
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.g-auto{ grid-template-columns:repeat(auto-fill,minmax(var(--min,260px),1fr)); }
@media (max-width:960px){ .g4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .g3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .g2,.g3,.g4{ grid-template-columns:1fr; } }
.split{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:center; }
.split-side{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
@media (max-width:960px){ .split,.split-side{ grid-template-columns:1fr; } }
.section{ padding-block:clamp(56px,8vw,112px); }
.section-sm{ padding-block:clamp(36px,5vw,64px); }
.center{ text-align:center; }
.mx-auto{ margin-inline:auto; }
.mt-0{ margin-top:0 !important; } .mt-1{ margin-top:8px; } .mt-2{ margin-top:16px; } .mt-3{ margin-top:24px; } .mt-4{ margin-top:40px; } .mt-5{ margin-top:64px; }
.mb-1{ margin-bottom:8px; } .mb-2{ margin-bottom:16px; } .mb-3{ margin-bottom:24px; } .mb-4{ margin-bottom:40px; }
.w-full{ width:100%; }
.sticky{ position:sticky; top:calc(var(--head-h) + 16px); }
.divider{ height:1px; background:var(--line); border:0; margin:0; }
.hide-sm{ } .show-sm{ display:none !important; }
@media (max-width:760px){ .hide-sm{ display:none !important; } .show-sm{ display:revert !important; } }

.sec-head{ max-width:720px; margin-bottom:clamp(28px,4vw,48px); }
.sec-head.center{ margin-inline:auto; }
.sec-head .eyebrow{ margin-bottom:14px; }
.sec-head.center .eyebrow{ justify-content:center; }
.sec-head p{ margin-top:14px; }

/* ---------- buttons ---------- */
.btn{ --bh:40px; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:var(--bh); padding:0 16px; border-radius:var(--r-sm);
  font-size:14.5px; font-weight:600; letter-spacing:-.005em; white-space:nowrap; border:1px solid transparent; user-select:none; text-decoration:none;
  background:var(--surface); color:var(--ink); border-color:var(--line-2); box-shadow:var(--sh-1);
  transition:background .15s var(--ease),border-color .15s var(--ease),color .15s,box-shadow .15s,transform .08s; position:relative; }
.btn:hover{ background:var(--surface-3); border-color:var(--line-2); text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn:focus-visible{ outline:none; box-shadow:var(--ring); }
.btn[disabled],.btn.is-disabled{ opacity:.5; pointer-events:none; }
.btn .i{ width:17px; height:17px; }
.btn-primary{ background:var(--acc); color:var(--acc-on); border-color:transparent; box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 2px 6px -1px rgba(212,68,10,.4); }
.btn-primary:hover{ background:color-mix(in srgb,var(--acc) 88%,#000); border-color:transparent; }
.btn-dark{ background:var(--ink); color:var(--bg); border-color:transparent; }
.btn-dark:hover{ background:color-mix(in srgb,var(--ink) 85%,var(--bg)); border-color:transparent; }
.btn-ghost{ background:transparent; border-color:transparent; box-shadow:none; color:var(--ink-2); }
.btn-ghost:hover{ background:var(--surface-3); color:var(--ink); border-color:transparent; }
.btn-soft{ background:var(--acc-soft); color:var(--acc-ink); border-color:transparent; box-shadow:none; }
.btn-soft:hover{ background:color-mix(in srgb,var(--acc-soft) 70%,var(--acc) 12%); border-color:transparent; }
.btn-danger{ background:var(--bad); color:#fff; border-color:transparent; }
.btn-danger:hover{ background:color-mix(in srgb,var(--bad) 85%,#000); border-color:transparent; }
.btn-danger-ghost{ background:transparent; color:var(--bad); border-color:transparent; box-shadow:none; }
.btn-danger-ghost:hover{ background:var(--bad-soft); border-color:transparent; }
.btn-sm{ --bh:32px; padding:0 11px; font-size:13.5px; border-radius:7px; gap:6px; }
.btn-sm .i{ width:15px; height:15px; }
.btn-xs{ --bh:26px; padding:0 8px; font-size:12.5px; border-radius:6px; gap:5px; }
.btn-xs .i{ width:14px; height:14px; }
.btn-lg{ --bh:48px; padding:0 22px; font-size:16px; border-radius:10px; }
.btn-xl{ --bh:56px; padding:0 28px; font-size:17px; border-radius:12px; }
.btn-icon{ width:var(--bh); padding:0; }
.btn-block{ width:100%; }
.btn.is-loading{ color:transparent !important; pointer-events:none; }
.btn.is-loading::after{ content:""; position:absolute; width:16px; height:16px; border-radius:50%; border:2px solid currentColor; border-color:var(--ink-3) transparent var(--ink-3) transparent; animation:spin .7s linear infinite; }
.btn-primary.is-loading::after,.btn-dark.is-loading::after{ border-color:var(--acc-on) transparent var(--acc-on) transparent; }
.btn.is-ok{ background:var(--ok); color:#fff; border-color:transparent; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.btn-group{ display:inline-flex; }
.btn-group>.btn{ border-radius:0; }
.btn-group>.btn:first-child{ border-radius:var(--r-sm) 0 0 var(--r-sm); }
.btn-group>.btn:last-child{ border-radius:0 var(--r-sm) var(--r-sm) 0; }
.btn-group>.btn+.btn{ margin-left:-1px; }

.icon-btn{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--r-sm); border:0; background:transparent; color:var(--ink-3); transition:background .12s,color .12s; }
.icon-btn:hover{ background:var(--surface-3); color:var(--ink); }
.icon-btn.is-danger:hover{ background:var(--bad-soft); color:var(--bad); }
.icon-btn .i{ width:17px; height:17px; }
.icon-btn.is-ok{ color:var(--ok); }

/* ---------- forms ---------- */
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field>label,.label{ font-size:13.5px; font-weight:600; color:var(--ink); display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.label .opt,.field>label .opt{ font-weight:450; color:var(--ink-3); font-size:12.5px; }
.hint{ font-size:12.5px; color:var(--ink-3); line-height:1.45; }
.field-err{ font-size:12.5px; color:var(--bad); }
.input,.select,.textarea{ width:100%; min-width:0; height:40px; padding:0 12px; background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-sm);
  font-size:15px; color:var(--ink); transition:border-color .12s,box-shadow .12s,background .12s; box-shadow:var(--sh-1) inset; }
.input::placeholder,.textarea::placeholder{ color:var(--ink-4); }
.input:hover,.select:hover,.textarea:hover{ border-color:var(--ink-4); }
.input:focus,.select:focus,.textarea:focus{ border-color:var(--acc); box-shadow:var(--ring); outline:none; }
.input[readonly]{ background:var(--surface-2); }
.input[disabled],.select[disabled],.textarea[disabled]{ opacity:.6; cursor:not-allowed; }
.input.is-invalid,.textarea.is-invalid{ border-color:var(--bad); }
.textarea{ height:auto; min-height:92px; padding:10px 12px; line-height:1.5; resize:vertical; }
.select{ appearance:none; -webkit-appearance:none; padding-right:34px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:16px; }
.input-sm,.select-sm{ height:32px; font-size:14px; padding-inline:10px; }
.select-sm{ padding-right:30px; background-position:right 7px center; }
.input-lg{ height:52px; font-size:16.5px; padding-inline:16px; border-radius:10px; }
input[type="color"].input{ padding:4px; width:52px; cursor:pointer; }
input[type="file"].input{ padding:6px; height:auto; }

.input-group{ display:flex; align-items:stretch; min-width:0; background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-sm); box-shadow:var(--sh-1) inset; transition:border-color .12s,box-shadow .12s; }
.input-group:focus-within{ border-color:var(--acc); box-shadow:var(--ring); }
.input-group .input{ border:0; box-shadow:none; background:transparent; }
.input-group .input:focus{ box-shadow:none; }
.input-group .addon{ display:flex; align-items:center; padding:0 10px; color:var(--ink-3); font-size:14px; white-space:nowrap; }
.input-group .addon.mono{ font-size:13.5px; }
.input-group .addon+.input{ padding-left:0; }
.input-group>.btn{ height:auto; margin:3px; box-shadow:none; }
.input-group>.icon-btn{ align-self:center; margin-right:4px; }

.check{ display:inline-flex; align-items:flex-start; gap:10px; font-size:14.5px; color:var(--ink-2); cursor:pointer; line-height:1.4; }
.check input{ appearance:none; -webkit-appearance:none; flex:none; width:18px; height:18px; margin:1px 0 0; border:1.5px solid var(--line-2); border-radius:5px; background:var(--surface); display:grid; place-content:center; transition:background .12s,border-color .12s; cursor:pointer; }
.check input[type="radio"]{ border-radius:50%; }
.check input::after{ content:""; width:10px; height:10px; transform:scale(0); transition:transform .12s var(--ease); background:var(--acc-on);
  clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%); }
.check input[type="radio"]::after{ clip-path:none; border-radius:50%; width:8px; height:8px; }
.check input:checked{ background:var(--acc); border-color:var(--acc); }
.check input:checked::after{ transform:scale(1); }
.check input:focus-visible{ box-shadow:var(--ring); }
.check small{ display:block; color:var(--ink-3); font-size:12.5px; margin-top:2px; }

.switch{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; font-size:14.5px; color:var(--ink-2); }
.switch input{ appearance:none; -webkit-appearance:none; flex:none; width:36px; height:21px; border-radius:21px; background:var(--line-2); position:relative; transition:background .15s; cursor:pointer; margin:0; }
.switch input::after{ content:""; position:absolute; top:2.5px; left:2.5px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:transform .18s var(--ease); }
.switch input:checked{ background:var(--acc); }
.switch input:checked::after{ transform:translateX(15px); }
.switch input:focus-visible{ box-shadow:var(--ring); }
.switch>span{ min-width:0; }
.field>label.switch{ display:inline-flex; align-items:center; font-weight:500; }

/* segmented control ( radio group or links ) */
.seg{ display:inline-flex; padding:3px; gap:2px; background:var(--bg-2); border:1px solid var(--line); border-radius:10px; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.seg::-webkit-scrollbar{ display:none; }
.seg>a,.seg>button,.seg>label{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border-radius:7px; border:0; background:transparent; font-size:13.5px; font-weight:600; color:var(--ink-3); white-space:nowrap; cursor:pointer; transition:background .12s,color .12s; }
.seg>a:hover,.seg>button:hover,.seg>label:hover{ color:var(--ink); }
.seg>.is-on,.seg>[aria-selected="true"],.seg>[aria-current="page"],.seg>label:has(input:checked){ background:var(--surface); color:var(--ink); box-shadow:var(--sh-2); }
.seg>label input{ position:absolute; opacity:0; pointer-events:none; }
.seg .i{ width:15px; height:15px; }
.seg-block{ display:flex; } .seg-block>*{ flex:1; justify-content:center; }

.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 16px; }
.form-grid .full{ grid-column:1/-1; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.form-actions{ display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.fieldset{ border:0; margin:0; padding:0; min-width:0; }
.fieldset>legend{ padding:0; font-weight:650; font-size:15px; margin-bottom:12px; }

/* ---------- cards & surfaces ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-1); min-width:0; }
.card-pad{ padding:clamp(16px,2.4vw,24px); }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); min-height:56px; flex-wrap:wrap; }
.card-head h2,.card-head h3{ font-size:15.5px; font-weight:650; letter-spacing:-.01em; display:flex; align-items:center; gap:8px; }
.card-head .sub{ font-size:13px; color:var(--ink-3); font-weight:450; }
.card-body{ padding:18px; }
.card-foot{ padding:12px 18px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; background:var(--surface-2); border-radius:0 0 var(--r-lg) var(--r-lg); }
.card-link{ transition:border-color .15s,box-shadow .15s,transform .15s var(--ease); }
.card-link:hover{ border-color:var(--line-2); box-shadow:var(--sh-3); transform:translateY(-2px); }
.card-sunken{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r); }
.card-accent{ border-color:var(--acc-line); background:linear-gradient(180deg,var(--acc-soft),var(--surface) 70%); }
.panel-list>*+*{ border-top:1px solid var(--line); }

/* stat tiles */
.stat{ padding:16px 18px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.stat-label{ font-size:12.5px; color:var(--ink-3); font-weight:550; display:flex; align-items:center; gap:6px; }
.stat-value{ font-size:28px; font-weight:700; letter-spacing:-.03em; line-height:1.1; font-variant-numeric:tabular-nums; }
.stat-meta{ font-size:12.5px; color:var(--ink-3); display:flex; align-items:center; gap:6px; }
.stat-up{ color:var(--ok); font-weight:600; } .stat-down{ color:var(--bad); font-weight:600; }
.stats-strip{ display:grid; grid-template-columns:repeat(var(--n,4),minmax(0,1fr)); }
.stats-strip>.stat+.stat{ border-left:1px solid var(--line); }
@media (max-width:760px){ .stats-strip{ grid-template-columns:repeat(2,minmax(0,1fr)); } .stats-strip>.stat:nth-child(2n+1){ border-left:0; } .stats-strip>.stat:nth-child(n+3){ border-top:1px solid var(--line); } }

/* ---------- badges, pills, tags ---------- */
.badge{ display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 8px; border-radius:var(--r-full); font-size:12px; font-weight:600; line-height:1; white-space:nowrap;
  background:var(--bg-2); color:var(--ink-2); border:1px solid var(--line); }
.badge .i{ width:13px; height:13px; }
.badge-acc{ background:var(--acc-soft); color:var(--acc-ink); border-color:var(--acc-line); }
.badge-ok{ background:var(--ok-soft); color:var(--ok); border-color:var(--ok-line); }
.badge-warn{ background:var(--warn-soft); color:var(--warn); border-color:var(--warn-line); }
.badge-bad{ background:var(--bad-soft); color:var(--bad); border-color:var(--bad-line); }
.badge-info{ background:var(--info-soft); color:var(--info); border-color:var(--info-line); }
.badge-vio{ background:var(--vio-soft); color:var(--vio); border-color:transparent; }
.badge-solid{ background:var(--acc); color:var(--acc-on); border-color:transparent; }
.badge-lg{ height:28px; padding:0 12px; font-size:13px; }
/* state dot — colour + shape + word, never colour alone */
.dot{ width:8px; height:8px; border-radius:50%; background:var(--ink-4); flex:none; display:inline-block; }
.dot-ok{ background:var(--ok); box-shadow:0 0 0 3px var(--ok-soft); }
.dot-warn{ background:var(--warn); border-radius:2px; box-shadow:0 0 0 3px var(--warn-soft); }
.dot-bad{ background:var(--bad); border-radius:1px; transform:rotate(45deg); box-shadow:0 0 0 3px var(--bad-soft); }
.dot-live{ background:var(--ok); animation:pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(15,138,75,.45); } 70%{ box-shadow:0 0 0 7px rgba(15,138,75,0); } 100%{ box-shadow:0 0 0 0 rgba(15,138,75,0); } }

.chip{ display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 13px; border-radius:var(--r-full); border:1px solid var(--line); background:var(--surface); font-size:13.5px; font-weight:550; color:var(--ink-2); transition:border-color .12s,background .12s,color .12s; white-space:nowrap; }
a.chip:hover,button.chip:hover{ border-color:var(--line-2); color:var(--ink); background:var(--surface-3); }
.chip.is-on{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.chip .count{ font:600 11px/1 var(--mono); padding:3px 6px; border-radius:var(--r-full); background:var(--bg-2); color:var(--ink-3); }
.chip.is-on .count{ background:rgba(255,255,255,.18); color:inherit; }
.chip .i{ width:15px; height:15px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips-scroll{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.chips-scroll::-webkit-scrollbar{ display:none; }

.shortcode{ font-family:var(--mono); font-weight:600; font-size:14px; letter-spacing:-.01em; color:var(--ink); white-space:nowrap; }
.shortcode .host{ color:var(--ink-3); font-weight:450; }
.shortcode .slash{ color:var(--acc); }

/* ---------- alerts / callouts ---------- */
.alert{ display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border-radius:var(--r); border:1px solid var(--line); background:var(--surface); font-size:14.5px; color:var(--ink-2); line-height:1.5; }
.alert>.i{ margin-top:1px; color:var(--ink-3); }
.alert-body{ flex:1; min-width:0; }
.alert-body b,.alert-title{ color:var(--ink); font-weight:650; }
.alert-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-left:auto; }
.alert-ok{ background:var(--ok-soft); border-color:var(--ok-line); } .alert-ok>.i{ color:var(--ok); }
.alert-warn{ background:var(--warn-soft); border-color:var(--warn-line); } .alert-warn>.i{ color:var(--warn); }
.alert-bad{ background:var(--bad-soft); border-color:var(--bad-line); } .alert-bad>.i{ color:var(--bad); }
.alert-info{ background:var(--info-soft); border-color:var(--info-line); } .alert-info>.i{ color:var(--info); }
.alert-acc{ background:var(--acc-soft); border-color:var(--acc-line); } .alert-acc>.i{ color:var(--acc-ink); }
.flashes{ display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }

/* ---------- tables ---------- */
.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table{ width:100%; font-size:14px; }
.table th{ text-align:left; font-size:12px; font-weight:600; color:var(--ink-3); text-transform:none; letter-spacing:0; padding:10px 14px; background:var(--surface-2); border-bottom:1px solid var(--line); white-space:nowrap; }
.table td{ padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; color:var(--ink-2); }
.table tbody tr:last-child td{ border-bottom:0; }
.table tbody tr{ transition:background .1s; }
.table tbody tr:hover{ background:var(--surface-2); }
.table tr.is-selected{ background:var(--acc-soft) !important; }
.table .t-right,.table .num{ text-align:right; }
.table .t-actions{ text-align:right; white-space:nowrap; width:1%; }
.table .t-check{ width:36px; padding-right:0; }
.table-compact td{ padding:8px 14px; }
/* responsive: rows become cards under 760px when .table-stack */
@media (max-width:760px){
  .table-stack thead{ display:none; }
  .table-stack,.table-stack tbody,.table-stack tr,.table-stack td{ display:block; width:100%; }
  .table-stack tr{ padding:12px 14px; border-bottom:1px solid var(--line); position:relative; }
  .table-stack td{ padding:3px 0; border:0; text-align:left !important; }
  .table-stack td[data-th]:not([data-th=""])::before{ content:attr(data-th); display:inline-block; min-width:92px; font-size:12px; color:var(--ink-3); font-weight:550; }
  .table-stack .t-actions{ width:auto; margin-top:6px; }
  .table-stack .t-check{ position:absolute; right:12px; top:12px; width:auto; }
}

/* key–value list */
.kv{ display:grid; grid-template-columns:max-content 1fr; gap:10px 20px; font-size:14px; }
.kv dt{ color:var(--ink-3); }
.kv dd{ color:var(--ink); min-width:0; overflow-wrap:anywhere; }
@media (max-width:520px){ .kv{ grid-template-columns:1fr; gap:2px 0; } .kv dd{ margin-bottom:10px; } }

/* list rows ( link lists, inbox, activity ) */
.list{ display:flex; flex-direction:column; }
.list-item{ display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); min-width:0; transition:background .1s; }
.list-item:last-child{ border-bottom:0; }
a.list-item:hover,.list-item.is-link:hover{ background:var(--surface-2); }
.list-item .li-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.list-item .li-title{ font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list-item .li-sub{ font-size:13px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list-item .li-side{ display:flex; align-items:center; gap:6px; flex:none; }

.tile-ic{ width:40px; height:40px; border-radius:10px; display:grid; place-items:center; flex:none; background:var(--bg-2); color:var(--ink-2); border:1px solid var(--line); }
.tile-ic .i{ width:20px; height:20px; }
.tile-ic.is-acc{ background:var(--acc-soft); color:var(--acc-ink); border-color:var(--acc-line); }
.tile-ic.is-ok{ background:var(--ok-soft); color:var(--ok); border-color:var(--ok-line); }
.tile-ic.is-info{ background:var(--info-soft); color:var(--info); border-color:var(--info-line); }
.tile-ic.is-vio{ background:var(--vio-soft); color:var(--vio); border-color:transparent; }
.tile-ic.is-warn{ background:var(--warn-soft); color:var(--warn); border-color:var(--warn-line); }
.tile-ic.is-bad{ background:var(--bad-soft); color:var(--bad); border-color:var(--bad-line); }
.tile-ic.is-solid{ background:var(--acc-grad); color:#fff; border:0; }
.tile-ic-sm{ width:30px; height:30px; border-radius:8px; } .tile-ic-sm .i{ width:16px; height:16px; }
.tile-ic-lg{ width:52px; height:52px; border-radius:14px; } .tile-ic-lg .i{ width:24px; height:24px; }

/* ---------- empty state ---------- */
.empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:clamp(32px,6vw,64px) 20px; }
.empty .tile-ic{ margin-bottom:6px; }
.empty h3{ font-size:17px; }
.empty p{ color:var(--ink-3); max-width:44ch; font-size:14.5px; }
.empty .row{ justify-content:center; margin-top:8px; }

/* ---------- skeleton ---------- */
.skel{ background:linear-gradient(90deg,var(--bg-2) 25%,var(--surface-3) 50%,var(--bg-2) 75%); background-size:200% 100%; animation:skel 1.3s infinite linear; border-radius:6px; min-height:12px; }
@keyframes skel{ to{ background-position:-200% 0; } }

/* ---------- tabs ( underline ) ---------- */
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tabs>a,.tabs>button{ display:inline-flex; align-items:center; gap:7px; padding:10px 12px; margin-bottom:-1px; border:0; background:none; border-bottom:2px solid transparent; font-size:14px; font-weight:600; color:var(--ink-3); white-space:nowrap; }
.tabs>a:hover,.tabs>button:hover{ color:var(--ink); }
.tabs>.is-on,.tabs>[aria-selected="true"],.tabs>[aria-current="page"]{ color:var(--ink); border-bottom-color:var(--acc); }
.tabs .count{ font:600 11px/1 var(--mono); padding:3px 6px; border-radius:var(--r-full); background:var(--bg-2); color:var(--ink-3); }

/* ---------- breadcrumbs ---------- */
.crumbs{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:13px; color:var(--ink-3); margin-bottom:18px; }
.crumbs a{ color:var(--ink-3); }
.crumbs a:hover{ color:var(--ink); }
.crumbs .sep{ color:var(--ink-4); }
.crumbs [aria-current="page"]{ color:var(--ink-2); font-weight:550; }

/* ---------- pagination ---------- */
.pager{ display:flex; align-items:center; justify-content:center; gap:4px; flex-wrap:wrap; margin-top:20px; }
.pager a,.pager span{ min-width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; padding:0 8px; border-radius:var(--r-sm); font-size:14px; font-weight:550; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.pager a:hover{ background:var(--surface-3); color:var(--ink); }
.pager .is-on{ background:var(--ink); color:var(--bg); }
.pager .gap{ color:var(--ink-4); }

/* ---------- accordion / FAQ ---------- */
.acc{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); overflow:hidden; }
.acc details+details{ border-top:1px solid var(--line); }
.acc summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; font-weight:600; font-size:16px; color:var(--ink); }
.acc summary::-webkit-details-marker{ display:none; }
.acc summary::after{ content:""; width:20px; height:20px; flex:none; border-radius:50%; background:var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687080' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat; transition:transform .2s var(--ease); }
.acc details[open] summary::after{ transform:rotate(45deg); }
.acc summary:hover{ background:var(--surface-2); }
.acc .acc-body{ padding:0 20px 18px; color:var(--ink-2); line-height:1.7; font-size:15px; }
.acc .acc-body>*+*{ margin-top:.8em; }
.acc .acc-body a{ color:var(--acc-ink); text-decoration:underline; }

/* disclosure ( "advanced options" ) */
.disclosure>summary{ list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--ink-3); padding:4px 0; }
.disclosure>summary::-webkit-details-marker{ display:none; }
.disclosure>summary:hover{ color:var(--ink); }
.disclosure>summary .i{ transition:transform .2s var(--ease); width:15px; height:15px; }
.disclosure[open]>summary .i{ transform:rotate(180deg); }

/* ---------- progress / meter ---------- */
.meter{ height:6px; border-radius:6px; background:var(--bg-2); overflow:hidden; }
.meter>span{ display:block; height:100%; border-radius:inherit; background:var(--acc); width:var(--v,0%); transition:width .4s var(--ease); }
.meter.is-ok>span{ background:var(--ok); } .meter.is-warn>span{ background:var(--warn); } .meter.is-bad>span{ background:var(--bad); }
.progress-ring{ --v:0; width:44px; height:44px; border-radius:50%; background:conic-gradient(var(--acc) calc(var(--v)*1%),var(--bg-2) 0); display:grid; place-items:center; }
.progress-ring::before{ content:""; width:34px; height:34px; border-radius:50%; background:var(--surface); grid-area:1/1; }
.progress-ring>span{ grid-area:1/1; font:700 11px/1 var(--mono); position:relative; }

/* ---------- avatar ---------- */
.avatar{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; flex:none; font-weight:700; font-size:13px; color:#fff; background:var(--acc-grad); text-transform:uppercase; overflow:hidden; }
.avatar img{ width:100%; height:100%; object-fit:cover; }
.avatar-sm{ width:26px; height:26px; font-size:11px; } .avatar-lg{ width:48px; height:48px; font-size:18px; } .avatar-xl{ width:84px; height:84px; font-size:30px; }

/* ---------- code blocks ---------- */
.code{ position:relative; background:#0d1117; color:#e6edf3; border-radius:var(--r); font:13.5px/1.65 var(--mono); overflow:hidden; border:1px solid #1f2630; }
.code pre{ padding:16px 18px; overflow-x:auto; margin:0; font:inherit; }
.code-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 8px 8px 14px; border-bottom:1px solid #1f2630; font-size:12px; color:#8b949e; }
.code-head .btn{ --bh:26px; background:transparent; border-color:#30363d; color:#c9d1d9; box-shadow:none; font-size:12px; padding:0 8px; }
.code-head .btn:hover{ background:#1f2630; }
.code .c-k{ color:#ff7b72; } .code .c-s{ color:#a5d6ff; } .code .c-c{ color:#8b949e; } .code .c-f{ color:#d2a8ff; } .code .c-n{ color:#ffa657; }
.copybox{ display:flex; align-items:center; gap:8px; padding:6px 6px 6px 14px; border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--surface-2); min-width:0; }
.copybox>.val{ flex:1; min-width:0; font-family:var(--mono); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.copybox.is-lg{ padding:8px 8px 8px 18px; border-radius:12px; }
.copybox.is-lg>.val{ font-size:18px; font-weight:600; }

/* ---------- menus / popovers ( <details> based, no JS required ) ---------- */
.menu{ position:relative; }
.menu>summary{ list-style:none; cursor:pointer; }
.menu>summary::-webkit-details-marker{ display:none; }
.menu-pop{ position:absolute; top:calc(100% + 8px); right:0; z-index:60; min-width:220px; padding:6px; background:var(--surface); border-radius:var(--r); box-shadow:var(--sh-pop); animation:pop .14s var(--ease); max-height:min(70vh,520px); overflow-y:auto; }
.menu-pop.is-left{ right:auto; left:0; }
.menu-pop.is-up{ top:auto; bottom:calc(100% + 8px); }
@keyframes pop{ from{ opacity:0; transform:translateY(-4px) scale(.98); } }
.menu-item{ display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border-radius:7px; border:0; background:none; text-align:left; font-size:14px; font-weight:500; color:var(--ink-2); white-space:nowrap; }
.menu-item:hover,.menu-item:focus-visible{ background:var(--surface-3); color:var(--ink); outline:none; }
.menu-item .i{ width:16px; height:16px; color:var(--ink-3); }
.menu-item.is-on{ color:var(--ink); font-weight:600; }
.menu-item.is-on::after{ content:""; margin-left:auto; width:6px; height:6px; border-radius:50%; background:var(--acc); }
.menu-item.is-danger{ color:var(--bad); } .menu-item.is-danger .i{ color:var(--bad); }
.menu-item .kbd{ margin-left:auto; }
.menu-sep{ height:1px; background:var(--line); margin:6px -6px; }
.menu-label{ padding:8px 10px 4px; font-size:11.5px; font-weight:600; color:var(--ink-4); text-transform:uppercase; letter-spacing:.06em; }

/* ---------- dialog / drawer ---------- */
dialog.dialog{ border:0; padding:0; background:var(--surface); color:var(--ink); border-radius:var(--r-xl); box-shadow:var(--sh-pop); width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:hidden; display:flex; flex-direction:column; }
dialog.dialog:not([open]){ display:none; }
dialog.dialog-lg{ width:min(820px,calc(100vw - 24px)); }
dialog.dialog-sm{ width:min(420px,calc(100vw - 24px)); }
dialog.dialog::backdrop{ background:rgba(8,10,14,.55); backdrop-filter:blur(3px); }
dialog.dialog[open]{ animation:dlg .18s var(--ease); }
@keyframes dlg{ from{ opacity:0; transform:translateY(8px) scale(.98); } }
.dialog-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px 12px; }
.dialog-head h2,.dialog-head h3{ font-size:18px; display:flex; align-items:center; gap:10px; min-width:0; }
.dialog-body{ padding:4px 20px 20px; overflow-y:auto; }
.dialog-foot{ display:flex; gap:10px; justify-content:flex-end; padding:14px 20px; border-top:1px solid var(--line); background:var(--surface-2); flex-wrap:wrap; }
@media (max-width:640px){
  dialog.dialog{ width:100vw; max-width:100vw; margin:auto 0 0; border-radius:var(--r-xl) var(--r-xl) 0 0; max-height:92dvh; }
  dialog.dialog[open]{ animation:sheet .22s var(--ease); }
}
@keyframes sheet{ from{ transform:translateY(40px); opacity:.4; } }
dialog.drawer{ border:0; padding:0; margin:0 0 0 auto; height:100dvh; max-height:100dvh; width:min(440px,100vw); background:var(--surface); color:var(--ink); box-shadow:var(--sh-pop); display:flex; flex-direction:column; }
dialog.drawer:not([open]){ display:none; }
dialog.drawer::backdrop{ background:rgba(8,10,14,.45); }
dialog.drawer[open]{ animation:drawer .22s var(--ease); }
@keyframes drawer{ from{ transform:translateX(30px); opacity:.5; } }

/* ---------- toasts ---------- */
.toasts{ position:fixed; z-index:1200; left:50%; bottom:24px; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; width:max-content; max-width:calc(100vw - 24px); }
.toast{ pointer-events:auto; display:flex; align-items:center; gap:10px; padding:10px 12px 10px 14px; border-radius:var(--r); background:var(--ink); color:var(--bg); font-size:14px; font-weight:500; box-shadow:var(--sh-3); animation:toast .22s var(--ease); max-width:100%; }
.toast .i{ width:17px; height:17px; }
.toast-ok .i{ color:#3fcf85; } .toast-bad .i{ color:#ff6b6b; } .toast-warn .i{ color:#f0b43c; }
.toast button{ border:0; background:rgba(255,255,255,.14); color:inherit; font-weight:600; font-size:13px; padding:5px 10px; border-radius:6px; }
.toast.is-out{ opacity:0; transform:translateY(8px); transition:.2s; }
@keyframes toast{ from{ opacity:0; transform:translateY(10px); } }
body.has-tabbar .toasts{ bottom:calc(84px + env(safe-area-inset-bottom)); }

/* tooltip via [data-tip] */
[data-tip]{ position:relative; }
@media (hover:hover){
  [data-tip]:hover::after{ content:attr(data-tip); position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--ink); color:var(--bg); font-size:12px; font-weight:500; padding:5px 8px; border-radius:6px; white-space:nowrap; z-index:90; pointer-events:none; animation:pop .12s; }
}

/* ---------- charts ( inline svg ) ---------- */
.chart{ width:100%; height:auto; overflow:visible; }
.chart .grid-line{ stroke:var(--line); stroke-width:1; }
.chart .axis{ fill:var(--ink-4); font:11px var(--mono); }
.chart .area{ fill:url(#g-acc); }
.chart .line{ fill:none; stroke:var(--acc); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.chart .pt{ fill:var(--surface); stroke:var(--acc); stroke-width:2; }
.chart .bar{ fill:var(--acc); } .chart .bar-2{ fill:var(--line-2); }
.spark{ width:72px; height:24px; color:var(--acc); }
.spark polyline{ fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.bars{ display:flex; flex-direction:column; gap:10px; }
.bar-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; font-size:13.5px; }
.bar-row .bar-label{ display:flex; align-items:center; gap:8px; min-width:0; color:var(--ink-2); }
.bar-row .bar-label span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar-row .bar-val{ font-variant-numeric:tabular-nums; font-weight:600; color:var(--ink); }
.bar-row .bar-track{ grid-column:1/-1; height:6px; border-radius:6px; background:var(--bg-2); overflow:hidden; }
.bar-row .bar-track>span{ display:block; height:100%; width:var(--v,0%); background:var(--acc); border-radius:inherit; }
.chart-tip{ position:absolute; pointer-events:none; background:var(--ink); color:var(--bg); font-size:12px; padding:6px 8px; border-radius:6px; white-space:nowrap; transform:translate(-50%,-120%); z-index:5; }

/* ==========================================================================
   SITE SHELL ( public pages )
   ========================================================================== */
.site-head{ position:sticky; top:0; z-index:100; height:var(--head-h); background:color-mix(in srgb,var(--bg) 82%,transparent); backdrop-filter:saturate(1.6) blur(14px); -webkit-backdrop-filter:saturate(1.6) blur(14px); border-bottom:1px solid transparent; transition:border-color .2s,background .2s; }
.site-head.is-scrolled{ border-bottom-color:var(--line); }
.site-head .wrap{ height:100%; display:flex; align-items:center; gap:20px; }
.brand{ display:inline-flex; align-items:center; gap:9px; font-weight:750; font-size:19px; letter-spacing:-.035em; color:var(--ink); flex:none; }
.brand-mark{ width:30px; height:30px; border-radius:9px; background:var(--ink); color:var(--bg); display:grid; place-items:center; position:relative; overflow:hidden; }
.brand-mark::after{ content:""; position:absolute; right:-6px; bottom:-6px; width:16px; height:16px; border-radius:50%; background:var(--acc); }
.brand-mark .i{ width:17px; height:17px; position:relative; z-index:1; }
.brand .tld{ color:var(--ink-3); font-weight:500; }
.site-nav{ display:flex; align-items:center; gap:2px; margin-left:12px; }
.site-nav>a,.site-nav>.nav-dd>summary{ display:inline-flex; align-items:center; gap:4px; height:36px; padding:0 11px; border-radius:var(--r-sm); font-size:14.5px; font-weight:550; color:var(--ink-2); cursor:pointer; list-style:none; }
.site-nav>.nav-dd>summary::-webkit-details-marker{ display:none; }
.site-nav>a:hover,.site-nav>.nav-dd>summary:hover,.site-nav>.nav-dd[open]>summary{ background:var(--surface-3); color:var(--ink); }
.site-nav>a[aria-current="page"]{ color:var(--ink); }
.site-nav .nav-dd>summary .i{ width:14px; height:14px; color:var(--ink-4); transition:transform .2s; }
.site-nav .nav-dd[open]>summary .i{ transform:rotate(180deg); }
.nav-dd{ position:relative; }
.mega{ position:absolute; top:calc(100% + 10px); left:-12px; z-index:80; background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-pop); padding:10px; animation:pop .16s var(--ease); width:max-content; }
.mega-grid{ display:grid; grid-template-columns:repeat(2,minmax(250px,1fr)); gap:2px; }
.mega-grid.is-3{ grid-template-columns:repeat(3,minmax(210px,1fr)); }
.mega-item{ display:flex; gap:12px; padding:10px; border-radius:10px; align-items:flex-start; }
.mega-item:hover{ background:var(--surface-3); }
.mega-item .tile-ic{ width:36px; height:36px; border-radius:9px; }
.mega-item b{ display:block; font-size:14px; font-weight:620; color:var(--ink); line-height:1.3; }
.mega-item small{ display:block; font-size:12.5px; color:var(--ink-3); line-height:1.4; margin-top:2px; max-width:28ch; }
.mega-foot{ margin:8px -10px -10px; padding:12px 20px; border-top:1px solid var(--line); background:var(--surface-2); border-radius:0 0 var(--r-lg) var(--r-lg); display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:13.5px; color:var(--ink-3); }
.mega-foot a{ color:var(--acc-ink); font-weight:600; display:inline-flex; align-items:center; gap:4px; }
.head-actions{ margin-left:auto; display:flex; align-items:center; gap:6px; }
.search-trigger{ display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 8px 0 11px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); color:var(--ink-3); font-size:13.5px; min-width:190px; box-shadow:var(--sh-1); }
.search-trigger:hover{ border-color:var(--line-2); color:var(--ink-2); }
.search-trigger .kbd{ margin-left:auto; }
.lang-pop{ min-width:190px; }
.lang-code{ font:600 11px/1 var(--mono); color:var(--ink-3); width:22px; }
.nav-burger{ display:none; }
@media (max-width:1080px){ .search-trigger{ min-width:0; } .search-trigger .st-label,.search-trigger .kbd{ display:none; } }
@media (max-width:960px){ .site-nav,.head-actions .hide-md{ display:none !important; } .nav-burger{ display:inline-flex; } }

/* mobile sheet menu */
dialog.sheet-menu{ border:0; margin:0; padding:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; background:var(--bg); color:var(--ink); }
dialog.sheet-menu:not([open]){ display:none; }
dialog.sheet-menu[open]{ display:flex; flex-direction:column; animation:fade .18s; }
@keyframes fade{ from{ opacity:0; } }
.sheet-head{ height:var(--head-h); display:flex; align-items:center; justify-content:space-between; padding:0 16px; border-bottom:1px solid var(--line); flex:none; }
.sheet-body{ flex:1; overflow-y:auto; padding:12px 16px 32px; }
.sheet-sec+.sheet-sec{ margin-top:18px; }
.sheet-sec h4{ font-size:11.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-4); margin:10px 4px 6px; font-weight:600; }
.sheet-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.sheet-grid a{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line); font-size:14px; font-weight:600; }
.sheet-grid a .i{ color:var(--acc-ink); }
.sheet-links a{ display:flex; align-items:center; justify-content:space-between; padding:13px 4px; border-bottom:1px solid var(--line); font-weight:550; font-size:16px; }
.sheet-foot{ padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); display:flex; gap:8px; flex:none; background:var(--surface); }
.sheet-foot .btn{ flex:1; }

/* mobile tab bar ( site + app ) */
.tabbar{ display:none; }
@media (max-width:960px){
  body.has-tabbar{ padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
  .tabbar{ display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:0; right:0; bottom:0; z-index:110; height:calc(64px + env(safe-area-inset-bottom)); padding:6px 6px env(safe-area-inset-bottom);
    background:color-mix(in srgb,var(--surface) 88%,transparent); backdrop-filter:saturate(1.6) blur(16px); -webkit-backdrop-filter:saturate(1.6) blur(16px); border-top:1px solid var(--line); }
  .tabbar>a,.tabbar>button{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; background:none; border-radius:10px; font-size:10.5px; font-weight:600; color:var(--ink-3); padding:0; }
  .tabbar .i{ width:22px; height:22px; }
  .tabbar>[aria-current="page"]{ color:var(--acc-ink); }
  .tabbar>.tab-cta span.tc{ width:44px; height:34px; border-radius:12px; background:var(--acc); color:var(--acc-on); display:grid; place-items:center; box-shadow:0 4px 12px -2px rgba(242,92,5,.5); }
  .tabbar>.tab-cta .i{ width:20px; height:20px; }
}
@media print{ .tabbar,.site-head,.site-foot,.app-side,.app-top{ display:none !important; } }

/* page header ( inner pages ) */
.page-hero{ padding:clamp(40px,6vw,80px) 0 clamp(28px,4vw,48px); position:relative; }
.page-hero .eyebrow{ margin-bottom:16px; }
.page-hero .lead{ margin-top:16px; max-width:62ch; }
.page-hero.center .lead{ margin-inline:auto; }
.page-hero.center .eyebrow{ justify-content:center; }
.bg-dots{ position:absolute; inset:0; z-index:-1; background-image:radial-gradient(var(--dot) 1px,transparent 1px); background-size:22px 22px; -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 0%,#000 30%,transparent 75%); mask-image:radial-gradient(ellipse 70% 60% at 50% 0%,#000 30%,transparent 75%); pointer-events:none; }
.bg-glow{ position:absolute; z-index:-1; inset:-10% 0 auto; height:520px; background:radial-gradient(40% 50% at 50% 0%,color-mix(in srgb,var(--acc) 16%,transparent),transparent 70%); pointer-events:none; }
main.site-main{ position:relative; isolation:isolate; min-height:60vh; }

/* footer */
.site-foot{ border-top:1px solid var(--line); background:var(--surface); margin-top:clamp(40px,6vw,80px); }
.foot-top{ display:grid; grid-template-columns:minmax(220px,1.3fr) repeat(4,minmax(0,1fr)); gap:32px; padding-block:56px 40px; }
.foot-brand p{ color:var(--ink-3); font-size:14px; margin-top:14px; max-width:34ch; line-height:1.6; }
.foot-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-4); margin-bottom:14px; font-weight:600; }
.foot-col a{ display:block; font-size:14px; color:var(--ink-2); padding:5px 0; }
.foot-col a:hover{ color:var(--acc-ink); }
.foot-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; padding-block:18px 24px; border-top:1px solid var(--line); font-size:13px; color:var(--ink-3); }
.foot-bar a{ color:var(--ink-2); text-decoration:underline; text-decoration-style:dotted; text-underline-offset:3px; }
.foot-bar a:hover{ color:var(--acc-ink); }
.foot-status{ display:inline-flex; align-items:center; gap:8px; }
@media (max-width:960px){ .foot-top{ grid-template-columns:1fr 1fr; } .foot-brand{ grid-column:1/-1; } }

/* SEO depth block ( seo_faq + seometa ) */
.seo-block{ padding-block:clamp(48px,7vw,96px) 0; }
.seo-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:clamp(24px,5vw,72px); align-items:start; }
@media (max-width:960px){ .seo-grid{ grid-template-columns:1fr; } }
.seo-more{ margin-top:32px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.seo-more>b{ font-size:13px; color:var(--ink-3); margin-right:4px; font-weight:600; }
.queries{ margin-top:40px; padding-top:24px; border-top:1px solid var(--line); }
.queries h2{ font-size:13px; font-weight:600; color:var(--ink-3); letter-spacing:0; margin-bottom:12px; }
.queries ul{ display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:0; margin:0; }
.queries li{ font-size:12.5px; color:var(--ink-3); padding:4px 10px; border-radius:var(--r-full); background:var(--bg-2); }

/* ==========================================================================
   APP SHELL ( signed-in workspace )
   ========================================================================== */
body.shell-app{ background:var(--bg); }
.app{ display:grid; grid-template-columns:var(--side-w) minmax(0,1fr); min-height:100vh; }
.app-side{ position:sticky; top:0; height:100vh; display:flex; flex-direction:column; border-right:1px solid var(--line); background:var(--surface); z-index:40; }
.app-side-head{ height:var(--head-h); display:flex; align-items:center; padding:0 16px; border-bottom:1px solid var(--line); flex:none; gap:8px; }
.app-side-nav{ flex:1; overflow-y:auto; padding:12px 10px; scrollbar-width:thin; }
.side-sec+.side-sec{ margin-top:18px; }
.side-sec>h4{ font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-4); padding:0 10px; margin-bottom:6px; }
.side-link{ display:flex; align-items:center; gap:10px; height:36px; padding:0 10px; border-radius:var(--r-sm); font-size:14px; font-weight:550; color:var(--ink-2); position:relative; }
.side-link .i{ width:18px; height:18px; color:var(--ink-3); }
.side-link:hover{ background:var(--surface-3); color:var(--ink); }
.side-link[aria-current="page"]{ background:var(--acc-soft); color:var(--acc-ink); }
.side-link[aria-current="page"] .i{ color:var(--acc-ink); }
.side-link .count{ margin-left:auto; font:600 11px/1 var(--mono); color:var(--ink-3); background:var(--bg-2); padding:3px 6px; border-radius:var(--r-full); }
.side-link .ext{ margin-left:auto; width:13px; height:13px; color:var(--ink-4); }
.app-side-foot{ padding:12px; border-top:1px solid var(--line); flex:none; display:flex; flex-direction:column; gap:10px; }
.plan-card{ padding:12px; border-radius:var(--r); background:var(--bg-2); border:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.plan-card .row{ font-size:12.5px; }
.plan-card b{ font-size:13px; }
.user-chip{ display:flex; align-items:center; gap:10px; padding:6px; border-radius:var(--r-sm); width:100%; border:0; background:none; text-align:left; }
.user-chip:hover{ background:var(--surface-3); }
.user-chip .who{ min-width:0; flex:1; line-height:1.25; }
.user-chip .who b{ display:block; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-chip .who small{ display:block; font-size:12px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.app-main{ min-width:0; display:flex; flex-direction:column; }
.app-top{ position:sticky; top:0; z-index:30; height:var(--head-h); display:flex; align-items:center; gap:10px; padding:0 clamp(16px,2.4vw,28px); background:color-mix(in srgb,var(--bg) 85%,transparent); backdrop-filter:saturate(1.6) blur(14px); -webkit-backdrop-filter:saturate(1.6) blur(14px); border-bottom:1px solid var(--line); }
.app-top .search-trigger{ min-width:min(360px,40vw); }
.app-top .spacer{ flex:1; }
.app-content{ padding:clamp(18px,2.6vw,32px) clamp(16px,2.4vw,32px) 64px; width:100%; max-width:1280px; margin:0 auto; }
.app-content.is-narrow{ max-width:880px; }
.app-page-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.app-page-head h1{ font-size:clamp(24px,2.4vw,30px); }
.app-page-head p{ color:var(--ink-3); margin-top:6px; font-size:14.5px; max-width:70ch; }
.app-page-head .actions{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.notif-dot{ position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:50%; background:var(--acc); box-shadow:0 0 0 2px var(--bg); }
.app-burger{ display:none; }
@media (max-width:960px){
  .app{ grid-template-columns:1fr; }
  .app-side{ position:fixed; left:0; top:0; bottom:0; width:min(300px,86vw); transform:translateX(-102%); transition:transform .24s var(--ease); box-shadow:var(--sh-pop); }
  body.side-open .app-side{ transform:none; }
  body.side-open::after{ content:""; position:fixed; inset:0; background:rgba(8,10,14,.45); z-index:35; }
  .app-burger{ display:inline-flex; }
  .app-top .search-trigger{ min-width:0; }
}

/* workspace overview: chart + breakdown */
.ov-grid{ display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:16px; }
@media (max-width:1100px){ .ov-grid{ grid-template-columns:1fr; } }

/* toolbar ( filters above lists ) */
.toolbar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 12px; border-bottom:1px solid var(--line); }
.toolbar .search{ flex:1 1 220px; min-width:0; }
.bulkbar{ position:sticky; bottom:16px; z-index:20; margin:12px auto 0; width:max-content; max-width:calc(100% - 16px); display:flex; align-items:center; gap:10px; padding:8px 8px 8px 16px; border-radius:var(--r); background:var(--ink); color:var(--bg); box-shadow:var(--sh-3); font-size:14px; animation:toast .2s var(--ease); flex-wrap:wrap; }
.bulkbar .btn{ --bh:32px; background:rgba(255,255,255,.1); border-color:transparent; color:inherit; box-shadow:none; font-size:13.5px; }
.bulkbar .btn:hover{ background:rgba(255,255,255,.2); }
.bulkbar .btn-danger{ background:var(--bad); color:#fff; }

/* onboarding checklist */
.checklist{ display:flex; flex-direction:column; }
.checklist a,.checklist div.ck{ display:flex; align-items:center; gap:12px; padding:11px 16px; border-top:1px solid var(--line); font-size:14px; color:var(--ink-2); }
.checklist a:hover{ background:var(--surface-2); }
.checklist .ck-box{ width:20px; height:20px; border-radius:50%; border:1.5px solid var(--line-2); display:grid; place-items:center; flex:none; }
.checklist .is-done .ck-box{ background:var(--ok); border-color:var(--ok); color:#fff; }
.checklist .is-done .ck-box .i{ width:12px; height:12px; }
.checklist .is-done .ck-t{ color:var(--ink-3); text-decoration:line-through; }

/* ==========================================================================
   COMMAND PALETTE
   ========================================================================== */
dialog.cmdk{ border:0; padding:0; margin:12vh auto auto; width:min(640px,calc(100vw - 24px)); max-height:min(560px,76vh); border-radius:var(--r-lg); background:var(--surface); color:var(--ink); box-shadow:var(--sh-pop); overflow:hidden; }
dialog.cmdk[open]{ display:flex; flex-direction:column; animation:dlg .16s var(--ease); }
dialog.cmdk::backdrop{ background:rgba(8,10,14,.5); backdrop-filter:blur(2px); }
.cmdk-in{ display:flex; align-items:center; gap:10px; padding:0 16px; border-bottom:1px solid var(--line); flex:none; }
.cmdk-in .i{ color:var(--ink-3); }
.cmdk-in input{ flex:1; height:56px; border:0; background:none; font-size:16.5px; outline:none; min-width:0; }
.cmdk-list{ overflow-y:auto; padding:6px; flex:1; }
.cmdk-group{ font-size:11.5px; font-weight:600; color:var(--ink-4); text-transform:uppercase; letter-spacing:.06em; padding:10px 10px 4px; }
.cmdk-item{ display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:9px; cursor:pointer; color:var(--ink-2); font-size:14.5px; min-width:0; }
.cmdk-item .tile-ic{ width:30px; height:30px; border-radius:8px; }
.cmdk-item .tile-ic .i{ width:16px; height:16px; }
.cmdk-item .ct{ flex:1; min-width:0; }
.cmdk-item .ct b{ display:block; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmdk-item .ct small{ display:block; font-size:12.5px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cmdk-item.is-active{ background:var(--surface-3); }
.cmdk-item.is-active .cmdk-go{ opacity:1; }
.cmdk-go{ opacity:0; color:var(--ink-3); }
.cmdk-foot{ display:flex; gap:14px; align-items:center; padding:8px 14px; border-top:1px solid var(--line); background:var(--surface-2); font-size:12px; color:var(--ink-3); flex:none; flex-wrap:wrap; }
.cmdk-foot span{ display:inline-flex; gap:5px; align-items:center; }
.cmdk-empty{ padding:36px 16px; text-align:center; color:var(--ink-3); font-size:14px; }

/* ==========================================================================
   MARKETING SECTIONS
   ========================================================================== */
.hero{ position:relative; padding:clamp(48px,8vw,104px) 0 clamp(40px,6vw,72px); text-align:center; isolation:isolate; }
.hero .h-display{ max-width:16ch; margin:18px auto 0; }
.hero .lead{ max-width:58ch; margin:22px auto 0; }
.hero-pill{ display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 6px 0 12px; border-radius:var(--r-full); border:1px solid var(--line); background:var(--surface); font-size:13px; font-weight:550; color:var(--ink-2); box-shadow:var(--sh-1); }
.hero-pill .badge{ height:22px; }
.hero-pill:hover{ border-color:var(--line-2); }

/* the shorten "console" */
.console{ max-width:760px; margin:36px auto 0; text-align:left; background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--sh-3); padding:10px; position:relative; }
.console-form{ display:flex; gap:8px; align-items:stretch; }
.console-form .input-group{ flex:1; border-radius:12px; border-color:transparent; box-shadow:none; background:var(--surface-2); }
.console-form .input-group:focus-within{ border-color:var(--acc); background:var(--surface); }
.console-form .input{ height:56px; font-size:17px; }
.console-form .addon .i{ width:20px; height:20px; }
.console-form>.btn{ height:auto; min-height:56px; border-radius:12px; padding:0 24px; font-size:16px; }
@media (max-width:640px){ .console-form{ flex-direction:column; } .console-form>.btn{ min-height:50px; } }
.console-bar{ display:flex; align-items:center; justify-content:space-between; gap:8px 16px; padding:10px 8px 4px; flex-wrap:wrap; font-size:13px; color:var(--ink-3); }
.console-opts{ padding:14px 8px 8px; border-top:1px dashed var(--line); margin-top:8px; }
.console-err{ margin:10px 8px 4px; }
.result-card{ margin-top:10px; border-radius:14px; border:1px solid var(--ok-line); background:linear-gradient(180deg,var(--ok-soft),var(--surface) 80%); padding:16px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:start; animation:dlg .22s var(--ease); }
.result-card .rc-qr{ width:132px; height:132px; border-radius:10px; background:#fff; padding:6px; border:1px solid var(--line); }
.result-card .rc-qr img{ width:100%; height:100%; image-rendering:pixelated; }
@media (max-width:640px){ .result-card{ grid-template-columns:1fr; } .result-card .rc-qr{ margin:0 auto; } }
.recent{ margin-top:14px; }
.recent .list-item{ padding:9px 8px; }

/* logo / trust strip */
.trust{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 28px; color:var(--ink-3); font-size:13.5px; margin-top:28px; }
.trust span{ display:inline-flex; align-items:center; gap:7px; }
.trust .i{ width:16px; height:16px; color:var(--ok); }

/* bento feature grid */
.bento{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
.bento>.card{ padding:24px; display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; }
.bento .b-2{ grid-column:span 2; } .bento .b-3{ grid-column:span 3; } .bento .b-4{ grid-column:span 4; } .bento .b-6{ grid-column:span 6; }
.bento p{ color:var(--ink-3); font-size:14.5px; }
.bento .viz{ margin-top:auto; padding-top:16px; }
.bento>.card.split{ display:grid; }
@media (max-width:960px){ .bento{ grid-template-columns:repeat(2,minmax(0,1fr)); } .bento .b-2,.bento .b-3,.bento .b-4{ grid-column:span 1; } .bento .b-6{ grid-column:span 2; } }
@media (max-width:640px){ .bento{ grid-template-columns:1fr; } .bento>*{ grid-column:auto !important; } }

.tool-card{ display:flex; flex-direction:column; gap:12px; padding:22px; height:100%; }
.tool-card p{ color:var(--ink-3); font-size:14.5px; flex:1; }
.tool-card .go{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--acc-ink); }
.tool-card .go .i{ width:15px; height:15px; transition:transform .15s var(--ease); }
.tool-card:hover .go .i{ transform:translateX(3px); }

@media (max-width:640px){ .tool-grid{ grid-template-columns:1fr 1fr; --s:10px; } .tool-grid .tool-card{ padding:14px; gap:8px; } .tool-grid .tool-card p,.tool-grid .tool-card .go{ display:none; } .tool-grid .tool-card h3{ font-size:14.5px !important; } }
.steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; counter-reset:s; }
.steps>li,.steps>div{ list-style:none; position:relative; padding:24px; border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface); counter-increment:s; }
.steps>li::before,.steps>div::before{ content:counter(s,decimal-leading-zero); font:600 13px/1 var(--mono); color:var(--acc-ink); display:block; margin-bottom:18px; }
.steps h3{ font-size:17px; margin-bottom:6px; }
.steps p{ color:var(--ink-3); font-size:14.5px; }
@media (max-width:760px){ .steps{ grid-template-columns:1fr; } }

.cta-band{ position:relative; overflow:hidden; border-radius:var(--r-xl); padding:clamp(32px,6vw,64px); background:var(--ink); color:var(--bg); isolation:isolate; }
.cta-band::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(60% 90% at 100% 0%,rgba(255,106,20,.45),transparent 60%),radial-gradient(40% 60% at 0% 100%,rgba(255,154,60,.22),transparent 60%); }
.cta-band .h2{ color:inherit; max-width:20ch; }
.cta-band p{ color:color-mix(in srgb,var(--bg) 72%,transparent); margin-top:12px; max-width:52ch; }
.cta-band .btn:not(.btn-primary){ background:transparent; color:inherit; border-color:color-mix(in srgb,var(--bg) 30%,transparent); box-shadow:none; }
.cta-band .btn:not(.btn-primary):hover{ background:color-mix(in srgb,var(--bg) 10%,transparent); }

/* pricing */
.plans{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:900px; margin-inline:auto; }
@media (max-width:760px){ .plans{ grid-template-columns:1fr; } }
.plan{ padding:28px; display:flex; flex-direction:column; gap:18px; position:relative; }
.plan.is-featured{ border:1.5px solid var(--acc); box-shadow:0 20px 50px -20px rgba(242,92,5,.35); }
.plan-name{ font-size:15px; font-weight:650; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.plan-price{ display:flex; align-items:baseline; gap:6px; }
.plan-price b{ font-size:48px; font-weight:750; letter-spacing:-.04em; line-height:1; }
.plan-price span{ color:var(--ink-3); font-size:14px; }
.feat-list{ display:flex; flex-direction:column; gap:10px; list-style:none; padding:0; margin:0; }
.feat-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color:var(--ink-2); line-height:1.45; }
.feat-list li .i{ width:18px; height:18px; color:var(--ok); margin-top:1px; }
.feat-list li.is-no{ color:var(--ink-4); } .feat-list li.is-no .i{ color:var(--ink-4); }
.compare-table th:not(:first-child),.compare-table td:not(:first-child){ text-align:center; }
.compare-table .i{ margin-inline:auto; }

/* testimonials */
.quote{ padding:24px; display:flex; flex-direction:column; gap:14px; }
.quote blockquote{ font-size:16px; line-height:1.6; color:var(--ink); margin:0; }
.quote .stars{ color:var(--acc); letter-spacing:2px; }
.quote figcaption{ font-size:13.5px; color:var(--ink-3); }

/* blog */
.post-card{ display:flex; flex-direction:column; height:100%; overflow:hidden; }
.post-card .cover{ aspect-ratio:16/9; background:var(--bg-2); overflow:hidden; border-bottom:1px solid var(--line); }
.post-card .cover img{ width:100%; height:100%; object-fit:cover; transition:transform .4s var(--ease); }
.post-card:hover .cover img{ transform:scale(1.03); }
.post-card .body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-card h3{ font-size:17.5px; line-height:1.35; }
.post-card p{ color:var(--ink-3); font-size:14px; }
.post-card .meta{ margin-top:auto; padding-top:8px; font-size:12.5px; color:var(--ink-4); display:flex; gap:10px; }
.article-head{ max-width:760px; margin:0 auto; padding-top:clamp(28px,5vw,56px); }
.article-cover{ max-width:1000px; margin:32px auto 0; border-radius:var(--r-xl); overflow:hidden; border:1px solid var(--line); }
.article-layout{ display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:56px; max-width:1040px; margin:40px auto 0; }
@media (max-width:1080px){ .article-layout{ grid-template-columns:1fr; } .article-aside{ display:none; } }
.toc{ position:sticky; top:calc(var(--head-h) + 24px); font-size:13.5px; }
.toc h4{ font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-4); margin-bottom:10px; }
.toc a{ display:block; padding:5px 0 5px 12px; border-left:2px solid var(--line); color:var(--ink-3); line-height:1.4; }
.toc a:hover{ color:var(--ink); }
.toc a.is-on{ color:var(--acc-ink); border-left-color:var(--acc); }
.read-progress{ position:fixed; top:0; left:0; height:2px; background:var(--acc); z-index:120; width:0; }

/* tool page head ( tool landing pages ) */
.tool-hero{ padding:clamp(32px,5vw,64px) 0 28px; position:relative; isolation:isolate; }
.tool-hero .row{ gap:14px; }
.tool-hero .lead{ margin-top:10px; max-width:64ch; }
.workbench{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:20px; align-items:start; }
@media (max-width:960px){ .workbench{ grid-template-columns:1fr; } }

/* auth screens */
body.shell-bare{ background:var(--bg); }
.bare{ min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.bare-main{ display:flex; flex-direction:column; padding:24px clamp(16px,4vw,48px); }
.bare-main>header{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bare-center{ flex:1; display:flex; align-items:center; justify-content:center; padding:32px 0; }
.bare-box{ width:100%; max-width:400px; }
.bare-box h1{ font-size:30px; }
.bare-box .lead{ font-size:15px; margin-top:8px; }
.bare-art{ position:relative; overflow:hidden; background:#0d1117; color:#fff; border-left:1px solid var(--line); display:flex; flex-direction:column; justify-content:flex-end; padding:clamp(28px,4vw,56px); isolation:isolate; }
.bare-art::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(50% 60% at 80% 10%,rgba(255,106,20,.5),transparent 65%),radial-gradient(40% 50% at 10% 90%,rgba(255,154,60,.18),transparent 60%); }
.bare-art::after{ content:""; position:absolute; inset:0; z-index:-1; background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px); background-size:22px 22px; }
.bare-art h2{ color:#fff; font-size:clamp(26px,2.8vw,38px); max-width:18ch; }
.bare-art p{ color:rgba(255,255,255,.7); margin-top:12px; max-width:42ch; }
.bare-art .feat-list li{ color:rgba(255,255,255,.85); }
.bare-art .feat-list .i{ color:var(--acc-2); }
.or{ display:flex; align-items:center; gap:12px; color:var(--ink-4); font-size:12.5px; margin:18px 0; }
.or::before,.or::after{ content:""; flex:1; height:1px; background:var(--line); }
@media (max-width:960px){ .bare{ grid-template-columns:1fr; } .bare-art{ display:none; } }
.bare-simple{ min-height:100vh; display:flex; flex-direction:column; }
.bare-simple>header{ padding:18px clamp(16px,4vw,32px); display:flex; align-items:center; justify-content:space-between; }
.bare-simple>main{ flex:1; display:flex; align-items:center; justify-content:center; padding:24px 16px 48px; }

/* bio public profile */
.bio-page{ min-height:100vh; display:flex; justify-content:center; padding:48px 16px; background:var(--bio-bg,var(--bg)); color:var(--bio-ink,var(--ink)); }
.bio-card{ width:100%; max-width:520px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; }
.bio-links{ width:100%; display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.bio-link{ display:flex; align-items:center; justify-content:center; gap:10px; min-height:54px; padding:12px 18px; border-radius:var(--bio-r,14px); background:var(--bio-btn,var(--surface)); color:var(--bio-btn-ink,var(--ink)); border:1px solid var(--bio-line,var(--line)); font-weight:600; transition:transform .12s var(--ease),box-shadow .12s; }
.bio-link:hover{ transform:translateY(-2px); box-shadow:var(--sh-3); }

/* misc utilities */
.nowrap{ white-space:nowrap; }
.break{ overflow-wrap:anywhere; word-break:break-word; }
.op-60{ opacity:.6; }
.bordered{ border:1px solid var(--line); border-radius:var(--r); }
.pad{ padding:16px; }
.rounded{ border-radius:var(--r); }
.bg-surface{ background:var(--surface); }
.text-ok{ color:var(--ok); } .text-bad{ color:var(--bad); } .text-warn{ color:var(--warn); } .text-acc{ color:var(--acc-ink); }
.fade-in{ animation:fade .3s var(--ease); }
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s var(--ease),transform .6s var(--ease); }
.reveal.is-in{ opacity:1; transform:none; }
html:not(.js) .reveal{ opacity:1; transform:none; }
