<!-- Generated by tools/design/build.mjs from Studio 2.4 (design/studio/DESIGN.md, packages/system/dist/tokens.json) and public/design/overrides.json. Do not edit; change the source and run `make build`. -->
---
version: alpha
name: Studio
release: 2.4.0
updated: 2026-11-30
description: >-
  Studio is the design system of a creator tool for nine kinds of resource
  (short links, bio pages, vCards, events, file links, static pages, splash
  pages, payment links and QR codes). Floating glass chrome over a quiet editorial canvas: a
  cool-neutral ramp at hue 270, one lime accent for the one action that
  matters, one hue per resource kind, Bounded display headlines with a single Instrument Serif italic
  accent word, Certia for the interface and Space Grotesk for captions
  and data. Hairlines are 0.5px; every button and chip is a pill, every field a 14 px rounded box; the app's places
  sit in a quiet sidebar, and chrome that floats never touches content. Structure is measured
  against the container, never the device. Token values below are the light
  theme; the dark theme is an extension block in Colors.

colors:
  # action: the emphasis treatment, a lime fill reserved for the primary action
  primary:             "oklch(0.78 0.22 138)"
  primary-hover:       "oklch(0.81 0.21 138)"
  primary-active:      "oklch(0.74 0.22 138)"
  on-primary:          "oklch(0.18 0.06 145)"
  # lime as a line, a tint and a glow
  primary-line:        "oklch(0.64 0.2 142.1)"
  primary-soft:        "oklch(0.95 0.06 135)"
  on-primary-soft:     "oklch(0.42 0.12 142)"
  primary-glow:        "oklch(0.78 0.22 138 / 0.5)"
  # surfaces, back to front
  background:          "oklch(0.98 0.003 270)"
  background-edge:     "oklch(0.95 0.004 270)"
  surface:             "oklch(1 0 0)"
  surface-2:           "oklch(0.962 0.004 270)"
  surface-3:           "oklch(0.93 0.005 270)"
  inverse-surface:     "oklch(0.14 0.012 270)"
  on-inverse-surface:  "oklch(0.98 0.003 270)"
  # ink, 1 = titles and values, 4 = marks that carry no information
  on-surface:          "oklch(0.14 0.012 270)"
  on-surface-2:        "oklch(0.40 0.009 270)"
  on-surface-3:        "oklch(0.545 0.008 268.5)"
  on-surface-4:        "oklch(0.72 0.006 270)"
  # lines
  outline:             "oklch(0.88 0.006 270)"
  outline-soft:        "oklch(0.92 0.005 270)"
  outline-strong:      "oklch(0.60 0.008 270)"
  # focus and washes
  # the ring keeps 3:1 on every field, so it is a deeper lime than primary-line
  focus:               "oklch(0.60 0.18 142)"
  focus-field:         "{colors.focus}"
  focus-field-halo:    "oklch(0.78 0.22 138 / 0.14)"
  scrim:               "oklch(0.14 0.012 270 / 0.05)"
  scrim-strong:        "oklch(0.14 0.012 270 / 0.09)"
  overlay:             "oklch(0.14 0.01 270 / 0.34)"
  # the glass material (numbers in the materials block)
  glass:               "oklch(1 0 0 / 0.72)"
  glass-line:          "oklch(1 0 0 / 0.65)"
  glass-solid:         "oklch(1 0 0)"
  glass-specular:      "oklch(1 0 0 / 0.8)"
  # status: the hue (dots, icons, fills, the board's swatch) and its ink for words
  error:               "oklch(0.579 0.23 22)"
  on-error:            "oklch(1 0 0)"
  success:             "oklch(0.64 0.16 149.9)"
  warning:             "oklch(0.719 0.148 84.4)"
  info:                "oklch(0.50 0.13 235)"
  error-surface:       "oklch(0.955 0.03 25)"
  success-surface:     "oklch(0.955 0.04 150)"
  warning-surface:     "oklch(0.955 0.05 80)"
  info-surface:        "oklch(0.955 0.03 235)"
  on-error-surface:    "oklch(0.52 0.21 25)"
  on-success-surface:  "oklch(0.50 0.14 150)"
  on-warning-surface:  "oklch(0.50 0.11 75)"
  # kinds: one hue per kind (the walkthrough's Foundations board), its tint and the ink that reads on the tint
  kind-link:           "oklch(0.527 0.222 265.4)"
  kind-link-surface:   "oklch(0.95 0.04 265.4)"
  on-kind-link-surface: "oklch(0.527 0.222 265.4)"
  kind-biopage:        "oklch(0.552 0.229 300.5)"
  kind-biopage-surface: "oklch(0.95 0.04 300.5)"
  on-kind-biopage-surface: "oklch(0.552 0.229 300.5)"
  kind-qr:             "oklch(0.557 0.148 148)"
  kind-qr-surface:     "oklch(0.95 0.037 148)"
  on-kind-qr-surface:  "oklch(0.507 0.148 148)"
  kind-vcard:          "oklch(0.55 0.096 215.9)"
  kind-vcard-surface:  "oklch(0.95 0.024 215.9)"
  on-kind-vcard-surface: "oklch(0.52 0.096 215.9)"
  kind-event:          "oklch(0.6 0.19 37.9)"
  kind-event-surface:  "oklch(0.95 0.04 37.9)"
  on-kind-event-surface: "oklch(0.54 0.19 37.9)"
  kind-file:           "oklch(0.546 0.195 26.6)"
  kind-file-surface:   "oklch(0.95 0.04 26.6)"
  on-kind-file-surface: "oklch(0.536 0.195 26.6)"
  kind-static:         "oklch(0.428 0.015 248.2)"
  kind-static-surface: "oklch(0.95 0.008 248.2)"
  on-kind-static-surface: "oklch(0.428 0.015 248.2)"
  kind-splash:         "oklch(0.539 0.193 6.5)"
  kind-splash-surface: "oklch(0.95 0.04 6.5)"
  on-kind-splash-surface: "oklch(0.539 0.193 6.5)"
  kind-payment:        "oklch(0.578 0.154 129.2)"
  kind-payment-surface: "oklch(0.95 0.038 129.2)"
  on-kind-payment-surface: "oklch(0.518 0.154 129.2)"
  # data: the single-series ink of charts, sparklines and meters
  data:                "oklch(0.328 0.031 271.9)"
  # data: one value per series, clearing 3:1 on both page fields in both themes
  series-1:            "oklch(0.62 0.19 142)"
  series-2:            "oklch(0.55 0.01 270)"
  series-3:            "oklch(0.58 0.15 255)"
  series-4:            "oklch(0.58 0.17 315)"
  series-5:            "oklch(0.62 0.14 65)"
  series-6:            "oklch(0.60 0.10 195)"
  series-7:            "oklch(0.60 0.17 355)"
  series-8:            "oklch(0.55 0.15 285)"
  chart-grid:          "{colors.outline}"
  chart-axis:          "{colors.outline-strong}"
  chart-label:         "{colors.on-surface-3}"
  chart-track:         "{colors.surface-3}"
  chart-area:          "oklch(0.328 0.031 271.9 / 0.12)"
  # code: one role per Prism token family, each ≥ 4.5:1 on code-surface and on the three line tints
  code-surface:        "oklch(0.965 0.004 270)"
  code-plain:          "oklch(0.22 0.012 270)"
  code-punctuation:    "oklch(0.42 0.009 270)"
  code-comment:        "oklch(0.50 0.008 270)"
  code-keyword:        "oklch(0.48 0.17 300)"
  code-string:         "oklch(0.47 0.08 190)"
  code-number:         "oklch(0.50 0.16 355)"
  code-function:       "oklch(0.48 0.15 260)"
  code-attr:           "oklch(0.50 0.11 50)"
  code-tag:            "oklch(0.47 0.14 280)"
  code-added:          "oklch(0.935 0.045 150)"
  code-removed:        "oklch(0.935 0.04 22)"
  code-highlight:      "oklch(0.92 0.008 270)"
  # codes: the inks and papers a QR code is drawn in; printed content, so the same in both themes
  qr-ink:              "oklch(0.18 0.012 270)"
  qr-leaf:             "oklch(0.46 0.15 142)"
  qr-blue:             "oklch(0.46 0.17 262)"
  qr-violet:           "oklch(0.45 0.19 295)"
  qr-ember:            "oklch(0.56 0.16 45)"
  qr-teal:             "oklch(0.47 0.07 190)"
  qr-lime:             "oklch(0.87 0.21 135)"
  qr-paper:            "oklch(1 0 0)"
  qr-mist:             "oklch(0.965 0.004 270)"
  qr-cream:            "oklch(0.955 0.03 85)"
  qr-night:            "oklch(0.18 0.012 270)"

