/* Orvia Design System v1 · 2026-10-26
   Tokens + components for HTML prototypes. Pair with orvia-icons.js.
   Rules and Swift mapping: index.html (same folder). Prefix: --o-* tokens, .o-* classes.
   State classes (.is-hover / .is-active / .is-focus / .is-on / .is-disabled) mirror real
   pseudo-states so a static board can show them. */

:root{
  /* Surfaces: desk (outside the window) → canvas (window) → paper (cards, menus) */
  --o-desk:#E4E2DD; --o-canvas:#F7F5F0; --o-paper:#FFFFFF;
  --o-hover:#F8F7F4; --o-thumb:#EFECE6; --o-control:#EEEEEE; --o-control-hover:#E5E5E3;
  /* Text */
  --o-ink:#1D1D1F; --o-muted:#6E6E73; --o-meta:#858585; --o-preview:#9A9A9E; --o-quiet:#B5B5B5;
  --o-divider:rgba(0,0,0,.07); --o-focus-line:rgba(0,0,0,.28);
  /* Action: ink pill, inverted in dark */
  --o-action:#151517; --o-action-hover:#2C2C2F; --o-on-action:#FFFFFF;
  /* Brand terracotta: AI mark, unread dot, keyboard focus. Nothing else. */
  --o-accent:#AE532D; --o-accent-ink:#9A4524; --o-wash:rgba(0,0,0,.045); --o-wash-line:rgba(0,0,0,.18);
  --o-ai-dot:#4070FF; --o-ai-glow:rgba(70,110,255,.34);
  /* Semantic */
  --o-ok:#3B8A5A; --o-warn:#B7791F; --o-warn-wash:rgba(183,121,31,.12);
  --o-danger:#E5484D; --o-danger-ink:#C42E2D; --o-danger-wash:rgba(229,72,77,.10); --o-star:#F2B705;
  /* File-type badges (ComposeAttachmentTypeBadge) */
  --o-file-image:#008FA8; --o-file-pdf:#C42E2D; --o-file-doc:#82B4E4; --o-file-archive:#6F7174; --o-file-other:#A8A9AB;
  /* Account badges */
  --o-acct-gmail:#EA4335; --o-acct-outlook:#1677D6; --o-acct-imap:#8A8A8F;
  /* Avatar tints: bg / fg */
  --o-av1-bg:#ECE8F7; --o-av1-fg:#5B4E9E; --o-av2-bg:#E4EFE8; --o-av2-fg:#3D7357;
  --o-av3-bg:#E3EDF8; --o-av3-fg:#3A6699; --o-av4-bg:#F3ECDF; --o-av4-fg:#85653A;
  --o-av5-bg:#F6E6E8; --o-av5-fg:#9E4757; --o-av6-bg:#F8E9DF; --o-av6-fg:#A55A33;
  --o-av7-bg:#EDEDEE; --o-av7-fg:#5F5F65;
  /* Elevation */
  --o-sh-card:0 2px 8px rgba(0,0,0,.035),0 0 0 .5px rgba(0,0,0,.035);
  --o-sh-control:0 1px 5px rgba(0,0,0,.04),0 0 0 .5px rgba(0,0,0,.035);
  --o-sh-action:0 2px 6px rgba(0,0,0,.10);
  --o-sh-float:0 6px 18px rgba(0,0,0,.08),0 0 0 .5px rgba(0,0,0,.05);
  --o-sh-window:0 22px 60px rgba(0,0,0,.18),0 0 0 .5px rgba(0,0,0,.12);

  /* Type families */
  --o-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",system-ui,sans-serif;
  --o-write:"New York",ui-serif,"Songti SC","Noto Serif SC",Georgia,serif;
  --o-mono:ui-monospace,"SF Mono",Menlo,monospace;
  /* Type scale: weight size/line-height */
  --o-t-display:600 28px/34px var(--o-ui);
  --o-t-title:650 22px/28px var(--o-ui);
  --o-t-headline:600 15px/22px var(--o-ui);
  --o-t-reading:400 15px/28px var(--o-ui);
  --o-t-answer:400 15px/24px var(--o-ui);
  --o-t-body:400 14px/22px var(--o-ui);
  --o-t-ui:400 13px/18px var(--o-ui);
  --o-t-small:400 12.5px/17px var(--o-ui);
  --o-t-label:500 12px/16px var(--o-ui);
  --o-t-meta:400 11.5px/15px var(--o-ui);
  --o-t-eyebrow:600 11px/14px var(--o-ui);
  --o-t-write:400 18px/1.9 var(--o-write);
  --o-t-figure:650 40px/44px var(--o-ui);

  /* Spacing (px) */
  --o-sp-2:2px; --o-sp-4:4px; --o-sp-6:6px; --o-sp-8:8px; --o-sp-10:10px; --o-sp-12:12px;
  --o-sp-16:16px; --o-sp-20:20px; --o-sp-24:24px; --o-sp-32:32px; --o-sp-40:40px; --o-sp-56:56px;
  /* Radius: nested radius = outer − padding (24 = 16 + 8) */
  --o-r-xs:5px; --o-r-s:8px; --o-r-m:12px; --o-r-l:16px; --o-r-xl:20px; --o-r-2xl:24px; --o-r-pill:999px;
  /* Control heights */
  --o-h-xs:24px; --o-h-s:28px; --o-h-m:30px; --o-h-l:32px; --o-h-xl:40px; --o-h-2xl:44px;

  /* Motion */
  --o-dur-press:80ms; --o-dur-fast:140ms; --o-dur-base:220ms; --o-dur-slow:320ms;
  --o-ease:cubic-bezier(.2,.7,.2,1); --o-ease-in:cubic-bezier(.4,0,1,1); --o-ease-inout:cubic-bezier(.45,0,.25,1);
  --o-ease-spring:cubic-bezier(.34,1.45,.64,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --o-desk:#111317; --o-canvas:#06080E; --o-paper:#1C1C1F;
  --o-hover:#232326; --o-thumb:#2E2E32; --o-control:#2E2E32; --o-control-hover:#38383D;
  --o-ink:#F2F2F4; --o-muted:#98989D; --o-meta:#8A8A8F; --o-preview:rgba(255,255,255,.42); --o-quiet:rgba(255,255,255,.36);
  --o-divider:rgba(255,255,255,.08); --o-focus-line:rgba(255,255,255,.32);
  --o-action:#F2F2F4; --o-action-hover:#FFFFFF; --o-on-action:#0F0F11;
  --o-accent:#E6936A; --o-accent-ink:#EBA47F; --o-wash:rgba(255,255,255,.07); --o-wash-line:rgba(255,255,255,.22);
  --o-ai-dot:#6A8DFF; --o-ai-glow:rgba(90,125,255,.30);
  --o-ok:#6CC08C; --o-warn:#E0A84A; --o-warn-wash:rgba(224,168,74,.14);
  --o-danger:#E5484D; --o-danger-ink:#FF8A86; --o-danger-wash:rgba(229,72,77,.16);
  --o-file-image:#18CDE5; --o-file-archive:#B9B9B9; --o-file-other:#767676;
  --o-av1-bg:#2C2840; --o-av1-fg:#C3B8F0; --o-av2-bg:#1F3128; --o-av2-fg:#9FD3B5;
  --o-av3-bg:#1D2A3B; --o-av3-fg:#A8C6EA; --o-av4-bg:#352C1E; --o-av4-fg:#DDC199;
  --o-av5-bg:#3A2227; --o-av5-fg:#EEAAB6; --o-av6-bg:#3A271D; --o-av6-fg:#F0B590;
  --o-av7-bg:#2C2C30; --o-av7-fg:#B8B8BE;
  --o-sh-card:0 2px 8px rgba(0,0,0,.35),0 0 0 .5px rgba(255,255,255,.05);
  --o-sh-control:0 1px 5px rgba(0,0,0,.3),0 0 0 .5px rgba(255,255,255,.06);
  --o-sh-action:0 2px 6px rgba(0,0,0,.28);
  --o-sh-float:0 8px 22px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.1);
  --o-sh-window:0 22px 60px rgba(0,0,0,.6),0 0 0 .5px rgba(255,255,255,.1);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --o-desk:#111317; --o-canvas:#06080E; --o-paper:#1C1C1F;
  --o-hover:#232326; --o-thumb:#2E2E32; --o-control:#2E2E32; --o-control-hover:#38383D;
  --o-ink:#F2F2F4; --o-muted:#98989D; --o-meta:#8A8A8F; --o-preview:rgba(255,255,255,.42); --o-quiet:rgba(255,255,255,.36);
  --o-divider:rgba(255,255,255,.08); --o-focus-line:rgba(255,255,255,.32);
  --o-action:#F2F2F4; --o-action-hover:#FFFFFF; --o-on-action:#0F0F11;
  --o-accent:#E6936A; --o-accent-ink:#EBA47F; --o-wash:rgba(255,255,255,.07); --o-wash-line:rgba(255,255,255,.22);
  --o-ai-dot:#6A8DFF; --o-ai-glow:rgba(90,125,255,.30);
  --o-ok:#6CC08C; --o-warn:#E0A84A; --o-warn-wash:rgba(224,168,74,.14);
  --o-danger:#E5484D; --o-danger-ink:#FF8A86; --o-danger-wash:rgba(229,72,77,.16);
  --o-file-image:#18CDE5; --o-file-archive:#B9B9B9; --o-file-other:#767676;
  --o-av1-bg:#2C2840; --o-av1-fg:#C3B8F0; --o-av2-bg:#1F3128; --o-av2-fg:#9FD3B5;
  --o-av3-bg:#1D2A3B; --o-av3-fg:#A8C6EA; --o-av4-bg:#352C1E; --o-av4-fg:#DDC199;
  --o-av5-bg:#3A2227; --o-av5-fg:#EEAAB6; --o-av6-bg:#3A271D; --o-av6-fg:#F0B590;
  --o-av7-bg:#2C2C30; --o-av7-fg:#B8B8BE;
  --o-sh-card:0 2px 8px rgba(0,0,0,.35),0 0 0 .5px rgba(255,255,255,.05);
  --o-sh-control:0 1px 5px rgba(0,0,0,.3),0 0 0 .5px rgba(255,255,255,.06);
  --o-sh-action:0 2px 6px rgba(0,0,0,.28);
  --o-sh-float:0 8px 22px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.1);
  --o-sh-window:0 22px 60px rgba(0,0,0,.6),0 0 0 .5px rgba(255,255,255,.1);
  color-scheme:dark}

