/* AV27 prototype app (one phone). Colors only through prototype/themes/lpl.css tokens.
   Platform-specific per team votes: status bar, tab bar and back control. Everything else is Common. */

:root {
  --status-h: 62px;
  --tabbar-space: 120px;
  --home-indicator-h: 21px;
  --glow-top: 159px;
  --font-system: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-platform="android"] {
  --status-h: 52px;
  --tabbar-space: 112px;
  --glow-top: 137px;
  --font-system: Roboto, system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--color-surface-page); }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-glyphs-default);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3 { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; display: block; flex-shrink: 0; }

/* ---- Frame ---- */
.app { position: relative; height: 100vh; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; background: var(--color-surface-page); }
.view-scroll {
  position: relative;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--status-h) 0 var(--tabbar-space);
  scrollbar-width: none;
}
.view-scroll::-webkit-scrollbar { display: none; }
.app[data-full] .view-scroll { padding-bottom: calc(var(--home-indicator-h) + 8px); }
.app[data-full] .tabbar { display: none; }

.view.is-pushing { animation: push-in 320ms var(--ease); z-index: 2; }
.view.is-popping { animation: push-in 260ms var(--ease) reverse forwards; z-index: 2; }
@keyframes push-in { from { transform: translateX(100%); } to { transform: none; } }

