/* app.css: design tokens (light + dark) and shared pieces, each page's styles, and at the end the role layer that
   gives Anvil components (Button, Label, TextBox, notifications, dialogs, RepeatingPanel grids) the same look.
   Restyle the app by changing the tokens at the top (both the light and the dark blocks). */

/* Tokens: "Strategy Memo". Cool paper #F4F5F7, ink #171B24, deep cobalt #2340A8 (actions, focus, progress) and saffron
   #D9822B (bets, risk, gates: the one accent). Dark mode is a designed evening memo (#0F1219), surfaces lighter as they
   rise, cobalt lifted to #8FA6FF. Newsreader (serif) for headings, Onest for body, JetBrains Mono only for codes and
   numbers (fonts load in anvil.yaml head_html). Text colours reach 4.5:1 on every surface they sit on. */
:root {
  --c-bg: #f4f5f7;          /* page */
  --c-surface: #ffffff;     /* cards, menus, inputs */
  --c-surface-2: #eceef2;   /* subtle fills, hovers, figure panels */
  --c-ink: #171b24;         /* text */
  --c-muted: #4e5666;       /* secondary text (7:1 on white) */
  --c-faint: #5b6373;       /* hints, placeholders (4.8:1 on surface-2) */
  --c-line: #dcdfe5;        /* hairlines */
  --c-brand: #2340a8;       /* primary actions, focus, progress */
  --c-brand-ink: #ffffff;
  --c-brand-soft: #e7ecfa;
  --c-brand-text: #2340a8;  /* cobalt used as text on any light surface (8:1 on white) */
  --c-accent: #d9822b;      /* saffron: bets, risk, highlights (fills and lines) */
  --c-accent-text: #96500d; /* saffron as text (5.8:1 on white) */
  --c-accent-soft: #fbeedd;
  --c-accent-ink: #96500d;
  --c-head: #ffffff; --c-head-ink: #171b24;
  --c-good: #18794e; --c-good-soft: #e3f4ea;
  --c-warn: #8a5300; --c-warn-soft: #fbf0dc;
  --c-bad: #b42318;  --c-bad-soft: #fdeceb;
  --c-on-status: #fff;
  --fig-line: #8890a0; --fig-box: #ffffff; --fig-ink: #171b24; --fig-ghost: #eceef2;
  --seal-bg: #2340a8; --seal-ink: #ffffff; --seal-accent: #d9822b;
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 27, 36, .05), 0 6px 18px rgba(23, 27, 36, .06);
  --shadow-lg: 0 18px 50px rgba(23, 27, 36, .14);
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --maxw: 1180px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0f1219; --c-surface: #171b24; --c-surface-2: #212634; --c-ink: #e8eaf0; --c-muted: #a9b0bf; --c-faint: #959dad;
    --c-line: #2a3040; --c-brand: #8fa6ff; --c-brand-ink: #0f1219; --c-brand-soft: #1d2747; --c-brand-text: #a8baff;
    --c-accent: #f0a75a; --c-accent-text: #f5b978; --c-accent-soft: #33240f; --c-accent-ink: #f5b978;
    --c-head: #171b24; --c-head-ink: #e8eaf0;
    --c-good: #5fd29a; --c-good-soft: #12291e; --c-warn: #f0b45c; --c-warn-soft: #2d2412; --c-bad: #ff8b80; --c-bad-soft: #351a18; --c-on-status: #0f1219;
    --fig-line: #6d7588; --fig-box: #171b24; --fig-ink: #e8eaf0; --fig-ghost: #212634;
    --seal-bg: #8fa6ff; --seal-ink: #0f1219; --seal-accent: #f0a75a;
    --shadow: none; --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg: #0f1219; --c-surface: #171b24; --c-surface-2: #212634; --c-ink: #e8eaf0; --c-muted: #a9b0bf; --c-faint: #959dad;
  --c-line: #2a3040; --c-brand: #8fa6ff; --c-brand-ink: #0f1219; --c-brand-soft: #1d2747; --c-brand-text: #a8baff;
  --c-accent: #f0a75a; --c-accent-text: #f5b978; --c-accent-soft: #33240f; --c-accent-ink: #f5b978;
  --c-head: #171b24; --c-head-ink: #e8eaf0;
  --c-good: #5fd29a; --c-good-soft: #12291e; --c-warn: #f0b45c; --c-warn-soft: #2d2412; --c-bad: #ff8b80; --c-bad-soft: #351a18; --c-on-status: #0f1219;
  --fig-line: #6d7588; --fig-box: #171b24; --fig-ink: #e8eaf0; --fig-ghost: #212634;
  --seal-bg: #8fa6ff; --seal-ink: #0f1219; --seal-accent: #f0a75a;
  --shadow: none; --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5); color-scheme: dark;
}

/* Design kit: motion tokens, browser surfaces, wrapping, press feedback, reduced motion (APP_MAKER/design/kit.css). */
/* design-kit:start */
:root {
  /* easing: never ease-in on UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entering, exiting, most UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* moving across the screen */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* sheets, drawers */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);      /* one authored entrance */
  /* durations: UI stays under 300ms, exits faster than entrances */
  --dur-press: 140ms; --dur-fast: 180ms; --dur-base: 220ms; --dur-slow: 320ms; --dur-hero: 640ms;
  /* 4px spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --measure: 65ch;
}

/* browser surfaces: the parts nobody draws */
::selection { background: color-mix(in srgb, var(--c-brand) 26%, transparent); color: inherit; }
html {
  accent-color: var(--c-brand); caret-color: var(--c-brand);
  scrollbar-color: color-mix(in srgb, var(--c-ink) 26%, transparent) transparent;
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-underline-offset: .2em; text-decoration-thickness: from-font; }
h1, h2, h3, h4, [role="heading"], .anvil-role-page-title { text-wrap: balance; }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
td, th, time, output, progress, .num, .tabular, [data-num] { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 60%, transparent); outline-offset: 2px; }

/* press feedback: pressable things answer the moment they're pressed */
:is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn, .kit-press) {
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, color var(--dur-fast) ease, opacity var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
:is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn, .kit-press):active:not(:disabled) { transform: scale(.97); }

/* entrances: content is visible by default; these only add the arrival */
@keyframes kit-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes kit-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes kit-fade { from { opacity: 0; } }
.kit-in { animation: kit-in var(--dur-slow) var(--ease-out) both; }
.kit-stagger > * { animation: kit-in var(--dur-slow) var(--ease-out) both; }
.kit-stagger > :nth-child(2) { animation-delay: 40ms; } .kit-stagger > :nth-child(3) { animation-delay: 80ms; }
.kit-stagger > :nth-child(4) { animation-delay: 120ms; } .kit-stagger > :nth-child(5) { animation-delay: 160ms; }
.kit-stagger > :nth-child(n+6) { animation-delay: 200ms; }

/* reduced motion = fewer and gentler, not none: movement goes, short fades that confirm a state stay */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kit-in, .kit-stagger > * { animation-name: kit-fade; animation-delay: 0ms !important; }
  :is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn, .kit-press):active:not(:disabled) { transform: none; }
}
/* design-kit:end */

/* The app owns the page (not Anvil's theme). */
html, body { background: var(--c-bg) !important; color: var(--c-ink); }
body { margin: 0; font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.ui-modal-open { overflow: hidden; }

.ui, .ui *, .ui *::before, .ui *::after { box-sizing: border-box; }
.ui { font: 16px/1.55 var(--font-body); color: var(--c-ink); }
.ui h1, .ui h2, .ui h3, .ui h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; font-weight: 600; color: var(--c-ink); font-variant-numeric: lining-nums; }
.ui h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.ui h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.ui h3 { font-size: 1.22rem; }
.ui h4 { font-size: 1.05rem; }
.ui p { margin: 0 0 .8em; }
.ui :is(p, ul, ol, blockquote, figure) + :is(h2, h3) { margin-top: 1.4em; }  /* more space above a heading than below it */
.ui a { color: var(--c-brand-text); text-underline-offset: 3px; }
.ui [hidden] { display: none !important; }
.ui img { max-width: 100%; }
.ui .muted { color: var(--c-muted); }
.ui .faint { color: var(--c-faint); }
.ui .small { font-size: .875rem; }
.ui-ic, .ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* layout */
.ui-wrap { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 72px; }
.ui-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.ui-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ui-row.end { justify-content: flex-end; }
.ui-row.between { justify-content: space-between; }
.ui-row.top { align-items: flex-start; }
.ui-spacer { flex: 1; }
.ui-stack > * + * { margin-top: 14px; }
.ui-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ui-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ui-page-head h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.ui-page-head p { margin: 6px 0 0; }

/* cards */
.ui-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.ui-card.flat { box-shadow: none; }
.ui-card.tight { padding: 14px 16px; }
.ui-card > :last-child { margin-bottom: 0; }

