/* ==========================================================================
   Self-hosted faces. Converted from the supplied OTFs to WOFF2 (fonttools).
   Lab Grotesque : 816 glyphs — full Latin. Safe for UI and body.
   FT System     : 66 glyphs — A-Z a-z 0-9 . , ONLY. Display use only, and it
                   cannot set most of this app's copy. See CONTEXT.md.
   ========================================================================== */
@font-face { font-family: "Lab Grotesque"; src: url("assets/fonts/lab-grotesque-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lab Grotesque"; src: url("assets/fonts/lab-grotesque-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lab Grotesque Mono"; src: url("assets/fonts/lab-grotesque-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lab Grotesque Mono"; src: url("assets/fonts/lab-grotesque-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Blank"; src: url("assets/fonts/ft-system-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Blank"; src: url("assets/fonts/ft-system-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Blank"; src: url("assets/fonts/ft-system-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* documentation grid: racks share one gap, prose columns share another */
  --doc-gap: 16px;
  --doc-col-gap: 40px;

  /* ------------------------------------------------------------------
     Maestro brand — the "Maestro Brand Colors" board is canonical.
     Six values, exactly as specified. Where the D2 artwork differs
     (#EFEFEF for gray, #201E1A for off-black) the BOARD wins.
     Provenance + contrast table: 01_Operations/03_Clients/04_Active/
     fictive-kin/05_Deliverables/maestro/brand-token-layer/
     ------------------------------------------------------------------ */

  /* The six */
  --off-white:   oklch(1.0000 0 0);            /* #FFFFFF */
  --gray:        oklch(0.9370 0 0);            /* #EAEAEA */
  --off-black:   oklch(0.1730 0 0);            /* #101010 */
  --accent:      oklch(0.9240 0.0984 116.9);   /* #E1EFA3 lemon */
  --purple:      oklch(0.7840 0.0870 301.2);   /* #C2ACE8 light purple */
  --brand:       oklch(0.2349 0.0713 24.5);    /* #390C0C burgundy red */

  /* Roles, bound to the six. Names unchanged so existing usage keeps working. */
  --surface: var(--off-white);
  --canvas:  var(--gray);
  --ink:     var(--off-black);
  --raised:  oklch(0.9800 0 0 / .82);
  --muted:   oklch(0.3942 0 0);                /* #464646 */
  --quiet:   oklch(0.5800 0 0);
  --line:    oklch(0.9000 0 0 / .9);
  --pressed: oklch(0.9350 0 0 / .85);

  /* On burgundy */
  --on-brand:       var(--off-white);
  --on-brand-muted: var(--gray);
  --brand-raised:   oklch(0.3191 0.0604 21.0);
  --brand-hovered:  oklch(0.3191 0.0604 21.0);
  --brand-pressed:  oklch(0.1750 0.0560 24.5);
  --gray-hovered:   oklch(0.8950 0 0);
  --gray-pressed:   oklch(0.8550 0 0);
  --chassis:        oklch(0.12 0 0);            /* device shell, not a brand color */
  --media-ground:   oklch(0.22 0 0);            /* behind photography before it loads */
  --hairline:       oklch(1 0 0 / .5);          /* light hairline on tinted grounds */
  --brand-scrim:    oklch(0.2349 0.0713 24.5 / .5);

  /* Semantics. Lemon measures 1.23:1 on white, so it is never a mark on the
     white ground — it is legal on burgundy or off-black only. */
  --live:     oklch(0.55 0.15 30);
  --signal:   oklch(0.52 0.13 25);
  --notation: var(--purple);
  --harmony:  var(--ink);

  --sans: "Lab Grotesque", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Lab Grotesque Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The display face. There is no serif in this system — this is FT System
     Blank. Lab Grotesque sits behind it purely as a glyph fallback: FT System
     Trial carries only A-Z a-z 0-9 . , so accents, colons, dashes, apostrophes
     and question marks would otherwise drop to a system font. */
  --display: "FT System Blank", "Lab Grotesque", ui-sans-serif, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-width: 320px; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid var(--harmony); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-chevron { width: 15px; height: 15px; color: var(--quiet); }

.prototype-bar {
  min-height: 64px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.prototype-mark { display: inline-flex; align-items: center; margin-right: 12px; color: var(--brand); }
/* One outlined lockup, referenced by <use>, inheriting currentColor so it works
   on white and on burgundy. Source: assets/maestro-lockup.svg (511x92). */
.lockup { display: block; width: auto; aspect-ratio: 511 / 92; fill: currentColor; }
.prototype-mark .lockup { height: 18px; }
.splash-stack .lockup { height: 34px; }
.identity-intro h1 .lockup { height: 46px; }
.prototype-meta { color: var(--muted); font-size: 12px; }
.view-switch { display: flex; background: color-mix(in oklch, var(--pressed) 70%, transparent); border: 1px solid var(--hairline); border-radius: 0; padding: 3px; }
.view-switch button { position: relative; min-height: 36px; border: 0; background: transparent; border-radius: 0; padding: 0 14px; font-size: 11px; cursor: pointer; transition: color 160ms ease, background-color 220ms var(--ease), transform 160ms ease; }
.view-switch button:active { transform: scale(.97); }
.view-switch button.is-active { background: rgb(255 255 255 / .68); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }

.stage {
  min-height: calc(100vh - 64px);
  padding: 24px clamp(20px, 6vw, 96px) 32px;
  display: grid;
  place-items: center;
}
.phone {
  width: 402px;
  height: min(920px, calc(100vh - 78px));
  min-height: 700px;
  border: 8px solid var(--chassis);
  border-radius: 48px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgb(20 20 18 / .14), inset 0 0 0 1px var(--hairline);
}
.screen { height: 100%; overflow: auto; scrollbar-width: none; padding: 24px 18px 104px; }
.screen::-webkit-scrollbar { display: none; }
.splash-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #080808;
  color: white;
}
.splash-screen > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% center;
  filter: contrast(1.06);
  animation: splash-focus 5s var(--ease) both;
}
.splash-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .18) 0%, transparent 34%),
    linear-gradient(to top, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .08) 46%, transparent 68%);
}
.splash-stack {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  transform: translateY(-42%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.splash-stack p {
  margin: 10px 0 0;
  color: rgb(255 255 255 / .74);
  font-size: 11px;
  letter-spacing: .005em;
}
.splash-enter {
  margin-top: 24px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: white;
  background: rgb(16 16 16 / .92);
  display: inline-flex;
  align-items: stretch;
  cursor: pointer;
  transition: background-color 180ms ease, transform 160ms ease;
}
.splash-enter span {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.splash-enter .icon {
  width: 18px;
  height: 48px;
  padding: 0 15px;
  box-sizing: content-box;
  border-left: 1px solid rgb(255 255 255 / .22);
}
.splash-enter:active {
  background: rgb(16 16 16 / .78);
  transform: scale(.985);
}
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-top: 22px; }
.app-header.simple { align-items: center; }
.date { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 9px; }
.app-header h1, .sheet-page h1 { font: 36px/1.0 var(--display); letter-spacing: -.028em; margin: 0; font-weight: 400; }
.app-header.simple h1 { font-size: 32px; }
.app-header.simple .date { margin-bottom: 6px; }
.avatar, .round-action {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--raised); cursor: pointer; flex: none; transition: transform 160ms ease, background-color 180ms ease;
}
.avatar:active, .round-action:active { transform: scale(.94); }
.avatar { font-size: 12px; font-weight: 650; }

.status-strip { min-height: 38px; border: 1px solid var(--hairline); border-radius: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--raised); font-size: 10px; margin-bottom: 12px; }
.status-strip strong { margin-left: auto; font-weight: 600; }
.status-glyph { width: 15px; height: 15px; color: var(--signal); stroke-width: 1.8; }

.feature { background: var(--raised); border: 1px solid var(--hairline); border-radius: 0; overflow: hidden; }
.feature-art, .event-hero { height: 168px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--media-ground), var(--media-ground)); color: white; overflow: hidden; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(10 8 4 / .42), transparent 48%, rgb(10 8 4 / .12)); pointer-events: none; }
.feature-image { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; transition: transform 700ms var(--ease), filter 700ms var(--ease); }
.feature:hover .feature-image { transform: scale(1.018); filter: saturate(1.04); }
.event-hero::before { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid var(--hairline); border-radius: 50%; transform: translate(-80px, 45px); box-shadow: 56px -38px 0 -1px transparent, 56px -38px 0 0 rgb(255 255 255 / .2); }
.feature-letter { font: italic 110px/.8 var(--display); opacity: .92; transform: translateY(-2px); animation: letter-drift 8s ease-in-out infinite alternate; }
.event-id { position: absolute; z-index: 1; left: 13px; top: 13px; font-size: 9px; letter-spacing: .05em; opacity: .92; }
.feature-copy { padding: 15px 16px 17px; }
.feature-copy p, .event-copy > p:first-child { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.feature-copy h2 { font: 22px/1.04 var(--display); margin: 0 0 6px; letter-spacing: -.025em; font-weight: 400; }
.feature-copy > span { color: var(--muted); font-size: 11px; display: block; }
.primary-action, .secondary-action { border: 0; min-height: 44px; border-radius: 0; padding: 0 17px; cursor: pointer; font-size: 10px; letter-spacing: .025em; font-weight: 600; transition: transform 150ms ease, opacity 150ms ease; }
.primary-action:active, .secondary-action:active { transform: scale(.985); opacity: .86; }
.primary-action { color: white; background: var(--brand); }
.secondary-action { background: var(--pressed); }
.feature-copy .primary-action { width: 100%; margin-top: 14px; }

.section-block { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.section-heading h2 { font-size: 11px; letter-spacing: .025em; margin: 0; }
.section-heading span, .section-heading button { color: var(--muted); border: 0; background: none; font-size: 9px; }
.section-heading button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; padding: 0 4px; margin: -14px -4px -14px 0; cursor: pointer; }
.action-row { width: 100%; min-height: 68px; border: 1px solid var(--hairline); background: var(--raised); border-radius: 0; padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; transition: transform 180ms var(--ease), background-color 180ms ease; }
.action-row:active, .compact-grid button:active { transform: scale(.985); }
.row-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 0; background: var(--pressed); font-size: 19px; }
.action-row strong, .action-row small { display: block; }
.action-row strong { font-size: 11px; }
.action-row small { color: var(--muted); margin-top: 3px; font-size: 9px; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compact-grid button { border: 1px solid var(--hairline); background: var(--raised); border-radius: 0; min-height: 82px; padding: 13px; text-align: left; cursor: pointer; transition: transform 180ms var(--ease); }
.compact-grid strong { display: block; font: 25px/1 var(--display); margin-bottom: 8px; font-weight: 400; }
.compact-grid span { font-size: 9px; color: var(--muted); }

.bottom-nav { position: absolute; left: 0; right: 0; bottom: 0; min-height: 72px; background: var(--gray); border: 0; border-radius: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 5; box-shadow: none; }
.bottom-nav button { border: 0; background: none; border-radius: 0; font-size: 10px; color: var(--quiet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: color 180ms ease, transform 160ms ease; }
.bottom-nav button .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.bottom-nav button:active { transform: scale(.94); }
/* current tab is tinted, not underlined -- the iOS convention, and it keeps
   the no-lines direction intact. */
.bottom-nav button.is-active { background: none; color: var(--brand); font-weight: 650; }
.bottom-nav button.is-active .icon { stroke-width: 2; }

.segments { display: flex; background: var(--gray); border: 0; border-radius: 0; margin-bottom: 18px; }
.segments button { flex: 1 1 0; min-width: 0; border: 0; background: none; min-height: 44px; padding: 0 12px; border-radius: 0; font-size: 9px; letter-spacing: .025em; color: var(--muted); white-space: nowrap; transition: background-color 180ms ease, color 180ms ease; }

.segments button.is-active { background: var(--off-white); color: var(--ink); font-weight: 650; }


.detail-bar { min-height: 44px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; margin: -5px 0 10px; font-size: 10px; letter-spacing: .02em; font-weight: 600; }
.detail-bar button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.event-hero { margin: 0 -16px; height: 220px; }
/* Scrim instead of a text-shadow under .event-id. Fades to nothing well inside
   its own box so it never meets the image on a hard 1px line. */
.event-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 92px;
  background: linear-gradient(to bottom, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .28) 42%, rgb(0 0 0 / 0) 100%);
  pointer-events: none; }
