/* Layout: a near-black side rail with the modules (the Legal Velocity mark at the top, a colored tile per module), a
   light working surface, white cards for records. The brand colors come from the logo: cyan #17B6DC and orange #F5A623
   on black. Actions use a deep cyan that stays readable; the bright cyan and the orange are for tiles, bars and badges.
   Every module and every Today column has a color of its own, so a screen reads at a glance. */
:root {
  --bg: #F3F5FA; --surface: #FFFFFF; --surface-2: #EDF1F7; --ink: #0F172A; --muted: #5B6578;
  --line: #E2E7F0; --line-strong: #B6C0D1; --rail: #0B0D12; --rail-2: #12161F; --rail-ink: #AEB7C8; --rail-active: rgba(255, 255, 255, 0.09); --rail-ink-strong: #FFFFFF;
  --accent: #0A7EA4; --accent-ink: #FFFFFF; --accent-tint: #E1F4FA; --accent-strong: #06607D; --accent-glow: rgba(10, 126, 164, 0.7); --rail-line: rgba(255, 255, 255, 0.12);
  --cyan: #17B6DC; --orange: #F5A623; --orange-ink: #1A1200; --orange-tint: #FFF2D9;
  --float: #0B0D12; --float-2: #12161F; --float-ink: #AEB7C8;   /* the floating surfaces (toasts, video bar, call panel) stay dark in every motif */
  --c-cyan: #17B6DC; --c-orange: #F5A623; --c-violet: #8B5CF6; --c-pink: #EC4899; --c-green: #22C55E; --c-blue: #3B82F6; --c-teal: #14B8A6; --c-red: #EF4444; --c-lime: #84CC16; --c-indigo: #6366F1; --c-amber: #F59E0B; --c-slate: #64748B; --c-fuchsia: #D946EF;
  --good: #14653B; --good-tint: #E3F4EA; --warn: #8A4300; --warn-tint: #FFF1DC; --bad: #A32020; --bad-tint: #FCE8E8;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.25); --overlay: rgba(11, 13, 18, 0.55);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -18px rgba(15, 23, 42, 0.18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0D1119; --surface: #161B26; --surface-2: #1F2634; --ink: #E8ECF4; --muted: #A3AEC4;
  --line: #2A3344; --line-strong: #45516A; --rail: #07090D; --rail-2: #0D1017; --rail-ink: #AEB9D0; --rail-active: rgba(255, 255, 255, 0.09); --rail-ink-strong: #FFFFFF;
  --accent: #5CCFEA; --accent-ink: #06202A; --accent-tint: #0F3340; --accent-strong: #8FE0F3; --accent-glow: rgba(92, 207, 234, 0.5);
  --orange-tint: #3A2A10; --violet-tint: #2A2150; --violet-ink: #C4B5FD;
  --good: #6FD39B; --good-tint: #173526; --warn: #F3B36A; --warn-tint: #3A2A14; --bad: #FF9A9A; --bad-tint: #3D1A1A;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55); --overlay: rgba(0, 0, 0, 0.6); --card-shadow: none; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0D1119; --surface: #161B26; --surface-2: #1F2634; --ink: #E8ECF4; --muted: #A3AEC4;
  --line: #2A3344; --line-strong: #45516A; --rail: #07090D; --rail-2: #0D1017; --rail-ink: #AEB9D0; --rail-active: rgba(255, 255, 255, 0.09); --rail-ink-strong: #FFFFFF;
  --accent: #5CCFEA; --accent-ink: #06202A; --accent-tint: #0F3340; --accent-strong: #8FE0F3; --accent-glow: rgba(92, 207, 234, 0.5);
  --orange-tint: #3A2A10; --violet-tint: #2A2150; --violet-ink: #C4B5FD;
  --good: #6FD39B; --good-tint: #173526; --warn: #F3B36A; --warn-tint: #3A2A14; --bad: #FF9A9A; --bad-tint: #3D1A1A;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55); --overlay: rgba(0, 0, 0, 0.6); --card-shadow: none; color-scheme: dark;
}