/* ---------- Base ---------- */
.o-root{font:var(--o-t-ui);color:var(--o-ink);-webkit-font-smoothing:antialiased}
.o-root :where(*,*::before,*::after){box-sizing:border-box}
.o-root :where(button){font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;cursor:pointer}
.o-root ::selection{background:var(--o-control)}
.o-root :is(button,a,[tabindex]):focus-visible,.o-root :is(button,a,[tabindex]).is-focus{outline:2px solid var(--o-accent);outline-offset:2px}
.o-num{font-variant-numeric:tabular-nums}
.o-t-display{font:var(--o-t-display);letter-spacing:-.5px}
.o-t-title{font:var(--o-t-title);letter-spacing:-.01em}
.o-t-headline{font:var(--o-t-headline)}
.o-t-reading{font:var(--o-t-reading)}
.o-t-body{font:var(--o-t-body)}
.o-t-ui{font:var(--o-t-ui)}
.o-t-small{font:var(--o-t-small)}
.o-t-label{font:var(--o-t-label)}
.o-t-meta{font:var(--o-t-meta);color:var(--o-meta)}
.o-eyebrow{font:var(--o-t-eyebrow);letter-spacing:.06em;text-transform:uppercase;color:var(--o-meta)}
.o-t-write{font:var(--o-t-write)}
.o-muted{color:var(--o-muted)} .o-quiet{color:var(--o-quiet)}

/* ---------- Icon ---------- */
svg.o-ic{width:16px;height:16px;fill:currentColor;flex:none;display:block}
.o-spark{color:var(--o-accent)}

/* ---------- Keycap ---------- */
.o-kbd{display:inline-flex;align-items:center;font:500 10.5px/1 var(--o-ui);letter-spacing:.3px;height:17px;padding:0 5px;border-radius:var(--o-r-xs);background:var(--o-control);color:var(--o-meta);white-space:nowrap}
:is(.o-btn-primary,.o-btn-secondary,.o-btn-paper,.o-toast) .o-kbd{background:transparent;color:inherit;opacity:.6;padding:0}

/* ---------- Buttons ---------- */
.o-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--o-h-m);padding:0 12px;border-radius:var(--o-r-pill);font:500 13px/1 var(--o-ui);white-space:nowrap;cursor:pointer;user-select:none;
  transition:background-color var(--o-dur-fast) var(--o-ease),color var(--o-dur-fast) var(--o-ease),box-shadow var(--o-dur-fast) var(--o-ease),transform var(--o-dur-press) var(--o-ease)}