.event-copy { padding-top: 18px; }
.event-copy h1 { font: 32px/.98 var(--display); margin: 0 0 12px; letter-spacing: -.03em; font-weight: 400; }
.event-meta { color: var(--muted); font-size: 10px; line-height: 1.55; }
.inline-actions { display: flex; gap: 8px; margin: 20px 0 28px; }
.program { border-top: 1px solid var(--line); padding-top: 18px; }
.program h2 { font-size: 13px; margin: 0 0 10px; }
.program div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.program span { color: var(--muted); }

.sheet-page { padding-top: 14px; }
.sheet-page > h1 { margin-bottom: 26px; max-width: 10ch; }
.choice { width: 100%; min-height: 78px; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.choice:last-of-type { border-bottom: 1px solid var(--line); }
.choice-icon { width: 46px; height: 46px; border-radius: 0; background: var(--raised); display: grid; place-items: center; font-size: 20px; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 13px; }
.choice small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.support-note { color: var(--muted); font-size: 9px; line-height: 1.5; padding: 14px; background: var(--raised); border: 1px solid var(--hairline); border-radius: 0; margin-top: 18px; }

.tier { background: color-mix(in oklch, var(--signal), white 86%); color: var(--brand); border-radius: 0; padding: 7px 10px; font-size: 9px; font-weight: 700; }
.pass-card { background: var(--ink); color: white; border-radius: 0; padding: 18px; min-height: 380px; display: flex; flex-direction: column; }
.pass-top { display: flex; justify-content: space-between; font-size: 10px; opacity: .7; }
.member-name { font: 27px/1 var(--display); margin: 28px 0 18px; }
.qr { width: 190px; height: 190px; margin: auto; background: white; border-radius: 0; padding: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qr div { background: var(--ink); }
.qr div:nth-child(2), .qr div:nth-child(4), .qr div:nth-child(8) { border-radius: 50%; transform: scale(.45); }
.offline-state { display: grid; grid-template-columns: 34px 1fr; margin-top: 12px; background: var(--raised); border: 1px solid var(--hairline); border-radius: 0; padding: 12px; align-items: center; }
.offline-state span { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; background: color-mix(in oklch, var(--live), white 78%); border-radius: 50%; }
.offline-state strong { font-size: 11px; }
.offline-state small { color: var(--muted); font-size: 9px; }

.benefit-list { border-top: 1px solid var(--line); }
.benefit-list button { width: 100%; min-height: 78px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { font-size: 13px; }
.benefit-list small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.benefit-list button > span:last-child { background: var(--pressed); border-radius: 0; padding: 8px 11px; font-size: 10px; }

.profile-block { display: flex; align-items: center; gap: 12px; padding: 4px 0 24px; }
.large-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pressed); display: grid; place-items: center; font: 20px/1 var(--display); }
.profile-block strong, .profile-block small { display: block; }
.profile-block strong { font-size: 14px; }
.profile-block small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.settings-list { border-top: 1px solid var(--line); }
.settings-list button { width: 100%; min-height: 54px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; align-items: center; font-size: 12px; cursor: pointer; }
.settings-label { display: inline-flex; align-items: center; gap: 12px; }
.settings-label .icon { width: 16px; height: 16px; color: var(--muted); }

.map-view { padding: 40px clamp(16px, 3vw, 48px) 80px; max-width: none; margin: 0; }
/* label sits above the title it labels; description is subordinate, not a peer */
.map-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  grid-template-areas: "label desc" "title desc"; column-gap: 48px; align-items: start; margin-bottom: 30px; }
.map-header p { grid-area: label; }
.map-header h1 { grid-area: title; }
.map-header > span { grid-area: desc; align-self: end; }
.map-header p { margin: 0 0 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.map-header h1 { font: 46px/1 var(--display); margin: 0; letter-spacing: -.025em; }
.map-header > span { color: var(--muted); font-size: 11px; line-height: 1.55; max-width: 46ch; }
.sitemap-layout { display: block; }
.sitemap-scroll { overflow-x: auto; padding-bottom: 18px; scrollbar-color: var(--line) transparent; }
.sitemap {
  width: 100%;
  padding: 30px clamp(16px, 2.4vw, 40px) 36px;
  border: 0;
  border-radius: 0;
  background-color: color-mix(in oklch, var(--raised) 45%, transparent);
  position: relative;
  margin: 0 auto;
}
.site-node {
  width: 150px;
  min-height: 48px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid;
  background: var(--raised);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.site-node small { margin-left: 7px; padding: 3px 5px; border-radius: 0; background: var(--ink); color: white; font-size: 7px; text-transform: uppercase; }
.node-root { border-color: oklch(0.70 0.13 100); }
.node-primary { border-color: var(--ink); background: var(--pressed); text-transform: uppercase; letter-spacing: .04em; }
.node-gate { border-color: oklch(0.70 0.13 100); }
.node-detail { border-color: oklch(0.55 0.10 190); }
.node-auth { border-color: oklch(0.50 0.12 300); }
.node-function { border-color: oklch(0.60 0.09 240); border-style: dashed; }
.tree-root { display: flex; flex-direction: column; align-items: center; }
.root-line { height: 24px; border-left: 1px solid var(--quiet); }
.entry-path { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tree-arrow { color: var(--quiet); font-size: 12px; transform: rotate(-90deg); }
.shell-node { display: flex; flex-direction: column; align-items: center; margin-top: 30px; position: relative; }
.shell-node::before { content: ""; position: absolute; height: 30px; top: -30px; border-left: 1px solid var(--quiet); }
.shell-node .site-node { width: 760px; min-height: 38px; }
.shell-trunk { height: 28px; border-left: 1px solid var(--quiet); }
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 1px; }
.branch-grid::before { content: ""; position: absolute; left: 110px; right: 110px; top: 0; border-top: 1px solid var(--quiet); }
.tree-branch { display: flex; flex-direction: column; align-items: center; position: relative; }
.branch-stem { height: 28px; border-left: 1px solid var(--quiet); }
.child-stack { margin-top: 22px; display: grid; gap: 20px; }
.child-stack .site-node::before { content: ""; position: absolute; left: 50%; top: -21px; height: 20px; border-left: 1px solid var(--quiet); }
.utility-row { margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--quiet); display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.utility-row > span { color: var(--muted); font-size: 9px; margin-right: auto; }
.utility-row .site-node { min-height: 42px; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 22px;
  padding-top: 14px; border-top: 1px solid var(--line); }
.map-tools { margin-left: auto; display: flex; gap: 8px; }
.map-tools button { font-family: var(--sans); font-size: 10px; letter-spacing: .04em;
  min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong, var(--quiet));
  background: var(--off-white); color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease; }
.map-tools button:hover { background: var(--gray); }
.map-tools button.is-done { background: var(--brand); color: var(--off-white); border-color: var(--brand); }
.legend-key { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.legend-key .swatch { width: 22px; height: 14px; border-width: 2px; border-style: solid; background: var(--raised); flex: none; }
/* border-color is intentionally NOT set here: the shorthand would reset it to
   currentColor and outrank the .node-* classes, flattening every key to gray. */
.legend-key .swatch.node-function { border-style: dashed; }
.legend-key .swatch.node-primary { background: var(--pressed); }

.ia-root { display: flex; flex-direction: column; align-items: center; }
.ia-root .site-node { width: 190px; }
.ia-root .node-shell { width: 100%; min-height: 34px; border-color: var(--quiet); background: transparent; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: 9px; }
.ia-root-stem { height: 24px; border-left: 1px solid var(--quiet); }
.ia-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; padding-top: 1px; }
.ia-columns::before { content: ""; position: absolute; left: calc((100% - 60px) / 8); right: calc((100% - 60px) / 8); top: 0; border-top: 1px solid var(--quiet); }
.ia-branch { display: flex; flex-direction: column; align-items: center; }
.ia-branch-stem { height: 24px; border-left: 1px solid var(--quiet); }
.ia-branch > .node-primary { width: 100%; min-height: 40px; }
.ia-children { display: grid; gap: 16px; margin-top: 16px; align-content: start; width: 100%; }
.ia-children .site-node { width: 100%; min-height: 54px; }
.ia-children .site-node::before { content: ""; position: absolute; left: 50%; top: -16px; height: 16px; border-left: 1px solid var(--quiet); }
.ia-children .site-node { width: 100%; }
.sitemap .site-node { flex-direction: column; gap: 3px; line-height: 1.25; }
.sitemap .site-node .sub { font-size: 8.5px; font-weight: 450; letter-spacing: .01em; color: var(--muted); text-transform: none; }
.ia-band { margin-top: 52px; padding-top: 0; border-top: 0; }
.ia-band header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 16px; }
.ia-band header span { color: var(--muted); font-size: 9px; }
.ia-band header strong { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ia-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ia-feature-grid .site-node { width: 100%; min-height: 52px; }
.ia-shared { grid-template-columns: repeat(3, 1fr); }
.ia-shared .site-node { min-height: 62px; padding: 10px 14px; }
.ia-utilities { margin-top: 40px; border-top-color: var(--quiet); }
.ia-utilities .site-node { min-height: 42px; font-weight: 500; color: var(--muted); }

.identity-view { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
.identity-subnav {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklch, var(--raised) 48%, var(--canvas));
}
.identity-subnav > span { display: block; color: var(--muted); font-size: 9px; margin: 0 10px 18px; }
.identity-subnav nav { display: grid; gap: 2px; }
.identity-subnav a { position: relative; min-height: 34px; padding: 0 10px; display: flex; align-items: center; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 11px; }
.identity-subnav a:hover { color: var(--ink); }
.identity-subnav a.is-current { background: var(--pressed); color: var(--ink); font-weight: 650; }
.identity-content { width: min(100%, 1180px); margin: 0 auto; padding: 70px clamp(24px, 6vw, 90px) 96px; }
.identity-content [id] { scroll-margin-top: 90px; }
.identity-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  grid-template-areas: "label desc" "title desc"; column-gap: 48px; align-items: start; }
.identity-intro > p { grid-area: label; }
.identity-intro h1 { grid-area: title; }
.identity-intro > div { grid-area: desc; align-self: end; }
.identity-intro > p { margin: 0 0 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.identity-intro h1 { margin: 0; font: 76px/.86 var(--display); letter-spacing: -.035em; }
.identity-intro > div { display: grid; gap: 10px; }
.identity-intro strong { font: 22px/1.08 var(--display); font-weight: 400; }
.identity-intro span { color: var(--muted); font-size: 11px; line-height: 1.55; max-width: 48ch; }
.identity-rule { display: none; }
.identity-section { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 44px 0; }
.identity-section > header { display: grid; grid-template-columns: 30px 1fr; align-content: start; }
.identity-section > header span { color: var(--quiet); font: 15px/1 var(--display); }
.identity-section > header h2 { margin: 0; font-size: 12px; }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--doc-col-gap); }
.principle-list article { min-height: 96px; padding: 14px 0; }
.principle-list b { font-size: 13px; }
.principle-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.type-system { grid-template-columns: 180px 1fr 1fr; }
.type-specimen { padding-top: 12px; }
.type-specimen > span { color: var(--muted); font-size: 9px; }
.display-specimen p { margin: 38px 0 0; font: 64px/.9 var(--display); letter-spacing: -.035em; }
.ui-specimen p { margin: 48px 0 4px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.ui-specimen small { color: var(--muted); font-size: 10px; }
.color-rack { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 190px; }
.color-rack article { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-right: 0; font-size: 10px; }
.color-rack article:last-child { border-right: 1px solid var(--line); }
.color-rack code { font: 9px var(--sans); opacity: .6; }
.swatch-ink { background: var(--ink); color: white; }
.swatch-stage { background: var(--off-white); }
.swatch-lobby { background: var(--gray); }
.swatch-brand { background: var(--brand); color: white; }
.swatch-purple { background: var(--purple); color: var(--ink); }
.swatch-accent { background: var(--accent); color: var(--ink); }
.component-board { display: grid; grid-template-columns: 1fr 1fr; gap: var(--doc-gap); }
.component-board > article { padding: 16px; background: var(--raised); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; }
.component-label { color: var(--muted); font-size: 9px; }
.identity-status { width: 100%; margin: 0; }
.icon-specimens { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--doc-gap); align-items: center; }
.icon-specimens .icon { width: 21px; height: 21px; }
.voice-card p { margin: 0 0 10px; font: 23px/1 var(--display); }
.voice-card small { color: var(--muted); font-size: 10px; line-height: 1.4; max-width: 42ch; }
.token-pair > div, .icon-system > div { min-width: 0; }
.spacing-rack, .shape-rack { display: grid; grid-template-columns: repeat(5, 1fr); }
.spacing-rack article, .shape-rack article { min-height: 150px; padding: 16px 12px 12px; border-right: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto auto; align-items: end; }
.spacing-rack article:last-child, .shape-rack article:last-child { border-right: 0; }
.spacing-rack i { display: block; width: var(--size); height: var(--size); max-width: 48px; max-height: 48px; background: var(--signal); align-self: center; justify-self: center; }
.spacing-rack code, .shape-rack code { font: 9px var(--sans); }
.spacing-rack span, .shape-rack span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.shape-rack { grid-template-columns: repeat(4, 1fr); }
.shape-rack i { width: 64px; height: 64px; align-self: center; justify-self: center; background: var(--pressed); border: 1px solid var(--line); }
.shape-tile { border-radius: 0; }
.shape-control { border-radius: 0; }
.shape-card { border-radius: 0; }
.shape-round { border-radius: 50%; }
.token-note { color: var(--muted); font-size: 10px; margin: 22px 0 0; }
.token-note code { color: var(--ink); font: 10px var(--sans); }
.voice-system .voice-card { padding: 20px 20px 22px; background: var(--raised); }
@media (max-width: 900px) {
  .prototype-meta { display: none; }
  .stage { padding: 18px; align-items: flex-start; }
  .phone { height: calc(100vh - 100px); max-height: 844px; }
  .map-header { grid-template-columns: 1fr; gap: 10px; }
  .sitemap-layout { grid-template-columns: 1fr; }
  .identity-intro { grid-template-columns: 1fr; align-items: start; }
  .identity-section, .type-system { grid-template-columns: 1fr; }
  .identity-view { grid-template-columns: 150px minmax(0, 1fr); }
  .identity-content { padding-inline: 26px; }
  .spacing-rack { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .prototype-bar { padding: 9px 10px; }
  .prototype-mark .lockup { height: 15px; }
  .view-switch button { padding: 0 9px; }
  .stage { padding: 0; }
  .phone { width: 100%; height: calc(100vh - 55px); min-height: 600px; border: 0; border-radius: 0; }
  .screen { height: calc(100% - 76px); padding-top: 18px; }
  .map-view { padding: 28px 12px 60px; }
  .map-header h1 { font-size: 34px; }
  .identity-view { display: block; }
  .identity-subnav { top: 55px; height: auto; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; z-index: 10; }
  .identity-subnav > span { display: none; }
  .identity-subnav nav { display: flex; width: max-content; }
  .identity-subnav a { min-height: 32px; padding: 0 10px; }
  .identity-content { padding: 38px 16px 64px; }
  .identity-intro h1 { font-size: 58px; }
  .principle-list, .component-board { grid-template-columns: 1fr; }
  .color-rack { grid-template-columns: 1fr 1fr; }
  .color-rack article { min-height: 110px; border-right: 1px solid var(--line); }
  .spacing-rack, .shape-rack { grid-template-columns: 1fr 1fr; }
}

.screen.entering { animation: screen-in 280ms var(--ease); }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(7px) scale(.995); }
  to { opacity: 1; transform: none; }
}
@keyframes letter-drift {
  from { transform: translate3d(-3px, -2px, 0) rotate(-1deg); }
  to { transform: translate3d(4px, 1px, 0) rotate(.7deg); }
}
@keyframes splash-focus {
  from { transform: scale(1.035); filter: contrast(1.06) blur(2px); }
  to { transform: scale(1); filter: contrast(1.06) blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Lab Grotesque Mono is now available; token specimens use it. */
code, .identity-view code, .type-specimen code { font-family: var(--mono); }

/* Hit areas reach 44px without changing what is drawn. */
.view-switch button::after,
.identity-subnav a::after { content: ""; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px; }

/* Photography — specimens run wide so the falloff is visible; captions follow
   the house rule for captions: monospace, all caps. */
.photo-lede { max-width: 46ch; margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--ink); }
/* Specimens that do not meet the brief are marked, not quietly shown as if they do. */
.photo-specimens figure.is-offbrief img { opacity: 1; }
.photo-specimens figure.is-offbrief figcaption { color: var(--brand); }
.photo-canon { margin: 0 0 22px; }
.photo-canon img { display: block; width: 100%; height: auto; border-radius: 0; }
.photo-canon figcaption { margin-top: 8px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.photo-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: var(--doc-gap); margin-bottom: 28px; }
.photo-specimens figure { margin: 0; }
.photo-specimens img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.photo-specimens figcaption { margin-top: 8px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.photo-rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--doc-col-gap); }
.photo-rules article { padding: 14px 0; }
.photo-rules b { font-size: 13px; }
.photo-rules p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---- Events: grouped by month, each event stating its own facts ---------
   Separation is a change of ground, not a rule. Metadata is mono. Every card
   declares the member's relationship to the event, which is the thing the row
   format could not say. */
