/* Avenue design system (approved Sep 27 2026): tokens + components, shared by the hub and People pages. Source: Avenue Brand design system. */
:root{--canvas:#f5f5f7;--paper:#ffffff;--sunk:#f5f5f7;--fill:#e8e8ed;--fill-2:#dcdce1;--ink:#1d1d1f;--ink-2:#424245;--muted:#6e6e73;--faint:#86868b;--line:#d2d2d7;--hair:rgba(0,0,0,0.08);--spark:#1d1d1f;--on-spark:#ffffff;--red:#c4332a;--red-dot:#ff453a;--red-soft:#fdeeed;--orange:#a35300;--orange-dot:#ff9f0a;--orange-soft:#fff3e3;--green:#1f7a3a;--green-dot:#34c759;--green-soft:#e9f6ec;--bar:rgba(250,250,252,0.8);--nav-link:rgba(0,0,0,0.8);--bar-line:rgba(0,0,0,0.08);--action-blue:#0071e3;--action-blue-hover:#0076df;--action-blue-active:#006edb;--on-action:#ffffff;--link-blue:#0066cc;--link-on-dark:#2997ff;--band-light:#ffffff;--band-gray:#f5f5f7;--band-dark:#000000;--on-band-dark:#f5f5f7;--muted-on-dark:#86868b;--globalnav:rgba(250,250,252,0.8);--focus:#0071e3;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-12:48px;--space-14:56px;--space-28:112px;--radius-thumb:8px;--radius-control:10px;--radius-card:20px;--radius-tile:28px;--radius-pill:980px;--radius-round:50%;--content-width:min(87.5vw, 1440px);--reading-max:980px;--bar-height:52px;--bar-max:min(87.5vw, 1440px);--globalnav-height:44px;--page-max:980px;--list-width:300px;--rail-width:300px;--row-y-compact:10px;--row-y-comfortable:14px;--row-x:20px;--bp-small:734px;--bp-medium:1068px;--bp-comfortable:1441px;--shadow-pop:0 10px 36px rgba(0,0,0,0.14), 0 1px 3px rgba(0,0,0,0.08);--shadow-thumb:0 1px 2px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.04);--font-sans:-apple-system, "SF Pro Text", "SF Pro Display", BlinkMacSystemFont, "Helvetica Neue", Figtree, "Segoe UI", Arial, sans-serif;--font-mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace}
/* Avenue components: plain CSS on the Avenue tokens. Class prefix av-.
   Metrics are apple.com's, measured Sep 27 2026 (see README "Apple measurements we use"). */
body { margin: 0; font-family: var(--font-sans); background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 20px; letter-spacing: -0.016em; -webkit-font-smoothing: antialiased; }
.av-num { font-variant-numeric: tabular-nums; }
.av-spark { display: inline-block; height: 1em; width: 0.671em; fill: currentColor; flex: none; }

/* Button: Apple's pill. default 36px (14px text), sm 24px (12px), lg 44px (17px). 1px border counts in the height, as on apple.com */
.av-btn { font: inherit; font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: -0.016em; border-radius: var(--radius-pill); padding: 8px 15px; border: 1px solid transparent; min-width: 28px; background: var(--fill); color: var(--ink); cursor: pointer; white-space: nowrap; text-align: center; }
.av-btn:hover { background: var(--fill-2); }
.av-btn-primary { background: var(--action-blue); color: var(--on-action); }
.av-btn-primary:hover { background: var(--action-blue-hover); }
.av-btn-primary:active { background: var(--action-blue-active); }
.av-btn-quiet { background: transparent; color: var(--muted); }
.av-btn-quiet:hover { background: transparent; color: var(--ink); }
.av-btn-sm { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; padding: 3px 10px; min-width: 23px; }
.av-btn-lg { font-size: 17px; line-height: 20px; letter-spacing: -0.022em; padding: 11px 21px; min-width: 26px; }
.av-btn:disabled { opacity: 0.42; cursor: default; }
.av-btn:focus-visible, .av-link:focus-visible, .av-seg button:focus-visible, .av-nav a:focus-visible, .av-switcher:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* LinkChevron: same size as the text around it; underline on the words only */
.av-link { color: var(--link-blue); text-decoration: none; font-size: 14px; line-height: 20px; letter-spacing: -0.016em; white-space: nowrap; }
.av-link::after { content: "\203A"; display: inline-block; margin-left: 0.25em; text-decoration: none; }
.av-link:hover { text-decoration: underline; }
.av-link-sm { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.av-link-lg { font-size: 17px; line-height: 25px; letter-spacing: -0.022em; }

/* StatusPill: Apple's 12px semibold badge */
.av-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -0.01em; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.av-pill i { width: 6px; height: 6px; border-radius: var(--radius-round); display: inline-block; }
.av-pill-late { background: var(--red-soft); color: var(--red); } .av-pill-late i { background: var(--red-dot); }
.av-pill-soon { background: var(--orange-soft); color: var(--orange); } .av-pill-soon i { background: var(--orange-dot); }
.av-pill-done { background: var(--green-soft); color: var(--green); } .av-pill-done i { background: var(--green-dot); }
/* Vale asks: a plain neutral badge. No spark, no black fill. */
.av-vale { display: inline-flex; align-items: center; background: var(--fill); color: var(--ink-2); border-radius: var(--radius-pill); padding: 2px 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

/* Avatar */
.av-avatar { width: 28px; height: 28px; border-radius: var(--radius-round); background: var(--fill); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; letter-spacing: 0; }
.av-avatar-vale { background: var(--spark); color: var(--on-spark); }

/* TopBar: Apple's 52px local nav. The spark appears here and nowhere else on the screen. */
.av-topbar { height: var(--bar-height); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--bar-line); }
.av-topbar-in { width: var(--bar-max); max-width: calc(100% - 32px); margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 32px; }
.av-switcher { display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 17px; line-height: 21px; letter-spacing: -0.022em; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.av-switcher .av-spark { color: var(--spark); height: 16px; width: 10.7px; }
/* App icons (liquid glass, Sep 29 2026): small in the top-left corner beside the name */
.av-switcher .av-app-icon { display: block; width: 28px; height: 28px; border-radius: 7px; flex: none; }
.av-switcher .caret { color: var(--faint); font-size: 9px; font-weight: 400; margin-left: -4px; }
.av-nav { display: flex; gap: 24px; }
.av-nav a { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; color: var(--nav-link); text-decoration: none; white-space: nowrap; }
.av-nav a:hover { color: var(--ink); }
.av-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.av-tb-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.av-sync { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.av-sync i { width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--green-dot); }
.av-search { width: 200px; padding: 5px 12px; border-radius: var(--radius-control); background: var(--fill); color: var(--ink-2); font-size: 13px; line-height: 18px; letter-spacing: -0.013em; display: flex; justify-content: space-between; }

/* SegmentedTabs */
.av-seg { display: inline-flex; gap: 2px; background: var(--fill); border-radius: var(--radius-control); padding: 2px; }
.av-seg button { font: inherit; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-2); background: none; border: 0; border-radius: var(--radius-thumb); padding: 4px 14px; cursor: pointer; letter-spacing: -0.013em; white-space: nowrap; }
.av-seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-thumb); }
.av-seg .n { font-weight: 400; margin-left: 5px; color: var(--muted); }

