@font-face {
  font-family: "Funnel Display";
  src: url("/fonts/FunnelDisplay.a18ddd52.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

/* Warm paper, sumi ink, one signal colour. The Router site forks this sheet: keep the token names. */
:root {
  color-scheme: light dark;
  --paper: light-dark(#efede7, #131210);
  --surface: light-dark(#e5e1d8, #1d1b18);
  --ink: light-dark(#1b1a17, #ece8df);
  --muted: light-dark(#67635b, #a39e93);
  --rule: light-dark(#d6d1c6, #34312b);
  --strong-rule: light-dark(#8a857a, #6f6a60);
  --accent: light-dark(#ff4f00, #ff6a26);
  --ok: light-dark(#4f6b4a, #9fbf94);
  --display: "Funnel Display", Inter, system-ui, sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, "IBM Plex Mono", monospace;
  --pad: clamp(1rem, 4.2vw, 4.5rem);
  --measure: 83rem;
  --label: 500 .6875rem/1.4 var(--mono);
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden], .js [data-inactive], .js .static-tab-label { display: none !important; }
:root:not(.js) :is(.tab-strip, .copy-btn, .theme-btn) { display: none; }
html { scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
:where(a, button, summary, select, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
:where(h1, h2, h3) { font-family: var(--display); font-weight: 420; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
code, pre, kbd { font-family: var(--mono); }
:is(p, td, li, dd) > code { font-size: .86em; overflow-wrap: anywhere; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* Keycaps: small bordered squares, like device buttons. */
kbd { display: inline-block; min-width: 1.6em; padding: .05em .35em; border: 1px solid var(--strong-rule); border-bottom-width: 2px; border-radius: 2px; font-size: .78em; line-height: 1.45; text-align: center; white-space: nowrap; }

/* Manual labels: small uppercase mono, numbered in the signal colour. */
.label, .eyebrow { display: block; color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.label__num { color: var(--accent); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot--accent { background: var(--accent); }
.dot--ok { background: var(--ok); }

.skip-link { position: absolute; left: var(--pad); top: 0; z-index: 5; transform: translateY(-150%); background: var(--ink); color: var(--paper); padding: .55rem 1rem; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__inner, .site-main, .site-footer__inner { width: min(100%, var(--measure)); margin-inline: auto; padding-inline: var(--pad); }
.site-header__inner { display: flex; align-items: center; gap: clamp(.6rem, 2.6vw, 2.25rem); min-height: 3.75rem; }
.brand-link { display: inline-flex; align-items: center; gap: .55rem; flex: none; margin-right: auto; font: 450 1.05rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-word { white-space: pre; }
.brand-word__aside { color: var(--muted); }
.brand-mark { display: block; width: 1.5rem; height: 1.5rem; padding: .12rem; border-radius: 2px; color: var(--paper); background: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.75rem); }
.site-nav a, .theme-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; }
.site-nav a { font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.theme-btn { width: 2rem; padding: 0; color: var(--ink); background: none; border: 0; }
.theme-symbol { display: block; width: .85rem; height: .85rem; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
[data-mode="dark"] .theme-symbol { background: currentColor; }
[data-mode="light"] .theme-symbol { background: transparent; }

.site-main { flex: 1; padding-block: clamp(2.25rem, 4.6vw, 4.5rem) clamp(3.5rem, 8vw, 7rem); }
.site-main:focus { outline: none; }

/* Actions under a page's opening lines. */
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; margin: 1.75rem 0 0; }
.download-meta { margin: .9rem 0 0; color: var(--muted); font: 400 13px/1.6 var(--sans); }

/* Home: a ruled sheet. Sections stack on hairlines; from a tablet up two rail lines run down the
   page and a small cross marks each place a hairline meets them. */
.is-home { --rail: 72rem; --gutter: 0px; --inset: var(--pad); }
.is-home :is(.site-header__inner, .site-main, .site-footer__inner) { width: min(100%, calc(var(--rail) + 2 * var(--gutter))); }
.is-home :is(.site-header__inner, .site-footer__inner) { padding-inline: calc(var(--gutter) + var(--inset)); }
.is-home .site-main { padding: 0 var(--gutter); }
.home { position: relative; }
.home > section { position: relative; }
.home > section + section { border-top: 1px solid var(--rule); }
.home :is(h1, h2) span { display: block; color: var(--muted); }

.home-hero { display: grid; justify-items: center; padding: clamp(3rem, 7vw, 5.5rem) var(--inset) clamp(2rem, 4.5vw, 3.5rem); text-align: center; }
.home-hero > * { min-width: 0; }
.home-tag { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border: 1px solid var(--rule); border-radius: 99px; color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.home-hero h1 { margin-top: 1.5rem; font-size: clamp(2rem, 8.4vw, 4.75rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.home-hero__summary { max-width: 39rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.125rem); text-wrap: pretty; }
.home-hero .hero__actions { justify-content: center; }
.home-hero__stage { width: 100%; margin-top: clamp(2.5rem, 5vw, 4rem); text-align: start; }

/* Hairline grids: the gaps show the rule colour through. */
.home-facts dl, .home-grid { display: grid; gap: 1px; margin: 0; background: var(--rule); }
.home-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-facts dl > div { padding: 1.1rem var(--inset) 1.3rem; background: var(--paper); }
.home-facts dt, .home-link { font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.home-facts dt { color: var(--muted); }
.home-facts dd { margin: .4rem 0 0; font-size: .9rem; line-height: 1.45; text-wrap: pretty; }

.home-band__head { padding: clamp(3rem, 6vw, 5rem) var(--inset) clamp(2rem, 4vw, 3rem); }
.home-band__head h2 { margin-top: 1rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.home-band__head p { max-width: 36rem; margin-top: 1.1rem; color: var(--muted); text-wrap: pretty; }
.home-band__head .hero__actions { margin-top: 1.5rem; }
.home-band__body { min-width: 0; }
.home-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin-top: .5rem; justify-self: start; text-decoration: none; }
.home-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Six cells, each a drawing of the app over a few words. A drawing sits whole in the middle of its
   figure. A list (the sessions) starts at the top and may be longer than the figure, whose foot
   fades out. */
.home-grid { border-top: 1px solid var(--rule); }
.home-cell { display: grid; grid-template-rows: auto auto auto 1fr; min-width: 0; padding: 0 var(--inset) clamp(1.25rem, 2.5vw, 1.75rem); background: var(--paper); }
.home-cell__figure { display: grid; grid-template-rows: minmax(0, 1fr); align-items: safe center; height: 17.5rem; margin-inline: calc(-1 * var(--inset)); padding: 1.75rem var(--inset) 0; overflow: hidden; }
.home-cell__figure .mock { width: min(100%, 22rem); margin-inline: auto; }
.home-cell__figure--list { align-items: start; -webkit-mask-image: linear-gradient(#000 calc(100% - 2.25rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2.25rem), transparent); }
.home-cell .label { margin-top: 1.25rem; }
.home-cell h3 { margin-top: .6rem; font-size: 1.3rem; letter-spacing: -.02em; }
.home-cell p { margin-top: .55rem; color: var(--muted); font-size: .95rem; text-wrap: pretty; }

/* Rows on hairlines that run the width of their column. From a small laptop up a pair of words
   splits down the middle of the page, on the line the two-column bands share. */
.home-rows { margin: 0; padding: 0; }
.home-rows > div, .home .spec__row { min-width: 0; border: 0; border-top: 1px solid var(--rule); }
div.home-rows > div, .home .spec__row { padding: 1.05rem var(--inset); }
dl.home-rows > div { display: grid; }
dl.home-rows dt { padding: 1.05rem var(--inset) 0; font-weight: 550; }
dl.home-rows dd { margin: 0; padding: .2rem var(--inset) 1.05rem; color: var(--muted); text-wrap: pretty; }
.home-rows .terminal-frame { margin: .45rem 0 0; }
.home .spec { border-top: 0; }

/* Spec sheet: key/value rows on hairlines. */
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; padding-top: .2rem; }
.spec dd { margin: 0; font-size: .94rem; }
.spec--compare .spec__row { grid-template-columns: minmax(6.5rem, 9.5rem) repeat(2, minmax(0, 1fr)); }
.spec--compare .spec__head dd { color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }

/* Buttons and links that act. */
.btn, .text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font: 500 .92rem/1.2 var(--sans); text-decoration: none; }
.btn { justify-content: center; padding: .65rem 1.05rem; border: 1px solid var(--ink); border-radius: 2px; }
.btn--primary { color: var(--paper); background: var(--ink); }
.btn--primary:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn--secondary:hover { text-decoration: none; background: var(--surface); }
.text-link:hover { text-decoration: underline; }
.text-link span { color: var(--muted); }

/* Download control and Apple artwork from app-foundation 180bc06 (Yaprack), per brand web/DOWNLOAD.md. */
:is(a.platform-action, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  min-width: min(184px, 100%);
  max-width: 100%;
  padding: 12px 30px 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease-out;
}
:is(.platform-action--mac, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"])::before {
  content: "";
  flex: 0 0 1.1em;
  width: 1.1em;
  height: 1.2833em;
  transform: translateY(-.04em);
  background: currentColor;
  mask: url("/apple.svg") center / contain no-repeat;
}
:is(a.platform-action, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"]):hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); text-decoration: none; }
:is(a.platform-action, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (forced-colors: active) {
  :is(a.platform-action, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"]) { border-color: LinkText; }
  :is(.platform-action--mac, .pj a.pj-cta[href^="/downloads/"], .pj-article-cta a[data-pj-cta-link][href^="/downloads/"])::before { background: LinkText; forced-color-adjust: none; }
}
.pj-article-cta a[data-pj-cta-link][href^="/downloads/"] span[aria-hidden] { display: none; }

/* Terminal blocks */
.terminal-frame { margin: 1rem 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.terminal-bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .3rem .4rem .1rem .8rem; color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.copy-btn { flex: none; min-height: 2rem; border: 1px solid transparent; border-radius: 2px; background: transparent; padding: .2rem .5rem; font: var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.copy-btn:hover { color: var(--ink); border-color: var(--rule); }
.terminal-pre { margin: 0; padding: .45rem .9rem .85rem; overflow: auto; font: 400 .8rem/1.65 var(--mono); tab-size: 2; }
.terminal-pre code { font: inherit; }
.tok-cmd { color: var(--ink); font-weight: 600; }
.term-prompt, .tok-comment, .tok-out { color: var(--muted); }
.term-prompt { user-select: none; }
.tok-str { color: var(--ok); }

/* Figures: hairline frame, mono caption below. */
.shot-figure { margin-block: 1.75rem; }
.shot-window { overflow: hidden; border: 1px solid var(--rule); border-radius: 2px; background: var(--surface); }
.shot-img { display: block; width: 100%; height: auto; }
a.shot-window { display: block; }
.shot-caption { margin-top: .6rem; color: var(--muted); font: 400 .6875rem/1.5 var(--mono); letter-spacing: .04em; }
.shot-caption__num { color: var(--ink); letter-spacing: .12em; }
.shot-figure .terminal-frame { margin: 0; }

/* Inline SVG line art: 1px ink, one accent, mono labels. */
.diagram { display: block; width: 100%; height: auto; padding: clamp(.75rem, 2vw, 1.5rem); }
.diagram :is(rect, line, path, circle, polyline) { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagram .d-muted { stroke: var(--strong-rule); }
.diagram .d-accent { stroke: var(--accent); }
.diagram .d-fill-accent { fill: var(--accent); stroke: none; }
.diagram .d-fill-ok { fill: var(--ok); stroke: none; }
.diagram .d-fill-muted { fill: var(--muted); stroke: none; }
.diagram text { fill: var(--ink); stroke: none; font: 400 11px var(--mono); letter-spacing: .04em; }
.diagram .d-label { fill: var(--muted); font-size: 10px; letter-spacing: .12em; }
.diagram .d-text-accent { fill: var(--accent); }

/* Docs */
.docs-shell { display: grid; align-items: start; gap: 2rem; }
.docs-menu { min-width: 0; }
.docs-menu > summary { color: var(--ink); cursor: pointer; font: var(--label); letter-spacing: .12em; text-transform: uppercase; width: fit-content; min-height: 2.75rem; display: flex; align-items: center; }
.docs-menu > div { padding-top: .75rem; }
.docs-sidebar__group + .docs-sidebar__group { margin-top: 1.5rem; }
.docs-sidebar__label { margin-bottom: .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.docs-sidebar__list { list-style: none; padding: 0; margin: 0; }
.docs-sidebar__list a { display: flex; gap: .6rem; align-items: baseline; color: var(--muted); padding: .28rem 0; font-size: .9rem; text-decoration: none; }
.docs-sidebar__num { color: var(--muted); font: var(--label); letter-spacing: .08em; }
.docs-sidebar__list a:hover { color: var(--ink); }
.docs-sidebar__list a[aria-current="page"] { color: var(--ink); }
.docs-sidebar__list a[aria-current="page"] .docs-sidebar__num { color: var(--accent); }
.docs-article, .legal-article { min-width: 0; width: 100%; max-width: 46rem; }
.legal-article, .guide-article { margin-inline: auto; }
.eyebrow, .guide-article__crumbs, .guide-article__meta { margin: 0 0 1rem; }
.guide-article__crumbs, .guide-article__meta { color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.docs-article h1, .legal-article h1, .home-section h1 { margin: .2rem 0 .9rem; font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; }
.docs-article h2, .legal-article h2 { margin: 2.75rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.docs-article h3 { margin: 1.45rem 0 .6rem; font-size: 1.07rem; }
.docs-article h1 code, .docs-article h2 code { font-size: .82em; }
.docs-article p, .legal-article p { max-width: 66ch; margin-block: 0 .85rem; overflow-wrap: break-word; }
.docs-lead { color: var(--muted); font-size: 1.06rem; }
.docs-meta-links, .docs-pager { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; padding-block: .9rem; color: var(--muted); font: var(--label); letter-spacing: .08em; text-transform: uppercase; }
.docs-meta-links a, .docs-pager a { color: var(--ink); }
.docs-meta-links { justify-content: flex-start; border-bottom: 1px solid var(--rule); }
.docs-pager { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.docs-article :is(ol, ul), .legal-article :is(ol, ul) { max-width: 66ch; padding-inline-start: 1.3rem; }
.docs-article li, .legal-article li { margin-bottom: .4rem; }
.docs-article ol li::marker { color: var(--accent); font: var(--label); }
.ref-table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; }
.ref-table { width: 100%; border-collapse: collapse; font-size: .88rem; border-top: 1px solid var(--ink); }
.ref-table :is(th, td) { vertical-align: top; text-align: left; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); }
.ref-table td code { overflow-wrap: normal; white-space: nowrap; }
[data-pj-article] .ref-table :is(th, td) { overflow-wrap: break-word; }
.ref-table--wide { min-width: 46rem; }
.ref-table th { color: var(--muted); font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.callout { border-left: 2px solid var(--accent); padding: .6rem 0 .6rem 1rem; margin: 1.25rem 0; }
.callout p { margin-bottom: 0; }
.copy-action-bar { margin-block: .8rem; }

/* Footer: one row, product links left, wordmark right (brand web/FOOTER.md). */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: 1rem max(1.25rem, env(safe-area-inset-bottom)); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__links a, .site-footer__wordmark { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--muted); font-size: .8125rem; text-decoration: none; }
.site-footer__end { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-footer__wordmark { font: 450 .875rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.site-footer a:hover { color: var(--ink); }

/* Shared journal: same type and rules as the rest of the site. */
.pj { --pj-rule: var(--rule); --pj-subtle: var(--muted); }
.site-main .pj :is(h1, h2) { font-family: var(--display); font-weight: 420; letter-spacing: -.025em; }

@media (min-width: 40rem) {
  .is-home { --gutter: var(--pad); --inset: clamp(1.25rem, 2.6vw, 2rem); }
  .home { border-inline: 1px solid var(--rule); }
  .home::before, .home::after, .home > section::before, .home > section::after { content: ""; position: absolute; z-index: 1; width: 9px; height: 9px; background: linear-gradient(var(--strong-rule) 0 0) center / 100% 1px no-repeat, linear-gradient(var(--strong-rule) 0 0) center / 1px 100% no-repeat; }
  .home > section::before { top: -5px; left: -5px; }
  .home > section::after { top: -5px; right: -5px; }
  .home::before { bottom: -5px; left: -5px; }
  .home::after { bottom: -5px; right: -5px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .home-facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-band--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-band--split .home-band__head { padding-bottom: clamp(3rem, 6vw, 5rem); }
  .home-band--split .home-band__body { border-left: 1px solid var(--rule); }
  .home-band--split .home-band__body > :first-child, .home-band--split .spec__row:first-child { border-top: 0; }
  dl.home-rows > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.home-rows :is(dt, dd) { padding-block: 1.05rem; }
  dl.home-rows dd { border-left: 1px solid var(--rule); }
  .docs-shell { grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); }
  .docs-sidebar { position: sticky; top: 1.25rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
  .docs-menu:not([open]) > summary { display: flex; }
  .docs-menu[open] > summary { display: none; }
  .docs-menu > div { padding-top: 0; }
}
@media (max-width: 40rem) {
  .site-header__inner { min-height: 3.5rem; gap: .65rem; }
  .site-main { padding-top: 2rem; }
  .spec__row, .spec--compare .spec__row { grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr); }
  .spec--compare .spec__row { grid-template-columns: minmax(5rem, 6.5rem) repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (min-width: 64rem) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* On a phone the header drops links that the footer repeats, then the mark beside the name. */
@media (max-width: 26rem) {
  .site-header__inner, .site-nav { gap: .55rem; }
  .site-nav a[href="/changelog"] { display: none; }
}
@media (max-width: 23rem) {
  .site-nav a[href="/docs"] { display: none; }
}
@media (max-width: 21rem) {
  .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.pj {
  --pj-rule: color-mix(in srgb, currentColor 22%, transparent);
  --pj-subtle: color-mix(in srgb, currentColor 76%, transparent);
  box-sizing: border-box;
  width: 100%;
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.25rem);
  color: inherit;
  font-family: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pj *, .pj *::before, .pj *::after { box-sizing: border-box; }
.pj [hidden] { display: none !important; }
.pj h1, .pj h2, .pj p { margin: 0; color: inherit; }
.pj h1, .pj h2 { font-family: inherit; text-wrap: balance; }
.pj h1 { font-weight: 600; font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.055em; line-height: 1.05; }
.pj h2 { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.55rem); letter-spacing: -.028em; line-height: 1.25; }
.pj a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pj .pj-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: clamp(1.8rem, 5vw, 3.2rem); }
.pj .pj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-size: .94rem; }
.pj .pj-cta { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--pj-rule); border-radius: .4rem; text-decoration: none; font-weight: 600; }
.pj .pj-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; padding: 0; }
.pj .pj-filters input, .pj .pj-filters select { min-height: 2.75rem; min-width: 0; max-width: 100%; margin: 0; border: 1px solid var(--pj-rule); border-radius: .4rem; padding: .4rem .7rem; color: inherit; background: transparent; font: inherit; font-size: .94rem; }
.pj .pj-filters input { flex: 1 1 13rem; }
.pj .pj-filters input::placeholder { color: var(--pj-subtle); opacity: 1; }
.pj .pj-filters select { flex: 0 1 auto; }
.pj .pj-filters select option { background: Canvas; color: CanvasText; }
.pj :is(a, button, input, select):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pj .pj-results { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-bottom: 1rem; font-size: .9rem; }
.pj .pj-results button { padding: .25rem 0; background: transparent; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pj .pj-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); border-block-start: 1px solid var(--pj-rule); padding-block: clamp(1.5rem, 4vw, 2.3rem); scroll-margin-block-start: 6rem; }
.pj time, .pj .pj-guide-label, .pj .pj-meta { font-size: .83rem; color: var(--pj-subtle); }
.pj time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj .pj-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; margin-bottom: .45rem; }
.pj .pj-meta span + span::before { content: "·"; padding-inline-end: .55rem; }
.pj h2 a { text-decoration: none; }
.pj h2 a:is(:hover, :focus-visible), .pj .pj-recent li a:is(:hover, :focus-visible) span { color: var(--pj-subtle); }
.pj .pj-content p { max-width: 62ch; margin: .65rem 0 0; }
.pj .pj-detail { display: inline-block; margin-top: .7rem; font-size: .94rem; }
.pj .pj-recent { border-block-start: 1px solid var(--pj-rule); padding-block-start: 1.5rem; }
.pj .pj-recent ul { list-style: none; padding: 0; margin: .85rem 0 0; }
.pj .pj-recent li { margin: 0; padding: 0; border-block-end: 1px solid var(--pj-rule); }
.pj .pj-recent li a { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding-block: .85rem; text-decoration: none; }
.pj .pj-empty { border-block-start: 1px solid var(--pj-rule); padding-top: 1.5rem; }
@media (max-width: 36rem) {
  .pj .pj-row { display: block; }
  .pj .pj-row > time, .pj .pj-guide-label { display: block; margin-bottom: .55rem; }
  .pj .pj-filters input { flex-basis: 100%; }
  .pj .pj-recent li a { flex-wrap: wrap; gap: .2rem .8rem; }
}

/* The surrounding article supplies the product's type, foreground and background. */
:where([data-pj-article]) {
  --pj-article-rule: color-mix(in srgb, currentColor 22%, transparent);
  overflow-wrap: anywhere;
}
:where([data-pj-article]) :where(h1, h2, h3) { text-wrap: balance; }
:where([data-pj-article]) :where(p, li) { text-wrap: pretty; }
:where([data-pj-article-figure]) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: clamp(1.75rem, 5vw, 3rem) 0;
}
:where([data-pj-article-figure]) :where(img, video, svg, canvas) { max-width: 100%; }
:where([data-pj-article-figure]) > :where(img, video),
:where([data-pj-article-figure]) > picture > img {
  display: block;
  height: auto;
  margin-inline: auto;
}
:where([data-pj-article-figure]) > figcaption {
  max-width: 65ch;
  margin-block-start: .8rem;
  font-size: .9em;
  line-height: 1.5;
}
.pj-article-cta {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-block: clamp(2.75rem, 6vw, 4.5rem) 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--pj-article-rule, currentColor);
  border-radius: .6rem;
  background: color-mix(in srgb, currentColor 3%, transparent);
  color: inherit;
}
.pj-article-cta .pj-article-cta__copy { flex: 1 1 18rem; min-width: 0; }
.pj-article-cta .pj-article-cta__copy h2 { margin: 0; color: inherit; font-family: inherit; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.pj-article-cta .pj-article-cta__copy p { max-width: 50ch; margin: .5rem 0 0; color: inherit; font: inherit; line-height: 1.5; }
.pj-article-cta a[data-pj-cta-link] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 2.8rem;
  max-width: 100%;
  padding: .6rem 1rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: .4rem;
  background: var(--pj-action-background, transparent);
  color: var(--pj-action-color, inherit);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.pj-article-cta a[data-pj-cta-link]:hover { text-decoration: underline; text-underline-offset: .2em; }
.pj-article-cta a[data-pj-cta-link]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/*
 * @hraness/product-mockups: a macOS menu bar, window buttons and an iPhone for product pages.
 *
 * Size the menu bar and window buttons with --pm-pt, one macOS point in the page's units. An iPhone sizes
 * itself from its width. Colours follow the visitor's light or dark preference; set the --pm-* properties on
 * an ancestor to use the product's own. Layout rules have zero specificity so a page's positioning wins.
 */

:where(.pm-menubar, .pm-traffic, .pm-iphone, .pm-iphone-status, .pm-iphone-stack, .pm-iphone-screen),
:where(.pm-menubar, .pm-traffic, .pm-iphone, .pm-iphone-status, .pm-iphone-stack, .pm-iphone-screen) * {
  box-sizing: border-box;
}
.pm-glyph {
  display: block;
  flex: none;
  overflow: visible;
}

/* macOS menu bar: 32 points tall with 14-point text, the Apple menu, the app, its menus and status items. */
.pm-menubar {
  display: flex;
  align-items: center;
  gap: calc(19 * var(--pm-pt, 1px));
  block-size: calc(32 * var(--pm-pt, 1px));
  padding-inline: calc(18 * var(--pm-pt, 1px)) calc(14 * var(--pm-pt, 1px));
  background: var(--pm-menubar-background, rgb(255 255 255 / 0.3));
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  color: var(--pm-menubar-ink, #101317);
  font:
    500 calc(14 * var(--pm-pt, 1px)) / 1 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  white-space: nowrap;
}
.pm-menubar .pm-app {
  font-weight: 700;
}
.pm-menubar .pm-apple {
  inline-size: calc(13.5 * var(--pm-pt, 1px));
  block-size: calc(16 * var(--pm-pt, 1px));
  margin-inline-end: calc(2 * var(--pm-pt, 1px));
}
.pm-status {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--pm-pt, 1px));
  margin-inline-start: auto;
}
.pm-item {
  display: block;
  flex: none;
}
.pm-menubar .pm-battery {
  inline-size: calc(27.5 * var(--pm-pt, 1px));
  block-size: calc(13 * var(--pm-pt, 1px));
}
.pm-menubar .pm-wifi {
  inline-size: calc(17 * var(--pm-pt, 1px));
  block-size: calc(12.3 * var(--pm-pt, 1px));
}
.pm-menubar .pm-spotlight {
  inline-size: calc(14.5 * var(--pm-pt, 1px));
  block-size: calc(14.5 * var(--pm-pt, 1px));
}
.pm-menubar .pm-control {
  inline-size: calc(16.5 * var(--pm-pt, 1px));
  block-size: calc(14.5 * var(--pm-pt, 1px));
}
.pm-time {
  margin-inline-start: calc(-9 * var(--pm-pt, 1px));
}

/* The close, minimize and zoom buttons. */
.pm-traffic {
  display: flex;
  gap: calc(8 * var(--pm-pt, 1px));
}
.pm-traffic i {
  display: block;
  inline-size: calc(12 * var(--pm-pt, 1px));
  block-size: calc(12 * var(--pm-pt, 1px));
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2);
}
.pm-traffic i + i {
  background: #febc2e;
}
.pm-traffic i + i + i {
  background: #28c840;
}

/*
 * iPhone 17 Pro: a 402 x 874 point screen in a 15-point bezel, 432 x 904 points in all. One point inside is
 * --pm-ipt. The status layer sits over the frame at the same size; screen content goes between them.
 */
:where(.pm-iphone, .pm-iphone-status) {
  position: relative;
}
.pm-iphone,
.pm-iphone-status {
  --pm-ipt: calc(100cqw / 432);
  container-type: inline-size;
  aspect-ratio: 432 / 904;
}
.pm-iphone {
  border-radius: 17.82% / 8.52%;
  background: var(
    --pm-iphone-finish,
    linear-gradient(130deg, #c9c8c1, #77786f 22%, #d6d5ce 48%, #6f706a 76%, #b9b8b0)
  );
  box-shadow: var(--pm-iphone-shadow, 0 0 0 0.5px rgb(0 0 0 / 0.45), 0 14px 32px -10px rgb(10 14 24 / 0.45));
}
.pm-iphone::before,
.pm-iphone::after {
  content: '';
  position: absolute;
}
.pm-iphone::before {
  inset: calc(3 * var(--pm-ipt));
  border-radius: calc(74 * var(--pm-ipt));
  background: #0b0b0c;
}
.pm-iphone::after {
  inset: calc(15 * var(--pm-ipt));
  border-radius: calc(62 * var(--pm-ipt));
  background: var(--pm-iphone-screen, #fff);
}
.pm-iphone-key {
  position: absolute;
  inline-size: calc(4 * var(--pm-ipt));
  border-radius: calc(2 * var(--pm-ipt));
  background: #8d8e86;
}
.pm-iphone-action {
  inset-inline-start: calc(-2.5 * var(--pm-ipt));
  inset-block-start: calc(150 * var(--pm-ipt));
  block-size: calc(34 * var(--pm-ipt));
}
.pm-iphone-volume {
  inset-inline-start: calc(-2.5 * var(--pm-ipt));
  inset-block-start: calc(215 * var(--pm-ipt));
  block-size: calc(120 * var(--pm-ipt));
}
.pm-iphone-power {
  inset-inline-end: calc(-2.5 * var(--pm-ipt));
  inset-block-start: calc(250 * var(--pm-ipt));
  block-size: calc(100 * var(--pm-ipt));
}

/* Status bar positions and sizes follow Textmock's iPhone 17 Pro, offset by the bezel. */
.pm-iphone-status {
  color: var(--pm-iphone-ink, #000);
  pointer-events: none;
}
.pm-iphone-time,
.pm-iphone-indicators {
  position: absolute;
  display: flex;
  align-items: center;
  translate: -50% -50%;
}
.pm-iphone-time {
  inset-inline-start: calc(87.67 * var(--pm-ipt));
  inset-block-start: calc(47.67 * var(--pm-ipt));
  font:
    600 calc(16.75 * var(--pm-ipt)) / 1 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-feature-settings: 'case';
}
.pm-iphone-indicators {
  inset-inline-start: calc(342.6 * var(--pm-ipt));
  inset-block-start: calc(47.33 * var(--pm-ipt));
}
.pm-iphone-island {
  position: absolute;
  inset-inline-start: calc(50% - 62.5 * var(--pm-ipt));
  inset-block-start: calc(26 * var(--pm-ipt));
  inline-size: calc(125 * var(--pm-ipt));
  block-size: calc(37 * var(--pm-ipt));
  border-radius: calc(19 * var(--pm-ipt));
  background: #000;
}
.pm-iphone-indicators .pm-cellular {
  position: relative;
  inset-block-start: calc(0.33 * var(--pm-ipt));
  inline-size: calc(19.33 * var(--pm-ipt));
  block-size: calc(12.33 * var(--pm-ipt));
  margin-inline-end: calc(7.33 * var(--pm-ipt));
}
.pm-iphone-indicators .pm-wifi {
  inline-size: calc(17 * var(--pm-ipt));
  block-size: calc(12.33 * var(--pm-ipt));
  margin-inline-end: calc(7.33 * var(--pm-ipt));
}
.pm-iphone-indicators .pm-battery {
  inline-size: calc(27.5 * var(--pm-ipt));
  block-size: calc(13 * var(--pm-ipt));
}
.pm-iphone-home {
  position: absolute;
  inset-inline-start: calc(50% - 67 * var(--pm-ipt));
  inset-block-end: calc(23 * var(--pm-ipt));
  inline-size: calc(134 * var(--pm-ipt));
  block-size: calc(5 * var(--pm-ipt));
  border-radius: calc(3 * var(--pm-ipt));
  background: currentColor;
}

/* Optional: stack the frame, screen content and status layer in one box. Give the stack a definite width. */
:where(.pm-iphone-stack) {
  display: grid;
  container-type: inline-size;
}
:where(.pm-iphone-stack) > * {
  grid-area: 1 / 1;
}
:where(.pm-iphone-screen) {
  z-index: 1;
  align-self: start;
  margin: calc(100cqw * 15 / 432);
  aspect-ratio: 402 / 874;
  overflow: hidden;
  border-radius: calc(100cqw * 62 / 432);
}
:where(.pm-iphone-stack > .pm-iphone-status) {
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  .pm-menubar {
    background: var(--pm-menubar-background, rgb(30 30 32 / 0.42));
    color: var(--pm-menubar-ink, #f5f5f7);
  }
  .pm-iphone::after {
    background: var(--pm-iphone-screen, #000);
  }
  .pm-iphone-status {
    color: var(--pm-iphone-ink, #fff);
  }
}

@media (forced-colors: active) {
  .pm-iphone,
  .pm-menubar {
    border: 1px solid CanvasText;
  }
}

/*
 * Drawings of OH for the home page (mockups/drawings.mjs). Each drawing is its own size container:
 * its type size follows its width and every measure inside is in em, so a drawing scales like a
 * picture while its text stays text. Colours follow the page's theme.
 */
.mock {
  container-type: inline-size;
  --m-bg: light-dark(#fbfaf6, #1b1a18);
  --m-side: light-dark(#f4f1ea, #22201d);
  --m-term: light-dark(#f6f3ec, #141312);
  --m-line: light-dark(#ddd8cc, #35322c);
  --m-dim: var(--muted);
  --m-fill: color-mix(in srgb, var(--ink) 7%, transparent);
  --m-ok: light-dark(#3d7a3a, #86c97f);
  /* The app's two alert levels: a warning and a critical reading. */
  --m-warn: light-dark(#9a5a00, #e6a23f);
  --m-high: light-dark(#c2410c, #ff7a45);
  --m-add: light-dark(#e2eedb, #1c2a1d);
  --m-del: light-dark(#f5dcd5, #3a1e1b);
}
.mock__body { color: var(--ink); font: 400 clamp(.6875rem, 3.75cqi, .8125rem)/1.35 var(--sans); cursor: default; -webkit-user-select: none; user-select: none; }
.mock :is(p, pre) { margin: 0; }
.mock :is(b, i, em, small, code) { font: inherit; }
.mock svg { display: block; flex: none; }
.mi { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.mi.is-warn { color: var(--m-warn); }
.mi.is-crit { color: var(--m-high); }
.m-dim { color: var(--m-dim); }
.m-gap { flex: 1; }
.m-dot { display: inline-block; flex: none; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.m-dot--ok { background: var(--m-ok); }
.m-state { display: inline-flex; align-items: center; gap: .3em; font-weight: 650; }
.m-state--ok { color: var(--m-ok); }
.m-state--warn { color: var(--m-warn); }
.m-pill { padding: .08em .5em; border-radius: .45em; background: color-mix(in srgb, var(--m-warn) 22%, transparent); font: 550 .8em var(--mono); }

/* A piece of the app on its own: one card. The devices drawing is cards already. */
.mock:is(.mock--window, .mock--sessions, .mock--requests, .mock--accounts, .mock--tasks, .mock--fleet) .mock__body { overflow: hidden; border: 1px solid var(--m-line); border-radius: .75em; background: var(--m-bg); }

/* The whole window. */
.mock--window .mock__body { border-radius: .9em; font-size: clamp(.4375rem, 1.2cqi, .8125rem); box-shadow: 0 2em 4em -3em rgb(0 0 0 / .5); }
.mw-bar, .mw-tabs, .m-bar { display: flex; align-items: center; gap: .9em; padding: .55em .9em; border-bottom: 1px solid var(--m-line); background: var(--m-side); white-space: nowrap; }
.mw-bar, .m-bar { --pm-pt: .078em; }
.mw-mark { width: 1.3em; height: 1.3em; fill: currentColor; }
.m-seg { display: inline-flex; padding: .15em; border-radius: .6em; background: var(--m-fill); }
.m-seg b { padding: .22em .75em; border-radius: .48em; color: var(--m-dim); font-weight: 550; }
.m-seg .is-on { color: var(--ink); background: var(--m-bg); box-shadow: 0 0 0 1px var(--m-line); }
:is(.m-seg, .m-chip) small { margin-left: .55em; color: var(--m-dim); font: 400 .82em var(--mono); }
.m-allow, .m-chips { display: inline-flex; align-items: center; gap: .45em; }
.m-allow .m-pill { background: var(--m-fill); }
.m-arc { width: 1.9em; height: 1.14em; fill: none; stroke: var(--m-line); stroke-width: 2.6; stroke-linecap: round; }
.m-arc path + path { stroke: var(--ink); }
.m-meter-group { display: inline-flex; align-items: center; gap: .3em; }
.m-meter-group + .m-meter-group { border-left: 1px solid var(--m-line); padding-left: .45em; }
.m-meter { width: 1.8em; height: 1.8em; fill: currentColor; }
/* AccountInk slots for a fresh Preview workspace, in the order ProfileMeterEntry presents them. */
.m-meter--claude-primary { color: light-dark(#2d5c57, #6ccdc2); }
.m-meter--claude-work { color: light-dark(#6f5f30, #c5a95b); }
.m-meter--codex-client { color: light-dark(#1d6792, #52b6f5); }
.m-meter--codex-primary { color: light-dark(#1f723a, #5bc577); }
.m-meter-track { opacity: .28; }
.m-meter-unknown { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 3; }
.m-chip { display: inline-flex; align-items: center; gap: .45em; padding: .22em .55em; border: 1px solid var(--m-line); border-radius: .5em; color: var(--m-dim); font: 550 .76em var(--mono); letter-spacing: .04em; }
.m-chip.is-warn { border-color: var(--m-warn); }
.m-chip.is-crit { border-color: var(--m-high); }
.m-chip span { display: inline-flex; align-items: center; gap: .35em; color: var(--ink); letter-spacing: 0; }
.m-chip span .mi { color: var(--m-dim); }
.m-chip--key { border-color: transparent; color: var(--ink); background: var(--m-fill); font: 550 .9em var(--sans); letter-spacing: 0; }
/* A device's readings as columns: a faint track, filled from the bottom. A reading with a warning takes its colour. */
.m-load { width: 1.2em; height: 1.1em; fill: var(--ink); }
.m-load--two { width: .8em; }
.m-load .is-track { fill-opacity: .16; }
.m-load .is-fill { fill-opacity: .68; }
.m-load .is-warn { fill: var(--m-warn); stroke: var(--m-warn); }
.m-load .is-crit { fill: var(--m-high); stroke: var(--m-high); }
.m-load .is-fill:is(.is-warn, .is-crit) { fill-opacity: 1; stroke: none; }
.m-load .is-track:is(.is-warn, .is-crit) { fill-opacity: .2; stroke-width: .7; }
.mw-panes { display: grid; grid-template-columns: 22em minmax(0, 1fr); min-height: 31em; }
.mw-side { min-width: 0; padding-top: .6em; border-right: 1px solid var(--m-line); background: var(--m-side); }
.m-find { display: flex; gap: .4em; padding: 0 .7em .55em; }
.m-field { display: flex; flex: 1; align-items: center; gap: .45em; padding: .38em .6em; border-radius: .5em; color: var(--m-dim); background: var(--m-fill); }
.m-ibtn { display: grid; place-items: center; width: 2.1em; border-radius: .5em; background: var(--m-fill); }
.mw-main { display: flex; flex-direction: column; min-width: 0; }
.m-head { display: flex; align-items: center; gap: .9em; padding: .7em 1em; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.m-head b { font-size: 1.15em; font-weight: 650; }
.m-head > span:last-child { color: var(--m-dim); font-size: .88em; }
.m-turns { display: grid; gap: .6em; padding: .8em 1em; }
.m-turn { min-width: 0; padding: .6em .85em .7em; border: 1px solid var(--m-line); border-radius: .6em; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.m-turn__who { display: flex; align-items: baseline; gap: .6em; color: var(--m-dim); font: 500 .74em var(--mono); letter-spacing: .06em; }
.m-turn__who b { color: var(--accent); font-weight: 700; text-transform: uppercase; }
.m-turn__who span { margin-left: auto; letter-spacing: 0; }
.m-turn p { margin-top: .35em; }
.m-turn .m-dim { font-size: .92em; }
.m-diff { overflow: hidden; margin-top: .55em; padding-block: .35em; border-radius: .45em; background: var(--m-bg); font: 400 .82em/1.5 var(--mono); }
/* A grid drops the line breaks between the lines, which a pre would otherwise show as blank lines. */
:is(.m-diff, .m-cli) code { display: grid; }
.m-diff span { padding-inline: .9em; white-space: pre; }
.m-diff .is-add { background: var(--m-add); }
.m-diff .is-del { background: var(--m-del); }
.m-term { flex: 1; overflow: hidden; padding: .9em 1.1em 1.2em; border-top: 1px solid var(--m-line); background: var(--m-term); font: 400 1.02em/1.5 var(--mono); }
.m-head + .m-term { border-top: 0; }
.m-term i { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: text-bottom; }

/* Sessions and requests, in the sidebar and on their own. */
.m-needs { display: flex; align-items: center; gap: .4em; padding: .4em .8em .25em; font-size: .9em; font-weight: 650; }
.m-needs .mi { color: var(--m-warn); }
.m-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1em .8em; padding: .38em .8em; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.m-req b { overflow: hidden; font-weight: 650; text-overflow: ellipsis; }
.m-req :is(span, .mi) { color: var(--m-dim); }
.m-req .mi { justify-self: end; }
.m-req span { font-size: .84em; }
.m-more { padding: .4em .8em .5em; color: var(--m-dim); font-size: .84em; font-weight: 550; }
.m-row { padding: .6em .8em; }
.m-row.is-on { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.m-row__top { display: flex; align-items: baseline; justify-content: space-between; gap: .8em; white-space: nowrap; }
.m-row__top b { overflow: hidden; min-width: 0; font-size: 1.12em; font-weight: 600; text-overflow: ellipsis; }
.m-row__top span { flex: none; color: var(--m-dim); font-size: .82em; }
.m-row__meta { display: flex; align-items: center; gap: .55em; min-height: 1.5em; margin-top: .2em; color: var(--m-dim); font-size: .85em; white-space: nowrap; }
.m-timer { margin-left: auto; }
.m-row p { margin-top: .3em; color: var(--m-dim); font-size: .85em; }
.m-row code { font: .94em var(--mono); }
.m-group { display: flex; align-items: center; gap: .45em; padding: .55em .7em; border-block: 1px solid var(--m-line); font-size: 1.05em; font-weight: 650; }
.m-group .mi { color: var(--m-dim); }
.m-nest { margin-left: 1.25em; border-left: 1px solid var(--m-line); }

/* Router's Profiles table. */
.m-acct { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: .8em; padding: .5em .85em; border-top: 1px solid var(--m-line); white-space: nowrap; }
.m-acct--head { padding-block: .6em .45em; border-top: 0; color: var(--m-dim); font-size: .8em; }
.m-acct > span { display: grid; align-content: start; min-width: 0; }
.m-acct b { font-weight: 600; }
.m-acct small { overflow: hidden; color: var(--m-dim); font-size: .8em; text-overflow: ellipsis; }

/* Router's Devices: this Mac on the left, wired to the machines paired with it. */
/* This Mac's card is the wider one: its second line is the longest in the map. */
.m-link { display: grid; grid-template-columns: minmax(0, 1.15fr) 1.2em minmax(0, 1fr); align-items: center; }
.m-stack { display: grid; gap: .6em; }
.m-wire { position: relative; align-self: stretch; }
.m-wire svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--strong-rule); stroke-dasharray: 2 3; }
.m-wire path { vector-effect: non-scaling-stroke; }
.m-device { min-width: 0; padding: .55em .6em .65em; border: 1px solid var(--m-line); border-radius: .65em; background: var(--m-bg); white-space: nowrap; }
.m-device__name { display: flex; align-items: center; gap: .4em; font-weight: 650; }
.m-device__name b, .m-device .m-dim { overflow: hidden; text-overflow: ellipsis; }
.m-device .m-dim, .m-device__state { font-size: .82em; }
.m-device__state { display: flex; align-items: center; gap: .4em; font-weight: 600; }
.m-device__state .m-dot:not(.m-dot--ok) { color: var(--m-dim); }
.m-readings { display: grid; gap: .4em; margin-top: .5em; padding-top: .5em; border-top: 1px solid var(--m-line); }
.m-reading { display: grid; gap: .2em; font-size: .78em; font-weight: 550; }
.m-reading small { margin-right: .5em; color: var(--m-dim); }
.m-reading em { display: flex; align-items: center; gap: .3em; font-style: normal; font-weight: 700; }
.m-reading > svg { width: 100%; height: .32em; border-radius: 99px; fill: var(--m-line); }
.m-reading rect + rect { fill: var(--m-dim); }
.m-reading.is-warn rect + rect { fill: var(--m-warn); }
.m-reading.is-crit rect + rect { fill: var(--m-high); }

/* Recurring tasks. */
.m-task { padding: .6em .85em; border-top: 1px solid var(--m-line); }
.m-task:first-child { border-top: 0; }
.m-task .m-row__top b { font-size: 1em; }
.m-task__last { padding-left: 1.55em; }

/* A terminal with oh-router commands. */
.m-cli { padding: .8em .95em .95em; font: 400 .82em/1.55 var(--mono); }
.m-cli code { gap: .7em; }
.m-cli span { white-space: pre-wrap; overflow-wrap: anywhere; }
.m-cli i { color: var(--m-dim); font-style: normal; }
.m-cli b { white-space: nowrap; }

/* A narrow window keeps the bar and the sidebar, the way OH looks when you make it small. */
@container (max-width: 36rem) {
  .mock--window .mock__body { font-size: clamp(.625rem, 3.3cqi, .8125rem); }
  .mock--window :is(.mw-main, .m-chips, .mw-bar .m-chip--key, .mw-mark) { display: none; }
  .mock--window .mw-panes { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock--window .mw-side { padding-bottom: .4em; border-right: 0; }
  /* The bar shows as many allowances as fit: the rest wrap out of sight. */
  .mock--window .m-allow { flex: 1; flex-wrap: wrap; justify-content: flex-end; height: 1.6em; min-width: 0; overflow: hidden; }
  .mock--window .m-allow--bars { height: 1.8em; }
}
