/* Kalemio on Lantern's After Hours theme and its page layer (header, footer, statements,
   hairline lists, features, stage, articles). Lantern owns the identity; this file styles only
   Kalemio's own pieces: the drawn stage contents, the benchmark chart, the plan sheet and
   estimate, and the docs, status and policy page layouts. No hue except status: the theme's
   positive and critical inks mark passing and failing checks. */

/* Code samples share one monospace stack (also read by portal.css). */
.api-site { --mono: 'Lantern Instrument Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* -- Page ground ----------------------------------------------------------- */
html { background: #0b0b0c; scroll-padding-top: 88px; }
body.api-site {
  margin: 0;
  background: #0b0b0c;
  color: var(--ln-ink);
  font-family: var(--ln-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.api-site :focus-visible { outline: 2px solid var(--ln-ink); outline-offset: 4px; border-radius: 4px; }
:where(.api-site a:not([class])) { color: var(--ln-ink); text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--ln-ink) 30%, transparent); }
:where(.api-site a:not([class])):hover { text-decoration-color: currentColor; }
.api-site code, .api-site pre { font-family: var(--mono); }
.api-site :not(pre) > code { font-size: .88em; }
.api-site .muted { color: var(--ln-ink-quiet); }
.api-site .small { font-size: 14px; }
.api-site .nowrap, .api-site code.nowrap { white-space: nowrap; }
.api-site bdi[data-price] { font-variant-numeric: tabular-nums; }
:is(h1, h2, h3, h4, p, li, dd, dt, summary, label, button, td, th):lang(ar) { letter-spacing: 0; }
.api-site:lang(ar) p, .api-site:lang(ar) li { line-height: 1.8; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ln-ink); color: var(--ln-on-accent) !important; text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }
.ln-site-brand img { border-radius: 6px; }

/* -- Homepage hero and stage ------------------------------------------------ */
.api-hero { padding-top: 88px; }
.hero-fine { max-width: 620px; }
.hero-fine strong { color: var(--ln-ink); font-weight: var(--ln-weight-strong); }
.hero-fine a { display: inline-block; margin-top: 6px; }
.portal-notice { max-width: 620px; padding-block: 12px; border-block: 1px solid var(--ln-hairline); color: var(--ln-ink-secondary); font-size: 15px; }

.workbench { margin-top: 72px; }
.api-stage { height: 580px; }
.stage-menubar strong { color: var(--ln-ink); font-weight: var(--ln-weight-strong); }
.stage-window { position: absolute; margin: 0; overflow: hidden; border-radius: 12px; text-align: start; }
.stage-window > .ln-stage-bar { gap: 12px; padding-inline: 14px; }
.window-lights { display: inline-flex; gap: 7px; }
.window-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.window-title { flex: 1; margin-inline-end: 34px; text-align: center; color: var(--ln-ink-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* The terminal is the desk; it stays flat and dim so the result in front of it reads first. */
.stage-terminal { top: 84px; left: 5%; width: 56%; background: rgb(12 12 14 / .9); box-shadow: 0 0 0 1px var(--ln-hairline); }
.stage-terminal pre { margin: 0; padding: 18px 20px 22px; overflow: hidden; color: var(--ln-ink); font-size: 13px; line-height: 1.75; white-space: pre; }
.term-prompt { color: var(--ln-ink-quiet); }
.term-out { color: var(--ln-ink-secondary); }
.term-caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--ln-ink-secondary); }

/* The files the run left on the desktop: the recording and the two results it saved. */
.stage-files { position: absolute; left: 6%; bottom: 40px; display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.stage-files li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; }
.file-icon { position: relative; display: block; width: 40px; height: 48px; }
.file-icon svg { width: 100%; height: 100%; fill: rgb(255 255 255 / .04); stroke: var(--ln-ink-quiet); stroke-width: 1.5; stroke-linejoin: round; }
.file-icon span { position: absolute; inset-inline: 0; bottom: 9px; color: var(--ln-ink-secondary); font-family: var(--mono); font-size: 8.5px; text-align: center; }
.file-name { color: var(--ln-ink-secondary); font-size: 12px; }
.stage-result { --ln-shot-radius: 14px; top: 176px; right: 5%; width: 50%; background: #18181b; border-radius: 14px; }
.result-tabs { display: flex; justify-content: flex-start; padding: 14px 20px 0; }
.stage-result [role=tabpanel] { margin: 0; }
.transcript-example { padding: 22px 28px 26px; }
.transcript-dialect { margin: 0; color: var(--ln-ink-quiet); font-size: 13px; }
.transcript-sentence { margin: 14px 0 0; font-size: 36px; font-weight: var(--ln-weight-strong); line-height: 1.45; letter-spacing: 0; text-align: right; }
.transcript-sentence span { color: var(--ln-ink); }
.transcript-translation { margin: 2px 0 0; color: var(--ln-ink-secondary); font-size: 15px; text-align: right; }
.timed-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.timed-words li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--ln-hairline); font-size: 17px; }
.timed-words .word-time { color: var(--ln-ink-quiet); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.stage-result pre { margin: 0; padding: 20px 24px 26px; overflow-x: auto; color: var(--ln-ink); font-size: 12.5px; line-height: 1.75; }

/* Each word lights at its own start time, once, as the result finishes dropping open: the
   0.6s offset lets the window land first. The timings are the example's own. */
@media (prefers-reduced-motion: no-preference) {
  .transcript-sentence span, .timed-words li > span:first-child { animation: word-lit .35s ease-out var(--word-at) both; }
  @keyframes word-lit { from { color: var(--ln-ink-tertiary); } to { color: var(--ln-ink); } }
}
.timed-words li:nth-child(1), .transcript-sentence span:nth-child(1) { --word-at: .84s; --word-for: .44s; }
.timed-words li:nth-child(2), .transcript-sentence span:nth-child(2) { --word-at: 1.32s; --word-for: .22s; }
.timed-words li:nth-child(3), .transcript-sentence span:nth-child(3) { --word-at: 1.58s; --word-for: .24s; }
.timed-words li:nth-child(4), .transcript-sentence span:nth-child(4) { --word-at: 1.86s; --word-for: .52s; }

.workbench-note { margin-top: 16px; }
.workbench-request-details { max-width: 760px; margin-top: 28px; }
.workbench-request-details > summary { color: var(--ln-ink-secondary); font-size: 15px; cursor: pointer; }
.workbench-request-details > summary:hover { color: var(--ln-ink); }
.workbench-request { margin: 20px 0 0; }
.workbench-accepted { padding: 0 var(--ln-lg, 16px) var(--ln-lg, 16px); }
.workbench-status { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.workbench-next { color: var(--ln-ink-secondary); font-size: 15px; }

/* Syntax in ink tiers: values bright, keys and punctuation stepping down. */
.tok-k { color: var(--ln-ink-secondary); }
.tok-s, .tok-n { color: var(--ln-ink); }
.tok-p { color: var(--ln-ink-quiet); }
.tok-c { color: var(--ln-ink-quiet); font-style: italic; }

/* -- Homepage sections ------------------------------------------------------ */
.path-list .ln-text-link, .trust-grid .ln-text-link { margin-top: 12px; font-size: 14px; }
.trust-grid .ln-text-link + .ln-text-link { margin-top: 6px; }
.sample-downloads { max-width: 720px; margin-top: 56px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; font-size: 14px; }
.column-title { margin: 0 0 16px; color: var(--ln-ink); font-size: 16px; font-weight: var(--ln-weight-strong); letter-spacing: -0.01em; }

.benchmark-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.hero-benchmark { margin: 0; }
.benchmark-metric { margin: 0 0 14px; color: var(--ln-ink-secondary); font-size: 14px; }
.benchmark-metric span { color: var(--ln-ink-quiet); }
.benchmark-bars { margin: 0; padding: 0; list-style: none; }
.benchmark-bars li { padding-block: 13px 15px; border-top: 1px solid var(--ln-hairline); }
.benchmark-bars li:last-child { border-bottom: 1px solid var(--ln-hairline); }
.benchmark-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ln-ink-quiet); font-size: 15px; }
.benchmark-row strong { color: var(--ln-ink-secondary); font-weight: 400; font-variant-numeric: tabular-nums; }
.benchmark-track { height: 3px; margin-top: 10px; }
.benchmark-track span { display: block; height: 100%; border-radius: 2px; background: var(--ln-series-4); }
.benchmark-ours .benchmark-row, .benchmark-ours .benchmark-row strong { color: var(--ln-ink); font-weight: var(--ln-weight-strong); }
.benchmark-ours .benchmark-track span { background: var(--ln-ink); }
.benchmark-track .benchmark-bar-0 { width: 15.3333%; }
.benchmark-track .benchmark-bar-1 { width: 16.6667%; }
.benchmark-track .benchmark-bar-2 { width: 21.0000%; }
.benchmark-track .benchmark-bar-3 { width: 24.6667%; }
.benchmark-track .benchmark-bar-4 { width: 24.6667%; }
.benchmark-track .benchmark-bar-5 { width: 56.6667%; }
.benchmark-track .benchmark-bar-6 { width: 83.6667%; }
.hero-benchmark figcaption .ln-fine:first-child { margin-top: 20px; }
.hero-benchmark figcaption .ln-fine { margin-top: 10px; }
.hero-benchmark figcaption a { color: var(--ln-ink-secondary); }
.benchmark-copy { color: var(--ln-ink-prose, var(--ln-ink-secondary)); font-size: 16px; }
.benchmark-copy p { margin: 0 0 16px; }
.benchmark-copy .ln-actions { margin-top: 28px; }
.benchmark-copy bdi { color: var(--ln-ink); }