.o-btn:is(:active,.is-active):not(:disabled,.is-disabled){transform:scale(.97)}
.o-btn-primary{height:var(--o-h-l);padding:0 15px;background:var(--o-action);color:var(--o-on-action);font-weight:600;box-shadow:var(--o-sh-action)}
.o-btn-primary:is(:hover,.is-hover){background:var(--o-action-hover)}
.o-btn-secondary{background:var(--o-control);color:var(--o-ink)}
.o-btn-secondary:is(:hover,.is-hover){background:var(--o-control-hover)}
.o-btn-paper{background:var(--o-paper);color:var(--o-ink);box-shadow:var(--o-sh-control)}
.o-btn-paper:is(:hover,.is-hover){background:var(--o-hover)}
.o-btn-quiet{color:var(--o-muted);padding:0 10px}
.o-btn-quiet:is(:hover,.is-hover){background:var(--o-control);color:var(--o-ink)}
.o-btn-danger{background:var(--o-danger);color:#fff;font-weight:600}
.o-btn-danger:is(:hover,.is-hover){background:var(--o-danger-ink)}
.o-btn-sm{height:var(--o-h-s);padding:0 11px;font-size:12.5px}
.o-btn-lg{height:var(--o-h-xl);padding:0 18px 0 15px;font-size:13.5px;gap:8px}
.o-btn-block{display:flex;width:100%}
.o-btn:is(:disabled,.is-disabled){background:var(--o-control);color:var(--o-quiet);box-shadow:none;cursor:default}
.o-btn-quiet:is(:disabled,.is-disabled){background:none}
.o-btn.is-loading{color:transparent;position:relative;pointer-events:none}
.o-btn.is-loading::after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;border:1.6px solid var(--o-on-action);border-right-color:transparent;animation:o-spin .8s linear infinite}
.o-btn-secondary.is-loading::after{border-color:var(--o-ink);border-right-color:transparent}
.o-link{color:var(--o-ink);text-decoration:underline;text-decoration-color:var(--o-quiet);text-underline-offset:3px;cursor:pointer;transition:text-decoration-color var(--o-dur-fast)}
.o-link:hover{text-decoration-color:var(--o-ink)}

/* Icon button: transparent round, gains a control fill on hover */
.o-icon-btn{width:var(--o-h-m);height:var(--o-h-m);border-radius:50%;display:inline-grid;place-items:center;color:var(--o-muted);flex:none;cursor:pointer;position:relative;
  transition:background-color var(--o-dur-fast) var(--o-ease),color var(--o-dur-fast) var(--o-ease),transform var(--o-dur-press) var(--o-ease)}
.o-icon-btn:is(:hover,.is-hover){background:var(--o-control);color:var(--o-ink)}
.o-icon-btn:is(:active,.is-active){transform:scale(.92)}
.o-icon-btn.is-on{background:var(--o-action);color:var(--o-on-action)}
.o-icon-btn:is(:disabled,.is-disabled){color:var(--o-quiet);background:none;cursor:default}
.o-icon-btn-sm{width:var(--o-h-s);height:var(--o-h-s)}
.o-icon-btn-lg{width:var(--o-h-l);height:var(--o-h-l)}
.o-icon-btn-float{background:var(--o-paper);color:var(--o-ink);box-shadow:var(--o-sh-control)}
.o-icon-btn-float:is(:hover,.is-hover){background:var(--o-hover)}
.o-icon-btn .o-badge-dot{position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:var(--o-danger);box-shadow:0 0 0 1.5px var(--o-paper)}

/* Capsule: a paper pill holding related icon buttons */
.o-capsule{display:inline-flex;align-items:center;gap:2px;background:var(--o-paper);border-radius:var(--o-r-pill);padding:3px;box-shadow:var(--o-sh-control)}
.o-capsule-lg{height:var(--o-h-xl);padding:0 4px}
.o-capsule-lg .o-icon-btn{width:var(--o-h-l);height:var(--o-h-l)}
.o-sep{width:.5px;height:16px;background:var(--o-divider);margin:0 4px;flex:none;align-self:center}
.o-capsule .o-sep{width:1px}

/* ---------- Segmented & category tabs ---------- */
.o-seg{display:inline-flex;gap:2px;background:var(--o-control);border-radius:var(--o-r-pill);padding:2px}
.o-seg>button{height:24px;padding:0 11px;border-radius:var(--o-r-pill);color:var(--o-muted);font-size:12.5px;white-space:nowrap;transition:background-color var(--o-dur-fast) var(--o-ease),color var(--o-dur-fast) var(--o-ease),box-shadow var(--o-dur-fast)}
.o-seg>button:is(:hover,.is-hover):not([aria-pressed="true"]){color:var(--o-ink)}
.o-seg>button[aria-pressed="true"]{background:var(--o-paper);color:var(--o-ink);font-weight:600;box-shadow:var(--o-sh-control)}
.o-seg>button:disabled{color:var(--o-quiet);opacity:.6;cursor:default}

.o-tabs{display:inline-flex;gap:2px;height:var(--o-h-xl);padding:4px;border-radius:var(--o-r-pill);background:var(--o-paper);box-shadow:var(--o-sh-control)}
.o-tab{height:var(--o-h-l);padding:0 14px 0 12px;border-radius:var(--o-r-pill);display:inline-flex;align-items:center;gap:7px;color:var(--o-muted);font-size:13px;white-space:nowrap;
  transition:background-color var(--o-dur-fast) var(--o-ease),color var(--o-dur-fast) var(--o-ease)}
.o-tab svg.o-ic{width:15px;height:15px}
.o-tab:is(:hover,.is-hover):not([aria-selected="true"]){background:var(--o-hover);color:var(--o-ink)}
.o-tab[aria-selected="true"]{background:var(--o-action);color:var(--o-on-action);font-weight:600}
.o-tab .o-count{background:var(--o-on-action);color:var(--o-action)}

/* ---------- Badges, tags, dots ---------- */
.o-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--o-control);color:var(--o-muted);font:700 11px/1 var(--o-ui);font-variant-numeric:tabular-nums}
.o-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--o-accent);flex:none}
.o-dot-ok{background:var(--o-ok)} .o-dot-warn{background:var(--o-warn)} .o-dot-danger{background:var(--o-danger)} .o-dot-quiet{background:var(--o-quiet)}
.o-tag{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:6px;background:var(--o-thumb);color:var(--o-muted);font:600 10.5px/1 var(--o-ui);white-space:nowrap}
.o-tag-new{background:var(--o-control);font-weight:500}
.o-chip{display:inline;padding:0 7px;border-radius:7px;background:var(--o-wash);color:var(--o-ink);font-weight:500;cursor:pointer;transition:background-color var(--o-dur-fast)}
.o-chip:hover{background:var(--o-control)}
.o-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--o-muted);white-space:nowrap}
.o-status.is-error{color:var(--o-danger-ink)}