/* ---- Status bar ---- */
.status {
  position: absolute; inset: 0 0 auto; z-index: 20;
  height: var(--status-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  color: var(--color-status);
  background: color-mix(in srgb, var(--color-surface-page) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.status-time { font: 590 17px/22px var(--font-system); width: 54px; text-align: center; }
.status-icons { width: 78px; height: 13px; }
.status-camera { width: 124px; height: 36px; border-radius: 18px; background: #000; }
.status--android { padding: 8px 24px 0; }
.status--android .status-time { font-size: 15px; font-weight: 500; text-align: left; }
.status--android .status-camera { width: 24px; height: 24px; border-radius: 50%; }
.status-icons--android { width: 46px; height: 17px; }

.home-indicator {
  position: absolute; left: 50%; bottom: 8px; z-index: 30;
  width: 144px; height: 5px; margin-left: -72px;
  border-radius: 100px; background: var(--color-status);
  pointer-events: none;
}

/* ---- Tab bar: iOS floating glass pill ---- */
.tabbar { position: absolute; z-index: 10; display: flex; }
.tab {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0;
  color: var(--color-tab);
}
.tab-label { position: relative; }
.tabbar--ios {
  left: 21px; right: 21px; bottom: calc(var(--home-indicator-h) + 16px);
  height: 62px; padding: 4px;
  border-radius: 296px;
  background: var(--color-tabbar-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-tabbar);
}
.tabbar--ios .tab { gap: 1px; border-radius: 100px; }
.tabbar--ios .tab-icon { position: relative; height: 28px; display: grid; place-items: center; font-size: 18px; }
.tabbar--ios .tab-label { font-size: 10px; line-height: 12px; font-weight: 600; }
.tabbar--ios .tab[aria-current="page"] { color: var(--color-tab-selected); background: var(--color-tab-selected-bg); }

/* ---- Tab bar: Android M3 navigation bar ---- */
.tabbar--android {
  left: 0; right: 0; bottom: 0;
  padding: 12px 0 calc(var(--home-indicator-h) + 12px);
  background: var(--color-nav-bar);
  border-top: 1px solid var(--color-stroke-general-accent);
}
.tabbar--android .tab { gap: 4px; color: var(--color-glyphs-accent); }
.tabbar--android .tab-icon { width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; }
.tabbar--android .tab-label { font-size: 12px; line-height: 16px; font-weight: 500; }
.tabbar--android .tab[aria-current="page"] { color: var(--color-nav-selected-icon); }
.tabbar--android .tab[aria-current="page"] .tab-icon { background: var(--color-nav-indicator); color: var(--color-nav-selected-icon); }
.tabbar--android .tab[aria-current="page"] .tab-label { font-weight: 600; }

/* ---- Overlays: AV / Sheet and AV / Dialog ---- */
.overlays { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.overlay { position: absolute; inset: 0; pointer-events: auto; }
.overlay-scrim { position: absolute; inset: 0; background: var(--color-scrim); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--status-h) - 6px);
  display: flex; flex-direction: column;
  background: var(--color-surface-0);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-sheet);
  outline: none;
}
.dialog {
  position: absolute; left: 50%; top: 50%;
  width: min(370px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: var(--color-surface-0);
  border: 1px solid var(--color-stroke-general-accent);
  border-radius: 16px;
  box-shadow: var(--shadow-dialog);
  outline: none;
}
.overlay.is-entering .overlay-scrim { animation: fade 240ms ease-out; }
.overlay.is-leaving .overlay-scrim { animation: fade 220ms ease-in reverse forwards; }
.overlay.is-entering .sheet { animation: sheet-up 340ms var(--ease); }
.overlay.is-leaving .sheet { animation: sheet-up 240ms ease-in reverse forwards; }
.overlay.is-entering .dialog { animation: dialog-in 220ms var(--ease); }
.overlay.is-leaving .dialog { animation: dialog-in 160ms ease-in reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sheet-grabber { width: 36px; height: 5px; margin: 5px auto 6px; border-radius: 100px; background: var(--color-grabber); flex-shrink: 0; }
.sheet-header { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 16px 10px; flex-shrink: 0; }
.sheet-title { text-align: center; font: 590 17px/22px var(--font-system); color: var(--color-glyphs-default); }
.sheet-body { flex: 1; overflow-y: auto; padding-bottom: calc(var(--home-indicator-h) + 24px); scrollbar-width: none; }
.sheet-pad { padding: 16px 16px 0; }
.sheet-pad--list { padding-top: 0; }
.sheet-sections { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.sheet-section { display: flex; flex-direction: column; gap: 8px; }
.sheet-section:first-child { gap: 12px; }
.section-title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px; }
.sheet-actions { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; }

/* ---- Buttons ---- */
.icon-btn {
  position: relative;
  width: 48px; height: 48px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 24px; background: none; padding: 0;
  color: var(--color-glyphs-default);
  font-size: 24px;
}
.icon-btn-spacer { width: 48px; }
.icon-btn--info { width: 24px; height: 24px; font-size: 20px; color: var(--color-glyphs-default); }
.icon-btn--field { width: 24px; height: 24px; font-size: 24px; }
.icon-btn--on-inverse { width: 40px; height: 40px; color: var(--color-on-inverse); }
.btn {
  height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 24px;
  font-size: 16px; font-weight: 600; line-height: 1;
}
.btn--primary { background: var(--color-action-fill); color: var(--color-on-action-primary); }
.btn--secondary { background: none; border-color: var(--color-action-primary); color: var(--color-action-primary); }
.btn--text { background: none; padding: 0 12px; color: var(--color-action-primary); }
.btn--flush { height: auto; min-height: 24px; padding: 0; }
.btn--block { width: 100%; }

.icon-btn:active, .btn--text:active, .btn--secondary:active { background: var(--color-segment-track); }
.btn--primary:active { filter: brightness(0.9); }
.chip:active, .list-row:active, .tile:active, .quote:active { background: var(--color-selected-fill); }
.ava-bar:active { transform: scale(0.99); }
.legal-link:active { opacity: 0.7; }

.badge {
  position: absolute; left: 28px; top: 0;
  min-width: 20px; padding: 2px;
  border: 1px solid var(--color-pill-low-line); border-radius: 20px;
  background: var(--color-pill-low-bg); color: var(--color-pill-low-fg);
  font-size: 10px; line-height: 14px; font-weight: 600; text-align: center;
}
.count-badge {
  min-width: 20px; padding: 2px;
  border: 1px solid var(--color-pill-low-line); border-radius: 20px;
  background: var(--color-pill-low-bg); color: var(--color-pill-low-fg);
  font-size: 10px; line-height: 14px; font-weight: 600; text-align: center;
}
.pill {
  flex-shrink: 0; padding: 2px 8px; border-radius: 20px;
  font-size: 10px; line-height: 14px; font-weight: 600; text-transform: uppercase;
}
.pill--low { background: var(--color-pill-low-bg); color: var(--color-pill-low-fg); }
.pill--medium { background: var(--color-pill-medium-bg); color: var(--color-pill-medium-fg); }
.pill--high { background: var(--color-pill-high-bg); color: var(--color-pill-high-fg); }

.chips { display: flex; justify-content: center; gap: 8px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.chips--start { justify-content: flex-start; padding: 8px 16px 16px; }
.chips--home { padding-bottom: 24px; }
.chip {
  height: 32px; padding: 0 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 999px;
  background: var(--color-surface-0); color: var(--color-glyphs-accent);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip .icon { font-size: 24px; }
/* ---- Segmented control (Common) ---- */
.seg {
  height: 32px; padding: 2px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 100px; background: var(--color-surface-0);
}
.seg-option {
  padding: 3px 6px; height: 28px;
  border: 1px solid transparent; border-radius: 20px; background: none;
  font: 510 13.33px/18px var(--font-system); color: var(--color-glyphs-prominent);
  white-space: nowrap; flex: 1;
}
.seg-option[aria-selected="true"] { background: var(--color-surface-warm); border-color: var(--color-action-primary); color: var(--color-action-primary); font-weight: 590; }
.seg-scope { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.seg-panel { display: flex; flex-direction: column; gap: 10px; }

.tabs-underline {
  height: auto; padding: 0 0 0 16px; gap: 0; border-radius: 0; background: none;
  justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
}
.tabs-underline .seg-option {
  flex: none; height: auto; padding: 12px 16px; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--color-stroke-general-accent);
  font: 500 15px/19.5px var(--font-ui); color: var(--color-glyphs-accent);
}
.tabs-underline .seg-option[aria-selected="true"] {
  background: none; color: var(--color-glyphs-prominent); font-weight: 600;
  border-bottom: 2px solid var(--color-accent); padding-bottom: 11px;
}

/* ---- Home ---- */
.glows { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; }
.glows span { position: absolute; border-radius: 9999px; filter: blur(30px); }
.glows--home span:nth-child(1) { width: 300px; height: 150px; left: -103px; top: calc(var(--glow-top) + 61px); background: var(--color-glow-cyan); }
.glows--home span:nth-child(2) { width: 300px; height: 150px; left: 197px; top: calc(var(--glow-top) + 93px); background: var(--color-glow-copper); }
.glows--home span:nth-child(n+3) { display: none; }
.glows--login span:nth-child(1) { width: 473px; height: 196px; left: -36px; top: 822px; background: var(--color-glow-copper); }
.glows--login span:nth-child(2) { width: 393px; height: 277px; left: -93px; top: -90px; background: var(--color-glow-cyan); }
.glows--login span:nth-child(3) { width: 437px; height: 265px; left: 60px; top: 93px; background: var(--color-glow-copper); }
.glows--login span:nth-child(4) { width: 456px; height: 222px; left: -27px; top: 33px; background: var(--color-glow-white); }
.home, .login { position: relative; }

.home-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.home-header-actions { display: flex; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 44px; object-fit: cover; box-shadow: var(--shadow-avatar); }
.avatar-btn { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 44px; background: none; }
.avatar-btn:active, .advisor-who:active { opacity: 0.7; }
.home-brand { display: flex; flex-direction: column; align-items: center; gap: 0px; padding: 8px 16px; }
.home-logo { height: 73px; display: grid; place-items: center; }
.home-logo img { display: block; }
.home-tagline { font-size: 14px; line-height: 20px; color: var(--color-glyphs-default); }
.advisor-person { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; text-align: left; }
.advisor-person .advisor-who { flex: 1; min-width: 0; gap: 2px; }
.advisor-person:active { opacity: 0.7; }
.advisor-meeting { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--color-stroke-general-accent); }
.advisor-meeting-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.advisor-photo { width: 48px; height: 48px; border-radius: 44px; flex-shrink: 0; object-fit: cover; box-shadow: var(--shadow-avatar); }
.advisor-who { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.advisor-name { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--color-glyphs-prominent); }
.advisor-role { font-size: 16px; line-height: 19px; }
.greeting { padding: 16px 16px 8px; font: 400 24px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.pad { padding: 8px 16px; }

.ava-bar {
  width: 100%; height: 52px; padding: 6px 6px 6px 16px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--color-surface-glass-line); border-radius: 26px;
  background: var(--color-surface-glass-ava); box-shadow: var(--shadow-card);
  text-align: left;
}
.ava-spark { width: 20px; height: 20px; color: var(--color-glyphs-default); flex-shrink: 0; }
.ava-text { flex: 1; color: var(--color-glyphs-default); }
.ava-go { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--color-surface-0); font-size: 24px; }

/* ---- AVA sheet (amendment 14): the website's AVA panel as a Common sheet ---- */
.sheet:has(.ava) { transition: top 260ms var(--ease), border-radius 260ms var(--ease); }
.sheet:has(.ava--expanded) { top: 0; border-radius: 0; }
.ava { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ava--expanded { padding-top: calc(var(--status-h) - 16px); }
.ava--expanded .sheet-grabber { visibility: hidden; }
.app:has(.ava--expanded) .status { z-index: 45; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ava-title { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ava-title-icon { width: 18px; height: 18px; }
.ava-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; scrollbar-width: none; }
.ava-flow { margin: auto 0; padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ava-flow--thread { margin: 0 0 auto; padding: 8px 16px 16px; align-items: stretch; text-align: left; }
.ava-welcome { display: flex; flex-direction: column; gap: 10px; }
.ava-hello { font: 400 32px/38px var(--font-display); color: var(--color-glyphs-prominent); }
.ava-intro { font-size: 15px; line-height: 22px; color: var(--color-glyphs-accent); }
.ava-try { font-size: 14px; color: var(--color-glyphs-accent); }
.ava-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ava-prompts--row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.ava-chip .icon { font-size: 14px; color: var(--color-glyphs-default); }
.ava-chip .icon--stroke { font-size: 16px; }
.ava-thread { display: flex; flex-direction: column; gap: 16px; }
.ava-turn { display: flex; flex-direction: column; gap: 10px; }
.ava-q {
  align-self: flex-end; max-width: 82%; padding: 10px 14px;
  border-radius: 18px 18px 4px 18px; background: var(--color-surface-warm); color: var(--color-glyphs-prominent);
  font-size: 15px; line-height: 21px;
}
.ava-reply {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px 12px 16px;
  border: 1px solid var(--color-surface-glass-line); border-left: 3px solid var(--color-accent); border-radius: 12px;
  background: var(--color-surface-glass-ava); box-shadow: var(--shadow-card);
}
.ava-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-glyphs-accent); }
.ava-text-line { font-size: 15px; line-height: 22px; color: var(--color-glyphs-default); }
.ava-follow { margin-top: 4px; color: var(--color-action-primary); }
.ava-typing { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 14px; border-radius: 18px; background: var(--color-surface-glass-ava); color: var(--color-glyphs-accent); font-size: 14px; }
.ava-dots { display: inline-flex; gap: 4px; }
.ava-dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; animation: ava-dot 1s ease-in-out infinite; }
.ava-dots i:nth-child(2) { animation-delay: 0.15s; }
.ava-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ava-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.ava-compose { flex-shrink: 0; padding: 10px 0 calc(var(--home-indicator-h) + 12px); border-top: 1px solid var(--color-stroke-general-accent); }
.ava-compose--kb { padding-bottom: 0; }
.ava-input {
  margin: 0 16px; height: 52px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-surface-glass-line); border-radius: 26px; background: var(--color-surface-glass-ava); box-shadow: var(--shadow-card);
}
.ava-input:focus-within { border-color: var(--color-action-primary); }
.ava-field { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--color-glyphs-default); }
.ava-field::placeholder { color: var(--color-glyphs-accent); }
.ava-send { width: 40px; height: 40px; flex-shrink: 0; border: 0; padding: 0; border-radius: 20px; display: grid; place-items: center; background: var(--color-surface-0); color: var(--color-glyphs-default); font-size: 22px; }
.ava-send .icon { transform: rotate(-90deg); }
.ava-send:active { transform: scale(0.96); }
.tab-head-actions { display: flex; align-items: center; }

/* ---- System keyboards in the AVA sheet (amendment 14; team row 47, Platform-specific) ---- */
.kb { display: flex; flex-direction: column; margin-top: 10px; }
.kb--entering { animation: kb-up 280ms var(--ease); }
@keyframes kb-up { from { transform: translateY(100%); } }
.kb-row { display: flex; justify-content: center; }
.kb-key {
  position: relative; flex: 1 1 0; min-width: 0; display: grid; place-items: center; border: 0; padding: 0;
  background: var(--k-key); color: var(--k-label); font-family: var(--font-system); font-weight: 400;
}
.kb-key--alt { background: var(--k-alt); }
.kb-key:active { background: var(--k-alt); }
.kb-key--alt:active { background: var(--k-key); }
.kb-key--send, .kb-key--send:active { background: var(--k-send); color: var(--k-on-send); }
.kb-glyph { width: 22px; height: 22px; }
.kb--ios {
  --k-key: var(--color-kb-ios-key); --k-alt: var(--color-kb-ios-key-alt); --k-label: var(--color-kb-ios-label);
  --k-send: var(--color-kb-ios-send); --k-on-send: var(--color-kb-ios-on-send);
  background: var(--color-kb-ios-tray); padding: 8px 4px calc(var(--home-indicator-h) + 30px); gap: 12px;
}
.kb--ios .kb-row { gap: 6px; }
.kb--ios .kb-row--inset { padding: 0 19px; }
.kb--ios .kb-key { height: 44px; border-radius: 9px; font-size: 24px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.kb--ios .kb-key--shift { flex: 1.35 1 0; margin-right: 8px; }
.kb--ios .kb-key--delete { flex: 1.35 1 0; margin-left: 8px; }
.kb--ios .kb-key--mode, .kb--ios .kb-key--emoji { flex: 1.2 1 0; font-size: 16px; }
.kb--ios .kb-key--space { flex: 5 1 0; font-size: 16px; }
.kb--ios .kb-key--send { flex: 2.4 1 0; font-size: 16px; }
.kb--android {
  --k-key: var(--color-kb-android-key); --k-alt: var(--color-kb-android-key-alt); --k-label: var(--color-kb-android-label);
  --k-send: var(--color-kb-android-send); --k-on-send: var(--color-kb-android-on-send);
  background: var(--color-kb-android-tray); padding: 10px 5px calc(var(--home-indicator-h) + 10px); gap: 8px;
}
.kb--android .kb-row { gap: 5px; }
.kb--android .kb-row--inset { padding: 0 18px; }
.kb--android .kb-key { height: 46px; border-radius: 7px; font-size: 22px; }
.kb-hint { position: absolute; top: 3px; right: 5px; font-size: 10px; line-height: 1; opacity: 0.6; }
.kb--android .kb-key--shift, .kb--android .kb-key--delete { flex: 1.45 1 0; }
.kb--android .kb-key--mode { flex: 1.45 1 0; border-radius: 23px; font-size: 14px; font-weight: 500; }
.kb--android .kb-key--punct, .kb--android .kb-key--emoji { flex: 1 1 0; }
.kb--android .kb-key--space { flex: 4 1 0; }
.kb--android .kb-key--send { flex: 1.45 1 0; border-radius: 23px; }

.stack { display: flex; flex-direction: column; }
.card {
  margin: 8px 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--color-surface-glass-line); border-radius: 12px;
  background: var(--color-surface-glass); box-shadow: var(--shadow-card);
}
.card--stat { padding-bottom: 8px; gap: 16px; }
.card--gap16 { gap: 16px; }
.card-head { display: flex; flex-direction: column; gap: 2px; }
.eyebrow { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.card-kicker { font-size: 16px; line-height: 24px; }
.display-title { font: 400 24px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.display-title--xl { font-size: 34px; line-height: 40px; }
.card-sub { font-size: 16px; line-height: 22.4px; }
.card-title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; }
.stat-head { display: flex; justify-content: space-between; gap: 12px; }
.stat-head > div { display: flex; flex-direction: column; gap: 2px; }
.stat-title-row { display: flex; align-items: center; gap: 8px; }
.big-number { font: 400 34px/40px var(--font-display); color: var(--color-glyphs-prominent); }
.delta { font-size: 14px; line-height: 20px; padding-bottom: 2px; }
.tone-up { color: var(--color-glyphs-feedback-success); }
.tone-down { color: var(--color-glyphs-feedback-danger); }
.updated { flex-shrink: 0; font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.updated--sm { font-size: 12px; line-height: 17px; }
.fine { font-size: 12px; line-height: 1.4; color: var(--color-glyphs-accent); }

.chart { margin: 0; display: grid; grid-template-columns: 1fr; }
.chart--y { grid-template-columns: 35px 1fr; column-gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; line-height: 17px; color: var(--color-glyphs-accent); margin: -8px 0; }
.chart-svg { display: block; width: 100%; overflow: visible; }
.chart-grid { stroke: var(--color-chart-grid); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-area-1 { fill: var(--color-chart-area-1); }
.chart-area-2 { fill: var(--color-chart-area-2); }
.chart-line { fill: none; stroke: var(--color-chart-line); stroke-width: 1; }
.chart-accent { fill: none; stroke: var(--color-chart-accent-line); stroke-width: 2; stroke-dasharray: 2 2; }
.chart-axis { display: flex; justify-content: space-between; padding-top: 4px; font-size: 12px; line-height: 17px; color: var(--color-glyphs-accent); }
.chart--y .chart-axis { grid-column: 2; padding: 8px 0 16px; }
.field + .chart { margin-top: 24px; }

.breakdown { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.stack-bar { display: flex; gap: 2px; height: 8px; flex: none; }
.alloc-bar-row .stack-bar { flex: 1; }
.stack-bar span { min-width: 2px; border-radius: 8px; }
.key-stats { display: flex; justify-content: space-between; }
.key-stat { display: flex; gap: 4px; }
.key-stat .legend-swatch { margin-top: 5px; }
.key-stat-value { display: block; font-size: 16px; line-height: 20px; }
.key-stat-label { display: block; font-size: 12px; line-height: 17px; color: var(--color-glyphs-accent); }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
:root[data-platform="android"] .key-stat .legend-swatch { margin-top: 7px; }
.card-actions { display: flex; justify-content: space-between; margin: 0 -12px; }

.inset {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 16px;
  background: var(--color-surface-warm);
}
.inset--tight { gap: 8px; }
.inset--toggles { gap: 8px; border: 0; border-radius: 8px; }
.inset--form { margin: 0; background: var(--color-surface-page); border-radius: 12px; min-width: 0; }
.inset-title { float: left; width: 100%; padding: 0; font-size: 18px; line-height: 27px; font-weight: 700; }
.inset-title + * { clear: both; margin-top: -12px; }
.plan-summary { display: flex; align-items: center; gap: 16px; }
.donut { position: relative; width: 80px; height: 80px; flex-shrink: 0; display: grid; place-items: center; }
.donut svg { position: absolute; inset: 0; width: 80px; height: 80px; }
.donut-track, .donut-fill { fill: none; stroke-width: 10; }
.donut-track { stroke: var(--color-goal-track); }
.donut-fill { stroke: var(--color-goal-fill); }
.donut span { position: relative; font-size: 16px; line-height: 24px; }
.plan-numbers { display: flex; flex-direction: column; gap: 2px; }
.kicker { font-size: 12px; line-height: 18px; font-weight: 700; text-transform: uppercase; color: var(--color-accent-text); }
.plan-label { font-size: 16px; line-height: 24px; }

.list, .legend, .value-list {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 16px;
  background: var(--color-surface-0);
}
.list--tight { border-radius: 8px; }
.list-row {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 0 8px 4px;
  border: 0; border-bottom: 1px solid var(--color-stroke-general-accent);
  background: none; text-align: left;
}
.list-row:last-child, .legend-row:last-child, .value-row:last-child { border-bottom: 0; }
.list-row--alert::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 48px; border-radius: 4px; background: var(--color-glyphs-feedback-danger); }
.list-row--plain { padding: 12px 4px 12px 16px; }
.list-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row-title, .list-row-sub, .legend-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-title { font-size: 16px; line-height: 24px; font-weight: 700; }
.list-row-sub { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.list-row .pill { margin-left: 12px; }
.list-row-chevron { width: 24px; height: 24px; margin: 0 4px; display: grid; place-items: center; font-size: 24px; color: var(--color-stroke-data-accent); }
.row-alert-icon { display: inline-block; vertical-align: -2px; margin-right: 8px; font-size: 16px; color: var(--color-accent); }
.icon-circle { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 24px; background: var(--color-surface-icon); color: var(--color-accent); font-size: 16px; }
.icon-circle--muted { color: var(--color-glyphs-accent); }

.alloc-bar-row { display: flex; align-items: center; gap: 8px; }
.alloc-count { font-size: 16px; line-height: 24px; font-weight: 700; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--color-stroke-general-accent); }
.legend-row .legend-swatch { margin: 0; }
.legend-label { flex: 1; }
.legend-value { text-align: right; }

.liquidity-stats { display: flex; justify-content: space-between; align-items: flex-end; }
.liquidity-stats > div { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 16px; line-height: 24px; }
.stat-value--lg { font-size: 18px; font-weight: 600; }

.quotes { display: flex; gap: 12px; }
.quote { flex: 1; height: 72px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; background: var(--color-surface-0); }
.quote-name { font-size: 12px; color: var(--color-glyphs-accent); white-space: nowrap; }
.quote-value { font-size: 16px; line-height: 24px; font-weight: 700; }
.quote-change { font-size: 12px; font-weight: 600; }

.legal { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; font-size: 12px; line-height: 16.8px; letter-spacing: 0.3px; color: var(--color-glyphs-legal); }
.legal strong { font-weight: 700; }
.legal-link { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 12px; line-height: 16.8px; font-weight: 700; letter-spacing: 0.3px; color: var(--color-link-legal); }
.legal-link--copper { color: var(--color-action-primary); }

/* ---- Sheet content ---- */
.value-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--color-stroke-general-accent); }
.value-row-label { display: flex; flex-direction: column; }
.value-row-sub { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.value-row-value { text-align: right; white-space: nowrap; }
.value-row-value--strong { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0; }
.tile {
  padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 8px;
  background: var(--color-surface-0);
}
.tile-label { font-size: 16px; line-height: 20px; font-weight: 700; text-align: center; }

.lead { padding-bottom: 32px; font-size: 18px; line-height: 27px; font-weight: 700; }
.note { padding: 32px 0 0; font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; line-height: 1.4; }
.field-control {
  position: relative; height: 48px; padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-stroke-controls-default-enabled); border-radius: 8px;
  background: var(--color-surface-0);
}
.field-control:focus-within { outline: 2px solid var(--color-action-primary); outline-offset: 1px; }
.field-control input, .field-control select {
  flex: 1; min-width: 0; height: 100%;
  border: 0; padding: 0; background: none; outline: none;
  font-size: 16px; color: var(--color-glyphs-default);
  -webkit-appearance: none; appearance: none;
  text-overflow: ellipsis;
}
.field-control--select .icon { font-size: 24px; pointer-events: none; }
.field-control--pill { border-radius: 24px; padding: 0 16px 0 20px; }
.field-control--pill select { font-weight: 600; }
.field-control:has(:disabled) { border-color: var(--color-stroke-controls-default-disabled); }
.field-control :disabled { color: var(--color-glyphs-disabled); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-label { display: flex; align-items: center; gap: 6px; }
.line-swatch { width: 20px; border-top: 1px solid var(--color-chart-line); }
.line-swatch--accent { border-top: 2px solid var(--color-chart-accent-line); }
.toggle {
  width: 48px; height: 28px; padding: 2px;
  display: flex; align-items: center; justify-content: flex-start;
  border: 0; border-radius: 999px;
  background: var(--color-stroke-controls-default-enabled);
}
.toggle[aria-checked="true"] { justify-content: flex-end; background: var(--color-action-fill); }
.toggle-knob { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--color-on-action-primary); color: var(--color-action-fill); font-size: 14px; }
.toggle[aria-checked="false"] .toggle-knob .icon { visibility: hidden; }

.snackbar {
  height: 48px; padding: 4px 4px 4px 16px; margin-top: -8px;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  border-radius: 4px; background: var(--color-surface-inverse); color: var(--color-on-inverse);
  box-shadow: var(--shadow-snackbar);
  font: 400 14px/20px var(--font-system); letter-spacing: 0.25px;
}

.dialog-title { font: 400 24px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.dialog-text { font-size: 16px; line-height: 22.4px; }
.dialog-actions { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

/* ---- Pushed screens and placeholders ---- */
/* Both platforms: title left-aligned next to the back button (nav bar row 35, Common). */
.app-bar { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px; align-items: center; height: 56px; padding: 0 8px; }
.app-bar-title { text-align: left; font: 590 17px/22px var(--font-system); color: var(--color-glyphs-default); }
.app-bar--android { height: 64px; padding: 0 4px; }
.app-bar--android .app-bar-title { font: 400 20px/28px var(--font-system); }
.app-bar .icon-btn-spacer { display: none; }
.app-bar--noback { grid-template-columns: 1fr auto; padding-left: 16px; }
.app-bar-actions { display: flex; justify-self: end; }
.app-bar--ios.app-bar--tools .app-bar-actions .icon-btn { width: 40px; }
.tab-head { padding: 16px 16px 0; }
.pending { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px; }

/* ---- Login ---- */
.login { min-height: calc(100vh - var(--status-h) - var(--home-indicator-h) - 8px); display: flex; flex-direction: column; }
.login-logo { height: 150px; padding: 8px 16px; display: grid; place-items: center; }
.login-form { padding: 16px 24px; }
.field-with-link { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.field-with-link .field { width: 100%; }
.login-actions { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 16px 24px; }
.login-partner { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.login-footer { margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding: 8px 24px; font-size: 12px; line-height: 16.8px; color: var(--color-glyphs-accent); }
.login-footer-row { display: flex; align-items: center; justify-content: space-between; }
.login-footer-links { display: flex; justify-content: center; align-items: center; gap: 16px; }

/* ---- Goals, Accounts and account screens ---- */
.tab-head--row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px 16px; }
.card-head--spaced { padding-top: 12px; }
.card-actions--start { justify-content: flex-start; }
.btn .icon { font-size: 14px; }
.seg-option[aria-current="page"] { background: var(--color-surface-warm); border-color: var(--color-action-primary); color: var(--color-action-primary); font-weight: 590; }

.total { display: flex; flex-direction: column; gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 12px; line-height: 1.4; color: var(--color-glyphs-accent); }
.stat-num { font-size: 16px; line-height: 22.4px; font-weight: 700; }
.stat-grid { display: flex; gap: 24px; }
.stat-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.stat-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.big-number-cents { font-size: 16px; line-height: 18.88px; }

.account-groups { display: flex; flex-direction: column; padding-bottom: 8px; }
.account-group { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 8px; }
.account-row {
  width: 100%; display: flex; align-items: center;
  padding: 16px 0 16px 16px;
  border: 0; border-bottom: 1px solid var(--color-stroke-general-accent);
  background: none; text-align: left;
}
.account-row:last-child { border-bottom: 0; }
.account-row:active, .activity-row:active, .doc-row:active { background: var(--color-selected-fill); }
.account-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.account-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.account-row-names { min-width: 0; display: flex; flex-direction: column; }
.account-row-title { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22.4px; }
.account-row-sub, .account-row-status { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-row-values { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.account-row-value { font-size: 16px; line-height: 22.4px; }
.account-row-status.tone-up { color: var(--color-glyphs-feedback-success); }
.account-row-status.tone-down { color: var(--color-glyphs-feedback-danger); }
.account-row-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.account-row .list-row-chevron { align-self: center; margin: 0; }

.tag { flex-shrink: 0; padding: 2px 8px; border-radius: 20px; font-size: 10px; line-height: 14.3px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.tag--info { background: var(--color-tag-info-bg); color: var(--color-tag-info-fg); }
.tag--success { background: var(--color-pill-high-bg); color: var(--color-pill-high-fg); }
.tag--warning { background: var(--color-tag-warning-bg); color: var(--color-tag-warning-fg); }
.tag--neutral { background: var(--color-tag-neutral-bg); color: var(--color-tag-neutral-fg); }

.member { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 8px; }
.member-head { display: flex; align-items: center; gap: 12px; }
.member-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.member-name, .member-total { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.member-role { font-size: 16px; line-height: 1.2; }
.member-empty { padding: 12px 0; text-align: center; color: var(--color-glyphs-accent); }
.avatar--initials { display: grid; place-items: center; flex-shrink: 0; background: var(--color-surface-icon); color: var(--color-accent-text); font-weight: 700; font-size: 15px; }

.detail { display: flex; flex-direction: column; padding-bottom: 8px; }
.detail-section { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px; }
.detail-section .section-head { padding: 0; }
.card--flush { margin: 0; }
.funded-head { display: flex; justify-content: space-between; align-items: flex-start; }
.funded-amount { font-size: 14px; line-height: 20px; font-weight: 700; }
.stack-bar.progress span { min-width: 4px; }
.donut--sm, .donut--sm svg { width: 70px; height: 70px; }
.donut--sm span { font-size: 14px; }
.list-row-name { font-size: 16px; line-height: 22.4px; }
.detail-actions { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px 8px; }

.acct-tabs { padding: 0 16px 8px; }
.tabs-underline--fill { padding: 0; overflow: visible; }
.tabs-underline--fill .seg-option { flex: 1; padding: 12px 4px; }
.tabs-underline--fill .seg-option[aria-selected="true"] { padding-bottom: 11px; }
.acct-panel { gap: 0; padding-top: 8px; }
.alloc-summary { flex-direction: row; align-items: center; gap: 16px; }
.donut--alloc, .donut--alloc svg { width: 80px; height: 80px; }
.alloc-figures { display: flex; gap: 24px; }
.activity-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border: 0; border-bottom: 1px solid var(--color-stroke-general-accent);
  background: none; text-align: left;
}
.activity-row:last-child, .doc-row:last-child { border-bottom: 0; }
.activity-row .list-row-chevron { margin: 0 -12px 0 -8px; }
.activity-row-title { font-size: 16px; line-height: 24px; }
.activity-row-title--strong { font-weight: 700; }
.activity-row .list-row-sub { display: flex; align-items: center; gap: 8px; }
.activity-row-amount { flex-shrink: 0; font-size: 16px; line-height: 24px; white-space: nowrap; }
.doc-row {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 8px 16px; border: 0; border-bottom: 1px solid var(--color-stroke-general-accent);
  background: none; text-align: left; font-size: 16px; line-height: 24px;
}
.doc-row .icon { font-size: 14px; color: var(--color-glyphs-accent); }
.value-row-label--inline { flex-direction: row; align-items: center; gap: 4px; }
.value-row-value--inline { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn--inline { width: 24px; height: 24px; font-size: 16px; color: var(--color-action-primary); }
.lock-icon { font-size: 15px; color: var(--color-action-primary); }

.app-bar-title { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.app-bar-sub { font: 500 12px/14px var(--font-ui); color: var(--color-glyphs-accent); white-space: nowrap; }
.sheet-sections--text { gap: 24px; }
.sheet-sections--text p { font-size: 16px; line-height: 22.4px; }

.value-row--top { align-items: flex-start; }

/* ---- Insights (unit 7) ---- */
.insights-tabs { padding: 0 16px 8px; }
.tabs-underline .seg-option[aria-current="page"] {
  background: none; color: var(--color-glyphs-prominent); font-weight: 600;
  border-bottom: 2px solid var(--color-accent); padding-bottom: 11px;
}
.card-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head-row .btn--text { min-height: 48px; }
.seg-scope--flush { padding: 0; gap: 12px; }
.glance { display: flex; flex-direction: column; gap: 24px; padding: 8px 0 16px; border-radius: 16px; background: var(--color-surface-0); }
.glance .seg { margin: 0 16px; }
.quote-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px; }
.quote-tile {
  position: relative; height: 72px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 8px; background: var(--color-surface-0);
}
.quote-tile--on { border-color: var(--color-accent); }
.quote-tile:active, .quote-row:active, .video-hero:active, .video-card:active, .article-row:active, .glance-row:active { background: var(--color-selected-fill); }
.quote-dot { position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 50%; }
.quote-tile .quote-name { padding-left: 14px; }
.quote-tile .quote-change { white-space: nowrap; }
.glance-range { height: 150px; }
.glance-chart { display: block; width: 100%; height: 150px; }
.quote-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 16px; border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none; text-align: left;
}
.quote-row:last-child, .article-row:last-child, .glance-row:last-child { border-bottom: 0; }
.quote-row-names, .quote-row-values { display: flex; flex-direction: column; min-width: 0; }
.quote-row-values { align-items: flex-end; flex-shrink: 0; }
.quote-row-symbol, .quote-row-price { font-size: 16px; line-height: 24px; }
.quote-row-sub { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-row-pct { font-size: 12px; line-height: 16px; font-weight: 600; }

.insights-section { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 16px; }
.insights-section .section-head { align-items: flex-start; padding: 0; }
.insights-section .btn--text { min-height: 48px; margin-top: -4px; }
.video-hero, .video-card { width: 100%; padding: 0; border: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.video-thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--color-surface-warm); aspect-ratio: 112 / 72; }
.video-thumb--hero { border-radius: 16px; aspect-ratio: 16 / 9; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Play and duration badges sit on photos, so they stay white on a dark scrim in Light and Dark. */
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 12px;
}
.video-thumb--hero .video-play { width: 56px; height: 56px; font-size: 20px; }
.video-duration { position: absolute; right: 6px; bottom: 6px; padding: 0 4px; border-radius: 4px; background: rgb(0 0 0 / 0.65); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; }
.video-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-title { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--color-glyphs-default); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-title--hero { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 24px; }
.video-card .article-row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-row-title { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--color-glyphs-default); }
.article-row-sub { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.thumb { flex: none; width: 60px; height: 62px; border-radius: 8px; display: grid; place-items: center; background: var(--color-surface-warm); color: var(--color-accent); font-size: 22px; }
.thumb--img { overflow: hidden; }
.thumb--img img { width: 100%; height: 100%; object-fit: cover; }
.article-row {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 16px 0 16px 16px; border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none; text-align: left;
}
.article-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; margin-left: 8px; }
.article-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.article-row .article-row-sub {
  font-size: 14px; line-height: 19.6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.insights-foot { padding: 24px 16px; }
.watch-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.watch-foot .btn--text { min-height: 48px; flex: none; }
.search-pad { padding-bottom: 16px; }
.search-field .icon { font-size: 20px; color: var(--color-glyphs-accent); flex: none; }
.search-field input::-webkit-search-decoration, .search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sectors-card .section-title { margin-top: 4px; }
.sector-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sector-row { display: grid; grid-template-columns: 112px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.sector-label { color: var(--color-glyphs-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sector-track { position: relative; height: 8px; border-radius: 4px; background: var(--color-surface-warm); }
.sector-track::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--color-stroke-general-accent); }
.sector-bar { position: absolute; top: 0; bottom: 0; }
.sector-bar--up { left: 50%; border-radius: 0 4px 4px 0; background: var(--color-glyphs-feedback-success); }
.sector-bar--down { right: 50%; border-radius: 4px 0 0 4px; background: var(--color-glyphs-feedback-danger); }
.sector-value { text-align: right; font-weight: 600; font-size: 12px; line-height: 16px; }

.card-sub--sm { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.display-title--lg { font-size: 28px; line-height: 32px; }
.research-body { display: flex; flex-direction: column; gap: 16px; }
.research-feature { border: 1px solid var(--color-stroke-general-accent); border-radius: 16px; overflow: hidden; background: var(--color-surface-warm); }
.research-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.research-text { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.research-kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-glyphs-default); }
.display-title--research { font-size: 24px; line-height: 28px; }
.outlook-kicker { font-size: 12px; line-height: 18px; font-weight: 700; text-transform: uppercase; color: var(--color-accent-text); }
.research-stats { margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; }
.outlook-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: var(--color-surface-0); }
.outlook-stat-value { margin: 0; flex: none; font-size: 16px; line-height: 24px; font-weight: 600; }
.glance-row {
  width: 100%; display: flex; align-items: center; padding: 8px 4px 8px 16px;
  border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none; text-align: left;
}
.glance-row-label { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.glance-row-value { font-size: 14px; line-height: 20px; }
.podcast {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 16px; background: var(--color-surface-warm);
}
.podcast-player {
  width: 100%; min-height: 56px; margin-top: 4px; padding: 8px 16px 8px 8px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 28px; background: var(--color-surface-0);
}
.podcast-play { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-action-fill); color: var(--color-on-action-primary); font-size: 14px; }
.podcast-wave { flex: 1; min-width: 0; height: 32px; fill: var(--color-action-primary); }
.podcast-duration { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--color-glyphs-accent); font-variant-numeric: tabular-nums; }
.learn-row {
  display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
}
.learn-card { flex: 0 0 200px; scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.learn-thumb { position: relative; display: block; aspect-ratio: 200 / 120; border-radius: 12px; overflow: hidden; background: var(--color-surface-warm); }
.learn-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The format pill sits on a photo, so it stays white on a dark scrim in Light and Dark. */
.learn-format { position: absolute; left: 8px; top: 8px; padding: 0 8px; border-radius: 999px; background: rgb(0 0 0 / 0.65); color: #fff; font-size: 11px; line-height: 20px; font-weight: 600; }
.learn-title { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--color-glyphs-default); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.learn-cta { margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-action-primary); }
.learn-card:active, .podcast-player:active { opacity: 0.8; }

.article-hero { height: 250px; display: grid; place-items: center; background: var(--color-surface-warm); color: var(--color-accent); font-size: 56px; }
.article { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; font-size: 16px; line-height: 22.4px; }
.article h3 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--color-glyphs-prominent); }
.display-title--article { font-size: 28px; line-height: 32px; }
.article-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-surface-warm); }
.article-para { color: var(--color-glyphs-default); }
.article .fine { margin-top: 8px; }
.media-stage { position: relative; aspect-ratio: 16 / 9; background: var(--color-surface-warm); }
.media-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-stage--audio { display: grid; place-items: center; padding: 24px; }
.media-wave-wrap { display: block; width: 100%; }
.media-wave { display: block; width: 100%; height: 96px; fill: var(--color-action-primary); }
/* The play button can sit on a photo, so it stays white on a dark scrim in Light and Dark. */
.media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 24px;
}
.media-stage--audio .media-play { background: var(--color-action-fill); color: var(--color-on-action-primary); }
.media-play:active { opacity: 0.8; }

/* ---- More and Preferences (unit 7) ---- */
.list-row-label { font-size: 16px; line-height: 24px; color: var(--color-glyphs-default); }
.list-row-value { flex-shrink: 0; font-size: 16px; line-height: 24px; color: var(--color-glyphs-default); }
.list-row--plain:has(.list-row-label) { padding: 8px 4px 8px 16px; }
.list-row-icon { width: 24px; flex-shrink: 0; display: grid; place-items: center; margin-right: 8px; font-size: 18px; color: var(--color-accent); }
/* AV outlines carry padding in their 24px grid; drawn larger and bolder they match the Font Awesome outlines beside them. */
.list-row-icon .icon--stroke { font-size: 21px; }
.list-row-icon .icon--stroke path { stroke-width: 2px; }
:root[data-mode="dark"] .when-light, :root:not([data-mode="dark"]) .when-dark { display: none; }
.pref-head { padding: 24px 16px 8px; }
.pref-group { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px; }

/* ---- Preference Center (amendment 7) ---- */
.pref-head--detail { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.app-bar + .pref-group { padding-top: 16px; }
.pref-group > .btn--block { margin-top: 8px; }
.pref-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px 4px; border-bottom: 1px solid var(--color-stroke-general-accent); }
.pref-item:last-child { border-bottom: 0; }
.pref-item-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-glyphs-prominent); }
.pref-item-value { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.pref-item-hint { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.pref-item-action { min-height: 44px; }
.pref-more {
  margin: -10px 0; padding: 10px 4px; border: 0; background: none;
  font-size: 16px; line-height: 24px; font-weight: 600; color: var(--color-action-primary);
}
.pref-more:active, .pref-action:active { background: var(--color-segment-track); }
.pref-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pref-choices .choice { margin: 0; padding: 0 16px; }
.pref-switch { gap: 4px; padding-bottom: 12px; }
.pref-switch .toggle-row { align-self: stretch; gap: 16px; min-height: 44px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.pref-switch .toggle { flex: none; }
.pref-signin-list { display: flex; flex-direction: column; }
.pref-signin { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--color-stroke-general-accent); }
.pref-picked { padding-bottom: 8px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); overflow-wrap: anywhere; }
.pref-actions { margin-top: 16px; }
.pref-action {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none;
  font-size: 16px; line-height: 24px; font-weight: 600; text-align: center; color: var(--color-action-primary);
}
.pref-action:last-child { border-bottom: 0; }
.pref-action--danger { color: var(--color-glyphs-feedback-danger); }
.pref-body { font-size: 16px; line-height: 24px; }
.pref-card { gap: 8px; }
.pref-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pref-card-head .card-title { min-width: 0; overflow-wrap: anywhere; }
.pref-card-btn { flex: none; height: 40px; min-width: 44px; padding: 0 16px; font-size: 14px; }
.pref-card > .pref-card-btn { align-self: flex-start; }
.pref-inert, .pref-inert:active { border-color: var(--color-stroke-controls-default-disabled); background: none; color: var(--color-glyphs-disabled); }
.pref-details { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pref-details dt { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-glyphs-accent); }
.pref-details dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.pref-details strong { font-weight: 600; color: var(--color-glyphs-prominent); }
.pref-linked { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--color-stroke-general-accent); }
.pref-linked:last-child { border-bottom: 0; }
.pref-linked-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pref-linked-status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pref-linked-status.pref-item-hint { font-weight: 400; }
.pref-form { display: flex; flex-direction: column; gap: 16px; }
/* Communications (unit 22) */
.pref-radios { display: flex; gap: 4px; padding: 2px; border-radius: 100px; background: var(--color-surface-0); }
.pref-radio {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px;
  border: 1px solid transparent; border-radius: 100px; font-size: 14px; line-height: 20px; font-weight: 510; color: var(--color-glyphs-prominent);
}
.pref-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pref-radio:has(input:checked) { background: var(--color-surface-warm); border-color: var(--color-action-primary); color: var(--color-action-primary); font-weight: 600; }
.pref-radio:has(input:focus-visible) { outline: 2px solid var(--color-action-primary); outline-offset: 2px; }
.pref-radio:has(input:disabled) { color: var(--color-glyphs-disabled); }
.pref-radio:has(input:disabled) input { cursor: default; }
.pref-radio:has(input:disabled:checked) { background: none; border-color: var(--color-stroke-controls-default-disabled); color: var(--color-glyphs-accent); }
.pref-doc-row .list-row-text { gap: 2px; }
.pref-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; }
.pref-status.tone-up { font-weight: 600; }
.pref-setall { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pref-setall .pref-item-label { flex: 1; }
.pref-deliver { display: flex; align-items: center; gap: 12px; }
.pref-deliver-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pref-deliver-to { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.pref-count { font-weight: 600; color: var(--color-action-primary); }
.pref-members { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--color-stroke-general-accent); }
.pref-members ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 20px; }
.pref-subhead { padding-top: 8px; }
.pref-notice { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: var(--color-segment-track); font-size: 14px; line-height: 20px; }
.pref-notice .icon { flex: none; margin-top: 2px; color: var(--color-glyphs-accent); }
.pref-link { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--color-action-primary); text-decoration: underline; }
.pref-pause-for { align-self: stretch; padding-top: 8px; }
.pref-pause-for select:disabled { color: var(--color-glyphs-disabled); }
.pref-alerts { gap: 12px; }
.pref-alerts--paused .pref-alert-card { opacity: 0.55; }
.pref-alert-card .pref-card-head { align-items: center; }
.pref-alert-list { padding: 0; }
.pref-alert-list .choice { margin: 0; }
.choice:has(input:disabled) { color: var(--color-glyphs-disabled); }
.choice input:disabled:checked { background: var(--color-glyphs-disabled); }
.pref-alert-card .toggle:disabled { opacity: 0.55; }
.pref-example-btn { align-self: flex-start; min-height: 44px; }
.pref-example { padding: 12px; border-radius: 8px; background: var(--color-segment-track); font-size: 14px; line-height: 20px; }
.pref-example strong { font-weight: 700; }
/* Services (unit 23) */
.pref-card-body { font-size: 14px; line-height: 20px; color: var(--color-glyphs-default); }
.pref-group > .pref-item-hint { padding: 0 4px; }
.pref-item--read { padding-bottom: 12px; }
.pref-field { align-self: stretch; }
.pref-bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; }
.pref-or { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-glyphs-accent); }
.pref-card-link { align-self: flex-start; min-height: 44px; }
.pref-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-au-lines { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pref-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pref-choice-text { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.pref-choice-text .pref-item-hint { font-weight: 400; }
.pref-stack { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.pref-person .avatar { width: 40px; height: 40px; flex: none; }
.pref-person .avatar--initials { border-radius: 50%; }
.pref-person .list-row-sub { white-space: normal; }
/* Beneficiaries (unit 25) */
.pref-card-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pref-title-row { display: flex; align-items: center; gap: 2px; }
.pref-title-info { width: 32px; height: 32px; margin: -6px 0; font-size: 18px; color: var(--color-action-primary); }
.pref-alloc { display: flex; flex-direction: column; }
.pref-alloc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-stroke-general-accent); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.pref-alloc-row:last-child { border-bottom: 0; }
.pref-alloc-row--head { padding-top: 4px; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-glyphs-accent); }
.pref-alloc-row > span:last-child { flex: none; font-weight: 600; }
.pref-alloc-row--head > span:last-child { font-weight: 700; }
.pref-steps { display: flex; gap: 4px; margin: 0; padding: 2px; list-style: none; border-radius: 100px; background: var(--color-surface-0); }
.pref-step { flex: 1; min-width: 0; padding: 6px 4px; border: 1px solid transparent; border-radius: 100px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 510; color: var(--color-glyphs-accent); }
.pref-step.is-current { background: var(--color-surface-warm); border-color: var(--color-action-primary); font-weight: 600; color: var(--color-action-primary); }
.pref-bf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.pref-bf-head .btn--text:disabled { color: var(--color-glyphs-disabled); }
.pref-bf-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--color-stroke-general-accent); }
.pref-bf-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pref-bf-name .pref-item-value { font-weight: 600; color: var(--color-glyphs-prominent); }
.pref-bf-alloc { flex: none; width: 92px; height: 44px; padding: 0 10px; }
.pref-bf-alloc input { text-align: right; }
.pref-bf-total { padding-top: 4px; border-top: 1px solid var(--color-stroke-general-accent); font-size: 14px; line-height: 20px; font-weight: 600; }
.pref-bf-errors { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border: 1px solid var(--color-glyphs-feedback-danger); border-radius: 12px; }
.pref-pair { display: flex; gap: 8px; padding-top: 8px; }
.pref-pair .btn { flex: 1; min-width: 0; }
.pref-pair + .btn--block { margin-top: 0; }
.pref-reveal { flex: none; height: 40px; margin-right: -10px; padding: 0 10px; font-size: 14px; font-weight: 600; }
.pref-trailing { flex: none; color: var(--color-glyphs-accent); }
.pref-links { display: flex; flex-direction: column; align-items: flex-start; }
.pref-links .pref-link { display: block; padding: 12px 0; text-align: left; font-size: 14px; line-height: 20px; }
.pref-link-icon { display: inline-block; margin-left: 6px; font-size: 12px; vertical-align: -1px; }
.pref-processing { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; text-align: center; }
.pref-processing .pref-item-label { font-weight: 700; letter-spacing: 0.02em; color: var(--color-glyphs-prominent); }
.pref-spinner { width: 48px; height: 48px; margin-bottom: 8px; border: 4px solid var(--color-stroke-general-accent); border-top-color: var(--color-action-primary); border-radius: 50%; animation: pref-spin 900ms linear infinite; }
@keyframes pref-spin { to { transform: rotate(360deg); } }
.pref-success { display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px 12px 16px; border: 1px solid var(--color-glyphs-feedback-success); border-radius: 12px; background: var(--color-pill-high-bg); }
.pref-success-icon { flex: none; margin-top: 2px; font-size: 20px; color: var(--color-glyphs-feedback-success); }
.pref-success-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.pref-success .icon-btn { flex: none; margin: -8px 0; }
.pref-ack .choice { margin: 0; border: 0; font-weight: 600; }
.choice.pref-check { justify-content: flex-start; gap: 12px; }
.choice.pref-check input {
  order: -1; position: relative; width: 22px; height: 22px; -webkit-mask: none; mask: none;
  border: 2px solid var(--color-stroke-controls-default-enabled); border-radius: 4px; background: var(--color-surface-0);
}
.choice.pref-check input:checked { border-color: var(--color-action-primary); background: var(--color-action-primary); }
.choice.pref-check input:checked::after {
  content: ''; position: absolute; inset: 1px; background: var(--color-surface-0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pref-check .pref-choice-text { padding: 10px 0; }
.pref-sheet-hint { padding-top: 8px; }
/* ---- Positions and Activity tabs (unit 8) ---- */
.draft-panel { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 16px; }
.filter-bar {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 56px;
  border: 0; background: none; text-align: left;
}
.filter-bar:active, .check-photo:active, .position-row:active { background: var(--color-selected-fill); }
.filter-bar-icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 8px; background: var(--color-surface-warm); color: var(--color-accent-text); font-size: 18px;
}
.filter-bar-text { display: flex; flex-direction: column; min-width: 0; }
.filter-bar-kicker { font-size: 10px; line-height: 14px; font-weight: 600; text-transform: uppercase; color: var(--color-glyphs-accent); }
.filter-bar-value { font-size: 14px; line-height: 20px; color: var(--color-glyphs-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.positions-card, .activity-day {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 16px; background: var(--color-surface-0);
}
.positions-card .list, .activity-day .list { border: 0; border-radius: 0; border-top: 1px solid var(--color-stroke-general-accent); }
.positions-head, .activity-day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px; }
.positions-head-main, .positions-total { display: flex; flex-direction: column; gap: 2px; }
.positions-total { align-items: flex-end; }
.position-group {
  padding: 8px 16px; background: var(--color-surface-warm);
  font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; color: var(--color-accent-text);
}
.position-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 16px;
  border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none; text-align: left;
}
.position-row:last-child { border-bottom: 0; }
.position-row--static { padding-right: 16px; }
.position-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.position-row-symbol, .position-row-value { font-size: 16px; line-height: 24px; font-weight: 600; }
.position-row-values { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.position-row-change { font-size: 12px; line-height: 16px; font-weight: 600; }
.position-row .list-row-chevron { margin: 0; }

.pos-detail { display: flex; flex-direction: column; padding-bottom: 16px; }
.pos-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 12px; }
.pos-symbol { font: 400 28px/34px var(--font-display); color: var(--color-glyphs-prominent); text-align: center; }
.pos-name { font-size: 16px; line-height: 22px; color: var(--color-glyphs-accent); text-align: center; }
.pos-quote { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; }
.pos-price { display: flex; flex-direction: column; min-width: 0; }
.pos-price-value { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--color-glyphs-prominent); }
.pos-price-change { font-size: 16px; line-height: 22px; white-space: nowrap; }
.pos-range { display: grid; gap: 0 12px; margin: 0; font-size: 13px; line-height: 18px; color: var(--color-glyphs-accent); }
.pos-range div { display: grid; grid-template-columns: 56px auto; }
.pos-range--nav div { grid-template-columns: max-content auto; column-gap: 12px; }
.pos-range dd { margin: 0; text-align: right; color: var(--color-glyphs-prominent); font-variant-numeric: tabular-nums; }
.pos-tabs { padding-bottom: 0; }
.pos-card { padding: 0; gap: 0; overflow: hidden; }
.pos-card .value-list { border: 0; border-radius: 0; background: none; }
.lot-title { padding: 12px 16px 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--color-glyphs-prominent); }
.pos-chart-tab { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.pos-chart-panel { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.pos-chart-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pos-chart-change { font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.pos-chart-label { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.pos-chart--up .chart-line { stroke: var(--color-glyphs-feedback-success); stroke-width: 2; }
.pos-chart--down .chart-line { stroke: var(--color-glyphs-feedback-danger); stroke-width: 2; }
.pos-news { padding-top: 12px; }
.pos-info-tab { display: flex; flex-direction: column; padding: 4px 0 8px; }
.pos-info .card-title { padding: 16px 16px 8px; }
.pos-info-text { padding: 0 16px 8px; font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.pos-info .fine.pos-info-text { padding: 8px 16px 16px; font-size: 12px; line-height: 1.4; }
.pos-info .legend { border: 0; border-radius: 0; border-bottom: 1px solid var(--color-stroke-general-accent); }
.pos-info .legend .legend-row:last-child { border-bottom: 0; }
.pos-rating { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 12px; }
.pos-rating .pos-info-text { padding: 0; }
.pos-rating-consensus { font: 400 28px/34px var(--font-display); color: var(--color-glyphs-prominent); }
.pos-rating .stack-bar { margin-top: 8px; }
.lot-scroll { margin: 8px 0; overflow-x: auto; background: var(--color-surface-0); border-block: 1px solid var(--color-stroke-general-accent); }
.pos-detail .seg-panel > .pad { padding-top: 8px; }
.lot-scroll:focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 2px; }
.lot-table { border-collapse: collapse; min-width: 560px; font-size: 14px; line-height: 20px; }
.lot-table th, .lot-table td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--color-stroke-general-accent); }
.lot-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--color-surface-0); }
.lot-table thead th { font-size: 12px; font-weight: 600; color: var(--color-glyphs-accent); background: var(--color-surface-warm); }
.lot-table tbody tr:last-child > * { border-bottom: 0; }
.lot-empty { text-align: left !important; color: var(--color-glyphs-accent); }