.quickstart-steps { counter-reset: step; }
.quickstart-steps li { display: flex; gap: 16px; counter-increment: step; }
.quickstart-steps li::before { content: counter(step); flex: none; width: 16px; color: var(--ln-ink); font-weight: var(--ln-weight-strong); font-size: 15px; line-height: 1.55; }
.quickstart-steps .ln-lines-text { margin: 0; color: var(--ln-ink-secondary); font-size: 15px; }
.quickstart-steps strong { color: var(--ln-ink); }
.spec-lines { margin: 0; }
.spec-lines > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; }
.spec-lines dd { margin: 0; }
.spec-lines .ln-lines-title { font-size: 15px; }

/* Plans: a hairline sheet, prices in tabular figures, one quiet action per row. */
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 28px; }
.plan-interval-toggle > label { min-width: 6rem; }
.currency-selector { display: inline-flex; align-items: center; gap: 10px; color: var(--ln-ink-secondary); font-size: 14px; white-space: nowrap; }
.currency-selector .ln-input { width: auto; min-width: 5.5rem; min-height: 40px; }
.api-pricing:has(input[name="plan-interval"][value="month"]:checked) .plan-sheet tr[data-interval="year"],
.api-pricing:has(input[name="plan-interval"][value="year"]:checked) .plan-sheet tr[data-interval="month"],
.api-pricing:has(input[name="plan-interval"][value="month"]:checked) .estimate-list li[data-interval="year"],
.api-pricing:has(input[name="plan-interval"][value="year"]:checked) .estimate-list li[data-interval="month"] { display: none; }
.plan-sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan-sheet thead th { padding-block: 0 12px; color: var(--ln-ink-quiet); font-size: 13px; font-weight: 400; text-align: start; }
.plan-sheet tbody :is(th, td) { padding-block: 22px; border-top: 1px solid var(--ln-hairline); text-align: start; vertical-align: middle; }
.plan-sheet tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--ln-hairline); }
.plan-sheet tbody th { font-size: 17px; font-weight: var(--ln-weight-strong); }
.plan-speed { display: block; margin-top: 2px; color: var(--ln-ink-quiet); font-size: 13px; font-weight: 400; }
.plan-minutes { color: var(--ln-ink-secondary); font-size: 15px; }
.plan-minutes > bdi { color: var(--ln-ink); }
.plan-unit { display: none; }
.plan-price { font-size: 17px; white-space: nowrap; }
.plan-price > span { color: var(--ln-ink-quiet); font-size: 14px; }
.plan-action, .plan-note { text-align: end !important; }
.plan-note { max-width: 18rem; color: var(--ln-ink-quiet); font-size: 13px; }
.pricing-facts { margin-top: 56px; }
.pricing-terms .ln-fine:first-child { margin-top: 0; }
.pricing-terms a { color: var(--ln-ink-secondary); }