/* ---------- Avatar ---------- */
.o-av{--s:36px;position:relative;width:var(--s);height:var(--s);border-radius:50%;flex:none;display:grid;place-items:center;font:600 calc(var(--s)*.39)/1 var(--o-ui);background:var(--o-av7-bg);color:var(--o-av7-fg)}
.o-av svg.o-ic{width:calc(var(--s)*.42);height:calc(var(--s)*.42)}
.o-av[data-c="1"]{background:var(--o-av1-bg);color:var(--o-av1-fg)} .o-av[data-c="2"]{background:var(--o-av2-bg);color:var(--o-av2-fg)}
.o-av[data-c="3"]{background:var(--o-av3-bg);color:var(--o-av3-fg)} .o-av[data-c="4"]{background:var(--o-av4-bg);color:var(--o-av4-fg)}
.o-av[data-c="5"]{background:var(--o-av5-bg);color:var(--o-av5-fg)} .o-av[data-c="6"]{background:var(--o-av6-bg);color:var(--o-av6-fg)}
.o-av-acct{position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;border-radius:50%;background:var(--o-paper);box-shadow:0 1px 2px rgba(0,0,0,.15);display:grid;place-items:center}
.o-av-acct::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--acct,var(--o-acct-imap))}
.o-av-acct[data-a="gmail"]{--acct:var(--o-acct-gmail)} .o-av-acct[data-a="outlook"]{--acct:var(--o-acct-outlook)}
.o-av-stack{display:flex}.o-av-stack .o-av{box-shadow:0 0 0 2px var(--o-paper)}.o-av-stack .o-av+.o-av{margin-left:-6px}

/* ---------- Surfaces ---------- */
.o-card{background:var(--o-paper);border-radius:var(--o-r-xl);box-shadow:var(--o-sh-card);padding:16px 18px}
.o-sheet{background:var(--o-paper);border-radius:var(--o-r-2xl);box-shadow:var(--o-sh-card);padding:8px}
.o-panel{background:var(--o-paper);border-radius:var(--o-r-2xl);box-shadow:var(--o-sh-float);display:flex;flex-direction:column}
/* Dialog: modal card over a scrim, macOS sheet conventions (no close button; Esc = cancel, Return = default button).
   Anatomy: head (media + title + desc) → section → fine → actions → aside. */
.o-scrim{position:absolute;inset:0;display:grid;place-items:center;padding:var(--o-sp-24);background:var(--o-wash)}
.o-dialog{--w:400px;position:relative;width:min(var(--w),100%);display:flex;flex-direction:column;gap:var(--o-sp-16);padding:var(--o-sp-24);background:var(--o-paper);border-radius:var(--o-r-2xl);box-shadow:var(--o-sh-window);overflow:hidden;text-align:left}
.o-root .o-dialog:focus-visible{outline:none}
.o-dialog-head{display:flex;align-items:center;gap:var(--o-sp-16)}
.o-dialog-media{flex:none;display:block}
.o-dialog-text{flex:1;min-width:0}
.o-dialog-title{margin:0;font:var(--o-t-title);letter-spacing:-.01em;text-wrap:balance}
.o-dialog-figure{font:var(--o-t-figure);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.o-dialog-desc{margin:var(--o-sp-4) 0 0;font:var(--o-t-body);color:var(--o-muted);text-wrap:pretty}
.o-dialog-label{margin:0 0 var(--o-sp-4);font:var(--o-t-label);color:var(--o-meta)}
.o-dialog-list{border-top:.5px solid var(--o-divider)}
.o-dialog-item{display:flex;align-items:center;gap:var(--o-sp-12);padding:var(--o-sp-10) 0}
.o-dialog-item+.o-dialog-item{border-top:.5px solid var(--o-divider)}
.o-dialog-tile{width:var(--o-h-l);height:var(--o-h-l);border-radius:var(--o-r-m);background:var(--o-wash);display:grid;place-items:center;flex:none}
.o-dialog-item-text{flex:1;min-width:0}
.o-dialog-item-text b{display:block;font:var(--o-t-ui);font-weight:600}
.o-dialog-item-text span{display:block;font:var(--o-t-small);color:var(--o-muted)}
.o-dialog-value{flex:none;min-width:52px;display:flex;align-items:center;justify-content:flex-end;gap:var(--o-sp-4);font:var(--o-t-label);color:var(--o-meta)}
.o-dialog-fine{margin:0;font:var(--o-t-label);line-height:18px;color:var(--o-meta);text-wrap:pretty}
.o-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--o-sp-8)}
.o-dialog-aside{margin:calc(var(--o-sp-8) - var(--o-sp-16)) calc(var(--o-sp-24)*-1) calc(var(--o-sp-24)*-1);padding:var(--o-sp-12) var(--o-sp-24);background:var(--o-hover);font:var(--o-t-small);color:var(--o-muted);text-align:center}
.o-dialog-aside b{color:var(--o-ink);font-weight:600}
.o-fade-bottom{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent calc(100% - 4px));mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent calc(100% - 4px))}

/* ---------- Inputs ---------- */
.o-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.o-field-label{font:var(--o-t-meta);color:var(--o-meta);letter-spacing:.02em;display:flex;align-items:center;gap:8px}
.o-field-help{font:var(--o-t-meta);color:var(--o-meta)}
.o-field.is-error .o-field-help{color:var(--o-danger-ink)}
.o-input,.o-textarea,.o-box{width:100%;min-height:36px;border:0;border-radius:var(--o-r-m);background:var(--o-hover);color:var(--o-ink);font:var(--o-t-ui);padding:0 10px;outline:none;
  transition:background-color var(--o-dur-fast) var(--o-ease),box-shadow var(--o-dur-fast) var(--o-ease)}