/* buttons */
:is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn) { font: 600 .95rem/1.2 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px; border-radius: var(--radius-sm); letter-spacing: .01em; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap; }  /* transitions + press scale: design kit */
:is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn):hover { border-color: var(--c-ink); }
:is(.ui-btn.primary, .anvil-role-btn.anvil-role-btn-primary > button, a.anvil-role-btn.anvil-role-btn-primary) { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
:is(.ui-btn.primary, .anvil-role-btn.anvil-role-btn-primary > button, a.anvil-role-btn.anvil-role-btn-primary):hover { opacity: .92; }
:is(.ui-btn.accent, .anvil-role-btn.anvil-role-btn-accent > button, a.anvil-role-btn.anvil-role-btn-accent) { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
:is(.ui-btn.accent, .anvil-role-btn.anvil-role-btn-accent > button, a.anvil-role-btn.anvil-role-btn-accent):hover { opacity: .92; border-color: var(--c-ink); }
:is(.ui-btn.ghost, .anvil-role-btn.anvil-role-btn-ghost > button, a.anvil-role-btn.anvil-role-btn-ghost) { background: transparent; border-color: transparent; color: var(--c-muted); }
:is(.ui-btn.ghost, .anvil-role-btn.anvil-role-btn-ghost > button, a.anvil-role-btn.anvil-role-btn-ghost):hover { background: var(--c-surface-2); color: var(--c-ink); }
:is(.ui-btn.danger, .anvil-role-btn.anvil-role-btn-danger > button, a.anvil-role-btn.anvil-role-btn-danger) { color: var(--c-bad); }
:is(.ui-btn.danger, .anvil-role-btn.anvil-role-btn-danger > button, a.anvil-role-btn.anvil-role-btn-danger):hover { border-color: var(--c-bad); }
:is(.ui-btn.danger.solid, .anvil-role-btn.anvil-role-btn-danger.anvil-role-btn-solid > button, a.anvil-role-btn.anvil-role-btn-danger.anvil-role-btn-solid) { background: var(--c-bad); border-color: var(--c-bad); color: var(--c-on-status); }
:is(.ui-btn.sm, .anvil-role-btn.anvil-role-btn-sm > button, a.anvil-role-btn.anvil-role-btn-sm) { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
:is(.ui-btn.lg, .anvil-role-btn.anvil-role-btn-lg > button, a.anvil-role-btn.anvil-role-btn-lg) { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
:is(.ui-btn.icon, .anvil-role-btn.anvil-role-btn-icon > button, a.anvil-role-btn.anvil-role-btn-icon) { width: 40px; min-height: 40px; padding: 0; }
:is(.ui-btn.block, .anvil-role-btn.anvil-role-btn-block > button, a.anvil-role-btn.anvil-role-btn-block) { width: 100%; }
:is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn):disabled { opacity: .5; cursor: not-allowed; transform: none; }
:is(.ui-btn.is-busy, .anvil-role-btn.anvil-role-btn-is-busy > button, a.anvil-role-btn.anvil-role-btn-is-busy) { position: relative; color: transparent !important; }
:is(.ui-btn.is-busy, .anvil-role-btn.anvil-role-btn-is-busy > button, a.anvil-role-btn.anvil-role-btn-is-busy)::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor;
  border-color: var(--c-muted) transparent var(--c-muted) transparent; animation: ui-spin .8s linear infinite; }
:is(.ui-btn.primary.is-busy, .anvil-role-btn.anvil-role-btn-primary.anvil-role-btn-is-busy > button, a.anvil-role-btn.anvil-role-btn-primary.anvil-role-btn-is-busy)::after { border-color: var(--c-brand-ink) transparent var(--c-brand-ink) transparent; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
.ui :focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); outline-offset: 2px; }

/* forms */
.ui-field { display: block; }
.ui-field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.ui-field > span em { font-style: normal; font-weight: 400; color: var(--c-muted); }
.ui input[type=text], .ui input[type=email], .ui input[type=password], .ui input[type=search], .ui input[type=number], .ui input[type=url],
.ui input[type=tel], .ui input[type=date], .ui input[type=time], .ui input[type=datetime-local], .ui select, .ui textarea {
  font: inherit; font-size: 1rem; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; min-height: 46px; margin: 0; box-shadow: none; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.ui textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
/* tick boxes and radios keep the focus ring above; typed-in fields swap it for the border + glow */
.ui input:not([type=checkbox]):not([type=radio]):focus, .ui select:focus, .ui textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.ui ::placeholder { color: var(--c-faint); }
.ui-hint { font-size: .85rem; color: var(--c-muted); margin: 6px 0 0; }
.ui-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.ui-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-brand); flex: none; }
.ui-error { background: var(--c-bad-soft); color: var(--c-bad); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.ui-note { background: var(--c-brand-soft); color: var(--c-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.ui-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ui-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ui-choice span { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; background: var(--c-surface); }
.ui-choice input:checked + span { border-color: var(--c-brand); background: var(--c-brand-soft); }
.ui-choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); }

/* small pieces */
.ui-badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .75rem/1.3 var(--font-body); padding: 4px 9px; border-radius: 6px; letter-spacing: .02em;
  background: var(--c-surface-2); color: var(--c-muted); white-space: nowrap; }
.ui-badge.brand { background: var(--c-brand-soft); color: var(--c-brand-text); }
.ui-badge.good { background: var(--c-good-soft); color: var(--c-good); }
.ui-badge.warn { background: var(--c-warn-soft); color: var(--c-warn); }
.ui-badge.bad { background: var(--c-bad-soft); color: var(--c-bad); }
.ui-badge.accent { background: var(--c-accent-soft); color: var(--c-accent-text); }
.ui-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--c-surface-2); border-radius: 6px; border: 1px solid var(--c-line); }
.ui-seg button { font: 500 .85rem/1 var(--font-body); border: 0; background: none; color: var(--c-muted); padding: 8px 13px; border-radius: 4px; cursor: pointer; }
.ui-seg button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }
.ui-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.ui-tabs a, .ui-tabs button { font: 600 .92rem/1 var(--font-body); border: 0; background: none; color: var(--c-muted); padding: 12px 14px; border-bottom: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; margin-bottom: -1px; }
.ui-tabs .on { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.ui-tabs .count { font-size: .75rem; background: var(--c-surface-2); border-radius: 999px; padding: 2px 7px; }
.ui-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }
.ui-empty :is(.ui-ic, .ic) { width: 34px; height: 34px; color: var(--c-faint); margin-bottom: 8px; }
.ui-empty :is(h2, h3) { color: var(--c-ink); font-size: 1.15rem; margin-top: 0; }
.ui-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--c-brand-soft); color: var(--c-brand); font: 700 .85rem/1 var(--font-body); }
.ui-list { display: grid; gap: 10px; }
.ui-item { display: flex; gap: 14px; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px; }
.ui-item .grow { flex: 1; min-width: 0; }
.ui-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ui-item p { margin: 0; overflow-wrap: anywhere; }
.ui-skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--c-surface-2), var(--c-surface), var(--c-surface-2)); background-size: 200% 100%;
  animation: ui-skel 1.4s linear infinite; min-height: 80px; }
@keyframes ui-skel { to { background-position: -200% 0; } }
.ui-stat { display: block; }
.ui-stat b { display: block; font: 700 2.3rem/1.05 var(--font-display); }
.ui-stat span { color: var(--c-muted); font-size: .9rem; }

/* header: paper white with a hairline, the brand mark on the left */
.ui-header { position: sticky; top: 0; z-index: 40; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.ui-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ui-header-in { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.ui-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink) !important; }
.ui-brand img { width: 34px; height: 34px; border-radius: 8px; }
.ui-brand .bt { display: grid; line-height: 1; }
.ui-brand .bt b { font: 800 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.ui-brand .bt small { font: 500 .75rem/1.2 var(--font-body); color: var(--c-muted); margin-top: 3px; }
.ui-nav { display: flex; gap: 2px; }
.ui-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 8px; color: var(--c-muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.ui-nav a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.ui-nav a.on { color: var(--c-brand-text); background: var(--c-brand-soft); }
.ui-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.ui-avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c-brand); color: var(--c-brand-ink); font: 700 .85rem/1 var(--font-body); }
.ui-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; transform-origin: top right; animation: ui-pop var(--dur-fast) var(--ease-out); color: var(--c-ink); }
.ui-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 6px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.ui-menu > a, .ui-menu > button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  font: 500 .95rem/1.2 var(--font-body); color: var(--c-ink); text-decoration: none; cursor: pointer; text-align: left; }
.ui-menu > a:hover, .ui-menu > button:hover { background: var(--c-surface-2); }
.ui-menu-block { padding: 8px 12px 10px; display: grid; gap: 8px; }
@keyframes ui-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* main + footer */
.ui-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ui-main { flex: 1; }
.ui-shell.no-chrome .ui-header, .ui-shell.no-chrome .ui-footer, .ui-shell.no-chrome .ui-tabbar { display: none; }
.ui-footer { border-top: 1px solid var(--c-line); background: var(--c-surface); }
.ui-footer-in { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: start; }
.ui-footer-brand p { margin: 8px 0 0; }
.ui-footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.ui-footer-links a, .ui-footer-links button { font: 500 .92rem/1.4 var(--font-body); color: var(--c-muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; }  /* 24px+ touch height */
.ui-footer-links a:hover, .ui-footer-links button:hover { color: var(--c-ink); }
.ui-footer-legal { grid-column: 1 / -1; margin: 0; }

/* phone tab bar (shown on small screens when signed in) */
.ui-tabbar { display: none; }
.ui-tabbar:empty { display: none !important; }

/* toasts + modals */
.ui-toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.ui-toast { display: flex; gap: 10px; align-items: center; background: var(--c-ink); color: var(--c-bg); padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 500; animation: ui-pop var(--dur-base) var(--ease-out); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.ui-toast.error { background: var(--c-bad); color: var(--c-on-status); }
.ui-toast.ok { background: var(--c-good); color: var(--c-on-status); }
.ui-toast.out { opacity: 0; transform: translateY(8px); }
.ui-modal-wrap { position: fixed; inset: 0; z-index: 900; background: rgba(10, 12, 20, .5); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: ui-fade var(--dur-fast) ease; }
.ui-modal { position: relative; width: min(100%, 520px); background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-line); padding: 28px; box-shadow: var(--shadow-lg); animation: kit-pop var(--dur-base) var(--ease-out); outline: none; }
.ui-modal.wide { width: min(100%, 760px); }
.ui-modal h2 { padding-right: 40px; }
.ui-modal-x { position: absolute; top: 14px; right: 14px; }
@keyframes ui-fade { from { opacity: 0; } }

@media (max-width: 720px) {
  .ui-wrap { padding: 22px 16px 56px; }
  .ui-header-in { padding: 0 16px; gap: 12px; }
  .ui-nav { display: none; }
  .ui-brand .bt b { font-size: 1.18rem; }
  .ui-brand .bt small { letter-spacing: .08em; }
  .ui-header-right :is(.ui-btn, .anvil-role-btn > button, a.anvil-role-btn) { padding: 9px 13px; min-height: 40px; font-size: .9rem; }
  .ui-shell.signed-in .ui-tabbar { display: flex; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: var(--c-surface); border-top: 1px solid var(--c-line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .ui-tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--c-muted); text-decoration: none; font: 600 .75rem/1 var(--font-body); }
  .ui-tabbar a :is(.ui-ic, .ic) { width: 22px; height: 22px; }
  .ui-tabbar a.on { color: var(--c-brand-text); }
  .ui-shell.signed-in:has(.ui-tabbar:not(:empty)) .ui-footer { padding-bottom: 72px; }
  .ui-footer-in { grid-template-columns: 1fr; }
  .ui-footer-links { justify-content: flex-start; }
  .ui-grid.two { grid-template-columns: 1fr; }
  .ui-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); width: auto; }
  .ui-modal { padding: 24px 18px; }
}
@media (max-width: 380px) {
  .ui-header-right :is(.ui-btn.ghost, .anvil-role-btn.anvil-role-btn-ghost > button, a.anvil-role-btn.anvil-role-btn-ghost) { display: none; }
}
@media (prefers-reduced-motion: reduce) {  /* drop movement, keep the fades (design/README.md 6) */
  .ui-menu, .ui-toast, .ui-modal { animation-name: kit-fade; }
  .ui-toast.out { transform: none; }
  .ui-skel { animation: none; }
}


/* ===== auth ===== */
.au-wrap { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; padding: 40px 16px 64px; }
.au-card { width: min(100%, 440px); padding: 30px; }
.au-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.au-card .ui-seg { width: 100%; margin: 18px 0 20px; }
.au-card .ui-seg button { flex: 1; padding: 10px; }
.au-pw { position: relative; }
.au-pw input { padding-right: 70px; }
.au-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .9rem; flex-wrap: wrap; }
.au-links a { cursor: pointer; }
.au-card .lk-consent, .au-card [class*="consent"] { font-size: .9rem; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--c-muted); font-size: .85rem; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.au-google svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 480px) { .au-card { padding: 24px 18px; } }

/* ===== profile ===== */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.pf-head .ui-avatar { width: 64px; height: 64px; font-size: 1.3rem; background: var(--c-brand); color: var(--c-brand-ink); font-family: var(--font-display); }
.pf-head h1 { margin: 0; font-size: 1.8rem; }
.pf-links { display: grid; gap: 4px; }
.pf-links button, .pf-links a { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  font: 500 .97rem/1.2 var(--font-body); color: var(--c-ink); cursor: pointer; text-decoration: none; text-align: left; width: 100%; }
.pf-links button:hover, .pf-links a:hover { background: var(--c-surface-2); }
@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; } }