.cost-estimate .column-title { margin-bottom: 4px; }
.cost-estimate .ln-fine { margin-top: 6px; }
.estimate-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.estimate-preset { min-height: 36px; padding: 6px 14px; border: 1px solid var(--ln-hairline); border-radius: 999px; background: var(--ln-surface-quiet); color: var(--ln-ink-secondary); font: inherit; font-size: 14px; cursor: pointer; }
.estimate-preset:hover { color: var(--ln-ink); }
.estimate-preset[aria-pressed="true"] { border-color: var(--ln-ink); color: var(--ln-ink); }
.estimate-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.estimate-inputs label { color: var(--ln-ink-secondary); font-size: 14px; }
.estimate-inputs .ln-input { width: 100%; min-height: 44px; font: inherit; }
.estimate-usage { margin: 16px 0 0; color: var(--ln-ink-secondary); font-size: 14px; }
.estimate-recommendation { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ln-hairline); }
.estimate-recommendation > p:first-child { margin: 0; font-size: 15px; }
.estimate-recommendation .ln-btn { margin-top: 16px; }
.estimate-list { margin: 24px 0 0; padding: 0; list-style: none; }
.estimate-list li { padding-block: 14px; border-top: 1px solid var(--ln-hairline); }
.estimate-list li:last-child { border-bottom: 1px solid var(--ln-hairline); }
.estimate-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.estimate-head strong { font-weight: var(--ln-weight-strong); }
.estimate-cost { font-variant-numeric: tabular-nums; }
.estimate-list p { margin: 4px 0 0; color: var(--ln-ink-quiet); font-size: 13px; }