.o-textarea{padding:10px 12px;min-height:76px;font:400 14px/1.6 var(--o-ui);resize:vertical;display:block}
.o-box{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 8px}
.o-box input{flex:1;min-width:80px;border:0;background:none;outline:none;font:inherit;color:inherit;height:24px}
:is(.o-input,.o-textarea,.o-box,.o-search)::placeholder,.o-box input::placeholder{color:var(--o-quiet)}
:is(.o-input,.o-textarea,.o-box):is(:hover,.is-hover){background:var(--o-thumb)}
:is(.o-input,.o-textarea):is(:focus,.is-focus),.o-box:focus-within,.o-box.is-focus{background:var(--o-paper);box-shadow:0 0 0 1.5px var(--o-focus-line);outline:none}
.o-field.is-error :is(.o-input,.o-textarea,.o-box){box-shadow:0 0 0 1.5px var(--o-danger)}
:is(.o-input,.o-textarea):disabled{color:var(--o-quiet);background:var(--o-hover);cursor:default}
/* Paper inputs sit on canvas (title bar search) */
.o-search{display:flex;align-items:center;gap:8px;height:var(--o-h-m);padding:0 6px 0 11px;border-radius:var(--o-r-pill);background:var(--o-paper);box-shadow:var(--o-sh-control);color:var(--o-quiet);font-size:12.5px;cursor:text;transition:box-shadow var(--o-dur-fast)}
.o-search svg.o-ic{width:14px;height:14px;color:var(--o-muted)}
.o-search input{flex:1;min-width:0;border:0;background:none;outline:none;font:inherit;color:var(--o-ink)}
.o-search:is(:hover,.is-hover){box-shadow:var(--o-sh-float)}
.o-search:focus-within,.o-search.is-focus{box-shadow:var(--o-sh-control),0 0 0 1.5px var(--o-focus-line)}
.o-search .o-kbd{margin-left:auto}
.o-token{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px 0 3px;border-radius:var(--o-r-pill);background:var(--o-paper);box-shadow:var(--o-sh-control);font-size:12.5px;white-space:nowrap}
.o-token .o-av{--s:18px}
.o-token.is-warn{box-shadow:0 0 0 1px var(--o-warn)}
.o-select{display:inline-flex;align-items:center;gap:4px;height:var(--o-h-s);padding:0 9px 0 11px;border-radius:var(--o-r-pill);background:var(--o-control);font-size:12.5px;color:var(--o-ink);white-space:nowrap;cursor:pointer;transition:background-color var(--o-dur-fast)}
.o-select svg.o-ic{width:11px;height:11px;color:var(--o-muted);transition:transform var(--o-dur-base) var(--o-ease)}
.o-select:is(:hover,.is-hover){background:var(--o-control-hover)}
.o-select[aria-expanded="true"] svg.o-ic{transform:rotate(180deg)}
.o-drop{border:1px dashed var(--o-quiet);border-radius:var(--o-r-m);padding:10px;color:var(--o-muted);display:flex;gap:8px;align-items:center;font-size:12.5px;transition:border-color var(--o-dur-fast),background-color var(--o-dur-fast)}
.o-drop.is-over{border-color:var(--o-ink);background:var(--o-hover);color:var(--o-ink)}

/* Switch & checkbox */
.o-switch{position:relative;width:30px;height:18px;border-radius:var(--o-r-pill);background:var(--o-control);flex:none;cursor:pointer;transition:background-color var(--o-dur-base) var(--o-ease)}
.o-switch::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--o-paper);box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform var(--o-dur-base) var(--o-ease-spring)}
.o-switch[aria-checked="true"]{background:var(--o-action)}
.o-switch[aria-checked="true"]::after{transform:translateX(12px);background:var(--o-on-action)}
.o-switch:disabled{opacity:.45;cursor:default}
.o-check{width:16px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1.5px var(--o-quiet);display:inline-grid;place-items:center;flex:none;color:var(--o-on-action);cursor:pointer;transition:background-color var(--o-dur-fast),box-shadow var(--o-dur-fast)}
.o-check-round{width:18px;height:18px;border-radius:50%}
.o-check svg.o-ic{width:11px;height:11px;transform:scale(0);transition:transform var(--o-dur-base) var(--o-ease-spring)}
.o-check:is(:hover,.is-hover){box-shadow:inset 0 0 0 1.5px var(--o-muted)}
.o-check[aria-checked="true"]{background:var(--o-action);box-shadow:none}
.o-check[aria-checked="true"] svg.o-ic{transform:scale(1)}
.o-option{display:flex;align-items:center;gap:12px;font-size:13px}
.o-option .o-field-help{margin-top:2px}
.o-option.is-disabled{opacity:.45}

/* ---------- Menus, popovers, tooltips ---------- */
.o-menu{min-width:220px;background:var(--o-paper);border-radius:var(--o-r-m);box-shadow:var(--o-sh-float);padding:5px;font:400 13px/1.35 var(--o-ui);display:flex;flex-direction:column;
  transform-origin:top left;animation:o-pop-in var(--o-dur-fast) var(--o-ease)}
.o-menu-item{display:flex;align-items:flex-start;gap:6px;padding:6px 8px;border-radius:7px;cursor:pointer;text-align:left;width:100%;color:var(--o-ink)}
.o-menu-item:is(:hover,.is-hover,:focus-visible){background:var(--o-thumb);outline:none}
.o-menu-item>svg.o-ic{width:14px;height:14px;margin-top:1px;color:var(--o-muted)}
.o-menu-check{width:14px;flex:none;padding-top:1px}
.o-menu-check svg.o-ic{width:13px;height:13px}
.o-menu-desc{font-size:11.5px;color:var(--o-meta)}
.o-menu-sc{margin-left:auto;padding-left:16px;color:var(--o-quiet);font-size:12px;white-space:nowrap}
.o-menu-sep{height:.5px;background:var(--o-divider);margin:4px 6px;flex:none}
.o-menu-group{font:600 10.5px/1 var(--o-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--o-meta);padding:8px 8px 4px}
.o-menu-item.is-disabled{opacity:.4;cursor:default;background:none}
.o-menu-item.is-danger,.o-menu-item.is-danger>svg.o-ic{color:var(--o-danger-ink)}
.o-popover{background:var(--o-paper);border-radius:var(--o-r-l);box-shadow:var(--o-sh-float);padding:10px;display:flex;flex-direction:column;gap:8px;transform-origin:top center;animation:o-pop-in var(--o-dur-base) var(--o-ease)}
.o-tip{display:inline-flex;align-items:center;gap:6px;background:var(--o-paper);box-shadow:var(--o-sh-float);border-radius:var(--o-r-s);padding:5px 9px;font-size:11.5px;color:var(--o-muted);white-space:nowrap;pointer-events:none}
.o-tip b{color:var(--o-ink);font-weight:600}
/* Hover-delayed tooltip: put data-tip on any control */
[data-tip]{position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);transform:translate(-50%,-2px);background:var(--o-paper);box-shadow:var(--o-sh-float);border-radius:var(--o-r-s);padding:5px 9px;font:400 11.5px/1.2 var(--o-ui);color:var(--o-muted);white-space:nowrap;pointer-events:none;opacity:0;z-index:40;
  transition:opacity var(--o-dur-fast) var(--o-ease),transform var(--o-dur-fast) var(--o-ease);transition-delay:0s}
[data-tip]:hover::after{opacity:1;transform:translate(-50%,0);transition-delay:450ms}
[data-tip-up]::after{top:auto;bottom:calc(100% + 8px)}
.o-toast{display:inline-flex;align-items:center;gap:12px;height:38px;padding:0 6px 0 14px;border-radius:var(--o-r-pill);background:var(--o-action);color:var(--o-on-action);font-size:13px;box-shadow:var(--o-sh-float);white-space:nowrap;animation:o-rise-in var(--o-dur-slow) var(--o-ease)}
.o-toast-btn{height:26px;padding:0 11px;border-radius:var(--o-r-pill);background:rgba(127,127,127,.25);font-weight:600;cursor:pointer;transition:background-color var(--o-dur-fast)}
.o-toast-btn:hover{background:rgba(127,127,127,.4)}
.o-toast .o-toast-time{opacity:.6;font-variant-numeric:tabular-nums}
.o-toast.is-leaving{animation:o-rise-out var(--o-dur-base) var(--o-ease-in) forwards}