typography:
  # Ten roles (the walkthrough's Type board): Display L, Display M, Accent, Title, Name, Body, UI, Small, Label, Meta.
  # Scale: 10 · 10.5 · 11 · 12 · 13 · 14 · 15 · 16 · 20 · 24 · 42 · 50; every size is emitted in rem so it follows the reader's text setting.
  # display: Bounded, always with tabular lining figures
  headline-display: { fontFamily: Bounded, fontSize: 50px, fontWeight: 500, lineHeight: 1.04, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  headline-lg:      { fontFamily: Bounded, fontSize: 42px, fontWeight: 500, lineHeight: 1.04, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  headline-md:      { fontFamily: Bounded, fontSize: 22px, fontWeight: 400, lineHeight: 1.1, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  headline-feature: { fontFamily: Bounded, fontSize: 26px, fontWeight: 400, lineHeight: 1.08, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  # the signed-out pages (Auth-* boards): the form's heading and the showcase's line
  headline-entry:   { fontFamily: Bounded, fontSize: 32px, fontWeight: 500, lineHeight: 1.1, letterSpacing: -0.025em, fontFeature: '"tnum" 1' }
  headline-showcase: { fontFamily: Bounded, fontSize: 30px, fontWeight: 500, lineHeight: 1.12, letterSpacing: -0.025em, fontFeature: '"tnum" 1' }
  tile-title:       { fontFamily: Bounded, fontSize: 19px, fontWeight: 400, lineHeight: 1.1, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  editor-name:      { fontFamily: Bounded, fontSize: 18px, fontWeight: 500, lineHeight: 1.15, letterSpacing: -0.015em, fontFeature: '"tnum" 1' }
  headline-sm:      { fontFamily: Certia, fontSize: 16px, fontWeight: 600, lineHeight: 1.3, letterSpacing: -0.006em, fontFeature: '"ss01", "cv11", "tnum"' }
  headline-xs:      { fontFamily: Bounded, fontSize: 14px, fontWeight: 500, lineHeight: 1.25, letterSpacing: -0.01em, fontFeature: '"tnum" 1' }
  row-title:        { fontFamily: Certia, fontSize: 15px, fontWeight: 500, lineHeight: 1.3, letterSpacing: -0.004em, fontFeature: '"ss01", "cv11", "tnum"' }
  row-value:        { fontFamily: Certia, fontSize: 15px, fontWeight: 600, lineHeight: 1.3, letterSpacing: -0.01em, fontFeature: '"ss01", "cv11", "tnum"' }
  numeral-lg:       { fontFamily: Bounded, fontSize: 42px, fontWeight: 500, lineHeight: 1.04, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  numeral-stat:     { fontFamily: Bounded, fontSize: 28px, fontWeight: 500, lineHeight: 1.0, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  numeral-md:       { fontFamily: Bounded, fontSize: 20px, fontWeight: 500, lineHeight: 1.0, letterSpacing: -0.02em, fontFeature: '"tnum" 1' }
  numeral-sm:       { fontFamily: Bounded, fontSize: 16px, fontWeight: 500, lineHeight: 1.0, letterSpacing: -0.015em, fontFeature: '"tnum" 1' }
  brand-mark:       { fontFamily: Bounded, fontSize: 16px, fontWeight: 600, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"tnum" 1' }
  avatar-initial:   { fontFamily: Bounded, fontSize: 14px, fontWeight: 600, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"tnum" 1' }
  brand-wordmark:   { fontFamily: Bounded, fontSize: 20px, fontWeight: 400, lineHeight: 1.0, letterSpacing: -0.015em, fontFeature: '"tnum" 1' }
  workspace-initial: { fontFamily: Bounded, fontSize: 14px, fontWeight: 400, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"tnum" 1' }
  # the accent word: inherits the headline's size
  accent-italic:    { fontFamily: Instrument Serif, fontSize: 1.1em, fontWeight: 400, lineHeight: 1.0, letterSpacing: -0.005em }
  # reading and interface: Certia
  body-lg:          { fontFamily: Certia, fontSize: 15px, fontWeight: 400, lineHeight: 1.5, letterSpacing: -0.004em, fontFeature: '"ss01", "cv11", "tnum"' }
  body-md:          { fontFamily: Certia, fontSize: 14px, fontWeight: 400, lineHeight: 1.5, letterSpacing: -0.006em, fontFeature: '"ss01", "cv11", "tnum"' }
  body-sm:          { fontFamily: Certia, fontSize: 13px, fontWeight: 400, lineHeight: 1.45, letterSpacing: -0.003em, fontFeature: '"ss01", "cv11", "tnum"' }
  body-xs:          { fontFamily: Certia, fontSize: 12px, fontWeight: 400, lineHeight: 1.45, letterSpacing: 0em, fontFeature: '"ss01", "cv11", "tnum"' }
  label-lg:         { fontFamily: Certia, fontSize: 14px, fontWeight: 600, lineHeight: 1.4, letterSpacing: -0.008em, fontFeature: '"ss01", "cv11", "tnum"' }
  label-md:         { fontFamily: Certia, fontSize: 14px, fontWeight: 500, lineHeight: 1.4, letterSpacing: -0.008em, fontFeature: '"ss01", "cv11", "tnum"' }
  label-sm:         { fontFamily: Certia, fontSize: 13px, fontWeight: 500, lineHeight: 1.4, letterSpacing: -0.004em, fontFeature: '"ss01", "cv11", "tnum"' }
  # the editor workspace's panels (Editor-Matrix): the panel's title, its quiet lines and values, the bar's one action
  panel-title:      { fontFamily: Certia, fontSize: 15px, fontWeight: 600, lineHeight: 1.2, letterSpacing: -0.006em, fontFeature: '"ss01", "cv11", "tnum"' }
  panel-meta:       { fontFamily: Certia, fontSize: 12.5px, fontWeight: 400, lineHeight: 1.3, letterSpacing: 0em, fontFeature: '"ss01", "cv11", "tnum"' }
  panel-value:      { fontFamily: Certia, fontSize: 13.5px, fontWeight: 400, lineHeight: 1.3, letterSpacing: -0.003em, fontFeature: '"ss01", "cv11", "tnum"' }
  action-lg:        { fontFamily: Certia, fontSize: 14.5px, fontWeight: 600, lineHeight: 1.0, letterSpacing: -0.006em, fontFeature: '"ss01", "cv11", "tnum"' }
  social-title:     { fontFamily: Certia, fontSize: 19px, fontWeight: 600, lineHeight: 1.25, letterSpacing: -0.01em, fontFeature: '"ss01", "cv11", "tnum"' }
  # the vCard's contact card (Editor-vCard-Desktop): the name on the dark band, the quick actions' words, a row's caption
  contact-name:     { fontFamily: Certia, fontSize: 22px, fontWeight: 600, lineHeight: 1.2, letterSpacing: -0.012em, fontFeature: '"ss01", "cv11", "tnum"' }
  contact-action:   { fontFamily: Certia, fontSize: 12px, fontWeight: 500, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"ss01", "cv11", "tnum"' }
  contact-caption:  { fontFamily: Certia, fontSize: 11px, fontWeight: 400, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"ss01", "cv11", "tnum"' }
  # captions (Label): Space Grotesk 500, uppercase, +0.12em (see type-transform); 10 px is the floor
  caption-lg:       { fontFamily: Space Grotesk, fontSize: 12px, fontWeight: 500, lineHeight: 1.25, letterSpacing: 0.12em, fontFeature: '"tnum"' }
  caption-md:       { fontFamily: Space Grotesk, fontSize: 10.5px, fontWeight: 500, lineHeight: 1.25, letterSpacing: 0.12em, fontFeature: '"tnum"' }
  caption-xs:       { fontFamily: Space Grotesk, fontSize: 10.5px, fontWeight: 500, lineHeight: 1.2, letterSpacing: 0.12em, fontFeature: '"tnum"' }
  # data: Space Grotesk in sentence case
  mono-lg:          { fontFamily: Space Grotesk, fontSize: 15px, fontWeight: 400, lineHeight: 1.35, letterSpacing: -0.01em, fontFeature: '"tnum"' }
  mono-md:          { fontFamily: Space Grotesk, fontSize: 13px, fontWeight: 400, lineHeight: 1.35, letterSpacing: -0.005em, fontFeature: '"tnum"' }
  mono-sm:          { fontFamily: Space Grotesk, fontSize: 12px, fontWeight: 400, lineHeight: 1.35, letterSpacing: 0em, fontFeature: '"tnum"' }
  mono-xs:          { fontFamily: Space Grotesk, fontSize: 11px, fontWeight: 400, lineHeight: 1.35, letterSpacing: 0.01em, fontFeature: '"tnum"' }
  # code: the one monospaced role, for code surfaces where a column has to mean something
  code-md:          { fontFamily: JetBrains Mono, fontSize: 13px, fontWeight: 400, lineHeight: 1.5, letterSpacing: 0em, fontFeature: '"tnum"' }
  kbd:              { fontFamily: Space Grotesk, fontSize: 11px, fontWeight: 500, lineHeight: 1.0, letterSpacing: 0.02em, fontFeature: '"tnum"' }
  count:            { fontFamily: Space Grotesk, fontSize: 10px, fontWeight: 600, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"tnum"' }
  delta:            { fontFamily: Certia, fontSize: 11px, fontWeight: 600, lineHeight: 1.0, letterSpacing: 0em, fontFeature: '"ss01", "cv11", "tnum"' }

rounded:
  none: 0px
  xs: 6px
  sm: 10px
  md: 14px
  lg: 20px
  card: 26px
  xl: 28px
  full: 999px

spacing:
  # the space scale: a 4 px rhythm with four optical half-steps (6, 10, 14, 18) for the insides of chrome
  s-0: 2px
  s-1: 4px
  s-1h: 6px
  s-2: 8px
  s-2h: 10px
  s-3: 12px
  s-3h: 14px
  s-4: 16px
  s-4h: 18px
  s-5: 20px
  s-6: 24px
  s-7: 32px
  s-8: 40px
  s-9: 48px
  s-10: 56px
  s-11: 64px
  s-12: 96px
  # page presentation (the only values that read the viewport)
  gutter: "{spacing.s-4}"
  gutter-md: "{spacing.s-6}"
  gutter-lg: "{spacing.s-7}"
  band-narrow: "{spacing.s-8}"
  band: "{spacing.s-10}"
  section-gap: "{spacing.band}"
  section-gap-compact: "{spacing.band-narrow}"
  grid-gap: "{spacing.s-3h}"
  chrome-inset: "{spacing.s-3h}"
  # the frame and the columns inside it
  content-max: 1140px
  workspace-max: "{spacing.content-max}"
  reading: 680px
  reading-min: 520px
  rail: 200px
  rail-min: 164px
  rail-gap: "{spacing.s-6}"
  region: 300px
  region-keep: 300px
  # container thresholds, measured on the container named beside each (derived in Layout)
  overlay-at: 600px
  pair-at: 560px
  toolbar-full-at: 840px
  nav-inline-at: 716px
  rails-at: 896px
  # the width of a page's section list beside its panel (Tabs variant nav, the Account boards)
  tabs-rail-w: 240px
  quad-at: 826px
  split-at: 796px
  head-split-at: 768px
  row-fold-at: 556px
  compose-at: 432px
  compose-wide-at: 720px
  # measures
  measure-narrow: 52ch
  measure: 68ch
  measure-wide: 88ch
  # chrome: the floating toolbar
  nav-top: "{spacing.chrome-inset}"
  nav-h: 46px
  nav-h-compact: 42px
  nav-stack: 74px
  nav-stack-compact: 70px
  scroll-offset: 106px
  toolbar-h: "{spacing.nav-h}"
  toolbar-h-compact: "{spacing.nav-h-compact}"
  toolbar-clear: "{spacing.nav-stack}"
  content-top: 86px
  fab: 56px
  marker: 24px
  dot: 6px
  dot-sm: 4px
  dot-xs: 3px
  dot-kind: 5px
  legend-key: 9px
  track-inset: 3px
  toggle-thumb: 22px
  day: 36px
  selection-w: 1.5px
  art-label-min: 200px
  # controls
  target: 44px
  control-h-xs: 30px
  control-h-sm: 34px
  control-h: 38px
  control-h-lg: "{spacing.nav-h}"
  field-h: 48px
  field-h-lg: 54px
  row-h: 44px
  row-h-lg: 66px
  control-xs: 18px
  toggle-w: 44px
  toggle-h: 26px
  thumb: 42px
  thumb-row: 64px
  thumb-row-sm: 52px
  badge-h: 22px
  kind-mark: 26px
  icon-well: 38px
  brand-mark: 30px
  search-w: 340px
  textarea-min: 96px
  menu-w: 272px
  menu-w-sm: 218px
  menu-max-h: 320px
  popover-w: 300px
  modal-w-sm: 400px
  entry-w: 380px
  modal-w: 520px
  modal-w-lg: 680px
  modal-w-xl: 900px
  search-layer-w-lg: 640px
  stage-dot: 24px
  sheet-max-h: 640px
  sheet-grip-w: 38px
  sheet-grip-h: 4px
  toast-w: 380px
  avatar-xs: 24px
  avatar-sm: 38px
  avatar-md: 42px
  avatar-lg: 64px
  stat-min: 196px
  stat-h: 138px
  spark-h: 42px
  tile-h: 105px
  feature-h: 224px
  chart-h: 280px
  chart-h-compact: 200px
  template-w: 244px
  art-h: 138px
  ring-lg: 148px
  panel-min: 300px
  swatch: 32px
  hairline: 0.5px
  rule: 1px
  rule-thick: 2px
  rule-chart: 2.5px
  halo: 3px
  # icons
  icon-xs: 12px
  icon-sm: 14px
  icon-md: 16px
  icon-chrome: 17px
  icon-lg: 18px
  icon-xl: 20px
  icon-2xl: 32px
  # the app shell (2.3, Studio Origins): the sidebar from sidebar-at, its rail from tabbar-at; the floating top bar's pills; on phones the tab pill and the New circle; collection header; Home
  sidebar-w: 256px
  sidebar-rail-w: 76px
  sidebar-row-h: 38px
  sidebar-rail-item: "{spacing.s-9}"
  sidebar-inset: "{spacing.s-4}"
  brand-mark-sm: "{spacing.brand-mark}"
  workspace-mark: "{spacing.s-7}"
  topbar-h: "{spacing.s-11}"
  topbar-pill-h: "{spacing.nav-h}"
  topbar-pill-h-compact: "{spacing.target}"
  topbar-search-min: 440px
  topbar-search-min-md: 360px
  avatar-bar: "{spacing.s-8}"
  tabbar-h: "{spacing.s-11}"
  tab-w: 52px
  tab-h: "{spacing.s-9}"
  tab-fab: 60px
  tab-fab-sm: 52px
  collection-search-min: 160px
  home-hero-stats-w: 200px
  sidebar-at: 1100px
  tabbar-at: 768px
  collection-compact-at: 560px
  collection-tight-at: 400px
  # the editor workspace (2.2): its two floating panels and their thresholds; the canvas's device widths, the block chrome and the sample site's wide column
  editor-panel-w: "{spacing.region}"
  editor-panel-w-wide: 340px
  editor-side-w: 336px
  editor-sheet-at: 900px
  library-collapse-at: 1280px
  preview-phone-w: 390px
  # the vCard's contact card (Editor-vCard-Desktop): a narrower, taller phone, its photo
  preview-contact-w: 300px
  preview-contact-h: 600px
  contact-avatar: 88px
  preview-tablet-w: 768px
  preview-desktop-w: 1280px
  block-tool: 28px
  site-wide: 960px

components:
  page:                  { backgroundColor: "{colors.background}", textColor: "{colors.on-surface}", typography: "{typography.body-md}" }
  page-edge:             { backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  selection:             { backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  focus-ring:            { backgroundColor: "{colors.focus}", size: "{spacing.rule-thick}" }
  field-focus-border:    { backgroundColor: "{colors.focus-field}", size: "{spacing.hairline}" }
  field-focus-halo:      { backgroundColor: "{colors.focus-field-halo}", size: "{spacing.halo}" }
  divider:               { backgroundColor: "{colors.outline}", height: "{spacing.hairline}" }
  divider-soft:          { backgroundColor: "{colors.outline-soft}", height: "{spacing.hairline}" }
  separator-dot:         { backgroundColor: "{colors.on-surface-4}", size: "{spacing.dot-xs}" }
  marker:                { size: "{spacing.marker}", rounded: "{rounded.xs}", typography: "{typography.caption-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  accent-word:           { typography: "{typography.accent-italic}", textColor: "{colors.on-surface-3}" }
  kicker:                { typography: "{typography.caption-md}", textColor: "{colors.on-surface-3}" }
  kicker-dot:            { backgroundColor: "{colors.on-surface-3}", size: "{spacing.dot-sm}" }

  # glass material (fill, line and highlight; blur and saturation in the materials block)
  glass:                 { backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  glass-solid:           { backgroundColor: "{colors.glass-solid}", textColor: "{colors.on-surface}" }
  glass-rim:             { backgroundColor: "{colors.glass-line}", size: "{spacing.hairline}" }
  glass-highlight:       { backgroundColor: "{colors.glass-specular}", height: "{spacing.rule}" }

  # the floating toolbar and Portico's row, in Studio's pills
  toolbar:               { height: "{spacing.nav-h}", padding: "{spacing.nav-top} 0 0" }
  toolbar-compact:       { height: "{spacing.nav-h-compact}" }
  toolbar-pill:          { height: "{spacing.nav-h}", padding: "0 {spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  toolbar-pill-compact:  { height: "{spacing.nav-h-compact}" }
  brand-pill:            { size: "{spacing.nav-h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  nav-brand-mark:        { size: "{spacing.brand-mark}", rounded: "{rounded.full}", typography: "{typography.brand-mark}", backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}" }
  nav-brand-label:       { typography: "{typography.caption-md}", textColor: "{colors.on-surface}" }
  context-pill:          { height: "{spacing.nav-h}", padding: "0 {spacing.s-3}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-2}" }
  context-label:         { typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-2}" }
  doc-chip:              { height: "{spacing.control-h-sm}", padding: "0 {spacing.s-3}", rounded: "{rounded.full}", typography: "{typography.headline-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  doc-chip-hover:        { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  save-state:            { typography: "{typography.caption-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  save-state-failed:     { backgroundColor: "{colors.glass}", textColor: "{colors.error}" }
  status-dot:            { size: "{spacing.dot}", rounded: "{rounded.full}", backgroundColor: "{colors.success}" }
  status-dot-editing:    { backgroundColor: "{colors.warning}" }
  status-dot-draft:      { backgroundColor: "{colors.on-surface-3}" }
  status-dot-failed:     { backgroundColor: "{colors.error}" }
  nav-link:              { height: "{spacing.control-h}", padding: "0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-2}" }
  nav-link-hover:        { backgroundColor: "{colors.scrim}" }
  nav-link-current:      { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}", typography: "{typography.label-lg}" }
  nav-capsule:           { height: "{spacing.nav-h}", padding: "0 {spacing.s-1}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}" }
  nav-icon:              { size: "{spacing.control-h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  nav-icon-hover:        { backgroundColor: "{colors.surface-2}" }
  nav-icon-on:           { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  toolbar-icon:          { size: "{spacing.nav-h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  primary-glow-layer:    { backgroundColor: "{colors.primary-glow}" }
  toolbar-action:        { height: "{spacing.nav-h}", padding: "0 {spacing.s-5} 0 {spacing.s-4}", rounded: "{rounded.full}", typography: "{typography.label-lg}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  count-badge:           { height: "{spacing.s-4}", padding: "0 {spacing.s-1}", rounded: "{rounded.full}", typography: "{typography.count}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  search-field:          { height: "{spacing.control-h-sm}", width: "min(38vw, {spacing.search-w})", padding: "0 {spacing.s-3} 0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  search-field-focus:    { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  search-layer:          { width: "min(92vw, {spacing.modal-w})", padding: "{spacing.s-1h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  kbd:                   { height: "{spacing.control-xs}", padding: "0 {spacing.s-1h}", rounded: "{rounded.xs}", typography: "{typography.kbd}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  back:                  { size: "{spacing.nav-h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  fab:                   { size: "{spacing.fab}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  fab-primary:           { backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  dock:                  { height: "{spacing.fab}", padding: "0 {spacing.s-2}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  dock-item:             { height: "{spacing.row-h}", padding: "0 {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.caption-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  dock-item-current:     { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  nav-sheet-item:        { height: "{spacing.row-h}", padding: "0 {spacing.s-3}", rounded: "{rounded.sm}", typography: "{typography.label-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  nav-sheet-item-current: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}", typography: "{typography.label-lg}" }
  nav-sheet-descriptor:  { typography: "{typography.body-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  skip-link:             { padding: "{spacing.s-3} {spacing.s-5}", rounded: "{rounded.full}", typography: "{typography.label-lg}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }

  # page head and sections
  page-head:             { padding: "{spacing.s-6} {spacing.s-1} {spacing.s-2}", typography: "{typography.headline-lg}", textColor: "{colors.on-surface}" }
  page-lead:             { width: "{spacing.measure-narrow}", typography: "{typography.body-lg}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }
  page-kicker:           { typography: "{typography.caption-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-3}" }
  fact:                  { typography: "{typography.numeral-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  fact-label:            { typography: "{typography.caption-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-3}" }
  section-header:        { padding: "0 {spacing.s-1} {spacing.s-4}", typography: "{typography.headline-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  section-kicker:        { typography: "{typography.caption-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-3}" }
  caps-link:             { height: "{spacing.control-h-xs}", padding: "0 {spacing.s-3}", rounded: "{rounded.full}", typography: "{typography.caption-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  caps-link-hover:       { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }

  # buttons
  button:                { height: "{spacing.control-h}", padding: "0 {spacing.s-4} 0 {spacing.s-3}", rounded: "{rounded.full}", typography: "{typography.label-lg}" }
  button-primary:        { backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  button-primary-hover:  { backgroundColor: "{colors.primary-hover}", textColor: "{colors.on-primary}" }
  button-primary-active: { backgroundColor: "{colors.primary-active}", textColor: "{colors.on-primary}" }
  button-primary-disabled: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface-2}" }
  button-secondary:      { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  button-secondary-hover: { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  button-secondary-active: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  button-ghost:          { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  button-ghost-hover:    { backgroundColor: "{colors.scrim}" }
  button-ghost-active:   { backgroundColor: "{colors.scrim-strong}" }
  button-danger:         { backgroundColor: "{colors.error}", textColor: "{colors.on-error}" }
  button-sm:             { height: "{spacing.control-h-sm}", padding: "0 {spacing.s-3}", typography: "{typography.label-sm}" }
  button-lg:             { height: "{spacing.control-h-lg}", padding: "0 {spacing.s-5} 0 {spacing.s-4}" }
  button-icon:           { size: "{spacing.control-h-sm}", padding: 0px, rounded: "{rounded.full}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  button-icon-hover:     { backgroundColor: "{colors.surface-2}" }
  button-icon-sm:        { size: "{spacing.s-7}" }
  button-icon-on:        { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }

  # form controls: one input family
  field:                 { height: "{spacing.field-h}", padding: "0 {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.body-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  field-focus:           { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  field-disabled:        { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface-2}" }
  field-readonly:        { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  field-mono:            { typography: "{typography.code-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  field-placeholder:     { typography: "{typography.body-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  field-label:           { typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  field-hint:            { typography: "{typography.body-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  field-error:           { typography: "{typography.body-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.error}" }
  field-unit:            { typography: "{typography.caption-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  textarea:              { height: "{spacing.textarea-min}", padding: "{spacing.s-3} {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.body-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  input-pill:            { height: "{spacing.field-h-lg}", padding: "0 {spacing.s-2} 0 {spacing.s-4}", rounded: "{rounded.full}", typography: "{typography.mono-lg}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  input-pill-focus:      { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  input-pill-submit:     { height: "{spacing.s-8}", padding: "0 {spacing.s-4}", rounded: "{rounded.full}", typography: "{typography.label-lg}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  input-group:           { height: "{spacing.field-h}", padding: "0 {spacing.s-1}", rounded: "{rounded.md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  domain-picker:         { height: "{spacing.field-h}", padding: "0 {spacing.s-2h} 0 {spacing.s-2}", rounded: "{rounded.md}", typography: "{typography.mono-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  domain-globe:          { size: "{spacing.avatar-xs}", rounded: "{rounded.full}", backgroundColor: "{colors.primary-soft}", textColor: "{colors.on-primary-soft}" }
  select-trigger:        { height: "{spacing.field-h}", padding: "0 {spacing.s-3} 0 {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.body-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  select-menu:           { height: "{spacing.menu-max-h}", padding: "{spacing.s-1h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}" }
  select-option:         { height: "{spacing.row-h}", padding: "0 {spacing.s-3}", rounded: "{rounded.sm}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  select-option-active:  { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  select-option-selected: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  checkbox:              { size: "{spacing.control-xs}", rounded: "{rounded.xs}", backgroundColor: "{colors.surface}" }
  checkbox-checked:      { backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  radio:                 { size: "{spacing.control-xs}", rounded: "{rounded.full}", backgroundColor: "{colors.surface}" }
  radio-checked:         { backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  toggle-track:          { width: "{spacing.toggle-w}", height: "{spacing.toggle-h}", rounded: "{rounded.full}", backgroundColor: "{colors.surface-3}" }
  toggle-track-checked:  { backgroundColor: "{colors.primary}" }
  toggle-thumb:          { size: "{spacing.toggle-thumb}", rounded: "{rounded.full}", backgroundColor: "{colors.surface}" }
  range-track:           { height: "{spacing.s-1}", rounded: "{rounded.full}", backgroundColor: "{colors.surface-3}" }
  range-fill:            { height: "{spacing.s-1}", rounded: "{rounded.full}", backgroundColor: "{colors.primary-line}" }
  range-thumb:           { size: "{spacing.control-xs}", rounded: "{rounded.full}", backgroundColor: "{colors.surface}" }
  swatch:                { size: "{spacing.swatch}", rounded: "{rounded.full}" }
  segmented:             { height: "{spacing.control-h}", padding: "{spacing.track-inset}", rounded: "{rounded.md}", backgroundColor: "{colors.surface-2}" }
  segmented-item:        { height: "{spacing.s-7}", padding: "0 {spacing.s-3}", rounded: "{rounded.sm}", typography: "{typography.label-sm}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  segmented-item-hover:  { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  segmented-item-selected: { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}", typography: "{typography.label-sm}" }
  tablist:               { height: "{spacing.s-8}", padding: "{spacing.track-inset}", rounded: "{rounded.full}", backgroundColor: "{colors.surface-2}" }
  tab:                   { height: "{spacing.control-h-sm}", padding: "0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  tab-selected:          { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}", typography: "{typography.label-lg}" }
  calendar-day:          { size: "{spacing.day}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  calendar-day-in-range: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  calendar-day-selected: { backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}" }
  calendar-day-outside:  { backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }

  # layers
  menu:                  { width: "{spacing.menu-w}", padding: "{spacing.s-1h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  menu-sm:               { width: "{spacing.menu-w-sm}" }
  menu-header:           { padding: "{spacing.s-2h} {spacing.s-2h} {spacing.s-3}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  menu-header-email:     { typography: "{typography.mono-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  menu-label:            { padding: "{spacing.s-2} {spacing.s-3}", typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  menu-item:             { height: "{spacing.row-h}", padding: "0 {spacing.s-3}", rounded: "{rounded.sm}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  menu-item-hover:       { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  menu-item-danger:      { backgroundColor: "{colors.glass}", textColor: "{colors.error}" }
  menu-item-shortcut:    { typography: "{typography.kbd}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  menu-separator:        { backgroundColor: "{colors.outline}", height: "{spacing.hairline}" }
  account-menu:          { width: "{spacing.menu-w}", padding: "{spacing.s-1h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  plan-chip:             { height: "{spacing.s-5}", padding: "0 {spacing.s-2}", rounded: "{rounded.full}", typography: "{typography.caption-xs}", backgroundColor: "{colors.primary-soft}", textColor: "{colors.on-primary-soft}" }
  avatar:                { size: "{spacing.avatar-sm}", rounded: "{rounded.full}", typography: "{typography.avatar-initial}", backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}" }
  avatar-xs:             { size: "{spacing.avatar-xs}" }
  avatar-md:             { size: "{spacing.avatar-md}" }
  avatar-lg:             { size: "{spacing.avatar-lg}" }
  popover:               { width: "min(calc(100vw - 48px), {spacing.popover-w})", padding: "{spacing.s-1h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  popover-label:         { padding: "{spacing.s-2} {spacing.s-2h} {spacing.s-1h}", typography: "{typography.caption-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  tooltip:               { padding: "{spacing.s-1h} {spacing.s-2h}", rounded: "{rounded.xs}", typography: "{typography.label-sm}", backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}" }
  toast:                 { width: "min(92vw, {spacing.toast-w})", padding: "{spacing.s-2h} {spacing.s-4} {spacing.s-2h} {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  toast-icon-success:    { backgroundColor: "{colors.glass}", textColor: "{colors.on-success-surface}" }
  toast-icon-error:      { backgroundColor: "{colors.glass}", textColor: "{colors.error}" }
  modal:                 { width: "min(92vw, {spacing.modal-w})", padding: "{spacing.s-6}", rounded: "{rounded.xl}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  modal-sm:              { width: "min(92vw, {spacing.modal-w-sm})" }
  modal-lg:              { width: "min(92vw, {spacing.modal-w-lg})" }
  modal-title:           { typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  modal-context:         { typography: "{typography.body-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  modal-backdrop:        { backgroundColor: "{colors.overlay}" }
  sheet:                 { width: 100%, height: "min(72dvh, {spacing.sheet-max-h})", padding: "{spacing.s-2} {spacing.s-5} {spacing.s-6}", rounded: "{rounded.xl} {rounded.xl} {rounded.none} {rounded.none}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  sheet-grip:            { width: "{spacing.sheet-grip-w}", height: "{spacing.sheet-grip-h}", rounded: "{rounded.full}", backgroundColor: "{colors.outline-strong}" }
  panel:                 { width: "{spacing.region}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  panel-head:            { padding: "{spacing.s-3h} {spacing.s-3} {spacing.s-2h} {spacing.s-4}", typography: "{typography.headline-sm}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  panel-section:         { padding: "{spacing.s-3h} {spacing.s-4}" }
  panel-section-label:   { typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  object-head:           { padding: "{spacing.s-3} {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.headline-sm}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  object-head-type:      { typography: "{typography.caption-xs}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }

  # display: cards, tiles, rows, chips
  card:                  { padding: "{spacing.s-4}", rounded: "{rounded.card}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  card-feature:          { padding: "{spacing.s-6}", rounded: "{rounded.xl}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  card-title:            { typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  card-blurb:            { typography: "{typography.body-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  create-tile:           { height: "{spacing.tile-h}", padding: "{spacing.s-4}", rounded: "{rounded.lg}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  template-card:         { width: "{spacing.template-w}", rounded: "{rounded.lg}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  template-art:          { height: "{spacing.art-h}", backgroundColor: "{colors.background-edge}" }
  template-meta:         { typography: "{typography.caption-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  icon-well:             { size: "{spacing.icon-well}", rounded: "{rounded.md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  icon-well-link:        { backgroundColor: "{colors.kind-link-surface}", textColor: "{colors.on-kind-link-surface}" }
  icon-well-biopage:     { backgroundColor: "{colors.kind-biopage-surface}", textColor: "{colors.on-kind-biopage-surface}" }
  icon-well-qr:          { backgroundColor: "{colors.kind-qr-surface}", textColor: "{colors.on-kind-qr-surface}" }
  icon-well-vcard:       { backgroundColor: "{colors.kind-vcard-surface}", textColor: "{colors.on-kind-vcard-surface}" }
  icon-well-event:       { backgroundColor: "{colors.kind-event-surface}", textColor: "{colors.on-kind-event-surface}" }
  icon-well-file:        { backgroundColor: "{colors.kind-file-surface}", textColor: "{colors.on-kind-file-surface}" }
  icon-well-static:      { backgroundColor: "{colors.kind-static-surface}", textColor: "{colors.on-kind-static-surface}" }
  icon-well-splash:      { backgroundColor: "{colors.kind-splash-surface}", textColor: "{colors.on-kind-splash-surface}" }
  icon-well-payment:     { backgroundColor: "{colors.kind-payment-surface}", textColor: "{colors.on-kind-payment-surface}" }
  stat-tile:             { height: "{spacing.stat-h}", padding: "{spacing.s-5} {spacing.s-5} {spacing.s-3h}", rounded: "{rounded.lg}", typography: "{typography.numeral-lg}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  stat-tile-featured:    { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  stat-label:            { typography: "{typography.caption-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  stat-sub:              { typography: "{typography.body-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  delta-pill:            { height: "{spacing.s-4}", padding: "0 {spacing.s-1h}", rounded: "{rounded.xs}", typography: "{typography.delta}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  delta-pill-up:         { backgroundColor: "{colors.success-surface}", textColor: "{colors.on-success-surface}" }
  delta-pill-down:       { backgroundColor: "{colors.error-surface}", textColor: "{colors.on-error-surface}" }
  sparkline:             { height: "{spacing.spark-h}", backgroundColor: "{colors.chart-area}" }
  sparkline-line:        { height: "{spacing.rule-thick}", backgroundColor: "{colors.primary-line}" }
  list-row:              { height: "{spacing.row-h-lg}", padding: "{spacing.s-3} {spacing.s-3h} {spacing.s-3} {spacing.s-4}", rounded: "{rounded.md}", typography: "{typography.row-title}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  list-row-thumb:        { size: "{spacing.thumb-row}", rounded: "{rounded.sm}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  list-row-thumb-link:   { backgroundColor: "{colors.kind-link-surface}", textColor: "{colors.on-kind-link-surface}" }
  list-row-thumb-biopage: { backgroundColor: "{colors.kind-biopage-surface}", textColor: "{colors.on-kind-biopage-surface}" }
  list-row-thumb-qr:     { backgroundColor: "{colors.kind-qr-surface}", textColor: "{colors.on-kind-qr-surface}" }
  list-row-thumb-vcard:  { backgroundColor: "{colors.kind-vcard-surface}", textColor: "{colors.on-kind-vcard-surface}" }
  list-row-thumb-event:  { backgroundColor: "{colors.kind-event-surface}", textColor: "{colors.on-kind-event-surface}" }
  list-row-thumb-file:   { backgroundColor: "{colors.kind-file-surface}", textColor: "{colors.on-kind-file-surface}" }
  list-row-thumb-static: { backgroundColor: "{colors.kind-static-surface}", textColor: "{colors.on-kind-static-surface}" }
  list-row-thumb-splash: { backgroundColor: "{colors.kind-splash-surface}", textColor: "{colors.on-kind-splash-surface}" }
  list-row-thumb-payment: { backgroundColor: "{colors.kind-payment-surface}", textColor: "{colors.on-kind-payment-surface}" }
  list-row-meta:         { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  list-row-host:         { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  list-row-value:        { typography: "{typography.row-value}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  list-row-unit:         { typography: "{typography.body-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  status-live:           { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  status-paused:         { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  status-draft:          { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  status-failed:         { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-error-surface}" }
  kind-badge:            { height: "{spacing.badge-h}", padding: "0 {spacing.s-2} 0 {spacing.s-1h}", rounded: "{rounded.full}", typography: "{typography.mono-sm}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  kind-badge-link:        { backgroundColor: "{colors.kind-link-surface}", textColor: "{colors.on-kind-link-surface}" }
  kind-badge-biopage:     { backgroundColor: "{colors.kind-biopage-surface}", textColor: "{colors.on-kind-biopage-surface}" }
  kind-badge-qr:          { backgroundColor: "{colors.kind-qr-surface}", textColor: "{colors.on-kind-qr-surface}" }
  kind-badge-vcard:       { backgroundColor: "{colors.kind-vcard-surface}", textColor: "{colors.on-kind-vcard-surface}" }
  kind-badge-event:       { backgroundColor: "{colors.kind-event-surface}", textColor: "{colors.on-kind-event-surface}" }
  kind-badge-file:        { backgroundColor: "{colors.kind-file-surface}", textColor: "{colors.on-kind-file-surface}" }
  kind-badge-static:      { backgroundColor: "{colors.kind-static-surface}", textColor: "{colors.on-kind-static-surface}" }
  kind-badge-splash:      { backgroundColor: "{colors.kind-splash-surface}", textColor: "{colors.on-kind-splash-surface}" }
  kind-badge-payment:     { backgroundColor: "{colors.kind-payment-surface}", textColor: "{colors.on-kind-payment-surface}" }
  kind-chip:             { height: "{spacing.s-7}", padding: "0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }
  kind-chip-hover:       { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  kind-chip-selected:    { backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}", typography: "{typography.label-md}" }
  kind-dot-link:         { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-link}" }
  kind-dot-biopage:      { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-biopage}" }
  kind-dot-qr:           { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-qr}" }
  kind-dot-vcard:        { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-vcard}" }
  kind-dot-event:        { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-event}" }
  kind-dot-file:         { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-file}" }
  kind-dot-static:       { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-static}" }
  kind-dot-splash:       { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-splash}" }
  kind-dot-payment:      { size: "{spacing.dot-kind}", rounded: "{rounded.full}", backgroundColor: "{colors.kind-payment}" }
  chip:                  { height: "{spacing.control-h-xs}", padding: "0 {spacing.s-3}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  chip-hover:            { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  chip-selected:         { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}", typography: "{typography.label-lg}" }
  badge:                 { height: "{spacing.s-5}", padding: "0 {spacing.s-2}", rounded: "{rounded.full}", typography: "{typography.caption-xs}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  callout:               { padding: "{spacing.s-3h} {spacing.s-4}", rounded: "{rounded.lg}", typography: "{typography.body-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  callout-progress:      { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  callout-error:         { backgroundColor: "{colors.error-surface}", textColor: "{colors.on-error-surface}" }
  callout-success:       { backgroundColor: "{colors.success-surface}", textColor: "{colors.on-success-surface}" }
  callout-warning:       { backgroundColor: "{colors.warning-surface}", textColor: "{colors.on-warning-surface}" }
  callout-info:          { backgroundColor: "{colors.info-surface}", textColor: "{colors.info}" }
  table:                 { rounded: "{rounded.lg}", typography: "{typography.body-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  table-header:          { padding: "{spacing.s-2h} {spacing.s-3h}", typography: "{typography.caption-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  table-cell:            { padding: "{spacing.s-2h} {spacing.s-3h}" }
  table-row-hover:       { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  rank-bar:              { height: "{spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.surface-2}" }
  rank-bar-fill:         { height: "{spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.data}" }
  scroll-region:         { rounded: "{rounded.lg}" }

  # editor canvas
  canvas:                { backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  canvas-selection:      { backgroundColor: "{colors.focus}", size: "{spacing.selection-w}" }
  canvas-handle:         { size: "{spacing.s-2h}", rounded: "{rounded.full}", backgroundColor: "{colors.surface}" }

  # feedback
  skeleton:              { rounded: "{rounded.sm}", backgroundColor: "{colors.surface-3}" }
  spinner:               { size: "{spacing.icon-md}" }
  progress-track:        { height: "{spacing.s-1}", rounded: "{rounded.full}", backgroundColor: "{colors.surface-3}" }
  progress-fill:         { height: "{spacing.s-1}", rounded: "{rounded.full}", backgroundColor: "{colors.primary-line}" }
  empty-state:           { width: "{spacing.measure-narrow}", padding: "{spacing.s-9} {spacing.s-5}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }
  empty-state-title:     { typography: "{typography.headline-sm}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }

  # the app shell (2.3, Studio Origins): the flush sidebar (brand, New, labelled sections, the workspace switcher in its foot), its rail; the floating top bar's glass pills; on phones the tab pill and the New circle; the New sheet
  sidebar:               { width: "{spacing.sidebar-w}", padding: "{spacing.sidebar-inset} {spacing.s-3h}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  sidebar-rail:          { width: "{spacing.sidebar-rail-w}", padding: "{spacing.s-3h} {spacing.s-2h}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  sidebar-brand:         { height: "{spacing.target}", padding: "0 {spacing.s-2}", typography: "{typography.brand-wordmark}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  sidebar-logo:          { height: "{spacing.s-6}" }
  sidebar-item:          { height: "{spacing.sidebar-row-h}", padding: "0 {spacing.s-2h}", rounded: "{rounded.sm}", typography: "{typography.label-md}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  sidebar-item-hover:    { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  sidebar-item-current:  { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}", typography: "{typography.label-md}" }
  sidebar-marker:        { size: "{spacing.dot}", rounded: "{rounded.full}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  sidebar-section-title: { padding: "{spacing.s-3h} {spacing.s-3} {spacing.s-1h}", typography: "{typography.caption-xs}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  sidebar-count:         { height: "{spacing.control-xs}", padding: "0 {spacing.s-1h}", rounded: "{rounded.full}", typography: "{typography.mono-sm}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  sidebar-count-current: { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  sidebar-new:           { height: "{spacing.s-8}", padding: "0 {spacing.s-4}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  workspace-switcher:    { height: "{spacing.s-10}", padding: "{spacing.s-2} {spacing.s-2h}", rounded: "{rounded.sm}", typography: "{typography.label-md}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  workspace-switcher-detail: { typography: "{typography.mono-sm}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  workspace-avatar:      { size: "{spacing.workspace-mark}", rounded: "{rounded.sm}", typography: "{typography.workspace-initial}", backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}" }
  topbar:                { height: "{spacing.topbar-h}", padding: "{spacing.nav-top} {spacing.chrome-inset} 0" }
  topbar-pill:           { height: "{spacing.topbar-pill-h}", padding: "0 {spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  topbar-page:           { typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  topbar-search:         { height: "{spacing.topbar-pill-h}", width: "{spacing.topbar-search-min}", padding: "0 {spacing.s-1h} 0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  topbar-action:         { size: "{spacing.control-h-sm}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  tabbar:                { padding: "{spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  tab-item:              { width: "{spacing.tab-w}", height: "{spacing.tab-h}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  tab-item-current:      { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}", typography: "{typography.label-sm}" }
  tab-fab:               { size: "{spacing.tab-fab}", rounded: "{rounded.full}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }
  create-menu:           { width: "min(92vw, {spacing.modal-w-xl})", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-feature}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  new-sheet:             { width: "min(92vw, {spacing.modal-w-lg})", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  kind-tile:             { height: "{spacing.tile-h}", padding: "{spacing.s-5}", rounded: "{rounded.card}", typography: "{typography.tile-title}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  kind-tile-blurb:       { typography: "{typography.body-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }

  # Home (the prototype's): hero and its stats, the composer card, the library's stat cards, resource rows, looks
  home-hero:             { padding: "{spacing.s-6} 0 0", typography: "{typography.headline-display}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  home-hero-compact:     { typography: "{typography.headline-lg}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  home-hero-lead:        { width: "{spacing.measure-narrow}", typography: "{typography.body-lg}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }
  hero-stats:            { width: "{spacing.home-hero-stats-w}", typography: "{typography.numeral-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  hero-stat-label:       { typography: "{typography.caption-xs}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-3}" }
  hero-stat-card:        { padding: "{spacing.s-3}", rounded: "{rounded.md}", typography: "{typography.numeral-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  composer:              { padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-feature}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  stat-card:             { height: "{spacing.stat-h}", padding: "{spacing.s-4} {spacing.s-4h} 0", rounded: "{rounded.lg}", typography: "{typography.numeral-stat}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  stat-card-featured:    { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  resource-row:          { height: "{spacing.row-h-lg}", padding: "{spacing.s-3} {spacing.s-3h}", rounded: "{rounded.lg}", typography: "{typography.row-title}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  resource-row-compact:  { height: "{spacing.field-h-lg}", padding: "{spacing.s-2h} {spacing.s-3}", rounded: "{rounded.md}", typography: "{typography.label-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  look-card:             { width: "{spacing.template-w}", rounded: "{rounded.lg}", typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }

  # collections: one header row, never wrapped
  collection-header:     { height: "{spacing.control-h-lg}", typography: "{typography.headline-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  collection-title:      { typography: "{typography.headline-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  filter-button:         { height: "{spacing.control-h}", padding: "0 {spacing.s-3h} 0 {spacing.s-3}", rounded: "{rounded.full}", typography: "{typography.label-lg}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  results-line:          { typography: "{typography.body-sm}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }

  # the editor workspace: one for all nine kinds (editor bar pills, library panel, canvas, inspector, narrow sheet bar)
  editor-workspace:      { backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  editor-bar:            { height: "{spacing.topbar-h}", padding: "{spacing.nav-top} {spacing.chrome-inset} 0" }
  editor-pill:           { height: "{spacing.nav-h}", padding: "0 {spacing.s-3h} 0 {spacing.s-4}", rounded: "{rounded.full}", typography: "{typography.headline-xs}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  editor-pill-kind:      { typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  library-panel:         { width: "{spacing.editor-panel-w}", padding: "{spacing.s-3h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  library-tile:          { height: "{spacing.s-12}", padding: "{spacing.s-3}", rounded: "{rounded.md}", typography: "{typography.label-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  library-tile-current:  { backgroundColor: "{colors.primary-soft}", textColor: "{colors.on-primary-soft}", typography: "{typography.label-lg}" }
  editor-canvas:         { typography: "{typography.caption-md}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  inspector-panel:       { width: "{spacing.editor-panel-w-wide}", padding: "{spacing.s-3h}", rounded: "{rounded.lg}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  inspector-section:     { padding: "{spacing.s-4} {spacing.s-1}", typography: "{typography.caption-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  more-options:          { height: "{spacing.row-h}", padding: "0 {spacing.s-1}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface}" }
  editor-sheetbar:       { height: "{spacing.fab}", padding: "0 {spacing.s-1h}", rounded: "{rounded.full}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-2}" }
  editor-sheetbar-item:  { height: "{spacing.row-h}", padding: "0 {spacing.s-3h}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-2}" }
  editor-sheetbar-item-current: { backgroundColor: "{colors.surface-3}", textColor: "{colors.on-surface}", typography: "{typography.label-lg}" }
  # the walkthrough's workspace (EditorWorkspace variant "panels", Editor-Matrix): two equal panels, white groups of rows and fields, a two-way switch on phones
  editor-panel:          { width: "{spacing.editor-side-w}", padding: "{spacing.s-3}", rounded: "{rounded.xl}", typography: "{typography.panel-title}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface}" }
  panel-group:           { padding: "0 {spacing.s-2}", typography: "{typography.panel-meta}", backgroundColor: "{colors.background-edge}", textColor: "{colors.on-surface-2}" }
  panel-row:             { height: "{spacing.nav-h}", padding: "0 {spacing.s-3h}", typography: "{typography.label-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  panel-row-value:       { typography: "{typography.panel-value}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  editor-switch:         { height: "{spacing.target}", padding: "0 {spacing.s-4h}", rounded: "{rounded.full}", typography: "{typography.label-md}", backgroundColor: "{colors.glass}", textColor: "{colors.on-surface-3}" }
  editor-switch-current: { backgroundColor: "{colors.on-surface}", textColor: "{colors.background}" }

  # the canvas previews: what the visitor gets, drawn on the editor canvas (content, never glass)
  address-field:         { height: "{spacing.field-h}", padding: "0 {spacing.s-1} 0 {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.mono-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  share-card:            { padding: "{spacing.s-4}", rounded: "{rounded.lg}", typography: "{typography.body-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  contact-card:          { width: "{spacing.preview-phone-w}", rounded: "{rounded.xl}", typography: "{typography.headline-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  event-card:            { width: "{spacing.preview-phone-w}", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  file-card:             { width: "{spacing.preview-phone-w}", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  splash-preview:        { width: "{spacing.preview-phone-w}", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  checkout-card:         { width: "{spacing.preview-phone-w}", padding: "{spacing.s-6}", rounded: "{rounded.xl}", typography: "{typography.headline-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  static-frame:          { rounded: "{rounded.md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  preview-meta:          { typography: "{typography.caption-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }

  # the Bio page canvas: block toolbar, handle, chip, drop indicator, palette item
  block-toolbar:         { height: "{spacing.control-h-sm}", padding: "{spacing.track-inset}", rounded: "{rounded.full}", backgroundColor: "{colors.glass-solid}", textColor: "{colors.on-surface}" }
  block-handle:          { size: "{spacing.block-tool}", rounded: "{rounded.full}", backgroundColor: "{colors.glass-solid}", textColor: "{colors.on-surface-3}" }
  drop-indicator:        { height: "{spacing.rule-thick}", rounded: "{rounded.full}", backgroundColor: "{colors.primary-line}" }
  palette-item:          { height: "{spacing.row-h}", padding: "{spacing.s-3}", rounded: "{rounded.md}", typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  block-chip:            { height: "{spacing.s-5}", padding: "0 {spacing.s-2}", rounded: "{rounded.full}", typography: "{typography.caption-xs}", backgroundColor: "{colors.primary}", textColor: "{colors.on-primary}" }

  # the app frame behind the top bar
  app-shell:             { backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }

  # code
  code-block:            { padding: "{spacing.s-4} {spacing.s-5}", rounded: "{rounded.lg}", typography: "{typography.code-md}", backgroundColor: "{colors.code-surface}", textColor: "{colors.code-plain}" }
  code-editor:           { height: "{spacing.textarea-min}", padding: "{spacing.s-3} {spacing.s-3h}", rounded: "{rounded.md}", typography: "{typography.code-md}", backgroundColor: "{colors.code-surface}", textColor: "{colors.code-plain}" }
  code-token-punctuation: { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-punctuation}" }
  code-token-comment:    { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-comment}" }
  code-token-keyword:    { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-keyword}" }
  code-token-string:     { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-string}" }
  code-token-number:     { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-number}" }
  code-token-function:   { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-function}" }
  code-token-attr:       { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-attr}" }
  code-token-tag:        { backgroundColor: "{colors.code-surface}", textColor: "{colors.code-tag}" }
  code-line-added:       { backgroundColor: "{colors.code-added}", textColor: "{colors.code-plain}" }
  code-line-removed:     { backgroundColor: "{colors.code-removed}", textColor: "{colors.code-plain}" }
  code-line-highlight:   { backgroundColor: "{colors.code-highlight}", textColor: "{colors.code-plain}" }

  # data visualisation
  chart:                 { typography: "{typography.mono-xs}", backgroundColor: "{colors.surface}", textColor: "{colors.chart-label}" }
  chart-caption:         { typography: "{typography.body-md}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  chart-gridline:        { height: "{spacing.hairline}", backgroundColor: "{colors.chart-grid}" }
  chart-axis:            { height: "{spacing.hairline}", backgroundColor: "{colors.chart-axis}" }
  chart-track:           { backgroundColor: "{colors.chart-track}" }
  chart-tooltip:         { padding: "{spacing.s-2h} {spacing.s-3}", rounded: "{rounded.md}", typography: "{typography.label-sm}", backgroundColor: "{colors.inverse-surface}", textColor: "{colors.on-inverse-surface}" }
  legend-item:           { typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  legend-swatch:         { size: "{spacing.s-2h}", rounded: "{rounded.xs}" }
  chart-series-1:        { backgroundColor: "{colors.series-1}" }
  chart-series-2:        { backgroundColor: "{colors.series-2}" }
  chart-series-3:        { backgroundColor: "{colors.series-3}" }
  chart-series-4:        { backgroundColor: "{colors.series-4}" }
  chart-series-5:        { backgroundColor: "{colors.series-5}" }
  chart-series-6:        { backgroundColor: "{colors.series-6}" }
  chart-series-7:        { backgroundColor: "{colors.series-7}" }
  chart-series-8:        { backgroundColor: "{colors.series-8}" }
  # codes: the swatches a QR code is drawn from (content, identical in both themes)
  qr-swatch-ink:            { backgroundColor: "{colors.qr-ink}" }
  qr-swatch-leaf:           { backgroundColor: "{colors.qr-leaf}" }
  qr-swatch-blue:           { backgroundColor: "{colors.qr-blue}" }
  qr-swatch-violet:         { backgroundColor: "{colors.qr-violet}" }
  qr-swatch-ember:          { backgroundColor: "{colors.qr-ember}" }
  qr-swatch-teal:           { backgroundColor: "{colors.qr-teal}" }
  qr-swatch-lime:           { backgroundColor: "{colors.qr-lime}" }
  qr-swatch-paper:          { backgroundColor: "{colors.qr-paper}" }
  qr-swatch-mist:           { backgroundColor: "{colors.qr-mist}" }
  qr-swatch-cream:          { backgroundColor: "{colors.qr-cream}" }
  qr-swatch-night:          { backgroundColor: "{colors.qr-night}" }
  # inbox (the Inbox boards): a day's group of notifications and one notification
  notification-group:       { padding: "{spacing.s-1h}", rounded: "{rounded.card}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  notification-group-title: { typography: "{typography.caption-md}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-3}" }
  notification-group-count: { padding: "{spacing.s-0} {spacing.s-1h}", rounded: "{rounded.full}", typography: "{typography.caption-md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  notification-group-action: { height: "{spacing.marker}", padding: "0 {spacing.s-2h}", rounded: "{rounded.full}", typography: "{typography.label-sm}", backgroundColor: "{colors.background}", textColor: "{colors.on-surface-2}" }
  notification-group-action-hover: { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  notification-group-more:  { height: "{spacing.s-8}", rounded: "{rounded.md}", typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  notification-group-more-hover: { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  notification-row:         { padding: "{spacing.s-3h}", rounded: "{rounded.lg}", typography: "{typography.row-title}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface}" }
  notification-row-hover:   { backgroundColor: "{colors.background}", textColor: "{colors.on-surface}" }
  notification-row-selected: { backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface}" }
  notification-row-label:   { typography: "{typography.label-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  notification-row-label-unread: { backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  notification-row-time:    { typography: "{typography.mono-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-3}" }
  notification-row-body:    { typography: "{typography.body-sm}", backgroundColor: "{colors.surface}", textColor: "{colors.on-surface-2}" }
  notification-row-icon:    { size: "{spacing.s-8}", rounded: "{rounded.md}", backgroundColor: "{colors.surface-2}", textColor: "{colors.on-surface-2}" }
  notification-row-icon-error: { backgroundColor: "{colors.error-surface}", textColor: "{colors.on-error-surface}" }
  notification-row-icon-warning: { backgroundColor: "{colors.warning-surface}", textColor: "{colors.on-warning-surface}" }
  notification-row-icon-success: { backgroundColor: "{colors.success-surface}", textColor: "{colors.on-success-surface}" }
  notification-row-icon-info: { backgroundColor: "{colors.info-surface}", textColor: "{colors.info}" }
  notification-row-icon-violet: { backgroundColor: "{colors.kind-biopage-surface}", textColor: "{colors.on-kind-biopage-surface}" }
  notification-row-dot:     { size: "{spacing.dot}", rounded: "{rounded.full}", backgroundColor: "{colors.success}" }
---

# Studio

## Overview

Studio is the design system for a creator tool: short links, QR codes, small sites and vCards, and the analytics behind them. It should feel calm, precise and premium, closer to a well-set magazine than a dashboard.

Seven theses decide everything else:

- **Floating glass over an editorial page.** The page is a quiet, cool-neutral field. Chrome (the phone's bars, the tab bar, the editor bar and its panels, menus, popovers, toasts) floats above it as glass. Content never becomes glass. The app's sidebar is not glass and does not float: it is the quiet start edge of the window.
- **One lime accent.** The lime fill marks the one action that matters on a view; checked controls and count badges share it in shapes that cannot be mistaken for it. Otherwise lime appears only as a line or a tint with a job: the focus ring, the link kind, progress, the plan tier and the first data series.
- **Two-tone headlines.** Bounded, wide and geometric, carries every headline and every large number. One key word per headline is set in Instrument Serif italic in a quieter ink: "Pick up where you *left off.*"
- **Grotesk captions.** Space Grotesk, small, uppercase and widely tracked, carries kickers, labels, metadata and status. URLs and slugs are mono in sentence case.
- **Hairlines, not boxes.** Edges are 0.5 px. Flat things are flat; only floating things cast a shadow.
- **Pills for every control.** Buttons, fields, chips, segmented tracks, toolbar pills and toasts are full capsules. Icon-only controls are true circles.
- **Measure the space, not the device.** Every structural decision resolves from the width of a container, and every threshold is derived and written down.

### How to read this file

This file follows the [DESIGN.md format](https://github.com/google-labs-code/design.md) and lints clean with `npx @google/design.md lint` in both themes.

- **The frontmatter is normative.** It carries every value the format can express. A reference such as `{colors.surface}` resolves at build time.
- **Extension blocks carry the rest.** Fenced blocks tagged `yaml-extension` hold the dark theme and its materials, aliases, fluid type and uppercase roles, regions and shells, primitives, density and environment, elevation, z-index and materials, motion, artwork and its labels, and component borders. They are machine-read and normative. Each top-level key appears in exactly one block. No example uses a plain `yaml` fence, because the format reads those as tokens.
- **Prose explains how to apply values.** It never introduces a value a build needs.
- **CSS snippets** use the names the build emits: `--color-*`, `--spacing-*`, `--rounded-*`, `--type-<role>-*`, `--elevation-*`, `--motion-*`, `--material-<name>-<prop>` and `--component-<key>-*`, plus two values the build computes from the viewport: `--gutter` and `--band`.
- **Swift names** follow one rule, given in [Platform mapping](#platform-mapping).

### Glossary

| Term | Means |
|---|---|
| **Token** | A named value in the frontmatter or an extension block. The only legal source of a visual value |
| **Role** | A token named for its job (`surface-2`, `outline-strong`), never for its appearance |
| **Surface** | A colour role for a background plane. Not a screen |
| **View** | One screen with one job: Home, Analytics, a list, an editor |
| **Frame** | The shared maximum width (`workspace-max`) and gutter used by the toolbar, page content and footer |
| **Chrome** | Everything that floats over content: the top bar's pills, the tab pill, the New circle, the editor bar and its library and inspector panels, the sheet bar, the site shell's pills, menus, popovers, toasts, the block toolbar |
| **Sidebar** | The product's navigation from `sidebar-at`: the workspace switcher (and the account), search and New, the sections of destinations, its foot; a rail of icons on tablets and when collapsed |
| **Top bar** | The phone's bar: the workspace avatar, the page's title, search; with the floating tab bar below |
| **Workspace switcher** | The sidebar's head and the phone bar's avatar: the workspace you are in, and the menu of workspaces, the account, the theme and Sign out |
| **Site shell** | Portico's floating row, menu sheet and circles; used by the public site and the documentation only |
| **Resource** | One thing a creator makes, of one of nine kinds (Kinds). The collection is Resources |
| **Editor workspace** | The one full-window editor for every kind: editor bar, library panel, canvas, inspector |
| **Canvas** | The editor workspace's centre: the live thing the visitor gets, on a dotted field |
| **Collection header** | The one-row header of a list: title and count, search, Filter, New |
| **Glass** | The material of chrome: a translucent fill, blur and saturation, a hairline rim and a specular top highlight |
| **Pill** | A full-radius capsule. In the toolbar, one island of chrome |
| **Kind** | One of Studio's nine resource types (Link · Page · QR · vCard · Event · File · Site · Splash · Pay), each with its own hue and glyph |
| **Kicker** | The mono caption above a headline |
| **Accent word** | The one serif-italic word inside a headline |
| **Disclosure level** | L1 glance (title, status), L2 scan (a few details and the primary action), L3 full detail |
| **Region** | One of seven structural slots: `banner`, `navigation`, `toolbar`, `content`, `panel`, `inspector`, `footer` |
| **Shell** | A named set of regions. Six exist; a view picks one |
| **Primitive** | A layout component that arranges children and does nothing else |
| **Threshold** | A container width at which a region or component changes representation. Each one is derived |
| **Hit area** | The region that accepts pointer or touch. Always at least `target` (44 px) |

### Audience

| Who | What they need |
|---|---|
| **Creators**, often on a phone | Making a link or code in seconds, a clear state for everything they publish, no layout shift |
| **Product engineers** (web and Apple) | Complete tokens, named states, keyboard contracts and one component vocabulary on both platforms |
| **AI agents** generating Studio views from this file alone | Machine-readable values, one name per concept, rules rather than examples |
| **Assistive-technology users** | AA contrast in both themes, visible focus, full keyboard operation, nothing carried by colour alone |

Assumed web environment: evergreen browsers with `oklch()`, custom properties, container queries, `:focus-visible`, `:has()`, `dvh`, `backdrop-filter`, `prefers-reduced-motion`, `prefers-reduced-transparency`, `prefers-contrast` and `forced-colors`. Nothing requires a runtime. Apple platforms are covered in [Apple platforms](#apple-platforms).

**Test widths.** Every view and component is checked at 320, 390, 600, 768, 1024, 1280, 1440 and 1920 px, plus a 360 px panel inside a wide window, in both themes and both densities.

## Colors

The palette is OKLCH: a cool-neutral ramp at hue 270 with chroma at most 0.012, one lime hue (138–142) for the product, four status hues, one data ink and nine kind hues (one per resource kind, from the walkthrough's Foundations board). The dark theme is a lightness inversion with lime and the kind hues raised to stay luminous on carbon.

### Roles

| Role | Use | Never use for |
|---|---|---|
| `background` | The page field of every view | Cards, inputs |
| `background-edge` | The deeper field behind editor canvases and template art | The page field of a working view |
| `surface` | Cards, rows, stat tiles, dialogs, sheets | The page field |
| `surface-2` | Inset fields, hover washes, segmented and tab tracks, kind badges, `kbd` | Anything that should read as raised |
| `surface-3` | The current and selected wash; tracks, disabled fills, skeletons, avatar fallback | Text backgrounds in prose |
| `inverse-surface` / `on-inverse-surface` | The brand mark, QR thumbs, tooltips, the selected calendar day | Buttons |
| `on-surface` | Titles, values, body text, meaningful icons | Decoration |
| `on-surface-2` | Secondary copy, inactive navigation, lead paragraphs | Text at 12 px or smaller on `surface-3` |
| `on-surface-3` | Mono captions, placeholders, the accent word, hints, carets | Anything the reader must act on |
| `on-surface-4` | Marks that carry no information: dot separators | Text, icons, carets, borders |
| `outline` | Structural hairlines: cards, rows, dividers, wells | The boundary of a control |
| `outline-soft` | Rules inside a table | Any boundary |
| `outline-strong` | The boundary of every control | Card edges |
| `primary` / `on-primary` | The primary action, checked controls, count badges, text selection | Current location, selected items, tooltips |
| `primary-line` | The lime line: range and progress fills, the featured stat's edge, the canvas drop indicator, the primary button's rim | Text; the focus ring (that is `focus`, a deeper lime that clears 3:1 on every field) |
| `primary-soft` / `on-primary-soft` | The plan chip, the domain globe, the current library tile | A second accent; a kind |
| `primary-glow` | The glow under a primary action that floats in chrome | Anything in the content layer |
| `focus` / `focus-field` / `focus-field-halo` | The 2 px ring; a focused field's border and 3 px halo | Anything else |
| `scrim` / `scrim-strong` | Hover and pressed washes on bare controls | Backdrops |
| `overlay` | The backdrop behind dialogs and sheets | Hover |
| `glass` / `glass-line` / `glass-solid` / `glass-specular` | The chrome material: fill, rim, opaque fallback, highlight | Content |
| `error` `success` `warning` `info` and `*-surface` | Status hues: dots, icons, fills, the board's swatches; the tints behind callouts and delta pills | Categories, decoration; status words (use the ink) |
| `on-error-surface` `on-success-surface` `on-warning-surface` | Status words and deltas: the ink of a status hue, ≥ 4.5:1 on its surface and on `surface` | Fills |
| `kind-<kind>`, `kind-<kind>-surface`, `on-kind-<kind>-surface` | Each kind's hue (dots, filled glyphs, chips), its tint (thumbs, wells, tiles) and the ink on that tint | Status; projects, domains or anything that is not one of the nine kinds |
| `data` | The single-series ink: one-series charts, sparklines, meters and rank bars | Text; a series among several (use `series-*`) |
| `series-1…8`, `chart-*` | Data series and chart furniture | Anything that is not a chart |
| `code-*` | Code: one surface, nine ink roles and three line tints (Code) | Anything that is not code |
| `qr-*` | The inks and papers offered for a QR code, and the preview's paper: content that is printed, identical in both themes | Chrome, text, status |

### Four jobs

Every colour in the interface does one of four jobs. Greys are structure, not colour.

| Job | Carries | Studio roles |
|---|---|---|
| **Emphasis** | The primary action, and the focus ring that says where the keyboard is | `primary`, `on-primary`, `primary-glow`, `focus` |
| **Status** | Live, paused, draft, failed; deltas; callouts | `success`, `warning`, `error`, `info` and their surfaces |
| **Category** | The nine kinds, everywhere a kind appears; the plan tier in the account menu | `kind-*`, `primary-soft` |
| **Expression** | Template and empty-state artwork | The artwork palette, never on controls |

### Rules that are easy to get wrong

**One lime fill per view.** The primary action is the only lime capsule with a label. Checked checkboxes, radios and toggles, and the 16 px count badge, share the fill; they are boxes, tracks and numerals, never labelled capsules, so they cannot be mistaken for it. Current navigation, selected tabs, segmented items, chips and options take the `surface-3` or `surface` wash and weight 600, never lime. A toggled toolbar icon takes `surface-3`, not lime.

**The control boundary is `outline-strong`.** `outline` measures 1.44:1 against `surface` and identifies no control. Every field, chip, segmented track, toggle, checkbox, secondary button and caps link draws its 0.5 px edge in `outline-strong`, at least 3.21:1 everywhere. Cards, rows and wells keep `outline`. **Exception, by the owner's walkthrough (2026-12-01):** a text field, select, input group and secondary button sit on `surface` with an `outline` edge, as the boards draw them; they are identified by their fill, shape, label and placeholder rather than by the edge, and under increased contrast the edge returns to `outline-strong`. Chips, segmented tracks, toggles and checkboxes keep `outline-strong`.

**Lime text is never thin.** `primary-line` clears 3:1 for rings, dots and fills but not 4.5:1 for text. Lime text uses `on-primary-soft` on `primary-soft`.

**Text on lime is ink.** `on-primary` is a deep green ink, never white.

**Status words are ink.** A status hue (`success`, `warning`, `error`) is a fill, a dot or an icon; the word beside it, a delta and a callout's text take its ink (`on-success-surface`, `on-warning-surface`, `on-error-surface`), because the walkthrough's status hues are bright and clear 3:1, not 4.5:1.

**Secondary text on an inset fill is `on-surface-2`.** `on-surface-3` clears 4.5:1 on `surface` and `background`; on `surface-2`, `surface-3` and `background-edge` (placeholders, units, tab and segment labels, counts, the sidebar's labels) the secondary ink is `on-surface-2`.

**Status is never alone.** A status dot always sits beside its word (LIVE or ACTIVE, PAUSED, DRAFT, FAILED); a delta carries an arrow and a sign.

**No decorative colour.** A rainbow strip, a tinted section, a coloured icon for flavour or a gradient is a defect. The section kicker's dot is ink, not lime.

### Kinds

Every kind has its own hue, from the walkthrough's Foundations board ("one hue and one glyph each"), and keeps it in every badge, dot, thumb, well, tile, filter chip and chart. The board states the hue; the tint and the ink on it are derived at the same hue so the pair clears 4.5:1, and the dark values raise the hue to stay luminous on carbon.

| Kind | Hue (board) | Hue role | Tint and ink | Counts |
|---|---|---|---|---|
| Link | #2B59E8 blue | `kind-link` | `kind-link-surface` with `on-kind-link-surface` | Taps |
| Page | #8B3FE0 purple | `kind-biopage` | `kind-biopage-surface` with `on-kind-biopage-surface` | Views |
| QR | #1F8A3D green | `kind-qr` | `kind-qr-surface` with `on-kind-qr-surface` | Scans |
| vCard | #0A7F95 teal | `kind-vcard` | `kind-vcard-surface` with `on-kind-vcard-surface` | Saves |
| Event | #D9480F orange | `kind-event` | `kind-event-surface` with `on-kind-event-surface` | RSVPs |
| File | #C92A2A red | `kind-file` | `kind-file-surface` with `on-kind-file-surface` | Downloads |
| Site | #495057 grey | `kind-static` | `kind-static-surface` with `on-kind-static-surface` | Views |
| Splash | #C2255C pink | `kind-splash` | `kind-splash-surface` with `on-kind-splash-surface` | Visits |
| Pay | #5C8A00 olive | `kind-payment` | `kind-payment-surface` with `on-kind-payment-surface` | Payments |

Status uses Green (`success`), Amber (`warning`), Red (`error`) and Sky (`info`). QR's green and File's red sit near the success and error hues, and Pay's olive near lime: **kinds and statuses are told apart by form, not by hue alone.** A kind always appears as its glyph on its tint or as a `kind-badge` with its name; a status always as a dot with its word; the primary action is the one lime capsule with a label. A kind hue never fills a button, and a status hue never fills a kind's tile. A dot is never the only signal.

### Dark theme

The dark theme overrides roles by name. Roles defined as references follow their source. Series are not overridden; each clears 3:1 on both page fields in both themes. `dark-materials` overrides material values by name.

```yaml-extension
themes:
  dark:
    primary:             "oklch(0.86 0.23 138)"
    primary-hover:       "oklch(0.89 0.21 138)"
    primary-active:      "oklch(0.82 0.23 138)"
    on-primary:          "oklch(0.14 0.06 145)"
    primary-line:        "oklch(0.72 0.21 142)"
    primary-soft:        "oklch(0.28 0.07 140)"
    on-primary-soft:     "oklch(0.86 0.19 140)"
    primary-glow:        "oklch(0.86 0.23 138 / 0.5)"
    background:          "oklch(0.12 0.008 270)"
    background-edge:     "oklch(0.08 0.006 270)"
    surface:             "oklch(0.16 0.008 270)"
    surface-2:           "oklch(0.20 0.009 270)"
    surface-3:           "oklch(0.24 0.01 270)"
    inverse-surface:     "oklch(0.97 0.004 270)"
    on-inverse-surface:  "oklch(0.14 0.012 270)"
    on-surface:          "oklch(0.97 0.004 270)"
    on-surface-2:        "oklch(0.72 0.006 270)"
    on-surface-3:        "oklch(0.64 0.007 270)"
    on-surface-4:        "oklch(0.40 0.008 270)"
    outline:             "oklch(0.27 0.01 270)"
    outline-soft:        "oklch(0.22 0.009 270)"
    outline-strong:      "oklch(0.56 0.011 270)"
    focus:               "oklch(0.72 0.21 142)"
    focus-field-halo:    "oklch(0.86 0.23 138 / 0.22)"
    scrim:               "oklch(1 0 0 / 0.06)"
    scrim-strong:        "oklch(1 0 0 / 0.1)"
    overlay:             "oklch(0.04 0.005 270 / 0.6)"
    glass:               "oklch(0.16 0.008 270 / 0.72)"
    glass-line:          "oklch(1 0 0 / 0.08)"
    glass-solid:         "oklch(0.18 0.008 270)"
    glass-specular:      "oklch(1 0 0 / 0.07)"
    error:               "oklch(0.68 0.22 22)"
    on-error:            "oklch(0.14 0.012 270)"
    success:             "oklch(0.74 0.17 150)"
    warning:             "oklch(0.80 0.14 85)"
    info:                "oklch(0.76 0.12 235)"
    error-surface:       "oklch(0.26 0.06 22)"
    success-surface:     "oklch(0.26 0.05 150)"
    warning-surface:     "oklch(0.26 0.05 85)"
    info-surface:        "oklch(0.26 0.05 235)"
    on-error-surface:    "oklch(0.68 0.22 22)"
    on-success-surface:  "oklch(0.74 0.17 150)"
    on-warning-surface:  "oklch(0.80 0.14 85)"
    kind-link:           "oklch(0.74 0.16 265.4)"
    kind-link-surface:   "oklch(0.28 0.05 265.4)"
    on-kind-link-surface: "oklch(0.82 0.12 265.4)"
    kind-biopage:        "oklch(0.74 0.16 300.5)"
    kind-biopage-surface: "oklch(0.28 0.05 300.5)"
    on-kind-biopage-surface: "oklch(0.82 0.12 300.5)"
    kind-qr:             "oklch(0.74 0.148 148)"
    kind-qr-surface:     "oklch(0.28 0.05 148)"
    on-kind-qr-surface:  "oklch(0.82 0.12 148)"
    kind-vcard:          "oklch(0.74 0.096 215.9)"
    kind-vcard-surface:  "oklch(0.28 0.05 215.9)"
    on-kind-vcard-surface: "oklch(0.82 0.096 215.9)"
    kind-event:          "oklch(0.74 0.16 37.9)"
    kind-event-surface:  "oklch(0.28 0.05 37.9)"
    on-kind-event-surface: "oklch(0.82 0.12 37.9)"
    kind-file:           "oklch(0.74 0.16 26.6)"
    kind-file-surface:   "oklch(0.28 0.05 26.6)"
    on-kind-file-surface: "oklch(0.82 0.12 26.6)"
    kind-static:         "oklch(0.74 0.015 248.2)"
    kind-static-surface: "oklch(0.28 0.01 248.2)"
    on-kind-static-surface: "oklch(0.82 0.012 248.2)"
    kind-splash:         "oklch(0.74 0.16 6.5)"
    kind-splash-surface: "oklch(0.28 0.05 6.5)"
    on-kind-splash-surface: "oklch(0.82 0.12 6.5)"
    kind-payment:        "oklch(0.74 0.154 129.2)"
    kind-payment-surface: "oklch(0.28 0.05 129.2)"
    on-kind-payment-surface: "oklch(0.82 0.12 129.2)"
    data:                "oklch(0.86 0.02 272)"
    chart-area:          "oklch(0.86 0.02 272 / 0.16)"
    code-surface:        "oklch(0.10 0.007 270)"
    code-plain:          "oklch(0.92 0.006 270)"
    code-punctuation:    "oklch(0.74 0.008 270)"
    code-comment:        "oklch(0.64 0.008 270)"
    code-keyword:        "oklch(0.78 0.13 300)"
    code-string:         "oklch(0.80 0.10 190)"
    code-number:         "oklch(0.78 0.12 355)"
    code-function:       "oklch(0.78 0.11 260)"
    code-attr:           "oklch(0.80 0.10 55)"
    code-tag:            "oklch(0.78 0.11 280)"
    code-added:          "oklch(0.22 0.05 150)"
    code-removed:        "oklch(0.22 0.05 22)"
    code-highlight:      "oklch(0.18 0.01 270)"
  dark-materials:
    glass: { highlight: "0 1px 0 0 oklch(1 0 0 / 0.07) inset" }
    control: { highlight: "0 1px 0 0 oklch(1 0 0 / 0.18) inset" }
aliases:
  # the prototype's vocabulary → Studio roles, emitted as var() references
  bg:            background
  bg-edge:       background-edge
  neutral:       background
  border:        outline
  border-strong: outline-strong
  text:          on-surface
  text-2:        on-surface-2
  text-3:        on-surface-3
  text-4:        on-surface-4
  accent:        primary
  accent-ink:    on-primary
  accent-line:   primary-line
  accent-soft:   primary-soft
  accent-glow:   primary-glow
  focus-glow:    focus-field-halo
  glass-bg:      glass
```

The theme is set on `<html data-theme="light|dark">`; without it the theme follows `prefers-color-scheme` on first paint. `color-scheme` is set to match so form controls and scrollbars follow. The account menu's theme control and any other preference surface write the same attribute.

### Verification

The linter measures every component that pairs `textColor` with `backgroundColor` against 4.5:1, in both themes, so every text pair, status word, delta pill, callout, badge and kind well is checked on every build. It reads translucent fills as opaque, so every tint that sits behind text (`primary-soft`, the status and kind surfaces) is an opaque role.

The checker also measures the pairs the linter cannot see, against 3:1:

| Pair | Light | Dark |
|---|---|---|
| `outline-strong` on `surface` | 3.95 | 4.17 |
| `outline-strong` on `background` | 3.73 | 4.36 |
| `outline-strong` on `surface-2` | 3.54 | 3.89 |
| `outline-strong` on `surface-3` (worst case) | 3.21 | 3.53 |
| `focus-field` on `surface` | 3.68 | 8.42 |
| `focus` on `surface` | 3.68 | 8.42 |
| `series-1…8` on `background` and `surface` (lowest) | 3.20 | 3.81 |

Further measured pairs, for reference (text at 4.5:1, graphics at 3:1):

| Pair | Light | Dark |
|---|---|---|
| `on-primary` on `primary` | 9.93 | 13.75 |
| `on-primary-soft` on `primary-soft` | 7.08 | 9.89 |
| `on-success-surface` on `success-surface` | 4.99 | 7.08 |
| `on-error-surface` on `error-surface` | 5.29 | 4.83 |
| `on-surface-3` on `surface` / `background` (where it may sit) | 4.96 / 4.68 | 5.77 / 6.03 |
| `kind-qr` on `surface` (lowest kind hue, a graphic) | 4.42 | 8.91 |
| `focus` on `background` | 3.48 | 8.80 |
| `kind-link` on `surface-2` | 5.08 | 7.53 |

**Glass is measured over the page field.** Composited over `background`, `glass` keeps every ink above 4.5:1 in both themes; the lowest is `on-surface-3` at 5.72:1 (light) and 5.65:1 (dark). Over content the system does not control (an editor artboard, a link preview, imagery), chrome uses `glass-solid` instead of the translucent fill, so no ink ever sits on an unknown backdrop.

**Increased contrast** (`prefers-contrast: more`, or `data-contrast="more"` on an ancestor): hairlines become `rule` (1 px) and `outline` becomes `outline-strong`; `on-surface-3` text rises to `on-surface-2`; glass becomes `glass-solid` with a 1 px `outline-strong` rim. **Forced colours** (`forced-colors: active`): fills, glass and shadows drop; every boundary becomes `CanvasText`; the focus indicator becomes `2px solid Highlight`; status dots keep their words; selected items take `SelectedItem`.

## Typography

### Families

| Family | Job | Weights | Fallback |
|---|---|---|---|
| **Bounded** | Headlines, document names, every large number, the brand mark | Variable, 200–900; roles use 500 and 600 | `Certia, system-ui, sans-serif` |
| **Instrument Serif** | The display voice's italic: one accent word per headline | 400, italic | `ui-serif, Georgia, serif` |
| **Certia** | Everything readable in the interface | 300, 400, 500, 600, 700 and 400 italic, on every platform (the owner's face, from Studio Origins) | `-apple-system, BlinkMacSystemFont, system-ui, sans-serif` |
| **Space Grotesk** | Captions, metadata, status, keys, URLs, slugs, counts | Variable on the web; 400, 500, 600 on Apple platforms | `ui-sans-serif, system-ui, sans-serif` |
| **JetBrains Mono** | Code only (`code-md`: code blocks, the code editor, mono fields), where a column has to mean something | Variable on the web; 400 on Apple platforms | `ui-monospace, SFMono-Regular, Menlo, monospace` |

All four are licensed under the SIL Open Font License and self-hosted with `font-display: swap`; nothing loads from a CDN. Bounded has no italic of its own, which is why the accent word is Instrument Serif: together they are one display voice.

- **Bounded always sets tabular lining figures** (`"tnum" 1`). The body's `ss01` and `cv11` would otherwise render Bounded's digits as circled glyphs. The build fails if a Bounded role omits it.
- **Certia** sets `"ss01", "cv11", "tnum"` on every role.
- **Space Grotesk** sets `"tnum"`; every number in a column, counter, timer or metric is tabular.
- The brand mark's "S" is Bounded 600 with `font-style: italic` (synthesised oblique), the only italic Bounded ever takes.

### Scale

**Ten roles, nothing else** (the walkthrough's Type board). Every piece of text in the app is one of them; resource previews are exempt, because they show the resource's own design.

| Board role | Token | Spec | Applied to |
|---|---|---|---|
| Display L | `headline-display` | Bounded 500 · 50→30 · 1.04 · −2% | The Home greeting |
| Display M | `headline-lg` (`numeral-lg` for figures) | Bounded 500 · 42→28 · 1.04 · −2% | Page titles, the featured title, big numbers |
| Accent | `accent-italic` | Instrument Serif italic · 1.1em of its line | The italic word inside a display line |
| Title | `headline-sm` | Certia 600 · 16 · 1.3 | Headings on cards and tiles |
| Name | `row-title` | Certia 500 · 15 · 1.3 · one line in lists, two in grids | Resource names |
| Body | `body-lg` | Certia 400 · 15 · 1.5 · two lines max | Page descriptions |
| UI | `label-md` (`label-lg` current, `label-sm` dense) | Certia 500 · 14 · 1.4 | Navigation, chips, menus, buttons, values |
| Small | `body-sm` | Certia 400 · 13 · 1.45 | Secondary sentences |
| Label | `caption-md` (`caption-xs`, `caption-lg`) | Space Grotesk 500 · 10.5 · caps · +12% | Kickers, section labels, tags |
| Meta | `mono-sm` (`mono-xs`) | Space Grotesk 400 · 12 · as typed | URLs, counts, dates; URLs never in caps |

Sections use Bounded 400 (`headline-md`). The remaining tokens (`body-md`, `body-xs`, `numeral-md/sm`, `mono-lg/md`, `kbd`, `count`, `delta`, `code-md`, the brand roles) are the furniture these ten are built on: field values, hints, figures, keys and code.

The scale: **10 · 10.5 · 11 · 12 · 13 · 14 · 15 · 16 · 20 · 24 · 42 · 50**. Every size is emitted in `rem` (16 px = 1 rem), so the whole scale follows the reader's text-size setting; layout lengths stay in px.

| Token | Size | Weight | Line height | Tracking | Applied to |
|---|---|---|---|---|---|
| `headline-display` | 50 px, fluid from 30 | 500 | 1.04 | −0.02em | Display L: the Home greeting (h1) |
| `headline-lg` | 42 px, fluid from 28 | 500 | 1.04 | −0.02em | Display M: page titles (h1), the featured title |
| `headline-md` | 24 px | 400 | 1.15 | −0.022em | Section title (h2): Bounded 400 |
| `headline-sm` | 16 px Certia | 600 | 1.3 | −0.006em | Title: card, tile, panel, dialog and empty-state title (h3) |
| `headline-xs` | 14 px | 500 | 1.25 | −0.01em | Document name in the toolbar; h4 in prose |
| `row-title` | 15 px Certia | 500 | 1.3 | −0.004em | Name: resource names in rows and tiles |
| `numeral-lg` | 42 px, fluid from 28 | 500 | 1.04 | −0.02em | Stat value (Display M) |
| `numeral-md` | 20 px | 500 | 1.0 | −0.02em | Page-head facts |
| `numeral-sm` | 16 px | 500 | 1.0 | −0.015em | Row value |
| `brand-mark` | 16 px | 600 | 1.0 | 0 | The "S" in the mark |
| `avatar-initial` | 14 px | 600 | 1.0 | 0 | Avatar fallback |
| `accent-italic` | 1.1em of its headline | 400 | 1.0 | −0.005em | The accent word |
| `body-lg` | 15 px | 400 | 1.5 | −0.004em | Body: page descriptions, the lead under a page title, prose |
| `body-md` | 14 px | 400 | 1.5 | −0.006em | Interface default: fields, dialog context, chart captions |
| `body-sm` | 13 px | 400 | 1.45 | −0.003em | Table cells, dense descriptions |
| `body-xs` | 12 px | 400 | 1.45 | 0 | Hints, blurbs, descriptors, legends |
| `label-lg` | 14 px | 600 | 1.4 | −0.008em | Buttons; the current link, tab, segment and chip |
| `label-md` | 14 px | 500 | 1.4 | −0.008em | Navigation at rest, menu items, toasts, the search field |
| `label-sm` | 13 px | 500 | 1.4 | −0.004em | Segmented items, tabs, chips, field labels, tooltips |
| `caption-lg` | 12 px | 500 | 1.25 | +0.12em | A larger caption where 10.5 px would be lost (uppercase) |
| `caption-md` | 10.5 px | 500 | 1.25 | +0.12em | Label: page and section kickers, stat labels, menu and panel labels, table headers, caps links (uppercase) |
| `caption-xs` | 10.5 px | 500 | 1.2 | +0.12em | Label in a pill: status words, kind badges, plan chip, units (uppercase) |
| `mono-lg` | 15 px | 400 | 1.35 | −0.01em | URL and slug values in the composer |
| `mono-md` | 13 px | 400 | 1.35 | −0.005em | Domain picker, number fields, mono field values |
| `mono-sm` | 12 px | 400 | 1.35 | 0 | Inline data: counts, emails |
| `mono-xs` | 11 px | 400 | 1.35 | +0.01em | Row meta, ages, stat sub-lines, axis labels |
| `kbd` | 11 px | 500 | 1.0 | +0.02em | Keyboard hints |
| `count` | 10 px | 600 | 1.0 | 0 | Count badges |
| `delta` | 11 px | 600 | 1.0 | +0.01em | Delta pills |

Hierarchy comes from family, size and **ink before weight**. A view uses three to five levels: a Bounded title, Certia body and a mono caption are already three, apart in family, size and colour. Weight is spent once per level: display lines are Bounded 500 and sections Bounded 400; Certia goes to 600 for a card or tile title, an action or a current item; captions are 500. `label-md` and `label-lg` share a size, so the current item gains weight without shifting width.

**Type and space.** Space is a 4 px rhythm with four optical half-steps (Layout). Type steps sit on whole pixels and meet space at the control: every control height is on the space scale, and every interface role centres inside it.

**Consolidated (2.3.0, revised in 2.4.0).** `nav-md` was identical to `label-md`, `nav-current` to `label-lg`, and `caption-sm` sat half a pixel from `caption-md`; each folded into the survivor. 2.3 removed every half-pixel size; 2.4 brings back exactly one, the board's Label at 10.5 px, and no other. A rule applies a role whole (family, size, weight, line height, tracking, features); mixing the size of one role with the weight of another is not allowed, and the 16 rules that did now name one role.

```yaml-extension
fluid-type:
  headline-display: { min: 30px, fluid: 3.31vw }
  headline-lg:      { min: 28px, fluid: 2.71vw }
  numeral-lg:       { min: 28px, fluid: 2.9vw }
type-transform:
  caption-lg: uppercase
  caption-md: uppercase
  caption-xs: uppercase
```

The frontmatter `fontSize` is the ceiling; the build emits each fluid role's size as `clamp(min, fluid, ceiling)`, so `--type-headline-display-size` is `clamp(1.875rem, 3.5vw, 3.125rem)` (50→30) and `headline-lg` and `numeral-lg` run 42→28. Fluid type is page-level presentation, one of the few places `vw` is used.

### The two-tone headline

```html
<h2 class="t-headline-md">Pick up where you <em>left off.</em></h2>
```

- The accent is the `<em>`: `accent-italic` in `on-surface-3`, at 1.1em of the headline's size (the serif's x-height is smaller than Bounded's). One word or short phrase per headline, at its end or as its second line. Never in body text, never twice in one heading.
- It is semantic emphasis, so screen readers keep it; it is never an image or a pseudo-element.
- Headlines set `text-wrap: balance`, so no heading ends on one stranded word.

### Captions

Captions are Space Grotesk, uppercase by `type-transform`, never authored in capitals, so copy and accessible names stay in sentence case. They run three words at most, never wrap, and are never used for sentences, emails or URLs. Captions name things (a section, a status, a unit); they never carry data, so ages, counts, hosts and dates are `mono-*` in sentence case. The smallest text in Studio is 10 px, and only uppercase captions, count badges and nothing longer than a word sit there.

### Line height and tracking

| Band | Line height | Roles |
|---|---|---|
| Display | 1.0–1.15, tighter as size grows | `headline-display`, `headline-lg`, `headline-md`, `headline-xs`, `numeral-*`, `brand-mark` |
| Titles and names | 1.3 | `headline-sm`, `row-title` |
| Reading | 1.45–1.6, looser as measure grows | `body-*` |
| Interface | 1.0–1.4 | `label-*` (1.4), `caption-*`, `mono-*`, `kbd`, `count`, `delta` |

- Display lines track −2% (−0.02em) at every fluid size; sections −0.022em at 24, `headline-xs` −0.01em at 14.
- Certia is near zero: slightly negative at 13–16 px, zero at 12.
- Positive tracking belongs to uppercase captions only: every caption is +0.12em, in the front matter, the generated tokens and this table alike; sentence-case mono stays within ±0.01em.
- Headings are never uppercase and never tracked out; Bounded is never heavier than 500, and a Certia title is 600.

### Reading

Long-form content (`.prose`: docs, help, a bio page's text, release notes) is `body-lg`, 15/1.5, at `measure` (68ch); its headings balance within `measure-narrow`. Paragraphs are `s-4` apart (about two thirds of a line), a heading has `s-8` above and `s-3` below, and list items `s-1h`. Text wraps with `text-wrap: pretty`, long words break and hyphenate, and opening quotes hang. Field values and dense interface text stay on `body-md` 14.

### Dynamic text, localization and accessibility

- **Text size.** Sizes are `rem`, so a larger browser text setting enlarges every role while layout keeps its px structure; badges, chips and pills take their space-scale height as a floor (`min-height`) so they grow with their word; buttons and fields keep their height, and labels truncate before they wrap; display headings break a word longer than their column. `test/browser/text-size.spec.mjs` checks every app view, the gallery and the docs at 125, 150 and 200 %. Apple roles scale with Dynamic Type relative to their text style (`@ScaledMetric`).
- **Zoom and reflow.** Usable at 200 % and in one column at 400 %.
- **Localization.** Labels are one word in English and get about 40 % more room in other languages through truncation, never by shrinking type. Uppercase captions apply only to scripts with case; CJK and Arabic captions keep their natural case and drop tracking (`:lang()` resets in base CSS).
- **Contrast.** Every text ink clears 4.5:1 on every surface in both themes (lowest: `on-surface-3` on `background`, 4.68:1 light; secondary text on inset fills is `on-surface-2`). `on-surface-4` is for marks that carry no information and disabled states only; no readable glyph uses it.

### Section markers

When a page numbers its sections or steps, the number sits in a `marker`: a `caption-md` numeral in `on-surface-3`, centred in a 24 px box with a 1 px `outline` border and `xs` radius, `s-3` before the heading on its first line. It is never larger or louder than the heading. Numbers never appear in filled badges, coloured shapes or oversized outlined numerals, and the section sign is never printed. The kicker is not a marker: it names a section, it does not number it.

## Layout

```
┌ window · background ────────────────────────────────────────────────────────────┐
│ ┌ sidebar ┐                                                                      │  from sidebar-at: the sidebar at the start edge
│                                                                                  │
│ │ [A] … ⌄ │  ┌ frame: workspace-max + gutter, centred beside the sidebar ──┐      │
│      │ Short links 12 · [⌕ search…………]  [Filter]  [+ New]                │      │  collection header
│      │ (All) (Short links) (Bio pages) (vCards) (Events) …                │      │  kind picker
│      │ 8 links · 2 paused · Clear filters                                 │      │
│      │ ── rows ──                                                         │      │
│      └────────────────────────────────────────────────────────────────────┘      │
│                              ( ✓ toast ) bottom centre                           │
└──────────────────────────────────────────────────────────────────────────────────┘
  ≥ sidebar-at: the sidebar · ≥ tabbar-at: the rail · below: the tab pill and the New circle; the top bar floats over every width (Navigation)
```

### One frame

The toolbar, every page container and the footer share one frame:

```css
.frame { width: 100%; max-width: calc(var(--spacing-workspace-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)); container: frame / inline-size; }
```

- **The edges line up.** The brand pill's outer edge is the content's start edge; the utility capsule's outer edge is the content's end edge. The footer shares both.
- **Narrower content starts at the frame's start edge.** A form, a lead paragraph or a reading column aligns to the start of the frame and leaves surplus width at the end, which is margin, not dead space. A page never gives itself its own narrower, centred container.
- **App views put the frame beside the sidebar.** From `tabbar-at` the sidebar (or its rail) takes the window's start edge and the frame is centred in the width that remains; on phones the frame spans the window. The top bar's pills float over the frame at every width. App views have no footer.
- **The canvas shell is full-bleed.** In the editor workspace, `workspace-max` does not apply: the frame spans the window and its gutter is `chrome-inset` (14 px). The editor bar and the floating panels sit on that frame's edges; the canvas is the working area, not a page container.

### Page presentation

`--gutter` and `--band` are the only values that read the viewport, because they belong to the page itself:

| Page width | `--gutter` | `--band` (section, page-head and footer spacing) |
|---|---|---|
| < 600 px | `gutter` (16) | `band-narrow` (40) |
| 600–1023 px | `gutter-md` (24) | `band-narrow` (40) |
| ≥ 1024 px | `gutter-lg` (32) | `band` (56) |

`section-gap` is `--band`; compact density sets it to `band-narrow` at every width. This narrow step is defined once and used everywhere. No page or section sets its own narrow padding.

### Chrome clearance

**App views.** Content starts below the floating top bar: `topbar-h` + `env(safe-area-inset-top)` + `s-6` (on phones `s-3` + the 44 px pills + the safe area + `s-6`), and anchors set `scroll-margin-top` to `topbar-h` + `s-7`. Below `tabbar-at` it also reserves the tab pill (`tab-h` + two `s-1h`) + `s-3` + `env(safe-area-inset-bottom)` + `s-4` at its end, so the last row clears it. In the editor workspace the panels start `topbar-h` below the window's top edge and the canvas scrolls under the bar.

**Site shell.** Content scrolls under the floating row and starts below it:

| Token | Value | Derivation |
|---|---|---|
| `nav-top` | 14 px | `chrome-inset`, the inset of all floating chrome from the frame's top edge |
| `nav-h` | 46 px (compact 42) | The toolbar pill height |
| `nav-stack` (`toolbar-clear`) | 74 px (compact 70) | 2 × `nav-top` + `nav-h`, plus `env(safe-area-inset-top)` at run time |
| `content-top` | 86 px (compact 82) | `nav-stack` + `s-3`: where the first block of a view starts |
| `scroll-offset` | 106 px (compact 102) | `nav-stack` + `s-7`: where an anchor or focused element lands |

In the site shell, anchor targets set `scroll-margin-top: var(--spacing-scroll-offset)`, and below `nav-inline-at` the bottom of the page also reserves `fab` + `s-4` + `env(safe-area-inset-bottom)` for the circles.

### Thresholds

Structure is decided by `@container` queries. The app shell's two thresholds (`tabbar-at`, `sidebar-at`) are measured on the app root, which is the window for a full-window app and the frame of an embedded preview; the editor workspace's two (`editor-sheet-at`, `library-collapse-at`) on the workspace. Each threshold is owned by the region or component whose content breaks there, measured on that container, and derived from the content that breaks. A product that changes the content re-derives it.

| Token | Value | Owner and container | Changes | Derivation |
|---|---|---|---|---|
| `compose-at` | 432 px | The link composer, on its card | The headline steps down to `headline-md`; the alias row wraps inside its rim: the domain and the alias share the first line, Shorten spans the second (the walkthrough's Home-Phone) | Domain picker 180 + slug minimum 120 + Shorten 104 + two `s-1h` gaps (12) + two `s-2` insets (16) = 432 |
| `compose-wide-at` | 720 px | The link composer, on its card | The headline runs as one line instead of breaking before its second half (a composer the band's full width, beside the rail: Home-Tablet) | The headline at `headline-feature` in one line (about 560) + two `s-6` insets (48) + room for the bloom (112) = 720 |
| `row-fold-at` | 556 px | The list row, on its list | The row's value folds into its meta line | Thumb 42 + title minimum 348 + value 64 + more 32 + three `s-3h` gaps (42) + two `s-3h` insets (28) = 556 |
| `collection-compact-at` | 560 px | The collection header, on its row | Search collapses to a circle that expands in place across the row | Title minimum 172 + `collection-search-min` 160 + Filter 104 + New 88 + three `s-3` gaps (36) = 560 |
| `collection-tight-at` | 400 px | The collection header, on its row | The title steps down to `headline-sm`, so the longest kind's name stays whole on a phone | The longest title, "Payment links", at `headline-md` (about 236 in Bounded) + three 38 px circles (search, Filter, New: 114) + three `s-3` gaps (36) = 386, taken at 400 (re-derived in 2.3 for Studio Origins' wider faces) |
| `pair-at` | 560 px | A form, on its fieldset | Paired fields share a row | Two fields at their 268 px minimum + `s-6` = 560 |
| `overlay-at` | 600 px | The frame | A released region becomes an overlay instead of a sheet; menus, selects and dialogs become sheets below it | `region` (300) + `region-keep` (300): the overlay still leaves 300 px of page beside it |
| `nav-inline-at` | 716 px | The navigation, on the frame | The toolbar shows its destinations | The links pill is centred, so both outer tracks need the wider outer pill: 2 × capsule (138) + links for Studio's taxonomy (360) + two `s-8` gaps (80) = 716. Measured widths live in `regions.navigation.fit`; Portico re-measures at run time |
| `head-split-at` | 768 px | The page head | The facts list sits beside the title instead of below it as a chip row | Display title at 56 px, two lines (520) + `s-6` + facts list (224) = 768 |
| `split-at` | 796 px | The create grid | The featured composer and the create tiles sit side by side | Composer card minimum 442 + `grid-gap` 14 + two tiles at 163 with one `grid-gap` (340) = 796 |
| `tabbar-at` | 768 px | The app shell, on the app root (the window) | The tab pill and the New circle replace the rail; the top bar's pills shrink to 44 and the wordmark returns; Home's hero takes its phone form | The rail (76) + two `gutter-md` (48) + the collection header at its full row (560, `collection-compact-at`) = 684; the step is set at the 768 test width, above that fit, so phones and small tablets get the tab pill within thumb reach and an iPad-portrait window keeps the rail |
| `editor-sheet-at` | 900 px | The editor workspace, on the workspace | The library and inspector become bottom sheets under a sheet bar; the canvas fills the window | Collapsed library 46 + inspector 340 + phone preset 390 with `s-6` either side (438) + four `chrome-inset` (56) = 880, taken at 900 with the product's own editors |
| `quad-at` | 826 px | The stat row | Four stat tiles in one row instead of two by two | 4 × `stat-min` (196) + 3 × `grid-gap` (42) = 826 |
| `toolbar-full-at` | 840 px | A view toolbar, on its row | Filters show inline instead of behind one "Filters" button | Search 240 + three filters (360) + More 96 + view switch 96 + four `s-3` gaps (48) = 840 |
| `rails-at` | 896 px | The reading shell, on the frame | Both rails dock | 2 × `rail-min` (328) + 2 × `rail-gap` (48) + `reading-min` (520) = 896 |
| `sidebar-at` | 1100 px | The app shell, on the app root (the window) | The whole sidebar replaces the rail; the search pill replaces the search circle; the New circle leaves (New is in the sidebar) | Studio Origins' breakpoint: the sidebar (256) + two `gutter-lg` (64) + the top bar's page pill, search pill, actions and avatar with their gaps (about 560) + room for the collection header's full row = 1100 |
| `library-collapse-at` | 1280 px | The editor workspace, on the workspace | The library panel starts open instead of collapsed (every kind but Bio page) | Library 300 + inspector 340 + four `chrome-inset` (56) + the browser frame at its 560 minimum with `s-3` either side (584) = 1280 |

The stat row never shows three tiles: below `quad-at` it is two by two, so no tile is stranded. Two stat tiles stay side by side down to a 288 px container (two 137 px tiles and one `grid-gap`), so they never stack at 320 px.

### The space scale

| Token | Value | Role |
|---|---|---|
| `s-0` | 2 px | Segmented and tab track inner gap; optical nudges inside controls |
| `s-1` | 4 px | Capsule padding, kicker dot to text |
| `s-1h` | 6 px | Toolbar pill and menu padding, icon to label in small controls |
| `s-2` | 8 px | Icon to label, gaps between controls in a pill |
| `s-2h` | 10 px | Gap in the toolbar's end cluster, menu header padding |
| `s-3` | 12 px | Related controls in a row, marker to heading, row padding |
| `s-3h` | 14 px | `chrome-inset` and `grid-gap`: every floating inset and card-grid gap |
| `s-4` | 16 px | Card interior, narrow gutter, section header to content |
| `s-5` | 20 px | Stat tile interior |
| `s-6` | 24 px | Feature card interior, region gap, dialog padding |
| `s-7` | 32 px | Wide gutter, heading to content in long views |
| `s-8` | 40 px | Narrow band, compact section gap, gap between toolbar pills when wide |
| `s-9` | 48 px | Empty-state padding |
| `s-10` | 56 px | Wide band, section gap |
| `s-11` | 64 px | Space inside artwork compositions |
| `s-12` | 96 px | Content end padding above the toast lane |

It is a 4 px rhythm with four optical half-steps (6, 10, 14 and 18 px), used for the insides of chrome and for card grids, where Studio's pills and hairlines need finer steps than 4. A gap that is not on this scale is a bug. One exception, inside controls only: `track-inset`, the 3 px inset of the segmented and tab tracks. Sizes of small parts that are not gaps (`dot-xs` 3, `dot-kind` 5, `legend-key` 9, `toggle-thumb` 22, `day` 36, `selection-w` 1.5) are named tokens of their own.

### Vertical rhythm

Blocks declare no outer margin; the container declares the gap. Space above a heading is always larger than space below it.

| Between | Gap |
|---|---|
| Section and section | `section-gap` |
| Kicker and its headline | `s-2h` |
| Section header and its first block | `s-4` |
| Page head and the first section | `section-gap` |
| Page title and its lead | `s-5` |
| Cards in a grid | `grid-gap` |
| Rows in a list | `s-2h` |
| Label and field; field and its hint or error | `s-2` |
| Field and field | `s-3h` |
| Last field and the actions row | `s-6` |

### Alignment

- **One gap per group.** Two gaps on one axis mean two groups.
- **Icons align to cap height**, `s-2` from their label, centred as one unit with it.
- **Numbers right-align and are tabular**, text start-aligns, nothing centres in a table or a row's value column.
- **Hairlines land on device pixels:** 0.5 px is one device pixel on a 2× display and rounds to 1 px on a 1× display. The focus ring is 2 px.
- **Nested radius:** the inner radius is the outer minus the padding between them, snapped to a token (a `lg` card with `s-1h` padding holds `md` wells).
- **Media reserves its box** with `aspect-ratio`, never a fixed height.
- **Empty states and display headlines** are the only centred blocks.
- **No side stripes.** No element carries a border, inset shadow or bar on only its start or end edge. Current and selected states use a wash and weight; groups use space; an input group's prefix is separated by space, never by a rule on one side.
- **No card inside a card.** Inside a card, group with space, type and plain rows. The composer inside the feature card is a field, not a card.

### Containers and measures

| Token | Width | Contents |
|---|---|---|
| `workspace-max` (`content-max`) | 1140 px | The frame: toolbar, page content, footer |
| `reading` | 680 px | Forms, settings, help pages; start-aligned in the frame |
| `reading-min` | 520 px | The narrowest reading column beside rails |
| `rail` / `rail-min` | 200 / 164 px | Both reading-shell rails |
| `region` | 300 px | A docked side region; `editor-panel-w`, the library panel |
| `editor-panel-w-wide` | 340 px | The editor workspace's inspector |
| `sidebar-w` / `sidebar-rail-w` | 256 / 76 px | The sidebar, and its rail (Studio Origins) |
| `sidebar-row-h` / `sidebar-rail-item` / `sidebar-inset` | 40 / 48 / 16 px | A sidebar row; a rail item; the sidebar's padding |
| `topbar-pill-h` / `topbar-pill-h-compact` / `topbar-search-min` / `topbar-search-min-md` / `avatar-bar` | 46 / 44 / 440 / 360 / 40 px | The top bar's pills, on phones; the search pill's minimum, below `sidebar-at`; the phone's avatar |
| `tab-w` / `tab-h` / `tab-fab` / `tab-fab-sm` | 52 / 48 / 60 / 52 px | A tab in the tab pill; the New circle, and on the rail and small phones |
| `home-hero-stats-w` | 200 px | Home's hero figures column |
| `stage-dot` | 24 px | The dot grid of a preview stage (the editor canvas's field) |
| `measure-narrow` | 52ch | The page lead, empty states, callout bodies |
| `measure` | 68ch | The hard cap on paragraph line length |
| `measure-wide` | 88ch | Tables and logs |

### Page head

The page head (kicker, display title, lead, facts) is the site and reading shells' opening: the public site, the documentation and the gallery. **App views never use it**: lists open with the collection header, Home with its own hero (Views), the editor workspace with its editor bar (Editing).

```
• RECENTLY EDITED                                         ┌──────────────┐
Pick up where you                                          │ 12  LINKS    │
left off.                                                  │ 3   DRAFTS   │
One sentence of lead, at most two lines.                   └──────────────┘
```

**Working views** put the title and actions on one row. In app views that row is the collection header, which holds the search and the Filter button too, so it is the view's only toolbar row (Views):

```
Short links 12          [⌕ Search links…………………]   [⚲ Filter ²]   [+ New]
8 links · 2 paused · Clear filters
```

- A page head holds at most: a kicker, the title (`headline-display`, two lines at most, the second line or last word the accent), one lead sentence (`body-lg`, `measure-narrow`), up to two actions with one primary, and a facts list of at most three numbers. No metric rows, badges or second paragraph.
- Facts are `numeral-md` numbers with `caption-md` labels, hairline-separated, beside the title from `head-split-at` and a chip row below it otherwise.
- The next section's heading is visible in the first screen at every test width. Directly beneath sits the strongest content: on Home, the composer; on Analytics, the main chart. A row of stat tiles is never first.
- In a site or reading view's toolbar narrower than `toolbar-full-at`, filters collapse to one "Filters" button showing the active count, and secondary actions move to an overflow circle. App-view lists always use the one Filter button.

### Regions and how they resolve

```yaml-extension
regions:
  banner:     { role: banner,        edge: top,    height: "{spacing.s-8}",  narrow: inline }
  navigation: { role: navigation,    edge: top,    height: "{spacing.nav-h}", narrow: split, fit: { brand: 108px, links: 360px, capsule: 138px, gap: "{spacing.s-8}" } }
  toolbar:    { role: toolbar,       edge: top,    height: "{spacing.field-h-lg}", overflow: collapse }
  content:    { role: main,          edge: fill,   keep: "{spacing.reading-min}", overflow: scroll }
  panel:      { role: complementary, edge: start,  width: "{spacing.region}", priority: 60, overflow: scroll }
  inspector:  { role: complementary, edge: end,    width: "{spacing.region}", priority: 40, overflow: scroll }
  footer:     { role: contentinfo,   edge: bottom, overflow: wrap }
ladder: [docked, overlay, sheet]
resolve: >-
  For the frame's content width W: start with every side region docked.
  While the docked widths plus content.keep plus one s-6 gap per docked
  region exceed W, move the lowest-priority docked side region down one
  rung. A released region is an overlay from its own edge when W is at
  least overlay-at, and a sheet below it. The banner becomes an inline line
  below overlay-at. In the site shell the navigation splits into a top bar
  and two bottom circles below nav-inline-at; in app views it is the
  sidebar, a rail from tabbar-at, and below it the tab pill and the New
  circle, under the floating top bar at every width. In the reading shell, panel and inspector
  are rails at rail width that dock together from rails-at; below it the
  panel moves into the menu sheet and the inspector becomes a disclosure at
  the top of the content. Nothing is ever hidden.
```

The table follows from that rule; the checker recomputes it.

| Shell | < 600 | 600–843 | 844–1167 | ≥ 1168 |
|---|---|---|---|---|
| `app` · inspector | sheet | overlay | docked | docked |
| `browse` · panel | sheet | overlay | docked | docked |
| `canvas` · palette (panel), inspector | sheet, sheet | overlay, overlay | docked, overlay | docked, docked |

844 = `reading-min` 520 + `s-6` 24 + `region` 300. 1168 = 520 + 2 × 300 + 2 × 24.

**The product decides whether a region is open; the shell decides how an open region presents.** A released region keeps its accessible name, role and order. The editor workspace is the `canvas` shell measured by its own two steps instead of the generic rungs above, because its inspector is wider than `region` and its library can collapse: the library and inspector dock as floating glass panels inset `chrome-inset` below the editor bar from `editor-sheet-at`, the library starts open from `library-collapse-at` and otherwise opens as an overlay from its circle, and below `editor-sheet-at` both are bottom sheets with a grip and a scrim, opened from the sheet bar (Editing). There are no drawers.

### Shells

| Shell | Regions | Job | Content budget | Disclosure | Navigation | Studio views |
|---|---|---|---|---|---|---|
| `site` | banner · navigation · content · footer | Persuade, then convert | One message per screen-height | L1 | Site shell (Portico) | The public site; a published page's own pages |
| `reading` | navigation · panel · content · inspector · footer | Explain | One concept per heading | L3 | Site shell (Portico) | Documentation, the gallery |
| `browse` | navigation · panel · toolbar · content · footer | Find one item, then open it | One list, one record | L1 list, L2 record (in the editor workspace) | App sidebar | Resources |
| `app` | navigation · toolbar · content · inspector · footer | Monitor, then act | Most-checked data first | L1 → L2 | App sidebar | Home, Analytics, Settings |
| `canvas` | navigation · toolbar · content · panel · inspector | Make or edit one resource | The artefact first; tools when needed | L2 | Focus: the editor bar, no sidebar | The editor workspace, for all nine kinds |
| `focus` | content · panel | Complete one task | One decision per step | L2 | None | Sign-in, onboarding |

```yaml-extension
shells:
  site:    [banner, navigation, content, footer]
  reading: [navigation, panel, content, inspector, footer]
  browse:  [navigation, panel, toolbar, content, footer]
  app:     [navigation, toolbar, content, inspector, footer]
  canvas:  [navigation, toolbar, content, panel, inspector]
  focus:   [content, panel]
```

A shell is declared with one attribute: `<body data-shell="app">`. Home and Analytics are `app` views; Analytics is the view whose job is to watch numbers and act on them. Every resource, of every kind, is edited in the `canvas` shell: the editor workspace.

### The reading shell

```
≥ rails-at (896 px content box)
| tree      |   | reading 520–680 px            |   | on this page |
| 164–200   |24 | start-aligned, prose ≤ 68ch   |24 | 164–200      |

< rails-at
| [On this page ▾]  (disclosure, first in the column)          |
| reading, start-aligned                                       |
tree → the menu sheet
```

```css
.reading-shell { display: grid; gap: var(--spacing-rail-gap); grid-template-columns: minmax(0, var(--spacing-reading)); justify-content: start; }
@container frame (min-width: 896px) {   /* --spacing-rails-at */
  .reading-shell {
    grid-template-columns:
      minmax(var(--spacing-rail-min), var(--spacing-rail))
      minmax(var(--spacing-reading-min), var(--spacing-reading))
      minmax(var(--spacing-rail-min), var(--spacing-rail));
  }
}
```

At the full frame: 200 + 24 + 680 + 24 + 200 = 1128 px, inside 1140. The reading track never drops below `reading-min`; the rails compress first. Rail titles truncate to one line; both rails are sticky at `scroll-offset`.

### Primitives

Primitives arrange children and do nothing else. Every knob is a custom property, so `<div class="l-grid" style="--min: var(--spacing-stat-min)">` needs no new class.

```yaml-extension
primitives:
  frame:     { arranges: "the shared max width and gutter",               knobs: [] }
  stack:     { arranges: "children vertically",                           knobs: [gap, align] }
  row:       { arranges: "children horizontally, wrapping",               knobs: [gap, align, justify] }
  grid:      { arranges: "cells, count derived from a cell minimum",      knobs: [min, gap, min-columns] }
  split:     { arranges: "aside plus content, stacking intrinsically",    knobs: [aside, threshold] }
  switcher:  { arranges: "equal peers, all across or all stacked",        knobs: [threshold] }
  cluster:   { arranges: "short items side by side, wrapping as a group", knobs: [gap] }
  media:     { arranges: "one child, aspect-ratio crop",                  knobs: [ratio, fit] }
  scroller:  { arranges: "peers on one axis; the last item peeks",       knobs: [item, gap] }
  sticky:    { arranges: "one child, pinned",                             knobs: [top] }
```

Reach for an intrinsic primitive before a threshold. A `cluster` keeps short pairs (two facts, a label and value) side by side at narrow widths instead of stacking everything.

### Grid patterns

| Pattern | Primitive | Cell | Gap |
|---|---|---|---|
| Home hero | `split`: greeting and lead, then `hero-stats` (`home-hero-stats-w`) at the end, from `tabbar-at`; stacked below it | Greeting minimum 470, stats 200 | `s-6` |
| Hero figures (phones) | fixed 3-up `grid` of `hero-stat-card`s, equal thirds, never wraps | — | `grid-gap` |
| Stat row | `switcher` at `quad-at`, two columns below | `stat-min` | `grid-gap` |
| Create grid (Home's Start something new, the gallery) | `split` at `split-at` | Composer 1.35fr, tiles 1fr | `grid-gap` |
| Kind tiles (Home's 2×2, the New sheet's nine) | `grid`, `--min-columns: 2` | 163 px | `grid-gap` |
| Looks rail (Home's Start from a look) | `scroller` | `template-w` | `grid-gap` |
| Analytics breakdowns | `grid` | `panel-min` | `s-4` |
| Footer columns | `grid`, `--min-columns: 2` | 160 px | `s-6` |

```css
.l-grid {
  --cap: calc((100% - (var(--min-columns, 1) - 1) * var(--gap)) / var(--min-columns, 1));
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min), var(--cap)), 1fr));
}
```

### Overflow, wrapping and truncation

There is no sideways page scroll. `html, body { overflow-x: clip }` is a safety net, not a strategy. Every wide child (a table, the template rail, a chart) owns its scroll container, which takes `tabindex="0"`, an `aria-label` and a thin, always-visible scrollbar thumb in `surface-3`. A rail of peers is sized so the last visible card is cut part-way, which shows there is more. No fade, inset shadow or edge bar marks the overflow.

**Nothing in the chrome wraps.** Buttons, badges, chips, pills, tabs, segmented items, navigation links, captions and labels set `white-space: nowrap`. When they do not fit, the layout changes representation (an overflow menu, the Filter button, a search circle, a select, the rail).

| Content | Treatment |
|---|---|
| Row titles, document names, hosts, descriptors, rail titles, footer links | One line, `text-overflow: ellipsis`, `min-width: 0` on the flex child |
| Card blurbs | Clamp to 2 lines |
| Short links, slugs, IDs | Keep start and end: `studio.test/spri…ng25` |
| Action labels, navigation labels, numbers, page headings, captions | Never truncated |
| Table cells | Never truncated; the scroll container carries them |

A truncated string keeps its full value as its accessible name and shows it in a tooltip on hover and focus. A short link always offers Copy, so its full value is one action away.

### Density and hit areas

Studio has two densities, set with `data-density` on the view root: **airy** (the default) and **compact**. Compact tightens the chrome and the section rhythm and nothing else: type, control heights and hit areas never change.

```yaml-extension
density:
  airy: {}
  compact:
    nav-h: "{spacing.nav-h-compact}"
    nav-stack: "{spacing.nav-stack-compact}"
    scroll-offset: 102px
    content-top: 82px
    band: "{spacing.band-narrow}"
    section-gap: "{spacing.section-gap-compact}"
environment:
  safe-area: add            # added to the frame's inline padding, nav-top, the tab bar and the bottom circles
  hinge: "{spacing.s-7}"    # gutter reserved across a reported fold; no target or critical text crosses it
```

Each density entry overrides spacing tokens by name; derived tokens are overridden with their re-derived values (2 × 14 + 42 = 70; 70 + 32 = 102; 70 + 12 = 82).

**Every interactive element has a hit area of at least `target` (44 px), whatever its visible size, density or input device.**

- Smaller controls (34 px icon buttons, 30 px chips and caps links, 38 px navigation icons, 42 px compact toolbar pills) extend their hit area with a centred `::before`, only on the axis where they are smaller than `target`.
- Neighbours keep at least `target` minus their visible size between them (10 px for 34 px controls, 6 px for 38 px), so hit areas never overlap. Icon buttons inside a pill are `s-2h` apart; navigation icons in the capsule are `s-2` apart.
- Checkboxes and radios always sit in a `row-h` row with their label, which is the hit area.
- Rows that stack with no gap (menu items, select options, sheet items) are `row-h` (44 px) tall.

## Elevation & Depth

Depth comes from material, not stacking. There are three planes, and components name a tier; they never write a shadow.

1. **Canvas.** `background` (or `background-edge` behind an editor), no shadow.
2. **Content.** Cards, rows, tiles and tables: `surface` with a 0.5 px `outline` hairline. The card (the walkthrough's canvas card) adds the `card` tier, a long soft shadow under its hairline; rows, tiles and tables are flat at rest and on hover.
3. **Chrome.** The top bar's pills, the tab pill, the New circle, the editor bar, the library and inspector panels, the sheet bar, the site shell's pills, menus, popovers, toasts and the block toolbar: the glass material (the block toolbar `glass-solid`), a hairline rim and a tier.

| Tier | Used by |
|---|---|
| `flat` | Everything in the content plane except the card: rows, tiles, stat cards, tables, on hover too |
| `card` | The card (`card`, `card-hover`): hairline plus a long soft shadow, centred |
| `raised` | An item being dragged; toggle and range thumbs |
| `float` | The editor bar's pills, the tab bar and the sheet bar; toolbar pills, the brand pill, the capsule, back and the site shell's circles; the library and inspector panels at rest |
| `popover` | Menus, the account menu, select menus, popovers, the search layer, tooltips, toasts, chart tooltips, the block toolbar; toolbar pills once the page scrolls; the rail's sidebar opened over the page |
| `modal` | Dialogs, sheets and the New sheet |
| `glow` | The lime glow under a primary action that floats in chrome: the editor bar's primary action and the site shell's action circle |

```yaml-extension
elevation:
  light:
    flat:    "none"
    card:    "0 1px 2px oklch(0 0 0 / 0.03), 0 24px 48px -24px oklch(0.20 0.01 270 / 0.22)"
    raised:  "0 1px 2px oklch(0 0 0 / 0.06), 0 6px 16px -6px oklch(0 0 0 / 0.16)"
    float:   "0 0 0 0.5px oklch(0 0 0 / 0.06), 0 12px 32px oklch(0.20 0.01 270 / 0.14), 0 2px 8px oklch(0 0 0 / 0.05)"
    popover: "0 2px 8px oklch(0 0 0 / 0.05), 0 12px 32px oklch(0.20 0.01 270 / 0.14)"
    modal:   "0 8px 20px oklch(0 0 0 / 0.08), 0 32px 72px oklch(0.20 0.01 270 / 0.18)"
    glow:    "0 4px 12px oklch(0.78 0.22 138 / 0.5)"
    ring:    "0 0 0 0.5px oklch(0.88 0.006 270)"
    tile:    "0 0 0 0.5px oklch(0.88 0.006 270), 0 14px 30px -24px oklch(0.20 0.02 270 / 0.22)"
    bloom:   "0 0 0 0.5px oklch(0.88 0.006 270), 0 24px 50px -28px oklch(0.40 0.10 140 / 0.35)"
    lift:    "0 0 0 0.5px oklch(0.88 0.006 270), 0 1px 2px oklch(0 0 0 / 0.08)"
  dark:
    flat:    "none"
    card:    "0 1px 2px oklch(0 0 0 / 0.3), 0 24px 48px -24px oklch(0 0 0 / 0.6)"
    raised:  "0 2px 8px oklch(0 0 0 / 0.4)"
    float:   "0 0 0 0.5px oklch(0 0 0 / 0.5), 0 14px 40px oklch(0 0 0 / 0.55), 0 2px 8px oklch(0 0 0 / 0.3)"
    popover: "0 2px 8px oklch(0 0 0 / 0.3), 0 14px 40px oklch(0 0 0 / 0.55)"
    modal:   "0 24px 64px oklch(0 0 0 / 0.64)"
    glow:    "0 4px 12px oklch(0.86 0.23 138 / 0.5)"
    ring:    "0 0 0 0.5px oklch(1 0 0 / 0.12)"
    tile:    "0 0 0 0.5px oklch(1 0 0 / 0.12), 0 14px 30px -24px oklch(0 0 0 / 0.6)"
    bloom:   "0 0 0 0.5px oklch(1 0 0 / 0.12), 0 24px 50px -28px oklch(0 0 0 / 0.6)"
    lift:    "0 0 0 0.5px oklch(1 0 0 / 0.12), 0 1px 2px oklch(0 0 0 / 0.4)"
z-index:
  inline: 1
  row-open: 5
  panels: 20
  navigation: 30
  dock: 35
  popover: 40
  sheet: 50
  modal: 60
  toast: 70
materials:
  glass:
    fill: "{colors.glass}"
    line: "{colors.glass-line}"
    line-width: "{spacing.hairline}"
    solid: "{colors.glass-solid}"
    blur: 28px
    saturate: 180%
    highlight: "0 1px 0 0 oklch(1 0 0 / 0.95) inset"
    lift: float
  control:
    highlight: "0 1px 0 0 oklch(1 0 0 / 0.35) inset"
  scrim-blur:
    blur: 2px
  status-halo:
    width: "{spacing.halo}"
    alpha: 0.14
```

### The glass material

Glass is one recipe, applied by one class (`.glass`) or one modifier (`.studioGlass()`), never rebuilt per page:

```css
.glass {
  background: var(--material-glass-fill);
  backdrop-filter: blur(var(--material-glass-blur)) saturate(var(--material-glass-saturate));
  border: var(--material-glass-line-width) solid var(--material-glass-line);
  box-shadow: var(--material-glass-highlight), var(--elevation-float);
}
```

- **Fill:** `glass`, white at 90 % in light, carbon at 86 % in dark. **Blur and saturation:** 20 px and 140 %. **Rim:** a 0.5 px `glass-line` hairline on every edge. **Highlight:** a 1 px specular line along the top edge, `glass-specular`, drawn as the material's own inset layer, never as an elevation tier and never on a side edge. **Lift:** the tier the component names.
- The primary action inside chrome adds the `control` highlight (white at 35 %) and the `glow` tier. A primary action in the content plane is flat: no glow, no highlight.
- **Glass is chrome only.** A card, row, tile, section or table is never glass. Glass never stacks more than two layers deep (a menu over the toolbar), and never sits over content the system does not control; there it is `glass-solid`.
- **Reduced transparency** (`prefers-reduced-transparency: reduce`, or `data-transparency="reduced"` on an ancestor): the fill becomes `glass-solid`, blur and saturation drop to none, and the rim stays. **Without `backdrop-filter` support** the fill is also `glass-solid`.
- Status dots carry a halo: a 3 px ring of their own colour at 14 % (`status-halo`), which is part of the dot, not a shadow.

### Rules

- **One shadow in the content plane.** The card carries the `card` tier at rest and on hover; nothing else in the content plane casts a shadow. A card, row or tile responds to hover with an `outline-strong` border and its own state (an icon well tinting, a "+" turning), never a lift.
- **Shadows are centred.** Every shadow layer has a zero horizontal offset. An inset or sideways shadow is a side stripe by another name; the glass highlight is a top-edge material layer, kept out of the tiers.
- **Elevation and rim add up.** Every floating surface also carries its hairline, so it stays legible when the shadow does not.
- **`z-index` comes from the ladder.** A list row whose menu is open rises to `row-open`; the menu itself renders in the top layer (`popover` attribute or a portal) at `popover`, so it is never covered by the rows after it.
- **Scrims only behind dialogs and sheets.** `overlay`, with a 2 px `scrim-blur`.

## Shapes

Soft and round, never sharp. Radius has three modes, and each means one thing.

| Shape | Meaning | Components |
|---|---|---|
| `full` | *Press me* | Buttons, the composer, chips, caps links, segmented and tab tracks, toolbar pills, the capsule, the block toolbar, toasts, badges; circles (icon buttons, back, the bottom circles, the brand mark, radios, avatars, dots) |
| `xs` / `sm` / `md` | *A small part of something, or type in me* | `kbd`, checkboxes, tooltips, markers (`xs`); menu and option rows (`sm`); text fields, selects, the address field, the domain picker, thumbs, icon wells, the object head, the textarea, chart tooltips (`md`) |
| `lg` / `card` / `xl` | *I contain other things* | Rows, stat tiles, tables, menus, popovers, panels (`lg`); the card (`card`, 26 px); the feature card, dialogs, sheets (`xl`) |

| Token | Value | Applied to |
|---|---|---|
| `none` | 0 | Rules, dividers, table cells, full-bleed media, a sheet's open edge |
| `xs` | 6 px | `kbd`, checkbox, tooltip, marker |
| `sm` | 10 px | Menu items, select options, sheet items, skeletons |
| `md` | 14 px | Text fields and selects, thumbs, icon wells, the textarea, the object head, chart tooltips |
| `lg` | 20 px | List rows, stat tiles, tables, menus, popovers, panels |
| `card` | 26 px | The card |
| `xl` | 28 px | The feature card, dialogs, sheets |
| `full` | 999 px | Capsules and circles |

**Circles are true circles.** Every icon-only control is square before it is rounded (`size`, never separate width and height), so it is never an oval. Its icon sits at the optical centre. No radius is smaller than 6 px except `none`, and sharp corners never mix with the rounded vocabulary.

## Motion

Motion explains state changes. It never entertains. Every transition is interruptible: CSS transitions reverse from their current value, and scripted animations use the Web Animations API.

```yaml-extension
motion:
  ease:             "cubic-bezier(0.4, 0, 0.2, 1)"
  ease-out:         "cubic-bezier(0.16, 1, 0.3, 1)"
  ease-spring:      "cubic-bezier(0.34, 1.56, 0.64, 1)"
  duration-instant: 90ms
  duration-fast:    160ms
  duration-normal:  240ms
  duration-slow:    420ms
  press-scale:      0.97
  press-scale-circle: 0.94
  menu-rise:        6px
  menu-scale:       0.97
  section-rise:     8px
  loading-delay:    300ms
  tooltip-delay:    400ms
  typeahead-window: 500ms
  copy-confirm:     1600ms
  autosave-delay:   800ms
  toast-duration:   2200ms
  toast-action-duration: 6000ms
  toast-drop:       16px
  shimmer-stop:     10000ms
  scroll-shadow-at: 8px
```

| Token | Use |
|---|---|
| `duration-instant` + `ease-spring` | Press feedback: `scale(press-scale)`, circles `scale(press-scale-circle)`; the toggle thumb; the checkbox tick |
| `duration-fast` + `ease` | Hover, focus, colour and border changes; the segmented thumb |
| `duration-normal` + `ease-spring` | Menus and popovers entering (`menu-rise` up, `menu-scale` to 1); toasts entering |
| `duration-normal` + `ease` | Exits, theme change, accordion |
| `duration-slow` + `ease-out` | Sheets and panels sliding; the section rise on first paint (`section-rise`) |
| `ease-spring` | Press feedback, the toggle thumb, menu and toast entrances. One overshoot, never an oscillation |

- **Entrance:** sections rise `section-rise` (8 px) over `duration-slow` on first paint only, with opacity unchanged so content is visible without script. Nothing else animates on load.
- **Toasts** enter with the spring and leave with a fade and a `toast-drop` fall.
- **Animate only** `transform`, `opacity`, `background-color`, `border-color`, `color`, `box-shadow`. The accordion animates `grid-template-rows: 0fr → 1fr`, never `height`.
- **Every animated change also changes a static property** (a colour, a weight, a label), so motion is never the only cue.
- No parallax, bounce, scroll-jacking or auto-advancing carousels.

Under `prefers-reduced-motion: reduce`, every animation and transition completes in 1 ms, smooth scrolling becomes a jump, the section rise is skipped, press scales are removed and shimmer becomes a still fill. The still state is always the finished state.

## Iconography

**Phosphor, one set.** Studio uses Phosphor's vocabulary on its 256-unit grid in three weights, each with one job:

| Weight | Where |
|---|---|
| Regular | Content: wells, thumbs, rows, menus, fields, empty states |
| Bold | Chrome: toolbar icons, carets, arrows, the primary action's icon |
| Fill | State only: a toggled icon, the toast's status icon, the selected theme |

Web delivery is inline SVG from `@phosphor-icons/react` (components) or `@phosphor-icons/core` (static pages), never a webfont, because a failed font leaves icon-only controls blank. Apple delivery is SF Symbols where a Phosphor glyph has a direct SF Symbols equivalent with the same meaning, and the bundled Phosphor SVG otherwise; one view never mixes the two for the same meaning.

- **Size** comes from the control: `icon-xs` (12) inline with captions, `icon-sm` (14) in chips, segmented items and menus, `icon-md` (16) in buttons, fields and pills, `icon-chrome` (17) in toolbar circles, `icon-lg` (18) in wells and thumbs, `icon-xl` (20) in the site shell's circles, `icon-2xl` (32) in empty states.
- **Colour:** `on-surface` for meaningful icons, `on-surface-3` for icons beside a label and carets. Never `on-surface-4`.
- **Every icon means something.** Decorative icons do not exist here. Chevrons rotate rather than swap; directional glyphs mirror in right-to-left layouts.

**Icon-only controls** are true circles with an `aria-label` (the same words a labelled version would show), a tooltip after `tooltip-delay` on hover and at once on focus, the full hit area, and a hover wash and the focus ring. They are used only for universal actions (search, notifications, more, close, back, copy, undo, redo, zoom) or actions so frequent a label would be noise.

## Artwork

Artwork is template previews and empty-state illustrations: small, flat, geometric depictions of the thing being made. It is the one expressive place in Studio, and it never styles the interface.

- **It depicts the artefact.** A link template shows a share card; a site template shows a browser frame with a headline bar; a vCard template shows a card with an avatar disc and rows; a QR template shows a real, scannable module grid. Every block stands for a part of that artefact. If a shape cannot be explained, it is removed.
- **Its own palette, on its own paper.** Artwork uses the palette below, so a preview reads the same in both themes. `carbon` paper depicts a dark-themed artefact.
- **Labels are checked.** Text inside artwork uses the label colour the table gives for its background, at 4.5:1 or better, and is hidden by a container query when the artwork renders narrower than `art-label-min`.
- **Vary the composition.** A rail of templates shares the palette and vocabulary but never repeats one composition.
- **Never:** blobs, gradient meshes, radial blooms, stock-vector people, glossy 3D icons, emoji, hand-drawn illustration, or artwork's shapes and colours applied to buttons, cards or navigation.

```yaml-extension
artwork:
  paper:         "oklch(0.98 0.003 270)"
  paper-soft:    "oklch(0.95 0.004 270)"
  ink:           "oklch(0.14 0.012 270)"
  ink-soft:      "oklch(0.40 0.009 270)"
  lime:          "oklch(0.80 0.20 138)"
  lime-soft:     "oklch(0.94 0.06 135)"
  sky:           "oklch(0.74 0.11 240)"
  sky-soft:      "oklch(0.94 0.03 240)"
  lilac:         "oklch(0.76 0.11 320)"
  lilac-soft:    "oklch(0.94 0.03 320)"
  carbon:        "oklch(0.20 0.01 270)"
  carbon-soft:   "oklch(0.30 0.01 270)"
labels:
  # label colour per artwork colour; the checker verifies 4.5:1
  paper: ink
  paper-soft: ink
  ink: paper
  ink-soft: paper
  lime: ink
  lime-soft: ink
  sky: ink
  sky-soft: ink
  lilac: ink
  lilac-soft: ink
  carbon: paper
  carbon-soft: paper
```

## Components

A component is a contract: the content type it presents, the container it adapts to, every state it can reach, at most one primary action, and a way to dismiss, undo or go back. Colours, type, size and padding are in the frontmatter. Borders, gaps and elevation tiers are in the block below, keyed by the same names; a key may name a state of a frontmatter component (`field-invalid`, `card-hover`). Borders default to `hairline` (0.5 px). States every control shares are defined once in [Interaction](#interaction).

```yaml-extension
component-extensions:
  marker:                  { borderColor: "{colors.outline}", borderWidth: "{spacing.rule}" }
  glass:                   { borderColor: "{colors.glass-line}", shadow: float }
  toolbar-pill:            { borderColor: "{colors.glass-line}", gap: "{spacing.s-0}", shadow: float }
  toolbar-pill-scrolled:   { shadow: popover }
  brand-pill:              { borderColor: "{colors.glass-line}", shadow: float }
  context-pill:            { borderColor: "{colors.glass-line}", gap: "{spacing.s-2}", shadow: float }
  doc-chip:                { borderColor: transparent, gap: "{spacing.s-2}" }
  save-state:              { gap: "{spacing.s-1h}" }
  nav-capsule:             { borderColor: "{colors.glass-line}", gap: "{spacing.s-2}", shadow: float }
  nav-icon:                { borderColor: transparent }
  toolbar-icon:            { borderColor: "{colors.glass-line}", shadow: float }
  toolbar-action:          { borderColor: "{colors.primary-line}", gap: "{spacing.s-2}", shadow: glow }
  count-badge:             { borderColor: transparent }
  search-field:            { borderColor: transparent, gap: "{spacing.s-2h}" }
  search-layer:            { borderColor: "{colors.glass-line}", shadow: popover }
  kbd:                     { borderColor: "{colors.outline}" }
  back:                    { borderColor: "{colors.glass-line}", shadow: float }
  fab:                     { borderColor: "{colors.glass-line}", shadow: float }
  fab-primary:             { borderColor: "{colors.primary-line}", shadow: glow }
  dock:                    { borderColor: "{colors.glass-line}", gap: "{spacing.s-1}", shadow: float }
  dock-item:               { gap: "{spacing.s-0}" }
  nav-sheet-item:          { gap: "{spacing.s-3}" }
  skip-link:               { shadow: popover }
  kicker:                  { gap: "{spacing.s-2}" }
  section-header:          { gap: "{spacing.s-2h}" }
  caps-link:               { borderColor: "{colors.outline-strong}", gap: "{spacing.s-1h}" }
  button:                  { borderColor: transparent, gap: "{spacing.s-2}", shadow: flat }
  button-primary:          { borderColor: "{colors.primary-line}" }
  button-secondary:        { borderColor: "{colors.outline}" }
  button-secondary-hover:  { borderColor: "{colors.on-surface-3}" }
  button-icon:             { borderColor: transparent }
  button-icon-hover:       { borderColor: "{colors.outline}" }
  field:                   { borderColor: "{colors.outline}", gap: "{spacing.s-2h}" }
  field-hover:             { borderColor: "{colors.on-surface-3}" }
  field-focus:             { borderColor: "{colors.focus-field}" }
  field-invalid:           { borderColor: "{colors.error}" }
  field-error:             { gap: "{spacing.s-1h}" }
  textarea:                { borderColor: "{colors.outline-strong}" }
  input-pill:              { borderColor: transparent, gap: "{spacing.s-2h}" }
  input-pill-focus:        { borderColor: "{colors.focus-field}" }
  input-pill-submit:       { borderColor: transparent, gap: "{spacing.s-2}" }
  input-group:             { borderColor: "{colors.outline}", gap: "{spacing.s-1h}" }
  domain-picker:           { borderColor: "{colors.outline-strong}", gap: "{spacing.s-1h}" }
  select-trigger:          { borderColor: "{colors.outline}", gap: "{spacing.s-3}" }
  select-menu:             { borderColor: "{colors.glass-line}", shadow: popover }
  select-option:           { gap: "{spacing.s-2h}" }
  checkbox:                { borderColor: "{colors.outline-strong}", borderWidth: "{spacing.rule}" }
  checkbox-checked:        { borderColor: "{colors.primary-line}" }
  radio:                   { borderColor: "{colors.outline-strong}", borderWidth: "{spacing.rule}" }
  radio-checked:           { borderColor: "{colors.primary-line}" }
  toggle-track:            { borderColor: "{colors.outline-strong}" }
  toggle-track-checked:    { borderColor: "{colors.primary-line}" }
  toggle-thumb:            { borderColor: "{colors.outline-strong}", shadow: flat }
  range-thumb:             { borderColor: "{colors.outline-strong}", shadow: flat }
  swatch:                  { borderColor: "{colors.outline}" }
  swatch-selected:         { borderColor: "{colors.on-surface}", borderWidth: "{spacing.rule-thick}" }
  segmented:               { borderColor: "{colors.outline}", gap: "{spacing.s-0}" }
  segmented-item-selected: { borderColor: transparent }
  tablist:                 { borderColor: "{colors.outline-strong}", gap: "{spacing.s-0}" }
  tab-selected:            { borderColor: "{colors.outline-strong}" }
  calendar-day-today:      { borderColor: "{colors.outline-strong}" }
  menu:                    { borderColor: "{colors.glass-line}", shadow: popover }
  menu-item:               { gap: "{spacing.s-3}" }
  account-menu:            { borderColor: "{colors.glass-line}", shadow: popover }
  plan-chip:               { borderColor: transparent }
  avatar:                  { borderColor: "{colors.outline}" }
  popover:                 { borderColor: "{colors.glass-line}", shadow: popover }
  tooltip:                 { shadow: popover }
  toast:                   { borderColor: "{colors.glass-line}", gap: "{spacing.s-2h}", shadow: popover }
  modal:                   { borderColor: "{colors.outline}", gap: "{spacing.s-5}", shadow: modal }
  sheet:                   { borderColor: "{colors.outline}", shadow: modal }
  panel:                   { borderColor: "{colors.glass-line}", shadow: float }
  object-head:             { borderColor: transparent, gap: "{spacing.s-2h}" }
  card:                    { borderColor: "{colors.outline}", shadow: card }
  card-hover:              { borderColor: "{colors.outline-strong}", shadow: card }
  card-feature:            { borderColor: "{colors.outline}", shadow: flat }
  create-tile:             { borderColor: "{colors.outline}", shadow: flat }
  create-tile-hover:       { borderColor: "{colors.outline-strong}", shadow: flat }
  template-card:           { borderColor: "{colors.outline}", shadow: flat }
  template-card-hover:     { borderColor: "{colors.outline-strong}", shadow: flat }
  icon-well:               { borderColor: "{colors.outline}" }
  icon-well-link:          { borderColor: transparent }
  icon-well-biopage:       { borderColor: transparent }
  icon-well-qr:            { borderColor: transparent }
  icon-well-vcard:         { borderColor: transparent }
  icon-well-event:         { borderColor: transparent }
  icon-well-file:          { borderColor: transparent }
  icon-well-static:        { borderColor: transparent }
  icon-well-splash:        { borderColor: transparent }
  icon-well-payment:       { borderColor: transparent }
  stat-tile:               { borderColor: "{colors.outline}", shadow: flat }
  stat-tile-featured:      { borderColor: "{colors.primary-line}", shadow: flat }
  delta-pill:              { borderColor: transparent, gap: "{spacing.s-0}" }
  list-row:                { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  list-row-hover:          { borderColor: "{colors.outline-strong}", shadow: flat }
  list-row-thumb:          { borderColor: "{colors.outline}" }
  list-row-thumb-link:     { borderColor: transparent }
  list-row-thumb-biopage:  { borderColor: transparent }
  list-row-thumb-qr:       { borderColor: transparent }
  list-row-thumb-vcard:    { borderColor: transparent }
  list-row-thumb-event:    { borderColor: transparent }
  list-row-thumb-file:     { borderColor: transparent }
  list-row-thumb-static:   { borderColor: transparent }
  list-row-thumb-splash:   { borderColor: transparent }
  list-row-thumb-payment:  { borderColor: transparent }
  list-row-meta:           { gap: "{spacing.s-2}" }
  kind-badge:              { borderColor: transparent, gap: "{spacing.s-1h}" }
  kind-chip:               { borderColor: "{colors.outline}", gap: "{spacing.s-1h}" }
  kind-chip-selected:      { borderColor: "{colors.inverse-surface}" }
  chip:                    { borderColor: "{colors.outline-strong}", gap: "{spacing.s-1h}" }
  chip-selected:           { borderColor: "{colors.outline-strong}" }
  badge:                   { borderColor: transparent, gap: "{spacing.s-1}" }
  callout:                 { borderColor: "{colors.outline}", gap: "{spacing.s-3}" }
  callout-progress:        { borderColor: transparent }
  callout-error:           { borderColor: transparent }
  callout-success:         { borderColor: transparent }
  callout-warning:         { borderColor: transparent }
  callout-info:            { borderColor: transparent }
  table:                   { borderColor: "{colors.outline}" }
  table-cell:              { borderColor: "{colors.outline-soft}" }
  scroll-region:           { borderColor: "{colors.outline}", gap: "{spacing.s-4}" }
  canvas-handle:           { borderColor: "{colors.focus}", borderWidth: "{spacing.selection-w}" }
  spinner:                 { borderColor: currentColor, borderWidth: "{spacing.rule-thick}" }
  empty-state:             { gap: "{spacing.s-3}" }
  chart-tooltip:           { borderColor: transparent, shadow: popover }
  legend-item:             { gap: "{spacing.s-1h}" }
  sidebar:                 { gap: "{spacing.s-0}" }
  sidebar-item:            { borderColor: transparent, gap: "{spacing.s-3}" }
  sidebar-item-current:    { borderColor: "{colors.outline}", shadow: flat }
  sidebar-new:             { borderColor: "{colors.primary-line}", gap: "{spacing.s-2}", shadow: glow }
  workspace-switcher:      { borderColor: transparent, gap: "{spacing.s-2h}" }
  topbar:                  { gap: "{spacing.s-3}" }
  topbar-pill:             { borderColor: "{colors.glass-line}", gap: "{spacing.s-0}", shadow: float }
  topbar-search:           { borderColor: "{colors.glass-line}", gap: "{spacing.s-2h}", shadow: float }
  tab-fab:                 { borderColor: "{colors.primary-line}", shadow: glow }
  tabbar:                  { borderColor: "{colors.glass-line}", gap: "{spacing.s-0}", shadow: float }
  tab-item:                { borderColor: transparent, gap: "{spacing.s-0}" }
  new-sheet:               { borderColor: "{colors.outline}", gap: "{spacing.s-5}", shadow: modal }
  kind-tile:               { borderColor: transparent, gap: "{spacing.s-2}", shadow: tile }
  kind-tile-hover:         { borderColor: transparent, shadow: tile }
  home-hero:               { gap: "{spacing.s-5}" }
  hero-stats:              { borderColor: "{colors.outline}", gap: "{spacing.s-2h}" }
  hero-stat-card:          { borderColor: "{colors.outline}", gap: "{spacing.s-1}", shadow: flat }
  composer:                { borderColor: transparent, gap: "{spacing.s-4}", shadow: bloom }
  stat-card:               { borderColor: transparent, gap: "{spacing.s-2}", shadow: tile }
  stat-card-featured:      { borderColor: "{colors.primary-line}", shadow: flat }
  resource-row:            { borderColor: "{colors.outline}", gap: "{spacing.s-3h}", shadow: flat }
  resource-row-hover:      { borderColor: "{colors.outline-strong}", shadow: flat }
  resource-row-compact:    { borderColor: "{colors.outline}", gap: "{spacing.s-2h}", shadow: flat }
  look-card:               { borderColor: "{colors.outline}", shadow: flat }
  look-card-hover:         { borderColor: "{colors.outline-strong}", shadow: flat }
  collection-header:       { gap: "{spacing.s-3}" }
  filter-button:           { borderColor: "{colors.outline-strong}", gap: "{spacing.s-1h}" }
  results-line:            { gap: "{spacing.s-2}" }
  editor-bar:              { gap: "{spacing.s-2}" }
  editor-pill:             { borderColor: "{colors.glass-line}", gap: "{spacing.s-2}", shadow: float }
  library-panel:           { borderColor: "{colors.glass-line}", gap: "{spacing.s-4}", shadow: float }
  library-tile:            { borderColor: "{colors.outline}", gap: "{spacing.s-2}", shadow: flat }
  library-tile-hover:      { borderColor: "{colors.outline-strong}", shadow: flat }
  library-tile-current:    { borderColor: "{colors.primary-line}" }
  editor-canvas:           { gap: "{spacing.s-4}" }
  inspector-panel:         { borderColor: "{colors.glass-line}", gap: "{spacing.s-0}", shadow: float }
  inspector-section:       { borderColor: "{colors.outline}", gap: "{spacing.s-3h}" }
  more-options:            { borderColor: "{colors.outline}", gap: "{spacing.s-2}" }
  editor-sheetbar:         { borderColor: "{colors.glass-line}", gap: "{spacing.s-1}", shadow: float }
  editor-sheetbar-item:    { borderColor: transparent, gap: "{spacing.s-1h}" }
  address-field:           { borderColor: "{colors.outline-strong}", gap: "{spacing.s-1h}" }
  share-card:              { borderColor: "{colors.outline}", gap: "{spacing.s-3}", shadow: flat }
  contact-card:            { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  event-card:              { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  file-card:               { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  splash-preview:          { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  checkout-card:           { borderColor: "{colors.outline}", gap: "{spacing.s-4}", shadow: flat }
  static-frame:            { borderColor: "{colors.outline}", shadow: modal }
  code-block:              { borderColor: "{colors.outline}" }
  code-editor:             { borderColor: "{colors.outline-strong}" }
  code-editor-focus:       { borderColor: "{colors.focus-field}" }
  block-toolbar:           { borderColor: "{colors.glass-line}", gap: "{spacing.s-0}", shadow: popover }
  block-handle:            { borderColor: transparent }
  palette-item:            { borderColor: "{colors.outline}", gap: "{spacing.s-2}" }
  palette-item-hover:      { borderColor: "{colors.outline-strong}" }
  notification-group:      { borderColor: transparent, gap: "{spacing.s-2h}", shadow: tile }
  notification-group-more: { borderColor: "{colors.outline}", gap: "{spacing.s-1h}" }
  notification-row:        { borderColor: transparent, gap: "{spacing.s-3h}", shadow: flat }
```

### Component keys

The full list of frontmatter and extension keys, grouped by what they are for. A state key (`-hover`, `-active`, `-focus`, `-selected`, `-current`, `-checked`, `-disabled`, `-invalid`, `-on`) modifies the key before it. This table is the vocabulary every build follows.

| Group | Keys | For |
|---|---|---|
| Page | `page`, `page-edge`, `selection` | The page field and its ink; the editor's deeper field; selected text |
| Focus | `focus-ring`, `field-focus-border`, `field-focus-halo` | The 2 px ring on buttons and links; a focused field's border and halo |
| Rules | `divider`, `divider-soft`, `separator-dot`, `marker` | Hairlines between siblings; the dot between meta items; section numbers |
| Headline parts | `accent-word`, `kicker`, `kicker-dot`, `page-kicker`, `section-kicker` | The serif accent word; mono captions above headlines and their dot |
| Material | `glass`, `glass-solid`, `glass-rim`, `glass-highlight`, `primary-glow-layer` | The chrome material, its opaque fallback, rim, specular line and the lime glow |
| App shell | `sidebar`, `sidebar-rail`, `sidebar-brand`, `sidebar-item`, `sidebar-item-hover`, `sidebar-item-current`, `sidebar-marker`, `sidebar-section-title`, `sidebar-count`, `sidebar-count-current`, `sidebar-new`, `workspace-switcher`, `workspace-switcher-detail`, `workspace-avatar`, `topbar`, `topbar-pill`, `topbar-page`, `topbar-search`, `topbar-action`, `tabbar`, `tab-item`, `tab-item-current`, `tab-fab`, `new-sheet`, `kind-tile`, `kind-tile-hover`, `kind-tile-blurb` | The flush sidebar and its rail, brand, rows, marker, labels, counts and New; the workspace switcher and its mark; the top bar's glass pills, page caption, search pill and action circles; the phone's tab pill and New circle; the New sheet and its nine kind tiles |
| Home | `home-hero`, `home-hero-compact`, `home-hero-lead`, `hero-stats`, `hero-stat-label`, `hero-stat-card`, `composer`, `stat-card`, `stat-card-featured`, `resource-row`, `resource-row-hover`, `resource-row-compact`, `look-card`, `look-card-hover` | The hero, its figures (a column, or the phone's 3-up cards), the composer card, the library's stat cards, resource rows (and the library's compact rows), look cards |
| Editor workspace | `editor-workspace`, `editor-bar`, `editor-pill`, `editor-pill-kind`, `library-panel`, `library-tile`, `library-tile-hover`, `library-tile-current`, `editor-canvas`, `inspector-panel`, `object-head`, `object-head-type`, `inspector-section`, `more-options`, `editor-sheetbar`, `editor-sheetbar-item`, `editor-sheetbar-item-current`, `address-field` | The workspace field, the editor bar and its kind pill, the library and its tiles, the canvas, the inspector, its object head, sections and More options; the narrow sheet bar; the address under the name |
| Canvas previews | `share-card`, `contact-card`, `event-card`, `file-card`, `splash-preview`, `checkout-card`, `static-frame`, `preview-meta` | What each kind's visitor gets, drawn on the canvas (Kinds) |
| App frame | `app-shell` | The page beside the sidebar, or under the phone's bars |
| Collections | `collection-header`, `collection-title`, `filter-button`, `results-line` | The one-row list header, its title, the Filter button and the results line under it |
| Bio page canvas | `block-toolbar`, `block-handle`, `block-chip`, `drop-indicator`, `palette-item` | The selected block's floating toolbar, drag handle and type chip; the insertion rule; a palette tile |
| Code | `code-block`, `code-editor`, `code-editor-focus`, `code-token-*` (`punctuation`, `comment`, `keyword`, `string`, `number`, `function`, `attr`, `tag`), `code-line-added`, `code-line-removed`, `code-line-highlight` | Highlighted code, the code field, and each role measured on its surface |
| Toolbar (site shell and editor bar) | `toolbar`, `toolbar-compact`, `toolbar-pill`, `toolbar-pill-compact`, `toolbar-pill-scrolled`, `brand-pill`, `nav-brand-mark`, `nav-brand-label`, `context-pill`, `context-label`, `doc-chip`, `doc-chip-hover`, `toolbar-icon`, `toolbar-action`, `count-badge` | The floating row, its pills, the brand mark and label, top-level icon circles (search, notifications, More), the editor bar's primary action and the count badge |
| Site navigation (Portico) | `nav-link`, `nav-link-hover`, `nav-link-current`, `nav-capsule`, `nav-icon`, `nav-icon-hover`, `nav-icon-on`, `nav-sheet-item`, `nav-sheet-item-current`, `nav-sheet-descriptor`, `skip-link` | Destinations in the links pill; the utility capsule and its circles; the menu sheet; the skip link |
| Narrow site navigation | `back`, `fab`, `fab-primary`, `dock`, `dock-item`, `dock-item-current` | The back circle (also the editor bar's); the site shell's bottom menu and action circles. `dock*` is retained for compatibility and unused by the app shell since 2.1 |
| Search | `search-field`, `search-field-focus`, `search-layer`, `kbd` | The search field, the search layer it opens, keyboard hints |
| Save state | `save-state`, `save-state-failed`, `status-dot`, `status-dot-editing`, `status-dot-draft`, `status-dot-failed` | The icon-plus-word save status beside a document name; status dots |
| Page head | `page-head`, `page-lead`, `fact`, `fact-label`, `section-header`, `caps-link`, `caps-link-hover` | Page title, lead and facts; section titles; the mono "View all" link |
| Buttons | `button`, `button-primary`, `button-primary-hover`, `button-primary-active`, `button-primary-disabled`, `button-secondary`, `button-secondary-hover`, `button-secondary-active`, `button-ghost`, `button-ghost-hover`, `button-ghost-active`, `button-danger`, `button-sm`, `button-lg`, `button-icon`, `button-icon-hover`, `button-icon-sm`, `button-icon-on` | Three tiers and the confirmation-only danger variant; sizes; icon-only circles |
| Fields | `field`, `field-hover`, `field-focus`, `field-invalid`, `field-disabled`, `field-readonly`, `field-mono`, `field-placeholder`, `field-label`, `field-hint`, `field-error`, `field-unit`, `textarea`, `input-group`, `domain-picker`, `domain-globe` | The input family: every single-line field, its layers and states; the textarea; a field with a prefix or button; the domain picker |
| Composer | `input-pill`, `input-pill-focus`, `input-pill-submit` | The 54 px command field with its action inside (paste, shorten) |
| Choice | `select-trigger`, `select-menu`, `select-option`, `select-option-active`, `select-option-selected`, `checkbox`, `checkbox-checked`, `radio`, `radio-checked`, `toggle-track`, `toggle-track-checked`, `toggle-thumb`, `range-track`, `range-fill`, `range-thumb`, `swatch`, `swatch-selected`, `segmented`, `segmented-item`, `segmented-item-hover`, `segmented-item-selected` | Selects, checks, toggles, ranges, colour swatches, segmented controls |
| Tabs and dates | `tablist`, `tab`, `tab-selected`, `calendar-day`, `calendar-day-today`, `calendar-day-in-range`, `calendar-day-selected`, `calendar-day-outside` | Panel tabs; the date-range picker |
| Menus | `menu`, `menu-sm`, `menu-header`, `menu-header-email`, `menu-label`, `menu-item`, `menu-item-hover`, `menu-item-danger`, `menu-item-shortcut`, `menu-separator`, `account-menu`, `plan-chip`, `avatar`, `avatar-xs`, `avatar-md`, `avatar-lg` | Every dropdown, the account menu and its parts, avatars |
| Layers | `popover`, `popover-label`, `tooltip`, `toast`, `toast-icon-success`, `toast-icon-error`, `modal`, `modal-sm`, `modal-lg`, `modal-title`, `modal-context`, `modal-backdrop`, `sheet`, `sheet-grip` | Popovers, tooltips, toasts, dialogs, sheets |
| Panels | `panel`, `panel-head`, `panel-section`, `panel-section-label`, `canvas`, `canvas-selection`, `canvas-handle` | Generic floating panels and their sections (the site's reading rails, the gallery); the canvas field, selection outline and handles. `context-*` is retained for compatibility |
| Cards | `card`, `card-hover`, `card-feature`, `card-title`, `card-blurb`, `create-tile`, `create-tile-hover`, `template-card`, `template-card-hover`, `template-art`, `template-meta`, `icon-well`, `icon-well-link`, `icon-well-qr`, `icon-well-site`, `icon-well-vcard` | Records as cards, the feature card, create tiles, template cards and their art, kind-tinted icon wells |
| Stats | `stat-tile`, `stat-tile-featured`, `stat-label`, `stat-sub`, `delta-pill`, `delta-pill-up`, `delta-pill-down`, `sparkline`, `sparkline-line` | The stat tile and its parts |
| List rows | `list-row`, `list-row-hover`, `list-row-thumb`, `list-row-thumb-link`, `list-row-thumb-qr`, `list-row-thumb-site`, `list-row-thumb-vcard`, `list-row-meta`, `list-row-host`, `list-row-value`, `list-row-unit` | One object per row: thumb, title, meta, value, overflow |
| Status and kinds | `status-live`, `status-paused`, `status-draft`, `status-failed`, `kind-badge`, `kind-dot-link`, `kind-dot-qr`, `kind-dot-site`, `kind-dot-vcard`, `chip`, `chip-hover`, `chip-selected`, `badge` | Status words; kind badges and dots; filter chips; metadata badges |
| Feedback | `callout`, `callout-progress`, `callout-error`, `callout-success`, `callout-warning`, `callout-info`, `skeleton`, `spinner`, `progress-track`, `progress-fill`, `empty-state`, `empty-state-title` | Five statuses plus neutral; loading; empty |
| Tables | `table`, `table-header`, `table-cell`, `table-row-hover`, `rank-bar`, `rank-bar-fill`, `scroll-region` | Data tables, ranked rows with proportional bars, scroll containers |
| QR swatches | `qr-swatch-ink` … `qr-swatch-night` | The inks and papers the QR inspector offers |
| Charts | `chart`, `chart-caption`, `chart-gridline`, `chart-axis`, `chart-track`, `chart-tooltip`, `legend-item`, `legend-swatch`, `chart-series-1` … `chart-series-8` | Chart furniture and series |

### Build names

The components every platform builds, one name per concept. React components are exported from `@aidenlive/studio-react`; SwiftUI views from `StudioKit`, with the `Studio` prefix. Each reads the keys beside it and nothing else.

| React | SwiftUI | Reads |
|---|---|---|
| `AppShell` / `Sidebar` / `SidebarSection` / `SidebarItem` / `SidebarMore` / `Fab` | the system sidebar: a `TabView` with `.tabViewStyle(.sidebarAdaptable)` (iPad and Mac at regular width; the tab bar at compact width) | `app-shell`, `sidebar*`, `tab-fab` |
| `WorkspaceSwitcher` / `WorkspaceAvatar` | the sidebar's footer (regular width); the account menu's workspaces (compact) | `workspace-*`, `account-menu`, `menu-*`, `avatar*`, `segmented*` |
| `TopBar` / `TopBarSearch` / `TopBarAction` | the window or navigation toolbar: the avatar, `.searchable`, toolbar items | `topbar*`, `kbd`, `avatar*` |
| `TabBar` / `TabsItem` | the system `TabView` (iPhone; the floating tab bar at the top on iPad) | `tabbar`, `tab-item*` |
| `NewSheet` / `KindTile` | `StudioNewSheet` / `StudioKindTile` | `new-sheet`, `kind-tile*`, `icon-well-*` |
| `HomeHero` | `StudioHomeHero` | `home-hero*`, `hero-stats`, `hero-stat-*`, `section-kicker`, `accent-word` |
| `Composer` | `StudioComposer` | `composer`, `input-pill*`, `domain-picker` |
| `StatCard` | `StudioStatCard` | `stat-card*`, `stat-label`, `delta-pill*`, `sparkline*` |
| `ResourceRow` | `StudioResourceRow` | `resource-row*`, `list-row-thumb-*`, `list-row-meta`, `kind-badge`, `status-*`, `button-icon-sm` |
| `LookCard` | `StudioLookCard` | `look-card*`, `template-art`, `template-meta` |
| `CollectionHeader` | `StudioCollectionHeader` | `collection-header`, `collection-title`, `search-field`, `button*` |
| `FilterButton` | `StudioFilterButton` | `filter-button`, `count-badge`, `popover*` |
| `ResultsLine` | `StudioResultsLine` | `results-line` |
| `KindPicker` / `SortMenu` | `StudioKindPicker` / a `Menu` on the sort box | `kind-chip*`; `segmented` (the sort box shares the view toggle's track), `menu-*` |
| `EditorWorkspace` | `StudioEditorWorkspace` (three panes on iPad and Mac: the library as a collapsible leading panel, the preview, `.inspector` trailing; on iPhone the preview with Library and Settings as sheets) | `editor-workspace`, and the components below |
| `EditorBar` | the editor's system toolbar | `editor-bar`, `editor-pill*`, `back`, `toolbar-action`, `toolbar-icon`, `save-state` |
| `LibraryPanel` / `LibraryTile` | `StudioLibraryPanel` / `StudioLibraryTile` | `library-panel`, `library-tile*`, `resource-row-compact`, `palette-item` |
| `EditorCanvas` | `StudioEditorCanvas` | `editor-canvas`, `canvas*` |
| `InspectorPanel` / `ObjectHead` / `InspectorSection` / `MoreOptions` | `.inspector` holding `StudioObjectHead`, `Section`s and a `DisclosureGroup` | `inspector-panel`, `object-head*`, `inspector-section`, `more-options`, `toggle-*` |
| `EditorPanel` / `PanelGroup` / `PanelRow` / `PanelFields` / `PanelPad` / `PanelCopy` (`EditorWorkspace variant="panels"`, `EditorBar variant="title"`) | web only so far: the walkthrough's Settings and Customise panels (Editor-Matrix); StudioKit keeps the library and inspector | `editor-panel`, `panel-group`, `panel-row`, `panel-row-value`, `editor-switch*` |
| `PanelAction` | web only so far: a group's one action, a quiet word on its label's line (Reach › Add, Editor-vCard-Desktop) with a 44 px target | `panel-group` |
| `SocialCard`, `ShareFlow` | web only so far | `editor-panel` canvas objects |
| `AddressField` | `StudioAddressField` | `address-field`, `domain-picker`, `button-icon-sm` |
| `OptionTiles` / `SwatchRow` | `StudioOptionTiles` / `StudioSwatchRow` | `library-tile*`, `swatch*`, `qr-swatch-*` |
| `ShareCard`, `ContactCard`, `EventCard`, `FileCard`, `SplashPreview`, `CheckoutCard`, `StaticFrame`, `QRArt` | the same names with the `Studio` prefix; `StaticFrame` is web-only (StudioKit shows the file's name with a preview in the system viewer) | `share-card`, `contact-card`, `event-card`, `file-card`, `splash-preview`, `checkout-card`, `static-frame`, `preview-meta`, `qr-*` |
| `BlockCanvas` / `BlockToolbar` / `BlockPalette` | `StudioBlockCanvas` (reorder by `.draggable` / `.dropDestination`) | `block-*`, `drop-indicator`, `palette-item`, `canvas-selection` |
| `KINDS` | `StudioKind` | The kinds registry (Kinds) |
| `CodeBlock` | `StudioCodeBlock` (renders pre-tokenised runs) | `code-block`, `code-token-*`, `code-line-*` |
| `CodeEditor` | none: the custom-HTML block is web-only | `code-editor*`, `code-token-*` |
| `highlight()` | none: tokens are produced off the device | `code-roles.json` |
| `Toolbar` | `StudioToolbar` | `toolbar*`, `brand-pill`, `nav-brand-*`, `nav-*`: the site shell's row |
| `ToolbarPill` | `StudioToolbarPill` | `toolbar-pill`, `glass` |
| `Button` | `StudioButton` | `button*`, `toolbar-action`, `input-pill-submit` |
| `IconButton` | `StudioIconButton` | `button-icon*`, `toolbar-icon`, `nav-icon*`, `back`, `fab*` |
| `PageHead` | `StudioPageHead` | `page-head`, `page-kicker`, `page-lead`, `fact*`, `accent-word`: site and reading views only |
| `SectionHeader` | `StudioSectionHeader` | `section-header`, `section-kicker`, `kicker-dot`, `caps-link*`, `accent-word` |
| `StatTile` | `StudioStatTile` | `stat-*`, `delta-pill*`, `sparkline*` |
| `ListRow` | `StudioListRow` | `list-row*`, `kind-badge`, `status-*`, `button-icon-sm`: generic rows (Analytics, Settings) |
| `KindBadge` | `StudioKindBadge` | `kind-badge`, `kind-dot-*` |
| `Chip` | `StudioChip` | `chip*`, `plan-chip`, `badge` |
| `Segmented` | `StudioSegmented` | `segmented*`, `tablist`, `tab*` |
| `Field` | `StudioField` | `field*`, `textarea`, `input-group`, `select-trigger`, `domain-picker` |
| `InputPill` | `StudioInputPill` | `input-pill*` |
| `Menu` | `StudioMenu` | `menu*`, `select-menu`, `select-option*`, `popover*` |
| `AccountMenu` | `StudioAccountMenu` | `account-menu`, `menu-*`, `plan-chip`, `avatar*`, `segmented*` |
| `Toast` | `StudioToast` | `toast*` |
| `Modal` | `StudioModal` | `modal*` |
| `Sheet` | `StudioSheet` | `sheet*`, `nav-sheet-*` |
| `EmptyState` | `StudioEmptyState` | `empty-state*`, `icon-well` |
| `Sparkline` | `StudioSparkline` | `sparkline*`, `chart-series-*` |
| `ThemeProvider` / `useTheme` | `StudioTheme` (environment value) | `data-theme`, `data-density`, `data-contrast`, `data-transparency` |
| `Density` | `StudioDensity` | The `density` block |

The Bio page canvas's drag and drop is built on `@dnd-kit/core` and `@dnd-kit/sortable` (MIT) behind studio-react's reorder helper; no other drag library is used. The 2.1 exports `Drawer` and `TodayCard` are retired; 2.2's `PagePill` and `DestinationMenu` are retired by 2.3, whose `AppShell` and `Sidebar` are new components under the old names.

The Portico binding is `@aidenlive/studio-portico`: Portico's contract properties set to Studio's roles, so Portico's row, sheet and circles wear Studio's pills. It is used by the site shell only (Navigation).

### Toolbar and its pills

The site shell's row and the editor bar: separate glass pills, each `toolbar-h` tall (46, compact 42), floating `nav-top` below the top edge. There are no split pills and no dividers inside a pill.

- **Brand pill:** a `brand-pill` circle holding the 30 px `nav-brand-mark` (the italic Bounded "S", `inverse-surface` fill). In the site shell at wide widths the mark is followed by the `nav-brand-label` "STUDIO" inside one pill; in the app it is the mark alone. It routes home; its accessible name is "Studio, home".
- **Toolbar icons:** `toolbar-icon` circles, `nav-h` across, `icon-chrome` bold glyphs, a `count-badge` at the top end (9 px from the top, 8 px from the end). Toggled, the circle takes `surface-3` and the filled glyph, never lime.
- **Toolbar action:** the editor bar's primary action at full bar height, `toolbar-action` with the `control` highlight and `glow`. Hover brightens to `primary-hover`; active scales to `press-scale`. On app views the primary action is in the content; the sidebar's New is the ink `sidebar-new`.
- **Scroll:** past `scroll-shadow-at` every pill deepens from `float` to `popover` (`toolbar-pill-scrolled`); nothing moves or resizes.

### Buttons

Anatomy: `[icon] Label`, centred, in a `full` capsule at `control-h` (38). Labels are one word and never wrap: New, Save, Publish, Export, Shorten, Copy, Share, Delete. The object comes from context; the fuller meaning goes in `aria-label`, which begins with the visible word ("Publish" → "Publish spring25").

| Variant | Treatment | Job |
|---|---|---|
| `primary` | Lime fill, `on-primary` ink, `primary-line` rim, bold icon | The one primary action of the view |
| `secondary` | `surface`, `outline-strong` rim | Every other labelled action |
| `ghost` | No chrome; `scrim` on hover | Tertiary actions, Cancel |
| `danger` | `error` fill, `on-error` ink | The confirm button of a destructive dialog only |
| `icon` | 34 px true circle, transparent; `surface-2` on hover | Universal and frequent actions |

Sizes: `sm` (30), default (38), `lg` (46). States: hover changes colour only (and the primary's rim firms); active scales to `press-scale` (circles `press-scale-circle`); focus shows the ring; disabled uses `surface-3` / `on-surface-3` (`aria-disabled` when it must stay focusable to explain why); loading swaps the icon for a spinner, keeps the label and the width, and sets `aria-busy`. `Enter` and `Space` activate. A button is never removed from the tab order to disable it. State confirms in the button's own word: Publish → Publishing… → Published.

### Section header and caps link

A `section-kicker` (an ink `kicker-dot` plus a mono caption, optionally two captions joined by a 3 px `separator-dot`) over a `headline-md` two-tone title, `s-2h` apart, with an optional `caps-link` on the same row at the end, aligned to the title's last baseline. `s-4` separates the header from the section's first block.

The `caps-link` ("View all · 24 →") is a 30 px `surface` pill with an `outline-strong` rim and a `caption-md` label; on hover it takes `surface-2` and `on-surface`, and its arrow moves 2 px towards the end. It is a link to a hub, so it is an `<a>`, and its label is never the only description of the destination (`aria-label="View all 24 recent items"`).

### Input family

Text field, search, select, combobox, number, date, domain picker, textarea and the composer share one family: the same `outline-strong` rim, the `md` radius (14 px; the composer stays a `full` pill), Certia `body-md` (mono roles for URLs, slugs and numbers), `s-3h` side padding, `icon-md` affordances and the same states. Height is `field-h` (48, the walkthrough's inputs) except where content needs more: the growing textarea and the 54 px composer. Segmented controls, tab tracks and the composer's submit stay 40 px (`s-8`).

Anatomy: `field-label` (above, always visible) → field (value, plus a trailing affordance: caret, clear, unit or icon) → `field-hint` or `field-error`. A placeholder is an example in `on-surface-3`, never the label.

| State | Treatment |
|---|---|
| Rest | `surface-2` fill, `outline-strong` rim |
| Hover | Rim firms to `on-surface-3` |
| Focus | Fill becomes `surface`, rim becomes `focus-field`, plus a 3 px `focus-field-halo` |
| Filled | Unchanged from rest |
| Invalid | `error` rim, `aria-invalid`, and a message with an icon that names the fix, linked by `aria-describedby` |
| Disabled | `surface-3` / `on-surface-3`, rim kept |
| Read-only | `surface`, `on-surface-2`, rim kept, with a Copy affordance |

- **Input group:** a field with a prefix (the domain) or a trailing button sharing one rim; the parts are separated by space, never by a rule. Focus styles the group through `:focus-within`.
- **Domain picker:** a 48 px `surface` field (`md` radius) with a 24 px `domain-globe` in the lime tint, the domain in `mono-md`, and a caret; it opens a `popover` of domains with one-line descriptors, a check on the selected one, and a custom-domain row.
- **Number field:** `mono-md` value with a `field-unit` caption at the end.
- **Textarea:** at least `textarea-min`, `resize: vertical`.
- At narrow widths every field spans its container and keeps its height and hit area.

### Composer

The `input-pill` is Studio's command field: one 54 px pill for pasting a URL, with its key action inside it at the end (`input-pill-submit`, a 40 px lime pill reading "Shorten"). The value is `mono-lg`; the placeholder is `body-md` in `on-surface-3`. The composed short link is a second composer: `domain-picker` / slug / Shorten in one rim. Options (UTM tags, expiry, password) open from an "Options" ghost button below it, in a popover; they never line up as selects above the field. Below `compose-at` the parts wrap onto two lines inside the same rim: in the composed short link the domain and slug share the first and Shorten spans the second; in Home's paste-a-URL composer the URL keeps its own pill, and in the short-link pill under it the domain picker and the alias share the first line and Shorten spans the second. The composer is the view's primary action on Home.

### Checkbox, radio, toggle, range, swatch

- **Checkbox and radio:** an 18 px box (`xs`) or circle with a 1 px `outline-strong` rim, inside a `row-h` row with a clickable `body-md` label. Checked: `primary` fill, `on-primary` glyph, `primary-line` rim. Indeterminate, disabled and invalid (group level) are designed. The real `<input>` is visually hidden but focusable; the ring draws on the visible box. `Space` toggles; in a radio group arrows move and select, and the group is one tab stop.
- **Toggle:** a 44 × 26 track (`surface-3`, `outline-strong` rim) with a 22 px thumb; on, the track is `primary`. Toggles are for settings that apply at once; a checkbox is for values submitted with a form.
- **Range:** a 4 px `surface-3` track, a `primary-line` fill and an 18 px thumb with an `outline-strong` rim, always beside a visible label and its current value in `mono-sm`. `←` `→` step, `Home` `End` jump.
- **Swatch:** a 32 px circle of the colour it sets, with an `outline` rim; selected, a 2 px `on-surface` ring and an `aria-checked` radio role. The colour's name is its accessible name.

### Select

A button-triggered listbox for options with icons, descriptions or groups; native `<select>` stays right for long plain lists, styled to the family. `select-trigger` (value + caret) → `select-menu` (glass, `popover`, at most `menu-max-h`, own scroll) → `select-option` rows at `row-h`. The active option takes `surface-2`; the selected one `surface-3` with a check.

Roles: trigger `role="combobox"` with `aria-expanded`, `aria-haspopup="listbox"`, `aria-controls`; menu `role="listbox"`; options `role="option"` with `aria-selected`; the active option by `aria-activedescendant`. `Space` `Enter` `↓` `↑` open; arrows move, `Home` `End` jump; typing matches within `typeahead-window`; `Enter` selects and closes; `Escape` closes and restores; `Tab` commits. Below `overlay-at` it opens as a sheet with the same roles.

### Segmented control and tabs

**Segmented:** one choice among two to five short options that apply at once (the theme, a chart's range, a view mode). A 40 px `surface-2` capsule track with an `outline-strong` rim; the selected item is a `surface` capsule with an `outline-strong` rim and `label-lg` weight, moving with `duration-fast`. `role="radiogroup"` with `role="radio"` items; `Tab` enters at the selected item; arrows move and select. When the container cannot give every item its hit area, it becomes a select.

**Tabs** switch panels in one region (an inspector's Design and Content). They look like the segmented control, because Studio's current-state treatment is one treatment, but carry `tablist` / `tab` / `tabpanel` roles: one tab stop, arrows move and activate, `Home` and `End` jump. Labels are one word. An overflowing tablist scrolls with the last tab peeking and never wraps. A page's sections (Account) use `variant="nav"`: no track, each tab a quiet pill with its icon and the current one on the `scrim` wash; a row that scrolls sideways above the panel, and from `rails-at` a `tabs-rail-w` list beside it. A settings group is one card: its kicker, title and action inside it, then rows (an optional `icon-well` tile, the name, the hint, the control), hairlines that stop at the card's content edge, and an optional closing notice.

### Menu and account menu

Every dropdown (row overflow, account, toolbar menus) is one `menu`: glass, `lg`, `s-1h` padding, `popover` tier, entering with `menu-rise` and `menu-scale` on the spring. It holds an optional `menu-header`, groups of `menu-item` rows at `row-h` (label at the start, an `icon-sm` glyph in `on-surface-3` or a `menu-item-shortcut` at the end), `menu-label` captions above groups, `menu-separator` hairlines between groups, and any destructive item last, in `error`. Items are one to three words; a menu holds at most eight actions.

The **account menu** is `menu-w` (272) wide, anchored to the avatar's end edge:

```
┌ account-menu · glass · lg ──────────────────────────┐
│ (D)  Daria Moss                              [PRO]  │  avatar-md · label-md · plan-chip
│      daria@studio.example                            │  menu-header-email, truncates
│ ──────────────────────────────────────────────────  │
│ THEME                                               │  menu-label
│ ( Light | Dark | Auto )                             │  segmented
│ ──────────────────────────────────────────────────  │
│ Settings                                       ⚙    │
│ Plan                                           ◫    │  read-only plan details
│ Shortcuts                                      ⌘    │
│ ──────────────────────────────────────────────────  │
│ Sign out                                       ↪    │  menu-item-danger
└─────────────────────────────────────────────────────┘
```

Roles: `<button aria-haspopup="menu" aria-expanded>`; `role="menu"`; `menuitem`, or `menuitemradio` for choices. `Enter`, `Space` or `↓` open on the first item, `↑` on the last; arrows wrap; typing jumps by first letter; `Escape` and an outside press close and return focus to the trigger. DOM focus moves into the menu. Below `overlay-at` it opens as a sheet.

### Avatar

A true circle with an `outline` rim. A photo when one exists; otherwise the initial in `avatar-initial` (Bounded 600, italic) on `surface-3`. Sizes: `avatar-xs` 24, `avatar` 38 (the toolbar), `avatar-md` 42 (the menu header), `avatar-lg` 64 (settings).

### Popover, tooltip, toast

- **Popover:** glass, `lg`, `s-1h` padding, `popover-label` captions, options with a check on the selected one (in `on-surface`), entering on the spring. It holds small, non-blocking detail; it never holds a form of more than three fields.
- **Tooltip:** `inverse-surface`, `xs`, `label-sm`; a control's name and its shortcut only. After `tooltip-delay` on hover, at once on focus, dismissed by `Escape`.
- **Toast:** a glass pill at the bottom centre of the content, above the tab bar at narrow widths, at most three stacked. One line: a status glyph (`success` or `error`, filled), the message in the action's own word ("Copied", "Published"), and at most one one-word action ("Undo", "View") as a `button-sm` ghost. A confirmation-only toast stays `toast-duration`; a toast with an action stays `toast-action-duration`; both pause on hover and focus, have a close button, announce politely (`role="status"`), and never hold the only path to anything. Autosaves never raise a toast.

### Dialog and sheet

The lightest layer wins: inline, then tooltip, popover, menu or sheet, and a dialog only for a decision that blocks the flow (delete, discard, publish over a live link). Editing is never a layer: it is the editor workspace.

```
┌──────────────────────────────────────────────────┐
│ Delete "spring25"?                           (×) │  modal-title (headline-sm), names the decision
│ Its 4.8k clicks of history go with it.           │  modal-context, one line
│                                                  │
│                              [Cancel]  [Delete]  │  ghost secondary · danger primary
└──────────────────────────────────────────────────┘
```

- **Dialog:** centred, `<dialog>` with `showModal()`, `surface` (dialogs are content, not chrome), `xl` radius, `s-6` padding, one `outline` rim plus `modal` elevation over `overlay`. Sized to its content (`modal-sm` 400, `modal` 520, `modal-lg` 680), at most 85 dvh with an internal scroll. A close circle, a focus trap, `Escape`, scroll lock with scrollbar compensation, and focus returned to the trigger. A dialog never opens another dialog; a follow-up step replaces its content.
- **Sheet:** rises from the bottom with a `sheet-grip`, `xl` top corners, at most 72 dvh, actions pinned to its bottom above the safe area. Below `overlay-at`, dialogs, menus, selects, popovers and released regions become sheets with the same roles. It closes on `Escape`, the close circle, a downward drag (with the close circle as its non-drag equivalent) and the system back gesture.

### Sidebar, workspace switcher, phone top bar, tab bar, New sheet

See Navigation for behaviour. `sidebar` is the flush start-edge panel on `background-edge`; `sidebar-rail` its 76 px form. `sidebar-brand` holds the mark and the `brand-wordmark`. `sidebar-new` is the lime button. `sidebar-section-title` is a `caption-xs` label. `sidebar-item` is a `sidebar-row-h` row, `rounded.sm`, `label-md`, an `icon-lg` glyph (regular, filled in its kind's hue for a collection), a plain `sidebar-count` number; hover `sidebar-item-hover`, current `sidebar-item-current` (a raised white pill) with the lime `sidebar-marker` dot and `sidebar-count-current`. `workspace-switcher` is the foot's row (mark, name, plan, caret); `workspace-avatar` the ink square with the initial. `topbar-pill` is the glass pill every top-bar group wears; `topbar-page` the page's caption; `topbar-search` the search pill; `topbar-action` a circle in the actions pill. `tabbar` is the centred glass tab pill of icon-only `tab-item`s; `tab-fab` the lime New circle. `new-sheet` is a dialog of nine `kind-tile`s (`create-tile`'s shape: an `icon-well` in the kind's tint, `card-title`, `kind-tile-blurb`, a "+" glyph).

- **Folding sections** (`SidebarSection collapsible`): the `sidebar-section-title` becomes a button (`aria-expanded`) holding the name, a caret (`icon-xs`, a quarter turn back while folded) and, while folded, the section's row count in a `sidebar-count` chip. The fold is remembered.
- **Collection rows** (`SidebarItem tone`): the glyph is drawn filled in the kind's hue (`kind-*`); the label and count stay ink.
- **Navigation sheet** (`NavSheet`, `NavSheetTile`): a `Sheet` whose title is the wordmark; the primary places as two-up tiles (`rounded.md`, an `outline` rim, `label-md`, a `sidebar-count`; current takes `sidebar-item-current`'s white and the `raised` tier); the sidebar's sections below; the workspace switcher after an `outline` hairline.
- **Create menu** (`CreateMenu`): a `popover` `new-sheet` wide with `s-5` padding (a sheet below `overlay-at`): a `caption-xs` kicker with an ink dot, the title in `headline-md` with its `accent-italic` word, the kinds as rows three to a row (two below `sidebar-at`, one in the sheet) — the kind's `icon-well` with a filled glyph, the label in `label-md` at 600, the blurb in `body-sm` `on-surface-3`, one line each — and an optional `body-sm` foot.
- **Notifications** (`NotificationGroup`, `NotificationRow`; the Inbox boards): a group is a `caption-md` heading in `on-surface-3` with its count in a `surface-2` pill (`on-surface-2` ink: the board's grey misses 4.5:1 there) and one quiet `label-sm` action at the end, over one `surface` card (`rounded.card`, `s-1h` inside, `elevation.tile`) holding the rows and an optional `s-8` "Show more" foot under a hairline. A row is one button: a `s-8` well in `rounded.md` with the filled glyph in its tone (neutral, error, warning, success, info, violet), then the kind's word in `label-sm` and the time in `mono-sm` on one line, the title in `row-title` (600 when unread, with a `success` dot before the time), and the body in `body-sm` `on-surface-2`, one line (two below `compose-at`). Rows are separated by a hairline that starts at the text; the open row sits on `surface-2` in `rounded.lg` and drops the hairlines beside it.
- **Paste panel** (`ShortenPanel`): inside the search layer, under the field: a group label as the layer draws its own, the destination in `mono-md` beside a Link `icon-well`, then one row — the domain control, "/" in `on-surface-3`, the ending as a `field` pill in `mono-md`, and a small primary Shorten; below `overlay-at` the domain takes its own line. An `outline` hairline closes it off from the results.

### Editor workspace panels

`library-panel` and `inspector-panel` are floating glass panels (`lg`, `float`, rim `glass-line`) inset `chrome-inset` below the editor bar, `editor-panel-w` and `editor-panel-w-wide` wide, each with its own scroll. The inspector opens with the `object-head` (`surface-2`, `md`), then `inspector-section`s, each a `caption-md` label over an `outline` hairline, and ends with `more-options`, a disclosure row with a caret and the count of options set. `library-tile`s are `md` tiles with an `outline` rim, two to a row. `editor-sheetbar` is a floating glass capsule of `editor-sheetbar-item`s. The generic `panel*` keys remain for the reading shell and the gallery.

### Collection header, filter button, results line

- **Collection header:** `collection-header`, one row `control-h-lg` tall, `s-3` between parts, no wrap (Views). The title is a `collection-title` h1 with its count; the search is a `search-field` that grows from `collection-search-min`; New is `button-primary`.
- **Filter button:** `filter-button`, a secondary capsule with a funnel glyph, the one word "Filter" and a `count-badge` when filters are active, `aria-expanded` and `aria-controls` on its popover. Below `collection-compact-at` its label hides and it becomes a circle with the same name and badge.
- **Results line:** `results-line`, `body-sm` in `on-surface-2`, `s-2` under the header: counts joined by `separator-dot`s and a "Clear filters" link when filtered; `role="status"`.

### Address field and canvas previews

- **Address field:** `address-field`, one rim holding the `domain-picker`, a "/" in `on-surface-3`, the slug in `mono-md` and a Copy `button-icon-sm`; the parts are separated by space, never by a rule. Its accessible description is the full resulting URL. When domain and slug cannot share the row, the slug and its actions move to a second row under the domain, so neither is cut.
- **Share card:** `share-card`, `surface`, `lg`, `outline`: the short URL in `mono-md`, the destination host in `list-row-host`, a QR thumbnail (`list-row-thumb-qr` at `thumb`) and Download PNG and SVG as `button-sm` secondaries. With the browser chrome and the short → destination strip it is the Short link's canvas.
- **Contact, event, file, splash and checkout cards:** `surface`, `xl`, `outline`, flat, in a phone frame `preview-contact-w` wide whose screen is at least `preview-contact-h` tall, the card centred in it (the contact card sits at the top): what a visitor sees on a phone, built from the record (Kinds). Their one action is drawn as the visitor's button (Save contact, Add to calendar, Download, Continue, Continue to checkout) in `button-secondary` so the workspace's one lime stays the save; captions use `preview-meta`.
- **Static frame** (`StaticFrame`): `static-frame`, `md`, an `outline` hairline and the `modal` tier: a browser window. Its bar is `s-8` tall on `surface-2` with three `s-2h` lights between `outline` and `outline-strong` and the address centred in a `surface` pill (`mono-sm`, a lock at `icon-xs`); under it the page in a sandboxed `<iframe>` (no script, opaque origin) drawn only from HTML the caller holds, never a remote address. When the page cannot be drawn (a ZIP, a page already stored) the window holds what is there instead: the kind's `kind-static` well at `s-11`, the name in `headline-sm`, a `mono-sm` meta line and Open as the drawn button. With neither, it holds `empty`: a `DropTile` on a new record's canvas. On the desktop device it is `reading` wide beside the panels.
- **Drop tile** (`DropTile`): one button on a dashed `outline-strong` hairline, `rounded.lg`, `s-3h` inside, half-`surface`: an `s-6` upload glyph in `on-surface-2`, the words in `label-md` and a `body-xs` `on-surface-3` line under them (the problem with the last file, in `error`, when there is one). A file dragged over it turns the rim `primary` on `primary-soft`; dropping it or choosing it from the dialog the button opens hands it on. It is where a Site's files are replaced (Editor-Static-Desktop) and where a File link's file is chosen, at the top of its Customise panel (Editor-File-Desktop): there its words are the file's name (wrapping, never clipped), its glyph the file's type, its line the size, and `label` ("File") is read before the name by assistive tech only.
- **QR art:** `qr-art`, the code drawn from its matrix in its style; on paper (`qr-paper`, `xl`, `float`) on the canvas. When a server draws the code, `src` shows that image instead, so the preview is the very file a download gives: the card is painted with the code's background, the image's own quiet zone is its margin (no padding, no rim), `region` + `s-5` wide at 100 % and scaled by the canvas zoom, never wider than the canvas; with nothing to encode yet it holds a faint QR glyph, no sentence.

### Bio page canvas: block toolbar, handle, drop indicator, palette item

- **Block toolbar:** `block-toolbar`, a `glass-solid` capsule `control-h-sm` tall at the `popover` tier, at the selected block's top end, `s-2` from its inline edge and outside its top edge, so it never hides the block's content. Where the canvas frame's top leaves no room (the first block) it sits inside the block's top when the block's own padding keeps it clear of the first words, else outside the block's bottom edge: the `block-handle`, Move up, Move down, a hairline divider, Duplicate, Hide (or Show) and Delete, each a `block-tool` (28 px) circle with a 44 px hit area.
- **Block handle:** `block-handle`, a `block-tool` circle with a six-dot glyph in `on-surface-3`, `cursor: grab`; a button named "Move <block>" with the keyboard contract in Editing.
- **Block chip:** `block-chip`, a lime `full` pill at the selected block's top start, `s-2` from its inline edge, placed with the toolbar: the block's glyph and its name in `caption-xs` ("HERO"). It names the selection; it is not a control.
- **Drop indicator:** `drop-indicator`, a `rule-thick` `primary-line` rule with `full` ends across the block column. It appears only while dragging.
- **Palette item:** `palette-item`, a tile: `s-3` padding, `md`, `outline`, a `control-h-xs` icon well over a one-word name in `label-sm`, two to a row. Hover firms the rim and tints the well `primary-soft`; draggable, and a button that inserts.

### Code block and code editor

See Code: `code-block` for reading, `code-editor` for the custom-HTML block.

### Card, create tile, template card

- **Card:** `surface`, `lg`, a 0.5 px `outline` rim, flat. One record at a declared disclosure level, with one target: when the whole card is a link, the anchor wraps the title and stretches over the card with a pseudo-element; any second control sits above it. Hover firms the rim to `outline-strong`. Internals respond to a `card` container query. A card never contains a card.
- **Feature card:** `card-feature`, `xl` radius, `s-6` padding, holding the composer on Home. No bloom, no gradient.
- **Create tile** (the `kind-tile`): an `icon-well` in the kind's tint with the kind's own glyph, a `card-title` and a one-line blurb, with a "+" glyph at the top end. Hover firms the rim and turns the "+" a quarter turn. The tile is a button labelled with its verb and object ("New QR code" as the accessible name, "QR code" as the title).
- **Template card:** `template-w` wide in a `scroller`, a `template-art` area (`art-h`, on artwork paper) over a body with a kicker, a two-tone `card-title` and `template-meta`. The art reserves its box with `aspect-ratio`.

### Stat tile and sparkline

```
┌ stat-tile ──────────────────────────────┐
│ ◷ CLICKS · 30D                 [↗ +14.0%] │  stat-label · delta-pill
│ 12.4k                                    │  numeral-lg
│ 412 today                                │  stat-sub
│ ▁▂▂▃▅▄▅▆▅▆▇                              │  sparkline, flush to the bottom edge
└──────────────────────────────────────────┘
```

- `stat-tile`: `surface`, `lg`, `outline` rim, `stat-h` minimum, `s-5` padding. A `stat-label` with an `icon-sm` glyph, the value in `numeral-lg`, a `stat-sub` line, and a `delta-pill` at the top end.
- **Delta pill:** an arrow glyph, a sign and the value in `delta`. Up: `success-surface` / `success`; down: `error-surface` / `error`; flat: `surface-2` / `on-surface-2` with a dash. Never colour alone.
- **Sparkline:** `spark-h` tall, flush to the tile's bottom and sides, a 2 px `primary-line` line over a wash of the same colour that fades from 22% at the line to nothing at the tile's edge (the walkthrough's Home board; never a flat grey block). Every tile in a row draws it in the same colour: the featured tile is told apart by its border, not by its line. It is decorative relative to the number above it (`aria-hidden`), and its values are reachable in the view's chart and table. Colours resolve from computed tokens and re-render on theme change.
- **Featured tile** (the top performer): `stat-tile-featured`, a `primary-line` rim with a caption that says why ("TOP PERFORMER") and a glyph. Its value may be a name in `headline-lg` instead of a number.
- Stat tiles appear in Analytics, whose job is monitoring; Home's library row uses the `stat-card`, the same parts at `s-4` padding with the sparkline flush to the bottom edge (Views).

### List row

```
┌ list-row ─────────────────────────────────────────────────────────────────┐
│ [▣]  spring25  [● SHORT URL]                                 4.8k     (⋮) │
│      ⛓ studio.test/spring25 · ● LIVE · 2H AGO                    CLICKS       │
└───────────────────────────────────────────────────────────────────────────┘
```

A grid of thumb · main · value · overflow, `row-h-lg` tall, `s-3` / `s-3h` padding, `lg` radius, `outline` rim, flat; rows are `s-2h` apart.

- **Thumb:** `list-row-thumb`, 42 px, `md`, in the kind's tint (`kind-<kind>-surface`) with the kind's own `icon-lg` glyph in its ink. A real preview image replaces the glyph when one exists, at the same box. `resource-row` is this row with the kind registry's words.
- **Main:** the title in `row-title`, truncating, followed by a `kind-badge` (dot plus kind name). Below it the `list-row-meta` line in `mono-xs`: the host in `on-surface-2` with a link glyph, the status (`status-*`, a dot with its halo plus the word), and the age in the same `mono-xs`, in sentence case (data is never set as a caption), separated by `separator-dot`s.
- **Value:** the count in `numeral-sm` over its unit caption, right-aligned and tabular.
- **Row actions:** Copy (a 32 px `button-icon-sm`, confirming "Copied", on addressable kinds) sits on the row, before the overflow; the overflow `button-icon-sm` opens a `menu-sm`: Edit, Copy, Analytics, Duplicate, **Pause** or **Activate** (whichever changes the state), a separator, Archive (with an Undo toast) and Delete (with a confirmation) in `error`. A row carries no switch: the status word already says the state, and a column of lime switches would compete with the view's one lime action. The Active switch lives in the inspector's object head.
- **One target:** the whole row is a link through a stretched overlay on the title; the overflow button sits above it and stays keyboard-reachable. A row whose menu is open rises to `row-open`.
- **Hover:** the rim firms to `outline-strong`. No lift, no shadow.
- Below `row-fold-at` the value folds into the meta line ("4.8k CLICKS"), the padding drops to `s-2h`, and the age moves into the row's accessible description.
- Status words: LIVE (`success`), PAUSED (`warning`), DRAFT (`on-surface-3`, no halo), FAILED (`error`). LIVE means the record is served on the internet. A product that serves nothing (the worked examples, which keep records on the device) writes ACTIVE in the same `status-live` style instead, so it never claims to be live.

### Chips, badges, kbd

- **Chip:** a filter: a 30 px button with an `outline-strong` rim and the full hit area, `label-sm`. Selected, it takes `surface-3`, `label-lg` weight and a leading check, and `aria-pressed`. Static labels are badges, not chips.
- **Kind badge:** `kind-badge`, a 20 px `surface-2` pill with an `outline` rim, the kind's dot (`kind-dot-<kind>`) and its caption (LINK, PAGE, QR, VCARD, EVENT, FILE, SITE, SPLASH, PAY). Never wraps.
- **Plan chip:** the plan's caption (PRO) in `on-primary-soft` on `primary-soft`. Read-only: Studio shows the plan and never links to a purchase.
- **Badge:** neutral metadata (a version, a count) in `caption-xs` on `surface-2`.
- **`kbd`:** a key or chord in `kbd` on `surface-2` with an `outline` rim.

### Callout

`[icon] [title, label-lg] [body, body-md]` in an `lg` container, capped at `measure-narrow`. Each callout draws its edge one way: status and progress callouts are tinted fills with no rim; the neutral callout is an `outline` rim on the page field.

| Tone | Background | Rim | Icon |
|---|---|---|---|
| error, success, warning, info | Status `*-surface` | None | Status glyph |
| progress | `surface-2` | None | Spinner |
| neutral | `background` | `outline` | Optional |

A callout reporting the result of an action is `role="status"`, or `role="alert"` for errors. No callout has a side stripe.

### Table and ranked rows

A table sits in a `scroll-region` with an `lg` radius and an `outline` rim; the table has a `min-width` and real `<table>` semantics.

- Header: `caption-md` on `surface-2`. Cells: `body-sm`, `s-2h` / `s-3h` padding, `outline-soft` rules, none under the last row. Row hover: `surface-2`.
- Numeric columns are right-aligned and tabular. Cells never truncate. Column order: identifier, most-compared, actions.
- Sortable headers are buttons with `aria-sort`. Sort and filter live in the URL.
- Row actions sit in a keyboard-reachable trailing menu, never hover-only. Bulk actions appear only after an explicit "Select" toggle.
- An empty table shows the empty state with the next action.
- Below `overlay-at`, a table of more than four columns may stack as `label: value` rows; the DOM stays a `<table>`.

**Ranked rows** (top referrers, countries, devices) are a table whose last column adds a `rank-bar` with a `rank-bar-fill` proportional to the share, beside the fixed-width value and share columns, so numbers line up regardless of label length. A card shows the top six with a quiet "All N" link under them; the link opens the whole list (up to the endpoint's hundred rows) in a `Modal`: numbered rows, column heads in `caption-md`, the leader on a 12 % `primary` wash, the count and total in the footer. A country carries its ISO code in a mono chip.

### Charts

A chart is a picture of a table, and the table is always in the DOM. Every chart is a `figure`:

1. A `figcaption` (`chart-caption`) whose first line states the finding ("Clicks rose 14 % after Tuesday's post").
2. The plot.
3. The table: visible beneath the plot when readers must cite values, behind a "Data" disclosure otherwise.

Series take `series-1…8` in order; when a series is a kind, it takes the kind's colour. A one-series chart, sparkline or meter is `data`. Total taps are `series-1` (lime), unique visitors `series-2` (neutral), QR scans `series-3`. Legends are `<button aria-pressed>` entries with a `legend-swatch` that also carries a shape; lines beyond four carry dashes; deltas carry an arrow and a sign. The plot is `role="img"` labelled by the caption. Gridlines are dashed `chart-grid` hairlines (zero included), about three above zero at a nice step (1, 2, 2.5, 4 or 5 × 10ⁿ, whole numbers only), with a quarter step of air above the top line; labels `mono-xs` in `chart-label`. The area chart (the walkthrough's Analytics board) draws each series as a line eased from point to point (level tangents, never overshooting a value) over an area that fades from 22 % (12 % for the neutral second series) to nothing at the baseline: `series-1` at `rule-chart`, the second series a neutral ink at `rule-thick`, a comparison period dashed `on-surface-3` with no area. Its plot is `chart-h` tall (`chart-h-compact` below `pair-at`). The readout is a dashed `on-surface-4` cursor, a `series-1` marker ringed in `surface`, and the chart tooltip: an `inverse-surface` card beside the cursor (date in `mono-xs`, the lead value at `label-lg` weight). `ChartLegend` is the key in the chart card's head: square `legend-swatch` keys, a dashed rule for a comparison. Donuts show at most five parts, separated by a hairline of card; the `mono` palette keeps `series-1` for the lead and a ramp of ink for the rest; the legend gives each part's share to one decimal. Charts are themed by an adapter that reads computed `chart-*` and `series-*` tokens and re-renders on theme change.

| Condition | Behaviour |
|---|---|
| Reduced motion | No entrance animation |
| `forced-colors` | Plot hidden, table shown |
| Below `overlay-at` with `data-collapse="table"` | Table instead of plot |
| Library absent | Table |

### Canvas tools

The `canvas` shell keeps the artefact first:

- The canvas sits on `editor-canvas` (`background-edge`, the dot lattice), the thing the visitor gets centred in the space the docked panels leave. Page-like kinds are laid out at the preset's true width and drawn scaled to fit when the space is narrower, and the readout says both ("1280 px · 61 %"); a phone-width workspace starts on the phone preset.
- The persistent tools are the editor bar's: back, the kind pill, the one view control the kind needs (device width, desktop or phone, zoom, or none), the primary action and More. Bio page adds undo and redo.
- Tools for the selection appear in the `block-toolbar` above the selected block and disappear with it (Editing).
- Blocks insert by drag from the palette or by click; they reorder by the `block-handle` or `Alt` / `Option` + arrows; text edits in place.
- Advanced options open from the block toolbar's More, or in the inspector's More options.

## Kinds

A **kind** is one type of resource. Studio has nine, in the walkthrough's order everywhere (the New sheet, the sidebar, the kind picker, search groups, the registry):

| Id | Label | Plural (collection) | Icon (Phosphor) | Hue | Metric word | Primary action | Address | Canvas shows |
|---|---|---|---|---|---|---|---|---|
| `link` | Link | Links | `link-simple` | `kind-link` (blue) | TAPS | **Save** | yes | Browser chrome at the short URL, the short → destination strip with the redirect code, and the `share-card` (QR thumbnail, PNG and SVG) |
| `biopage` | Page | Pages | `cards` | `kind-biopage` (purple) | VIEWS | **Publish** | yes | The block canvas: the page itself at the selected device width |
| `qr` | QR | QRs | `qr-code` | `kind-qr` (green) | SCANS | **Export** (Save in More) | no: it encodes content | The code at the chosen zoom on its paper, live, with a contrast warning when it will not scan |
| `vcard` | vCard | vCards | `address-book` | `kind-vcard` (teal) | SAVES | **Save** | yes | The `contact-card` (Editor-vCard-Desktop): a `preview-contact-w` × `preview-contact-h` phone; the photo or initials (`contact-avatar`), the name in `contact-name` and job title · company on the phone's night band; Call, Email and Web (`contact-action`, `kind-vcard` on `surface`, `md`, `raised`) lifted over its edge, each only when the card has one, each the visitor's real link; the rows on a `surface` card (caption in `contact-caption` `kind-vcard`, the value in `body-md`); Save contact at the foot |
| `event` | Event | Events | `calendar-dot` | `kind-event` (orange) | RSVPS | **Save** | yes | The `event-card`: a date tile, the name, the range in the event's own zone, location and note, Add to calendar; Download .ics under it |
| `file` | File | Files | `file-arrow-down` | `kind-file` (red) | DOWNLOADS | **Save** | yes | The `file-card`: the download page a visitor gets (file name, size, type, Download) |
| `static` | Site | Sites | `file-html` | `kind-static` (grey) | VIEWS | **Save** | yes | The `static-frame`: the uploaded HTML, or a ZIP's entry page, in a sandboxed frame (no script, opaque origin) at the selected device width |
| `splash` | Splash | Splashes | `hourglass-medium` | `kind-splash` (pink) | VISITS | **Save** | no: attached to a link | The `splash-preview`: the interstitial (title, description, the countdown, Continue and the secondary button) |
| `payment` | Pay | Payments | `credit-card` | `kind-payment` (olive) | PAYMENTS | **Save** | yes | The `checkout-card`: "Payment request", the owner, "You will be sent to *host* to complete this payment" and **Continue to checkout**. A payment link stores no amount, currency or product; nothing is charged |

- **Words.** The labels are the walkthrough's (owner decision, 2026-11-30): written exactly as above, singular for one, the plural as the collection's name in the sidebar, filter chips and counts ("3 Links"). The metric word follows the count in lower case ("1,204 taps"). The status words are ACTIVE, PAUSED and DRAFT in the `status-live`, `status-paused` and `status-draft` styles; LIVE is reserved for a record served on the internet, which the worked examples never claim.
- **Hues.** Each kind has its own hue (Colors › Kinds); two kinds never share one, and a kind always shows its name or glyph beside its hue.
- **Older wording.** Passages of this file written before 2.4 (diagrams, derivations, Apple notes) still say Short link, Bio page, Static page, File link, Splash page, Payment link and QR code; they mean Link, Page, Site, File, Splash, Pay and QR. 2.4 renamed the words, not the kinds, and the interface uses the table above.
- **Descriptors** (one line, in the New sheet and the destination menu's accessible descriptions): Link "A short URL that redirects, with targeting and scheduling"; Page "A page of blocks at your own URL"; QR "A code that opens a link, a card or a network"; vCard "A contact card people can save to their phone"; Event "A dated event page that exports to a calendar"; File "A hosted file served from a URL you choose"; Site "An uploaded HTML page served from your domain"; Splash "An interstitial shown before a link resolves"; Pay "A short URL that sends buyers to your checkout".
- **One registry.** `KINDS` in `@aidenlive/studio-react` (`kinds.ts`) holds id, label, plural, short word, icon, metric word, primary action and descriptor; a kind's tone is its id (`data-tone="<kind>"`); the app, the gallery and the tests read it, and StudioKit mirrors it as `StudioKind`. No view re-authors a kind's words.
- **Fields** follow the product's own order per kind (the fields catalogue the worked examples were built from), always with the address first for an addressable kind (Editing).

## Navigation

The navigation answers *what is this product* and *where am I*. Studio has two navigation shells, and a view uses exactly one. The app shell is the owner's **Studio Origins** kit (2026-11-22), ported whole:

| Shell | Used by | Wide (from `sidebar-at`) | Tablet (`tabbar-at` to `sidebar-at`) | Phone (below `tabbar-at`) |
|---|---|---|---|---|
| **App shell** | The product's views: Home, Resources, Analytics, Settings | The flush **sidebar** (brand, New, labelled sections, the workspace switcher in its foot) and the floating glass **top bar** (the page pill · search · actions · the avatar) | The sidebar as a **rail**; the top bar; the lime **New circle** at the bottom end | The top bar (the brand pill with the wordmark, the actions pill, the avatar), the centred **tab pill** and the New circle |
| **Editor bar** | The editor workspace, for every kind | The editor bar's pills; no sidebar (Editing) | The same | The same bar, with the sheet bar at the bottom |
| **Site shell** (Portico) | The public site and the documentation only | One row of three floating pills (≥ `nav-inline-at`) | The same | Top bar + two bottom circles + menu sheet |

**The app has a sidebar on wide screens** (2.3, by owner decision 2026-11-23; ADR 0012), drawn as Studio Origins draws it. A tool people work in all day keeps its places on screen, marks where you are, and keeps the workspace and the account one press away.

Both shells read one navigation config: destinations, labels, order, icons, one-line descriptors, counts and route patterns are defined once, as data, and every representation (the sidebar and its rail, the tab pill, the search layer, the New sheet, Portico's row and sheet, the footer) reads it. No representation re-authors, reorders or truncates a label.

### The taxonomy

| Destination | Route pattern | Children | Descriptor | Where it is |
|---|---|---|---|---|
| **Home** | `/` | — | Today and what to make next | Sidebar (Main); tab pill |
| **Resources** | `/resources/**` | The nine kinds (Kinds), each with its count | Everything you have made | Sidebar (Main, a parent with its kinds); tab pill |
| **Analytics** | `/analytics/**` | — | Clicks, scans and visits | Sidebar (Main); tab pill |
| **Settings** | `/settings/**` | — | Workspace, domains and account | Sidebar; the workspace switcher's and the avatar's menus |

Resources is the collection; a single member is a *resource*. Its kinds are its children: each routes to Resources filtered by kind (`?kind=link`), and the view's own kind picker (All and the nine) is the same state. The current destination matches by route pattern, so `/resources/**?kind=qr` marks QR codes (and opens the disclosure that holds it). The editor workspace's route is one for every kind, `edit.html?kind=<id>&id=<id>` (`&new=1` for a new one). A product with more places adds them as further labelled sections (an *Organize* section of containers, its long tail behind More), never as a flat list.

### The sidebar

From `sidebar-at` (1100 px, the window):

```
┌ sidebar · background-edge · 256 ─┐
│ [C] Cardsite.              [▯]   │  brand: mark, wordmark, collapse
│ ( + New                        ) │  lime
│ MAIN                             │
│ ⌂ Home                           │
│•▤ Resources                  12 │  current: white raised pill, lime dot
│ ◷ Analytics                      │
│ ORGANIZE                         │
│ ▢ Projects                     3 │
│ ⋯ More                           │
│ ──────────────────────────────── │
│ [A] Atelier                   ⇕  │  workspace switcher
│     PRO · 8 MEMBERS              │
└──────────────────────────────────┘
```

- **The panel.** `sidebar`: fixed to the window's start edge, full height, flush (no float, no radius), `sidebar-w` (256) wide on `background-edge`. It meets the page's `background` by that change of field alone; the kit's hairline edge is not drawn, because Studio never rules one inline edge. The page (`app-shell__main`) starts after it and keeps the one frame (`content-max`), centred in the width that remains.
- **Brand.** The ink brand mark (`brand-mark`, `rounded.sm`, the product's initial in Bounded) and the wordmark (`brand-wordmark`, the name and a dot in `on-surface-3`) — or, when the product brings its own lockup, that drawing at `sidebar-logo` height (24) with its lettering in `on-surface`, and its full-colour mark without the ink tile on the rail — and the collapse button (`SidebarSimple`), bound to ⌘\ (Ctrl \).
- **New.** `sidebar-new`: a lime button under the brand (`primary`, the `control` highlight, `raised`), "+" and the word. It opens the New sheet. It is the chrome's one lime action; the page's own primary stays lime too.
- **Sections.** A `caption-xs` label in small caps (`sidebar-section-title`: Main, Collections, Organize) over its items. The sections scroll on their own between the brand and the foot, so no item is ever hidden behind the foot. A section other than Main can **fold** (the walkthrough's Sidebar-Folded): its label is then a button with a caret, and folded it is one line — the name, its row count as a plain number, the caret turned. The caret shows only while the section is folded, hovered or holds focus. Each fold is remembered on the device. On the rail labels are hidden, so no section is folded there.
- **Collections.** The kinds as a section of their own, each row the kind's collection ("Links", "Pages"…) with its glyph filled in the kind's hue and its count where the product knows it; the first six show, the rest wait behind More.
- **Items.** `sidebar-item`: `sidebar-row-h` (40, the kit's 36 grown so each row's 44 px hit area meets its neighbours' across an `s-1` gap without overlapping), `rounded.sm`, an `icon-lg` glyph, the label in `label-md` (one line, truncating), and an optional count in a pill at the end (`sidebar-count`). Hover takes `surface-2`. **The current item** takes `sidebar-item-current`: a white (`surface`) pill raised by an `outline` hairline and the `raised` tier, `on-surface` ink, the filled glyph, its count in `primary-soft`, and the `sidebar-marker`, a lime dot at the pill's start edge (the kit's 3 px bar, as a dot: Studio draws no side bars); `aria-current="page"`.
- **Parents and More.** A parent (Resources) has a disclosure at its row's end (a caret that turns a quarter); its children are indented under its label. A section shows its most-used four and then **More**, which reveals the rest in place and reads "Less" while open. Every disclosure remembers itself.
- **Foot: the workspace switcher.** After an `outline` hairline: the workspace's mark (`workspace-avatar`, the ink square with its initial; other workspaces in `surface-3`), its name in `label-sm` at 600 and its plan in `mono-xs` ("Pro · 8 members"), and an up-down caret. Its menu opens upward: the person, the workspaces (the current one checked) and **New workspace**, the account's items, the theme (Light · Dark · System), and Sign out.
- **Keyboard.** A navigation list of links and disclosure buttons: `↑` `↓` move between rows, `Home` `End` jump, `→` opens a parent and `←` closes it or returns to it. ⌘K opens search from anywhere; ⌘\ collapses and expands.
- **Collapsed** (the button or ⌘\, remembered): the **rail**, `sidebar-rail-w` (76): the brand mark (hovering it shows the expand glyph, pressing it expands), New as a 48 px lime square, every item as a 48 px icon (`icon-xl`) named by a tooltip at its end edge, the workspace mark at the foot; labels, counts, section labels and children are hidden.

### The top bar

At every width, floating `nav-top` (14) below the window's top edge over the page, from the sidebar's edge to the window's end (inset `chrome-inset`):

```
( (⌂) │ RESOURCES )                         ( ⌕ Search Studio…  ⌘K ) ( 🔔• ) ( D )
  the page pill                                search pill            bell   avatar
```

- **Glass pills.** Each is `topbar-pill` (`nav-h`, 46; 44 on phones), the glass material: `glass` fill, `glass-line` rim, the highlight and `float`. The row sets `pointer-events: none` and each pill turns it back on.
- **The page pill.** An ink circle holding the page's own glyph (the brand's initial when the page has none), a hairline separator, and the page's name as a `caption-md` caption (`topbar-page`). It routes Home. On phones it is the product's full-colour mark and, when the product gives it a menu, a two-bar menu glyph; it then opens the navigation sheet (Phones). Without a full-colour mark the phone pill keeps the ink circle and the wordmark.
- **Search.** `topbar-search`: its own glass pill (a magnifier, "Search Studio…", the `kbd` ⌘K), at least `topbar-search-min` (440) wide, `topbar-search-min-md` (360) below `sidebar-at`. On phones it takes the room between the brand pill and the bell, with a short label and no key. It opens the search layer.
- **Actions.** Each `topbar-action` is its own glass circle at pill height: the inbox bell (an `icon-lg` glyph) with a lime dot, ringed in `surface`, when there is something unread, and the product's few view-level actions.
- **The account.** The avatar in a glass circle (44 on phones), last: the account menu (the person, the theme, Settings, Billing, Sign out; on phones the workspaces too, since the foot is not drawn).
- Content starts below the bar: `topbar-h` + the safe area + `s-6`.

### Tablets: the rail

From `tabbar-at` to `sidebar-at` the sidebar is the rail; its brand mark expands it for the session, pushing the page. The New circle floats at the bottom end (52 px).

### Phones: the tab pill and the New circle

Below `tabbar-at` there is no sidebar:

```
TOP       ( (C) Cardsite. )                         ( ⌕  🔔• ) ( D )
BOTTOM                  ( ⌂  (▤)  ◷  ⚙ )                       (+)
```

- **The tab pill.** `tabbar`: a glass pill centred on the window, floating `s-3` above the safe area, holding icon-only `tab-item`s (`tab-w` 52 × `tab-h` 48, filled glyphs at `icon-xl`): Home · Resources · Analytics and one more destination. Each is named for assistive technology; the current one sits in a raised circle (`tab-item-current`, a `surface-3` wash) with `aria-current="page"`. The bar is `role="navigation"` named "Main".
- **The New circle.** `tab-fab`: a lime circle (`tab-fab` 60; 52 on the rail and below 420 px) at the bottom end, `aria-haspopup="dialog"`, opening the New sheet; its "+" turns a quarter on hover.
- **The assistant's launcher.** `Fab tone="agent"`: the same lime circle with a soft `float` drop in place of the glow and a `primary-line` edge; its icon is the assistant's character mark drawn edge to edge, and it never turns on hover. The product places it in the bottom end corner and moves Create to the start edge while it is there.
- Content reserves the tab pill + `s-3` + the safe area + `s-4` at its end; toasts sit above it.

- **The navigation sheet** (Menu-Phone). Pressing the brand pill opens a sheet that covers the window, built from the same navigation data as the sidebar: the product's lockup (or the wordmark) and a `surface-2` close circle; the primary places (Home, Resources, Analytics, Inbox) as a row of four tiles, glyph over name, the current one ink, counts in a chip at the corner; the sidebar's sections as pill rows, each glyph on a `kind-mark` square in its kind's tint (`surface-2` for the rest), folding as they do there; and the workspace switcher as a white pill in its foot. Following any link closes it.

`tabbar-at` sits at the 768 test width. `sidebar-at` is the kit's 1100: below it the rail keeps the page wide enough for a list's full header row beside it.

### The New sheet

`new-sheet`: a dialog (`modal-lg` wide, a sheet below `overlay-at`) titled "Make something *new.*", holding the nine kinds as `kind-tile`s in a `grid` (`--min: 163px`, `--min-columns: 2`), in the registry's order. Each tile is the kind's `icon-well` in its tint, its label as `card-title`, its descriptor as `kind-tile-blurb`, and a "+" glyph at the top end; hover firms the rim and turns the "+" a quarter turn. A tile is a button whose accessible name is "New short link"; choosing it opens the editor workspace with `&new=1`. The New sheet opens from the sidebar's New, the New circle, Home's "All nine kinds" and the search layer's "New…"; `Escape`, the close circle and the backdrop close it and return focus.

### Editors

The editor workspace (Editing) shows no sidebar, no app top bar and no tab pill: its editor bar is a context bar that keeps the exits. Back returns to the view that opened it with its state; the logo routes Home; the kind pill's switcher lists this kind's recent items; the More menu holds Search (⌘K works everywhere) and every destination; the account avatar keeps Settings in reach.

### The Create menu

The sidebar's **Create** and the New circle open the Create menu (Create-Menu): a `create-menu` dialog (`modal-w-xl`, 900) hanging `s-12` below the window's top on wide screens, a bottom sheet below `overlay-at`. It is titled "What are you making?" (`headline-feature`, no serif accent) under a "Create" kicker, with a `surface-2` close circle, and lists the kinds as cards on a hairline ring (`rounded.md`) — a 40 px tile in the kind's tint, the short label ("Link", "Page") and a one-line blurb in the product's own words — three to a row, in the registry's order; choosing one closes the menu and opens that kind's create flow. ↑ ↓ ← → move between cards. A product may add a foot line naming where the new resource lands ("Creating in Atelier"). Rows for things the product cannot do yet (templates, drafting with AI) are not drawn. The New sheet stays for a surface that opens the kinds without an anchor (Home's "All nine kinds").

### Search

The top bar's search pill and ⌘K / Ctrl K anywhere open the `search-layer`: a glass popover (`search-layer-w-lg`, 640, `rounded.xl`) `s-5` under the top bar, its field unboxed in a head row — a magnifier (a link glyph once a URL is pasted), the field, an Esc hint — that also accepts a pasted URL. Before typing it lists recent resources, the destinations and "New…"; while typing it announces the result count; results are grouped by kind in the registry's order with their badges; with no match it names the query and offers "Clear". A pasted URL offers **Shorten**, which opens a new Short link in the editor workspace with that destination; a product that can create in place draws the **paste panel** instead (Search-Paste): a white card holding the destination (its host over the full address), then the domain and the editable ending in one recessed track and Shorten (↵) beside it (under it below `overlay-at`), where Enter in the field creates the link; the results below offer "use it in" another kind (a QR) as rows with a tile and a one-line hint. While the panel is drawn no row is highlighted until the arrows or the pointer choose one. Choosing a resource opens it in the editor workspace.

### The site shell (Portico)

The public site and the documentation use Portico's shell wearing Studio's pills, through `@aidenlive/studio-portico`. It is never used by the product.

- **Wide** (≥ `nav-inline-at`, measured on the frame; Portico measures the real row at run time and writes `data-pt-layout`): one sticky row of three groups of equal `toolbar-h` height in the frame: the brand pill (mark and label) on the frame's start edge, one centred glass pill of `nav-link`s, and the utility `nav-capsule` (search, at most one direct action, the account or preferences menu) on the frame's end edge. The current link takes the `surface-3` wash and `label-lg` weight. The row sets `pointer-events: none` and each pill turns it back on, so the gaps are real; past `scroll-shadow-at` the shadow deepens to `popover` and nothing else moves.
- **Narrow**: the mark alone in the `brand-pill` circle and the capsule stay at the top; a menu circle (`fab`) at the bottom start opens the **menu sheet**, every destination in order with its icon, label and one-line descriptor (`nav-sheet-item`, truncating), then the account row; it opens on the current item, traps focus and closes on `Escape`, the system back gesture or its close circle. An action circle at the bottom end mirrors it when the page has a primary action. There is never a single floating pill of destination links. Content reserves `fab` + `s-4` + the safe area.

### In-page navigation

- **Tabs** switch siblings in one region (Components), with one-word labels. Resources' kind picker is not tabs: it is a single-choice filter, a scrolling row of `kind-chip`s (All and the nine plurals with their counts, `role="radiogroup"` of `radio`s, the selected chip filled in ink, `kind-chip-selected`), the last chip peeking when they do not fit; it never wraps. Beside it on a wide screen sit the `SortMenu` (a recessed box reading "Sort Recent" in caption caps, the height and track of the view toggle) and the list / grid / cards `Segmented`.
- **Contents:** a page with four or more sections (help pages, long settings) offers "On this page", as a rail from `rails-at` and as a disclosure at the top of the column below it.
- **Pagers:** previous and next links with a one-line, truncating title, on reading pages only.
- The skip link is the first focusable element, visible on focus, jumping to `#main` (`tabindex="-1"`).

### Footer

App views have no footer: the top bar (and on phones the tab bar) is the view's only chrome. A view in the `site` or `reading` shell ends with a compact footer in the frame: an optional closing line with a "Top" circle; link columns from the taxonomy's groups only when there are destinations beyond the top level, using the `grid` primitive with `--min-columns: 2`, links truncating to one line; and a meta line with the mark, © year and name, version and status as `badge`s, then the legal links. No paragraphs, no newsletter block.

## Editing

Every kind is edited in **one editor workspace**: the full window, no top bar, no tab bar, no sidebar, no drawer. A list, Home, search and the New sheet all open the same workspace at `edit.html?kind=<id>&id=<id>` (`&new=1` for a new resource). A dialog is for a question, never a workspace; a list never holds a create or edit form.

```
| (←)(S)( SHORT LINK • spring25 ⌄ ) Saved        ( ▭ | ▯ )                    [✓ Save link] (···) (D) |  editor bar
| ┌ library ───────────┐   ┌ canvas · background-edge · dots ─────────────┐   ┌ inspector ──────────┐ |
| │ ⌕ Search …         │   │ ● SHORT URL · STU.DIO                         │   │ [⛓] Short URL.      │ |  object head + Active
| │ NEW LINK           │   │ ┌ browser · studio.design ─────────────────┐  │   │ YOUR SHORT LINK     │ |
| │ [Short URL][vCard] │   │ │ [short → destination            301]    │  │   │ [stu.dio ▾]/spring25│ |  address first
| │ [Static  ][File  ] │   │ │ ┌ share card ──────────────────────────┐ │  │   │ CONTENT             │ |
| │ RECENTLY EDITED    │   │ │ │ image · host · title · description   │ │  │   │ Destination URL     │ |
| │ stu.dio/spring25 4.8k│ │ │ └──────────────────────────────────────┘ │  │   │ REDIRECT …          │ |
| │ …                  │   │ └──────────────────────────────────────────┘  │   │ ▸ More options      │ |
| └────────────────────┘   └───────────────────────────────────────────────┘   └─────────────────────┘ |
```

### The editor bar

`editor-bar`: separate glass pills on the same band as the top bar (`topbar-h`, pills `nav-h`, `nav-top` from the top, `chrome-inset` from the edges), on a `1fr auto 1fr` grid.

- **Start:** the `back` circle (named for where it goes, "Back to Short links"), the logo circle, and the **kind pill** (`editor-pill`): the kind in `editor-pill-kind` caps, a status dot, the resource's name in `headline-xs` (renamed in place: click or `Enter`, `Enter` commits, `Escape` restores; one line, truncating, full name as tooltip), and a caret that opens a switcher of this kind's recent items. Beside it, one status: Saved · Saving… · Unsaved · Offline · Failed, as an icon and one word, announced politely; "Unsaved changes" is the accessible name of Unsaved. Only Failed is prominent, in `error`, with a one-word "Retry".
- **Centre:** the one view control the kind needs, as a `segmented` in a glass pill: device width (`preview-desktop-w` · `preview-tablet-w` · `preview-phone-w`) for Bio page and Static page; desktop or phone for the link-family previews (Short link, File link, Payment link) and Splash page; zoom for QR code; nothing for vCard and Event. A control appears only when the canvas responds to it.
- **End:** the kind's primary action in lime at full bar height (`toolbar-action` with its glow): **Save** for Link, vCard, Event, File, Site, Splash and Pay, **Export** for QR, **Publish** for Page. Then More (`···`, a `toolbar-icon`): Duplicate, Archive, Delete (last, in `error`, confirmed), the kind's downloads (.vcf, .ics, PNG and SVG), Save for QR code, Search and every destination. Then the account avatar, last.

### The walkthrough's workspace (variant `panels`)

The approved walkthrough (Editor-Matrix, ADR-0181) draws the same workspace with two equal panels instead of library and inspector: **Settings** at the start, the same five groups for every kind (Status · Address · Access · Tracking · Organise), and **Customise** at the end, what this kind is made of. `EditorWorkspace variant="panels"` with an `EditorPanel side="start"` in its library slot and an `EditorPanel side="end"` in its inspector slot.

- **Bar** (`EditorBar variant="title"`): separate objects on one `target`-high line, `s-4` from the edges, each aligned to the panel under it: the `back` circle, then the kind word (`caption-md`, its kind hue, the kind's filled glyph) over the name in `editor-name`; the view control centred (a glass pill of `s-8` circles); More, the one primary (`action-lg`, check glyph) and the account at the end. The status is not drawn beside the name: the primary says it — "Save changes" lit only when something changed, otherwise "Saved" — and it is still announced; Failed shows its Retry. Leaving with unsaved changes asks first.
- **Panels** (`editor-panel`): `editor-side-w` (336, `region` below `sidebar-at`) wide, `s-4` from the window and `target` + 2 × `s-4` from the top, `xl` corners, `background-edge` at 82 % as glass with the glass rim and highlight. The head is a square well `target` − `s-2` wide (ink at the start, lime at the end) with the title in `panel-title` and a `panel-meta` line. Then `panel-group`s: a `panel-meta` name at `label-md` weight (its one action, `PanelAction`, the same face in `on-surface-2` at the line's end) over a white card (`lg` − `s-0` corners, `ring`), whose parts are divided by `outline` hairlines: `panel-row`s (`nav-h` high: an `icon-lg` glyph, the name in `label-md`, the value in `panel-value` `on-surface-3`, a caret that turns when the row opens in place, or a smaller switch), padded fields (filled `surface-2`, borderless, `s-8` high), a padded segmented control that fills the card, and `PanelCopy`, the address in `mono-lg` on a 12 % lime wash with its Copy pill.
- **Canvas**: a caption pill (`body-xs` at `label-md` weight on 70 % `surface`) over a `reading-min` stage: the kind's real preview (a short link's `SocialCard` and its `ShareFlow`, address → destination).
- **Phone** (below `editor-sheet-at`): the canvas fills the window under a bar of back · name · primary; Settings and Customise open as sheets (`background-edge`, `xl` + `s-0` corners) from one two-item switch at the bottom (`editor-switch`, the pressed item ink on `background`). There is no Preview item: closing a sheet is the preview.
- **Bio page** (`PagePreview`, `BlockStack`, `BlockItem`, Editor-Bio-Desktop / -Phone): the view pill carries undo and redo after an `outline` rule (`tools`, the same `s-8` round targets). The canvas is `PagePreview`: a phone 3 × `s-12` + `s-3` wide and 2 × `feature-h` + `s-12` + `s-11` + `s-3` high in `qr-night` with an `s-2h` bezel, `xl` + `s-4h` corners and the `float` tier; the screen scrolls on its own and wears the author's background and ink (`--st-page-background`, `--st-page-ink`: data, not layout), and holds the page as the public page renders it (the app's renderer, passed as children). The desktop device is a `reading-min` page in a `lg` window on the `ring`. Customise opens on a Blocks · Design switch (a 6 % `on-surface` track `s-8` high, `md` corners, the current item on `surface`), then `BlockStack`: `BlockItem` cards `s-1h` apart (`md` + `s-0` corners, `surface`, `ring`), each a `s-9` row of a `s-4` drag handle (`on-surface-4`), a `s-7` − `s-0` `icon-well` on `surface-2`, the name in `panel-value` at `label-md` weight with its excerpt in `on-surface-3`, a crossed eye when hidden (name and well in `on-surface-4`) and a caret; it opens in place to its fields (an `outline` hairline, `s-3h` padding), wears a `rule` + `hairline` `kind-link` ring with a soft glow and a `kind-link` well while open, and offers its actions in a More menu. Inside `CanvasDnd` a card sorts by its handle (pointer, touch, or Space · arrows · Space), and Alt or Option with ↑ ↓ on its head moves it one slot. Under the list, Add block: a `target`-high `surface` card on the `ring`.

### The library panel

`library-panel` (start, `editor-panel-w` 300): a floating glass panel inset `chrome-inset` below the editor bar and from the window's start and bottom edges, scrolling on its own.

- A `caption-md` LIBRARY kicker, then a search field ("Search types & links").
- **New**: `library-tile`s two to a row for this kind and its siblings, each an icon well over a one-word name: for the link family and pages, Short URL · vCard · Static · File (the prototype's NEW LINK); for QR code the content types Link · Text · Wi-Fi · Email and the preset looks; for Bio page the block palette (`palette-item`s under Sections, Type, Media, Elements, Embeds and Structure). The current kind's tile takes the lime tint (`library-tile-current`, `primary-soft` and its ink, `label-lg` weight) with `aria-current`; choosing another tile starts a new resource of that kind.
- **Recently edited**: this kind's resources as `resource-row-compact`s (icon tile, short address in `mono-md`, host or file in `list-row-meta`, the metric and its word at the end); the open one is current.
- For every kind but Bio page the panel is collapsible: it starts open from `library-collapse-at` (1280 px, on the workspace) and collapsed below it, where a `toolbar-icon` circle at the start under the bar re-opens it as an overlay. The derivation: library 300 + inspector 340 + four `chrome-inset` (56) + a canvas that holds the browser frame at its 560 px minimum with `s-3` either side (584) = 1280. Bio page keeps its block palette open while there is room for both panels and the phone preset.

### The canvas

`editor-canvas`: the centre, on `background-edge` with the `stage-dot` dot lattice, showing the real thing the visitor gets, live, built from the same serialiser as the save (so it can never show something the save will not keep). A mono kicker above it names what it shows ("● SHORT URL · STU.DIO"). Each kind's preview is in Kinds; the previews are content (`surface`, `outline`, flat), never glass. Exports (.vcf, .ics, PNG, SVG) sit under the preview as secondary buttons. There are no explanatory banners about how a preview works.

- **Bio page** is the block canvas: drag from the palette with a `drop-indicator`, select with the `block-chip` and the floating `block-toolbar`, reorder by the `block-handle` or `Alt` / `Option` + arrows, edit text in place, undo and redo (Direct manipulation, below).
- **Static page** renders the stored file in a sandboxed `<iframe sandbox>` with no scripts and an opaque origin; a ZIP shows its entry page.
- The page-like canvases lay out at the preset's true width and draw scaled to fit when the space is narrower, with the readout "1280 px · 61 %".

### The inspector

`inspector-panel` (end, `editor-panel-w-wide` 340): floating glass, inset like the library, scrolling on its own.

- **Object head** (`object-head`): the kind's `icon-well`, its name as a two-tone title ("Short *URL.*"), a mono subtitle stating what it does ("REDIRECT TO ANY DESTINATION"), and for every kind that can be paused the **Active** switch at its end. The switch is the one place the state lives: no segmented control repeats it.
- **Sections** (`inspector-section`): a `caption-md` label over a hairline, then the fields, in the product's field order for the kind. For every addressable kind the first section is the **address**: the `address-field` (domain picker · "/" · slug · Copy), showing the resulting URL in full in mono. Core fields are open.
- **More options** (`more-options`): one collapsed disclosure, last, holding everything most people never change: protection (password, sensitive content), expiry and limits, tracking pixels, display rules, UTM and notes, each as its own labelled section inside. An inspector never has tabs; Bio page's page settings and block settings swap by selection (nothing selected shows the page's own settings).
- **No duplicate controls and no control the renderer ignores.** A control appears only when the thing behind it works.

### Save models

| Kinds | Saving | Primary | Leaving |
|---|---|---|---|
| Short link, vCard, Event, File link, Static page, Splash page, Payment link | Explicit: nothing is stored until Save. Save is disabled (`aria-disabled`, with the reason on focus) until the record is valid and, for an edit, changed. After Save the status reads Saved; a new resource's address becomes `&id=<id>` | **Save …** (the kind's verb) | A dirty workspace asks once, "Discard changes?" with Keep editing · Discard, for back, the logo, the switcher, a destination, and the browser's own question for a reload or a closed tab |
| QR code | Explicit Save (in More, and `⌘S` / `Ctrl S`), plus Export | **Export** (PNG at a chosen size, SVG) | As above |
| Bio page | Autosaved draft after `autosave-delay`: Saving… then Saved. The public page changes only on Publish → Publishing… → Published | **Publish** | Saves first; asks only when the save fails |

Routine saves never raise a toast. Failed means the write was refused (in the web example, a full browser storage): nothing was stored, the edit stays, and leaving still asks.

### Narrow: sheets

Below `editor-sheet-at` (900 px, on the workspace) the canvas fills the window under the editor bar, and the library and inspector become bottom sheets (`sheet`, with a grip and a scrim, `overlay` backdrop), toggled from a floating glass **sheet bar** at the bottom centre (`editor-sheetbar`, `fab` tall, above the safe area): **Library · Preview · Settings**, and for Bio page **Blocks · Page · Settings**. Preview closes any sheet. The current item takes `editor-sheetbar-item-current`. The primary action stays in the editor bar; below `overlay-at` the centre view control moves into More. `editor-sheet-at` is derived from the narrowest docked form: the collapsed library circle (`nav-h` 46) + the inspector 340 + a canvas holding the phone preset 390 with `s-6` either side (438) + four `chrome-inset` (56) = 880, taken at 900 so the workspace changes form at the same width as the product's own editors.

### Direct manipulation on the canvas

**Insert.** Drag a `palette-item` onto the canvas: while dragging, a `drop-indicator` (a 2 px `primary-line` rule, `full` radius, spanning the block column) shows between the two blocks where it will land, and the empty canvas shows one large drop target ("Drop your first *block.*", then "Drag a block from Blocks onto the canvas, or press one to add it here"). Clicking or pressing `Enter` on a palette item appends the block after the selection (or at the end), and selects it.

**Select.** Clicking a block, or `Tab` to it and `Enter`, selects it: a 1.5 px `canvas-selection` outline, the `block-chip` at its top start and the **block toolbar** at its top end (`glass-solid`, because it sits over content Studio does not control). Hover shows a quieter outline. Both disappear with the selection. `Escape` clears the selection.

**Reorder.** Drag the handle; the drop indicator shows the landing slot and the block follows the pointer at the `raised` tier. The keyboard equivalent is the same everywhere: with a block selected, `Alt` / `Option` + `↑` `↓` moves it one slot, and the handle is also a button (`Space` lifts, arrows move, `Space` drops, `Escape` cancels). Every move is announced politely ("Heading moved to position 3 of 7"), and undo reverts it.

**Edit in place.** Text that is visible on the page (a heading, a paragraph, a quote, a button's label) is edited on the canvas: click into it (or `Enter` on the selected block) and type; `Escape` leaves editing and keeps the text. Inline editing uses the block's own typography, so the canvas never shows a field where the page shows text. Empty text shows its placeholder in `on-surface-3`. Text edited on the canvas and its inspector field are one value, and one burst of typing is one undo step.

**Visibility and schedule.** A block can be hidden (dimmed on the canvas, left out of Preview and the exported page) or scheduled between a start and an end (a clock on its chip).

**Images** come from the sample photos when they are installed, from a file you upload or drop onto an image, gallery or hero block (kept in this browser), or show a token-tinted placeholder in the artwork palette. Never a broken image, and never a third-party address at runtime.

**Rules.** Drag is never the only way: every insert, move and delete has a click and a keyboard path. Drop indicators and selection never shift layout. Blocks animate to their new slot over `duration-fast` with `ease-out`; under reduced motion they jump. Undo and redo cover inserts, moves, deletes and edits as one history.

## Views

The product's views open with the work beside the sidebar. Lists and dashboards have no page head with display headline, lead and facts; Home has its own hero, the prototype's.

### Headings

Each view has one h1 and the levels go down from it. Home's h1 is the greeting (`headline-display`; `headline-lg` on phones); its sections are h2 at `headline-md` with a `section-kicker`. A collection's h1 is its title at `headline-md`. In the editor workspace the h1 is the resource's name in the kind pill. The page pill names the destination but is not a heading.

### Home

Home is the prototype's Home, section for section. From `tabbar-at`:

1. **Hero** (`home-hero`): a `section-kicker` with the date ("STUDIO · SUNDAY · MAY 31"), the greeting as the h1 in `headline-display` with the name as the accent word ("Good afternoon, *Daria.*"), and one lead sentence (`home-hero-lead`, `body-lg`, `measure-narrow`). At the end, aligned to the greeting's last baseline, `hero-stats`: three figures in a `home-hero-stats-w` (200) column, hairline-separated, each a `numeral-md` value with a `hero-stat-label` caption: CLICKS TODAY, ADDED THIS WEEK, QR SCANS TODAY.
2. **Start something new** (CREATE): the `composer` card (`card-feature` shape: "LINK · THE FAST PATH" kicker, "Paste any long URL, get back *a short one.*" in `headline-lg`, the URL `input-pill`, then the domain picker, alias and the lime **Shorten**, the view's one lime action) beside a 2×2 of `kind-tile`s: QR code, Bio page, vCard, File link. Under them a quiet `caps-link` "All nine kinds" opens the New sheet. Composer and tiles sit side by side from `split-at`, stacked below it. Shorten creates the link and opens it in the editor workspace.
3. **The whole library** (STATISTICS · LAST 30 DAYS, with a `caps-link` "All analytics"): four `stat-card`s with sparklines: Total clicks, Unique visitors, Resources (with the kind mix as its sub line), Top performer (a name in `headline-lg`). The headline metric and the top performer are `stat-card-featured` (a `primary-line` rim with a caption that says why). Four across from `quad-at`, two by two below.
4. **Pick up where you left off** (RECENTLY EDITED, with "View all · N"): six `resource-row`s, most recently edited first.
5. **Start from a look** (EXPLORE · TEMPLATES, with "Browse all"): a `scroller` of `look-card`s (QR looks, link presets, Bio page themes, vCard styles), the last one peeking; a card opens the New flow for its kind with the look applied.

**Phones** (below `tabbar-at`), the hero only changes: the greeting is `home-hero-compact` (`headline-lg`), the lead follows it, and the three figures become one fixed 3-up row of `hero-stat-card`s (equal thirds, `grid-gap`) that never wraps: values use the compact format (6.2k) and the captions are `caption-xs`, so each fits a third of a 320 px frame. The composer follows directly. Every other section stacks as the prototype does: the tiles two by two under the composer, rows full width with their value folded below `row-fold-at`, the looks rail scrolling. The parts take their phone form through `compact` (`data-compact`; the walkthrough's Home-Phone): the composer an `s-5` inset, the kind tile an `s-4` inset with its title at `numeral-sm` size and its line at `body-sm` size, and the stat card an `s-3h` inset, label and delta on one line without the label's glyph, the figure at six sevenths of `numeral-stat` (24) and no sub line — the cards a sideways rail `rail-min` wide rather than two by two. A section's link is left off on phones (the tab pill carries the destination).

### Resources and the collection header

Resources is one view for the whole collection. The kind comes from the sidebar (`?kind=`) and from the kind picker under the header (All and the nine); both are the same state, kept in the URL with the query, filters and sort.

```
Short links 12          [⌕ Search links…………………]   [⚲ Filter ²]   [+ New]
(All) (Short links) (Bio pages) (vCards) (Events) (File links) (Static p…   kind picker: chips, scrolls
8 links · 2 paused · Clear filters
```

The **collection header** is one row, always:

- **Parts, in order:** the `collection-title` (h1, `headline-md`) with its count in `mono-sm`; the search field, which grows from `collection-search-min` (160 px); the `filter-button`; and **New** (the view's one lime action: a new resource of the kind in view, or the New sheet in All).
- **Filter** is one button that opens one popover (a sheet at narrow) holding state (Active · Paused · Draft), sort, and Show archived. Its `count-badge` shows how many filters are active.
- **Priority when space runs out:** New stays, then Filter, then search, and the title truncates last (one line, ellipsis, full text as tooltip). Below `collection-compact-at` (560 px, on the header's own container) the search collapses to a circle that expands in place across the row with a Cancel ghost button, and the title's count leaves the row (the results line says it) and New becomes a lime circle (its name kept), so a phone keeps the title whole ("Payment links"); below `collection-tight-at` the title steps down to `headline-sm`.
- **It never wraps**, at any width, in any query or filter state, with any title: a single flex row with `flex-wrap: nowrap`, `min-width: 0` on the title and the field, and fixed-size controls.
- **The results line** (`results-line`, `body-sm`) states what is shown and offers "Clear filters" when filtered; it is the live region that announces counts.

Rows are `resource-row`s in the prototype's "Pick up where you left off" style: the kind's icon tile, the name in `row-title`, the `kind-badge` (in All only), the meta line (address · status · age, `mono-xs`), the metric with its word at the end, an inline **Copy** for an addressable kind (confirming "Copied"), and the `⋮` menu: Edit, Duplicate, Pause or Activate, Archive (with an Undo toast), Delete (confirmed, in `error`). A row has no switch. The whole row opens the editor workspace. The first-run empty state names the kind and offers its New; no results names the query and offers Clear.

### Analytics

The prototype's Analytics page, with the same header discipline: one row of title · resource picker · range (segmented: 24 h · 7 d · 30 d · 90 d) · Export, never wrapping, with Export moving into a More menu first. The main chart comes first, then the stat row and the breakdowns, across all nine kinds with each kind's metric word.

## Code

Studio shows code in the documentation, in the gallery, and in one product surface: the Bio page's custom-HTML block. One engine highlights all of it: a fork of Prism 1.30.0 (MIT), owned in the repository, used at build time for the documentation and at run time by `CodeBlock` and `CodeEditor`. Apple platforms never run a grammar: StudioKit's `StudioCodeBlock` renders a pre-tokenised stream of `{text, role}` pairs produced by the same engine.

Languages: HTML and markup, CSS, JavaScript, TypeScript, JSX, TSX, JSON, Bash and shell, Swift, YAML, Markdown and Go.

### Roles

Every token is drawn in one of nine ink roles on `code-surface`; three line roles tint whole lines. The mapping from Prism token types to roles lives in one file, `packages/system/src/code/code-roles.json`, read by the engine, the site build, studio-react and StudioKit. A token takes the role of its type, then of its first listed alias, then of its parent's.

| Role | Carries | Hue |
|---|---|---|
| `code-plain` | Identifiers, operators, everything unmapped | Ink at 270, as body text |
| `code-punctuation` | Brackets, separators, delimiters | Quieter ink at 270 |
| `code-comment` | Comments, doctypes, prologs | Quietest ink at 270, never italic |
| `code-keyword` | Keywords, booleans, at-rules, directives | Violet, 300 |
| `code-string` | Strings, regexes, attribute values, URLs | Teal, 190 |
| `code-number` | Numbers, constants, entities | Rose, 355 |
| `code-function` | Functions, class names, built-ins | Blue, 260 |
| `code-attr` | Attribute names, properties, keys, variables | Copper, 50 |
| `code-tag` | Tags, selectors | Indigo, 280 |
| `code-added` / `code-removed` | Diff lines | Green and red tints behind `code-plain` |
| `code-highlight` | A highlighted line | A neutral tint at 270 |

The hues stay clear of the status families on purpose: no ink role is the green, amber, red or sky of status, and none is the lime of the primary action, so a code sample can never read as a status or an action. Only the diff tints borrow the green and red families, as fills behind ink, because a diff is a status. Chroma is restrained (0.08–0.17), so code reads as text with structure, not as decoration.

Every ink role clears 4.5:1 on `code-surface` and on all three line tints, in both themes; the linter measures each pair through the `code-token-*` and `code-line-*` components on every build.

| Ink on `code-surface` | Light | Dark |
|---|---|---|
| `code-plain` | 15.65 | 16.25 |
| `code-punctuation` | 7.65 | 8.92 |
| `code-comment` (lowest) | 5.42 | 6.12 |
| `code-keyword` | 6.41 | 9.87 |
| `code-string` | 5.92 | 11.48 |
| `code-number` | 5.93 | 9.74 |
| `code-function` | 6.03 | 10.26 |
| `code-attr` | 5.65 | 10.75 |
| `code-tag` | 6.45 | 10.08 |
| Lowest ink on a line tint (`code-comment` on `code-highlight`) | 4.74 | 5.08 |

### Code block

`code-block`: `code-surface`, `lg`, an `outline` rim, `s-4` / `s-5` padding, `mono-md` with tabular figures, flat. It is content, never glass. Anatomy: an optional head (the file name or language as a `caption-md`, and a Copy `button-icon-sm` that confirms "Copied"), then the code in a `pre` that owns its horizontal scroll (`tabindex="0"`, an `aria-label` naming the language). Lines never wrap and never truncate. Line numbers, when shown, are `code-comment`, right-aligned and outside the selection. Highlighted and diff lines tint the full line width; added and removed lines also carry a `+` or `−` in the gutter, so the diff is never colour alone.

### Code editor

`code-editor`: a textarea under a highlighted overlay, in one box: the transparent textarea owns the caret, selection, input, undo and IME, and the highlighted `pre` behind it mirrors its text, scroll and metrics exactly. It is a field: the `outline-strong` rim, the `focus-field` rim and halo on focus (`code-editor-focus`), a visible label, at least `textarea-min` tall and growing with its content. `Tab` inserts two spaces; `Escape` followed by `Tab` moves focus on, and the field's hint says so, so a keyboard user is never trapped. It stays lightweight: no autocomplete, linting or folding.

### Code on Apple platforms

`StudioCodeBlock` takes `[StudioCodeToken]` (`text`, `role`), produced by the engine at build time or by the server, and draws each run in `StudioColor.code<Role>`. It never parses code on the device and never ships a grammar.

## Interaction

### Focus

```css
:where(a, button, select, summary, [tabindex]):focus { outline: none; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: var(--spacing-rule-thick) solid var(--color-focus); outline-offset: 2px;
}
:is(input, textarea, select, .input-group, .input-pill, .domain-picker):focus-within {
  outline: none; border-color: var(--color-focus-field); background-color: var(--color-surface);
  box-shadow: 0 0 0 var(--spacing-halo) var(--color-focus-field-halo);
}
@media (forced-colors: active) {
  :focus-visible,
  :is(input, textarea, select):focus,
  :is(.input-group, .input-pill, .domain-picker):focus-within { outline: 2px solid Highlight; box-shadow: none; }
}
```

- **Buttons, links, rows and composite widgets** show a 2 px `focus` ring (lime line) at a 2 px offset, on `:focus-visible` only: 3.68:1 on `surface` in light, 8.42:1 in dark. A stretched row link draws its ring inset by 3 px so the row's rim never hides it.
- **Fields** show the `focus-field` rim, the `surface` fill and the 3 px halo.
- Composite controls draw the indicator on the visible element. Every field reserves 3 px of bleed so a halo is never clipped. Focusable elements set `scroll-margin-top: var(--spacing-scroll-offset)` so nothing hides under the toolbar.

### Control states

Every control reaches the same set of states, with one treatment each.

| State | Treatment | Signals |
|---|---|---|
| Rest | The component's own fill, ink and rim | — |
| Hover (pointer only, `@media (hover: hover)`) | A `scrim` or `surface-2` wash, or a firmer rim, over `duration-fast` | Colour |
| Active (pressed) | `press-scale` (circles `press-scale-circle`) over `duration-instant`; the primary darkens to `primary-active` | Scale, colour |
| Focus-visible | The 2 px ring, or the field rim and halo | Ring |
| Selected / current | `surface-3` (in a track: `surface` with an `outline-strong` rim) plus `label-lg` weight; a check on options and chips; `aria-selected`, `aria-pressed` or `aria-current` | Wash, weight, glyph |
| Checked | `primary` fill with an `on-primary` glyph (checkbox, radio, toggle) | Fill, glyph |
| Disabled | `surface-3` / `on-surface-3`; no hover or press; `aria-disabled` and a reason on focus when the reason is not obvious | Colour, cursor, text |
| Loading | A spinner replaces the icon, the label and width are kept, `aria-busy`; the label speaks the action's word (Publishing…) | Spinner, word |
| Error | `error` rim and message (fields); `error` text and a Retry (actions); `save-state-failed` (documents) | Colour, icon, text |

- Hover never reveals or triggers anything on its own: every hover affordance (a row's arrow, a tile's "+", a tooltip) is also reachable by focus and by tap.
- Press feedback starts within one frame of the press.

### Controllers bind once

Every controller binds inside one `boot()` guarded by a flag on the root. A double-bound toggle fires twice and cancels itself.

### Feedback

A change confirms in the control's own word: Copy → Copied, Publish → Publishing… → Published. Destructive confirmations are dialogs whose button repeats the verb ("Delete"); where undo is possible ("Archive"), a toast with "Undo" replaces the confirmation.

## Forms

Below `tabbar-at` every field, search field, select and textarea sets `body-lg` (16 px; not the code editor, whose text lies over a painted copy, nor the composer, whose one-row alias line is derived at 14 px), as Studio Origins does, so focusing it never zooms the page on a phone.

- **Structure:** a `fieldset` per group with a `caption-md` legend, fields in one column, then the actions row. Paired fields (expiry date and time) share a row only in a container at least `pair-at` wide.
- **Labels and help:** every field has a visible `<label for>` above it (`field-label`). Hints sit below, linked by `aria-describedby`, and state the constraint first ("Letters, numbers and dashes"). The form marks whichever of required or optional is the minority, and says so once.
- **Validation:** on submit, and on blur for filled fields; never per keystroke. A slug's availability is checked after typing pauses, and only reported, never blocking, until submit. Errors show the `error` rim, an icon and text that names the fix ("Use a slug of 3 characters or more"). A failed submit moves focus to the first invalid field and shows a `role="alert"` callout above the actions linking to each failure. Success is a `role="status"` callout or the action's own word.
- **Input survives:** a form never silently resets; values survive errors, resizing, theme and density changes, and navigation (drafts are kept per document).
- **Constrained choices** use constrained inputs: a domain is picked, not typed; a colour is a swatch or a hex field, not free text.
- **WCAG 2.2:** earlier answers are offered again; paste and autofill work everywhere, with no puzzles; nothing requires a drag; help sits in the same place on every page. Every field with an autocomplete token sets it.

## States

### Loading

Nothing shows a loading state before `loading-delay` (300 ms).

| Mechanism | When | Behaviour |
|---|---|---|
| Skeleton | Layout known | `surface-3` blocks with the real content's boxes (a row's thumb, title and value; a stat tile's label and number); shimmer stops after `shimmer-stop` |
| Spinner | A control is working | Replaces the icon; label and width kept; `aria-busy` |
| Progress bar | Known total (an export, an upload) | `progress-track` + `progress-fill`, `aria-valuenow` |
| Progress callout | A background task | `callout-progress` with a sentence ("Generating 12 QR codes…") |

The region being replaced is `aria-busy="true"`; the result is announced once. A media skeleton declares the media's `aspect-ratio`.

### Empty

An empty region is an instruction: an `icon-well` with an `icon-2xl` glyph (or a small artwork), a `headline-sm` title in the user's words, one `body-md` sentence, and one action that does exactly that. It centres as one unit, at `measure-narrow`, inside the region it replaces.

- **First run:** "No short links yet." · "Paste a long URL to make your first short link." · [New]
- **No results:** the title names the query ("Nothing matches "spring"") and the action is "Clear".
- **Cleared by the user:** one quiet line ("All caught up").

### Error

| Scope | Presentation | Recovery |
|---|---|---|
| Field | `error` rim and message | Inline; value kept |
| Form | `role="alert"` callout above the actions | Fix and resubmit |
| Region (a chart, a list) | The region's empty-state layout with an error glyph, a one-line cause | "Retry", that region only |
| Resource | Failed beside the name in the editor bar (`save-state-failed`) | "Retry"; the edit is kept locally |
| Page | The empty-state layout at `headline-md` | "Reload", plus a route back; the navigation and search stay |

Errors say what happened and what to do. They never say "Oops", never apologise or blame, never use exclamation marks, and always keep the user's work. Technical detail sits behind a "Details" disclosure in `mono-sm`. Offline is a `warning` callout at the top of the content that clears itself, and the status reads Offline.

## Accessibility

**Target: WCAG 2.2 AA, in both themes, both densities and at every container width.** Where Studio goes further, the stricter value is the requirement.

- **Contrast:** text ≥ 4.5:1, including every caption down to 9 px; control rims, state indicators, field focus, kind dots and series ≥ 3:1; checked on every build in both themes (Colors). No meaning is carried by hue alone.
- **Keyboard:** everything reachable in DOM order with a visible indicator; no positive `tabindex`; focus trapped only in dialogs and sheets and restored on close; `Escape` closes the topmost layer only; composite widgets follow the WAI-ARIA Authoring Practices; every drag (inserting and reordering blocks, dismissing a sheet) has a non-drag equivalent, and every move on the canvas is announced (Editing).
- **Structure:** one h1 per view (the collection title, Home's greeting, or the resource's name in the editor bar's kind pill); the New sheet and confirmation dialogs are labelled dialogs; no skipped levels, labelled landmarks from the region roles, `lang` set, unique titles leading with the view name.
- **Targets:** every hit area ≥ 44 px in every representation, density and input.
- **Adaptation keeps semantics:** a region that moves to an overlay or sheet keeps its name, role and order. Representation changes never reset scroll, selection, open panels or typed input.
- **Zoom:** usable at 200 %; one column with no sideways scroll at 400 %. Zoom and text-size changes are container changes.

| Preference | Studio becomes |
|---|---|
| Reduced motion | Transitions complete in 1 ms; no section rise, no press scale, no shimmer; the still state is the finished state |
| Reduced transparency | Glass becomes `glass-solid` with its rim; no blur; the overlay keeps its opacity but loses its blur |
| Increased contrast | Hairlines become 1 px, `outline` becomes `outline-strong`, `on-surface-3` text becomes `on-surface-2`, glass becomes `glass-solid` with a 1 px `outline-strong` rim |
| Forced colours | Fills, glass and shadows drop; boundaries become `CanvasText`; focus becomes `2px solid Highlight`; selected items take `SelectedItem`; charts show their table |
| Dark | The dark theme, independently checked |

**Testing floor before a component is done:** a keyboard-only pass; VoiceOver with Safari and NVDA with Firefox; 200 % and 400 % zoom; both themes, both densities, reduced motion, reduced transparency, increased contrast and forced colours; every test width; axe-core with zero violations.

**Browser checks.** Every Studio project runs these at every test width, in both themes:

| Check | Pass when |
|---|---|
| Frame | The brand pill's outer edge equals the content's start edge and the capsule's (site shell) or the avatar's (app views) the end edge (±1 px). The editor workspace's frame is the window, inset `chrome-inset` |
| Wrapping | No button, badge, chip, tab, segmented item, caption, navigation link, descriptor or row title is taller than one line |
| Labels | Every top-level button label is one word, except the editor bar's save actions, which are the registry's verbs (Save link, Save vCard, …) |
| Circles | Every icon-only control has equal computed width and height |
| Side stripes | No element has a border on exactly one inline edge, or a box-shadow with a horizontal offset |
| Section sign | The rendered text contains no section sign |
| App shell | From `sidebar-at`: the flush sidebar, every label on one line, the current item marked (`aria-current`), the sections scrolling on their own so the foot never covers an item; collapsed, the rail with a tooltip for every icon. The top bar's pills float at every width; the search pill from `sidebar-at`, a circle in the actions pill below. From `tabbar-at` to `sidebar-at`: the rail and the New circle. Below it: the tab pill (icon-only, each item named) and the New circle above the safe area |
| Editor workspace | No top bar or tab bar; one editor bar; from `editor-sheet-at` the inspector is docked; below it the canvas spans the window and the sheet bar is present; the primary action stays in the editor bar |
| Collection header | One line tall at every test width, empty and with a long query, with and without active filters |
| Site navigation | Below `nav-inline-at`: the brand shows the mark only, the capsule is at the top end, and both bottom circles are present |
| Hit areas | Every interactive element's hit area is at least 44 × 44 px |
| Glass | No glass element is a descendant of `main` except layers (menus, popovers, toasts, the block toolbar); the canvas previews are never glass |
| Lime | At most one element with the primary treatment per view; the sidebar's New is ink and the tab bar's New is never lime |

## Apple platforms

StudioKit 2.0.0 is the SwiftUI implementation for iPhone, iPad and Mac, generated from this file. Every value it uses comes from the generated token file; views never write a literal. watchOS, tvOS and visionOS are not covered by this release.

### Roles in SwiftUI

| Studio | SwiftUI |
|---|---|
| Colour roles, both themes | `StudioColor.<role>`: dynamic `Color`s that resolve light or dark from the environment's `colorScheme`, converted from OKLCH to Display P3 at generation |
| Type roles | `StudioType.<role>`: font, size, weight, tracking, line spacing and the uppercase flag; Bounded, Instrument Serif, Certia and Space Grotesk are bundled and registered at launch. Sizes scale with Dynamic Type relative to their text style (`@ScaledMetric`), so 10 px captions grow with the user's setting |
| Spacing, radius, thresholds | `StudioSpace.<token>`, `StudioRadius.<token>`, `StudioThreshold.<token>` as `CGFloat` |
| Elevation tiers | `StudioElevation.<tier>`: the same centred shadow layers as `.shadow` modifiers |
| Motion | `StudioMotion.<token>`: durations as `TimeInterval` seconds and easings as `StudioCurve`, which makes an `Animation.timingCurve`; all of it is skipped under `accessibilityReduceMotion` |
| Theme, density, contrast, transparency | `StudioTheme` in the environment, read with `@Environment(\.studioTheme)`; system accessibility settings (`accessibilityReduceTransparency`, `colorSchemeContrast`, `accessibilityDifferentiateWithoutColor`) map to the same treatments as the web preferences |
| Thresholds | Measured on the container with `onGeometryChange` or `ViewThatFits`, never on the device or the size class alone |
| Hit areas | `.contentShape` and `.frame(minWidth: 44, minHeight: 44)` around smaller visible controls |

### Liquid Glass is chrome, never content

On OS 26 and later, Studio's glass material is the system's Liquid Glass:

- **Bars are the system's.** Toolbars use `.toolbar` with `ToolbarItem` placements and `ToolbarSpacer` between groups, so the system draws the glass pills; Studio sets no custom bar background. Sheets, menus, popovers and the search field are the system's (`.sheet`, `Menu`, `.popover`, `.searchable`), styled with Studio's type and ink.
- **Studio's own floating chrome** (toasts, the canvas's block toolbar) uses `.glassEffect(.regular, in: Capsule())` or `Circle()`, grouped in a `GlassEffectContainer`, with `.interactive()` on controls. The regular variant is used for everything that holds text.
- **The primary action stays an opaque lime capsule** (`StudioButton(.primary)`), placed inside the glass group, so `on-primary` ink keeps its contrast; glass is never tinted lime.
- **Content never takes glass:** cards, rows, tiles, tables, charts and the artboard are `surface` and hairline, flat.
- **Reduce Transparency** is honoured by the system for system glass; Studio's own glass falls back to `glass-solid` with its rim when `accessibilityReduceTransparency` is on. **Increase Contrast** thickens rims to 1 px `outline-strong`.
- **Earlier OS versions** fall back to `.regularMaterial` in the same shapes with the `glass-line` rim, behind an availability check.

### Navigation on Apple platforms

The app's structure is built from the native containers, and it follows the web: **a sidebar at regular width, a tab bar at compact width**. One `TabView` with `.tabViewStyle(.sidebarAdaptable)` is both, so resizing a window or folding a device keeps each tab's content and selection; the site shell has no Apple counterpart.

- **iPhone (compact width):** the system tab bar with **Home · Resources · Analytics**, each a `NavigationStack`. New is not a tab: a tab bar navigates and a toolbar acts, so New is a "+" `ToolbarItem(placement: .primaryAction)` on each tab's root that presents the New sheet. Search is `.searchable` in the navigation bar, at the top; the workspace avatar is the leading toolbar item and opens the switcher's menu (workspaces, account, theme, Settings, Sign out). The tab bar is the system's and is not set to minimise on scroll.
- **iPad and Mac (regular width):** the same `TabView` as the system sidebar: the destinations at the top, then its sections (Resources' kinds, Organize), with the workspace switcher as its header; people may reorder and hide items (`tabViewCustomization`). New is a toolbar item (and File › New on the Mac), search is `.searchable` (`⌘F` on the Mac, the platform convention; the web adds `⌘K` because a browser owns `⌘F`). On the Mac, Settings is also the app's Settings scene.
- **Home** mirrors the web Home's sections: hero with its three figures, Start something new, The whole library, Pick up where you left off, Start from a look.
- **The editor workspace** (`StudioEditorWorkspace`) is one view for all nine kinds. On iPad and Mac: three panes, the library as a collapsible leading panel, the preview in the centre, and the inspector as `.inspector` trailing; the editor's toolbar holds back, the kind and name (with a rename action), the status as a subtitle, the view control and the kind's primary action. On iPhone the preview is full screen with Library and Settings as sheets from the bottom toolbar. Save models are the web's: explicit Save with `interactiveDismissDisabled` while dirty for the singular kinds, autosave and Publish for Bio page, Save and Export for QR code. Reordering uses `.draggable` / `.dropDestination` with "Move up" and "Move down" accessibility actions as the non-drag path.
- Switching width class never resets the selected destination, scroll position or an open resource: state lives in the model, not in the container.

## Platform mapping

One rule derives every Swift name from its token: drop the CSS prefix, convert kebab-case to lowerCamelCase, keep digits, and place it under the group's type. Half-steps keep their letter (`s-1h` → `s1h`).

| CSS custom property | Swift name | Swift type |
|---|---|---|
| `--color-<role>` (`--color-on-surface-2`) | `StudioColor.<role>` (`StudioColor.onSurface2`); each theme's value is `StudioColor.Light.<role>` and `StudioColor.Dark.<role>` | `Color`; `StudioRGBA` |
| `--color-<alias>` (`--color-text-2`) | none: aliases exist for the web prototype only | — |
| `--spacing-<token>` (`--spacing-nav-h`, `--spacing-s-3h`) | `StudioSpace.<token>` (`StudioSpace.navH`, `StudioSpace.s3h`) | `CGFloat` |
| `--spacing-<threshold>-at` (`--spacing-nav-inline-at`) | `StudioThreshold.<token>` (`StudioThreshold.navInlineAt`); the page steps are `StudioThreshold.pageMdAt` and `.pageLgAt` | `CGFloat` |
| `--rounded-<token>` (`--rounded-lg`) | `StudioRadius.<token>` (`StudioRadius.lg`) | `CGFloat` |
| `--type-<role>-family`, `-size`, `-weight`, `-line-height`, `-tracking`, `-feature` | `StudioType.<role>` (`StudioType.headlineDisplay`), with `postScriptName`, `size`, `minSize`, `weight`, `lineHeight`, `tracking`, `uppercase`, `tabularFigures` and `textStyle` | `StudioTypeRole` |
| `--font-display`, `--font-serif`, `--font-sans`, `--font-mono` | `StudioFont.<face>` PostScript names (`StudioFont.bounded`, `StudioFont.instrumentSerifItalic`); `StudioFont.files` lists the bundled files | `String` |
| `--elevation-<tier>` (`--elevation-float`) | `StudioElevation.<tier>` (`StudioElevation.float`) | `StudioShadowSet` |
| `--motion-<token>` (`--motion-duration-fast`, `--motion-ease-spring`) | `StudioMotion.<token>` (`StudioMotion.durationFast`, `StudioMotion.easeSpring`) | `TimeInterval`, `StudioCurve` |
| `--z-<layer>` (`--z-popover`) | `StudioZ.<layer>` (`StudioZ.popover`) | `Double` (for `.zIndex`) |
| `--material-<name>-<prop>` (`--material-glass-blur`) | `StudioMaterial.<Name>.<prop>` (`StudioMaterial.Glass.blur`) | per property |
| `[data-density="<mode>"]` overrides | `StudioDensity.<Mode>.<token>` (`StudioDensity.Compact.navH`) | `CGFloat` |
| `--art-<colour>`, `--art-label-on-<colour>` | `StudioArt.<colour>` (`StudioArt.skySoft`), one value in both themes; the label colour on each is `StudioArt.LabelOn.<colour>` (from 2.1.0: the Apple app draws placeholders and sample art) | `StudioRGBA` |
| `--component-<key>-<prop>` (`--component-toolbar-pill-height`) | `StudioComponent.<Key>.<prop>` (`StudioComponent.ToolbarPill.height`; padding is `StudioInsets`) | per property |
| `--gutter`, `--band` | `StudioSpace.gutter`, `.gutterMd`, `.gutterLg`, `.bandNarrow`, `.band`, chosen by StudioKit from the container width against `StudioThreshold.pageMdAt` and `.pageLgAt` | `CGFloat` |
| `[data-theme]`, `[data-density]`, `[data-contrast]`, `[data-transparency]` | StudioKit's theme and density environment values, plus the system's `colorScheme`, `colorSchemeContrast` and `accessibilityReduceTransparency` | environment value |

Code roles follow the colour rule (`--color-code-keyword` → `StudioColor.codeKeyword`); the app shell's and editor workspace's thresholds the threshold rule (`--spacing-tabbar-at` → `StudioThreshold.tabbarAt`, `--spacing-editor-sheet-at` → `StudioThreshold.editorSheetAt`), measured on the window's or the workspace's container.

Components map by the [build names](#build-names) table (`CollectionHeader` ↔ `StudioCollectionHeader`).

## Do's and Don'ts

| Do | Don't |
|---|---|
| Resolve every value to a token | Write a colour, length or duration in a stylesheet or a view |
| Keep exactly one lime capsule per view; use `primary-line` and `primary-soft` for the link kind and the focus ring | Fill a selected tab, chip, option, toggled icon or current link with lime |
| Write headlines in Bounded with one serif-italic `<em>` in `on-surface-3` | Set body copy in Bounded or mono, or use the serif outside an accent word |
| Set `"tnum" 1` on every Bounded role | Let Bounded digits render as circled glyphs |
| Use mono captions for kickers, labels, metadata and status, in sentence case in the source | Type captions in capitals, or set sentences, emails or URLs as captions |
| Draw every control's edge in `outline-strong` and every card's in `outline` | Use `outline` for a field, chip or segmented track |
| Keep hairlines at 0.5 px | Thicken borders for emphasis |
| Give the product the Studio Origins shell (the flush sidebar, a rail on tablets, the floating top bar, on phones the tab pill and the New circle), and the public pages the site shell | List every place in one flat column, hide an item behind the sidebar's foot, use Portico's floating row or menu sheet as the product's navigation, or put the app shell on the public site |
| Use the shared glass recipe for every floating layer | Build a page-local blur, or put glass on a card or row |
| Keep cards flat; firm the rim on hover | Lift a card, row or tile with a shadow |
| Show status with a dot and a word; deltas with an arrow and a sign | Use colour alone |
| Colour each kind by its own hue everywhere | Add a second accent hue, a gradient, a bloom or colour for variety |
| Keep search and the account at the top end at every width, and the workspace switcher in the sidebar's foot | Put search in the tab pill, fade an edge to hint at overflow (a scrolled row lets its last item peek instead) |
| Edit every kind in the one editor workspace, with the kind's save model | Open a drawer, a modal form or a second editor layout for one kind, or put a form on a list |
| Keep the collection header on one row and let search collapse to a circle | Let a header wrap, or lay filters out as a row of selects |
| Write one-word labels; put the rest in `aria-label` | Write "Create new link" or let a label wrap |
| Use the lightest layer; size dialogs to content | Open a dialog for information, or a dialog from a dialog |
| Release a panel down the ladder | Hide a panel because space ran out |
| Write errors that name the fix | Write "Oops! Something went wrong." |
| Use Phosphor in its three weights by job | Use emoji, hand-drawn illustration or a second icon set |

## Changes in 2.4.0

**The walkthrough is the approved experience** (owner decision, 2026-11-30): where the "Cardsite — Platform Walkthrough" boards (System-Foundations, Type, System-Components, Previews) and 2.3 differed, the boards won, and the rules they contradicted were rewritten. Visible changes are marked ●.

| Change | Why |
|---|---|
| ● **Nine kind hues** replace the four families: `kind-<kind>`, `kind-<kind>-surface`, `on-kind-<kind>-surface` for link, biopage, qr, vcard, event, file, static, splash and payment, light and dark; `kind-site` is gone and `kind-link`, `kind-qr`, `kind-vcard` change value. Component keys `icon-well-*`, `list-row-thumb-*` and `kind-dot-*` are per kind; `data-tone` names the kind | The Foundations board: "one hue and one glyph each" |
| ● **Kind order and words**: Link, Page, QR, vCard, Event, File, Site, Splash, Pay; collections Links, Pages, QRs, vCards, Events, Files, Sites, Splashes, Payments; counts taps, views, scans, saves, RSVPs, downloads, views, visits, payments | The boards' words and order |
| ● **Status hues** `success` #2AA654, `warning` #CF9B00, `error` #E20C35; new inks `on-success-surface`, `on-warning-surface`, `on-error-surface` carry status words, deltas and callout text | The board's swatches; the inks keep words at 4.5:1 |
| ● `primary-line` #2AA820 and `on-surface-3` #6E7075 (the board's lime line and Text 3); `focus` keeps the deeper lime as its own value, and secondary text on inset fills moves to `on-surface-2` | The board's values, with the contrast gate held |
| ● New `data` role (#2F3445) for one-series charts, sparklines and meters | The board's Data swatch |
| ● Radius `card` 26 px and elevation tier `card` (hairline plus a long soft shadow) on the card | The Components board's canvas card |
| ● Text fields are 48 px tall with the 14 px `md` radius (`field-h` 48; field, select, address field, domain picker, input group); segmented, tabs and the composer's submit stay 40 | The Components board's inputs |
| ● **Ten type roles**: Display L 50→30 and Display M 42→28 (1.04, −2%), Accent 1.1em, Title Certia 600 16/1.3, Name Certia 500 15/1.3, Body 15/1.5, UI 14/1.4, Small 13/1.45, Label Space Grotesk 500 10.5 caps +12%, Meta 12; sections Bounded 400. Page titles are Display M, the Home greeting Display L | The Type board ("Ten roles, nothing else") |
| Caption tracking is +0.12em everywhere; the front matter (0.14em) and the Scale table (+0.07–0.10em) no longer disagree | One value, the board's |
| Rules rewritten: kinds may sit near status hues and lime because they are told apart by form; one shadow in the content plane (the card); fields are no longer pills; one half-pixel size (10.5) | The rules the boards imply |

## Changes in 2.3.0

**Navigation: app sidebar on wide screens, by owner decision 2026-11-23** (decision 0012, which supersedes the navigation part of 0011), and **Realigned to Studio Origins**: the owner's original kit (delivered 2026-11-22) is the visual direction; where it and 2.2 differed, the kit won. 2.3.0 also releases the typography revision below. Visible changes are marked ●.

| Change | Why |
|---|---|
| ● **The app has the kit's sidebar** from `sidebar-at` (1100): a flush 256 px panel on `background-edge`; the brand (mark, wordmark, collapse); a lime New; small-caps section labels; items with a count pill, the current one a raised white pill with a lime dot (the kit's edge bar and hairline edge are not drawn: Studio rules no single inline edge); More for the long tail; the **workspace switcher in the foot** ("Pro · 8 members"). Collapsible to a 76 px rail with ⌘\, remembered; the brand mark expands it (Navigation) | The owner: a tool people work in all day keeps its places on screen; the kit is the intended design |
| ● **The top bar is the kit's floating glass pills** at every width: the page pill (mark and the page's caps), the search pill (⌘K; a circle below `sidebar-at`), the actions pill (the bell's lime dot), the avatar | Glass, visually rich, naturally adaptive |
| ● **Phones**: the brand pill with the wordmark, the actions pill and a 40 px avatar at the top; a centred icon-only **tab pill** (the current tab raised) and a lime **New circle** at the bottom end. Tablets: the rail and the New circle | The kit's mobile chrome |
| ● **Type**: Certia (the owner's face) for the interface and Space Grotesk for captions and data, replacing Inter Tight and JetBrains Mono; JetBrains Mono stays for code alone (the new `code-md` role); captions tracked 0.14em | The kit's families; the previous pair read as "random" against Bounded |
| ● **Glass**: the kit's material (fill at 72 %, a white rim, blur 28 px, saturate 180 %) and the kit's `float` tier | The kit's material |
| ● **No edge fades**: the kind picker's and tab strips' masks and the canvas lattice's fade are removed; a scrolled row lets its last item peek | The owner: the "side fade illusion" read as a trick over the whole view |
| Kept from 2.2 for contrast: `on-surface-3`, `outline-strong`, `primary-soft` and `error` (the kit's are lighter and miss 4.5:1 or 3:1), the neutral avatar (the kit's avatar gradient is not adopted; no gradients) | The contrast gate and the no-gradient rule hold |
| ● **Apple**: iPhone keeps the tab bar; iPad and Mac show the system sidebar (`.sidebarAdaptable`) | One model on every platform |
| New spacing: `sidebar-w` 256, `sidebar-rail-w` 76, `sidebar-row-h` 40 (the kit's 36, grown to keep 44 px hit areas apart), `sidebar-rail-item` 48, `sidebar-inset` 16, `workspace-mark` 32, `topbar-pill-h` 46 (44 on phones), `topbar-search-min` 210, `avatar-bar` 40, `tab-w` 52, `tab-h` 48, `tab-fab` 60 (52); threshold `sidebar-at` 1100; type `brand-wordmark`, `workspace-initial`. Removed: `topbar-search-w`, `topbar-search-at`, `topbar-search-wide-at` | Values the new components read; nothing reads the removed ones |
| New components: `sidebar*`, `workspace-*`, `topbar-pill`, `topbar-page`, `topbar-action`, `tab-fab`; `topbar-search` is the search pill. Removed: `page-pill*`, `destination-*`, `topbar-new` | One key per new part |
| studio-react: new `Sidebar`, `SidebarSection`, `SidebarItem`, `SidebarMore`, `WorkspaceSwitcher`, `WorkspaceAvatar`, `TopBarAction`, `Fab`; `AppShell` takes `sidebar` and `fab` and decides the representation; `TopBar` takes `brand`, `page`, `search`, `actions`, `account`; `TabItem` is icon-only. Removed: `PagePill`, `DestinationMenu`, `Destination` | The parts the shell needs, and nothing it no longer uses |

### Typography revision

An audit of every type role against the real screens (Home, Resources, Analytics, Settings, the nine editors, the gallery and the docs) at the test widths in both themes. One scale, roles applied whole, captions kept for labels, and text that follows the reader's size setting. Visible changes are marked ●.

| Change | Why |
|---|---|
| ● **One scale on whole pixels**: 10 · 11 · 12 · 13 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 56; every half-pixel size is gone (Typography › Scale) | 33 roles sat on 23 sizes, nine of them half pixels a step apart that no one could see and a system declares one scale |
| ● **Small text grows**: the floor is 10 px (was 9); captions 10/11/12 (were 9/9.5/10/10.5) with tracking cut from +0.13–0.16em to +0.07–0.10em; mono data 11–15 (were 10–14.5) | Uppercase mono at 9 px carried most of the product's metadata and was the hardest text to read; the narrower tracking keeps widths within a few percent |
| ● **Data is not a caption**: a row's age ("2 h ago") is sentence-case `mono-xs`; captions only name a section, status or unit | Uppercase data read as shouting and cost legibility on the densest screens |
| ● **Ink before weight**: captions at 500 (10 px at 600), mono data at 400; 600 is spent on actions and current items only | Hierarchy came from bolding; it now comes from size, family and ink, as the spec already said |
| ● **Reading text**: `.prose` and the docs' `.site-prose` set `body-lg` 16/1.6 at `measure`, headings balanced, paragraphs wrap `pretty` and long words break; docs h2/h3 use `headline-md`/`headline-sm` (h3 was an interface label) | Long-form text sat at the interface's 14 px; heading levels should look like headings |
| ● **Sizes in rem**: the generator emits every type size in rem, the display clamp included; layout stays px | A larger browser text setting now enlarges text (checked at 125, 150 and 200 %) |
| Folded roles: `nav-md` → `label-md`, `nav-current` → `label-lg` (identical values), `caption-sm` → `caption-md` (half a pixel apart); 29 roles remain | Duplicate roles drift apart over time |
| 16 rules that mixed one role's size with another's weight now name one role; 142 rules that set part of a role now set all of it | A role is applied whole, so tracking, line height and figures never go missing |
| The composer's and address field's "/" uses `on-surface-3` (was the decorative `on-surface-4`, 2.2:1) | A readable glyph meets 4.5:1 |
| Below `toolbar-full-at` the editor bar's primary drops its glyph (it already did below `compose-at`) | The larger labels need the room at 600 px; the action keeps its words and its name |
| Scripts without case or with joined letters (CJK, Arabic, Hebrew, Thai) take no uppercase transform or tracking | Captions stay correct when localized |

## Changes in 2.2.0

2.1.0 replaced the product's design with a sidebar, drawers and a Today card. 2.2.0 returns to the owner's design: the prototype's floating top bar, its Home, and one editor workspace, for all nine of the product's kinds. Visible changes are marked ●.

| Change | Why |
|---|---|
| ● **Navigation is the floating top bar** (superseded by 2.3.0's sidebar) on every app view: logo and page pill (with the destination menu) at the start, search centred, New (ink), notifications and account at the end; on phones a compact top bar and a floating glass tab bar (Home · Resources · New · Analytics). There is no sidebar and no rail, on any platform (Navigation) | The owner's design has no sidebar anywhere |
| ● **Nine kinds**: Short link, Bio page, vCard, Event, File link, Static page, Splash page, Payment link, QR code, mapped onto the four existing kind families; one registry (Kinds) | The product has nine; 2.1 had three |
| ● **One editor workspace** for every kind: the editor bar, library panel, canvas, inspector with More options, the kind's save model, bottom sheets below `editor-sheet-at`. Drawers are gone (Editing) | The owner moved away from floating side panels; the prototype edits every resource full-page |
| ● **Home is the prototype's Home**: hero with three figures, Start something new (composer and kind tiles), The whole library (four stat cards), Pick up where you left off, Start from a look; on phones the greeting at `headline-lg` and the figures as one 3-up row (Views) | 2.1's Today layout threw out the owner's Home |
| ● Resources gains a kind picker for All and the nine kinds; rows follow the prototype's | Nine kinds need a picker that scrolls rather than a segmented control |
| New spacing: `topbar-search-w` 272, `home-hero-stats-w` 200, `editor-panel-w` 300, `editor-panel-w-wide` 340; thresholds `tabbar-at` 768, `topbar-search-at` 1024, `editor-sheet-at` 900, `library-collapse-at` 1280. `topbar-h` changes from 56 to 64 (the pill row's band) | Values the new components read |
| New components: `page-pill*`, `destination-*`, `topbar-search`, `topbar-new`, `new-sheet`, `kind-tile*`, `home-hero*`, `hero-stat*`, `composer`, `stat-card*`, `resource-row*`, `look-card*`, `editor-workspace`, `editor-bar`, `editor-pill*`, `library-panel`, `library-tile*`, `editor-canvas`, `inspector-panel`, `inspector-section`, `more-options`, `editor-sheetbar*`, `contact-card`, `event-card`, `file-card`, `splash-preview`, `checkout-card`, `static-frame`, `preview-meta`. `topbar` is now the row of pills (no slab); `tabbar` is a floating capsule | One key per part |
| Removed: `sidebar-w`, `rail-w-shell`, `shell-rail-at`, `shell-sidebar-at`, `drawer-w*`, `drawer-form-w`, `today-spark-h`, `editor-sheets-at`, `editor-docked-at`, `editor-palette-w`, `editor-inspector-w`, and the keys `sidebar*`, `rail-item`, `drawer*`, `today-card`, `attention-row`. New: `topbar-search-wide-at` 1080 (the search field takes `search-w` from it) | Nothing in the packages, apps, gallery or tools reads the removed names |

The decision is recorded in the repository's decision 0011, "Back to the owner's design: the floating top bar and one editor workspace", which supersedes the navigation and editing parts of 0009 and the drawer parts of 0010.

## Changes in 2.1.0

2.1.0's navigation and editing changes below were superseded by 2.2.0.


Studio 2.0 built every view from one template: an editorial page head on every page, a three-panel canvas editor for every resource, and Portico's floating website navigation as the product's shell. Lists opened with a display headline and facts, a short link was edited like a page, and narrow headers wrapped. 2.1.0 gives the product an app shell and two editing models. Visible changes are marked ●.

| Change | Why |
|---|---|
| ● The product uses an **app shell**: a 248 px sidebar from `shell-sidebar-at` (1280), a 72 px rail from `shell-rail-at` (768), and a top bar with a four-item bottom tab bar below (Navigation). Portico's row, menu sheet and circles are now the **site shell**, used only by the public site and the documentation | A tool's destinations belong on screen; a floating website menu made every view a page to leave |
| ● **Two editing models**: a drawer with explicit Create or Save for short links, vCards and QR codes; the editor page with autosave and Publish for pages (Editing) | A singular resource is a form; only a composite one needs a canvas |
| ● One status vocabulary (Saved · Saving… · Unsaved · Offline · Failed), the address field under the name, a preview of what is shared, and no control the renderer ignores | One save model per surface, one place for the address, a preview that cannot lie |
| ● The page canvas is edited directly: drag from the palette with a drop indicator, a block handle and floating block toolbar, `Alt` / `Option` + arrows to move, text edited in place, undo and redo. The per-block button stack, zoom pill and keyboard-hint text are removed | Direct manipulation with keyboard and screen-reader equivalents |
| ● The **collection header**: title and count · search · Filter · New in one row that never wraps; search collapses below `collection-compact-at` (560); one Filter popover with a count; a results line (Views) | Headers wrapped at narrow widths and with long queries |
| ● **Home**: greeting, Today, the composer, Needs attention, Recent. The stat grid, templates rail, weekly-added line and per-page sample notice are removed | Home answers "how is it going, what next" |
| ● App-shell views drop the page head with display headline, lead and facts; it stays for site and reading views | It was an info dump above every list |
| **Code** (Code): thirteen `code-*` colour roles in both themes, each ink ≥ 4.5:1 on `code-surface` and on the line tints; `code-block`, `code-editor`, `code-token-*` and `code-line-*` components; one Prism-type → role map in `src/code/code-roles.json` | One highlighter for the docs, React and StudioKit |
| New spacing: `sidebar-w` 248, `rail-w-shell` 72, `topbar-h` 56, `tabbar-h` 64, `drawer-w-wide` 760, `collection-search-min` 160, `today-spark-h` 40; thresholds `shell-rail-at` 768, `shell-sidebar-at` 1280, `collection-compact-at` 560, `collection-tight-at` 330; motion `autosave-delay` 800 ms | Values the new components read |
| `drawer-w` changes from `region` (300) to 480 px | A drawer holds a form and its preview; 300 px was an inspector |
| New: `drawer-w-stage` 920, `drawer-form-w` 368, `stage-dot` 24; colours `qr-*` (inks and papers for codes); components `drawer-object`, `drawer-caption`, `drawer-stage`; the drawer is glass | The drawers take the editors' visual language: a preview stage beside an inspector column with an object head |
| New components: `app-shell`, `sidebar*`, `rail-item`, `topbar`, `tabbar`, `tab-item*`, `collection-header`, `collection-title`, `filter-button`, `results-line`, `drawer*`, `address-field`, `share-card`, `today-card`, `attention-row`, `block-toolbar`, `block-handle`, `drop-indicator`, `palette-item`, `code-*` | One key per new part |
| Retained but unused by the app shell: `context-pill`, `context-label`, `object-head*`, `dock*` | Kept so nothing that reads them breaks; candidates for removal in 3.0 |

The decision and its consequences are recorded in the repository's decision 0009, "The app shell and two editing models".

## Changes from the 2.0.0 draft

Studio 2.0.0 replaces the alpha draft of the same number and the prototype's tokens (`colors_and_type.css`, the page stylesheets and `studio-chrome.css`). Every value not listed here is the prototype's. Visible changes are marked ●.

**Names**

| Change | Why |
|---|---|
| Portable role names: `neutral` → `background`, `border` → `outline`, `border-strong` → `outline-strong`, `scrim` (modal backdrop) → `overlay`, `focus-glow` → `focus-field-halo`; `scrim` is now the hover wash; `dark-*` tokens became the `themes.dark` block | One vocabulary across the family; the prototype's names stay available as aliases |
| Draft spacing names (`xs`…`3xl`, `toolbar-height`, `page-margin`) → the space scale `s-0`…`s-12`, `nav-h`, `gutter*`, `band*` | Thresholds and derivations need one scale |
| Colour notation from `oklch(78% …)` to `oklch(0.78 …)` | One notation that every tool parses; the values are unchanged |

**Values changed for contrast**

| Token | Draft | 2.0.0 | Why |
|---|---|---|---|
| ● `on-surface-3` light | 0.56 | 0.51 | Mono captions at 9–10 px measured 3.79:1 on `surface-3`; now 4.68:1 |
| ● `on-surface-3` dark | 0.54 | 0.64 | 3.25:1 on `surface-3`; now 4.89:1 |
| ● `outline-strong` light / dark | 0.78 / 0.36 (as `border-strong`) | 0.60 / 0.56 | Control boundaries measured 2.00:1 (light) and 1.79:1 (dark); now at least 3.21:1. Card edges keep `outline` |
| ● Control rims (fields, chips, segmented tracks, toggles, caps links, secondary buttons) | `border` | `outline-strong` | A control's boundary must be found at 3:1 |
| ● `primary-line` light | 0.64 0.2 142 | 0.60 0.18 142 | As the focus ring it measured 2.95:1 on the page field; now 3.48:1 |
| ● `success` light | 0.64 0.16 150 | 0.50 0.14 150 | Status words measured 3.14:1; now 5.61:1 on `surface` |
| ● `error` light | 0.58 0.23 22 | 0.52 0.21 25 | 3.93:1 on `surface-3`; now above 4.5:1 everywhere. The dark value is unchanged |
| ● `warning` light | 0.72 0.15 85 (dots), 0.66 0.14 75 (text) | 0.50 0.11 75, one role | Dots measured 2.51:1 and text 3.18:1 on `surface`; one role now passes as both (6.11:1) |
| `warning` dark | missing | 0.80 0.14 85 | The draft had no dark warning |
| `info` and `*-surface` | missing | added | Five statuses need five roles; tints behind text are opaque so they can be checked |
| `primary-soft` | lime at 16 % alpha | opaque 0.95 0.06 135 (dark 0.28 0.07 140), with `on-primary-soft` | `primary-line` text on the tint measured 2.75:1, and a translucent tint cannot be checked; plan chips and link wells now pass at 7.08:1 |
| `kind-site`, `kind-vcard` | 0.66 0.13 250, 0.70 0.13 320 | 0.50 0.14 255, 0.50 0.15 320, plus tints and dark values | Dots at 2.77:1 and 2.53:1 on `surface-2`; now above 5:1, and usable as ink on their tints |
| `on-surface-4` | faint icons, carets, separators | separators only | 2.48:1 cannot carry an icon; carets and icons use `on-surface-3` |
| Smallest caption | 8.5 px (kind badge, chips, units) | 9 px | Legibility of uppercase mono at the smallest size |

**Values changed for structure**

| Change | Why |
|---|---|
| ● The toolbar sits in the frame (`workspace-max` 1140 + gutter) on working views, instead of spanning the window inset by 14 px; editors keep the full-bleed frame | Toolbar, content and footer edges must align |
| ● Wide toolbar: brand pill with label · centred destinations pill · one utility capsule (search, notifications, account). The centre search pill opens from the search circle as a layer; "New" moves to the page head | Three groups in one row, destinations always visible, at most three utilities |
| ● Editors keep a context bar: back circle, brand, kind, document name, save state as icon plus word, one segmented control, Publish, search and account | The draft's editor pill is a context bar; it gains back and keeps search |
| ● Narrow: mark-only brand and capsule at the top, menu and action circles at the bottom; the editor's 56 px bottom tab bar becomes the dock between the circles | A bottom pill of destinations is not a narrow navigation |
| ● Menu items, select options and sheet items are 44 px tall (were about 36); icon buttons inside pills are spaced so 44 px hit areas never overlap | Hit areas |
| ● Inspector fields and segmented controls are pills like every other control (were `sm` radius) | One input family |
| ● Panels are `region` 300 px (palette was 280, inspector 332); they dock at 844 and 1168 px of frame (were 1180 px of viewport) | Thresholds are derived on the container |
| Breakpoints 900, 860, 840, 620 and 560 px of viewport → container thresholds `quad-at` 826, `split-at` 796 and `head-split-at` 768, `toolbar-full-at` 840 and `nav-inline-at` 716, `row-fold-at` 556, `compose-at` 432 and `pair-at` 560 | Each is owned by the component that breaks, and derived |
| Gutter 32 / 18 → 16 / 24 / 32 by page width; section gap 56 / 40 → `band` and `band-narrow` | One narrow step, on the scale |
| The space scale declares its half-steps 6, 10 and 14 | The prototype used them everywhere; now they are tokens |

**Values changed for meaning**

| Change | Why |
|---|---|
| ● Cards, rows and tiles are flat: no resting shadow, no hover lift or drop shadow; hover firms the rim | Only floating things cast shadows |
| ● The primary glow appears only on primary actions that float in chrome (toolbar action, action circle) | The glow is a shadow |
| ● The featured card's radial lime bloom and the avatar's gradient disc are removed; the avatar falls back to an initial on `surface-3` | Gradients only encode data or form artwork |
| ● The featured stat tile loses its `primary-soft` outer ring; its `primary-line` rim stays, with its caption | One boundary per element |
| ● Kicker dots are ink; a toggled toolbar icon is `surface-3`; the selected option's check is `on-surface`; the toast icon is its status colour; the "Use" solid ink button becomes secondary | Lime is the primary action's; selection uses wash and weight; three action tiers |
| ● Thumbs and create-tile wells take their kind's tint (link lime, QR ink, site blue, vCard purple) | Kinds are categories and keep their family everywhere |
| ● The sparkline's area is a flat wash, not a gradient | Gradients only encode data |
| The glass highlight moved out of the shadow into the `materials` block; elevation tiers have no inset layers | A shadow tier never carries an inset or sideways layer |
| Bounded's weight range is 200–900 (the draft said 100–900) | The bundled font's axis |
| Toasts with an action stay 6 s (confirmation-only toasts keep 2.2 s) | Time to reach the action |
| An open row menu raises its row and renders in the top layer | The menu was drawn under the following rows |

**Deviations recorded**

- `duration-slow` is 420 ms, above the 300 ms guideline, so sheets and panels travel their distance without a jump; every transition is interruptible and reduced motion removes it.
- Five families: Bounded, Instrument Serif, Certia and Space Grotesk (the owner's Studio Origins faces), and JetBrains Mono for code only; above the guideline of two plus a monospace. Space Grotesk takes captions and data with tabular figures; code keeps a true monospace. Instrument Serif is the display voice's italic, because Bounded has none, and appears only as one accent word per headline.

## Open questions

1. **Localisation.** Captions and one-word labels are sized for English. Longer languages may move `nav-inline-at` and `compose-at`; Portico re-measures the row, but the composer's derivation must be re-run per locale.
2. **Glass over imagery.** Chrome over user content uses `glass-solid`. A computed tint floor (the lowest alpha at which every ink holds 4.5:1 over the artwork palette) would let more of it stay translucent.
3. **Kind hues.** Nine kinds have nine hues (2.4). A tenth kind needs a hue distinct from the nine, from lime and from the status hues, and a re-check of the series order.
4. **More chart types.** Maps (the countries choropleth) and heatmaps have tokens but no worked pattern.
5. **Print and export.** Unspecified. Likely: hide chrome, force light, expand tables.
6. **Apple platforms beyond iPhone, iPad and Mac.** watchOS, tvOS and visionOS are not covered.
7. **The phone's New.** The web tab bar holds New as an action beside three destinations, while iPhone keeps New in the toolbar because a native tab bar only navigates. Whether the web should follow the native form is open.
8. **Retired keys.** `context-*` and `dock*` (2.0) and the 2.1 drawer and Today keys have no place in 2.3; each is removed once nothing reads it.

## Overrides (Cardsite Icons)

Resolved from `public/design/overrides.json` on top of Studio 2.4.0. Every role names a Studio token; the file-category hues are the only values Studio does not define.

### Icon roles

| Role | Token |
|---|---|
| ink | `on-surface` (#07090e) |
| ink-muted | `on-surface-2` (#46484d) |
| ink-faint | `on-surface-4` (#a3a4a8) |
| accent | `primary-line` (#2aa820) |
| success | `success` (#2aa654) |
| warning | `warning` (#cf9b00) |
| error | `error` (#e20a35) |
| toneOpacity | 0.2 |

### Tiles

| Theme | Tile | Line | Accent | Edge |
|---|---|---|---|---|
| ink | `on-surface` (#07090e) | `dark-on-surface` (#f4f5f8) | `dark-primary` (#7cf249) | `dark-border-strong` (#72747b) |
| paper | `surface` (#ffffff) | `on-surface` (#07090e) | `primary-line` (#2aa820) | `border` (#d6d7db) |
| lime | `primary` (#66d632) | `on-primary` (#001801) | `on-primary` (#001801) | — |
| vars | `surface` (#ffffff) | `on-surface` (#07090e) | `primary-line` (#2aa820) | `border` (#d6d7db) |

### Illustration roles

| Role | Light | Dark |
|---|---|---|
| line | `on-surface` (#07090e) | same token, dark value |
| plate | `surface-3` (#e6e8eb) | `surface-3` (#e6e8eb) |
| paper | `surface` (#ffffff) | `surface-2` (#f1f2f5) |
| muted | `border-strong` (#7e8085) | same token, dark value |
| accent | `primary` (#66d632) | same token, dark value |
| on-accent | `on-primary` (#001801) | same token, dark value |

### File categories

One restrained hue per category, equal lightness and chroma, used only on file-type label chips (docs/reference/brand-layer.md). Lightness 52 % (light) and 74 % (dark), chroma 0.12.

| Category | Hue | Light | Dark |
|---|---|---|---|
| document | 255 | #346aac | #75aef5 |
| slides | 45 | #a04f27 | #e99169 |
| data | 150 | #287c42 | #6fc082 |
| image | 75 | #905d00 | #d79f4c |
| video | 15 | #a24852 | #ec8a92 |
| audio | 320 | #875093 | #cc91da |
| code | 200 | #007c84 | #24c1c9 |
| archive | 95 | #7f6700 | #c3aa48 |
| design | 290 | #695ba9 | #aa9df1 |
| 3d | 230 | #0074a0 | #4ab8e8 |
| web | 175 | #007e65 | #42c3a6 |
| generic | 270 | #4e63ae | #8da7f7 |

### Code

Syntax roles for code blocks, highlighted by the vendored Prism fork (vendor/prism-1.30.0/). Background and ink are system tokens. Each hued role is a hue and chroma; tools/design/build.mjs starts at the given lightness and moves it, per theme, until the role reaches 4.5:1 (AA) on the code background. Used only inside code.

| Token | Light | Contrast | Dark | Contrast |
|---|---|---|---|---|
| `--color-code-bg` | #f1f2f5 | — | #14161a | — |
| `--color-code-ink` | #07090e | 17.79:1 | #f4f5f8 | 16.61:1 |
| `--color-code-keyword` | #a24d9c | 4.60:1 | #ec92e5 | 8.46:1 |
| `--color-code-tag` | #775cb8 | 4.68:1 | #bea4ff | 8.58:1 |
| `--color-code-attr` | #0a71b1 | 4.68:1 | #6abfff | 9.06:1 |
| `--color-code-function` | #007980 | 4.64:1 | #4eccd3 | 9.40:1 |
| `--color-code-string` | #187e36 | 4.60:1 | #73d083 | 9.56:1 |
| `--color-code-number` | #ac5500 | 4.63:1 | #fb9d59 | 8.68:1 |
| `--color-code-comment` | #6a6d74 | 4.63:1 | #898c94 | 5.38:1 |
| `--color-code-punctuation` | #6b6d73 | 4.62:1 | #84868c | 4.98:1 |

### Fonts

Bounded is Studio's display face, licensed to Cardsite, Inc. and self-hosted from the partner kit (vendor/cardsite-partner-kit-1.2.0/fonts). Unbounded (SIL OFL) stays in the stack only as the fallback.

| Role | Family | Files |
|---|---|---|
| display | Bounded (fallback Unbounded) | `public/assets/fonts/Bounded-Variable.ttf`, `public/assets/fonts/unbounded-latin-500-normal.woff2` |
| accent | Instrument Serif | `public/assets/fonts/instrument-serif-latin-400-italic.woff2` |
| body | Inter Tight | `public/assets/fonts/inter-tight-latin-400-normal.woff2`, `public/assets/fonts/inter-tight-latin-500-normal.woff2`, `public/assets/fonts/inter-tight-latin-600-normal.woff2` |
| mono | JetBrains Mono | `public/assets/fonts/jetbrains-mono-latin-500-normal.woff2`, `public/assets/fonts/jetbrains-mono-latin-600-normal.woff2` |

### Typography floor

Studio typography revision (after 2.2.0): nothing below 10 px. The 9 px caption role is raised to 10. Floor: 10 px. Site sizes come only from the scale 10 · 11 · 12 · 13 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 56 px, set in rem.

### Iconography

Cardsite Icons replaces Phosphor in Studio 2.4 › Iconography: regular in content, bold in the toolbar, duotone for selection.