.api-close .api-subtitle-referral { margin-top: 40px; }

/* -- Content pages ---------------------------------------------------------- */
.page-head { padding-block: 104px 56px; }
.page-head .ln-statement { margin: 0; }
.page-missing { padding-bottom: 160px; }
.api-information { padding-bottom: 120px; }
.api-information.has-index { display: grid; grid-template-columns: 200px minmax(0, 700px); gap: 72px; }
.info-index nav, .docs-toc nav { display: grid; gap: 2px; font-size: 14px; }
.info-index nav { position: sticky; top: 96px; }
.info-index a, .docs-toc nav a { padding-block: 5px; color: var(--ln-ink-quiet); text-decoration: none; }
.info-index a:hover, .docs-toc nav a:hover { color: var(--ln-ink); }
.info-index a[aria-current], .docs-toc nav a[aria-current] { color: var(--ln-ink); }
.info-body > section > h2, .info-body > h2 { scroll-margin-top: 96px; }
.info-body > :first-child { margin-top: 0; }
.ln-article .muted { color: var(--ln-ink-quiet); font-size: 14px; }
.ln-article .developer-actions, .ln-article .practical-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.ln-article .ln-btn { text-decoration: none; }
.ln-article .ln-code { margin-block: 20px; }
.ln-article .ln-code pre { margin: 0; border-radius: 0; background: none; }
.ln-article .table-scroll { overflow-x: auto; }
.docs-fields > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; padding-block: 14px; border-top: 1px solid var(--ln-hairline); font-size: 15px; }
.docs-fields > div:last-child { border-bottom: 1px solid var(--ln-hairline); }
.docs-fields dd { margin: 0; color: var(--ln-ink-secondary); }
.docs-code > .ln-code-head:has(> .ln-segmented) { flex-wrap: wrap; }
.docs-code > .ln-code-head > .ln-segmented ~ .ln-code-copy { margin-inline-start: auto; }

