/* ---------- buttons ---------- */
.btn { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--border-strong); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 13.5px; line-height: 1; white-space: nowrap; transition: background var(--ease), border-color var(--ease), color var(--ease), transform 0.08s; user-select: none; }
.btn:hover:not(:disabled) { text-decoration: none; border-color: var(--text-2); background: var(--surface-3); color: var(--text); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; }
.btn--sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: var(--on-accent); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--light { --btn-bg: var(--warm-white); --btn-bd: var(--warm-white); --btn-fg: #111111; }
.btn--light:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); border-color: transparent; color: var(--text); }
.btn--danger { --btn-bg: transparent; --btn-bd: var(--accent); --btn-fg: var(--accent); }
.btn--danger:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.is-spinning .icon { animation: spin 0.8s linear infinite; }

.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
.spinner--lg { width: 32px; height: 32px; border-width: 3px; color: var(--accent); }
.spinner-wrap { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- badges, availability ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--border-strong); color: var(--text-2); background: transparent; white-space: nowrap; }
.badge__dot { width: 6px; height: 6px; background: currentColor; }
.badge--ok { color: var(--text); border-color: var(--text-2); }
.badge--warn, .badge--deal { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge--bad { color: var(--bad); border-color: var(--bad); }
.badge--info { color: var(--text-2); border-color: var(--border-strong); }

.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.avail__dot { width: 8px; height: 8px; background: currentColor; }
.avail--ok { color: var(--text); }
.avail--ok .avail__dot { background: var(--available); }
.avail--warn { color: var(--text-2); }
.avail--warn .avail__dot { background: var(--text-3); }
.avail--info { color: var(--text-2); }
.avail--info .avail__dot { background: var(--text-3); }
.avail--bad { color: var(--text-3); }
.avail--bad .avail__dot { background: var(--border-strong); }
.avail__eta { color: var(--text-3); font-weight: 500; }

/* ---------- panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__hint, .field__hint { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text); }
.field__error { color: var(--accent); font-size: 13px; }
.field__group { display: flex; align-items: stretch; border: 1px solid var(--border-strong); background: var(--bg-raised); transition: border-color var(--ease); }
.field__group:hover { border-color: var(--text-3); }
.field__group:focus-within { border-color: var(--accent); }
.field__group .input { border: 0; background: transparent; }
.field__prefix { display: grid; place-items: center; padding: 0 12px; color: var(--text-3); font-weight: 600; border-right: 1px solid var(--border); }
.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text); outline: none; transition: border-color var(--ease); }
.input:hover { border-color: var(--text-3); }
.input:focus { border-color: var(--accent); }
.input[aria-invalid] { border-color: var(--accent); }
select.input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: color var(--ease); }
.toggle:hover { color: var(--text); }
.toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
.toggle--block { align-items: flex-start; padding: 12px; border: 1px solid var(--border); background: var(--bg-raised); }

/* ---------- segmented / chips ---------- */
.seg { display: flex; gap: 0; }
.seg__btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--border-strong); margin-left: -1px; background: var(--bg-raised); color: var(--text-2); padding: 8px 14px; font-weight: 600; font-size: 13.5px; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.seg__btn:first-child { margin-left: 0; }
.seg__btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); position: relative; z-index: 1; }
.seg__btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); position: relative; z-index: 2; }
.seg__btn:disabled { opacity: 0.35; }
.seg__sub { font-size: 11px; font-weight: 500; color: var(--text-3); }
.seg--bundle { display: grid; grid-template-columns: repeat(4, 1fr); }
.seg--bundle .seg__btn { padding: 8px 4px; }
.seg--tabs { display: inline-flex; border-bottom: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg--tabs .seg__btn { flex-direction: row; border: 0; margin: 0; background: transparent; padding: 10px 16px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.seg--tabs .seg__btn:hover:not(:disabled) { background: transparent; color: var(--text); border-bottom-color: var(--border-strong); }
.seg--tabs .seg__btn.is-active { background: transparent; color: var(--text); border-bottom-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.chip--button { height: 34px; font-size: 13.5px; font-weight: 600; cursor: pointer; border-color: var(--border-strong); transition: background var(--ease), border-color var(--ease), color var(--ease); }
.chip--button:hover { color: var(--text); background: var(--surface-2); border-color: var(--text-3); }
.chip--button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* ---------- price ---------- */
/* Discount: struck-through compare + quiet orange badge, then the price you pay. */
.price { position: relative; }
.price__deal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.price__compare { color: var(--text-3); font-size: 18px; font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; }
.off { display: inline-block; padding: 3px 9px; background: #f2f0ea; color: #26323a; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; white-space: nowrap; }
.price__main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; line-height: 1; color: var(--text); }
.price .off, .spec-inline .off { padding: 4px 7px; border: 1px solid rgba(255, 107, 50, 0.24); background: rgba(255, 107, 50, 0.08); color: #ff946b; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; line-height: 1; }
.price--xl .price__now { font-size: 56px; }
.price--xl .price__compare { font-size: 22px; }
.price--lg .price__now { font-size: 40px; }
.price--md .price__now { font-size: 22px; }
.price__unit { color: #8b9aa5; font-size: 14px; font-weight: 500; }
.price--lg .price__unit, .price--xl .price__unit { font-size: 18px; }
/* Two intact rows: compare + discount, then amount + unit. */
.price--stack { display: inline-flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; width: max-content; gap: 7px; line-height: 1.2; }
.price--stack .price__deal, .price--stack .price__main { flex-wrap: nowrap; white-space: nowrap; }
.price--stack .price__deal { justify-content: flex-end; gap: 8px; margin: 0; min-height: 17px; }
.price--stack .price__main { gap: 6px; min-height: 23px; }
.price--stack .price__compare { font-size: 12px; font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.price--stack .off { padding: 3px 5px; font-size: 9px; }
.price--stack .price__now { font-size: 19px; letter-spacing: -0.025em; }
.price--stack .price__unit { font-size: 12px; }
.price__std { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }

/* ---------- escrow / key-value ---------- */
.escrow { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-raised); }
.escrow__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; transition: background var(--ease); }
.escrow__row:hover { background: var(--surface); }
.escrow__row:first-child { border-top: 0; }
.escrow__row dt { color: var(--text-2); display: flex; flex-direction: column; gap: 1px; }
.escrow__hint { font-size: 11.5px; color: var(--text-3); }
.escrow__row dd { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.escrow__row dd strong { font-size: 15px; font-weight: 700; }
.escrow__idr { font-size: 11.5px; color: var(--text-3); }
.escrow__row--total { background: var(--surface); }
.escrow__row--total dd strong { font-size: 17px; }
.escrow__row--bad dd strong { color: var(--accent); }
.escrow__row--bad { background: var(--accent-soft); }

.kv { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-raised); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--text-2); }
.kv dd { font-weight: 600; text-align: right; }

/* ---------- notices, states ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-left-width: 3px; background: var(--surface-2); font-size: 13.5px; }
.notice__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notice__body p { color: var(--text-2); }
.notice__action { margin-top: 8px; }
.notice--warn, .notice--bad { border-color: var(--accent); background: var(--accent-soft); }
.notice--warn .notice__icon, .notice--bad .notice__icon { color: var(--accent); }
.notice--ok .notice__icon, .notice--info .notice__icon { color: var(--text-2); }
.notice__icon { margin-top: 2px; }

.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; border: 1px solid var(--line); background: var(--bg-raised); }
.state__icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--surface-2); color: var(--text-2); }
.state--error .state__icon { background: var(--accent-soft); color: var(--accent); }
.state__title { font-size: 16px; }
.state__message { color: var(--text-2); max-width: 46ch; }
.state__ref { color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.state__action { margin-top: 8px; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 40%, var(--surface) 55%); background-size: 300% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton--row { height: 56px; margin-bottom: 1px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- modal ---------- */
dialog.modal { padding: 0; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); width: calc(100% - 24px); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: hidden; }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog.modal[open] { display: flex; animation: modal-in 0.14s ease-out; }
.modal--sm { max-width: 440px; }
.modal--md { max-width: 540px; }
.modal--lg { max-width: 720px; }
.modal__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; border-top: 2px solid var(--accent); }
.modal__header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.modal__title { font-size: 19px; }
.modal__subtitle { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.modal__close { align-self: flex-start; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: var(--text-3); transition: background var(--ease), color var(--ease); }
.modal__close:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.modal__close:disabled { opacity: 0.3; }
.modal__body { display: flex; flex-direction: column; gap: 16px; padding: 16px 20px; overflow-y: auto; }
.modal__footer { display: flex; align-items: stretch; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--border); background: var(--bg-raised); }
/* One footer is one control row: a large primary button must not stand taller than
   the button next to it (Rent 44px beside Cancel 36px read as a broken row). */
.modal__footer > .btn { height: auto; min-height: 36px; }
.modal__footer > .btn--lg { min-height: 44px; flex: 1; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  dialog.modal { margin: auto 0 0; width: 100%; max-width: none; border-bottom: 0; max-height: 92dvh; }
}

/* ---------- result / steps / bullets / meter ---------- */
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 0; }
.result h3 { font-size: 19px; }
.result p { color: var(--text-2); max-width: 42ch; }
.result__sub { font-size: 13px; color: var(--text-3) !important; }
.result__amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent) !important; line-height: 1.1; }
.result__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--surface-3); color: var(--text); }
.result__icon--ok { background: var(--accent); color: var(--on-accent); }
.result__icon--warn, .result__icon--bad { background: var(--accent-soft); color: var(--accent); }
.result__icon--info { background: var(--surface-3); color: var(--text-2); }
.steps { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; text-align: left; }
.steps__item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.steps__n { display: grid; place-items: center; width: 22px; height: 22px; background: var(--surface-3); font-size: 12px; font-weight: 700; color: var(--text); }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.bullets .icon { margin-top: 3px; color: var(--accent); }