.event-groups { display: flex; flex-direction: column; gap: 24px; }
.event-month { margin: 0 0 10px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.event-card { background: var(--raised); padding: 14px; display: grid;
  grid-template-columns: 38px 1fr; gap: 14px; margin-bottom: 8px; }
.event-card:last-child { margin-bottom: 0; }
.event-when { text-align: center; padding-top: 2px; }
.event-when b { display: block; font: 23px/1 var(--display); color: var(--ink); }
.event-when span { display: block; margin-top: 3px; font-family: var(--mono);
  font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.event-body { min-width: 0; }
.event-time { margin: 0; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.event-title { display: block; width: 100%; margin: 5px 0 0; padding: 0; border: 0;
  background: none; text-align: left; font: 17px/1.15 var(--display);
  color: var(--ink); cursor: pointer; }
.event-venue { margin: 6px 0 0; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.event-rel { margin: 10px 0 0; font-size: 10px; font-weight: 650; color: var(--ink); }
.event-rel.is-open { font-weight: 400; color: var(--muted); }
.event-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.event-actions button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 0;
  background: var(--gray); color: var(--ink); font-family: var(--sans); font-size: 9px;
  letter-spacing: .04em; cursor: pointer; transition: background-color 160ms ease; }
.event-actions button.is-primary { background: var(--brand); color: var(--off-white); }

/* ---- Mark + Grayscale (mirroring id-idler's section vocabulary) --------- */
.mark-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: var(--doc-gap); margin-bottom: 24px; }
.mark-plate { display: grid; place-items: center; min-height: 132px; padding: 24px; background: var(--raised); color: var(--brand); }
.mark-plate.is-brand { background: var(--brand); color: var(--off-white); }
.mark-plate .lockup { height: 34px; }
.mark-rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--doc-col-gap); }
.mark-rules article { padding: 14px 0; }
.mark-rules b { font-size: 13px; }
.mark-rules p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.gray-rack { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; }
.gray-rack article { display: flex; flex-direction: column; gap: 0; }
.gray-rack i { display: block; height: 76px; }
.gray-rack code { margin-top: 9px; font-family: var(--mono); font-size: 9px; color: var(--ink); }
.gray-rack span { margin-top: 3px; font-size: 9px; color: var(--quiet); line-height: 1.4; }