/* Card: white on canvas, 20px corners, 20px inside, no border */
.av-card { background: var(--paper); border-radius: var(--radius-card); }
.av-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: var(--space-5) var(--row-x) var(--space-2); }
.av-card-h h3 { margin: 0; font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -0.022em; }
.av-figure { padding: var(--space-5) var(--row-x); }
.av-figure span { color: var(--muted); font-size: 13px; line-height: 18px; letter-spacing: -0.013em; display: block; }
.av-figure b { display: block; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: 0.004em; margin-block: 4px; }

/* NeedsYouRow. Markers are plain dots; Vale's question is an open ring, never the spark */
.av-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; padding: var(--row-y-compact) var(--row-x); align-items: center; position: relative; }
.av-row + .av-row::before { content: ""; position: absolute; top: 0; left: calc(var(--row-x) + 24px); right: 0; border-top: 1px solid var(--line); }
.av-row .t { font-size: 14px; line-height: 20px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-row .s { font-size: 13px; line-height: 18px; letter-spacing: -0.013em; color: var(--muted); margin-top: 1px; }
.av-row .acts { display: flex; gap: 8px; align-items: center; }
.av-sev { width: 8px; height: 8px; border-radius: var(--radius-round); justify-self: center; background: var(--fill-2); }
.av-sev-late { background: var(--red-dot); } .av-sev-soon { background: var(--orange-dot); }
.av-sev-vale { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* DataTable */
.av-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.av-table th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: -0.01em; color: var(--muted); padding: var(--row-y-compact) var(--row-x); border-bottom: 1px solid var(--line); }
.av-table td { padding: var(--row-y-compact) var(--row-x); border-bottom: 1px solid var(--line); vertical-align: middle; }
.av-table tr:last-child td { border-bottom: 0; }
.av-table .r { text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 1441px) {
  .av-table th, .av-table td, .av-row { padding-block: var(--row-y-comfortable); }
}

/* EmptyState */
.av-empty { text-align: center; padding: var(--space-12) var(--space-6); }
.av-empty h3 { margin: 0; font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -0.022em; }
.av-empty p { margin: 6px auto var(--space-5); max-width: 380px; font-size: 13px; line-height: 18px; letter-spacing: -0.013em; color: var(--muted); }

/* ---- Avenue admin pages (hub + People): layout and form pieces on the same tokens ---- */
* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
.av-sticky { position: sticky; top: 0; z-index: 10; }
.av-page { width: var(--content-width); margin: 0 auto; padding: var(--space-8) 0 var(--space-12); }
@media (max-width: 734px) { .av-page, .av-topbar-in { width: calc(100% - 32px); } .av-topbar-in { gap: 16px; } }
.av-display { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: 0.004em; margin: 0 0 var(--space-6); }
.av-title { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: 0.009em; margin: 0; }
.av-section { font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -0.022em; margin: 0; }
.av-small { font-size: 13px; line-height: 18px; letter-spacing: -0.013em; }
.av-label { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.av-muted { color: var(--muted); }
.hidden { display: none !important; }
/* Hub tiles: Apple's 28px tiles, 20px apart, no border or shadow */
.av-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
a.av-tile { display: flex; flex-direction: column; min-height: 220px; background: var(--paper); border-radius: var(--radius-tile); padding: 28px; color: inherit; text-decoration: none; }
a.av-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
a.av-tile .big { margin-top: auto; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: 0.004em; font-variant-numeric: tabular-nums; }
a.av-tile .open { margin-top: auto; }
/* The app icon is the hero of its tile; the name sits under it */
a.av-tile .av-tile-icon { display: block; width: 112px; height: 112px; border-radius: 26px; margin: 0 0 18px; flex: none; }
a.av-tile:hover .av-link { text-decoration: underline; }
/* Forms */
.av-field { display: block; margin: 0 0 var(--space-4); }
.av-field > span { display: block; font-size: 12px; line-height: 16px; letter-spacing: -0.01em; color: var(--ink-2); margin-bottom: 6px; }
.av-field small { display: block; font-size: 12px; line-height: 16px; letter-spacing: -0.01em; color: var(--muted); margin-top: 4px; }
.av-input, .av-field input[type=text], .av-field input[type=email], .av-field input[type=password], .av-field input[type=date], .av-field input[type=tel], .av-field select, .av-field textarea {
  width: 100%; font-size: 14px; line-height: 20px; letter-spacing: -0.016em; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 7px 11px; }
.av-field textarea { min-height: 72px; resize: vertical; }
.av-input:focus, .av-field input:focus, .av-field select:focus, .av-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.av-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 20px; }
.av-check input { margin: 3px 0 0; accent-color: var(--action-blue); }
.av-check small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.av-msg { font-size: 13px; line-height: 18px; letter-spacing: -0.013em; padding: 10px 14px; border-radius: var(--radius-control); margin: var(--space-3) 0; background: var(--fill); color: var(--ink-2); }
.av-msg-error { background: var(--red-soft); color: var(--red); }
.av-msg-ok { background: var(--green-soft); color: var(--green); }
.av-msg-warn { background: var(--orange-soft); color: var(--orange); }
/* Dialog floats, so it may have a shadow */
.av-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.32); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; overflow-y: auto; z-index: 20; }
.av-dialog { background: var(--paper); border-radius: var(--radius-card); width: 100%; max-width: 560px; padding: 28px; box-shadow: var(--shadow-pop); }
.av-steps { display: flex; gap: 6px; margin: var(--space-3) 0 var(--space-6); }
.av-steps div { flex: 1; height: 4px; border-radius: 2px; background: var(--fill); }
.av-steps div.done { background: var(--ink); }
.av-dialog-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--space-6); }
.av-pin { font: 600 28px/36px var(--font-mono); letter-spacing: 0.08em; background: var(--canvas); border-radius: var(--radius-control); padding: 14px; text-align: center; margin: var(--space-3) 0; user-select: all; }
.av-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-round); }
.av-avatar-lg { width: 64px; height: 64px; font-size: 20px; }
/* The brand name as text (Greg, Sep 27 2026): AVENUE in plain capitals, normal spacing. App names stay "Transaction Ave" etc. */
.av-wordmark { text-transform: uppercase; }
/* Phones: shorter tiles so more fits on one screen */
@media (max-width: 734px) {
  a.av-tile { min-height: 132px; padding: 22px; }
  a.av-tile .av-tile-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 14px; }
  .av-display { font-size: 28px; line-height: 32px; }
}