.activity-row--draft .list-row-text { flex: 1; min-width: 0; }
.activity-row--draft .activity-row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-day-head { align-items: center; padding: 12px 16px; }
.activity-day-head .card-title { font-size: 16px; line-height: 24px; }

.filter-groups { display: flex; flex-direction: column; gap: 8px; }
.filter-group { border: 1px solid var(--color-stroke-general-accent); border-radius: 8px; background: var(--color-surface-0); }
.filter-group summary { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 16px; list-style: none; cursor: pointer; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group[open] summary .icon { transform: rotate(180deg); }
.filter-group-title { flex: 1; font-size: 16px; line-height: 24px; font-weight: 600; }
.filter-group-value { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.choice-list { display: flex; flex-direction: column; padding: 0 0 8px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin: 0 16px;
  border-bottom: 1px solid var(--color-stroke-general-accent); font-size: 16px; line-height: 24px;
}
.choice:last-child { border-bottom: 0; }
.choice:has(input:checked) { font-weight: 600; }
.choice input {
  appearance: none; margin: 0; width: 20px; height: 20px; flex: none; border-radius: 4px; background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.choice input:checked { background: var(--color-action-primary); }
.choice:has(input:focus-visible) { outline: 2px solid var(--color-action-primary); outline-offset: 2px; border-radius: 4px; }

.seg-scroll { position: relative; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll .seg { width: max-content; }
.seg-scroll .seg-option { flex: none; padding: 0 16px; white-space: nowrap; }
.doc-list-row { width: 100%; border: 0; background: none; text-align: left; }

/* My Team, Concept A (amendment 20) */
.team { position: relative; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.team .card { margin: 0; }
.team-brand { display: grid; place-items: center; padding: 4px 0; }
.team-brand img { display: block; }
.team-hero { align-items: center; text-align: center; gap: 16px; padding: 24px 16px 20px; }
.team-hero-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-avatar); }
.team-who { display: flex; flex-direction: column; gap: 4px; }
.team-hero-name { font: 400 26px/32px var(--font-display); color: var(--color-glyphs-prominent); }
.team-hero-role { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.team-wide { width: 100%; }
.team-quick { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.team-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--color-action-primary);
}
.team-quick-btn .icon-circle {
  width: 52px; height: 52px; border-radius: 26px; font-size: 18px; color: var(--color-action-primary);
  background: var(--color-surface-warm); border: 1px solid var(--color-stroke-general-accent);
}
.team-quick-btn:active .icon-circle { background: var(--color-segment-track); }
.team-meet { flex-direction: row; align-items: flex-start; gap: 14px; }
.team-date {
  width: 60px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 0 10px;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-warm);
}
.team-date-m { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; color: var(--color-accent-text); }
.team-date-d { font: 400 26px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.team-date-w { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.team-meet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.team-meet-main .btn { margin-top: 10px; }
.team-meet-note { font-size: 13px; line-height: 18px; color: var(--color-glyphs-accent); }
.team-section-title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); margin: 8px 0 -4px; }
.team-list { padding: 4px 16px; gap: 0; }
.team-row { gap: 12px; padding: 12px 0; color: inherit; }
.team-row:active { opacity: 0.7; }
.team-row .avatar--initials { width: 40px; height: 40px; border-radius: 50%; }
.team-row .list-row-title { font-weight: 600; }
.team-row .list-row-sub { white-space: normal; }
.team-row-icon {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 20px;
  background: var(--color-surface-icon); color: var(--color-accent); font-size: 16px;
}
.sheet:has(.team-sheet) { top: auto; }
.team-sheet { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 24px calc(var(--home-indicator-h) + 24px); text-align: center; }
.team-sheet-initials { width: 80px; height: 80px; border-radius: 50%; font-size: 26px; }
.team-sheet .team-quick { margin-top: 4px; }
.team-facts { width: 100%; margin: 0; text-align: left; border-top: 1px solid var(--color-stroke-general-accent); }
.team-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-stroke-general-accent); font-size: 14px; line-height: 20px; }
.team-facts dt { color: var(--color-glyphs-accent); }
.team-facts dd { margin: 0; color: var(--color-glyphs-prominent); text-align: right; }

