@charset "UTF-8";

/*
  Acme CRM, and the Assistant Hooks demo around it.

  Acme CRM follows the viewer's light or dark setting. The demo bar and the vendor view stay
  dark in both, so they never read as part of the product. Only system fonts are used, so the
  page makes no request beyond its own files.
*/

/* MARK: - Tokens */

:root {
  color-scheme: light;

  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F5;
  --line: #DCE1E8;
  --line-strong: #C5CCD6;
  --text: #1B2330;
  --muted: #5B6676;
  --faint: #8A94A3;
  --accent: #C0265E;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBE7EE;
  --won: #1E7F4F;
  --warn: #9A5B00;
  --warn-soft: #FFF1D6;
  --danger: #B42318;
  --danger-soft: #FDE8E6;
  --focus: #2F6FEB;
  --shadow: rgb(16 24 40 / .14);
  --hook: #0B7A75;
  --hook-ink: #FFFFFF;

  /* Pipeline stages, the same in both themes. */
  --stage-discovery: #5B7FD6;
  --stage-qualified: #1E9C8C;
  --stage-demo: #8A63D2;
  --stage-proposal: #D9922B;
  --stage-negotiation: #D6336C;
  --stage-won: #2F9E5F;
  --stage-lost: #8B93A0;

  /* The demo bar and the vendor view, dark in both themes. */
  --v-bg: #0D1014;
  --v-surface: #151A21;
  --v-raised: #1C232C;
  --v-line: #2A323D;
  --v-text: #E7ECF2;
  --v-muted: #9DA8B5;
  --v-faint: #7D8896;
  --v-accent: #F0568F;
  --v-found: #4CC28A;
  --v-warn: #F2B544;
  --v-danger: #FF7A6E;
  --v-info: #7AA7FF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0F1319;
    --surface: #171C24;
    --surface-2: #1E2530;
    --line: #2A3240;
    --line-strong: #394354;
    --text: #E6EAF0;
    --muted: #A3ADBB;
    --faint: #7A8596;
    --accent: #F0568F;
    --accent-ink: #1B0710;
    --accent-soft: #3A1524;
    --won: #4CC28A;
    --warn: #F2B544;
    --warn-soft: #33260C;
    --danger: #FF7A6E;
    --danger-soft: #3A1714;
    --focus: #7AA7FF;
    --shadow: rgb(0 0 0 / .45);
    --hook: #3DD6C9;
    --hook-ink: #032B29;
  }
}

/* MARK: - Base */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

h1, h2, h3 { text-wrap: balance; }

a { color: var(--accent); text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page { transition: margin .2s ease; }

/* MARK: - Demo bar */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 16px;
  background: var(--v-bg);
  color: var(--v-text);
  color-scheme: dark;
  font-size: 12.5px;
}

.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.demo-level {
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--v-accent) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--v-accent) 16%, transparent);
  font-weight: 600;
}

.demo-links { display: flex; align-items: center; gap: 16px; }

.demo-links a,
.demo-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--v-info);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-links button[aria-expanded="true"] { color: var(--v-text); }

.demo-bar :focus-visible,
.vendor :focus-visible { outline-color: var(--v-info); }

/* MARK: - Top bar */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.logo { flex: none; width: 26px; height: 26px; }
.logo-tile { fill: var(--accent); }
.logo-bar { fill: var(--accent-ink); }

.nav { display: flex; gap: 2px; }

.nav button {
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 600;
}

.nav button:hover,
.nav button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.topbar-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

.launcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.launcher svg { flex: none; width: 18px; height: 18px; }