/* ===== admin ===== */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.ad-fb { display: grid; gap: 10px; }
.ad-fb .ui-item { display: block; }
.ad-fb .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--c-muted); margin-bottom: 8px; }
.ad-fb .msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
.ad-fb .ctx { font-size: .8rem; color: var(--c-faint); overflow-wrap: anywhere; margin-bottom: 10px; }
.ad-fb textarea { min-height: 60px; font-size: .92rem; }
.ad-users { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ad-users th, .ad-users td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.ad-users th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.ad-users td.email { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .ad-users thead { display: none; }
  .ad-users tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .ad-users td { border: 0; padding: 0; }
  .ad-users td.joined { display: none; }
}

/* =====================================================================================================
   Product Expert: shared pieces and pages ("Strategy Memo": cobalt and saffron on cool paper, thin-line diagrams
   (trees, 2x2s, curves) instead of photos, Newsreader headings + Onest body, JetBrains Mono only for codes and numbers).
   ===================================================================================================== */
.px-hero-host, .px-drill-host, .px-rubric-host, .px-cert-host, .lb-host, .px-seal-host, .px-bar-host, .px-rub-row,
.px-pipe-host, .px-labstage-host, .lib-row-host, .pl-week-host { display: contents; }
.px-ring-host, .px-seal-box { display: inline-flex; line-height: 0; }
.ui-main { overflow-x: clip; }

/* footer: brand + columns + the stamp */
.ft { grid-template-columns: 1.4fr repeat(3, 1fr) auto !important; gap: 22px 28px !important; }
.ft .ft-brand p { max-width: 30em; margin-top: 10px; }
.ft .ft-col { display: grid; gap: 8px; align-content: start; justify-content: start; }
.ft .ft-h { font: 600 .9rem/1.2 var(--font-body); color: var(--c-ink); margin: 4px 0 4px; letter-spacing: 0; }
.ft .ft-col a, .ft .ft-col button { font: 500 .9rem/1.3 var(--font-body); color: var(--c-muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; text-align: left; }
.ft .ft-col a:hover, .ft .ft-col button:hover { color: var(--c-ink); }
.ft .ft-seal { opacity: .95; }
@media (max-width: 860px) { .ft { grid-template-columns: 1fr 1fr !important; } .ft .ft-brand { grid-column: 1 / -1; } .ft .ft-seal { display: none; } }

/* the memo-cover header band: heading and facts on the left, the program's schematic as a captioned figure */
.px-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.px-hero .in { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 36px; align-items: center; }
.ui .px-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); letter-spacing: -.028em; line-height: 1.08; margin: 0 0 10px; max-width: 20em; }
.px-hero p.lead { color: var(--c-muted); font-size: 1.08rem; max-width: 42em; margin: 0; }
.px-hero .crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .875rem; margin-bottom: 12px; color: var(--c-muted); }
.px-hero .crumb { display: inline-flex; gap: 8px; }
.px-hero .crumbs a { color: var(--c-muted); text-decoration: none; display: inline-block; padding: 3px 0; }
.px-hero .crumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.px-hero .meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 16px; color: var(--c-muted); font-size: .9rem; }
.px-hero .meta .mi { display: inline-flex; gap: 7px; align-items: center; }
.px-hero .meta .ic { color: var(--c-brand-text); }
.px-hero .hero-actions { margin-top: 20px; }
.px-hero .figbox { margin: 0; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 12px 10px; }
.px-hero figcaption { font: 500 .75rem/1.3 var(--font-mono); color: var(--c-muted); margin-top: 6px; }
@media (max-width: 820px) { .px-hero .in { grid-template-columns: minmax(0, 1fr); padding: 26px 16px 22px; gap: 18px; } .px-hero .figbox { max-width: 420px; } }
@media (max-width: 520px) { .px-hero .figbox { display: none; } }

/* progress */
.px-bar { height: 6px; border-radius: 3px; background: var(--c-surface-2); overflow: hidden; }
.px-bar i { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); background: var(--c-brand); border-radius: 3px;
  transition: transform var(--dur-slow) var(--ease-out); }
.px-ring { display: inline-grid; place-items: center; position: relative; flex: none; }
.px-ring b { position: absolute; font: 700 .8rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }

/* panels and headings */
.px-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.px-panel > header { padding: 16px 20px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui .px-panel > header h2 { margin: 0; font-size: 1.3rem; }
.px-panel > header a { display: inline-block; padding: 4px 0; }
.px-panel > .body { padding: 18px 20px; }
.ui .px-ph { font-size: 1.3rem; margin: 0 0 6px; }
.px-ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--c-muted); font-size: .93rem; }
.anvil-role-px-list > div { display: grid; gap: 6px; margin-top: 10px; }
.px-li { position: relative; padding-left: 18px; color: var(--c-muted); font-size: .93rem; }
.px-li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--c-brand); }
.px-check label, .anvil-role-px-check label { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.anvil-role-px-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* program cards: the schematic on a drafting panel */
.px-pcard { display: flex; flex-direction: column; height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit !important;
  box-shadow: var(--shadow); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .px-pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.px-pcard:hover { border-color: var(--c-brand); }
.px-pcard .img { position: relative; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); padding: 14px 14px 8px; }
.px-pcard .img .fig { width: 100%; }
.px-pcard .code { position: absolute; left: 12px; top: 12px; font: 700 .75rem/1 var(--font-mono); letter-spacing: .06em; color: var(--c-brand-ink); background: var(--c-brand); padding: 5px 7px; border-radius: 4px; }
.px-pcard .done { position: absolute; right: 12px; top: 12px; }
.px-pcard .txt { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.ui .px-pcard h3 { margin: 2px 0 -3px; font-size: 1.25rem; }
.px-pcard .role { font-size: .8125rem; color: var(--c-accent-text); font-weight: 600; }
.px-pcard p { margin: 0; color: var(--c-muted); font-size: .93rem; }
.px-pcard .foot { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; font-size: .8125rem; color: var(--c-faint); margin-top: auto; padding-top: 6px; }
.px-pcard .foot span:last-child { white-space: nowrap; }

/* case teaser (a tone badge says the kind; no coloured side tab) */
.px-case { display: grid; gap: 6px; align-content: start; height: 100%; padding: 18px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: inherit !important;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.px-case:hover { background: var(--c-surface-2); border-color: var(--c-brand); }
.px-case .top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .8125rem; color: var(--c-muted); }
.ui .px-case h3 { margin: 4px 0 -2px; font-size: 1.12rem; }
.px-case p { margin: 0; font-size: .92rem; color: var(--c-muted); max-width: 70ch; }

/* honour roll cards */
.px-honour { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); text-decoration: none; color: inherit !important;
  transition: border-color var(--dur-fast) var(--ease-out); }
.px-honour:hover { border-color: var(--c-brand); }
.px-honour .ui-avatar { background: var(--c-brand-soft); color: var(--c-brand-text); font-size: .9rem; }
.px-honour .who { display: grid; min-width: 0; }
.px-honour b { font-size: .95rem; }
.px-honour small { color: var(--c-muted); font-size: .8125rem; line-height: 1.35; }
.px-honour small.cred { color: var(--c-brand-text); }
.px-honour.compact { padding: 0; border: 0; background: none; font-size: .9rem; }
.px-honour.compact .ui-avatar { width: 34px; height: 34px; }
.anvil-role-lp-honour > div, .anvil-role-vf-roll > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.anvil-role-hm-honour > div { display: grid; gap: 12px; }

/* do / don't */
.px-dd { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.px-dd > div { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--c-line); background: var(--c-surface); }
.ui .px-dd h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 1.15rem; }
.px-dd .good h3, .px-dd .good li .ic, .px-dd .good .px-dd-li .ic { color: var(--c-good); }
.px-dd .bad h3, .px-dd .bad li .ic, .px-dd .bad .px-dd-li .ic { color: var(--c-bad); }
.px-dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.px-dd li, .px-dd-li { display: flex; gap: 10px; font-size: .95rem; }
.px-dd li .ic, .px-dd-li .ic { margin-top: 3px; }
.anvil-role-px-dd-list > div { display: grid; gap: 9px; }
@media (max-width: 720px) { .px-dd { grid-template-columns: 1fr; } }