/* ---- Documents (amendment 21): Concept C with Concept B's search and filters ---- */
.docs { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.docs .card { margin: 0; }
.docs-brand { display: grid; place-items: center; padding: 4px 0; }
.docs-brand img { display: block; }
.docs-search { gap: 10px; }
.docs-search .icon { font-size: 20px; color: var(--color-glyphs-accent); }
.docs-field { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--color-glyphs-default); }
.docs-field::placeholder { color: var(--color-glyphs-accent); }
.docs-field::-webkit-search-cancel-button { display: none; }
.docs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; min-width: 0; }
.docs-chip { flex-shrink: 1; gap: 4px; max-width: 100%; min-width: 0; padding: 0 10px 0 14px; color: var(--color-glyphs-default); }
.docs-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--color-action-primary); }
.docs-chip .icon { flex: none; font-size: 18px; color: var(--color-glyphs-accent); }
.docs-chip--on { border-color: var(--color-action-primary); background: var(--color-surface-warm); }
.docs-tax { gap: 14px; }
.docs-tax-head { display: flex; flex-direction: column; gap: 2px; }
.docs-tax-title { font: 400 24px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.docs-tax-note { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.docs-tax-list { display: flex; flex-direction: column; padding: 0 12px; border: 1px solid var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-0); }
.docs-tax-list .list-row-title { font-weight: 500; }
.docs-wide { width: 100%; }
.docs-wide .icon--stroke path { stroke-width: 2px; }
.docs-group { display: flex; flex-direction: column; gap: 16px; }
.docs-section { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); margin: 8px 0 -6px; }
.docs-month { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--color-glyphs-accent); margin: 0 0 -8px 4px; }
.docs-list { padding: 0 12px; gap: 0; }
:root:not([data-mode="dark"]) .card.docs-list, :root:not([data-mode="dark"]) .card.team-list { border-color: var(--color-stroke-general-accent); background: var(--color-surface-0); }
.docs-row { gap: 12px; padding: 12px 0; color: inherit; }
.docs-row .list-row-title { font-weight: 500; }
.docs-row--new .list-row-title { font-weight: 700; color: var(--color-glyphs-prominent); }
.docs-ic {
  position: relative; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 20px;
  background: var(--color-surface-icon); color: var(--color-accent); font-size: 18px;
}
.docs-ic .icon--stroke { font-size: 21px; }
.docs-ic .icon--stroke path { stroke-width: 2px; }
.docs-ic--new::after {
  content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 5px;
  background: var(--color-action-primary); box-shadow: 0 0 0 2px var(--color-surface-0);
}
.docs--kb { padding-bottom: 320px; }
.docs-kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
.docs-kb .kb { margin-top: 0; }
.docs-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; text-align: center; }
.docs-empty-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--color-glyphs-prominent); }
.sheet:has(.docs-filter-sheet) { top: auto; }
.docs-filter-sheet { display: flex; flex-direction: column; gap: 12px; padding: 0 16px calc(var(--home-indicator-h) + 16px); }
.docs-checks { padding: 0 16px; border: 1px solid var(--color-stroke-general-accent); border-radius: 16px; background: var(--color-surface-0); }
.docs-checks .choice > span:first-of-type { flex: 1; white-space: nowrap; }
.docs-checks .choice--all { font-weight: 600; }
.docs-count { flex: none; font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.docs-sheet-actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.sheet:has(.docs-preview) { top: auto; }
.sheet:has(.docs-group-sheet) { top: auto; }
.docs-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 24px calc(var(--home-indicator-h) + 24px); text-align: center; }
.docs-page {
  width: 150px; height: 194px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 6px; background: var(--color-surface-0); box-shadow: var(--shadow-card);
}
.docs-page img { display: block; margin-bottom: 6px; }
.docs-page i { display: block; height: 5px; border-radius: 3px; background: var(--color-stroke-general-accent); }
.docs-page i.s { width: 55%; }
.docs-page i.m { width: 75%; }
.docs-page i.h { height: 22px; margin: 4px 0; background: var(--color-surface-warm); }
.docs-page-foot { margin-top: auto; font-size: 9px; color: var(--color-glyphs-accent); }
.docs-preview-head { display: flex; flex-direction: column; gap: 2px; }
.docs-preview-title { font: 400 24px/30px var(--font-display); color: var(--color-glyphs-prominent); }
.docs-quick { width: 100%; display: flex; justify-content: center; gap: 40px; }
.docs-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--color-action-primary);
}
.docs-quick-btn .icon-circle {
  width: 52px; height: 52px; border-radius: 26px; font-size: 21px; color: var(--color-action-primary);
  background: var(--color-surface-warm); border: 1px solid var(--color-stroke-general-accent);
}
.docs-quick-btn .icon--stroke path { stroke-width: 2px; }
.docs-quick-btn:active .icon-circle { background: var(--color-segment-track); }
.docs-facts { width: 100%; margin: 0; text-align: left; border-top: 1px solid var(--color-stroke-general-accent); }
.docs-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-stroke-general-accent); font-size: 14px; line-height: 20px; }
.docs-facts dt { color: var(--color-glyphs-accent); }
.docs-facts dd { margin: 0; color: var(--color-glyphs-prominent); text-align: right; }
.docs-group-sheet { display: flex; flex-direction: column; gap: 12px; padding: 0 16px calc(var(--home-indicator-h) + 24px); }
.docs-group-sheet .card { margin: 0; }
.docs-group-sub { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); text-align: center; }
.btn--icon { height: 40px; padding: 0 16px; font-size: 14px; }