.launcher:hover,
.launcher[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.avatar.me { width: 28px; height: 28px; font-size: 11px; }

.owner-1 { background: #3D5FC4; }
.owner-2 { background: #1E7A70; }
.owner-3 { background: #8048C8; }
.owner-4 { background: #B0541E; }
.owner-5 { background: #2E7D45; }

/* MARK: - Deals */

main { padding: 20px 16px 40px; }

.view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.view-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip-warn {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 600;
}

.board-scroll { overflow-x: auto; padding-bottom: 8px; }

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 258px;
  align-items: start;
  gap: 12px;
}

.column {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.stage-discovery { --stage: var(--stage-discovery); }
.stage-qualified { --stage: var(--stage-qualified); }
.stage-demo { --stage: var(--stage-demo); }
.stage-proposal { --stage: var(--stage-proposal); }
.stage-negotiation { --stage: var(--stage-negotiation); }
.stage-won { --stage: var(--stage-won); margin-inline-start: 10px; }
.stage-lost { --stage: var(--stage-lost); }

.column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}

.column-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.column-head h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage);
}

.column-count,
.column-total { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.column-total { font-size: 12px; }

.cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.company { font-weight: 600; }
.amount { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.owner { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }

.no-owner {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 11.5px;
  font-weight: 600;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--muted);
  font-size: 12px;
}

.quiet { color: var(--warn); font-weight: 600; }

.reason { margin: 0; color: var(--muted); font-size: 12px; font-style: italic; }

/* MARK: - Contacts */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contacts-table { width: 100%; min-width: 760px; border-collapse: collapse; }

.contacts-table th,
.contacts-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.contacts-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contacts-table tbody tr:last-child td { border-bottom: 0; }
.contacts-table .person { font-weight: 600; }
.contacts-table .email { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* MARK: - Acme AI */

.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  border-inline-start: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -12px 0 32px var(--shadow);
  transition: translate .2s ease;
}

@starting-style {
  .drawer { translate: 100% 0; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-title { display: flex; align-items: center; gap: 8px; }
.drawer-title svg { width: 20px; height: 20px; color: var(--accent); }
.drawer-title h2 { margin: 0; font-size: 15px; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
}

.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button svg { width: 18px; height: 18px; }

.conversation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.empty-state {
  display: grid;
  gap: 6px;
  margin-block: auto;
  padding: 24px 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state p { margin: 0; text-wrap: balance; }
.empty-title { color: var(--text); font-size: 15px; font-weight: 650; }

.message { max-width: 100%; overflow-wrap: anywhere; }

.question {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--surface-2);
  white-space: pre-wrap;
}

.answer { display: grid; justify-items: start; gap: 4px; }
.answer-text { justify-self: stretch; white-space: pre-wrap; }

/* Generated content never enters the answer's text, so a client reading it sees nothing here. */
.answer.is-pending .answer-text:empty::before {
  content: "Thinking…";
  color: var(--muted);
  animation: pulse 1.4s ease-in-out infinite;
}

.answer.is-error {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
}

.copy {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-inline-start: -6px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
}

.copy:hover { background: var(--surface-2); color: var(--text); }
.copy svg { grid-area: 1 / 1; width: 16px; height: 16px; }
.copy .icon-check { display: none; }
.copy.copied .icon-copy { display: none; }
.copy.copied .icon-check { display: block; color: var(--won); }

.composer-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--line);
}

.composer-row textarea {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  line-height: 1.4;
  resize: none;
}

.composer-row textarea::placeholder { color: var(--muted); }

.send,
.stop {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}

.send svg,
.stop svg { width: 20px; height: 20px; }

.send { background: var(--accent); color: var(--accent-ink); }
.send:disabled { background: var(--surface-2); color: var(--faint); }
.stop { background: var(--text); color: var(--surface); }

.source {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* MARK: - Wide screens */
/* An open drawer moves the page aside instead of covering it. On phones they cover it. */

@media (min-width: 1100px) {
  body:has(#assistant:not([hidden])) .page { margin-inline-end: 420px; }
  body:has(#vendor:not([hidden])) .page { margin-inline-start: 380px; }
  .drawer, .vendor { box-shadow: none; }
}

/* MARK: - Vendor view */

.vendor {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 30;
  width: min(380px, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-inline-end: 1px solid var(--v-line);
  background: var(--v-surface);
  color: var(--v-text);
  color-scheme: dark;
  box-shadow: 12px 0 32px rgb(0 0 0 / .35);
  font-size: 13px;
  transition: translate .2s ease;
}

@starting-style {
  .vendor { translate: -100% 0; }
}

.vendor-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 12px 16px;
  border-bottom: 1px solid var(--v-line);
  background: var(--v-surface);
}

.vendor-kicker {
  margin: 0;
  color: var(--v-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vendor-head h2 { margin: 2px 0 0; font-size: 17px; }
.vendor-head h2:focus { outline: none; }

.vendor-icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--v-muted);
}

.vendor-icon-button:hover { background: var(--v-raised); color: var(--v-text); }
.vendor-icon-button svg { width: 18px; height: 18px; }

.vendor-intro { margin: 0; padding: 12px 16px 14px; color: var(--v-muted); }

.vendor-section {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--v-line);
}

.vendor-section h3 {
  margin: 0;
  color: var(--v-muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.vendor-note { margin: 0; color: var(--v-muted); font-size: 12.5px; }
.vendor-status { margin: 0; font-size: 12.5px; }
#fail-status { color: var(--v-warn); }

.levels { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }

.level {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 10px 12px;
  border: 1px solid var(--v-line);
  border-radius: var(--radius);
  background: var(--v-raised);
  cursor: pointer;
}

.level input { grid-row: span 2; margin: 3px 0 0; accent-color: var(--v-accent); }

.level:has(input:checked) {
  border-color: var(--v-accent);
  background: color-mix(in srgb, var(--v-accent) 9%, var(--v-raised));
}

.level-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-weight: 650;
}

.level-name code { color: var(--v-muted); font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.level-about { grid-column: 2; color: var(--v-muted); font-size: 12.5px; }

.check { display: flex; align-items: center; gap: 8px; }
.check input { margin: 0; accent-color: var(--v-accent); }
.check:has(input:disabled) { opacity: .55; }

.status { display: grid; gap: 10px; margin: 0; }
.status div { display: grid; gap: 2px; }
.status dt { font-family: var(--mono); font-size: 12px; }
.status dd { margin: 0; color: var(--v-muted); font-size: 12.5px; }
.status dd.found { color: var(--v-found); }
.status dd.found::before { content: "✓ "; }

.state-log {
  max-height: 240px;
  margin: 0;
  padding: 6px 0;
  overflow: auto;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: var(--v-bg);
  font-family: var(--mono);
  font-size: 12px;
  list-style: none;
}

.state-log:empty { display: none; }

.state-log li {
  display: grid;
  grid-template-columns: 4.6rem 5.6rem 1fr;
  gap: 8px;
  padding: 3px 10px;
}

.state-log .log-question:not(:first-child) {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px dashed var(--v-line);
}

.log-time { color: var(--v-faint); font-variant-numeric: tabular-nums; }
.log-about { color: var(--v-muted); overflow-wrap: anywhere; }
.log-question .log-state { color: var(--v-text); font-weight: 650; }
.log-pending .log-state { color: var(--v-muted); }
.log-streaming .log-state { color: var(--v-info); }
.log-complete .log-state,
.log-stopped .log-state { color: var(--v-found); }
.log-error .log-state { color: var(--v-danger); }

.log-empty { margin: 0; color: var(--v-faint); font-size: 12.5px; font-style: italic; }

.field-label { font-size: 12px; font-weight: 600; }

.field-row { display: flex; flex-wrap: wrap; gap: 8px; }

.field-row > input,
.field-row > select { flex: 1 1 160px; }

.vendor input[type="text"],
.vendor input[type="password"],
.vendor select {
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: var(--v-bg);
  color: var(--v-text);
}

.vendor input:disabled,
.vendor select:disabled { opacity: .55; }

.vendor-button {
  padding: 7px 12px;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: var(--v-raised);
  color: var(--v-text);
  font-weight: 600;
  white-space: nowrap;
}

.vendor-button:hover:not(:disabled) { border-color: var(--v-accent); }

.vendor-text-button {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--v-info);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vendor-button:disabled,
.vendor-text-button:disabled { opacity: .5; }

.l2-result {
  max-height: 260px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: var(--v-bg);
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vendor-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 16px 20px;
  border-top: 1px solid var(--v-line);
  color: var(--v-faint);
  font-size: 12px;
}

.vendor-foot a { color: var(--v-info); }

/* MARK: - Show hooks */
/*
  Vendor view's Show hooks: pure CSS over the Level 1 attributes, so it shows exactly what a
  client reading the markup finds. The labels are generated content, which never enters an
  element's text, so a recording made with this on reads the same answers.
*/

.show-hooks [data-assistant-hook] {
  outline: 1.5px dashed var(--hook);
  outline-offset: 3px;
}

.show-hooks [data-assistant-hook]:not(textarea) { position: relative; }

.show-hooks [data-assistant-hook]::after,
.show-hooks .composer-row:has(> [data-assistant-hook="composer"])::after {
  content: attr(data-assistant-hook);
  position: absolute;
  top: -11px;
  inset-inline-end: 4px;
  z-index: 1;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--hook);
  color: var(--hook-ink);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
}

.show-hooks [data-assistant-hook="launcher"]::after {
  content: "launcher · " attr(data-assistant-name);
  top: calc(100% + 6px);
  inset-inline-end: 0;
}

.show-hooks [data-assistant-hook="answer"]::after {
  content: "answer · " attr(data-assistant-state);
}

.show-hooks [data-assistant-hook="answer"][data-assistant-error]::after {
  content: "answer · error · " attr(data-assistant-error);
}

.show-hooks [data-assistant-hook="answer-body"]::after {
  top: -18px;
  inset-inline-start: 0;
  inset-inline-end: auto;
}

/* A textarea can't show generated content, so the composer's label goes on its row. */
.show-hooks .composer-row:has(> [data-assistant-hook="composer"])::after {
  content: "composer";
  top: 2px;
  inset-inline-start: 18px;
  inset-inline-end: auto;
}

.show-hooks .composer-row { padding-top: 18px; }
.show-hooks .conversation { gap: 22px; }
.show-hooks .message.answer { padding: 20px 10px 8px; }

/* MARK: - Motion */

@keyframes pulse { 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.noscript {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
}

/* MARK: - Vendor guide */

.guide { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

.guide .kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide h1 {
  margin: 6px 0 12px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.guide .lede { max-width: 62ch; margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.55; }

.guide h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 44px 0 12px;
  font-size: 21px;
  letter-spacing: -.01em;
  scroll-margin-top: 16px;
}

.guide > section:first-of-type h2 { margin-top: 28px; }

.rfc-ref {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.guide h3 { margin: 28px 0 8px; font-size: 16px; }

.guide p,
.guide li { max-width: 68ch; font-size: 15px; line-height: 1.6; }

.guide p { margin: 0 0 12px; }

.guide ul,
.guide ol { margin: 0 0 14px; padding-inline-start: 22px; }

.guide li + li { margin-top: 5px; }

.guide code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .88em;
}

.guide pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
}

.guide pre code { padding: 0; background: none; font-size: inherit; }

.guide .table-scroll { margin: 0 0 16px; }

.guide-table { width: 100%; min-width: 560px; border-collapse: collapse; }

.guide-table th,
.guide-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  text-align: start;
  vertical-align: top;
}

.guide-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { white-space: nowrap; }

.try-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.guide .try-levels li { max-width: none; margin: 0; }

.try-levels a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.try-levels a:hover { border-color: var(--accent); }
.try-levels strong { font-size: 15px; }
.try-levels code { justify-self: start; }
.try-levels span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 640px) {
  .try-levels { grid-template-columns: 1fr; }
}

.toc {
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide .toc-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide .toc ol { margin: 0; padding-inline-start: 20px; columns: 2 220px; column-gap: 28px; }
.guide .toc li { margin: 0 0 3px; font-size: 14.5px; break-inside: avoid; }

.guide .checklist { padding: 0; list-style: none; }
.guide .checklist li { position: relative; padding-inline-start: 28px; }

.guide .checklist li::before {
  content: "";
  position: absolute;
  top: .25em;
  inset-inline-start: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}

.guide-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
