/* HandleHaul (api.handlehaul.com): docs, API reference, pricing, sign-in and the
   frame around the dashboard. Loaded after the shared base sheet (/static/base.css);
   the dashboard adds /static/hh-app.css.

   Look: warm paper, soft precise surfaces, calm editorial type, one signal colour
   (Haul Cobalt). Night surfaces only for code. Every colour, radius, shadow and
   font lives in the TOKENS block below, mirroring handlehaul-brand/tokens and
   handlehaul-web/src/styles/global.css: change them here and nowhere else. */

@font-face { font-family: 'Instrument Sans Variable'; src: url('/static/hh/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Newsreader Variable'; src: url('/static/hh/fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono Variable'; src: url('/static/hh/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 800; font-display: swap; }

/* ============ TOKENS ============ */
:root {
  /* paper */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F3F3EF;
  --surface-3: #ECEBE5;
  --sand: #F2F0E9;
  --sand-2: #E9E6DB;
  /* ink */
  --ink: #0B0D12;
  --ink-2: #2B2F3A;
  --muted: #4A4F5E;
  --subtle: #636878;
  --subtle-on-sand: #5A5F6E;
  /* lines */
  --border: #E6E5DF;
  --border-strong: #D9D8D1;
  /* signal: Haul Cobalt */
  --signal: #2A50F5;
  --signal-hover: #1F3FD6;
  --signal-soft: #EEF1FE;
  --signal-line: #D5DDFD;
  --signal-on-dark: #8FA8FF;
  /* night: code only */
  --night: #070A12;
  --night-2: #0C101A;
  --night-3: #141927;
  --night-line: rgba(255, 255, 255, .09);
  --night-text: #E8EAF2;
  --night-muted: #9AA3B8;
  --code-string: #9FE0B5;
  --code-number: #F5C68A;
  --code-key: #8FA8FF;
  /* state */
  --success: #0B7A45;
  --success-soft: #E7F4EC;
  --warn: #8A5A00;
  --warn-soft: #FBF1DC;
  --error: #C8322F;
  --error-soft: #FCEDEC;
  /* type */
  --sans: 'Instrument Sans Variable', 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader Variable', 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* shape */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, .05);
  --shadow-md: 0 1px 2px rgba(11, 13, 18, .04), 0 8px 24px -12px rgba(11, 13, 18, .12);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, .04), 0 24px 56px -20px rgba(11, 13, 18, .24);
  --ring: 0 0 0 3px rgba(42, 80, 245, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* layout */
  --top-h: 60px;
  --side-w: 272px;
  --wrap: 1160px;
  --gutter: 24px;

  /* The shared base sheet and the dashboard sheets read these names. */
  --hh-signal: var(--signal);
  --k-ink: var(--ink);
  --k-ink-soft: var(--ink-2);
  --k-text: var(--ink);
  --k-text-2: var(--muted);
  --k-muted: var(--subtle);
  --k-paper: var(--bg);
  --k-mist: var(--surface-2);
  --k-hair: var(--border);
  --k-pink: var(--signal);
  --k-pink-text: var(--signal);
  --k-purple: var(--ink);
  --k-violet: var(--signal);
  --k-green: var(--success);
  --k-green-bg: var(--success-soft);
  --k-red: var(--error);
  --k-red-bg: var(--error-soft);
  --k-amber-bg: var(--warn-soft);
  --klupt-gradient: linear-gradient(var(--signal), var(--signal));
  --font-sans: var(--sans);
  --font-display: var(--sans);
  --font-mono: var(--mono);
  color-scheme: light;
}
@media (max-width: 640px) { :root { --gutter: 16px; --top-h: 56px; } }

/* ============ BASE ============ */
/* 17px base from 900px wide on reading pages (as on handlehaul.com); the dashboard keeps its dense 14px. */
@media (min-width: 900px) { html:has(body.hh-s-site), html:has(body.hh-s-docs), html:has(body.hh-s-auth) { font-size: 106.25%; } }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 24px); }
body.hh { background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 var(--sans); font-feature-settings: 'ss01', 'cv11'; text-rendering: optimizeLegibility; overflow-x: clip; }
.hh a { color: var(--signal); text-decoration: none; }
.hh a:hover { color: var(--signal-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hh :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.hh ::selection { background: rgba(42, 80, 245, .2); }
.hh h1, .hh h2, .hh h3, .hh h4 { font-family: var(--sans); color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
.hh h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -.032em; }
.hh h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.022em; }
.hh h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.012em; }
.hh p { text-wrap: pretty; }
.hh code, .hh pre, .hh kbd { font-family: var(--mono); }
.hh .muted { color: var(--subtle); }
.hh .small { font-size: .875rem; }
.hh .k-dot { display: none; }
.hh-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff !important; padding: 8px 12px; border-radius: var(--r-md); font-size: .875rem; }
.hh-skip:focus { left: 8px; }
.hh-ic { flex: none; display: block; }
.hh-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.hh-eyebrow { margin: 0 0 1rem; font: 500 .9375rem/1.3 var(--sans); letter-spacing: -.005em; color: var(--muted); }
.hh-lede { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 44rem; margin: 1.1rem 0 0; }
.hh-lede strong { color: var(--ink); font-weight: 600; }

/* ============ CONTROLS ============ */
.hh .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 1rem; border: 1px solid transparent; border-radius: var(--r-md); font: 550 .9375rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: none; background-image: none; filter: none; transform: none; transition: background-color .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), box-shadow .14s var(--ease); }
.hh .btn:hover, .hh .btn:active { transform: none; text-decoration: none; filter: none; }
.hh .btn:disabled, .hh .btn[disabled] { opacity: .5; cursor: not-allowed; }
.hh .btn-sm { height: 32px; padding: 0 .75rem; font-size: .8438rem; border-radius: 7px; }
.hh .btn-grad { background-color: var(--signal); border-color: var(--signal-hover); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--shadow-sm); }
.hh .btn-grad:hover { background-color: var(--signal-hover); color: #fff; }
.hh .btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-sm); }
.hh .btn-ink:hover { background: #1F232D; color: #fff; }
.hh .btn-quiet, .hh .btn-google { background: var(--surface); border-color: var(--border-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.hh .btn-quiet:hover, .hh .btn-google:hover { background: var(--surface-2); color: var(--ink); border-color: #C9C8C0; }
.hh .btn-danger { background: var(--surface); border-color: #EBC2C1; color: var(--error); box-shadow: var(--shadow-sm); }
.hh .btn-danger:hover { background: var(--error-soft); color: var(--error); }
.hh .btn-danger-solid { background: var(--error); border-color: #A82826; color: #fff; }
.hh .btn-google { font-weight: 550; gap: .65rem; }
.hh .linklike { color: var(--signal); text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; }
.hh .linklike:disabled { color: var(--subtle); }

.hh .field { background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm); transition: box-shadow .14s var(--ease); }
.hh .field:hover { box-shadow: inset 0 0 0 1px #C9C8C0, var(--shadow-sm); }
.hh .field:focus-within { box-shadow: inset 0 0 0 1.5px var(--signal), var(--ring); }
.hh .field input, .hh .field select, .hh .field textarea { padding: .5625rem .75rem; font-size: .9375rem; color: var(--ink); min-height: 40px; }
.hh .field input::placeholder, .hh .field textarea::placeholder { color: #9A9EAA; }
.hh .field select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6070' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; cursor: pointer; }
.hh label.lbl { font-weight: 550; font-size: .8438rem; color: var(--ink); margin-bottom: .375rem; }
.hh .hint { font-size: .8125rem; color: var(--subtle); line-height: 1.45; }
.hh .check { font-size: .875rem; color: var(--muted); }
.hh .check input { accent-color: var(--signal); }
.hh .switch { font-weight: 550; font-size: .875rem; }
.hh .switch span { width: 36px; height: 20px; background: var(--border-strong); }
.hh .switch span::after { width: 16px; height: 16px; top: 2px; left: 2px; box-shadow: 0 1px 2px rgba(11, 13, 18, .25); }
.hh .switch input:checked + span { background: var(--signal); }

.hh .k-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.hh .k-card.pad { padding: 1.25rem 1.375rem; }
.hh .k-well { background: var(--surface-2); border-radius: var(--r-lg); box-shadow: none; border: 1px solid var(--border); }
.hh .k-ring { border: 1px solid var(--signal); background: var(--surface); box-shadow: 0 0 0 3px var(--signal-soft), var(--shadow-sm); }
.hh .k-chip { display: inline-flex; align-items: center; gap: .35rem; height: 22px; padding: 0 .5rem; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font: 500 .75rem/1 var(--sans); box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; }
.hh .k-chip.ok { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px #CBE7D6; }
.hh .k-chip.bad { background: var(--error-soft); color: var(--error); box-shadow: inset 0 0 0 1px #F3CFCE; }
.hh .k-chip.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px #EFDDB4; }
.hh .k-chip.brand { background: var(--signal-soft); color: var(--signal-hover); box-shadow: inset 0 0 0 1px var(--signal-line); }
.hh .k-chip .pip { width: 6px; height: 6px; }
.hh .notice { border-radius: var(--r-md); padding: .75rem .9rem; font-weight: 450; font-size: .9063rem; line-height: 1.5; border: 1px solid transparent; }
.hh .notice.ok { background: var(--success-soft); color: #0A5A34; border-color: #CBE7D6; }
.hh .notice.bad { background: var(--error-soft); color: #8F1F1D; border-color: #F3CFCE; }
.hh .notice.info { background: var(--signal-soft); color: #1B348F; border-color: var(--signal-line); }
.hh .notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hh .empty { padding: 2.5rem 1rem; font-weight: 450; color: var(--subtle); }

.hh kbd { font: 500 .6875rem/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: .2rem .35rem; box-shadow: none; }
.hh code.inline { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .08em .36em; font-size: .845em; color: var(--ink); }
.hh .verb { display: inline-flex; align-items: center; height: 20px; padding: 0 .4rem; border-radius: 5px; background: var(--success-soft); color: var(--success); font: 600 .6875rem/1 var(--mono); letter-spacing: .04em; box-shadow: inset 0 0 0 1px #CBE7D6; }

/* Tables */
.hh .tbl-wrap { border-radius: var(--r-lg); box-shadow: none; border: 1px solid var(--border); background: var(--surface); }
.hh table.tbl { font-size: .875rem; }
.hh .tbl th { background: var(--surface-2); color: var(--muted); font: 500 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .625rem .875rem; border-bottom: 1px solid var(--border); }
.hh .tbl td { padding: .7rem .875rem; border-top: 1px solid var(--border); color: var(--ink-2); line-height: 1.5; }
.hh .tbl tbody tr:first-child td { border-top: 0; }
.hh .tbl td.num { font-variant-numeric: tabular-nums; color: var(--ink); }
.hh .tbl code { font-size: .8125rem; }
.hh .tbl tr.dim td { color: var(--subtle); }

/* Code: one night surface, editor-like */
.hh pre.code { background: var(--night-2); color: var(--night-text); border-radius: var(--r-lg); padding: 1rem 1.125rem; font-size: .8125rem; line-height: 1.7; font-variant-ligatures: none; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.hh pre.code .c { color: #7C849A; }
.hh pre.code .s { color: var(--code-string); }
.hh pre.code .k { color: #C7D2FF; font-weight: 500; }
.hh pre.code .p { color: var(--code-key); }
.hh pre.code .n { color: var(--code-number); }
.hh pre.code .ok { color: #5FD39A; }
.hh pre.code .bad { color: #FF9C99; }
.hh pre.code .kv.on { background: rgba(79, 111, 255, .28); box-shadow: 0 0 0 1px rgba(143, 168, 255, .35); color: #fff; }
.hh .code-wrap, .hh .code-tabs { margin: 1.25rem 0; border-radius: var(--r-lg); background: var(--night-2); box-shadow: 0 0 0 1px rgba(11, 13, 18, .9), var(--shadow-md); overflow: hidden; }
.hh .code-wrap pre.code, .hh .code-tabs pre.code { background: transparent; border-radius: 0; margin: 0 !important; }
.hh .ct-bar { padding: .375rem .5rem; border-bottom: 1px solid var(--night-line); background: rgba(255, 255, 255, .02); }
.hh .ct-tab { font: 500 .8125rem/1 var(--sans); color: var(--night-muted); padding: .45rem .7rem; border-radius: 6px; transition: color .12s, background-color .12s; }
.hh .ct-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hh .ct-tab.on { color: #fff; background: rgba(255, 255, 255, .1); }
.hh .copy-btn { font: 500 .75rem/1 var(--sans); padding: .4rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--night-muted); box-shadow: inset 0 0 0 1px var(--night-line); transition: color .12s, background-color .12s; }
.hh .copy-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hh .copy-btn.done { background: rgba(95, 211, 154, .16); color: #8BE3B6; }
.hh .kv-badge { font: 500 .6875rem/1 var(--sans); color: var(--signal-on-dark); background: rgba(79, 111, 255, .16); border-radius: 5px; }
.hh .kv-badge.live { color: var(--code-number); background: rgba(245, 198, 138, .14); }
.hh .code-wrap > .kv-badge { background: var(--night-3); }
.hh .secret-box { background: var(--night-2); color: var(--night-text); border-radius: var(--r-md); font-size: .8125rem; }
.hh .secret-box .btn-quiet { background: rgba(255, 255, 255, .08); border-color: var(--night-line); color: #fff; box-shadow: none; }

/* Endpoint bar */
.hh .ep-bar { margin: 1.25rem 0; padding: .5rem .5rem .5rem .75rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hh .ep-bar code { font-size: .8438rem; font-weight: 500; color: var(--ink); }
.hh .ep-bar .verb { background: var(--success-soft); }
.hh .ep-base { color: var(--subtle); font-weight: 400; }
.hh .ep-bar .copy-btn { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.hh .ep-bar .copy-btn:hover { background: var(--surface-3); color: var(--ink); }
.hh .ep-bar .copy-btn.done { background: var(--success-soft); color: var(--success); }

/* Dialogs */
.hh .k-dlg { border-radius: var(--r-xl); padding: 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.hh .k-dlg::backdrop, .hh .search-dlg::backdrop { background: rgba(11, 13, 18, .4); backdrop-filter: blur(2px); }
.hh .k-dlg h3 { font-size: 1.125rem; }
.hh .radio-list { background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--border); }

/* ============ TOP BAR ============ */
.hh-top { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 247, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.hh-top-in { display: flex; align-items: center; gap: 2rem; height: var(--top-h); padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.hh-s-site .hh-top-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.hh .k-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; flex: none; }
.hh .k-logo:hover { text-decoration: none; color: var(--ink); }
.hh .k-logo .hh-mark { display: block; flex: none; color: var(--signal); }
.hh .k-logo .hh-word { font: 650 1.25rem/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.hh .k-logo .tag { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); background: transparent; border: 1px solid var(--border-strong); border-radius: 5px; padding: .22rem .36rem; }
.hh-top-nav { display: flex; align-items: stretch; gap: .25rem; height: 100%; }
.hh-top-nav a { position: relative; white-space: nowrap; display: inline-flex; align-items: center; padding: 0 .7rem; font-size: .9063rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .12s; }
.hh-top-nav a:hover { color: var(--ink); text-decoration: none; }
.hh-top-nav a.on { color: var(--ink); }
.hh-top-nav a.on::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px 2px 0 0; }
.hh-top-end { margin-left: auto; display: flex; align-items: center; gap: .625rem; }
.hh-top-end .nav-auth { display: flex; align-items: center; gap: .625rem; }
.hh-top-link { white-space: nowrap; font-size: .9063rem; font-weight: 500; color: var(--muted) !important; padding: .4rem .5rem; border-radius: var(--r-sm); }
.hh-top-link:hover { color: var(--ink) !important; text-decoration: none !important; }
.hh-search { display: inline-flex; align-items: center; gap: .5rem; height: 34px; width: 248px; padding: 0 .5rem 0 .65rem; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--subtle); font: 400 .875rem/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .12s, color .12s; }
.hh-search:hover { border-color: #C2C1B9; color: var(--ink); }
.hh-search span { flex: 1; text-align: left; }
.hh-burger { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.hh-sheet { border-top: 1px solid var(--border); background: var(--bg); padding: .5rem var(--gutter) 1rem; }
.hh-sheet nav { display: grid; }
.hh-sheet .nav-auth { display: contents; }
.hh-sheet a { padding: .8rem .25rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
.hh-sheet a.on { color: var(--signal); }

/* Account menu */
.hh .acct { position: relative; margin-left: 0; }
.hh .acct-av { width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .8125rem/1 var(--sans); box-shadow: none; display: grid; place-items: center; }
.hh .acct-btn:hover .acct-av, .hh .acct-btn[aria-expanded="true"] .acct-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--border-strong); }
.hh .acct-menu { min-width: 248px; border-radius: var(--r-lg); border: 1px solid var(--border); padding: .375rem; box-shadow: var(--shadow-lg); top: calc(100% + 8px); }
.hh .acct-head { padding: .5rem .625rem .625rem; margin-bottom: .25rem; border-bottom: 1px solid var(--border); }
.hh .acct-email { font-weight: 600; font-size: .875rem; color: var(--ink); }
.hh .acct-sub { font-size: .8125rem; color: var(--subtle); }
.hh .acct-menu a { display: block; padding: .45rem .625rem; border-radius: var(--r-sm); font-size: .875rem; font-weight: 450; color: var(--ink-2); background: none; margin: 0; text-decoration: none; }
.hh .acct-menu a:hover, .hh .acct-menu a:focus-visible { background: var(--surface-2); color: var(--ink); }
.hh .acct-menu a[data-signout] { color: var(--error); }
.hh .acct-menu hr { border-top-color: var(--border); margin: .25rem 0; }

/* ============ FOOTER ============ */
.hh-foot { border-top: 1px solid var(--border); margin-top: 5rem; padding: 3rem 0 2.5rem; font-size: .875rem; color: var(--subtle); }
.hh-foot-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.hh-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.hh-foot-brand p { margin: .9rem 0 1rem; max-width: 17rem; line-height: 1.55; }
.hh-foot-col h2 { font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .35rem 0 .9rem; }
.hh-foot-col a { display: block; padding: .22rem 0; color: var(--ink-2); overflow-wrap: anywhere; }
.hh-foot-col a:hover { color: var(--ink); }
.hh-foot-legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .8125rem; line-height: 1.6; }
.hh-foot-slim { margin-top: 0; padding: 1.25rem 0; }
.hh-foot-slim .hh-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; max-width: 1600px; }
.hh-foot-slim .hh-foot-legal { margin: 0; padding: 0; border: 0; }
.hh-foot-slim nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .8125rem; }
.hh-foot-slim nav a { color: var(--muted); }
.hh .docs-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.hh .docs-status:hover { color: var(--ink); text-decoration: none; }
.hh .docs-status .pip { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); flex: none; }
.hh .docs-status[data-level='ok'] .pip { background: #17A862; box-shadow: 0 0 0 3px rgba(23, 168, 98, .16); }
.hh .docs-status[data-level='warn'] .pip { background: #D99A14; box-shadow: 0 0 0 3px rgba(217, 154, 20, .18); }
.hh .docs-status[data-level='bad'] .pip { background: var(--error); box-shadow: 0 0 0 3px rgba(200, 50, 47, .16); }

/* ============ SITE PAGES: hero, sections, cards ============ */
.hh-hero { padding: 4.5rem 0 0; }
.hh .hh-hero h1, .hh .hh-404 h1, .hh .hh-sec-head h2, .hh .hh-auth-pitch h2 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; font-variant-numeric: lining-nums; }
.hh .hh-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; }
.hh-hero h1 span { color: var(--subtle); }
.hh .hh-hero-page h1 { max-width: 22ch; }
.hh .hh-404 h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.022em; }
.hh-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.hh-cta { margin-top: 1.75rem; gap: .625rem; }
.hh-cta .btn { height: 44px; padding: 0 1.15rem; }
.hh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 3.5rem 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hh-facts > div { padding: 1.25rem 1.5rem 1.35rem 0; }
.hh-facts > div + div { border-left: 1px solid var(--border); padding-left: 1.5rem; }
.hh-facts dt { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hh-facts dd { margin: .6rem 0 0; font: 400 2.25rem/1 var(--serif); letter-spacing: -.025em; color: var(--ink); font-variant-numeric: lining-nums; }
.hh-facts dd span { font: 400 .875rem/1.3 var(--sans); letter-spacing: 0; color: var(--subtle); margin-left: .15rem; }
.hh-console { border-radius: var(--r-xl); background: var(--night-2); box-shadow: 0 0 0 1px rgba(11, 13, 18, .9), var(--shadow-lg); overflow: hidden; }
.hh-console-bar { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-bottom: 1px solid var(--night-line); }
.hh-console-bar code { color: var(--night-text); font-size: .8125rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-console-bar .verb, .hh-panel-bar .verb { background: rgba(95, 211, 154, .14); color: #5FD39A; box-shadow: inset 0 0 0 1px rgba(95, 211, 154, .25); }
.hh-console-ok { font: 500 .75rem/1 var(--mono); color: #5FD39A; white-space: nowrap; }
.hh-console pre.code { border-radius: 0; padding: 1.1rem 1.25rem 1.3rem; }
.hh-section { padding: 4.5rem 0 0; }
.hh-section-line > .hh-wrap { border-top: 1px solid var(--border); padding-top: 4.5rem; }
.hh-sec-head { max-width: 40rem; margin-bottom: 1.75rem; }
.hh .hh-sec-head h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.022em; }
.hh-sec-head p { margin: .6rem 0 0; color: var(--muted); }
.hh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem; margin: 1.75rem 0; }
.hh-card-link { position: relative; display: grid; gap: .3rem; padding: 1.15rem 1.2rem 1.2rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none !important; transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease); }
.hh-card-link:hover { border-color: #C9C8C0; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hh-card-ic { color: var(--signal); margin-bottom: .55rem; }
.hh-card-t { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9688rem; color: var(--ink); letter-spacing: -.01em; }
.hh-card-t .hh-ic { color: var(--subtle); opacity: 0; transform: translateX(-4px); transition: opacity .16s, transform .16s var(--ease); }
.hh-card-link:hover .hh-card-t .hh-ic { opacity: 1; transform: none; }
.hh-card-d { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.hh-card-m { font: 500 .6875rem/1 var(--mono); letter-spacing: .04em; color: var(--muted); margin-top: .45rem; }
.hh-ep-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
.hh-ep-cols h3 { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.hh-ep-cols h3 span { font: 500 .75rem/1 var(--mono); color: var(--subtle); }
.hh-ep-list { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.hh-ep { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; text-decoration: none !important; transition: background-color .12s; }
.hh-ep + .hh-ep { border-top: 1px solid var(--border); }
.hh-ep:hover { background: var(--surface-2); }
.hh-ep code { flex: 1; min-width: 0; font-size: .8125rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-ep-n { font-size: .8125rem; color: var(--subtle); white-space: nowrap; }
.hh-mcp-box { margin-top: 2rem; }
.hh-mcp-box p { margin: .3rem 0 .9rem; color: var(--muted); font-size: .9375rem; }
.hh-two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.hh .hh-faq h2 { font-size: 1.25rem; margin: 0 0 .5rem; padding: 0; border: 0; }
.hh-faq h3 { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 1rem; }
.hh-faq h2 + h3 { margin-top: 1rem; }
.hh-faq p { margin: .45rem 0 1.25rem; color: var(--muted); font-size: .9375rem; }

/* Pricing */
.hh-packs { gap: .875rem; align-items: stretch; }
.hh .plan-card { padding: 1.35rem 1.35rem 1.4rem; }
.hh .plan-card h3 { font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hh .plan-card .price { margin-top: 1rem; font: 400 3.25rem/.95 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.hh .plan-card .price .small { font: 400 .875rem/1 var(--sans); letter-spacing: 0; }
.hh .plan-unit { margin: .7rem 0 0; font-size: .875rem; color: var(--muted); }
.hh .plan-unit b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hh .plan-card ul { margin: 1.1rem 0 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--ink-2); }
.hh .plan-card li { margin: .4rem 0; padding-left: 1.35rem; }
.hh .plan-card li::before { top: .42em; width: 12px; height: 12px; border-radius: 0; background: var(--signal); background-image: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hh .plan-card .btn { width: 100%; margin-top: auto !important; }
.hh .plan-card .soon { font: 400 .75rem/1.3 var(--mono); color: var(--subtle); margin: .7rem 0 0; text-align: center; }
.hh-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; margin-top: .875rem; align-items: stretch; }
.hh-scale .btn { width: auto; margin-top: 0 !important; }
.hh-scale form.stack > * + * { margin-top: .625rem; }
.hh-scale form .btn { margin-top: .75rem !important; }
.hh-try { padding: 1.35rem; border-radius: var(--r-lg); background: var(--sand); color: var(--ink-2); border: 1px solid var(--border); display: flex; flex-direction: column; }
.hh-try p { margin: .5rem 0 1rem; color: var(--subtle-on-sand); font-size: .9375rem; }
.hh-try pre.code { margin-bottom: 1.1rem; }
.hh-try .row { margin-top: auto; gap: .5rem; }
.hh-with-toc { display: grid; grid-template-columns: minmax(0, 820px) 200px; gap: 4rem; justify-content: space-between; }
.hh .hh-with-toc .docs-article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hh .hh-with-toc .doc-toc { top: calc(var(--top-h) + 2rem); }

/* ============ DOCS ============ */
.hh-docs { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); max-width: 1600px; margin-inline: auto; min-height: calc(100vh - var(--top-h)); }
.hh-docs-side { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); border-right: 1px solid var(--border); font-size: .875rem; }
.hh .docs-nav { height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem .75rem 2rem var(--gutter); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.hh-nav-grp { margin-bottom: 1.5rem; }
.hh-nav-grp .grp, .hh-nav-grp summary { display: flex; align-items: center; gap: .4rem; padding: .3rem .625rem; margin: 0 0 .2rem; font: 600 .8125rem/1.3 var(--sans); letter-spacing: -.005em; color: var(--ink); text-transform: none; }
.hh-nav-grp summary { cursor: pointer; list-style: none; border-radius: var(--r-sm); user-select: none; }
.hh-nav-grp summary::-webkit-details-marker { display: none; }
.hh-nav-grp summary:hover { background: var(--surface-2); }
.hh-nav-grp summary > span:first-child { flex: 1; }
.hh-nav-grp summary .hh-ic { color: var(--subtle); transition: transform .16s var(--ease); }
.hh-nav-grp[open] summary .hh-ic { transform: rotate(90deg); }
.hh-nav-count { font: 500 .6875rem/1 var(--mono); color: var(--muted); }
.hh .docs-nav a { display: block; position: relative; padding: .34rem .625rem; margin: 1px 0; border-radius: var(--r-sm); color: var(--muted); font-weight: 450; line-height: 1.4; text-decoration: none; transition: color .12s, background-color .12s; }
.hh .docs-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.hh .docs-nav a.on { color: var(--signal-hover); background: var(--signal-soft); font-weight: 550; }
.hh-nav-files { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.hh-nav-files .grp { font: 500 .6875rem/1 var(--mono) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--muted) !important; }
.hh .docs-nav a.docs-status { display: flex; margin-top: .5rem; }
.hh .docs-menu-btn { display: none; }

.hh-docs-main { display: grid; grid-template-columns: minmax(0, 1fr); padding: 2.75rem clamp(1.5rem, 3.5vw, 3.5rem) 4rem; min-width: 0; }
.hh-docs.has-toc .hh-docs-main { grid-template-columns: minmax(0, 1fr) 208px; gap: 4rem; }
.hh-docs-main > article { min-width: 0; width: 100%; max-width: 736px; margin-inline: auto; }
.hh-docs.is-ref .hh-docs-main > article { max-width: 1180px; }
.hh-doc-head { margin-bottom: 2rem; }
.hh-crumbs { display: flex; align-items: center; gap: .35rem; margin-bottom: .9rem; font-size: .8125rem; font-weight: 500; color: var(--subtle); }
.hh-crumbs a { color: var(--subtle); }
.hh-crumbs a:hover { color: var(--ink); text-decoration: none; }
.hh-crumbs span { color: var(--signal); }
.hh .doc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.hh .doc-h1 { font-size: clamp(1.875rem, 3.2vw, 2.375rem); line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.hh-doc-meta { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; }
.hh-doc-meta code { font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hh-doc-updated { margin: .75rem 0 0; font-size: .875rem; color: var(--subtle); }

/* Prose */
.hh .doc-body { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.hh .doc-body p, .hh .doc-body li, .hh .docs-article p, .hh .docs-article li { color: var(--ink-2); }
.hh .doc-body p { margin: 1.1rem 0; }
.hh .doc-body > p:first-child, .hh-ref-intro > p:first-child { margin-top: 0; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.hh .doc-body > p:first-child strong, .hh-ref-intro > p:first-child strong { color: var(--ink); font-weight: 600; }
.hh .doc-body strong { color: var(--ink); font-weight: 600; }
.hh .doc-body h2, .hh .docs-article h2 { margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 1.4375rem; letter-spacing: -.024em; scroll-margin-top: calc(var(--top-h) + 8px); }
.hh .doc-body h3, .hh .docs-article h3 { margin: 2rem 0 .5rem; font-size: 1.0625rem; scroll-margin-top: calc(var(--top-h) + 24px); }
.hh .doc-body ul, .hh .doc-body ol, .hh .docs-article ul { padding-left: 1.3rem; margin: 1.1rem 0; }
.hh .doc-body li { margin: .4rem 0; padding-left: .2rem; }
.hh .doc-body li::marker, .hh .docs-article li::marker { color: var(--border-strong); }
.hh .doc-body ol li::marker { color: var(--subtle); font: 500 .8125rem var(--mono); }
.hh .doc-body a { text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hh .doc-body a:hover { text-decoration-color: currentColor; }
.hh .doc-body .tbl-wrap, .hh .docs-article .tbl-wrap { margin: 1.25rem 0; }
.hh .doc-body .notice { margin: 1.25rem 0; }
.hh-cost { padding: .7rem .9rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: .9063rem !important; line-height: 1.55 !important; }

/* Table of contents */
.hh .doc-toc { position: sticky; top: calc(var(--top-h) + 2.75rem); align-self: start; max-height: calc(100vh - var(--top-h) - 5rem); overflow-y: auto; font-size: .8125rem; }
.hh .doc-toc .grp { font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.hh .doc-toc a { display: block; padding: .3rem 0 .3rem .875rem; margin-left: 0; border-left: 1px solid var(--border); color: var(--muted); font-weight: 450; line-height: 1.4; text-decoration: none; transition: color .12s, border-color .12s; }
.hh .doc-toc a:hover { color: var(--ink); text-decoration: none; }
.hh .doc-toc a.on { color: var(--ink); font-weight: 550; border-left-color: var(--ink); }

/* Copy page */
.hh .page-actions { flex: none; gap: 0; margin-top: .3rem; }
.hh .page-actions .copy-md { border-radius: 7px 0 0 7px; }
.hh .pa-menu summary.btn { border-radius: 0 7px 7px 0; margin-left: -1px; padding: 0 .45rem; }
.hh .pa-menu[open] summary { background: var(--surface-2); }
.hh .pa-pop { width: 280px; padding: .375rem; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.hh .pa-pop a { padding: .5rem .625rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.hh .pa-pop a:hover { background: var(--surface-2); }
.hh .pa-pop strong { font-size: .875rem; font-weight: 550; }
.hh .pa-pop small { font-size: .7813rem; font-weight: 400; color: var(--subtle); }

/* Pager and page footer */
.hh .pager { margin-top: 3.5rem; gap: .875rem; }
.hh .pager a { padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.hh .pager a:hover { border-color: #C9C8C0; box-shadow: var(--shadow-md); color: var(--ink); }
.hh .pager-dir { font-size: .8125rem; color: var(--subtle); }
.hh .pager strong { font-weight: 600; font-size: .9688rem; letter-spacing: -.01em; }
.hh-doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--subtle); }

/* Key bar */
.hh .key-bar { margin: 0 0 2rem; padding: .7rem .8rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); gap: .7rem .85rem; }
.hh .kb-ic { width: 32px; height: 32px; border-radius: var(--r-md); background: var(--signal-soft); background-image: none; box-shadow: inset 0 0 0 1px var(--signal-line); }
.hh .kb-ic svg { stroke: var(--signal); width: 16px; height: 16px; }
.hh .kb-txt strong { font: 600 .9063rem/1.3 var(--sans); color: var(--ink); }
.hh .kb-txt span { font-size: .8438rem; color: var(--muted); }
.hh .kb-txt span.warn { color: var(--warn); }
.hh .kb-sel select { height: 32px; font: 500 .8438rem/1 var(--sans); border-radius: 7px; background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.hh .kb-paste input { border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: .8125rem; }
.hh .kb-forget { font-weight: 450; color: var(--subtle); }

/* Try it, MCP install */
.hh .try-it { padding: 1.1rem 1.15rem 1.15rem; margin: 1.75rem 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.hh .try-title { font-weight: 600; color: var(--ink); }
.hh .try-form { gap: .5rem; }
.hh .try-form .field input { font-family: var(--mono); font-size: .875rem; }
.hh .try-sync, .hh .try-hint { font-size: .8125rem; color: var(--subtle) !important; }
.hh .mcp-install { padding: 1.15rem; margin: 1.75rem 0; }
.hh .mcp-btn { padding: .75rem .85rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--ink); box-shadow: none; transition: border-color .14s, background-color .14s; }
.hh .mcp-btn:hover { background: var(--surface-2); border-color: #C9C8C0; box-shadow: none; transform: none; text-decoration: none; }
.hh .mcp-btn svg { width: 32px; height: 32px; padding: 7px; border-radius: var(--r-md); color: var(--signal); background: var(--signal-soft); background-image: none; box-shadow: inset 0 0 0 1px var(--signal-line); }
.hh .mcp-btn strong { font-size: .9063rem; font-weight: 600; }
.hh .mcp-btn small { font-size: .7813rem; font-weight: 400; color: var(--subtle); }

/* Search */
.hh .search-dlg { border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.hh .search-box { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--subtle); }
.hh .search-box input { font-size: 1rem; color: var(--ink); }
.hh .search-box input:focus-visible { outline: none; }
.hh .search-results { padding: .375rem; }
.hh .sr { padding: .55rem .7rem; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; }
.hh .sr.on, .hh .sr:hover { background: var(--surface-2); color: var(--ink); }
.hh .sr-sec { font: 500 .6563rem/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.hh .sr-t { font-weight: 600; font-size: .9063rem; color: var(--ink); }
.hh .sr code, .hh .sr-d { font-size: .7813rem; color: var(--subtle); }
.hh .search-foot { padding: .6rem 1rem; border-top: 1px solid var(--border); color: var(--subtle); background: var(--surface-2); }

/* ---- API reference: prose left, request and response right ---- */
.hh-ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); gap: 3rem; align-items: start; }
.hh-ref-main { min-width: 0; }
.hh-ref-intro > :first-child { margin-top: 0; }
.hh-ref-intro > .ep-bar { display: none; }
.hh-ref-side { position: sticky; top: calc(var(--top-h) + 1.5rem); display: grid; gap: 1rem; min-width: 0; max-height: calc(100vh - var(--top-h) - 3rem); grid-template-rows: auto minmax(0, 1fr); }
.hh-panel { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); background: var(--night-2); box-shadow: 0 0 0 1px rgba(11, 13, 18, .9), var(--shadow-md); overflow: hidden; scroll-margin-top: calc(var(--top-h) + 24px); }
.hh-panel-bar { display: flex; align-items: center; gap: .75rem; min-height: 42px; padding: .4rem .5rem .4rem .9rem; border-bottom: 1px solid var(--night-line); background: var(--night-3); }
.hh-panel-title { font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.hh-panel-path { display: flex; align-items: center; gap: .5rem; min-width: 0; margin-left: auto; padding-right: .4rem; }
.hh-panel-path code { font-size: .75rem; color: var(--night-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-panel .code-wrap, .hh-panel .code-tabs { margin: 0; border-radius: 0; box-shadow: none; background: transparent; min-height: 0; display: flex; flex-direction: column; }
.hh-panel .ct-bar { background: transparent; }
.hh-panel pre.code { overflow: auto; }
.hh-resp-panel { min-height: 0; display: flex; flex-direction: column; }
.hh-resp-panel .code-wrap { flex: 1; }
.hh-resp-panel .code-wrap .copy-btn { opacity: 1; top: .5rem; right: .5rem; }
.hh-status-tabs { display: flex; gap: .15rem; margin-left: auto; }
.hh-status-tabs button { border: 0; background: none; cursor: pointer; height: 28px; padding: 0 .55rem; border-radius: 6px; font: 500 .75rem/1 var(--mono); color: var(--night-muted); transition: color .12s, background-color .12s; }
.hh-status-tabs button::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 99px; background: #F0A45D; vertical-align: 1px; }
.hh-status-tabs button[data-status^="2"]::before { background: #5FD39A; }
.hh-status-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hh-status-tabs button.on { color: #fff; background: rgba(255, 255, 255, .1); }
.hh-params { margin: 1.25rem 0; border-top: 1px solid var(--border); }
.hh-param { padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--border); }
.hh-param-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .625rem; }
.hh-param-name code.inline { background: none; border: 0; padding: 0; font: 600 .875rem/1.3 var(--mono); color: var(--ink); }
.hh-param-in { font: 400 .75rem/1 var(--mono); color: var(--subtle); }
.hh-param-req { font: 500 .6875rem/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.hh-param-req.req { color: #B4530A; }
.hh-param-desc { margin-top: .4rem; font-size: .9063rem; line-height: 1.6; color: var(--muted); }

/* Plain pages (terms, privacy, status) */
.hh-plain { display: grid; grid-template-columns: minmax(0, 736px); justify-content: center; gap: 4rem; padding: 3.5rem var(--gutter) 0; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; }
.hh-plain.has-toc { grid-template-columns: minmax(0, 736px) 208px; }
.hh-plain .doc-toc { top: calc(var(--top-h) + 3.5rem); }

/* ============ AUTH ============ */
body.hh-s-auth { min-height: 100vh; display: flex; flex-direction: column; }
body.hh-s-auth > .hh-foot { margin-top: auto; border-top-color: transparent; }
.hh-top-auth { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; position: static; }
main.hh-auth { width: 100%; max-width: calc(400px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2rem, 9vh, 5.5rem) var(--gutter) 3rem; }
main.hh-auth-wide { max-width: calc(560px + 2 * var(--gutter)); padding-top: clamp(1.5rem, 5vh, 3.5rem); }
main.hh-auth-split { max-width: calc(920px + 2 * var(--gutter)); display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
.hh .auth-card, .hh-auth-card { padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.hh .auth-h1 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.hh-auth-sub { margin: .5rem 0 1.5rem; font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.hh .or { margin: 1.1rem 0; font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.hh .or::before, .hh .or::after { background: var(--border); }
.hh-auth-switch { margin: 1.25rem 0 0; text-align: center; font-size: .9063rem; color: var(--muted); }
.hh-auth-legal { margin: .75rem auto 0; max-width: 21rem; text-align: center; font-size: .7813rem; line-height: 1.55; color: var(--subtle); }
.hh-auth-legal a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.hh .sent-icon { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--signal-soft); color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal-line); }
.hh .sent-icon svg { width: 22px; height: 22px; }
.hh .sent-title { font-size: 1.25rem; }
.hh-auth-pitch { padding-top: 2rem; }
.hh .hh-auth-pitch h2 { font-size: 2.25rem; line-height: 1.08; letter-spacing: -.022em; margin-bottom: 1.5rem; }
.hh .auth-pitch .ticks { gap: 0; }
.hh .auth-pitch .ticks li { padding: .9rem 0 .9rem 1.75rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.hh .auth-pitch .ticks li strong { color: var(--ink); font-weight: 600; }
.hh .auth-pitch .ticks li::before { top: 1.2rem; left: 0; width: 14px; height: 14px; border-radius: 0; background: var(--signal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.2 4.7-5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hh .auth-pitch .ticks li::after { content: none; }
.hh-auth-pitch pre.code { margin-top: 1.25rem; }
.hh .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.5rem; counter-reset: none; }
.hh .steps li { display: flex; align-items: center; gap: .5rem; padding: .75rem 0 0; border-radius: 0; background: none; box-shadow: none; border-top: 2px solid var(--border-strong); font: 500 .8125rem/1.2 var(--sans); color: var(--subtle); }
.hh .steps li span { display: inline-flex; width: auto; height: auto; background: none !important; color: inherit !important; font: 500 .75rem/1 var(--mono); }
.hh .steps li span::before { content: '0'; }
.hh .steps li.on { border-top-color: var(--signal); color: var(--ink); box-shadow: none; }
.hh .steps li.done { border-top-color: var(--ink); color: var(--ink-2); }
/* Shared sign-in steps (verify link, two-factor, confirmations) reuse the same card. */
body.hh-s-auth > .section { padding: clamp(2rem, 9vh, 5.5rem) 0 3rem; }
body.hh-s-auth .wrap-narrow { max-width: calc(400px + 2 * var(--gutter)) !important; width: 100%; padding-inline: var(--gutter); }

/* ============ STATUS, 404 ============ */
.hh .st-banner { border-radius: var(--r-lg); padding: 1rem 1.15rem; border: 1px solid transparent; }
.hh .st-banner.operational { background: var(--success-soft); color: #0A5A34; border-color: #CBE7D6; }
.hh .st-banner.degraded { background: var(--warn-soft); color: #6B4700; border-color: #EFDDB4; }
.hh .st-banner.down { background: var(--error-soft); color: #8F1F1D; border-color: #F3CFCE; }
.hh .st-banner strong { font-weight: 600; }
.hh .st-dot { width: 10px; height: 10px; }
.hh .st-card { padding: .25rem 1.25rem; }
.hh .st-comp strong, .hh .st-card .spread strong { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.hh .st-comp + .st-comp { border-top-color: var(--border); }
.hh .st-bars { height: 36px; gap: 2px; }
.hh .st-bars i { border-radius: 2px; background: #17A862; }
.hh .st-bars i.warn { background: #D99A14; }
.hh .st-bars i.bad { background: var(--error); }
.hh .st-bars i.none { background: var(--surface-3); }
.hh-404 { max-width: calc(640px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(3rem, 12vh, 7rem) var(--gutter) 0; }
.hh-404-code { margin: 0 0 1rem; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; color: var(--signal); }
.hh-404-links { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--border); }
.hh-404-links a { display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 1rem; padding: .95rem .25rem; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: background-color .12s, padding .16s var(--ease); }
.hh-404-links a:hover { background: var(--surface-2); padding-inline: .75rem; text-decoration: none; }
.hh-404-links strong { font-weight: 600; }
.hh-404-links span { color: var(--muted); font-size: .9063rem; }
.hh-404-links .hh-ic { color: var(--subtle); }

/* ============ MOTION: one quiet entrance, nothing loops ============ */
@keyframes hh-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hh-hero .hh-wrap > *, .hh-hero-grid > *, main.hh-auth > *, .hh-404 > * { animation: hh-rise .5s var(--ease) both; }
.hh-hero-grid > :nth-child(2), main.hh-auth > :nth-child(2), .hh-404 > :nth-child(3) { animation-delay: .06s; }
.hh-hero .hh-facts, main.hh-auth > :nth-child(n + 3), .hh-404 > :nth-child(n + 4) { animation-delay: .12s; }
.hh-hero .hh-hero-grid { animation: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1320px) {
  .hh-ref { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 2.5rem; }
}
@media (max-width: 1180px) {
  .hh-docs.has-toc .hh-docs-main, .hh-plain.has-toc { grid-template-columns: minmax(0, 1fr); }
  .hh-plain.has-toc { grid-template-columns: minmax(0, 736px); }
  .hh .doc-toc { display: none; }
  .hh-with-toc { grid-template-columns: minmax(0, 1fr); }
  .hh-ref { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hh-ref-main { display: contents; }
  .hh-ref-intro { order: 1; }
  .hh-ref-side { order: 2; position: static; max-height: none; grid-template-rows: none; margin-top: 1.5rem; }
  .hh-ref-rest { order: 3; }
  .hh-panel pre.code { max-height: 440px; }
}
@media (max-width: 1040px) {
  .hh-search { width: 34px; padding: 0; justify-content: center; }
  .hh-search span, .hh-search kbd { display: none; }
}
@media (max-width: 900px) {
  .hh-top-in { gap: .75rem; }
  .hh-top-nav, .hh-top-end .hh-top-link, .hh-top-end .nav-auth > .btn-quiet { display: none; }
  .hh-burger { display: inline-flex; }
  .hh-top-auth .hh-top-end .hh-top-link { display: inline-flex; }
  .hh-docs { grid-template-columns: minmax(0, 1fr); }
  .hh-docs-side { position: sticky; top: var(--top-h); z-index: 20; height: auto; border-right: 0; border-bottom: 1px solid var(--border); background: rgba(250, 250, 247, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0; padding: 0 !important; box-shadow: none; }
  .hh .docs-menu-btn { display: flex !important; align-items: center; gap: .6rem; width: 100%; height: 44px; padding: 0 var(--gutter) !important; border: 0; border-radius: 0 !important; background: none !important; font: 500 .875rem/1 var(--sans) !important; color: var(--ink); cursor: pointer; margin: 0 !important; }
  .hh .docs-menu-btn span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hh .docs-menu-btn .hh-ic:last-child { color: var(--subtle); transition: transform .16s var(--ease); }
  .hh .docs-menu-btn[aria-expanded="true"] .hh-ic:last-child { transform: rotate(180deg); }
  html.js .hh .docs-nav { display: none; height: auto; max-height: calc(100vh - var(--top-h) - 44px); margin: 0; padding: 1rem var(--gutter) 2rem; border-radius: 0; border-top: 1px solid var(--border); background: var(--bg); box-shadow: 0 24px 40px -24px rgba(11, 13, 18, .3); }
  html.js .hh .docs-nav.open { display: block; }
  .hh-docs-main { padding: 1.75rem var(--gutter) 3rem; }
  .hh-hero { padding-top: 3rem; }
  .hh-hero-grid, .hh-two, .hh-ep-cols, .hh-split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hh-split { gap: .875rem; }
  .hh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
  .hh-facts > div { padding: 1rem 1rem 1.1rem 0; }
  .hh-facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hh-facts > div:nth-child(even) { padding-left: 1rem; }
  .hh-facts > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .hh-facts dd { font-size: 1.375rem; }
  .hh-section { padding-top: 3.25rem; }
  .hh-section-line > .hh-wrap { padding-top: 3.25rem; }
  .hh-packs.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-foot-brand { grid-column: 1 / -1; }
  .hh-foot { margin-top: 3.5rem; }
  main.hh-auth-split { grid-template-columns: minmax(0, 1fr); max-width: calc(400px + 2 * var(--gutter)); gap: 2.5rem; }
  .hh-auth-pitch { padding-top: 0; }
}
@media (max-width: 640px) {
  .hh .k-logo .tag { display: none; }
  .hh-top-end .nav-auth .btn-grad { height: 32px; padding: 0 .7rem; font-size: .8438rem; }
  .hh-cards, .hh-packs.g4 { grid-template-columns: minmax(0, 1fr); }
  .hh .doc-top { flex-direction: column; gap: .9rem; }
  .hh .page-actions { margin-top: 0; }
  .hh .doc-top .copy-md { display: inline-flex; }
  .hh .pa-pop { right: auto; left: 0; max-width: calc(100vw - 2 * var(--gutter)); }
  .hh .doc-body > p:first-child, .hh-ref-intro > p:first-child { font-size: 1.0625rem; }
  .hh .doc-body h2, .hh .docs-article h2 { margin-top: 2.25rem; padding-top: 1.5rem; font-size: 1.3125rem; }
  .hh pre.code { font-size: .75rem; }
  .hh .auth-card, .hh-auth-card { padding: 1.5rem 1.25rem; }
  .hh-404-links a { grid-template-columns: 1fr auto; }
  .hh-404-links span { grid-column: 1; grid-row: 2; }
  .hh-404-links .hh-ic { grid-row: 1 / span 2; grid-column: 2; }
  .hh-ep-n { display: none; }
  .hh-foot-slim .hh-foot-in { flex-direction: column; align-items: flex-start; }
  .hh-plain { padding-top: 2rem; }
  .hh .st-comp { align-items: flex-start; }
  .hh .st-bars { gap: 1px; }
  .hh .st-bars i { min-width: 1px; border-radius: 1px; }
  .hh .st-card { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hh *, .hh *::before, .hh *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .hh-card-link:hover { transform: none; }
}

/* ---- API reference index (/docs/reference) ---- */
.hh-ref-link { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; text-decoration: none !important; }
.hh-ref-link code { font-size: .8125rem; color: var(--ink); }
.hh a.hh-ref-link:hover code { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.hh .doc-body h3 + .tbl-wrap { margin-top: .75rem; }