.move-money { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.move-money .note { padding-top: 0; }
.check-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 140px; padding: 12px;
  border: 1px dashed var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-0); text-align: center;
}
.form-actions { display: flex; flex-direction: column; gap: 16px; }

/* ---- Balance Sheet (Cursor draft) ---- */
.balance-sheet { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.balance-sheet .note { padding-top: 0; }
.bs-block { display: flex; flex-direction: column; gap: 4px; }
.bs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bs-total { font: 400 22px/28px var(--font-display); color: var(--color-glyphs-prominent); }
.bs-block .account-group { padding: 12px 0 0; }
.section-title--sm { font-size: 16px; line-height: 22px; }

/* ---- Move money (amendment 1 unit 11, content from Jamie's flow) ---- */
.btn:disabled { background: var(--color-stroke-controls-default-disabled); border-color: transparent; color: var(--color-on-action-primary); cursor: default; filter: none; }
.mm { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.mm-head { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.mm-lede { font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent); }
.mm-steps { display: flex; gap: 8px; align-items: center; list-style: none; padding: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--color-glyphs-accent); }
.mm-steps li + li::before { content: ""; display: inline-block; width: 24px; margin-right: 8px; vertical-align: middle; border-top: 1px solid var(--color-stroke-general-accent); }
.mm-steps .is-active { color: var(--color-accent-text); }
.mm-pick {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "value chev"; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 12px 8px 16px; text-align: left;
  border: 1px solid var(--color-stroke-controls-default-enabled); border-radius: 8px; background: var(--color-surface-0); color: var(--color-glyphs-default);
}
.mm-pick:active, .mm-option:active, .mm-choice:active { background: var(--color-selected-fill); }
.mm-pick > .icon { grid-area: chev; font-size: 20px; color: var(--color-action-primary); }
.mm-pick-value { grid-area: value; display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-pick-text, .mm-option-text, .mm-position-main { display: flex; flex-direction: column; min-width: 0; }
.mm-pick-title, .mm-option-title { font-size: 16px; line-height: 22px; font-weight: 600; }
.mm-pick-sub, .mm-option-sub { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.mm-pick-placeholder { font-size: 16px; line-height: 22px; color: var(--color-glyphs-accent); }
.mm-hint { font-size: 12px; line-height: 16px; color: var(--color-glyphs-accent); }
.mm-hint:has(.icon) { display: flex; gap: 6px; align-items: flex-start; }
.mm-hint .icon { flex: none; margin-top: 2px; }
.mm-error { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--color-glyphs-feedback-danger); }
.mm-error .icon { flex: none; margin-top: 1px; }
.field-control--error { border-color: var(--color-glyphs-feedback-danger); }
.mm-prefix { color: var(--color-glyphs-accent); }
.mm-choices { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.mm-choice-row { display: flex; gap: 4px; padding: 2px; border-radius: 24px; background: var(--color-surface-0); }
.mm-choice { flex: 1; min-height: 40px; padding: 0 8px; border: 1px solid transparent; border-radius: 22px; background: none; color: var(--color-glyphs-default); font-size: 14px; font-weight: 600; }
.mm-choice[aria-pressed="true"] { background: var(--color-surface-warm); border-color: var(--color-action-primary); color: var(--color-action-primary); }
.mm-summary { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; }
.mm-summary .icon { flex: none; color: var(--color-glyphs-feedback-success); }
.mm-fold { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-change { flex: none; min-height: 48px; padding: 0 0 0 12px; }
.mm-notice { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--color-tag-info-bg); color: var(--color-tag-info-fg); font-size: 14px; line-height: 20px; }
.mm-notice > .icon { flex: none; margin-top: 2px; }
.mm-notice-title { font-weight: 700; }
.mm-notice--zelle {
  border: 1px solid color-mix(in srgb, var(--color-brand-zelle) 35%, transparent);
  background: color-mix(in srgb, var(--color-brand-zelle) 8%, var(--color-surface-0));
  color: var(--color-glyphs-default);
}
.mm-notice--zelle > .icon { color: var(--color-brand-zelle); }
.mm-notice--zelle .mm-notice-title { color: var(--color-glyphs-prominent); }
.mm-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding: 12px 16px; border: 1px solid var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-0); }
.mm-balances dt { font-size: 10px; line-height: 14px; font-weight: 600; text-transform: uppercase; color: var(--color-glyphs-accent); }
.mm-balances dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.mm-switch { align-self: flex-start; }
.mm-positions { display: flex; flex-direction: column; border: 1px solid var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-0); overflow: hidden; }
.mm-position { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--color-stroke-general-accent); }
.mm-position:last-child { border-bottom: 0; }
.mm-position input, .mm-ack input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-action-primary); }
.mm-position-main { flex: 1; }
.mm-position-symbol { font-weight: 600; }
.mm-position-values { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 20px; }
.mm-total { font-size: 16px; line-height: 22px; font-weight: 600; }
.mm-static { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 22px; }
.mm-section { display: flex; flex-direction: column; gap: 4px; }
.mm .value-row-value { white-space: normal; max-width: 62%; }
.mm-ack { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.mm-ack input { margin-top: 1px; }
.mm-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.mm-actions--pair, .sheet-actions--pair { flex-direction: row; }
.mm-actions--pair .btn, .sheet-actions--pair .btn { flex: 1; }
.mm-options { display: flex; flex-direction: column; border: 1px solid var(--color-stroke-general-accent); border-radius: 12px; background: var(--color-surface-0); overflow: hidden; }
.mm-option { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--color-stroke-general-accent); background: none; text-align: left; color: var(--color-glyphs-default); }
.mm-option:last-child { border-bottom: 0; }
.mm-option[aria-pressed="true"] { background: var(--color-selected-fill); }
.mm-option-text { flex: 1; }
.mm-option-value { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; text-align: right; }
.mm-options .mm-hint { padding: 12px 16px; }
.mm-link { align-self: flex-start; gap: 8px; margin-top: 16px; }
.mm-zelle-mark { display: flex; justify-content: center; }
.zelle-mark { color: var(--color-brand-zelle); font-family: var(--font-ui); font-weight: 700; }
.mm-zelle-terms-body {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; max-height: min(36vh, 280px); overflow-y: auto;
  border: 1px solid var(--color-stroke-general-accent); border-radius: 8px; background: var(--color-surface-0);
  font-size: 14px; line-height: 20px; color: var(--color-glyphs-accent);
}
.mm-zelle-terms-body p { margin: 0; }
.zelle-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.zelle-logo--tile { width: 48px; height: 48px; }
.mm-numbered { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; font-size: 14px; line-height: 20px; }
.mm-numbered li { display: flex; gap: 12px; align-items: flex-start; }
.mm-num { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--color-stroke-general-accent); border-radius: 50%; background: var(--color-surface-0); color: var(--color-accent-text); font-size: 12px; font-weight: 700; }
.mm-numbered--text { display: block; margin: 0; padding-left: 20px; list-style: decimal; font-size: 16px; line-height: 24px; }
.mm-numbered--text li { display: list-item; }
.mm-numbered--text li + li { margin-top: 12px; }
.mm-step-check { display: inline-block; margin-right: 8px; vertical-align: -4px; font-size: 20px; color: var(--color-glyphs-feedback-success); }
.mm-done { gap: 24px; }
.mm-done-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mm-done-icon { font-size: 40px; color: var(--color-glyphs-feedback-success); }
.mm-next { padding-bottom: 8px; }
.mm-next-title { padding-bottom: 12px; border-bottom: 1px solid var(--color-stroke-general-accent); font: 400 22px/28px var(--font-display); color: var(--color-glyphs-prominent); }
.mm-next-foot { border-top: 1px solid var(--color-stroke-general-accent); padding-top: 4px; }
.mm-done .mm-actions { align-self: stretch; }