/* ---------- Mail list ---------- */
.o-list{display:flex;flex-direction:column}
.o-row{position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 16px 12px 30px;border-radius:var(--o-r-l);cursor:default;
  transition:background-color var(--o-dur-fast) var(--o-ease)}
.o-row:is(:hover,.is-hover){background:var(--o-hover)}
.o-row.is-selected{background:var(--o-thumb)}
.o-row:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--o-accent)}
.o-row-lead{position:absolute;left:12px;top:27px;width:7px;height:7px;border-radius:50%}
.o-row.is-unread .o-row-lead{background:var(--o-accent)}
.o-row .o-check-round{position:absolute;left:8px;top:21px}
.o-list.is-multi .o-row{padding-left:38px}
.o-list.is-multi .o-row-lead{display:none}
.o-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.o-row-l1{display:flex;align-items:baseline;gap:6px;min-width:0}
.o-row-sender{font-size:14px;line-height:19px;color:var(--o-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-row-subject{font-size:13.5px;line-height:18px;color:var(--o-quiet);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-row-preview{font-size:12.5px;line-height:17px;color:var(--o-preview);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-row.is-unread .o-row-sender{color:var(--o-ink);font-weight:600}
.o-row.is-unread .o-row-subject{color:var(--o-ink)}
.o-row-meta{margin-left:auto;display:flex;align-items:center;gap:6px;flex:none;padding-left:12px;transition:opacity var(--o-dur-fast) var(--o-ease)}
.o-row-meta svg.o-ic{width:12px;height:12px;color:var(--o-quiet)}
.o-row-meta .is-star svg.o-ic{color:var(--o-star)}
.o-row-meta .o-count{height:16px;min-width:16px;font-size:10.5px;padding:0 5px}
.o-row-time{font-size:12px;line-height:19px;color:var(--o-quiet);font-variant-numeric:tabular-nums}
.o-row.is-unread .o-row-time{color:var(--o-meta)}
.o-row-actions{position:absolute;right:12px;top:calc(50% - 17px);height:34px;padding:0 3px;border-radius:17px;background:var(--o-paper);box-shadow:var(--o-sh-float);display:flex;align-items:center;gap:1px;z-index:2;
  opacity:0;transform:translateY(2px);pointer-events:none;transition:opacity var(--o-dur-fast) var(--o-ease),transform var(--o-dur-fast) var(--o-ease)}
.o-row-actions .o-icon-btn{width:28px;height:28px}
.o-row-actions svg.o-ic{width:14px;height:14px}
.o-row:is(:hover,.is-hover,:focus-within) .o-row-actions{opacity:1;transform:none;pointer-events:auto}
.o-row:is(:hover,.is-hover,:focus-within) .o-row-meta{opacity:0}
.o-row.is-leaving{animation:o-row-out var(--o-dur-slow) var(--o-ease-inout) forwards;pointer-events:none}
@keyframes o-row-out{0%{opacity:1;max-height:90px}40%{opacity:0;transform:translateX(12px);max-height:90px;padding-block:12px}100%{opacity:0;transform:translateX(12px);max-height:0;padding-block:0}}
/* Compact density */
.o-list.is-compact .o-row{align-items:center;height:44px;padding:0 16px 0 28px;gap:10px}
.o-list.is-compact .o-row-lead{top:19px;width:6px;height:6px}
.o-list.is-compact .o-check-round{top:13px}
.o-list.is-compact .o-av{--s:26px}
.o-list.is-compact .o-av-acct{width:13px;height:13px;right:-3px;bottom:-3px}.o-list.is-compact .o-av-acct::after{width:6px;height:6px}
.o-list.is-compact .o-row-text{flex-direction:row;align-items:baseline;gap:0}
.o-list.is-compact .o-row-l1{display:contents}
.o-list.is-compact .o-row-sender{width:152px;flex:none;padding-right:12px;font-size:13.5px}
.o-list.is-compact .o-row-subject{flex-shrink:1;max-width:52%}
.o-list.is-compact .o-row.is-unread .o-row-subject{font-weight:500}
.o-list.is-compact .o-row-preview{flex:1;min-width:0;padding-left:10px}
.o-list.is-compact .o-row-meta{order:9;align-self:center}
.o-list.is-compact.is-multi .o-row{padding-left:36px}
/* Collapsible group (Read Today) */
.o-group{background:var(--o-paper);border-radius:22px;box-shadow:var(--o-sh-card);overflow:hidden}
.o-group-head{display:flex;align-items:center;gap:12px;height:56px;padding:0 14px 0 20px;width:100%;cursor:pointer;transition:background-color var(--o-dur-fast)}
.o-group-head:hover{background:var(--o-hover)}
.o-group-head b{font-size:14px;font-weight:600;white-space:nowrap}
.o-group-head .o-av{--s:22px;font-size:9.5px}
.o-group-sum{font-size:12.5px;color:var(--o-meta);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.o-group-n{margin-left:auto;font-size:12.5px;color:var(--o-quiet);white-space:nowrap}
.o-disclose{width:26px;height:26px;border-radius:50%;background:var(--o-control);display:grid;place-items:center;color:var(--o-muted);flex:none}
.o-disclose svg.o-ic{width:11px;height:11px;transition:transform var(--o-dur-base) var(--o-ease)}
[aria-expanded="true"]>.o-disclose svg.o-ic,[aria-expanded="true"] .o-disclose svg.o-ic{transform:rotate(180deg)}
.o-group-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--o-dur-base) var(--o-ease)}
.o-group-body>div{overflow:hidden}
.o-group.is-open .o-group-body{grid-template-rows:1fr}
.o-group.is-open .o-group-body>div{border-top:1px solid var(--o-divider);padding:6px 8px 8px}

/* ---------- Content pieces ---------- */
/* Attachment tile: fixed 112×100 cover slot, thumbnail aspect-fit and pinned bottom-left,
   name + size below. Thread bubbles use the half-size slot. Mirrors attachmentChipContent. */
.o-atts{display:flex;flex-wrap:wrap;gap:20px 23px}
.o-att{position:relative;width:112px;display:flex;flex-direction:column;cursor:pointer}
.o-att-slot{width:112px;height:100px;display:flex;align-items:flex-end;justify-content:flex-start}
.o-att-cover{position:relative;display:grid;place-items:center;max-width:100%;max-height:100%;border-radius:4px;overflow:hidden;background:var(--o-paper);
  box-shadow:0 1.5px 3px rgba(0,0,0,.08),0 0 0 .5px rgba(0,0,0,.06);transform-origin:bottom center;transition:transform var(--o-dur-fast) var(--o-ease)}
.o-att-cover img{display:block;max-width:112px;max-height:100px;width:auto;height:auto}
.o-att-cover.is-paper{width:72px;height:100px}
.o-att:is(:hover,.is-hover) .o-att-cover{transform:rotate(-3deg) scale(1.03)}
.o-att-badge{width:26px;height:26px;border-radius:6px;display:grid;place-items:center;background:var(--o-file-other);color:#fff;font:600 7.5px/1 var(--o-ui)}
.o-att-badge[data-k="image"]{background:var(--o-file-image)} .o-att-badge[data-k="pdf"]{background:var(--o-file-pdf)}
.o-att-badge[data-k="doc"]{background:var(--o-file-doc)} .o-att-badge[data-k="archive"]{background:var(--o-file-archive)}
.o-att-cover.is-loading::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.4)}
.o-att-cover.is-loading::before{content:"";position:absolute;z-index:1;width:14px;height:14px;border-radius:50%;border:1.6px solid #fff;border-right-color:transparent;animation:o-spin .8s linear infinite}
.o-att-name{margin-top:10px;font:500 12px/16px var(--o-ui);color:var(--o-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-att-size{margin-top:1px;font:400 10px/13px var(--o-ui);color:var(--o-meta);font-variant-numeric:tabular-nums}
.o-att-acts{position:absolute;right:4px;bottom:4px;display:flex;padding:2px;border-radius:var(--o-r-pill);background:var(--o-paper);box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px var(--o-divider);
  opacity:0;pointer-events:none;transition:opacity var(--o-dur-fast) var(--o-ease)}
.o-att:is(:hover,.is-hover) .o-att-acts{opacity:1;pointer-events:auto}
.o-att-acts button{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:var(--o-muted);transition:background-color var(--o-dur-fast),color var(--o-dur-fast)}
.o-att-acts button svg.o-ic{width:12px;height:12px}
.o-att-acts button:hover{background:var(--o-action);color:var(--o-on-action)}
.o-att-acts button.is-done{color:var(--o-ok)}
.o-atts.is-thread{gap:10px}
.o-atts.is-thread .o-att,.o-atts.is-thread .o-att-slot{width:56px}
.o-atts.is-thread .o-att-slot{height:50px}
.o-atts.is-thread .o-att-cover img{max-width:56px;max-height:50px}
.o-atts.is-thread .o-att-cover.is-paper{width:36px;height:50px}
.o-atts.is-thread .o-att-badge{width:16px;height:16px;border-radius:4px;font-size:5.5px}
.o-notice{font:var(--o-t-small);color:var(--o-muted)}
.o-notice .o-link{margin-left:12px}
.o-flag{border-bottom:1.5px dotted var(--o-warn)}
.o-ck{display:flex;gap:10px;padding:9px 10px;border-radius:var(--o-r-m);font-size:13px;line-height:1.45;align-items:flex-start}
.o-ck-mark{width:18px;height:18px;border-radius:50%;flex:none;display:grid;place-items:center;margin-top:1px;color:var(--o-ok)}
.o-ck-mark svg.o-ic{width:14px;height:14px}
.o-ck.is-warn{background:var(--o-warn-wash)}
.o-ck.is-warn .o-ck-mark{background:var(--o-warn);color:#fff;font:700 11px/1 var(--o-ui)}
.o-ck-desc{color:var(--o-muted);font-size:12px;margin-top:2px}
.o-ck-acts{display:flex;gap:6px;margin-top:8px}
.o-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center}
.o-empty p{margin:0;font-size:14px;color:var(--o-meta)}
/* Today cleared: one of the fox stamps (TodayEmptyArtwork), 152pt, tilts 5° on hover */
.o-empty-art{width:152px;height:152px;display:block;transition:transform 280ms var(--o-ease-inout)}
.o-empty-art:hover{transform:rotate(5deg);transition-delay:120ms}
.o-skel{display:block;border-radius:6px;height:10px;background:linear-gradient(90deg,var(--o-control) 0%,var(--o-hover) 50%,var(--o-control) 100%);background-size:200% 100%;animation:o-shimmer 1.4s linear infinite}
.o-spinner{width:14px;height:14px;border-radius:50%;border:1.6px solid var(--o-quiet);border-right-color:transparent;animation:o-spin .8s linear infinite;flex:none;display:inline-block}
/* Status handoff: old and new status share one grid cell, so the row width never jumps. */
.o-status{display:inline-grid;font:var(--o-t-small);color:var(--o-muted)}
.o-status>*{grid-area:1/1;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.o-status>.is-in{animation:o-status-in 240ms var(--o-ease) both}
.o-status>.is-out{animation:o-status-out 160ms var(--o-ease-in) both}

/* ---------- AI ---------- */
.o-ai-bar{display:flex;align-items:center;gap:10px;height:var(--o-h-2xl);padding:0 6px 0 16px;border-radius:var(--o-r-pill);background:var(--o-paper);box-shadow:var(--o-sh-float);color:var(--o-quiet);cursor:text;transition:box-shadow var(--o-dur-fast)}
.o-ai-bar .o-kbd{margin-left:auto}
.o-mic{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--o-control);color:var(--o-ink);flex:none;cursor:pointer;transition:background-color var(--o-dur-fast)}
.o-mic svg.o-ic{width:14px;height:14px}
.o-mic.is-live{background:var(--o-action);color:var(--o-on-action)}
.o-suggest{color:var(--o-muted)}
.o-partial{color:var(--o-quiet)}
.o-cand{padding:14px 18px 12px;border-radius:var(--o-r-l);background:var(--o-wash);animation:o-fade-in var(--o-dur-base) var(--o-ease)}
.o-cand-label{font:var(--o-t-meta);color:var(--o-ink);margin-bottom:6px;display:flex;gap:6px;align-items:center}
.o-cand del{color:var(--o-quiet);text-decoration-color:var(--o-quiet)}
.o-cand ins{text-decoration:none;border-bottom:1.5px solid var(--o-wash-line)}
.o-cand-acts{display:flex;gap:6px;margin-top:10px}
/* AI working: edge dot field drawn by oAiDots() (orvia-ai-dots.js); first child of a positioned surface */
.o-ai-host{isolation:isolate}
.o-ai-dots{position:absolute;inset:0;z-index:-1;width:100%;height:100%;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity var(--o-dur-base) var(--o-ease-in)}
.o-ai-dots.is-on{opacity:.65;transition:opacity var(--o-dur-slow) var(--o-ease)}
/* ---------- AI answer (Ask panel) ----------
   One panel, one border: everything inside is fill or hairline. Answer streams into .o-answer;
   facts and follow-ups appear only after it completes (.o-enter). */
.o-qa{width:100%;max-width:720px;background:var(--o-paper);border-radius:var(--o-r-2xl);box-shadow:var(--o-sh-float);padding:32px;display:flex;flex-direction:column;gap:14px}
.o-qa-head{display:flex;align-items:flex-start;gap:12px}
.o-qa-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.o-qa-q{margin:0;font:var(--o-t-headline);color:var(--o-ink);text-wrap:balance}
.o-qa-meta{display:flex;align-items:center;gap:6px;min-height:17px;font:var(--o-t-small);color:var(--o-meta);font-variant-numeric:tabular-nums}
.o-qa-meta .o-status{font:inherit;color:inherit}
.o-qa-body{display:flex;flex-direction:column;gap:16px;max-height:min(56vh,520px);overflow:auto;padding-right:8px}
.o-answer{font:400 15px/28px var(--o-ui);color:var(--o-ink);max-width:640px;overflow-wrap:break-word}
.o-answer p{margin:0 0 16px}
.o-answer :is(ul,ol){margin:0 0 16px;padding-left:20px}
.o-answer li{margin:4px 0}
.o-answer li::marker{color:var(--o-meta)}
.o-answer>:last-child{margin-bottom:0}
.o-answer b{font-weight:600}
.o-answer .is-new{animation:o-fade-in 120ms var(--o-ease) both}
.o-cite{display:inline-flex;gap:2px;margin-left:3px;vertical-align:1px;animation:o-fade-in var(--o-dur-fast) var(--o-ease) both}
.o-cite button{position:relative;min-width:16px;height:16px;padding:0 4px;border-radius:5px;background:var(--o-control);color:var(--o-meta);font:600 10.5px/16px var(--o-ui);font-variant-numeric:tabular-nums;transition:background-color var(--o-dur-fast),color var(--o-dur-fast)}
.o-cite button:is(:hover,.is-hover){background:var(--o-control-hover);color:var(--o-ink)}
.o-cite button[data-src]:is(:hover,:focus-visible,.is-hover)::after{content:attr(data-src);position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);z-index:5;white-space:nowrap;background:var(--o-paper);box-shadow:var(--o-sh-float);border-radius:var(--o-r-s);padding:5px 9px;font:var(--o-t-meta);color:var(--o-ink);pointer-events:none}
.o-facts{margin:0;padding-top:10px;border-top:.5px solid var(--o-divider);display:flex;flex-direction:column}
.o-facts-head{font:var(--o-t-eyebrow);letter-spacing:.06em;text-transform:uppercase;color:var(--o-meta);padding-bottom:4px}
.o-fact{display:grid;grid-template-columns:minmax(88px,28%) minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:32px;padding:0 4px 0 8px;margin:0 -8px;border-radius:var(--o-r-s);transition:background-color var(--o-dur-fast)}
.o-fact:is(:hover,.is-hover){background:var(--o-hover)}
.o-fact dt{font:var(--o-t-small);color:var(--o-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.o-fact dd{margin:0;font:var(--o-t-ui);font-weight:500;color:var(--o-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.o-fact .o-cite{margin:0;animation:none}
.o-fact .o-icon-btn{opacity:0;transition:opacity var(--o-dur-fast)}
.o-fact:is(:hover,.is-hover,:focus-within) .o-icon-btn{opacity:1}
.o-followups{display:flex;flex-wrap:wrap;gap:6px}
.o-followup{min-height:var(--o-h-s);padding:5px 12px;border-radius:var(--o-r-pill);background:var(--o-control);color:var(--o-ink);font:var(--o-t-ui);text-align:left;transition:background-color var(--o-dur-fast),transform var(--o-dur-press)}
.o-followup:is(:hover,.is-hover){background:var(--o-control-hover)}
.o-followup:active{transform:scale(.97)}
.o-enter{animation:o-rise-in var(--o-dur-base) var(--o-ease) both}
.o-qa-note{display:flex;align-items:center;gap:8px;font:var(--o-t-small);color:var(--o-muted)}
.o-answer .o-qa-note{margin-top:12px}
.o-qa-note.is-error{color:var(--o-danger-ink)}
.o-qa-input{display:flex;align-items:center;gap:8px;height:var(--o-h-2xl);padding:0 6px 0 14px;border-radius:var(--o-r-pill);background:var(--o-canvas)}
.o-qa-input input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:var(--o-t-ui);color:var(--o-ink)}
.o-qa-input input::placeholder{color:var(--o-quiet)}
.o-qa-send{width:var(--o-h-l);height:var(--o-h-l);border-radius:50%;display:grid;place-items:center;flex:none;background:var(--o-action);color:var(--o-on-action);transition:background-color var(--o-dur-fast),transform var(--o-dur-press)}
.o-qa-send:active{transform:scale(.92)}
.o-qa-send:disabled{background:var(--o-control);color:var(--o-quiet);cursor:default}
.o-qa-send.is-stop svg{display:none}
.o-qa-send.is-stop::before{content:"";width:10px;height:10px;border-radius:2.5px;background:currentColor}
.o-wave{display:flex;gap:2.5px;align-items:center;height:22px}
.o-wave i{width:2.5px;border-radius:2px;background:var(--o-muted);animation:o-wave 1s ease-in-out infinite}
.o-caret{display:inline-block;width:1.5px;height:1.1em;background:var(--o-ink);vertical-align:-.18em;margin-left:1px;animation:o-blink 1.1s steps(1) infinite}
.o-ring{position:relative}
.o-ring::after{content:"";position:absolute;inset:-5px;border-radius:var(--o-r-pill);border:1.5px solid var(--o-wash-line);animation:o-ring 1.8s ease-out 3}

/* ---------- Keyframes ---------- */
@keyframes o-pop-in{from{opacity:0;transform:scale(.97) translateY(-2px)}to{opacity:1;transform:none}}
@keyframes o-fade-in{from{opacity:0}to{opacity:1}}
@keyframes o-rise-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes o-status-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes o-status-out{to{opacity:0;transform:translateY(-4px)}}
@keyframes o-rise-out{to{opacity:0;transform:translateY(6px)}}
@keyframes o-spin{to{transform:rotate(360deg)}}
@keyframes o-shimmer{to{background-position:-200% 0}}
@keyframes o-wave{50%{transform:scaleY(.35)}}
@keyframes o-blink{50%{opacity:0}}
@keyframes o-ring{0%{opacity:1;transform:scale(.96)}100%{opacity:0;transform:scale(1.12)}}
@media (prefers-reduced-motion:reduce){
  .o-root *,.o-root *::before,.o-root *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
  .o-spinner,.o-btn.is-loading::after{animation:o-spin 1.6s linear infinite!important}
}