html, body, #root { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* the brand line across the very top of every screen: cyan into orange, like the lines on the mark */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; background: linear-gradient(90deg, var(--cyan) 0%, #3B82F6 45%, var(--orange) 100%); pointer-events: none; }
* { box-sizing: border-box; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Shell */
.app { display: flex; flex-wrap: wrap; min-height: 100%; }
.nav { flex: 1 1 220px; max-width: 248px; background: linear-gradient(180deg, var(--rail) 0%, var(--rail-2) 100%); padding: 22px 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.nav-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; text-decoration: none; color: var(--rail-ink-strong); }
.nav-brand img { width: 38px; height: 38px; flex: 0 0 auto; }
.nav-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; color: var(--rail-ink-strong); }
.nav-brand-by { font-size: 11px; color: var(--rail-ink); letter-spacing: 0.01em; margin-top: 3px; }
.nav-brand-by b { color: var(--rail-brand, var(--cyan)); font-weight: 600; }
.nav-brand .logo-light { display: none; }
:root[data-rail="light"] .nav-brand .logo-dark { display: none; }
:root[data-rail="light"] .nav-brand .logo-light { display: inline; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--rail-ink); text-align: left; cursor: pointer; font-weight: 500; font-size: 14.5px; transition: background 0.12s ease, color 0.12s ease; }
.nav-item:hover { background: var(--rail-active); color: var(--rail-ink-strong); }
.nav-item.active { background: var(--rail-active); color: var(--rail-ink-strong); font-weight: 700; box-shadow: inset 3px 0 0 var(--tile, var(--cyan)); }
.nav-item > span:not(.nav-ico):not(.nav-badge) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the module tile: a small rounded square in the module's color, solid when the module is open */
.nav-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--tile, var(--cyan)) 22%, transparent); color: var(--tile, var(--cyan)); transition: background 0.12s ease, color 0.12s ease; }
.nav-ico svg { width: 16px; height: 16px; }
.nav-item.active .nav-ico, .nav-item:hover .nav-ico { background: var(--tile, var(--cyan)); color: #fff; }
.nav-item.active .nav-ico.light-ink, .nav-item:hover .nav-ico.light-ink { color: #111; }
.nav-badge { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: var(--orange-ink); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.nav-foot { margin-top: auto; padding: 12px 8px 0; color: var(--rail-ink); font-size: 12px; }
/* the rail's Send to Claude now button (orange, like the lines on the mark), and the video-call bar */
.nav-run { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.nav-run-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 10px; background: var(--orange); color: var(--orange-ink); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(245, 166, 35, 0.6); }
.nav-run-btn:hover { background: #FFB84D; color: var(--orange-ink); }
.nav-run-btn.has { background: var(--cyan); color: #06202A; box-shadow: 0 6px 18px -6px rgba(23, 182, 220, 0.7); }
.nav-run-btn.has:hover { background: #4FD0EC; }
.nav-run-btn.has .nav-badge { background: #06202A; color: #fff; }
.nav-run-hint { color: var(--rail-ink); font-size: 11px; line-height: 1.35; }
.nav-run-list { all: unset; cursor: pointer; color: var(--cyan); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nav-run-list:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
/* Hecky (and his speech bubble) step out of sight while a window is open, so none of its buttons are ever under him */
body:has(.modal-overlay) #hecky-helper { visibility: hidden; }
body:has(#hecky-helper) .main { padding-bottom: 290px; }   /* room to scroll any row up from under Hecky, who stands in the corner */
.video-bar { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: min(900px, calc(100% - 32px)); padding: 10px 16px; border-radius: 12px; background: var(--float); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.video-bar .muted { color: rgba(255, 255, 255, 0.7); }
.video-bar .btn { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.video-bar .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.video-bar .link { color: #cfd8ff; }
.video-bar.ask { background: #7a3e00; }
.video-dot { width: 10px; height: 10px; border-radius: 50%; background: #f5b400; animation: videopulse 1.4s ease-in-out infinite; }
.video-bar.on .video-dot { background: #37c26f; }
.video-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; min-width: 56px; }
@keyframes videopulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 28px 80px; display: flex; flex-direction: column; gap: 20px; background: radial-gradient(900px 320px at 0% -5%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 70%); }
@media (max-width: 820px) {
  .nav { max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; padding: 10px 12px 8px; align-items: center; gap: 2px; }
  .nav-brand { padding: 0 10px 0 0; white-space: nowrap; }
  .nav-brand img { width: 30px; height: 30px; }
  .nav-brand-name { font-size: 15px; }
  .nav-brand-by { display: none; }
  .nav-item { width: auto; white-space: nowrap; padding: 0 8px; gap: 7px; min-height: 36px; font-size: 13.5px; }
  .nav-ico { width: 24px; height: 24px; }
  .nav-ico svg { width: 14px; height: 14px; }
  .nav-item.active { box-shadow: none; }
  .nav-foot { display: none; }
  .main { padding: 20px 16px 80px; }
}

/* motion: a screen rises a touch as it opens, the mark taps when pointed at, a tile grows under the pointer */
.view { animation: view-in 0.22s ease-out backwards; }   /* backwards, not both: a transform kept on .view would hold every dialog (position: fixed) inside it */
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nav-brand img { transition: transform 0.2s ease; transform-origin: 70% 60%; }
.nav-brand:hover img { animation: gavel 0.55s ease-in-out; }
@keyframes gavel { 0% { transform: rotate(0); } 35% { transform: rotate(-14deg); } 65% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
.nav-ico { transition: background 0.12s ease, color 0.12s ease, transform 0.15s ease; }
.nav-item:hover .nav-ico { transform: scale(1.08); }
.nav-item:active .nav-ico { transform: scale(0.94); }
.pop-host { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.pop-host i { position: absolute; width: 8px; height: 8px; border-radius: 50%; display: block; }
.pill, .chip-btn, .tab { transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; }

/* Type */
.h1 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 15px; font-weight: 700; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
/* the three speed lines from the mark, over every page title */
.page-head > .stack:first-child::before { content: ''; display: block; width: 44px; height: 9px; margin-bottom: 2px; background: linear-gradient(135deg, transparent 0 31%, var(--cyan) 31% 44%, transparent 44% 56%, var(--orange) 56% 69%, transparent 69% 81%, var(--orange) 81% 94%, transparent 94%); border-radius: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.pre { white-space: pre-wrap; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Layout helpers */
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.tight { gap: 8px; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.stack.loose { gap: 20px; }
.grow { flex: 1 1 260px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
/* Today: four columns side by side on any desktop or laptop screen (the columns get narrower and the cards in them
   tighter rather than wrapping), two columns on a small tablet, one on a phone. */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.grid4 > * { min-width: 0; }
.grid4 .card { padding: 14px 14px 16px; gap: 10px; font-size: 14px; }
.grid4 .card .h2 { font-size: 16px; }
.grid4 .list-item { padding: 10px 0; gap: 8px; }
.grid4 .list-item > .row:last-child { flex-basis: 100%; justify-content: flex-start; }
.grid4 .btn { padding: 5px 10px; font-size: 13px; }
.grid4 .btn.sm { padding: 3px 8px; font-size: 12px; }
.grid4 .select, .grid4 .input { font-size: 13px; min-height: 32px; }
.grid4 .strong, .grid4 .link.strong { overflow-wrap: anywhere; }
.grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.grid5 .card { padding: 12px 12px 14px; font-size: 13.5px; }
.grid5 .card .h2 { font-size: 15px; }
@media (max-width: 1400px) { .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid5 .card { font-size: 14px; } }
/* Today with six columns (Messages first): narrower cards, smaller type, so all six sit side by side on a wide screen */
.grid6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.grid6 .card { padding: 10px 10px 12px; font-size: 12.5px; gap: 8px; }
.grid6 .card .h2 { font-size: 14px; }
.grid6 .list-item { padding: 8px 0; gap: 6px; }
.grid6 .btn { padding: 4px 9px; font-size: 12.5px; }
.grid6 .btn.sm { min-height: 30px; padding: 2px 8px; font-size: 12px; }
.grid6 .pill { font-size: 11px; padding: 1px 7px; }
.grid6 .select, .grid6 .input, .grid6 .textarea { font-size: 12px; }
@media (max-width: 1500px) { .grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid6 .card { font-size: 13.5px; } }
@media (max-width: 1040px) { .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid6 { grid-template-columns: minmax(0, 1fr); } }
/* Messages: one conversation */
.msg-conv.waiting { border-left: 3px solid var(--accent); padding-left: 10px; }
.msg-lines { gap: 3px; }
.msg-conv.held { opacity: 0.78; }   /* answered or marked on this visit: kept in place so the page does not jump */
.msg-conv.held:hover, .msg-conv.held:focus-within { opacity: 1; }
.msg-line { font-size: 0.95em; line-height: 1.4; overflow-wrap: anywhere; }
.msg-line.out { color: var(--muted); }
.msg-full { white-space: pre-wrap; }
.msg-more { margin-left: 6px; }
.msg-dismiss-one { margin-left: 8px; }
.list-item.msg-held-line { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 6px 10px; opacity: 0.85; }
.msg-line.dismissed { opacity: 0.6; }
.msg-whole { gap: 12px; max-height: 70vh; overflow-y: auto; }
.msg-whole-item { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); line-height: 1.45; overflow-wrap: anywhere; }
.msg-whole-item.out { background: var(--accent-tint); margin-left: 24px; }
.msg-whole-item.in { margin-right: 24px; }
.msg-reply .textarea { width: 100%; }
.msg-case-head { justify-content: space-between; }
@media (max-width: 1040px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid4 .card { font-size: 15px; } }
@media (max-width: 700px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .split-main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .split-side { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--card-shadow); }
/* a card with a color of its own: a colored band along the top and a dot before the title */
.card.tone { border-top: 4px solid var(--tone, var(--cyan)); }
.card.tone > .card-head .h2 { display: inline-flex; align-items: center; gap: 9px; }
.card.tone > .card-head .h2::before { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 4px; background: var(--tone, var(--cyan)); }
.card.tone.fold > .fold-head .h2::before { display: none; }
.card.tone.fold > .fold-head .fold-chev { color: var(--tone, var(--cyan)); }
.card.tone.fold > .fold-head .fold-toggle { gap: 10px; }
.card.tone.fold > .fold-head .fold-toggle::before { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 4px; background: var(--tone, var(--cyan)); order: 1; }
.card.tone.fold > .fold-head .fold-toggle .h2 { order: 2; }
.card.tone.fold > .fold-head .fold-toggle .fold-chev { order: 0; }
.card.flush { padding: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
/* folding sections (Settings): the heading is the switch */
.card.fold { padding: 0; gap: 0; }
.card.fold > .fold-head { padding: 14px 18px; flex-wrap: nowrap; }
.card.fold.open > .fold-head { border-bottom: 1px solid var(--line); }
.fold-toggle { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 0; margin: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.fold-toggle:hover .h2 { color: var(--accent-strong); }
.fold-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.fold-chev { width: 18px; color: var(--muted); font-size: 15px; text-align: center; flex: 0 0 auto; }
.card.fold.open .fold-chev { color: var(--accent); }
.card.fold > .fold-body { padding: 14px 18px 18px; }
.fold-index { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.list { display: flex; flex-direction: column; }
.list-item { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item:last-child { padding-bottom: 0; }
.list-item > .grow { flex: 1 1 220px; }
/* a list whose rows are separate projects (Done by Claude): each row is its own white tile with space between, like the
   cards on the page, instead of a thin line */
.list.spaced { gap: 14px; }
.list.spaced > .list-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.clickable { cursor: pointer; transition: background 0.12s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.clickable:hover { background: var(--surface-2); }
.card.clickable:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.35); }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { padding: 22px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty::before { content: ''; width: 44px; height: 9px; opacity: 0.8; background: linear-gradient(135deg, transparent 0 31%, var(--cyan) 31% 44%, transparent 44% 56%, var(--orange) 56% 69%, transparent 69% 81%, var(--orange) 81% 94%, transparent 94%); border-radius: 2px; }
.banner { padding: 12px 14px; border-radius: 12px; background: var(--accent-tint); color: var(--ink); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-left: 4px solid var(--cyan); }
.banner.warn { border-left-color: var(--orange); }
.banner.bad { border-left-color: var(--c-red); }
.banner.good { border-left-color: var(--c-green); }
.banner.warn { background: var(--warn-tint); }
.banner.bad { background: var(--bad-tint); }
.banner.good { background: var(--good-tint); }
.notify-offer { align-items: center; }
/* A Slack message Claude wrote, waiting for the attorney's Send (google.js SlackDraft). Violet = the team-talk color the chat uses. */
.slack-draft { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c-violet); border-radius: 12px; background: var(--surface-2); max-width: 760px; }
.slack-draft.muted { border-left-color: var(--line-strong); background: transparent; }
.slack-head { font-size: 13px; }
.slack-to .input { flex: 1 1 180px; min-width: 0; max-width: 320px; padding: 4px 8px; font-size: 13px; }
.slack-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--c-violet); color: #fff; font-weight: 700; font-size: 12px; }
.slack-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.slack-draft .textarea { font-size: 14px; line-height: 1.45; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); }
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.06s; }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 20px -10px var(--accent-glow); }
.btn.primary:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 6px 16px -8px var(--accent-glow); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); font-weight: 700; }
.btn.orange:hover { background: #FFB84D; border-color: #FFB84D; color: var(--orange-ink); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: var(--line-strong); background: var(--surface); color: var(--accent-strong); }   /* every button has an edge: standard and easy to see (Oct 18, 2026) */
.btn.ghost:hover { background: var(--accent-tint); border-color: var(--accent); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.msg-open-case { min-height: 42px; padding: 0 20px; font-size: 15px; flex: 0 0 auto; }
.btn.msg-case-btn { max-width: 100%; min-width: 0; justify-content: flex-start; color: var(--accent-strong); }
.msg-case-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; text-align: left; }
.link:hover { color: var(--accent-strong); text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 500; }
.field-hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 40px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
.textarea { min-height: 96px; resize: vertical; }
.select.sm { width: auto; min-height: 30px; padding: 3px 26px 3px 8px; font-size: 13px; }
/* the case picker: a box like a select; its list opens with a search box at the top */
.select.case-pick { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; padding-right: 8px; }
.select.case-pick:hover:not(:disabled) { border-color: var(--accent); }
.select.case-pick:disabled { opacity: 0.6; cursor: not-allowed; }
.case-pick-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-pick.placeholder .case-pick-text { color: var(--muted); }
.case-pick-chev { flex: 0 0 auto; display: inline-flex; color: var(--muted); }
.case-pop { position: fixed; z-index: 66; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; animation: fade-in 0.12s ease-out both; }
.case-pop.sheet { left: 8px; right: 8px; border-top: 4px solid var(--cyan); }
.case-pop-back { position: fixed; inset: 0; z-index: 65; background: var(--overlay); }
.case-pop-search { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.case-pop-search:focus-within { box-shadow: inset 0 -2px 0 var(--cyan); }
.case-pop-icon { display: inline-flex; color: var(--muted); flex: 0 0 auto; }
.case-pop-input { flex: 1 1 auto; min-width: 0; min-height: 38px; border: 0; outline: none; background: transparent; color: var(--ink); padding: 6px 2px; font-size: 15px; }
.case-pop-input::placeholder { color: var(--muted); opacity: 1; }
.case-pop.sheet .case-pop-input { font-size: 16px; }   /* a phone does not zoom in when the box is tapped */
.case-pop-clear { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; padding: 0; }
.case-pop-clear:hover { color: var(--ink); background: var(--accent-tint); }
.case-pop-count { padding: 6px 14px 2px; font-size: 12px; color: var(--muted); }
.case-pop-count.partial { color: var(--warn); font-weight: 600; }
.case-pop-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px; }
.case-pop-group { padding: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.case-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.case-opt.active { background: var(--accent-tint); }
.case-opt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.case-opt-title { font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-opt.on .case-opt-title { color: var(--accent-strong); }
.case-opt-sub, .case-opt-why { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.case-opt-why-label { font-weight: 600; color: var(--ink); }
.case-opt-check { flex: 0 0 auto; display: inline-flex; color: var(--accent); margin-top: 2px; }
.case-pop-more { display: block; margin: 6px 10px 4px; }
.case-opt.ask { align-items: center; }
.case-opt.ask .case-opt-title { color: var(--accent-strong); }
.case-opt-ai { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--cyan), var(--orange)); color: #0B0D12; }
.case-opt-why.claude .case-opt-why-label { color: var(--accent-strong); }
.case-pop-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.case-pop-note.bad { color: var(--bad); }
.case-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.case-ask-pick { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px; background: var(--surface); width: 100%; max-width: 760px; }
/* Menu: a button with a list of choices under it (Edit on an update) */
.menu-btn { gap: 4px; }
.menu-chev { display: inline-flex; margin-right: -3px; transition: transform 0.12s ease; }
.menu-btn.open { border-color: var(--accent); background: var(--surface-2); }
.menu-btn.open .menu-chev { transform: rotate(180deg); }
.menu-pop { position: fixed; z-index: 66; display: flex; flex-direction: column; gap: 1px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; padding: 6px; outline: none; animation: fade-in 0.12s ease-out both; }
.menu-pop.sheet { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: 75vh; border-top: 4px solid var(--cyan); }
.menu-back { position: fixed; inset: 0; z-index: 65; background: var(--overlay); }
.menu-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.menu-group:first-child { padding-top: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.3; }
.menu-item:hover, .menu-item:focus-visible { background: var(--accent-tint); outline: none; }
.menu-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.menu-item:hover .menu-icon, .menu-item:focus-visible .menu-icon { color: var(--accent-strong); background: var(--surface); }
.menu-pop > * { flex-shrink: 0; }   /* a long menu scrolls; its rows never squeeze into each other */
.menu-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 0; }
.menu-label { line-height: 1.25; }
.menu-sub { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.menu-tag { flex: 0 0 auto; }
.menu-item.ai .menu-icon { background: linear-gradient(135deg, var(--cyan), var(--orange)); color: #0B0D12; }
.menu-item.ai .menu-label { color: var(--accent-strong); font-weight: 700; }
.menu-close { align-self: stretch; margin-top: 6px; }
.menu-pop.sheet .menu-item { min-height: 46px; font-size: 15px; }
.case-pop-empty { padding: 22px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.case-pop-empty .strong { color: var(--ink); }
.case-pop-foot { border-top: 1px solid var(--line); padding: 6px 12px; font-size: 12px; color: var(--muted); background: var(--surface-2); }
mark.hl { background: color-mix(in srgb, var(--orange) 34%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.case-match { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.case-match .case-opt-why-label { font-weight: 600; color: var(--ink); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.drop { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 16px; color: var(--muted); text-align: center; cursor: pointer; background: var(--surface); }
.drop.over { border-color: var(--accent); background: var(--accent-tint); }
.drop.busy { cursor: progress; opacity: 0.75; }

/* Status */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.blue { background: var(--accent-tint); color: var(--accent-strong); }
.pill.cyan { background: color-mix(in srgb, var(--cyan) 18%, transparent); color: var(--accent-strong); }
.pill.orange { background: var(--orange-tint); color: var(--warn); }
.pill.violet { background: var(--violet-tint, #EFE9FE); color: var(--violet-ink, #5B21B6); }
.pill.green { background: var(--good-tint); color: var(--good); }
.pill.amber { background: var(--warn-tint); color: var(--warn); }
.pill.red { background: var(--bad-tint); color: var(--bad); }
/* invoice adjustments (discounts, reductions): violet, so they read apart from the charges and from the red of overdue */
.table tr.adj-row td { background: var(--violet-tint, #EFE9FE); }
.table tr.sub-row td { border-top: 1px solid var(--line-strong); }
.adj-amount { color: var(--violet-ink, #5B21B6); font-weight: 700; }
.adj-form { display: grid; gap: 12px; background: var(--surface-2); border: 2px solid var(--violet-ink, #5B21B6); }
.adj-preview { padding: 8px 12px; border-radius: 10px; background: var(--surface); }
.btn.btn-adjust { border-color: var(--violet-ink, #5B21B6); color: var(--violet-ink, #5B21B6); }
.text-good { color: var(--good); } .text-warn { color: var(--warn); } .text-bad { color: var(--bad); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.table th.narrow, .table td.narrow { width: 1%; white-space: nowrap; padding-right: 4px; }
.th-sort { border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.th-sort:hover, .th-sort.on { color: var(--accent-strong); }
.th-arrow { font-size: 10px; opacity: 0.45; letter-spacing: -2px; }
.th-sort.on .th-arrow { opacity: 1; letter-spacing: 0; }
.table tr.selected td { background: var(--accent-tint); }
.select-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--accent); background: var(--accent-tint); border-radius: 10px; }
.row-check { display: inline-flex; align-items: center; padding: 4px; margin: -4px; cursor: pointer; }
.row-check input { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); }

/* Tabs: a row of rounded chips, the open one filled */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.12s ease, color 0.12s ease; }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tab.active { color: var(--accent-strong); font-weight: 700; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 -3px 0 var(--cyan); }

/* Modal + toast */
.modal-overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px; overflow-y: auto; animation: fade-in 0.15s ease-out both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.confirm-layer { z-index: 85; }   /* a question sits above the window that asked it, and above drawers */
.cq-confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c-amber) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c-amber) 35%, transparent); }
.list-item.cq-gone { opacity: 0; transform: translateX(12px); transition: opacity 0.18s ease, transform 0.18s ease; }
.modal { animation: modal-in 0.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.toast { animation: toast-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal { width: 100%; max-width: 640px; background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); border-top: 4px solid var(--cyan); }
.modal.wide { max-width: 920px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100% - 32px)); }
.toast { background: var(--float); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--cyan); }
.toast.bad { background: var(--bad); color: var(--surface); }
.toast.warn { border-left-color: var(--orange); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--cyan); border-right-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.thumb { max-width: 100%; max-height: 220px; border: 1px solid var(--line); border-radius: 8px; }
/* a PDF kept on this site (a scan from the phone app) opens right in the document window */
.doc-pdf { width: 100%; height: min(70vh, 900px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
/* the documents list: a tile per document, in its kind's color */
.doc-row { flex-wrap: nowrap; }
.doc-row > .doc-main { flex: 1 1 160px; min-width: 0; }
.doc-tile { flex: 0 0 auto; width: 36px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tile, var(--c-slate)) 16%, transparent); color: var(--tile, var(--c-slate)); }
.doc-tile.pdf { background: var(--bad-tint); color: var(--bad); }
.doc-row .doc-actions { flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .doc-row { flex-wrap: wrap; } .doc-row .doc-actions { flex-basis: 100%; justify-content: flex-start; padding-left: 46px; } }
.ai-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-size: 12.5px; font-weight: 600; }
.boot { min-height: 60vh; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; }

/* Account block in the side rail, and the sign-in page (website only). */
.nav-account { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rail-line); display: flex; flex-direction: column; gap: 2px; }
.nav-account-name { color: var(--rail-ink-strong); font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account-firm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-signout { align-self: flex-start; margin-top: 6px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rail-line); background: none; color: var(--rail-ink); cursor: pointer; }
/* the light/dark switch in the rail */
.nav-theme { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rail-line); background: none; color: var(--rail-ink); cursor: pointer; font-size: 12px; font-weight: 600; }
.nav-theme:hover { background: var(--rail-active); color: var(--rail-ink-strong); }
.nav-theme svg { width: 14px; height: 14px; }
.nav-signout:hover { background: var(--rail-active); color: var(--rail-ink-strong); }
@media (max-width: 820px) { .nav-run { margin: 0; } .nav-run-hint { display: none; } .nav-run-btn { min-height: 32px; padding: 0 10px; font-size: 12px; } .nav-foot { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0 0 0 12px; white-space: nowrap; } .nav-account { margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 8px; } .nav-account-firm, .nav-account-name { display: none; } .nav-signout { margin: 0; } }
.auth { min-height: 100%; display: flex; flex-wrap: wrap; }
.auth-side { position: relative; overflow: hidden; flex: 1 1 320px; background: linear-gradient(160deg, #0B0D12 0%, #10151F 60%, #0B1A22 100%); color: var(--rail-ink); padding: 48px 40px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.auth-side::before { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(23, 182, 220, 0.28), transparent 65%); pointer-events: none; }
.auth-side::after { content: ''; position: absolute; width: 380px; height: 380px; left: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 65%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side .brand { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; color: var(--rail-ink-strong); }
.auth-side .brand img { width: 64px; height: 64px; }
.auth-side .brand small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--rail-ink); margin-top: 4px; }
.auth-side .brand small b { color: var(--cyan); font-weight: 600; }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.auth-side li { padding-left: 16px; border-left: 3px solid var(--cyan); }
.auth-side li:nth-child(2) { border-left-color: var(--orange); }
.auth-side li:nth-child(3) { border-left-color: var(--c-violet); }
.auth-by { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--rail-ink); }
.auth-by img { height: 34px; width: auto; }
.auth-main { flex: 2 1 380px; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-error { padding: 10px 12px; border-radius: 8px; background: var(--bad-tint); color: var(--bad); }
@media (max-width: 820px) { .auth-side { padding: 28px 20px; } .auth-side ul { display: none; } }

body { margin: 0; }
[hidden] { display: none !important; }
@media (min-width: 821px) { .nav { position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow-y: auto; } }
.az-list { margin: 0 0 4px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.addr { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }

/* chips you press (recipient chips in the Email tab, phone chips) */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-strong); }
.chip-btn.on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-strong); }

/* an email address with a one-click copy button after it */
.email-wrap { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: middle; }
.email-wrap > :first-child { min-width: 0; overflow-wrap: anywhere; }
.copy-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.copy-btn:hover { background: var(--accent-tint); color: var(--accent-strong); border-color: var(--line-strong); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.copy-btn.done { color: var(--good); background: var(--good-tint); }

/* live phone numbers: rest on one for Call / Text / Copy */
.phone-wrap { display: inline-block; position: relative; }
.phone-num { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
.phone-num:hover, .phone-num.on { color: var(--accent-strong); text-decoration-style: solid; }
.phone-pop { z-index: 45; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px rgba(10, 18, 40, 0.18); display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 14px; line-height: 1.4; white-space: normal; }
.phone-pop .textarea { min-height: 72px; }
.phone-pop-head { display: flex; flex-direction: column; gap: 1px; }
.seg-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* the printable calendar: a preview on screen, the sheet alone on paper */
.print-sheet { display: none; }
.print-preview { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #111; padding: 16px; max-height: 52vh; overflow: auto; }
.print-preview .ps-month, .print-preview .ps-agenda { zoom: 0.78; }
.ps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.ps-head h1 { font-size: 22px; margin: 0; font-family: var(--font); }
.ps-sub { font-size: 12px; color: #555; }
.ps-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.ps-grid th { border: 1px solid #999; padding: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; background: #f1f1f1; color: #333; }
.ps-grid td { border: 1px solid #999; vertical-align: top; padding: 3px 4px; height: 92px; }
.ps-grid td.ps-blank { background: #fafafa; }
.ps-grid td.ps-out { color: #aaa; }
.ps-grid td.ps-today .ps-num { background: #1f4fbf; color: #fff; border-radius: 999px; }
.ps-num { font-weight: 700; font-size: 12px; display: inline-block; min-width: 18px; text-align: center; margin-bottom: 2px; }
.ps-item { padding-left: 9px; position: relative; line-height: 1.25; margin: 1px 0; overflow-wrap: anywhere; }
.ps-item::before { content: ''; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #1f4fbf; }
.ps-item.ps-deadline::before { background: #c0392b; } .ps-item.ps-task::before { background: #b7791f; } .ps-item.ps-google::before { background: #2e8b57; }
.ps-lines { height: 100%; min-height: 60px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 15px, #ddd 15px, #ddd 16px); }
.ps-legend { font-size: 11px; color: #555; margin-top: 6px; }
.ps-list { width: 100%; border-collapse: collapse; font-size: 12px; }
.ps-list th { text-align: left; border-bottom: 2px solid #333; padding: 5px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.ps-list td { border-bottom: 1px solid #ccc; padding: 5px 6px; vertical-align: top; }
.ps-list tr.ps-first td { border-top: 1px solid #333; }
.ps-list tr.ps-empty td { border-top: 1px solid #333; color: #777; }
.ps-small { font-size: 11px; color: #444; }
.ps-muted { color: #888; }
.ps-tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 5px; border-radius: 4px; border: 1px solid #999; color: #333; margin-right: 2px; }
.ps-tag.ps-deadline { border-color: #c0392b; color: #c0392b; } .ps-tag.ps-task { border-color: #b7791f; color: #b7791f; } .ps-tag.ps-google { border-color: #2e8b57; color: #2e8b57; }
@media print {
  body.has-print-sheet > :not(.print-sheet) { display: none !important; }
  body.has-print-sheet { background: #fff; }
  .print-sheet { display: block !important; position: static; width: auto; color: #000; }
  .ps-month { page-break-after: always; break-after: page; }
  .ps-month:last-child { page-break-after: auto; break-after: auto; }
  .ps-grid td { height: 110px; }
  .ps-list tr { page-break-inside: avoid; break-inside: avoid; }
  .ps-list thead { display: table-header-group; }
}

/* ---------- team chat ---------- */
.chat { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.chat-group { display: flex; flex-direction: column; gap: 2px; }
.chat-channel { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.chat-channel:hover { background: var(--surface-2); }
.chat-channel.active { background: var(--accent-tint); color: var(--accent-strong); font-weight: 700; box-shadow: inset 3px 0 0 var(--cyan); }
.chat-channel.unread .chat-channel-name { font-weight: 600; }
.chat-channel-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-channel-row { position: relative; display: flex; align-items: center; gap: 2px; }
.chat-channel-row .chat-channel { flex: 1 1 auto; min-width: 0; }
.chat-channel-more { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.chat-channel-row:hover .chat-channel-more, .chat-channel-more:focus-visible, .chat-channel-row.menu-open .chat-channel-more { opacity: 1; }
@media (hover: none) { .chat-channel-more { opacity: 1; } }
.chat-channel-more:hover, .chat-channel-row.menu-open .chat-channel-more { background: var(--surface-2); color: var(--ink); }
.chat-menu { position: absolute; z-index: 30; top: 100%; right: 0; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.chat-menu button { text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.chat-menu button:hover { background: var(--surface-2); }
.chat-menu button.danger { color: var(--bad); font-weight: 700; }
.chat-menu button.danger:hover { background: var(--bad-tint); }
.chat-menu-note { padding: 6px 10px; }
.chat-for { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-tint); border-radius: 999px; padding: 1px 8px; }
.chat-main { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 520px; height: calc(100vh - 190px); }
.chat-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-back { display: none; }
.chat-msgs { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-read { color: var(--good); font-weight: 600; margin-top: 2px; }
/* the General tab: the # General conversation on a page of its own, the full width of the page */
.general-main { height: calc(100vh - 170px); }
.case-chat-msgs { max-height: 460px; min-height: 160px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface-2); }
.chat-day { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 6px 0; }
.chat-day::before, .chat-day::after { content: ''; flex: 1 1 auto; border-top: 1px solid var(--line); }
.chat-msg { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; align-items: flex-start; }
.chat-msg:hover { background: var(--surface-2); }
.chat-msg.highlight { background: var(--warn-tint); }
.chat-msg.from-claude { background: var(--accent-tint); }
.chat-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.chat-avatar.claude { background: linear-gradient(135deg, var(--cyan), var(--orange)); color: #0B0D12; font-size: 16px; }
.chat-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chat-name { font-weight: 600; }
.chat-time { color: var(--muted); font-size: 12px; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.chat-mention { background: var(--accent-tint); color: var(--accent-strong); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.chat-mention.claude { background: var(--good-tint); color: var(--good); }
.chat-img { max-width: 320px; max-height: 240px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.chat-chip { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); font-size: 13px; }
.chat-chip.pending { border-style: dashed; }
/* screenshots pasted into a message box, waiting to go */
.paste-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.paste-thumb { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 72px; min-width: 72px; max-width: 160px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.paste-thumb img { height: 100%; width: auto; max-width: 160px; object-fit: cover; display: block; }
.paste-thumb.loading { padding: 0 12px; max-width: none; border-style: dashed; }
.paste-thumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11, 13, 18, 0.72); color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.paste-thumb-x:hover, .paste-thumb-x:focus-visible { background: var(--bad); }
.chat-compose.drop-on, .textarea.drop-on { outline: 2px dashed var(--accent); outline-offset: -4px; background: var(--accent-tint); }
.chat-chip-main { border: 0; background: transparent; color: var(--accent-strong); font: inherit; font-weight: 500; padding: 3px 10px; cursor: pointer; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-chip-main:hover { background: var(--accent-tint); }
.chat-chip-x { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; padding: 0 8px; cursor: pointer; }
.chat-chip-x:hover { color: var(--bad); background: var(--bad-tint); }
.chat-proposal { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.chat-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; opacity: 0.75; }
.chat-msg:hover .chat-actions { opacity: 1; }
/* Reply and Forward on a chat message (Oct 21, 2026) */
.chat-msg.flash { animation: chat-flash 1.8s ease-out; }
@keyframes chat-flash { 0%, 35% { background: var(--warn-tint); box-shadow: inset 3px 0 0 var(--warn); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .chat-msg.flash { animation: none; background: var(--warn-tint); } }
.chat-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; text-align: left; border: 0; border-left: 3px solid var(--accent); background: var(--accent-tint); color: inherit; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 0 8px 8px 0; cursor: pointer; }
.chat-quote:hover, .chat-quote:focus-visible { background: var(--surface-2); }
.chat-quote.gone { cursor: default; border-left-color: var(--line-strong); background: var(--surface-2); color: var(--muted); font-style: italic; }
.chat-quote-name { font-weight: 700; color: var(--accent-strong); font-size: 12px; }
.chat-quote-text { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-fwd { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-left: 3px solid var(--c-violet); background: var(--surface); border-radius: 0 10px 10px 0; padding: 6px 12px 8px; }
.chat-fwd.nested { margin-top: 4px; background: var(--surface-2); }
.chat-fwd-head { color: var(--ink); }
.chat-fwd-mark { color: var(--c-violet); font-weight: 700; }
.chat-fwd-preview .chat-fwd { max-height: 160px; overflow: auto; }
.chat-fwd-list { display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.chat-fwd-pick { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.chat-fwd-pick.on { background: var(--accent-tint); }
.chat-fwd-pick input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.chat-replying { display: flex; align-items: stretch; gap: 6px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 8px 8px 0; }
.chat-replying-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: left; padding: 5px 10px; cursor: pointer; }
.chat-replying-label { font-weight: 700; color: var(--accent-strong); font-size: 12px; }
.chat-replying-text { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-replying-x { flex: 0 0 auto; width: 34px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 18px; cursor: pointer; border-radius: 0 8px 8px 0; }
.chat-replying-x:hover, .chat-replying-x:focus-visible { color: var(--bad); background: var(--bad-tint); }
/* reactions on a chat message */
.chat-reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chat-react { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; line-height: 22px; cursor: pointer; color: inherit; }
.chat-react:hover { border-color: var(--accent); }
.chat-react.mine { background: var(--accent-tint); border-color: var(--accent); }
.chat-react-e { font-size: 15px; }
.chat-react-n { font-weight: 600; font-size: 12px; }
.chat-react-wrap { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.chat-react-quick { font-size: 15px; line-height: 1; text-decoration: none; filter: grayscale(0.35); }
.chat-react-quick:hover, .chat-react-quick.mine { filter: none; }
.chat-react-quick.mine { background: var(--accent-tint); border-radius: 6px; padding: 1px 3px; }
.chat-react-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.chat-react-pick { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 18px; cursor: pointer; }
.chat-react-pick:hover, .chat-react-pick:focus-visible { background: var(--surface-2); }
.chat-react-pick.mine { background: var(--accent-tint); }
@media (max-width: 480px) { .chat-react-menu { grid-template-columns: repeat(6, 32px); } }
.chat-compose { border-top: 1px solid var(--line); padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-compose-row { display: flex; gap: 10px; align-items: flex-start; }
.chat-input { min-height: 56px; }
.chat-popup { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); min-width: 260px; z-index: 30; overflow: hidden; }
.chat-popup-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 8px 12px; cursor: pointer; }
.chat-popup-item:hover, .chat-popup-item:focus { background: var(--accent-tint); }
@media (max-width: 820px) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat-side { display: none; position: static; }
  .chat.show-list .chat-side { display: flex; }
  .chat.show-list .chat-main { display: none; }
  .chat-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 4px 0; }
  /* the open conversation fills the phone's visible screen (dvh: the part the browser's own bars leave), and the messages
     always keep room: before, the header and the message box's help text squeezed them to nothing (Oct 26, 2026) */
  .chat-main { height: calc(100vh - 16px); height: calc(100dvh - 16px); min-height: 380px; }
  .chat-msgs { min-height: 160px; padding: 10px 12px; }
  .chat-top { padding: 10px 12px; gap: 6px 8px; }
  .chat-top .btn { padding-top: 4px; padding-bottom: 4px; }
  .chat-desc, .chat-main .chat-help { display: none; }
  .chat-compose { padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .chat-main .chat-compose-row { flex-wrap: wrap; gap: 8px; }
  .chat-main .chat-compose-row > .grow { flex: 1 1 100%; }
  .chat-main .chat-compose-row > .stack { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .chat-input { min-height: 44px; font-size: 16px; }   /* 16px: an iPhone zooms the page into a smaller box when you tap it */
  .chat-side { padding-bottom: 8px; }
  .chat-channel { padding: 11px 12px; font-size: 16px; }
}

/* Instructions for Claude under every task row: one line until it is used, then room to write */
.claude-box { max-width: 860px; }
.claude-box-row { align-items: flex-start; flex-wrap: nowrap; }
.claude-box-row .textarea { flex: 1 1 auto; min-width: 0; width: auto; }
.claude-box .textarea { min-height: 34px; padding: 6px 10px; font-size: 13px; resize: vertical; }
.claude-box.open .textarea { min-height: 72px; }
.claude-box .btn { white-space: nowrap; }
.grid4 .claude-box-row { flex-wrap: wrap; }   /* the narrow Today columns: the box on its own line, the button under it */
.grid4 .claude-box-row .textarea { flex-basis: 100%; }

/* the email signature preview in Settings: a white "message" box, the way a mail program shows it */
.sig-preview { background: #fff; border: 1px solid var(--line, #d9dee5); border-radius: 8px; padding: 14px 16px; color: #222; overflow: auto; }
.sig-preview img { max-width: 100%; height: auto; }
.sig-preview a { color: #1a4d8f; }

/* "a new version is ready" bar (runtime.js) */
.save-wait { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: calc(100vw - 40px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.update-bar { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #0B0D12; color: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 40px); border-left: 4px solid var(--orange); }
.update-bar .link { color: #cbd5e1; }

/* ---------- Appearance (Settings): motifs and custom colors ---------- */
.motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.motif { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); font: inherit; transition: border-color 0.12s ease, transform 0.15s ease; }
.motif:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.motif.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.motif-pic { display: flex; height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.08); }
.motif-rail { width: 30%; }
.motif-page { flex: 1 1 auto; position: relative; }
.motif-page::before { content: ''; position: absolute; left: 8px; top: 8px; width: 36px; height: 8px; border-radius: 3px; background: var(--m-accent); }
.motif-page::after { content: ''; position: absolute; left: 8px; right: 8px; top: 22px; bottom: 8px; border-radius: 5px; background: var(--m-card); border: 1px solid rgba(0, 0, 0, 0.06); }
.motif-name { font-weight: 700; font-size: 13px; }
.motif-hint { font-size: 11.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid rgba(0, 0, 0, 0.08); cursor: pointer; padding: 0; transition: transform 0.12s ease; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch.none { background: repeating-linear-gradient(45deg, var(--surface-2) 0 4px, var(--surface) 4px 8px); }
.color-pick { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 13px; cursor: pointer; }
.color-pick input[type="color"] { width: 26px; height: 26px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.color-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input[type="color"]::-webkit-color-swatch { border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); }
.color-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.color-row > .label { flex: 0 0 110px; }

/* ---------- calls inside the site (calls.js): same dark floating surface as the video bar and toasts, the chat's
   violet for people, green for "on the site", red only for hanging up ---------- */
.presence { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: 0 0 auto; }
.presence.on { background: var(--c-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-green) 25%, transparent); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); cursor: pointer; padding: 0; transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease; }
.icon-btn:hover:not(:disabled) { background: var(--accent-tint); border-color: var(--accent); }
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.team-row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; }
.team-row:hover { background: var(--surface-2); }
.team-row .team-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row.recent { font-size: 12.5px; color: var(--muted); }
.team-row.recent.missed .team-name { color: var(--bad); font-weight: 600; }
.call-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.call-avatar.big { width: 72px; height: 72px; font-size: 26px; }
/* the incoming-call window: the ordinary dialog, with the brand edge */
.call-incoming { max-width: 420px; text-align: center; }
/* the call panel: a dark card at the bottom right, like the video bar; Enlarge makes it a centered stage */
.call-panel { position: fixed; z-index: 58; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 40px); display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, var(--float) 0%, var(--float-2) 100%); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); overflow: hidden; padding-top: 16px; animation: modal-in 0.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.call-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cyan) 0%, #3B82F6 45%, var(--orange) 100%); }
.call-panel .muted, .call-panel .call-status { color: var(--float-ink); }
.call-panel.big { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(1100px, calc(100vw - 40px)); }
.call-head { display: flex; align-items: center; gap: 10px; user-select: none; }
.call-panel:not(.big):not(.popped) { resize: horizontal; min-width: 280px; max-width: calc(100vw - 16px); }
/* the call box in its own window (Chrome's picture-in-picture window) */
.call-pip-body { margin: 0; background: var(--float, #0f172a); overflow: hidden; }
.call-panel.popped { position: static; inset: auto; transform: none; width: 100vw; max-width: none; height: 100vh; border-radius: 0; box-shadow: none; animation: none; box-sizing: border-box; }
.call-panel.popped .call-stage { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 0; }
.call-panel.popped .call-stage.voice { flex: 1 1 auto; }
.call-panel-stub { position: fixed; z-index: 58; right: 20px; bottom: 20px; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--float, #0f172a); color: #fff; font-size: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.call-panel-stub .link { color: #9ee6ff; }
.call-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.call-stage.voice { aspect-ratio: auto; height: 96px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); }
.call-panel.big .call-stage { aspect-ratio: auto; height: min(70vh, calc(100vh - 160px)); }
.call-remote { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.call-placeholder { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); }
.call-local { position: absolute; right: 8px; bottom: 8px; width: 28%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.5); background: #000; }
.call-hidden { display: none; }
.call-controls { display: flex; justify-content: center; gap: 10px; align-items: center; }
.call-ctl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; transition: background 0.12s ease, transform 0.12s ease; }
.call-ctl:hover { background: rgba(255, 255, 255, 0.14); }
.call-ctl:active { transform: scale(0.95); }
.call-ctl.on { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.call-ctl.hang { background: var(--c-red); border-color: var(--c-red); padding: 0 14px; }
.call-ctl.hang:hover { background: #d93838; }
.call-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
@media (max-width: 820px) { .call-panel { right: 10px; left: 10px; bottom: 10px; width: auto; } .call-panel.big { left: 10px; top: 10px; transform: none; width: auto; } }
/* Getting set up: the "Get Case Velocity ready" card on Today and the Connect Google window */
.gr-steps { display: flex; flex-direction: column; gap: 10px; }
.gr-step { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gr-step.now { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent); }
.gr-step.done { background: var(--good-tint); }
.gr-step.warn { background: var(--warn-tint); border-color: var(--orange); }
.gr-n { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.gr-step.now .gr-n { background: var(--cyan); color: #fff; }
.gr-step.done .gr-n { background: var(--c-green); color: #fff; }
.gr-step.warn .gr-n { background: var(--orange); color: #fff; }
.gc-what { display: flex; gap: 12px; align-items: flex-start; }
.gc-mark { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; }
@media (max-width: 640px) { .gr-step { flex-wrap: wrap; } .gr-step > .btn { width: 100%; } }

/* Tasks page: one bar per case, its tasks under it */
.task-groups { display: flex; flex-direction: column; gap: 8px; }
.task-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.task-group.open { border-color: var(--line-strong); box-shadow: var(--card-shadow); }
.task-group-head { display: flex; align-items: center; gap: 8px; padding-right: 14px; }
.task-group-toggle { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 14px; }
.task-group-toggle:hover { background: var(--surface-2); }
.task-group-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.task-group-chev { flex: 0 0 auto; display: inline-flex; color: var(--muted); transform: rotate(-90deg); transition: transform .15s; }
.task-group.open .task-group-chev { transform: rotate(0deg); color: var(--accent); }
.task-group-title, .task-group-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.task-group-pills { flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.task-group-open { flex: 0 0 auto; }
.task-group-body { padding: 4px 16px 14px 44px; border-top: 1px solid var(--line); }
.task-group-body > .list-item:first-child { padding-top: 12px; }
.claude-box.compact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 720px) {
  .task-group-toggle { flex-wrap: wrap; }
  .task-group-pills { justify-content: flex-start; flex-basis: 100%; padding-left: 30px; }
  .task-group-body { padding-left: 14px; }
}

/* ---------- Phone link (Settings › Phone link, and cell texts on a case) ---------- */
.pl-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pl-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pl-choice:hover { border-color: var(--accent); background: var(--accent-tint); }
.pl-choice.on { border: 2px solid var(--accent); background: var(--accent-tint); padding: 13px; }
.pl-choice input[type=radio] { margin: 0 0 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.pl-code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.12em; padding: 6px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.pl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-step { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pl-step-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-strong); font-weight: 800; }
.pl-wait { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.pl-switch .switch { flex: 0 0 auto; }
input.switch { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background 0.15s; margin: 0; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { left: 21px; }
input.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.chip-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 16px; cursor: pointer; }
.chip-x:hover { background: var(--line); color: var(--ink); }
.pill.cell { background: #EFE9FE; color: #5B21B6; }
/* In and out: one color each for every email, call and text (Mario, Oct 18, 2026). In: warm orange. Out: the site's blue. */
.pill.in { background: var(--orange-tint); color: var(--warn); border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); }
.pill.out { background: var(--accent-tint); color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.list-item.dir-in, .list-item.dir-out { padding-left: 12px; padding-top: 12px; border-radius: 4px; }
.list-item.dir-in { box-shadow: inset 4px 0 0 var(--orange); }
.list-item.dir-out { box-shadow: inset 4px 0 0 var(--accent); }
.msg-line.in, .msg-line.out { padding-left: 8px; }
.msg-line.in { border-left: 3px solid var(--orange); }
.msg-line.out { border-left: 3px solid var(--accent); }
:root[data-theme="dark"] .pill.cell { background: #2C2148; color: #D7C8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.cell { background: #2C2148; color: #D7C8FF; } }
.tx-thread { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.tx-bubbles { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.tx-bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--orange-tint); color: var(--ink); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; align-self: flex-start; }
.tx-bubble.out { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--accent-ink); }
.tx-bubble.failed { background: var(--bad-tint); color: var(--ink); border: 1px solid var(--bad); }
.tx-bubble.out .link { color: inherit; text-decoration: underline; }
.tx-meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: normal; }
.tx-bubble.out .tx-meta { color: var(--accent-ink); opacity: 0.85; }
.tx-bubble.failed .tx-meta { color: var(--bad); }
.tx-pics { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.tx-pic { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
/* the history, one day at a time: each day opens and closes from its heading */
.comms-day-head { display: flex; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left; color: inherit; font: inherit; border-bottom: 1px solid var(--line); }
.comms-day-head:hover .label { color: var(--accent); }
.comms-day-chev { width: 12px; color: var(--muted); font-size: 12px; }
.tx-files { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 2px 0 4px; }
.tx-file { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tx-bubble.out .tx-file, .tx-bubble.out a { color: var(--accent-ink); }
/* files on a text being written (phone.js AttachBox) and the link line under a sent one */
.att-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 6px; background: var(--surface); }
.att-row.bad { border-color: var(--bad); }
.att-tile { width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; object-fit: cover; background: var(--surface-2); color: var(--muted); }
.att-tile.pdf { background: var(--bad-tint); color: var(--bad); } .att-tile.doc { background: #E6EEFF; color: #1E4FC2; } .att-tile.xls { background: var(--good-tint); color: var(--good); } .att-tile.img { background: var(--accent-tint); color: var(--accent-strong); }
:root[data-theme="dark"] .att-tile.doc { background: #1B2747; color: #A9C1FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .att-tile.doc { background: #1B2747; color: #A9C1FF; } }
.att-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-how { font-size: 12px; color: var(--muted); } .att-how.good { color: var(--good); }
.att-x { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.att-x:hover { background: var(--surface-2); color: var(--ink); }
.att-pick { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.att-pick-item { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.att-pick-item:hover:not(:disabled) { background: var(--surface-2); } .att-pick-item.on { opacity: 0.6; cursor: default; }
.drop-on { outline: 2px dashed var(--accent); outline-offset: 2px; }
.tx-link-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; opacity: 0.92; }
.tx-link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: inherit; text-decoration: underline; cursor: pointer; }
.tx-compose { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); max-width: 680px; }

/* group conversations in Chat */
.chat-group-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-strong); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.chat-add-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.chat-add-row.on { background: var(--accent-tint); }

/* Speak instead of typing (js/dictate.js): the microphone in the corner of every typing box, and the note over it. */
textarea[data-cv-mic] { padding-right: 52px !important; }
input[data-cv-mic] { padding-right: 40px !important; }
.cv-mics { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147482000; pointer-events: none; }
.cv-mic { position: fixed; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0.72;
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease, background 0.12s ease, transform 0.08s ease; }
.cv-mic svg { width: 58%; height: 58%; }
.cv-mic.near, .cv-mic:hover, .cv-mic:focus-visible { opacity: 1; color: var(--accent); border-color: var(--accent); }
.cv-mic:active { transform: scale(0.94); }
.cv-mic.on { opacity: 1; background: #E5484D; border-color: #E5484D; color: #FFFFFF; }
.cv-mic.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #E5484D; opacity: 0; animation: cv-mic-ring 1.4s ease-out infinite; }
@keyframes cv-mic-ring { from { opacity: 0.8; transform: scale(0.9); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .cv-mic.on::after { animation: none; opacity: 0.6; } }
.cv-mic-tip { position: fixed; z-index: 2147482001; max-width: min(360px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 10px; background: var(--float); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow); pointer-events: none; }
.cv-mic-tip.asks { pointer-events: auto; }
.cv-mic-tip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cv-mic-tip-actions button { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #FFFFFF; cursor: pointer; }
.cv-mic-tip-actions button.primary { background: var(--cyan); border-color: var(--cyan); color: #06202A; }

/* Files attached to a request for Claude (Tell Claude, Ask Claude, a task's box): each one with its size and progress */
.attach-list { gap: 8px; }
.attach-chip { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; max-width: 100%; min-width: 0; color: var(--ink); }
.attach-chip svg { flex: none; color: var(--accent-strong); }
.attach-chip.failed { border-color: var(--bad); background: var(--bad-tint); }
.attach-chip.done svg { color: var(--good); }
.attach-chip progress { width: 160px; height: 6px; accent-color: var(--accent); }
.attach-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.attach-x { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; flex: none; }
.attach-x:hover { background: var(--line); color: var(--ink); }
/* Add from Drive: a file already in Google Drive, linked to a request (not copied) */
.drive-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: var(--good); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.btn .drive-mark { margin-right: 2px; }
.attach-chip.linked { border-style: dashed; }
.attach-chip.linked .attach-name { color: var(--ink); text-decoration: none; }
.attach-chip.linked .attach-name:hover { text-decoration: underline; }
.drive-pick-row input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.drive-pick-row.on { background: var(--accent-tint, var(--surface-2)); }
.attach-dragging { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 12px; }
label.btn { position: relative; }
/* where a message was forwarded, under it in its own thread */
.chat-fwd-to { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 4px 10px; border-left: 3px solid var(--line-strong); color: var(--ink); }
.chat-fwd-to .link { padding: 0; }
.chat-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.chat-notice.gone { color: var(--muted); font-style: italic; }

/* Notes to self and reminders (Oct 22, 2026) */
.chat-self-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 9px; background: var(--warn-tint); color: var(--warn); font-size: 11px; flex: 0 0 auto; }
.chat-msg.reminder { background: var(--warn-tint); border-left: 3px solid var(--warn); }
.chat-avatar.remind { background: var(--warn-tint); color: var(--warn); font-size: 17px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.chat-remind-from { margin-top: 2px; }
.chat-remind-from .link { padding: 0; }
.chat-remind-line { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); font-weight: 600; width: fit-content; }
.chat-remind-line.done { background: var(--good-tint); color: var(--good); font-weight: 500; }
.chat-remind-wrap { position: relative; display: inline-flex; align-items: center; }
.chat-remind-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px; min-width: 300px; max-width: calc(100vw - 32px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.chat-remind-menu.up { top: auto; bottom: calc(100% + 6px); }
.chat-remind-menu.right { left: auto; right: 0; }
.chat-remind-menu .label { padding: 2px 6px 4px; }
.chat-remind-pick { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.chat-remind-pick:hover, .chat-remind-pick:focus-visible { background: var(--surface-2); }
.chat-remind-pick > span { white-space: nowrap; }
.chat-remind-pick.danger { color: var(--bad); }
.chat-remind-custom { padding: 4px 6px; }
.chat-remind-chip .chat-chip-main { color: var(--warn); font-weight: 600; }

/* Pop-up reminders (Oct 22, 2026) */
.modal-overlay.rem-overlay { z-index: 90; align-items: center; }
.modal.rem-popup { max-width: 460px; border-top-color: var(--c-amber); gap: 14px; animation: rem-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes rem-in { from { transform: translateY(16px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.rem-pop-head { display: flex; gap: 14px; align-items: center; }
.rem-pop-bell { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--warn-tint); font-size: 26px; flex: 0 0 auto; animation: rem-ring 1.2s ease-in-out 2; transform-origin: 50% 20%; }
@keyframes rem-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.rem-pop-text { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.rem-pop-case { align-self: flex-start; padding: 0; }
.rem-pop-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .modal.rem-popup, .rem-pop-bell { animation: none; } }
.rem-when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .rem-when-row { grid-template-columns: 1fr; } }
.rem-row { align-items: flex-start; gap: 14px; }
.rem-row-when { flex: 0 0 170px; }
.rem-row-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.rem-row.due { border-left: 3px solid var(--c-amber); padding-left: 10px; }
.rem-row.done .rem-row-text { color: var(--muted); text-decoration: line-through; }
@media (max-width: 640px) { .rem-row { flex-wrap: wrap; } .rem-row-when { flex-basis: 100%; } }

/* ---------- Client files (several matters of one client on one page) ----------
   Each matter has a color (--mt): its chip in the matter bar, its tag beside shared items, its section on All matters. */
.matter-dot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--mt, var(--c-violet)); }
.matter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--mt, var(--c-violet)) 16%, var(--surface)); color: color-mix(in srgb, var(--mt, var(--c-violet)) 62%, var(--ink)); }
.matter-tag .matter-dot { width: 8px; height: 8px; }
.cf-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); }
.cf-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cf-bar-name { font-size: 14px; }
.cf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cf-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.cf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
.cf-chip:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cf-chip.on { border: 2px solid var(--mt, var(--accent)); background: color-mix(in srgb, var(--mt, var(--accent)) 14%, var(--surface)); color: color-mix(in srgb, var(--mt, var(--accent)) 60%, var(--ink)); padding: 0 13px; }
.cf-chip.all.on { --mt: var(--accent); }
.cf-chip.closed { opacity: 0.7; }
.cf-chip.add { border-style: dashed; color: var(--accent-strong); font-weight: 600; }
.cf-chip-sub { font-weight: 500; font-size: 12.5px; opacity: 0.8; }
.cf-bar-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 4px; }
.cf-shared-ico { margin-left: 6px; vertical-align: -2px; opacity: 0.7; }
.cf-tab { display: inline-flex; align-items: center; }
.cf-scope { flex-wrap: wrap; align-items: center; gap: 10px; }
.cf-scope .seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--surface-2); }
.cf-scope .seg-btn { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.cf-scope .seg-btn.on { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.cf-matter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cf-matter-card { border-top: 4px solid var(--mt, var(--c-violet)); }
.cf-card-name { font-size: 16.5px; }
.cf-section { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.cf-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--mt, var(--c-violet)) 12%, var(--surface)); border-left: 4px solid var(--mt, var(--c-violet)); }
.cf-section + .cf-section { margin-top: 18px; }
.cf-drive-sec + .cf-drive-sec { margin-top: 8px; }
.cf-bill-all { border-left: 4px solid var(--c-violet); }
.cf-bill-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--mt, var(--c-violet)); border-radius: 12px; }
.cf-explain { display: flex; flex-wrap: wrap; gap: 12px; }
.cf-explain-box { flex: 1 1 220px; padding: 12px 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.cf-explain-box.shared { background: var(--accent-tint); }
.cf-explain-box.own { background: var(--surface-2); }
.cf-suggest { border-left-color: var(--orange); background: var(--orange-tint); }
.cf-list-title { display: flex; align-items: center; gap: 10px; }
.cf-fold { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cf-fold-arrow { display: inline-block; transition: transform 0.12s ease; }
.cf-fold-arrow.open { transform: rotate(90deg); }
.cf-list-sub { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 3px solid color-mix(in srgb, var(--mt, var(--c-violet)) 45%, transparent); }
tr.cf-row td, .list-item.cf-row { background: var(--surface-2); }
tr.cf-sub td:first-child { background: none; }
.list-item.cf-sub { padding-left: 22px; }

/* Video call: start now or schedule for later (Oct 22, 2026) */
.video-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
@media (max-width: 560px) { .video-choices { grid-template-columns: 1fr; } }
.video-choice { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.video-choice:hover:not(:disabled) { border-color: var(--tone); box-shadow: 0 10px 22px -14px var(--tone); transform: translateY(-1px); }
.video-choice:active:not(:disabled) { transform: scale(0.98); }
.video-choice:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.video-choice:disabled { cursor: not-allowed; opacity: 0.6; }
.video-choice-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone); color: #fff; }
.video-choice-text { display: flex; flex-direction: column; gap: 4px; }
.video-choice-title { font-weight: 700; font-size: 16px; }
.video-choice-sub { font-size: 13px; color: var(--muted, var(--ink)); opacity: 0.85; line-height: 1.35; }

/* ---------- Search documents (docsearch.js): the bar at the top of every page, its window, and the Documents tab card ---------- */
.top-search { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.top-search-btn { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; font: inherit; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.top-search-btn:hover { border-color: var(--cyan); }
.top-search-btn:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
.top-search-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-search-kbd { font: 12px/1 var(--font); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
@media (max-width: 760px) { .top-search { justify-content: stretch; } .top-search-btn { width: 100%; } .top-search-kbd { display: none; } }
.ds-input-wrap { position: relative; min-width: 0; }
.ds-input-icon { display: inline-flex; color: var(--muted); }
.ds-input-wrap .ds-input-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ds-input { padding-left: 36px; }
.ds-bar { flex-wrap: nowrap; align-items: stretch; }
.ds-group-head { font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ds-row .ds-title { font-weight: 500; }
.ds-snippet { line-height: 1.5; overflow-wrap: anywhere; }
.ds-why { color: var(--ink); }
.ds-chip { cursor: default; }
button.ds-chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; }
.ds-deeper { border-top: 1px dashed var(--line); padding-top: 10px; gap: 10px; }

/* Search documents: go to the case a result came from (Oct 25, 2026) */
.ds-case { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 3px 10px 3px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line)); background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.ds-case:hover { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 16%, var(--surface)); }
.ds-case:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
.ds-case-icon { display: inline-flex; color: var(--cyan); flex: none; }
.ds-case-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 320px; }
.ds-case-arrow { color: var(--cyan); font-size: 15px; line-height: 1; flex: none; }
.ds-case-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ds-case-box { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); border-left: 4px solid var(--cyan); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.ds-case-box:hover { border-color: var(--cyan); box-shadow: 0 4px 14px color-mix(in srgb, var(--cyan) 18%, transparent); transform: translateY(-1px); }
.ds-case-box:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
.ds-case-box-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-case-box-title { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ds-case-box-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ds-case-box-count { font-size: 12px; color: var(--ink); margin-top: 2px; }
.ds-case-box-count.none { color: var(--muted); }
.ds-case-box-go { font-size: 13px; font-weight: 600; color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .ds-case-box, .ds-case-box:hover { transition: none; transform: none; } }
/* Settings › Phone system and the Zoom Phone / Dialpad panel (phones.js) */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pp-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 120px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pp-tile:hover { border-color: var(--accent); }
.pp-tile.on { border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); padding: 11px; }
.pp-tile .pp-level { margin-top: auto; }
.pp-tile .pill { white-space: normal; }
.pp-legend { line-height: 1.9; }
.pp-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.pp-choice.on { border: 2px solid var(--accent); padding: 9px 11px; background: var(--accent-tint); }
.pp-choice input { margin-top: 3px; accent-color: var(--accent); }
.desk-number { font-size: 40px; font-weight: 700; letter-spacing: 0.5px; text-align: center; padding: 18px 0; font-variant-numeric: tabular-nums; }
.pp-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 44; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.pp-box { width: 370px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 18, 40, 0.22); overflow: hidden; pointer-events: auto; }
.pp-wrap:not(.open) .pp-box { position: fixed; left: -10000px; top: 0; visibility: hidden; }   /* off screen, still loaded: a call goes on */
.pp-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.pp-frame { display: block; width: 100%; height: 600px; max-height: calc(100vh - 120px); border: 0; background: #fff; }
.pp-tab { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; box-shadow: 0 8px 22px rgba(10, 18, 40, 0.16); cursor: pointer; }
@media (max-width: 560px) { .pp-wrap { right: 8px; bottom: 76px; } .pp-frame { height: 520px; } }
.call-chip { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 46; display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 26px rgba(10, 18, 40, 0.18); max-width: calc(100vw - 24px); }
@media (max-width: 560px) { .call-chip { bottom: 76px; } }

/* Urgent (Oct 26, 2026): one red, the same everywhere: a badge with a white "!", a red edge on a message, a red row on a
   task, a red dot on a case thread, and the pop-up. The fill stays a strong red in every motif so it reads as "now". */
:root { --urgent: #D92D20; --urgent-ink: #FFFFFF; --urgent-tint: #FEECEB; --urgent-text: #B42318; --urgent-strong: #FBD3CF; --urgent-strong-ink: #7A1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --urgent: #E5484D; --urgent-tint: #3B1517; --urgent-text: #FF8F87; --urgent-strong: #5C1A1D; --urgent-strong-ink: #FFE4E1; } }
:root[data-theme="dark"] { --urgent: #E5484D; --urgent-tint: #3B1517; --urgent-text: #FF8F87; --urgent-strong: #5C1A1D; --urgent-strong-ink: #FFE4E1; }
.urgent-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--urgent); color: var(--urgent-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 18px; white-space: nowrap; flex: 0 0 auto; }
.urgent-badge.sm { font-size: 10px; line-height: 16px; padding: 1px 7px 1px 2px; }
.urgent-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--urgent-ink); color: var(--urgent); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.urgent-badge.sm .urgent-mark { width: 14px; height: 14px; font-size: 11px; }
/* an urgent message is a bold red block (Mario, Oct 26, 2026: "a bolder red color in the chat so everyone can see it") */
.chat-msg.urgent { background: var(--urgent-strong); border: 2px solid var(--urgent); box-shadow: inset 8px 0 0 var(--urgent); border-radius: 10px; padding: 10px 12px 10px 18px; margin: 4px 0; }
.chat-msg.urgent .chat-text { color: var(--urgent-strong-ink); font-weight: 650; }
.chat-msg.urgent .chat-name { color: var(--urgent-strong-ink); }
.chat-msg.urgent .chat-urgent-by { color: var(--urgent-strong-ink); font-weight: 600; }
.chat-msg.urgent .urgent-badge { font-size: 12px; padding: 3px 11px 3px 4px; box-shadow: 0 0 0 2px var(--surface); }
/* the conversation with an urgent message, in the list on the left: red and bold until the mark comes off */
.chat-channel.has-urgent { background: var(--urgent-tint); box-shadow: inset 4px 0 0 var(--urgent); }
.chat-channel.has-urgent .chat-channel-name { color: var(--urgent-text); font-weight: 800; }
.chat-channel.has-urgent.active { background: var(--urgent-strong); }
.chat-urgent-by { color: var(--urgent-text); }
.chat-urgent-btn { color: var(--urgent-text); font-weight: 700; }
.chat-urgent-btn.on { color: var(--muted); font-weight: 600; }
.chat-urgent-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 10px; height: 10px; border-radius: 999px; background: var(--urgent); color: var(--urgent-ink); font-size: 10px; font-weight: 800; flex: 0 0 auto; margin-left: auto; }
.chat-urgent-dot:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; }
.chat-urgent-dot + .nav-badge { margin-left: 4px; }
.chat-urgent-toggle { color: var(--urgent-text); border-color: var(--urgent); font-weight: 700; }
.chat-urgent-toggle.on { background: var(--urgent); color: var(--urgent-ink); }
.chat-urgent-hint { color: var(--urgent-text); font-weight: 600; }
.list-item.task-urgent { background: var(--urgent-tint); box-shadow: inset 4px 0 0 var(--urgent); padding-left: 16px; padding-right: 12px; border-radius: 0 10px 10px 0; }
.task-urgent-by { color: var(--urgent-text); }
.task-urgent-btn { color: var(--urgent-text); font-weight: 700; }
.task-urgent-btn.on { color: var(--muted); font-weight: 600; }
.task-group.has-urgent { border-color: var(--urgent); }
.task-urgent-pick { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; }
.task-urgent-pick.on { border-color: var(--urgent); background: var(--urgent-tint); }
.modal-overlay.urgent-overlay { z-index: 91; align-items: center; }
.modal.urgent-popup { max-width: 480px; border-top: 6px solid var(--urgent); gap: 14px; animation: rem-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.urgent-pop-head { display: flex; gap: 14px; align-items: center; }
.urgent-pop-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--urgent); color: var(--urgent-ink); font-size: 28px; font-weight: 900; flex: 0 0 auto; animation: urgent-pulse 1s ease-in-out 3; }
.urgent-pop-label { color: var(--urgent-text); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; }
.urgent-pop-text { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.urgent-pop-case { align-self: flex-start; padding: 0; }
.urgent-pop-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@keyframes urgent-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .modal.urgent-popup, .urgent-pop-mark { animation: none; } }

/* The conversation with Claude about one piece of work (Mario, Oct 27, 2026): what was asked on the right, Claude's
   answers on the left, the reply box under them. */
.cv-thread { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--bg); border-radius: 14px; max-height: 60vh; overflow-y: auto; }
.cv-bubble { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; max-width: 88%; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.cv-bubble.you { align-self: flex-end; background: var(--accent-tint); color: var(--ink); border-radius: 14px 14px 4px 14px; }
.cv-bubble.claude { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.cv-bubble-who { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cv-bubble.you .cv-bubble-who { color: var(--accent-strong); }
.cv-bubble-files { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-file-chip { font-size: 12.5px; background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 3px 9px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cv-file-chip:hover { background: var(--accent-tint); color: var(--accent-strong); }
.claude-thread > .cv-bubble { max-width: 92%; }
.claude-reply { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--surface); }
.claude-reply-label { font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.claude-reply-text { min-height: 72px; }