.token-group { margin: 0 0 12px; font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.token-system .token-group:not(:first-child) { margin-top: 30px; }

/* ---- Accessibility · Composition · Motion ------------------------------ */
.ratio-rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--doc-gap); margin: 16px 0 26px; }
.ratio-rack article { padding: 12px 14px; background: var(--raised); display: flex; flex-direction: column; gap: 4px; }
.ratio-rack b { font: 19px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.ratio-rack span { font-size: 9px; line-height: 1.4; color: var(--muted); }
.ratio-rack .is-pass b, .ratio-rack article.is-pass b { color: var(--ink); }
.ratio-rack article.is-fail { background: color-mix(in oklch, var(--brand) 8%, transparent); }
.ratio-rack article.is-fail b { color: var(--brand); }

.access-rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--doc-col-gap); }
.access-rules article { padding: 14px 0; }
.access-rules b { font-size: 13px; }
.access-rules p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.comp-rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--doc-gap); margin-bottom: 24px; }
.comp-rack article { padding: 12px 14px; background: var(--raised); display: flex; flex-direction: column; gap: 3px; }
.comp-rack b { font: 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.comp-rack code { font-family: var(--mono); font-size: 9px; color: var(--ink); }
.comp-rack span { font-size: 9px; color: var(--muted); line-height: 1.4; }

/* numbered rail, standards-site convention: number and label, number quiet */
.identity-subnav a { font-variant-numeric: tabular-nums; }

/* Every section's body starts on the same line as its label. Bodies begin with
   different elements -- a rack, a note, a bare div -- each carrying its own top
   margin, so without this no two sections aligned the same way. */
.identity-section > :not(header) { margin-top: 0; }
.identity-section > :not(header) > :first-child { margin-top: 0; }
.identity-section > :not(header) > :first-child.token-note { margin-top: 0; }

/* ---- Token table (Atlassian naming convention, Maestro values) ---------- */
.tok-rack { display: flex; flex-direction: column; margin-bottom: 30px; }
.tok-rack article { display: grid; grid-template-columns: 200px 46px 150px 1fr;
  gap: var(--doc-gap); align-items: center; padding: 9px 0; }
.tok-rack code { font-family: var(--mono); font-size: 10px; color: var(--ink); }
.tok-rack i { font-style: normal; display: flex; align-items: center; }
.tok-rack b { font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.tok-rack span:last-child { font-size: 11px; color: var(--muted); line-height: 1.4; }
.tok-chip { width: 26px; height: 18px; display: block; box-shadow: inset 0 0 0 1px var(--line); }
.tok-bar { height: 8px; display: block; background: var(--brand); }
.token-table .token-group:not(:first-of-type) { margin-top: 26px; }

/* ---- Controls ----------------------------------------------------------
   .is-hover / .is-active / .is-focus force a state so the documentation can
   show every one at once. Real interaction uses the pseudo-classes beside them. */
.btn { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .03em;
  cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.btn:focus-visible, .btn.is-focus { outline: 3px solid var(--harmony); outline-offset: 3px; }

.btn--primary { background: var(--brand); color: var(--off-white); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--brand-hovered); }
.btn--primary:active, .btn--primary.is-active { background: var(--brand-pressed); }

.btn--secondary { background: var(--gray); color: var(--ink); width: 100%; }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--gray-hovered); }
.btn--secondary:active, .btn--secondary.is-active { background: var(--gray-pressed); }