/* sources and module links */
.anvil-role-md-sources > div, .anvil-role-px-sources > div { display: grid; gap: 6px; counter-reset: src; font-size: .92rem; margin-top: 8px; }
.px-src { position: relative; padding-left: 26px; counter-increment: src; }
.px-src::before { content: counter(src) "."; position: absolute; left: 0; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.px-src a { overflow-wrap: anywhere; display: inline-block; padding: 3px 0; }
.anvil-role-ui-list-panel > div { display: grid; gap: 10px; margin: 10px 0 24px; }
.px-mlink { align-items: center; text-decoration: none; color: inherit !important; transition: border-color var(--dur-fast) var(--ease-out); }
.px-mlink:hover { border-color: var(--c-brand); }
.px-mlink .grow { display: grid; gap: 2px; }
.px-mlink b { font: 600 1rem/1.3 var(--font-display); }
.px-mlink small { color: var(--c-muted); font-size: .875rem; }

/* the flashcard engine */
.px-drill { max-width: 760px; margin: 0 auto; }
.px-drill .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.px-drill .top .px-bar { flex: 1; }
.px-drill .top > :first-child { flex: 1; }
.px-drill .count { font: 600 .875rem/1 var(--font-body); color: var(--c-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-card { position: relative; min-height: 330px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px 36px 28px; display: flex; flex-direction: column; overflow: hidden; }
.px-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c-brand); }
.px-card.advice::before { background: var(--c-accent); }
.px-card .kind { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.px-card .q { font: 600 clamp(1.3rem, 2.8vw, 1.7rem)/1.35 var(--font-display); letter-spacing: -.015em; margin: 0 0 6px; }
.px-card .q.quote::before { content: "\201C"; color: var(--c-accent-text); }
.px-card .q.quote::after { content: "\201D"; color: var(--c-accent-text); }
.px-card .prompt { color: var(--c-muted); font-size: .93rem; margin: 6px 0 0; }
.px-card .back { border-top: 1px dashed var(--c-line); margin-top: 20px; padding-top: 18px; animation: kit-in var(--dur-base) var(--ease-out); }
.px-card .back .a { font-size: 1.1rem; line-height: 1.5; margin: 0 0 8px; }
.px-card .back .note { font-size: .875rem; color: var(--c-muted); margin: 0; }
.px-card .verdict { display: inline-flex; gap: 8px; align-items: center; font: 700 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; }
.px-card .verdict.sound { background: var(--c-good-soft); color: var(--c-good); }
.px-card .verdict.trap { background: var(--c-bad-soft); color: var(--c-bad); }
.px-card .actions { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.px-card .actions > * { flex: 1; min-width: 150px; }
.px-card .actions .anvil-role-btn > button { width: 100%; }
.px-card .keys { font-size: .75rem; color: var(--c-muted); margin-top: 10px; text-align: center; }
.anvil-role-px-rate-no > button { border-color: var(--c-bad) !important; color: var(--c-bad) !important; }
.anvil-role-px-rate-yes > button { background: var(--c-good) !important; border-color: var(--c-good) !important; color: var(--c-on-status) !important; }
@media (max-width: 720px) { .px-card { padding: 26px 20px 20px; min-height: 300px; } .px-card .actions > * { min-width: 0; } }

/* rubric */
.anvil-role-px-rubric > div { display: grid; gap: 8px; }
.px-rub { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); cursor: pointer; background: var(--c-surface);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.px-rub:hover { border-color: var(--c-brand); }
.px-rub input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-good); flex: none; }
.px-rub.on { background: var(--c-good-soft); border-color: var(--c-good); }

/* the certificate (fixed paper colours in both themes; drawn at 1000x707 and scaled, so its small print is to scale) */
.px-cert-wrap { position: relative; width: 100%; }
.px-cert { width: 1000px; height: 707px; transform-origin: top left; background: #ffffff; color: #171b24; position: absolute; left: 0; top: 0;
  box-shadow: 0 24px 70px rgba(18, 22, 28, .22); font-family: "Onest", system-ui, sans-serif; overflow: hidden; line-height: 1.2;
  --seal-bg: #2340a8; --seal-ink: #ffffff; --seal-accent: #d9822b; }
.px-cert .grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.px-cert .grid g { stroke: #2340a8; stroke-width: .6; opacity: .09; }
.px-cert .frame { position: absolute; inset: 22px; border: 1.5px solid #171b24; }
.px-cert .inner { position: absolute; inset: 48px 64px 52px; display: flex; flex-direction: column; }
.px-cert .top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border-bottom: 1.5px solid #171b24; padding-bottom: 16px; }
.px-cert .mark { line-height: 0; }
.px-cert .inst { font: 800 24px/1 "Newsreader", Georgia, serif; letter-spacing: -.01em; }
.px-cert .sub { font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; margin-top: 8px; color: #4b5563; }
.px-cert .docno { font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; color: #2340a8; border: 1px solid #2340a8; padding: 6px 8px; }
.px-cert .certify { font-size: 18px; margin-top: 34px; color: #4b5563; }
.px-cert .holder { font: 800 56px/1.05 "Newsreader", Georgia, serif; letter-spacing: -.025em; margin-top: 10px; overflow-wrap: anywhere; }
.px-cert .has { font-size: 17px; margin-top: 16px; color: #4b5563; max-width: 760px; }
.px-cert .cred { font: 700 31px/1.15 "Newsreader", Georgia, serif; letter-spacing: -.015em; margin-top: 6px; color: #2340a8; }
.px-cert .mods { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: #374151; max-width: 820px; }
.px-cert .mods b { font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; color: #d9822b; margin-right: 4px; }
.px-cert .bottom { margin-top: auto; display: grid; grid-template-columns: 1fr 1.2fr 1fr 120px; gap: 0; align-items: end; border-top: 1.5px solid #171b24; }
.px-cert .cell { padding: 12px 14px 0 0; display: grid; gap: 6px; }
.px-cert .cell + .cell { padding-left: 14px; border-left: 1px solid #d1d5db; }
/* design-ok: tiny-text (the certificate is drawn at 1000px and scaled; this is its printed small print) */
.px-cert .cell span { font: 600 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; color: #6b7280; }
.px-cert .cell b { font-size: 14px; overflow-wrap: anywhere; }
.px-cert .stampbox { display: grid; place-items: end; transform: rotate(-8deg) translateY(-6px); }
.px-cert .stamp { position: absolute; top: 250px; left: 50%; transform: translate(-50%, 0) rotate(-12deg); border: 5px solid #b42318; color: #b42318; font: 800 64px/1 "Newsreader", Georgia, serif;
  letter-spacing: .1em; padding: 6px 22px; opacity: .8; border-radius: 6px; }
/* design-ok: tiny-text (printed small print on the scaled certificate) */
.px-cert .sample { position: absolute; top: 30px; right: 36px; font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; color: #b42318; background: #fff; padding: 4px 6px; }
.px-cert.arch { background: #0f1219; color: #e8eaf0; --seal-bg: #8fa6ff; --seal-ink: #0f1219; }
.px-cert.arch .frame, .px-cert.arch .top, .px-cert.arch .bottom { border-color: #e8eaf0; }
.px-cert.arch .grid g { stroke: #8fa6ff; opacity: .12; }
.px-cert.arch .certify, .px-cert.arch .has, .px-cert.arch .sub, .px-cert.arch .mods, .px-cert.arch .cell span { color: #aab4be; }
.px-cert.arch .cred, .px-cert.arch .docno { color: #8fa6ff; border-color: #8fa6ff; }
.px-cert.arch .cell + .cell { border-color: #374151; }
.px-cert.arch .sample { background: #0f1219; color: #ff8b80; }

/* misc */
.px-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1200; overflow: hidden; }
.px-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 1px; animation: px-fall linear forwards; }
@keyframes px-fall { to { transform: translateY(110vh) rotate(720deg); } }
.good { color: var(--c-good); } .bad { color: var(--c-bad); } .warn { color: var(--c-warn); }
@media print {
  .ui-header, .ui-footer, .ui-tabbar, .no-print, .anvil-notification, [data-notify="container"] { display: none !important; }
  html, body { background: #fff !important; }
}

/* ===== landing (Persuade): the pipeline hero is the one authored moment ===== */
.lp-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 28px; }
.ui .lp-pitch h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; max-width: 13em; }
.lp-pitch .lead { font-size: 1.12rem; color: var(--c-muted); max-width: 36em; margin: 0 0 26px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-diagram { min-width: 0; }
.lp-drag { margin: 10px 0 0; display: flex; gap: 6px; align-items: center; }
.lp-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 18px 0 40px; gap: 0; }
.lp-facts > div { padding: 4px 18px; border-left: 1px solid var(--c-line); }
.lp-facts > div:first-child { border-left: 0; padding-left: 0; }
.lp-facts dt { font-size: .8125rem; color: var(--c-muted); }
/* design-ok: tight-leading (single-line display numbers) */
.lp-facts dd { margin: 4px 0 0; font: 700 1.9rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-section { padding: 72px 0; }
.lp-section.alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.lp-section.lp-last { padding-top: 24px; }
.lp-section .ui-wrap { padding-top: 0; padding-bottom: 0; }
.ui .lp-h { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.025em; margin: 0 0 10px; }
.lp-sub { color: var(--c-muted); font-size: 1.08rem; max-width: 46em; margin: 0 0 30px; }
.lp-vs { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); overflow: hidden; }
.lp-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 200px; gap: 0; border-top: 1px solid var(--c-line); }
.lp-vs-row:first-child { border-top: 0; }
.lp-vs-row > span { padding: 18px 20px; }
.lp-vs-row > span + span { border-left: 1px solid var(--c-line); }
.lp-vs-row.head > span { font: 600 .875rem/1.3 var(--font-body); color: var(--c-muted); padding-top: 12px; padding-bottom: 12px; background: var(--c-surface-2); }
.lp-vs-row .demo { color: var(--c-muted); font-style: italic; }
.lp-vs-row .prod { font-weight: 500; }
.lp-vs-row .prod::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c-brand); margin-right: 10px; vertical-align: 2px; }
.lp-vs-row > span:last-child { font-size: .9rem; }
.lp-vs-row > span:last-child a { display: inline-block; padding: 4px 0; }
.lp-how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.lp-steps li::before { content: counter(st); grid-row: span 2; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-text); font: 700 .95rem/1 var(--font-mono); }
.lp-steps b { font-size: 1.05rem; }
.lp-steps span { color: var(--c-muted); font-size: .95rem; }
.lp-callcard { margin: 0; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.lp-callcard .cc-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.lp-callcard .cc-q { font: 600 1.35rem/1.35 var(--font-display); letter-spacing: -.01em; margin: 18px 0; }
.lp-callcard .cc-a { border-top: 1px dashed var(--c-line); padding-top: 14px; }
.lp-callcard .cc-a p { margin: 10px 0 0; }
.lp-callcard figcaption { margin-top: 14px; }
.anvil-role-lp-programs > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.anvil-role-lp-cases > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.lp-cert { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.lp-verify { margin: 4px 0 14px; }
.lp-verify .ui-row { flex-wrap: nowrap; }
.lp-verify .anvil-role-lp-code { flex: 1; min-width: 0; }
.lp-cert-img { min-width: 0; }
details.lp-faq { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2px 20px; margin-bottom: 10px; }
.lp-section.alt details.lp-faq { background: var(--c-bg); }
.lp-faq summary { cursor: pointer; font: 600 1.08rem/1.35 var(--font-display); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--c-brand-text); font-size: 1.3rem; line-height: 1; }
.lp-faq[open] summary::after { content: "\2013"; }
.lp-faq p { color: var(--c-muted); margin: 0 0 16px; max-width: 68ch; }
.lp-band { background: var(--c-brand); color: var(--c-brand-ink); border-radius: var(--radius); padding: 40px 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ui .lp-band h2 { color: var(--c-brand-ink); margin: 0 0 6px; letter-spacing: -.02em; }
.lp-band p { margin: 0; color: color-mix(in srgb, var(--c-brand-ink) 86%, transparent); }
.lp-band .ui-btn.primary { background: var(--c-brand-ink); color: var(--c-brand); border-color: var(--c-brand-ink); }
@media (max-width: 960px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 28px; }
  .lp-how, .lp-cert { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-vs-row { grid-template-columns: minmax(0, 1fr); }
  .lp-vs-row > span + span { border-left: 0; padding-top: 0; }
  .lp-vs-row.head { display: none; }
  .lp-vs-row .demo { padding-bottom: 8px; }
  .anvil-role-lp-cases > div { grid-template-columns: 1fr; }
  .lp-section { padding: 52px 0; }
  .lp-band { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .lp-facts { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .lp-facts > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .lp-facts dd { font-size: 1.5rem; }
}

/* ===== home ===== */
.hm-top { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: relative; }
.hm-top .ph { display: none; }
.hm-top .in { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ui .hm-top h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.hm-top .sub { color: var(--c-muted); margin: 0; }
.hm-rank { display: grid; gap: 8px; min-width: 270px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
.hm-rank .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-rank b { font: 700 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.hm-rank span { font-size: .8125rem; color: var(--c-muted); }
.hm-rank .ic { color: var(--c-accent-text); }
.hm-body { padding-top: 0; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.hm-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.hm-col > .anvil-repeating-panel:empty, .anvil-role-hm-exams:not(:has(.hm-exam)) { display: none; }
.anvil-role-hm-exams > div { display: grid; gap: 20px; }
.hm-review { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.hm-review .big { font: 700 3rem/1 var(--font-display); color: var(--c-brand-text); min-width: 56px; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.hm-review p { margin: 0; }
.anvil-role-hm-week > div { display: flex; gap: 6px; margin-top: 10px; }
.hm-week i, .wd { width: 26px; height: 26px; border-radius: 6px; background: var(--c-surface-2); display: grid; place-items: center; font: 600 .75rem/1 var(--font-body); color: var(--c-muted); font-style: normal; }
.wd.on { background: var(--c-brand); color: var(--c-brand-ink); }
.hm-next { display: grid; grid-template-columns: 220px 1fr; gap: 0; overflow: hidden; padding: 0 !important; }
.hm-next .img { background: var(--c-surface-2); border-right: 1px solid var(--c-line); display: grid; place-items: center; padding: 12px; min-height: 170px; }
.hm-next .img .fig { width: 100%; }
.hm-next .txt { padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.ui .hm-next .hm-next-title { margin: 0; font-size: 1.35rem; }
.hm-next p { margin: 0; }
.hm-where { font-size: .875rem; color: var(--c-brand-text); font-weight: 600; }
.hm-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.anvil-role-hm-tracks > div { display: grid; gap: 10px; }
.hm-track { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: inherit !important; background: var(--c-surface);
  transition: border-color var(--dur-fast) var(--ease-out); }
.hm-track:hover { border-color: var(--c-brand); }
.hm-track .th { width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-text); font: 700 .8rem/1 var(--font-mono); letter-spacing: .04em; }
.hm-track .tx { display: grid; gap: 2px; min-width: 0; }
.hm-track b { font: 600 1.02rem/1.25 var(--font-display); }
.hm-track small { color: var(--c-muted); font-size: .8125rem; }
.hm-track .px-bar { margin-top: 6px; }
.anvil-role-hm-creds > div { display: grid; }
.hm-cred { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line); margin-bottom: -1px; text-decoration: none; color: inherit !important; }
.hm-cred .medal { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-text); flex: none; }
.hm-cred > span:last-child { display: grid; }
.hm-cred b { font-size: .92rem; }
.hm-cred small { color: var(--c-muted); font-size: .8125rem; }
.hm-empty { margin: 0; }
.ui .hm-case-title { font-size: 1.35rem; margin: 4px 0 6px; }
.hm-exam { border: 1px solid var(--c-brand); background: var(--c-brand-soft); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hm-exam p { margin: 4px 0 0; }
@media (max-width: 900px) {
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-top .in { grid-template-columns: 1fr; }
  .hm-top .ph { width: 100%; opacity: .25; }
  .hm-rank { min-width: 0; }
}
@media (max-width: 560px) {
  .hm-next { grid-template-columns: 1fr; }
  .hm-next .img { min-height: 140px; }
  .hm-review { grid-template-columns: auto 1fr; }
  .hm-review .ui-btn { grid-column: 1 / -1; }
  .hm-top .in { padding: 26px 16px 22px; }
}

/* ===== programs ===== */
.anvil-role-tr-grid > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tr-fellow { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 28px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.ui .tr-fellow h2 { margin: 0 0 4px; font-size: 1.5rem; }
.tr-fellow p { margin: 0; color: var(--c-muted); max-width: 70ch; }
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.tr-mods { display: grid; gap: 14px; align-content: start; }
.anvil-role-tr-mods-list > div { display: grid; gap: 14px; }
.tr-mod { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: inherit !important; box-shadow: var(--shadow);
  transition: border-color var(--dur-fast) var(--ease-out); }
a.tr-mod:hover { border-color: var(--c-brand); }
.tr-mod .num { font: 700 1.6rem/1 var(--font-mono); color: var(--c-brand-text); text-align: center; }
.tr-mod .num .ic { width: 30px; height: 30px; }
.ui .tr-mod h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tr-mod p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.tr-mod .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tr-mod.capstone { border-style: dashed; background: var(--c-surface-2); }
.tr-side { display: grid; gap: 16px; align-content: start; }
.tr-prog { flex-wrap: nowrap; align-items: center; }
.tr-prog b { display: block; }
@media (max-width: 900px) { .tr-layout { grid-template-columns: minmax(0, 1fr); } .tr-fellow { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tr-mod { grid-template-columns: 40px minmax(0, 1fr); } .tr-mod > :nth-child(n+3) { grid-column: 2; justify-self: start; } .tr-mod .num { font-size: 2rem; } }

/* ===== module ===== */
.md-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.ui .md-h { font-size: 1.45rem; margin: 0 0 12px; }
.anvil-role-md-brief > div { font-size: 1.06rem; line-height: 1.7; max-width: 68ch; }
.px-para { margin: 0 0 1.1em; }
/* design-ok: tight-leading (the drop cap at the start of a briefing or case story) */
.anvil-role-md-brief > div > :first-child::first-letter, .anvil-role-cb-story > div > :first-child::first-letter,
.anvil-role-md-brief > div > anvil-dropzone:first-child .px-para::first-letter, .anvil-role-cb-story > div > anvil-dropzone:first-child .px-para::first-letter {
  float: left; font: 800 3.2rem/.85 var(--font-display); color: var(--c-brand-text); margin: 6px 10px 0 0; }
.md-sec { margin-top: 40px; }
.ui .md-sec > h2 { font-size: 1.45rem; display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.md-sec > h2::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.anvil-role-md-cases > div { display: grid; gap: 12px; }
.md-note { margin-top: 10px; }
.md-steps { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.md-steps.md-guest { display: block; }
.md-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.md-step:last-of-type { border-bottom: 0; }
.md-step .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c-line); font: 700 .8rem/1 var(--font-mono); color: var(--c-muted); }
.md-step.done .dot { background: var(--c-good); border-color: var(--c-good); color: var(--c-on-status); }
.md-step b { display: block; }
.md-step p { margin: 2px 0 8px; font-size: .875rem; color: var(--c-muted); }
.md-go { margin-top: 10px; }
.md-complete { text-align: center; padding: 20px; margin-top: 12px; background: var(--c-good-soft); border: 1px solid var(--c-good); border-radius: var(--radius); }
.ui .md-complete h3 { color: var(--c-good); margin: 6px 0; }
.md-complete p { margin: 0; }
.md-read { margin-top: 26px; padding: 20px; border: 1px dashed var(--c-brand); border-radius: var(--radius); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--c-brand-soft); }
.md-nextlink { display: grid; gap: 2px; text-decoration: none; color: inherit !important; transition: border-color var(--dur-fast) var(--ease-out); }
.md-nextlink:hover { border-color: var(--c-brand); }
@media (max-width: 900px) { .md-layout { grid-template-columns: minmax(0, 1fr); } .md-steps { position: static; } .md-layout > aside { order: -1; } }

/* ===== study ===== */
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 20px; }
.ui .st-head h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.st-head p { margin: 4px 0 0; }
.st-done { max-width: 620px; margin: 10px auto 0; text-align: center; }
.ui .st-done h2 { font-size: 1.5rem; margin: 0 0 8px; }
.st-done .score { font: 700 4rem/1 var(--font-display); color: var(--c-brand-text); font-variant-numeric: lining-nums tabular-nums; }
.st-done .split { display: flex; justify-content: center; gap: 28px; margin: 14px 0 22px; }
.st-done .split b { display: block; font: 600 1.8rem/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.st-done .split span { font-size: .875rem; color: var(--c-muted); }
.st-actions { justify-content: center; margin-top: 14px; }
.st-legend { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: .8125rem; color: var(--c-muted); }

/* ===== challenge ===== */
.ch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.ch-brief { background: var(--c-surface-2); border-radius: var(--radius); padding: 20px 22px; }
.ch-brief .sit { font-size: 1.08rem; line-height: 1.7; margin: 8px 0 0; }
.ch-brief .ask { font: 600 1.25rem/1.35 var(--font-display); margin: 16px 0 0; }
.ch-form { margin-top: 22px; }
.anvil-role-ch-answer textarea, textarea.anvil-role-ch-answer, .anvil-role-ex-answer textarea, textarea.anvil-role-ex-answer { min-height: 220px; font-size: 1rem; line-height: 1.6; }
.ch-model { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; margin-top: 22px; animation: kit-in var(--dur-slow) var(--ease-out); }
.ui .ch-model h3, .ui .ex-paper h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.ui .ch-model h3:first-child, .ui .ex-paper h3:first-child { margin-top: 0; }
.ch-model .mine, .ex-mine { white-space: pre-wrap; background: var(--c-surface-2); border-radius: var(--radius-sm); padding: 14px; font-size: .95rem; margin: 0 0 18px; overflow-wrap: anywhere; }
.ch-model .model, .ex-model { font-size: 1.02rem; line-height: 1.65; margin: 0 0 18px; }
.ch-actions { margin-top: 16px; }
.ch-result { text-align: center; padding: 22px; border-radius: var(--radius); margin-top: 18px; }
.ch-result.pass { background: var(--c-good-soft); border: 1px solid var(--c-good); }
.ch-result.fail { background: var(--c-warn-soft); border: 1px solid var(--c-warn); }
.ui .ch-result h3 { margin: 0; }
.ch-result .pct { font: 600 3.6rem/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.ch-result p { margin: 6px 0 14px; }
.ch-res-actions { justify-content: center; }
.anvil-role-ch-hist > div { display: grid; gap: 8px; margin-top: 10px; }
.ch-att { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--c-surface); }
.ch-att summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.ch-att p { white-space: pre-wrap; font-size: .875rem; color: var(--c-muted); margin: 8px 0 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .ch-layout { grid-template-columns: minmax(0, 1fr); } }

/* ===== examination ===== */
.ex-wrap { max-width: 820px; margin: 0 auto; }
.ex-wrap + .ex-wrap { margin-top: 18px; }
.ex-paper { background: var(--c-surface); border: 1px solid var(--c-line); border-top: 3px solid var(--c-brand); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.ex-center { text-align: center; }
.ui .ex-paper h2 { font-size: 2rem; }
.ex-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.ex-rules div { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px; }
.ex-rules b { display: block; font: 700 1.6rem/1 var(--font-display); color: var(--c-brand-text); margin-bottom: 4px; }
.ex-rules span { font-size: .875rem; color: var(--c-muted); }
.ex-honour { padding: 16px; background: var(--c-brand-soft); border-radius: var(--radius-sm); margin: 18px 0; }
.ex-part { display: flex; align-items: center; gap: 12px; margin: 0 auto 18px; max-width: 760px; }
.ex-part.ex-part-wide { max-width: none; }
.ex-part .pill { font: 700 .8125rem/1 var(--font-mono); letter-spacing: .04em; color: var(--c-brand-ink); background: var(--c-brand); padding: 7px 10px; border-radius: 4px; white-space: nowrap; }
.ui .ex-part h2 { margin: 0; font-size: 1.6rem; }
.ex-sit { font-size: 1.06rem; line-height: 1.7; }
.ex-ask { font: 600 1.25rem/1.35 var(--font-display); }
.ex-final { margin-top: 18px; }
.ex-scores { display: flex; justify-content: center; gap: 34px; margin: 18px 0; }
.ex-scores b { display: block; font: 600 3rem/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.ex-scores span { font-size: .875rem; color: var(--c-muted); }
.ex-cert { margin: 10px 0 20px; text-align: left; }
.ex-links { justify-content: center; }
.ex-hist { margin-top: 10px; font-size: .9rem; }
.ex-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--c-line); }
.ex-head span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
@media (max-width: 640px) { .ex-rules { grid-template-columns: 1fr; } .ex-paper { padding: 22px 18px; } .ex-row { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; font-size: .8125rem; } }

/* ===== credentials ===== */
.anvil-role-cr-grid > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cr-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit !important; display: block;
  transition: border-color var(--dur-fast) var(--ease-out); }
.cr-item:hover { border-color: var(--c-brand); }
.cr-item .thumb { position: relative; background: var(--c-surface-2); padding: 14px; }
.cr-item .meta { padding: 14px 16px; }
.cr-item b { display: block; font: 600 1.2rem/1.2 var(--font-display); }
.cr-item small { color: var(--c-muted); }
.cr-empty-seal { display: inline-block; margin-bottom: 10px; }
.cr-panel { margin-top: 24px; }
.anvil-role-cr-path > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cr-step { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: .9rem; background: var(--c-surface); height: 100%; }
.cr-step.have { border-color: var(--c-brand); background: var(--c-brand-soft); }
.cr-step .ic { color: var(--c-faint); }
.cr-step.have .ic { color: var(--c-brand-text); }
.cr-fellow { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.cr-fellow p { margin-top: 0; }
.cr-note { margin: 8px 0 0 28px; }
@media (max-width: 560px) { .cr-fellow { grid-template-columns: 1fr; } }

/* ===== certificate ===== */
.ce-page { background: linear-gradient(180deg, var(--c-surface-2) 0 260px, transparent 260px); }
.ce-in { max-width: 1060px; margin: 0 auto; padding: 30px 24px 70px; }
.ce-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.ui .ce-top h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.ce-sub { margin: 4px 0 0; color: var(--c-muted); font-size: .9rem; }
.ce-status { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 24px; }
.ce-status .ok { color: var(--c-good); } .ce-status .no { color: var(--c-bad); }
.ce-status .ic { width: 40px; height: 40px; }
.ui .ce-status h2 { margin: 0; font-size: 1.4rem; }
.ce-status p { margin: 2px 0 0; max-width: 70ch; }
.ce-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0 0; }
.ce-detail div { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--c-surface); }
.ce-detail dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ce-detail dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.ce-outcomes { margin-top: 16px; }
.ce-note { margin-top: 16px; max-width: 75ch; }
.ui .ce-missing { font-size: 1.4rem; }
@media print {
  @page { size: landscape; margin: 0; }
  .ce-page { background: none; }
  .ce-in { padding: 0; max-width: none; }
  .px-cert-wrap { height: auto !important; }
  .px-cert { position: relative; transform: none !important; box-shadow: none; width: 297mm; height: 209mm; }
}

/* ===== verify ===== */
.vf-box { max-width: 720px; margin: -36px auto 0; position: relative; z-index: 2; }
.vf-form { display: flex; gap: 10px; }
.vf-form .anvil-role-vf-code { flex: 1; min-width: 0; }
.vf-form input { font: 600 1.1rem/1 var(--font-body) !important; letter-spacing: .06em; text-transform: uppercase; }
.vf-res { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius); }
.vf-res.ok { background: var(--c-good-soft); border: 1px solid var(--c-good); }
.vf-res.bad { background: var(--c-bad-soft); border: 1px solid var(--c-bad); }
.vf-res > .ic { width: 44px; height: 44px; }
.vf-res.ok > .ic { color: var(--c-good); } .vf-res.bad > .ic { color: var(--c-bad); }
.ui .vf-res h2 { margin: 0; font-size: 1.35rem; }
.vf-res p { margin: 4px 0 0; }
.vf-res dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: .93rem; }
.vf-res dt { color: var(--c-muted); }
.vf-res dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vf-view { margin-top: 12px; }
.vf-roll-sec { margin-top: 44px; }
.ui .vf-roll-sec h2 { margin: 0 0 16px; }
@media (max-width: 560px) { .vf-form { flex-direction: column; } .vf-res { grid-template-columns: 1fr; } }

/* ===== incident files ===== */
.cb-filter { display: flex; flex-wrap: wrap; margin-bottom: 20px; }
.anvil-role-cb-grid > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cb-file { max-width: 780px; margin: 0 auto; }
.anvil-role-cb-story > div { font-size: 1.08rem; line-height: 1.75; }
.cb-lesson { margin: 26px 0; padding: 22px 24px; background: var(--c-brand-soft); border: 1px solid color-mix(in srgb, var(--c-brand) 35%, var(--c-line)); border-radius: var(--radius); }
.ui .cb-lesson h2 { color: var(--c-brand-text); font: 600 .95rem/1.2 var(--font-body); margin: 0; }
.cb-lesson p { font: 600 1.3rem/1.45 var(--font-display); margin: 8px 0 0; color: var(--c-ink); letter-spacing: -.01em; }
.ui .cb-h { font-size: 1.4rem; margin: 26px 0 8px; }
.cb-note { margin-top: 12px; }
.cb-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.cb-nav [hidden] + a { margin-left: auto; }
@media (max-width: 560px) { .anvil-role-cb-grid > div { grid-template-columns: 1fr; } }

/* ===== profile + admin additions ===== */
.anvil-role-pf-rank { color: var(--c-brand-text); font-size: .875rem; font-weight: 600; }
.ad-creds-head, .ad-cred-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) 100px minmax(0, 1.2fr) 100px; }
.ad-creds-head b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.ad-cred-row .who { display: block; min-width: 0; }
.ad-cred-row .ad-email { display: block; color: var(--c-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.ad-cred-row a { overflow-wrap: anywhere; }
.ad-cred-row .fine { color: var(--c-muted); font-size: .875rem; }
@media (max-width: 720px) { .ad-creds-head { display: none; } .ad-cred-row { grid-template-columns: 1fr 1fr; } }

/* phone: the top bar keeps the name on one line next to Sign in / Start free */
.ui-brand .bt small { white-space: nowrap; }
@media (max-width: 480px) { .ui-header .ui-brand .bt small { display: none; } }

/* =====================================================================================================
   Anvil components: the same look through roles (prop:role='["btn", "btn-primary", "ic-wand"]').
   Button = .anvil-button wrapper > button; Link = a; TextBox = input; TextArea = textarea; DropDown = wrapper > select;
   RepeatingPanel = root > items container > item forms (grid rules go on "> div").
   ===================================================================================================== */

/* Anvil buttons: the wrapper is inline, the button inside resets Anvil's own padding and margins */
.anvil-role-btn { display: inline-block; }
.anvil-role-btn > button { margin: 0; }
.anvil-role-btn-block, .anvil-role-btn-block > button { display: flex; width: 100%; }
.anvil-role-btn-icon > button > span, .anvil-role-btn-icon > button .anvil-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* the round account button in the header */
.anvil-role-avatar > button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c-brand);
  color: var(--c-brand-ink); font: 600 .85rem/1 var(--font-body); padding: 0; margin: 0; }

/* text from Label components */
.anvil-role-menu-name { font-weight: 800; }
.anvil-role-menu-email { color: var(--c-muted); font-size: .875rem; }
.anvil-role-fine-print { color: var(--c-muted); font-size: .875rem; }
.anvil-label { padding: 0; margin: 0; }

/* notifications (state.toast) look like the old toasts */
.anvil-notification { background: var(--c-ink); color: var(--c-bg); border: 0; border-radius: 6px; box-shadow: var(--shadow-lg);
  font: 600 1rem/1.4 var(--font-body); }
.anvil-notification.anvil-role-ok { background: var(--c-good); color: var(--c-on-status); }
.anvil-notification.anvil-role-error { background: var(--c-bad); color: var(--c-on-status); }
.anvil-notification .anvil-notification-title { font-weight: 800; }

/* dialogs (alert / confirm with a Form inside) look like the old modals */
.anvil-modal-content { background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font: 16px/1.55 var(--font-body); }
.anvil-modal-header { border-bottom: 0; padding: 22px 26px 0; }
.anvil-modal-title { font: 800 1.6rem/1.1 var(--font-display); color: var(--c-ink); }
.anvil-modal-body { padding: 18px 26px 24px; }
.anvil-modal-footer { border-top: 0; padding: 0 26px 22px; }
.anvil-modal-header .anvil-close { color: var(--c-muted); opacity: 1; text-shadow: none; }
@media (max-width: 720px) { .anvil-modal-body { padding: 16px 18px 20px; } .anvil-modal-header { padding: 18px 18px 0; } }

/* ---- shared helpers for the component version */
.anvil-role-contents, .anvil-role-contents > div { display: contents; }
.anvil-role-page-title { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1.08 var(--font-display); color: var(--c-ink); margin: 0; letter-spacing: -.005em; }
.anvil-role-sec-title { font: 800 1.6rem/1.08 var(--font-display); color: var(--c-ink); margin: 0; }
.anvil-role-card-title { font: 800 1.3rem/1.08 var(--font-display); color: var(--c-ink); margin: 4px 0 0; }
.anvil-role-faint { color: var(--c-faint); }
.anvil-role-sh-stars { color: #f0a500; letter-spacing: 1px; font-size: .95rem; }
.anvil-role-sh-stars.anvil-role-faint { color: var(--c-faint); letter-spacing: 0; }
.lp-signup { margin: 14px 0 0; }
@media (max-width: 720px) { .anvil-role-sh-shelf > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
.ui-empty > .ic { width: 34px; height: 34px; color: var(--c-faint); margin-bottom: 8px; }

/* ---- reading pages, dialogs, profile, admin (component version) */
.anvil-role-bk-title { font: 800 clamp(1.6rem, 3.6vw, 2.3rem)/1.08 var(--font-display); color: var(--c-ink); margin: 2px 0 6px; }
.anvil-role-bk-intro { color: var(--c-muted); margin: 0; }
.anvil-modal-content .ui h2.dlg-h, .anvil-role-dlg-title { font: 800 1.6rem/1.1 var(--font-display); color: var(--c-ink); margin: 0 0 .5em; padding-right: 36px; }
.anvil-modal-content .ui { font: 16px/1.55 var(--font-body); }
.anvil-role-seg > button { font: 600 .85rem/1 var(--font-body); border: 0; background: none; color: var(--c-muted); padding: 8px 13px; border-radius: 4px; cursor: pointer; margin: 0; box-shadow: none; min-height: 32px; }
.anvil-role-seg.anvil-role-on > button { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }
.anvil-role-pf-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c-brand); color: var(--c-brand-ink);
  font: 700 1.4rem/1 var(--font-display); }
.anvil-role-pf-title { font: 800 1.8rem/1.08 var(--font-display); color: var(--c-ink); }
.pf-pw { margin-top: 22px; }
.pf-more { margin-top: 16px; }
.anvil-role-strong { font-weight: 800; }
.anvil-role-stat-num { font: 800 2rem/1.1 var(--font-display); color: var(--c-ink); }
.ad-stat { text-decoration: none; color: inherit !important; }
.ad-stat span, .ad-stat .anvil-role-fine-print { color: var(--c-muted); font-size: .9rem; }
.anvil-role-ad-demo-line { margin-top: 18px; }
.ad-filter, .ad-search { margin-bottom: 16px; }
.ad-search .anvil-role-ad-search-box { max-width: 360px; }
.ad-table { display: grid; gap: 8px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--c-line); font-size: .93rem; }
.ad-users-head, .ad-user-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 90px 90px 90px; }
.ad-lib-head, .ad-lib-row { grid-template-columns: minmax(0, 3fr) 70px 70px 70px; }
.ad-users-head b, .ad-lib-head b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.anvil-role-ad-email { overflow-wrap: anywhere; }
.ad-fb-actions { margin-top: 10px; }
@media (max-width: 720px) {
  .ad-users-head { display: none; }
  .ad-user-row { grid-template-columns: 1fr 1fr; }
  .ad-lib-head, .ad-lib-row { grid-template-columns: minmax(0, 1fr) 50px 50px 50px; }
}
.anvil-notification.alert-success, .anvil-notification.anvil-notification-success { background: var(--c-good); color: var(--c-on-status); }
.anvil-notification.alert-danger, .anvil-notification.anvil-notification-danger { background: var(--c-bad); color: var(--c-on-status); }

/* The open-source runtime (App Server 1.18) wraps named elements and components in <anvil-dropzone> tags; hosted Anvil
   has dropped them. Make them invisible to layout so child selectors and grids behave the same on both. */
anvil-dropzone { display: contents; }
/* Notifications on the open-source runtime (1.18): Bootstrap-style alerts. Same look as .anvil-notification above. */
[data-notify="container"].anvil-alert { background: var(--c-ink); color: var(--c-bg); border: 1px solid var(--c-line); border-radius: 6px;
  box-shadow: var(--shadow); font: 700 1rem/1.4 var(--font-body); padding: 12px 40px 12px 16px; }
[data-notify="container"].anvil-alert-success { background: var(--c-good); color: var(--c-on-status); }
[data-notify="container"].anvil-alert-danger { background: var(--c-bad); color: var(--c-on-status); }
[data-notify="container"].anvil-alert .anvil-close, [data-notify="container"].anvil-alert [data-notify="dismiss"] { color: inherit; opacity: .8; text-shadow: none; }
/* header: the guest buttons stay on one line, the logo never shrinks */
.ui-brand img { flex: none; }
.ui-header-right .ui-row { flex-wrap: nowrap; gap: 8px; }
@media (max-width: 480px) {
  .ui-brand span { font-size: .98rem; line-height: 1.05; }
  .ui-header-right .ui-btn { padding: 8px 11px; min-height: 38px; font-size: .86rem; }
}
.pf-pw { margin-top: 22px !important; }
/* Toast colours win over the plain rule above on both runtimes (hosted: anvil-role-ok/error; App Server 1.18: alert-success/danger). */
:is(.anvil-notification, [data-notify="container"]):is(.anvil-role-ok, .anvil-alert-success) { background: var(--c-good); color: var(--c-on-status); }
:is(.anvil-notification, [data-notify="container"]):is(.anvil-role-error, .anvil-alert-danger) { background: var(--c-bad); color: var(--c-on-status); }
/* Our dialogs: Anvil's normal alert is a 300 px "small" modal; give them the old modal's width. */

/* ---- template pages (component version) */
.lp-art-card { position: relative; display: grid; gap: 12px; padding: 22px; max-width: 460px; margin: 0 auto; }
.lp-art-bar { display: flex; gap: 6px; margin-bottom: 6px; }
.lp-art-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); display: block; }
.lp-art-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--c-surface-2); }
.lp-art-row b { display: block; } .lp-art-row small { color: var(--c-muted); }
.anvil-role-item-list > div { display: grid; gap: 10px; }
.item-title { gap: 8px; }
.anvil-role-item-body { overflow-wrap: anywhere; margin-top: 2px; }
.anvil-role-initials { font: 700 .85rem/1 var(--font-body); color: inherit; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; }
.ui-tabbar .nav-link { display: grid; }
.ui-nav .nav-link.on, .ui-tabbar a.on { }
.anvil-role-dlg-title, .anvil-modal-content .ui h2.dlg-h { font: 700 1.5rem/1.15 var(--font-display); color: var(--c-ink); margin: 0 0 .5em; padding-right: 36px; }

.anvil-modal-content .ui-row.end { margin-top: 18px; }
.anvil-modal-content textarea { width: 100%; }
/* Our dialogs: Anvil's normal alert is a 300 px "small" modal; give them a comfortable width. */
.anvil-modal-dialog.anvil-role-app-dialog.anvil-modal-sm, .anvil-modal-dialog.anvil-role-app-dialog:not(.anvil-modal-lg) { width: min(calc(100vw - 24px), 540px); max-width: none; }
.anvil-modal-dialog.anvil-role-app-dialog.anvil-modal-lg { width: min(calc(100vw - 24px), 780px); max-width: none; }/* badges from Label components: prop:role='["badge"]' (+ "badge-brand", "badge-good", "badge-warn", "badge-bad") */
.anvil-role-badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .75rem/1.3 var(--font-body); padding: 4px 9px; border-radius: 3px; letter-spacing: .02em;
  background: var(--c-surface-2); color: var(--c-muted); white-space: nowrap; }
.anvil-role-badge.anvil-role-badge-brand { background: var(--c-brand-soft); color: var(--c-brand); }
.anvil-role-badge.anvil-role-badge-good { background: var(--c-good-soft); color: var(--c-good); }
.anvil-role-badge.anvil-role-badge-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.anvil-role-badge.anvil-role-badge-bad { background: var(--c-bad-soft); color: var(--c-bad); }
.anvil-role-badge.anvil-role-badge-gold { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.anvil-role-badge.anvil-role-ic-award::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.anvil-role-badge .anvil-label-text { display: inline; }
.anvil-role-menu-rank { color: var(--c-accent-ink); font-size: .875rem; }
/* auth page parts made of components */
.anvil-role-au-title { font: 700 1.8rem/1.1 var(--font-display); margin-bottom: 4px; color: var(--c-ink); }
.anvil-role-au-sub { color: var(--c-muted); margin-bottom: 4px; }
.au-pw { position: relative; display: block; }
.au-pw input { padding-right: 70px; }
.anvil-role-au-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.anvil-role-au-show > button { border: 0; background: none; color: var(--c-muted); font: 600 .8rem/1 var(--font-body); padding: 8px; cursor: pointer; margin: 0; box-shadow: none; }
.anvil-role-au-google img, .anvil-role-au-google .anvil-component-icon { width: 18px; height: 18px; flex: none; }
.anvil-role-msg-error { background: var(--c-bad-soft); color: var(--c-bad); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.anvil-role-msg-note { background: var(--c-brand-soft); color: var(--c-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }

/* Screen-reader-only text (Label role "sr", or class ui-sr): read out, not shown */
.anvil-role-sr, .ui-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Anvil's own notifications animate everything (transition: all): only fade and move (design kit) */
.anvil-notification, [data-notify="container"] { transition-property: opacity, transform !important; }
.au-card a { display: inline-block; padding: 3px 0; }  /* 24px+ touch height */
.anvil-notification .anvil-close, [data-notify="dismiss"] { min-width: 24px; min-height: 24px; }

/* =====================================================================================================
   Product Expert additions: schematics, the pipeline hero, labs, the Library, the study plan.
   ===================================================================================================== */
/* schematics (PX.fig): boxes and arrows themed by tokens. kinds: b = brand (the move a director makes), a = accent (the bet, risk or gate), g = context */
.px-fig { display: block; width: 100%; height: auto; overflow: visible; }
.px-fig .fn rect { fill: var(--fig-box); stroke: var(--fig-line); stroke-width: 1.2; }
/* design-ok: tiny-text (diagram labels inside an SVG that scales with its figure; hidden on phones) */
.px-fig .fn text { font: 600 11px var(--font-body); fill: var(--fig-ink); }
.px-fig .fn.k-b rect { fill: var(--c-brand-soft); stroke: var(--c-brand); stroke-width: 1.6; }
.px-fig .fn.k-b text { fill: var(--c-brand-text); }
.px-fig .fn.k-a rect { fill: var(--c-accent-soft); stroke: var(--c-accent); stroke-width: 1.6; }
.px-fig .fn.k-a text { fill: var(--c-accent-text); }
.px-fig .fn.k-g rect { fill: var(--fig-ghost); stroke-dasharray: 3 3; }

/* the landing bet board: two diagrams stacked, the outcome tree revealed by clip-path from the handle */
.px-pipe { position: relative; }
.pl-frame { position: relative; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.pl-layer { padding: 42px 18px 16px; }
.pl-prod { position: absolute; inset: 0; background: var(--c-surface); clip-path: inset(0 0 0 50%); }
.pl-frame.animate .pl-prod { transition: clip-path var(--dur-hero) var(--ease-expo); }
/* design-ok: layout-transition (one authored sweep; the handle sits at a % of the frame, which transform can't express) */
.pl-frame.animate .pl-handle { transition: left var(--dur-hero) var(--ease-expo); }
.pl-tag { position: absolute; top: 14px; left: 16px; font: 700 .75rem/1 var(--font-mono); letter-spacing: .08em; padding: 5px 7px; border-radius: 4px; background: var(--c-surface-2); color: var(--c-muted); }
.pl-prod .pl-tag { left: auto; right: 16px; background: var(--c-brand); color: var(--c-brand-ink); }
.pl-note { margin: 8px 2px 0; font-size: .875rem; color: var(--c-muted); max-width: 46%; }
.pl-prod .pl-note { margin-left: auto; text-align: right; color: var(--c-ink); }
.pl-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; display: grid; place-items: center; z-index: 2; cursor: ew-resize; }
.pl-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--c-brand); }
.pl-handle span { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); box-shadow: var(--shadow-lg); }
.pl-handle span::before, .pl-handle span::after { content: ""; position: absolute; top: 12px; border: 5px solid transparent; }
.pl-handle span::before { left: 3px; border-right-color: var(--c-brand-ink); }
.pl-handle span::after { right: 3px; border-left-color: var(--c-brand-ink); }
.pl-handle:focus-visible span { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pl-frame.animate .pl-prod, .pl-frame.animate .pl-handle { transition: none; } .pl-frame.shown { animation: kit-fade var(--dur-slow) ease; } }
@media (max-width: 520px) { .pl-layer { padding: 38px 10px 12px; } .pl-note { font-size: .8125rem; } }

/* dashboard plan */
.anvil-role-plan-steps > div { display: grid; gap: 8px; }
.px-step { align-items: center; padding: 12px 14px; text-decoration: none; color: inherit !important; transition: border-color var(--dur-fast) var(--ease-out); }
.px-step:hover { border-color: var(--c-brand); }
.px-step .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--c-line); display: grid; place-items: center; flex: none; }
.px-step.done .tick { background: var(--c-good); border-color: var(--c-good); color: var(--c-on-status); }
.px-step.done .tick .ic { width: 14px; height: 14px; }
.px-step.exam .tick { border-color: var(--c-accent); }
.px-step .grow { display: grid; gap: 2px; }
.px-step b { font-weight: 600; font-size: .95rem; }
.px-step.done b { color: var(--c-muted); }
.px-step small { color: var(--c-muted); font-size: .8125rem; }
.px-step .mins { font: 500 .8125rem/1 var(--font-mono); color: var(--c-muted); white-space: nowrap; }
.hm-noplan { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hm-noplan p { margin: 0; max-width: 44ch; }
.hm-plan .body > p { margin: 0 0 10px; }

/* study plan page */
.pl-body { padding-top: 28px; }
.pl-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.pl-form { position: sticky; top: calc(var(--header-h) + 16px); }
.pl-main { display: grid; gap: 18px; min-width: 0; }
.pl-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.pl-sum > div { padding: 14px 16px; display: grid; gap: 4px; }
.pl-sum > div + div { border-left: 1px solid var(--c-line); }
.pl-sum .k { font-size: .8125rem; color: var(--c-muted); }
.anvil-role-pl-v { font: 700 1.05rem/1.25 var(--font-display); }
.anvil-role-pl-weeks > div { display: grid; gap: 14px; }
.pl-week { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); padding: 14px; }
.pl-week.current { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.pl-week.done { background: var(--c-bg); }
.pl-week header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; }
.pl-week header b { font: 700 1rem/1.2 var(--font-display); }
.pl-week .px-step { background: var(--c-bg); }
@media (max-width: 900px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } .pl-form { position: static; } }
@media (max-width: 520px) { .pl-sum { grid-template-columns: 1fr; } .pl-sum > div + div { border-left: 0; border-top: 1px solid var(--c-line); } }

/* the Library */
.lib-body { padding-top: 26px; }
.lib-filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.lib-checks { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; }
.anvil-role-lib-grid > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 10px; }
.anvil-role-lib-list > div { display: grid; gap: 10px; margin-top: 8px; }
.lib-row { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.lib-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ui .lib-row h3 { font-size: 1.05rem; margin: 4px 0 0; line-height: 1.3; }
.lib-row h3 a { color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; display: inline-block; padding: 3px 0; }
.lib-row h3 a:hover { color: var(--c-brand-text); text-decoration: underline; }
.lib-row .by { margin: 0; font-size: .8125rem; color: var(--c-muted); }
.lib-row .why { margin: 0; font-size: .92rem; max-width: 70ch; }
.lib-act { margin-top: 4px; }
.lib-note { margin-top: 28px; }
.lib-note p { margin: 0; max-width: 75ch; }
@media (max-width: 860px) { .lib-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lib-search { grid-column: 1 / -1; } .lib-checks { grid-column: 1 / -1; padding: 0; } }
@media (max-width: 480px) { .lib-filters { grid-template-columns: minmax(0, 1fr); } .anvil-role-lib-grid > div { grid-template-columns: minmax(0, 1fr); } }

/* module: lab link */
.md-lab { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; text-decoration: none; color: inherit !important; border-color: var(--c-accent); background: var(--c-accent-soft); transition: transform var(--dur-fast) var(--ease-out); }
.md-lab > .ic { width: 26px; height: 26px; color: var(--c-accent-text); }
.md-lab span { display: grid; gap: 2px; }
.md-lab small { color: var(--c-muted); }
@media (hover: hover) and (pointer: fine) { .md-lab:hover { transform: translateY(-1px); } }

/* labs */
.lb-body { padding-top: 26px; }
.anvil-role-lb-grid > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lb-card { display: flex; flex-direction: column; height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit !important;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.lb-card:hover { border-color: var(--c-brand); }
@media (hover: hover) and (pointer: fine) { .lb-card:hover { transform: translateY(-2px); } }
.lb-card .fig { background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); padding: 12px 12px 6px; }
.lb-card .txt { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.lb-card .txt > .small { margin-bottom: 6px; }
.ui .lb-card h3 { font-size: 1.12rem; margin: 0; }
.lb-card p { margin: 0; font-size: .92rem; color: var(--c-muted); }
.lb-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .8125rem; color: var(--c-muted); }
.lb-note { margin-top: 14px; }
.lb-goal { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); margin-bottom: 16px; }
.lb-goal > .ic { color: var(--c-accent-text); width: 24px; height: 24px; }
.lb-goal > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.lb-after { margin-top: 18px; }

/* lab engines (px-labs.js) */
.lab { display: grid; gap: 16px; }
.lab-brief { background: var(--c-surface-2); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; max-width: 90ch; }
.lab-cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.lab-ctl { display: grid; gap: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; }
.lab-out { min-width: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; position: relative; }
.lab-sl label, .lab-tog span { display: grid; gap: 2px; }
.lab-sl label b, .lab-tog b { font-size: .92rem; }
.lab-sl label small, .lab-tog small { font-size: .8125rem; color: var(--c-muted); }
.lab-sl .row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.lab-sl input[type=range] { flex: 1; min-width: 0; accent-color: var(--c-brand); height: 28px; }
.lab-sl output { font: 600 .85rem/1 var(--font-mono); min-width: 58px; text-align: right; }
.lab-tog { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lab-tog input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-brand); flex: none; }
.lab-seg { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.lab-seg legend { font-size: .92rem; font-weight: 700; margin-bottom: 6px; padding: 0; }
.lab-seg label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--c-line); border-radius: 8px; padding: 9px 12px; font-size: .9rem; cursor: pointer; min-height: 40px; }
.lab-seg label:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); }
.lab-prices summary { cursor: pointer; font-size: .875rem; font-weight: 600; padding: 6px 0; }
.lab-prices .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lab-prices label { display: grid; gap: 4px; font-size: .8125rem; color: var(--c-muted); }
.lab-prices input { min-height: 40px !important; padding: 8px 10px !important; }
.lab-big { display: grid; gap: 2px; }
.lab-big span { font-size: .875rem; color: var(--c-muted); }
.lab-big b { font: 800 2.6rem/1.05 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lab-big small { color: var(--c-muted); font-size: .875rem; }
.lab-bar { position: relative; height: 14px; border-radius: 4px; background: var(--c-surface-2); margin: 14px 0; display: flex; overflow: hidden; }
.lab-bar i { display: block; height: 100%; }
.lab-bar i:first-child { background: var(--c-brand); }
.lab-bar i:nth-child(2) { background: var(--c-accent); }
.lab-bar s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--c-ink); }
.lab-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.lab-dl div { border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px; }
.lab-dl dt { font-size: .8125rem; color: var(--c-muted); }
.lab-dl dd { margin: 2px 0 0; font: 600 1rem/1.4 var(--font-mono); }
.lab-verdict { max-width: 70ch; margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--c-warn-soft); color: var(--c-ink); font-size: .93rem; }
.lab-verdict.ok { background: var(--c-good-soft); }
.lab-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lab-kpis > div { border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; background: var(--c-surface); }
.lab-kpis span, .lab-kpis small { font-size: .8125rem; color: var(--c-muted); }
.lab-kpis b { font: 800 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.lab-chunks { display: grid; gap: 8px; max-height: 560px; overflow: auto; position: relative; }
.lab-chunks p { margin: 0; }
.lab-chunk { position: relative; border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px 10px 46px; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.lab-chunk.used { border-color: var(--c-brand); background: var(--c-brand-soft); }
.lab-chunk .n { position: absolute; left: 10px; top: 10px; font: 700 .75rem/1 var(--font-mono); color: var(--c-muted); }
.lab-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lab-checks li { display: grid; gap: 2px; padding: 10px 12px 10px 36px; border-radius: 8px; border: 1px solid var(--c-line); position: relative; font-size: .875rem; }
.lab-checks li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 12px; height: 12px; border-radius: 3px; background: var(--c-bad); }
.lab-checks li.ok::before { background: var(--c-good); }
.lab-checks li span { color: var(--c-muted); }
.lab-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lab-table th { text-align: left; font-size: .8125rem; color: var(--c-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.lab-table td { padding: 10px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.lab-table ol { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.lab-table li.hit { color: var(--c-good); font-weight: 600; }
.lab-table td.pos { font: 600 .85rem/1.2 var(--font-mono); white-space: nowrap; }
.lab-table tr.ok td.pos { color: var(--c-good); }
.lab-table tr.no td.pos { color: var(--c-bad); }
.lab-answers { margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px; }
.lab-answers > li { padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-surface); display: grid; gap: 8px; }
.lab-answers p { margin: 0; overflow-wrap: anywhere; max-width: 75ch; }
.lab-pf { display: flex; gap: 8px; }
.lab-pf button { font: 600 .875rem/1 var(--font-body); min-height: 44px; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.lab-pf button:active { transform: scale(.97); }
.lab-pf button[data-v="1"][aria-pressed="true"] { background: var(--c-good); border-color: var(--c-good); color: var(--c-on-status); }
.lab-pf button[data-v="0"][aria-pressed="true"] { background: var(--c-bad); border-color: var(--c-bad); color: var(--c-on-status); }
.lab-jv { font-size: .8125rem; font-weight: 600; }
.lab-jv.agree { color: var(--c-muted); }
.lab-jv.disagree { color: var(--c-accent-text); }
.lab-sum p { max-width: 80ch; }
@media (max-width: 900px) { .lab-cols { grid-template-columns: minmax(0, 1fr); } .lab-kpis.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lab-table thead { display: none; } .lab-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--c-line); } .lab-table td { border: 0; padding: 0; } }
.px-seal { flex: none; }

.ui-empty p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.md-sec a.small { display: inline-block; padding: 6px 0; margin-top: 6px; }

/* the hero's feature roadmap (Gantt bars) and the lab charts */
/* design-ok: tiny-text (SVG text in a viewBox that scales up with the diagram; single-line labels) */
.bb-road .bb-q { font: 600 11px/1 var(--font-mono); fill: var(--c-muted); }
/* design-ok: tiny-text (SVG lane labels in a scaled viewBox) */
.bb-road .bb-lane { font: 500 11px/1 var(--font-body); fill: var(--c-muted); }
.bb-road .bb-grid { stroke: var(--c-line); stroke-width: 1; }
.bb-road .bb-bar rect { fill: var(--c-surface); stroke: var(--fig-line); stroke-width: 1; }
/* design-ok: tiny-text, tight-leading (single-line SVG labels inside scaled roadmap bars) */
.bb-road .bb-bar text { font: 600 10.5px/1 var(--font-body); fill: var(--c-ink); }
/* design-ok: tiny-text, tight-leading (single-line SVG date stamps inside scaled roadmap bars) */
.bb-road .bb-bar text.bb-due { font: 500 9px/1 var(--font-mono); fill: var(--c-accent-text); }
.lab-chart { width: 100%; height: auto; display: block; margin-top: 10px; }
.lab-chart .ch-grid { stroke: var(--c-line); stroke-width: 1; }
/* design-ok: tiny-text (SVG axis labels in a scaled chart viewBox) */
.lab-chart .ch-ax { font: 500 11px/1 var(--font-mono); fill: var(--c-muted); }
.lab-chart .ch-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lab-chart .ch-target { stroke: var(--c-accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
.lab-chart .ch-v { stroke: var(--c-ink); stroke-width: 1.4; }
.lab-chart .s1, .ch-legend i.s1 { stroke: var(--c-brand); background: var(--c-brand); }
.lab-chart .s2, .ch-legend i.s2 { stroke: var(--c-accent); background: var(--c-accent); }
.lab-chart .s3, .ch-legend i.s3 { stroke: var(--c-muted); background: var(--c-muted); }
.lab-chart .s4, .ch-legend i.s4 { stroke: var(--c-good); background: var(--c-good); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--c-muted); margin: 6px 0 4px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.ch-legend i.ch-tgt { background: var(--c-accent); height: 2px; }
.lab-points { margin: 0; font: 600 .9rem/1.3 var(--font-body); color: var(--c-ink); }
.lab-points.over { color: var(--c-bad); }
.lab-range { font: 600 1rem/1.4 var(--font-body); margin: 10px 0 0; color: var(--c-brand-text); min-height: 1.4em; }
.lab-seg label { min-height: 44px; }

/* a comfortable measure for multi-line copy in cards, rows, labs and intros (design kit: 45-75 characters) */
.ui p.muted, .ui p.small, .px-case p, .lib-row p.why, .lab-verdict, .tr-fellow p { max-width: 44em; }