.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 72px; padding-bottom: 120px; }
.docs-layout > * { min-width: 0; }
.docs-body { overflow-wrap: anywhere; }
.docs-body :is(th, td):first-child, .docs-body code.nowrap { overflow-wrap: normal; }
.docs-body > .portal-notice { margin-top: 0; padding: 0; border: 0; color: var(--ln-ink-quiet); font-size: 14px; }
.docs-body h2 { scroll-margin-top: 96px; }
.docs-toc > summary { display: none; }
.docs-layout aside .docs-toc { position: sticky; top: 96px; }

/* Status: passing checks in ink, gaps as hairlines; only failures keep the error tone. */
.status-wrap { padding-bottom: 120px; }
.status-wrap > * { max-width: 760px; }
.status-wrap .support-contact { color: var(--ln-ink); text-underline-offset: 4px; }
.status-overview { padding-bottom: 32px; border-bottom: 1px solid var(--ln-hairline); }
.status-overview h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.status-overview > p:has(+ .status-key[hidden]) { margin-bottom: 0; }
.status-key { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ln-ink-quiet); font-size: 13px; }
.status-key li { display: inline-flex; align-items: center; gap: 8px; }
.status-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--ln-hairline-strong); }
.status-swatch.good, .status-day.good, .status-day.degraded, .status-recent-check.good { background: var(--ln-positive); }
.status-swatch.partial, .status-day.partial { background: color-mix(in srgb, var(--ln-positive) 40%, transparent); }
#status-summary[data-state] { display: flex; align-items: center; gap: 12px; }
#status-summary[data-state]::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ln-ink-tertiary); }
#status-summary[data-state='good']::before { background: var(--ln-positive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ln-positive) 22%, transparent); }
#status-summary[data-state='bad']::before { background: var(--ln-critical); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ln-critical) 22%, transparent); }
.status-swatch.bad, .status-day.bad, .status-recent-check.bad { background: var(--ln-critical); }
.status-component { padding-block: 28px; border-bottom: 1px solid var(--ln-hairline); }
.status-component h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.status-component > p:last-child { margin-bottom: 0; }
.status-component-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.status-component-heading p { margin: 0; font-size: 14px; }
.status-component-heading .ln-pill { flex-shrink: 0; }
.status-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-block: 16px 8px; }
.status-day { position: relative; height: 32px; overflow: hidden; border-radius: 2px; background: var(--ln-hairline-strong); }
.status-day-failure { position: absolute; inset-block: 0; inset-inline-start: calc(var(--failure-position) * 1%); width: 2px; transform: translateX(-50%); background: var(--ln-critical); }
.status-legend, .status-recent-legend { display: flex; justify-content: space-between; color: var(--ln-ink-quiet); font-size: 12px; }
.status-recent { margin-block: 20px 24px; }
.status-recent h3, .status-history h3 { margin: 24px 0 10px; font-size: 15px; }
.status-recent-bars { display: grid; grid-template-columns: repeat(288, minmax(0, 1fr)); gap: 1px; min-height: 28px; }
.status-recent-check { min-width: 0; border-radius: 1px; background: var(--ln-hairline-strong); }
.status-recent-check.unknown { opacity: .65; }
.status-recent-legend { margin-top: 6px; }
.status-incidents { margin-top: 16px; color: var(--ln-ink-secondary); font-size: 14px; }
.status-incidents ul { margin: 8px 0 0; padding-inline-start: 20px; }
.status-wrap > h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.status-wrap > p { color: var(--ln-ink-prose, var(--ln-ink-secondary)); max-width: 62ch; }