.btn--tertiary { background: transparent; color: var(--ink); padding: 0 12px; }
.btn--tertiary:hover, .btn--tertiary.is-hover { background: var(--gray); }
.btn--tertiary:active, .btn--tertiary.is-active { background: var(--gray-pressed); }

.btn:disabled, .btn.is-disabled { background: var(--raised); color: var(--quiet); cursor: not-allowed; }
.btn--tertiary:disabled, .btn--tertiary.is-disabled { background: transparent; }

.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field label { font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--quiet); }
.field input { min-height: 44px; width: 100%; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--gray); color: var(--ink); font-family: var(--sans); font-size: 13px;
  transition: background-color 160ms ease, box-shadow 160ms ease; }
.field input::placeholder { color: var(--quiet); }
.field input:hover, .field input.is-hover { background: var(--gray-hovered); }
.field input:focus, .field input.is-focus { outline: 3px solid var(--harmony); outline-offset: 3px; background: var(--off-white); box-shadow: inset 0 0 0 1px var(--ink); }
.field input:disabled, .field input.is-disabled { background: var(--raised); color: var(--quiet); cursor: not-allowed; }
.field.is-error input { box-shadow: inset 0 0 0 1px var(--brand); background: var(--off-white); }
.field .field-msg { font-size: 10px; color: var(--brand); }