.meter { display: flex; flex-direction: column; gap: 6px; }
.meter__label { font-size: 12.5px; color: var(--text-3); }
.meter__track { height: 4px; background: var(--surface-3); overflow: hidden; }
.meter__fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.meter__fill--ok { background: var(--text-2); }
.meter__fill--warn { background: var(--accent); }

.rent-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .rent-fields { grid-template-columns: 1fr 1fr; } }

/* ---------- boxed bundle tabs (1X 2X 4X 8X) ---------- */
.seg--boxes { display: inline-flex; }
.seg--boxes .seg__btn { min-width: 58px; padding: 9px 18px; background: #000; border-color: var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.seg--boxes .seg__btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.seg--boxes .seg__btn.is-active { background: var(--warm-white); border-color: var(--warm-white); color: #111; }

/* ---------- spec sheet rows (very faint separators) ---------- */
.specs { display: flex; flex-direction: column; }
.specs__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; transition: background var(--ease); }
.specs__row:first-child { border-top: 1px solid var(--line); }
.specs__row:hover { background: rgba(255, 255, 255, 0.015); }
.specs dt { color: var(--text-3); }
.specs dd { font-weight: 600; text-align: right; }
.specs dd.is-unknown { color: var(--text-3); font-weight: 500; font-style: italic; }
.specs dd.is-deal { color: var(--accent); }
.spec-inline { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.spec-before { text-decoration: line-through; font-weight: 500; }
.is-deal { color: var(--accent); }

/* ---------- model logo tile (light, so brand marks keep their original colours) ---------- */
.logo { display: inline-grid; place-items: center; flex: none; background: #f2f0ea; border: 1px solid #f2f0ea; color: #111; }
.logo__img { display: block; object-fit: contain; }
.logo__mono { font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.model { display: flex; align-items: center; gap: 12px; }

/* ---------- account strips: one row of squares per account in a bundle ---------- */
/* Dark squares = reported usage; light squares = not reported as consumed.
   Missing/ended accounts stay neutral rather than implying available quota. */
.abars { --dark: var(--available); --light: #b5dfc6; display: inline-flex; }
.abars__grid { display: flex; flex-direction: column; gap: 3px; width: max-content; }
.abars__row { display: flex; gap: 1px; }
.abars__cell { flex: none; width: 5px; height: 5px; background: var(--light); }
.abars__cell.is-used { background: var(--dark); }
.abars__cell.is-unknown { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.abars__row--missing .abars__cell, .abars__cell.is-missing { background: rgba(255, 255, 255, 0.05); }
.abars__row--done .abars__cell, .abars__cell.is-done { background: rgba(255, 255, 255, 0.07); }
/* Fixed tracks and gaps: no flex distribution or per-account separators. */
.abars--combined .abars__row { display: grid; grid-template-columns: repeat(16, 6px); gap: 2px; }
.abars--combined .abars__cell { width: 6px; height: 14px; }
.accounts-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.accounts-cell .dedicated { margin: 0; }
.token-burn { font-variant-numeric: tabular-nums; }

/* ---------- misc ---------- */
.btn--cta { text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.btn-row--end { justify-content: flex-end; }
.stack-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.table .num .stack-cell { align-items: flex-end; }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.time-left { font-size: 18px; letter-spacing: -0.02em; }
.bump { display: inline-block; padding: 1px 7px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; animation: bump-in 0.5s ease-out; }
@keyframes bump-in { from { transform: translateY(4px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.rules { display: flex; flex-direction: column; gap: 6px; color: var(--text-3); font-size: 12.5px; border-left: 2px solid var(--line); padding-left: 12px; }
.result__amount--muted { color: var(--text-2) !important; }
.keybox { display: flex; flex-direction: column; gap: 14px; }
.keybox__key { display: block; padding: 14px; background: #000; border: 1px solid var(--border-strong); color: var(--accent); font-family: var(--mono); font-size: 14px; word-break: break-all; user-select: all; }
.cell-facts { color: var(--text-3); font-size: 12.5px; }
.cell-keywords { display: flex; flex-wrap: wrap; gap: 3px 8px; max-width: 248px; font-size: 11.5px; }
.cell-keywords > span { white-space: nowrap; }
.cell-hours { font-size: 11.5px; overflow-wrap: anywhere; }
.dedicated { display: inline-block; margin-top: 2px; padding: 1px 6px; border: 1px solid var(--border-strong); color: var(--text-2); font-family: var(--mono); font-size: 11px; }
.dedicated.is-taken { color: var(--text-3); border-color: var(--border); }
.stack-cell > span { white-space: nowrap; }
.stack-cell > span[data-testid="rental-extension"] { white-space: normal; max-width: 150px; text-align: left; }

/* ---------- API keys ---------- */
.keyform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.keyform > .field { min-width: 0; }
.keyform .field__label { line-height: 20px; }
.keyform > .btn { justify-self: start; height: 40px; }
@media (min-width: 860px) {
  .keyform { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  /* Match the 20px label + 6px field gap, independent of hints/errors below. */
  .keyform > .btn { margin-top: 26px; }
}
.key-mask { color: var(--text-2); white-space: nowrap; }
.key-mask__dots { color: var(--text-3); letter-spacing: 1px; margin-left: 2px; }
.key-connect { white-space: pre-wrap; overflow-wrap: anywhere; }
.rental-key-actions { flex-wrap: wrap; justify-content: flex-end; }
.logo[data-family="kimi"] { background: #16171b; border-color: #16171b; } /* its mark is white */
.dedicated { display: block; width: max-content; margin: 4px 0 0 auto; }
.cell-first .cell-name { min-width: 250px; }

/* Quickstart: the marketplace table's columns, borders, and flat surfaces. */
.guide { display: grid; gap: 16px; }
.guide__api { display: grid; gap: 16px; min-width: 0; }
.guide__heading { display: grid; gap: 6px; }
.guide__heading h2 { margin: 0; font-size: 18px; }
.guide__connection { border: 1px solid var(--line); background: var(--bg-raised); min-width: 0; }
.guide__facts .specs__row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 12px 16px; font-size: 13px; }
.guide__facts .specs__row:first-child { border-top: 0; }
.guide__facts dd { min-width: 0; text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.guide__facts .mono { font-size: 13px; word-break: normal; }
.guide__context { margin: 0; padding: 12px 16px; }
.guide__table-wrap { min-width: 0; overflow: hidden; }
.guide__api .table--quickstart { table-layout: fixed; }
.guide__api .table--quickstart thead th:first-child { width: 27%; }
.guide__api .table--quickstart .col-action { width: 116px; }
.guide__api .table--quickstart tbody th, .guide__api .table--quickstart td { padding: 16px; vertical-align: top; }
.guide__api .table--quickstart tbody th { white-space: normal; font-weight: 400; }
.guide__api .table--quickstart tbody tr:last-child th { border-bottom: 0; }
.guide__step-title { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.guide__step-notes summary { width: fit-content; cursor: pointer; color: var(--text-3); font-size: 12px; }
.guide__step-notes[open] p { margin-top: 8px; }
.guide__api .table--quickstart tbody tr:hover th { background: var(--surface); }
.guide__command { min-width: 0; }
.guide__command pre { margin: 0; padding: 0; background: transparent; border: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.key-handoff { display: grid; gap: 20px; min-width: 0; }
.key-handoff__key { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.key-handoff__label { color: var(--text-3); font-size: 13px; font-weight: 500; }
.key-handoff__key .mono { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .guide__facts .specs__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
  .guide__context { padding: 12px; }
  .guide__api .table--quickstart, .guide__api .table--quickstart tbody { display: block; width: 100%; }
  .guide__api .table--quickstart thead { display: none; }
  .guide__api .table--quickstart tbody tr { display: grid; border-bottom: 1px solid var(--line); }
  .guide__api .table--quickstart tbody tr:last-child { border-bottom: 0; }
  .guide__api .table--quickstart tbody th, .guide__api .table--quickstart td { display: block; width: auto; padding: 12px; border: 0; }
  .guide__api .table--quickstart tbody th { padding-bottom: 0; }
  .guide__api .table--quickstart .col-action { width: auto; padding-top: 0; justify-self: end; }
  .guide__api .table--quickstart .btn { height: 36px; }
  .key-handoff__key { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .key-handoff__key .mono { grid-column: 1 / -1; grid-row: 2; }
  .key-handoff__key .btn { grid-column: 2; grid-row: 1; height: 36px; }
}