/* The console (portal.css) and every page rely on [hidden] winning over display rules. */
.page-developers [hidden] { display: none !important; }

/* -- Footer and analytics notice --------------------------------------------- */
.footer-colophon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.footer-colophon a { color: var(--ln-ink-secondary); text-decoration: none; }
.footer-colophon a:hover { color: var(--ln-ink); }
.analytics-settings { padding: 0; border: 0; background: none; color: var(--ln-ink-secondary); font: inherit; cursor: pointer; }
.analytics-settings:hover { color: var(--ln-ink); }
.analytics-consent { padding-block: 24px; border-top: 1px solid var(--ln-hairline); }
.analytics-consent[hidden] { display: none; }
.analytics-consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.analytics-consent-copy { max-width: 62ch; margin: 0; color: var(--ln-ink-quiet); font-size: 14px; }
.analytics-consent-copy strong { color: var(--ln-ink); font-weight: var(--ln-weight-strong); }

/* -- Breakpoints ------------------------------------------------------------- */
@media (max-width: 960px) {
  .api-stage { height: 620px; }
  .stage-terminal { left: 4%; width: 74%; }
  .stage-result { right: 4%; top: 220px; width: 70%; }
  .stage-files { flex-direction: column; left: 3%; gap: 14px; bottom: 28px; }
  .benchmark-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .api-information.has-index, .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .info-index { padding-bottom: 16px; border-bottom: 1px solid var(--ln-hairline); }
  .info-index nav { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .docs-layout aside .docs-toc { position: static; }
  .docs-toc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-block: 1px solid var(--ln-hairline); color: var(--ln-ink); font-size: 15px; cursor: pointer; list-style: none; }
  .docs-toc > summary::-webkit-details-marker { display: none; }
  .docs-toc > summary::after { content: ''; width: 7px; height: 7px; margin-inline-end: 4px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg); }
  .docs-toc[open] > summary::after { transform: rotate(-135deg); }
  .docs-toc nav { padding-block: 12px; }
}
@media (max-width: 680px) {
  .api-hero { padding-top: 56px; }
  .workbench { margin-top: 48px; }
  .api-stage { display: flex; flex-direction: column; height: auto; padding-bottom: 16px; }
  .stage-menubar .ln-stage-bar-start > :not(strong) { display: none; }
  .stage-files { display: none; }
  .stage-window { position: relative; inset: auto; width: auto; }
  .stage-terminal { margin: 16px 12px 0; }
  .stage-terminal pre { padding: 12px 14px 22px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .stage-result { margin: -14px 12px 0; }
  .transcript-example { padding: 18px 18px 20px; }
  .transcript-sentence { font-size: 28px; }
  .timed-words { grid-template-columns: minmax(0, 1fr); }
  .stage-result pre { padding: 16px 16px 20px; font-size: 11px; }
  .result-tabs { padding: 12px 16px 0; }
  .spec-lines > div, .docs-fields > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .estimate-inputs { grid-template-columns: minmax(0, 1fr); }
  .plan-sheet thead { display: none; }
  .plan-sheet, .plan-sheet tbody { display: block; }
  .plan-sheet tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 18px; border-top: 1px solid var(--ln-hairline); }
  .plan-sheet tbody tr:last-child { border-bottom: 1px solid var(--ln-hairline); }
  .plan-sheet tbody :is(th, td), .plan-sheet tbody tr:last-child :is(th, td) { padding: 0; border: 0; }
  .plan-sheet tbody th { grid-column: 1; }
  .plan-price { grid-column: 2; grid-row: 1; text-align: end; }
  .plan-minutes { grid-column: 1 / -1; }
  .plan-unit { display: inline; }
  .plan-action, .plan-note { grid-column: 1 / -1; margin-top: 10px; text-align: start !important; max-width: none; }
  .plan-action .ln-btn { width: 100%; }
  .page-head { padding-block: 64px 36px; }
  .status-day { height: 26px; }
  .status-bars { gap: 2px; }
}