.ctl-matrix { display: flex; flex-direction: column; gap: 34px; }
.ctl-row { display: grid; grid-template-columns: 104px repeat(5, 1fr); gap: 20px; align-items: start; }
.ctl-row > .ctl-name { font-size: 12px; font-weight: 650; color: var(--ink); padding-top: 13px; }
.ctl-cell { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ctl-cell > :first-child { align-self: stretch; }
.ctl-cell .btn--tertiary, .ctl-cell .btn--primary { align-self: flex-start; }
.ctl-cell i { font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.ctl-cell .field { width: 100%; }

/* ---- About: one page, centered ---------------------------------------- */
.about-view { padding: clamp(48px, 9vh, 110px) 24px 90px; max-width: none; }
.about-page { max-width: 60ch; margin: 0 auto; }
.about-eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.about-page h1 { margin: 0 0 30px; font: 58px/.94 var(--display); letter-spacing: -.03em; }
.about-page p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.about-page p.about-foot { margin-top: 30px; font-size: 12px; line-height: 1.6; color: var(--quiet); }

/* ---- Register R2: components added for the P0 items -------------------- */
.patron-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  width: 100%; border: 0; border-radius: 0; padding: 12px; margin-bottom: 14px;
  background: var(--raised); text-align: left; cursor: pointer; }
.patron-id { width: 38px; height: 38px; border-radius: 50%; background: var(--gray);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.patron-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.patron-body strong { font-size: 13px; }
.patron-body small { font-size: 10px; color: var(--muted); }
.patron-meta { font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); }

.announce-rail { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px;
  scrollbar-width: none; }
.announce-rail::-webkit-scrollbar { display: none; }
.announce { flex: 0 0 78%; text-align: left; border: 0; border-radius: 0; cursor: pointer;
  background: var(--gray); padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.announce em { font-style: normal; font-size: 11px; font-weight: 700; }
.announce span { font-size: 10px; line-height: 1.4; color: var(--muted); }

.own-line { margin: 8px 0 0; font-size: 11px; font-weight: 650; }
.own-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.own-actions .btn { min-height: 36px; font-size: 10px; padding: 0 12px; width: auto; }

.filter-row { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--gray); color: var(--muted); font-size: 10px; display: inline-flex;
  align-items: center; gap: 6px; white-space: nowrap; }
.chip.is-on { background: var(--ink); color: var(--off-white); }
.chip .icon { width: 13px; height: 13px; }
.result-count { margin: 0 0 16px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; color: var(--brand);
  font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.event-card.is-unavailable .event-title { color: var(--muted); }

.plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--raised); padding: 12px; }
.plan-strip b { display: block; font-size: 12px; }
.plan-strip small { font-size: 10px; color: var(--muted); }
.plan-flag { font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); text-align: right; }

.incl-list { list-style: none; margin: 0; padding: 0; }
.incl-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 12px; background: var(--raised); margin-bottom: 4px; font-size: 12px; }
.incl-list em { font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.incl-list em.is-done { color: var(--brand); }
.incl-list em.is-open { color: var(--quiet); }

.renew-block { background: var(--raised); padding: 14px; }
.renew-block p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.renew-block b { color: var(--ink); }
.renew-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.renew-actions .btn { min-height: 40px; font-size: 10px; width: auto; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stat-row span { background: var(--raised); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.stat-row b { font: 24px/1 var(--display); }
.stat-row small { font-size: 9px; color: var(--muted); }

.journey { list-style: none; margin: 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: baseline;
  padding: 8px 0; font-size: 12px; color: var(--muted); }
.journey em { font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.journey li.is-done span { color: var(--ink); }
.journey li.is-now span { color: var(--brand); font-weight: 700; }

.kv-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 12px; background: var(--raised); margin-bottom: 4px; font-size: 12px; }
.kv-list span { color: var(--muted); }
.kv-list b { font-weight: 600; text-align: right; }
.kv-list b.is-open { color: var(--quiet); font-weight: 400; }
