/* Rony: a work desk. Pine rail from the app icon; the icon's orange dot marks
   anything that needs you (recording, waiting reviews). Everything else stays quiet. */
:root {
  --canvas: #f2f4f6; --surface: #ffffff; --ink: #16202a; --muted: #5e6a77; --faint: #8a95a1;
  --line: #dce1e7; --line-soft: #e9edf1;
  --rail: #1e3a33; --rail-hover: #284a41; --rail-active: #315a4f; --rail-ink: #e3ece8; --rail-muted: #93ada4;
  --accent: #2e6b57; --accent-ink: #ffffff; --accent-soft: #e1eee8;
  --signal: #f0913d; --signal-soft: #fcebdb; --signal-ink: #9a4d0b;
  --bad: #b3362d; --bad-soft: #f8e2df;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101417; --surface: #171c20; --ink: #e6ebef; --muted: #98a3ad; --faint: #6f7a84;
    --line: #283037; --line-soft: #1f262b;
    --rail: #0d1c18; --rail-hover: #16302a; --rail-active: #1f4038; --rail-ink: #dce8e3; --rail-muted: #7d978e;
    --accent: #6fb79c; --accent-ink: #0c1f18; --accent-soft: #1b2e27;
    --signal: #f2a05a; --signal-soft: #3a2a1c; --signal-ink: #f6bd86;
    --bad: #ee8c82; --bad-soft: #3a1f1c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { overflow: hidden; display: grid; grid-template-columns: var(--rail-w, 212px) 320px minmax(0, 1fr); height: var(--app-h, 100vh); }
.shell.no-list { grid-template-columns: var(--rail-w, 212px) minmax(0, 1fr); }
.shell.no-list #listCol { display: none; }
.shell.rail-collapsed { --rail-w: 64px; }

/* ---------- rail ---------- */
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; min-height: 0; padding: 14px 10px; gap: 2px; }
.mark { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.mark .tile { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(180deg, #4d7a6b, #2a4b42);
  display: grid; place-items: center; font: 700 17px var(--display); color: #fff; position: relative; flex: none; }
.mark .tile::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.mark b { font: 650 16px var(--display); letter-spacing: .01em; }
.rail .collapse { margin-left: auto; background: none; border: 0; color: var(--rail-muted); cursor: pointer; padding: 4px; border-radius: var(--r-sm); }
.rail .collapse:hover { color: var(--rail-ink); background: var(--rail-hover); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--rail-ink);
  text-decoration: none; font-weight: 500; position: relative; white-space: nowrap; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: var(--rail-hover); }
.nav a.on { background: var(--rail-active); }
.nav a.on svg { opacity: 1; }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal);
  color: #2b1300; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.nav .live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.4s infinite; }
.nav .key { margin-left: auto; color: var(--rail-muted); font-size: 11.5px; opacity: 0; }
.nav a:hover .key { opacity: 1; }
.nav .count ~ .key, .nav .live ~ .key { display: none; }
.rail .spacer { flex: 1; }
.rail .status { font-size: 12px; color: var(--rail-muted); padding: 8px 10px 2px; display: grid; gap: 4px; }
.rail .status span { display: flex; gap: 7px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .status em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.rail .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--rail-muted); flex: none; }
.rail .status i.ok { background: #5fbf91; } .rail .status i.bad { background: var(--signal); }
.rail-collapsed .mark b, .rail-collapsed .nav .label, .rail-collapsed .nav .key, .rail-collapsed .status span em { display: none; }
.rail-collapsed .nav a { justify-content: center; padding: 9px 0; }
.rail-collapsed .nav .count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.rail-collapsed .nav .live { position: absolute; top: 6px; right: 10px; }
.rail-collapsed .mark { flex-direction: column; padding-bottom: 12px; }
.rail-collapsed .rail .collapse { margin: 6px auto 0; }
.rail-collapsed .status { justify-items: center; }

/* ---------- dock: the rail as a floating green bar at the bottom, like the macOS Dock (Settings ▸ Appearance) ----------
   Pages keep the full window height and the bar floats over them; scrolling areas and message boxes get
   --dock-pad of extra room at the bottom so nothing ends up hidden under it. Labels show as tooltips. */
.shell.dock { --dock-pad: 80px; grid-template-columns: 320px minmax(0, 1fr); }
.shell.dock.no-list { grid-template-columns: minmax(0, 1fr); }
.shell.dock.panel-open { grid-template-columns: 320px minmax(0, 1fr) 400px; }
.shell.dock.no-list.panel-open { grid-template-columns: minmax(0, 1fr) 400px; }
.shell.dock .list-body, .shell.dock .pj-body, .shell.dock .term-page { padding-bottom: var(--dock-pad); }
.shell.dock .page { padding-bottom: calc(64px + var(--dock-pad)); }
.shell.dock .composer { padding-bottom: calc(16px + var(--dock-pad)); }
.shell.dock .savebar { bottom: var(--dock-pad); }
.shell.dock .rail { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 40; flex-direction: row; align-items: center;
  gap: 4px; padding: 6px 8px; max-width: calc(100vw - 24px); border-radius: 18px;
  background: color-mix(in srgb, var(--rail) 90%, transparent); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.shell.dock .mark, .shell.dock .collapse { display: none; }
.shell.dock .nav { flex-direction: row; gap: 4px; }
.shell.dock .nav a, .shell.dock .ask-claude { width: 48px; height: 48px; padding: 0; margin: 0; justify-content: center; border-radius: 12px; border: 0;
  background: none; transform-origin: 50% 100%; transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), background .15s; }
.shell.dock .nav a svg, .shell.dock .ask-claude svg { width: 24px; height: 24px; }
.shell.dock .nav a:hover, .shell.dock .ask-claude:hover { transform: translateY(-6px) scale(1.18); background: var(--rail-hover); }
.shell.dock .nav a.on, .shell.dock .ask-claude.on { background: var(--rail-active); }
/* The open page gets a small dot under its icon, like a running app in the Dock */
.shell.dock .nav a.on::after { content: ""; position: absolute; bottom: -3px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--rail-ink); }
.shell.dock .nav a .label, .shell.dock .ask-claude .label { display: block; position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px;
  font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.shell.dock .ask-claude { position: relative; }
.shell.dock .nav a:hover .label, .shell.dock .ask-claude:hover .label, .shell.dock .nav a:focus-visible .label { opacity: 1; }
.shell.dock .nav .key, .shell.dock .ask-claude kbd { display: none; }
.shell.dock .nav .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; margin: 0; font-size: 10.5px; }
.shell.dock .nav .live { position: absolute; top: 5px; right: 5px; margin: 0; }
/* A thin divider between the main pages and the ones pinned to the end (like the Dock's Trash side) */
.shell.dock .spacer { flex: none; width: 1px; align-self: stretch; margin: 8px 4px; background: color-mix(in srgb, var(--rail-ink) 25%, transparent); }
.shell.dock .status { flex-direction: column; justify-content: center; gap: 7px; padding: 0 6px 0 4px; display: flex; }
.shell.dock .status em { display: none; }
.shell.dock .status span { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .shell.dock .nav a, .shell.dock .ask-claude { transition: none; } .shell.dock .nav a:hover, .shell.dock .ask-claude:hover { transform: none; } }

/* ---------- list column ---------- */
#listCol { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.list-head { padding: 14px 14px 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.list-head h2 { margin: 0; font: 650 19px/1.2 var(--display); }
.list-body { overflow: auto; flex: 1; padding: 6px; }
.item { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; text-decoration: none; color: inherit; }
.item:hover { background: var(--canvas); }
.item.on { background: var(--accent-soft); }
.item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.group-label { font-size: 12px; color: var(--faint); padding: 10px 10px 2px; font-weight: 600; }
.list-empty { color: var(--muted); padding: 18px 14px; font-size: 13px; }

/* ---------- detail ---------- */
#detailCol { overflow: auto; min-height: 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 22px 28px 48px; }
.page.wide { max-width: 1320px; }
.page-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 340px; }
h1.title { font: 650 26px/1.2 var(--display); margin: 0 0 6px; letter-spacing: -.005em; }
h1.title[contenteditable] { border-radius: var(--r-sm); margin-left: -6px; padding: 0 6px; }
h1.title[contenteditable]:hover { box-shadow: inset 0 0 0 1px var(--line); }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.meta a { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.section { margin-bottom: 18px; }
.section > h3 { font: 600 15px/1.3 var(--display); margin: 0 0 8px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.section > h3 small { color: var(--muted); font: 500 13px var(--font); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.lead { font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 72ch; white-space: pre-wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split ul { margin: 0; padding-left: 18px; } .split li { margin: 5px 0; }
.muted { color: var(--muted); }
.empty-state { max-width: 460px; margin: 12vh auto 0; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); font: 650 21px var(--display); margin: 0 0 8px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 7px 12px;
  border-radius: var(--r); cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 500; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { background: var(--canvas); color: var(--ink); }
.btn.icon { padding: 7px 9px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password], select, textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--canvas); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--surface); }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; }
.hint { font-size: 12.5px; color: var(--muted); }

.pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px;
  background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.busy { background: var(--line-soft); color: var(--muted); }
.pill.you { background: var(--signal-soft); color: var(--signal-ink); }
.pill.you::before, .pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.pill.live { background: var(--signal-soft); color: var(--signal-ink); }
.pill.live::before { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before, .nav .live { animation: none; } }
.tag { font-size: 12px; color: var(--muted); background: var(--canvas); border: 1px solid var(--line-soft); padding: 1px 8px; border-radius: var(--r-sm); }

.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px;
  border-radius: var(--r); background: var(--signal-soft); color: var(--signal-ink); margin-bottom: 22px; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.quiet { background: var(--line-soft); color: var(--muted); }

/* tasks */
.task { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); align-items: flex-start; cursor: pointer; }
.task:first-child { border-top: 0; padding-top: 0; }
.task input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.task.done .tt { text-decoration: line-through; color: var(--faint); }
.task .tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* transcript */
details.transcript summary { cursor: pointer; font: 600 15px var(--display); list-style: none; display: flex; gap: 8px; align-items: baseline; }
details.transcript summary::before { content: "▸"; color: var(--faint); font-size: 12px; transition: transform .15s; }
details.transcript[open] summary::before { transform: rotate(90deg); }
.tr { margin-top: 14px; max-height: 520px; overflow: auto; font-size: 14px; }
.tr p { margin: 0 0 8px; display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.tr .ts { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; }
.tr .orig { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
audio { width: 100%; margin-top: 12px; }

/* stats (daily) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; }
.stat { background: var(--surface); padding: 14px 16px; }
.stat b { display: block; font: 650 26px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat.you b { color: var(--signal-ink); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 0 8px 8px; }
table.grid td { padding: 10px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.grid > tbody > tr:first-child > td { border-top: 0; }
.tablewrap { overflow-x: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; }
.chip b { font-variant-numeric: tabular-nums; }

/* markdown (Claude's review) */
.md { font-size: 14px; max-width: 76ch; }
.md h4 { font: 600 14.5px var(--display); margin: 18px 0 6px; }
.md p { margin: 6px 0; } .md ul { margin: 4px 0; padding-left: 20px; } .md li { margin: 3px 0; }
.md code { background: var(--canvas); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md pre { background: var(--canvas); padding: 10px 12px; border-radius: var(--r); overflow-x: auto; font-size: 12.5px; }
.md table { border-collapse: collapse; font-size: 13px; }

/* calendar: month picker */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font: 600 14px var(--display); }
.cal-head .btn.icon { padding: 4px 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 4px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--faint); padding: 2px 0 4px; font-weight: 600; }
.cal-day { position: relative; display: grid; place-items: center; height: 32px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--canvas); }
.cal-day.out { color: var(--faint); }
.cal-day.today { font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cal-day i { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-day.on i { background: var(--accent-ink); }

.cal-day.inweek { background: var(--accent-soft); border-radius: 0; }
.cal-day.inweek.today { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Day / Week switch */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg a { padding: 6px 12px; text-decoration: none; color: var(--muted); font-weight: 500; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--accent-soft); color: var(--accent); }

/* calendar: week grid */
.wk-scroll { overflow-x: auto; }
.wk { min-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.wk-heads, .wk-allday { display: grid; grid-template-columns: 56px repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.wk-head { display: grid; justify-items: center; gap: 0; padding: 8px 4px 6px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line-soft); }
.wk-head:hover { background: var(--canvas); }
.wk-head span { font-size: 12px; color: var(--muted); }
.wk-head b { font: 600 20px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.wk-head em { font-style: normal; font-size: 11.5px; color: var(--faint); min-height: 16px; }
.wk-head.today b { color: var(--accent-ink); background: var(--accent); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.wk-head.today span { color: var(--accent); font-weight: 600; }
.wk-allday > div { border-left: 1px solid var(--line-soft); padding: 4px; display: grid; gap: 3px; }
.wk-allday .chip { font-size: 11.5px; padding: 1px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-gutter-label { font-size: 11px; color: var(--faint); padding: 6px 6px 0; text-align: right; }
.wk-body { display: grid; grid-template-columns: 56px 1fr; position: relative; }
.wk-hours { position: relative; }
.wk-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.wk-hours span:first-child { transform: none; top: 2px !important; }
.wk-cols { display: grid; grid-template-columns: repeat(7, 1fr);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); }
.wk-col { position: relative; border-left: 1px solid var(--line-soft); }
.wk-col.today { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.wk-col.before { background: color-mix(in srgb, var(--canvas) 55%, transparent); }
.wk-ev { position: absolute; overflow: hidden; border-radius: 6px; padding: 3px 6px; text-decoration: none; color: var(--ink);
  background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 12px; line-height: 1.3;
  box-shadow: 0 0 0 1px var(--surface); }
.wk-ev:hover { filter: brightness(.97); z-index: 9 !important; }
.wk-ev b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ev span { color: var(--muted); font-size: 11px; }
.wk-ev.past { opacity: .55; }
.wk-ev.bot::after { content: "R"; position: absolute; top: 3px; right: 4px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font: 700 9px/14px var(--display); text-align: center; }
.wk-ev.bot b { padding-right: 16px; }
.wk-ev.live { background: var(--signal-soft); border-left-color: var(--signal); }
.wk-ev.declined { background: transparent; border: 1px dashed var(--line); border-left-width: 3px; }
.wk-ev.declined b { text-decoration: line-through; color: var(--muted); }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--signal); z-index: 3; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

/* calendar: day agenda */
.agenda { display: grid; gap: 10px; }
.agenda-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.agenda-time { display: grid; padding-top: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.agenda-time b { font-weight: 600; font-size: 13.5px; }
.agenda-time span { color: var(--faint); font-size: 12px; }
.agenda-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r);
  padding: 11px 14px; }
.agenda-card .t { font-weight: 600; font-size: 15px; }
.agenda-card.live { border-left-color: var(--signal); box-shadow: 0 0 0 1px var(--signal-soft); }
.agenda-row.past { opacity: .6; }
.agenda-row.declined .agenda-card { border-left-color: var(--line); background: transparent; }
.agenda-row.declined .t { text-decoration: line-through; color: var(--muted); }
.agenda-free { margin-left: 90px; color: var(--faint); font-size: 12.5px; padding: 2px 0 2px 14px; border-left: 2px dotted var(--line); }
.now-line { display: flex; align-items: center; gap: 8px; margin-left: 76px; color: var(--signal-ink); font-size: 12px; font-weight: 600; }
.now-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); margin-left: 9px; flex: none; }
.now-line::after { content: ""; flex: 1; height: 2px; background: var(--signal); order: -1; display: none; }
.now-line span { order: 1; }
.now-line { background: linear-gradient(var(--signal), var(--signal)) no-repeat 22px 50% / calc(100% - 22px) 2px; }
.now-line span { background: var(--canvas); padding: 0 8px; margin-left: 8px; }

/* Claude chat */
.new-chat { display: grid; gap: 10px; padding-top: 4px; }
.new-chat .row select { flex: 1; }
.chat { display: flex; flex-direction: column; height: var(--app-h, 100vh); min-height: 0; }
.chat-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 28px 12px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.chat-head .meta span { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { flex: 1; overflow: auto; padding: 20px 28px 12px; display: flex; flex-direction: column; gap: 12px; }
.chat-log > * { max-width: 1040px; width: 100%; margin-left: auto; margin-right: auto; }
.msg.user { align-self: flex-end; width: auto; max-width: min(640px, 85%); margin-right: max(0px, calc((100% - 1040px) / 2));
  background: var(--accent-soft); padding: 9px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.msg.claude { font-size: 14.5px; line-height: 1.6; }
.msg.claude.draft { white-space: pre-wrap; }
.md p { margin: 6px 0; } .md h4 { font: 600 15px var(--display); margin: 14px 0 4px; }
.md ul, .md ol { margin: 4px 0; padding-left: 22px; } .md li { margin: 2px 0; }
.md blockquote { margin: 6px 0; padding: 2px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.md table { border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.md :not(pre) > code { background: var(--line-soft); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
pre.code { background: var(--canvas); border: 1px solid var(--line-soft); padding: 10px 12px; border-radius: var(--r); overflow-x: auto;
  font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; margin: 6px 0; white-space: pre; }
pre.code.out { max-height: 280px; overflow: auto; } pre.code.err { border-color: var(--bad-soft); color: var(--bad); }
pre.diff { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--canvas); border-radius: var(--r); padding: 8px 10px;
  overflow-x: auto; margin: 6px 0; white-space: pre; }
pre.diff del { color: var(--bad); text-decoration: none; display: block; } pre.diff ins { color: var(--accent); text-decoration: none; display: block; }
details.tool { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); font-size: 13px; }
details.tool summary { display: flex; gap: 8px; align-items: center; padding: 6px 10px; cursor: pointer; list-style: none; min-width: 0; }
details.tool summary::-webkit-details-marker { display: none; }
details.tool summary .ti { width: 18px; text-align: center; color: var(--muted); font-family: ui-monospace, Menlo, monospace; flex: none; }
details.tool summary b { font-weight: 600; flex: none; }
details.tool summary code { color: var(--muted); font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
details.tool summary .ts { margin-left: auto; color: var(--bad); font-size: 12px; flex: none; }
details.tool.err { border-color: var(--bad-soft); }
.tool-body { padding: 0 10px 8px; }
.tool-body:empty { display: none; }
.todos { margin: 6px 0; padding-left: 20px; } .todos .completed { text-decoration: line-through; color: var(--faint); }
.todos .in_progress { font-weight: 600; }
.perm { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; background: var(--surface); display: grid; gap: 8px; }
.perm.pending { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.perm-q { font-weight: 600; }
.perm-cmd { display: block; font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--canvas); padding: 8px 10px;
  border-radius: var(--r); white-space: pre-wrap; word-break: break-all; }
.perm-state { color: var(--muted); font-size: 13px; }
.perm.denied .perm-state { color: var(--bad); }
.qopts { display: grid; gap: 6px; }
.qopt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--r); cursor: pointer; }
.qopt:hover { background: var(--canvas); }
.qopt input { margin-top: 3px; accent-color: var(--accent); }
.turn-end { color: var(--faint); font-size: 12px; }
.working { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 28px 16px; border-top: 1px solid var(--line); background: var(--canvas); }
.composer textarea { min-height: 42px; max-height: 220px; resize: none; background: var(--surface); line-height: 1.45; }
/* Under the message box: permissions (side panel) on the left, model + context meter on the right */
.chat-foot { justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.chat-usage { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--muted);
  white-space: nowrap; }
.cu-model { font: inherit; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; background: none; border: 0;
  padding: 2px 4px; margin: -2px -4px; border-radius: var(--r-sm); cursor: pointer; }
.cu-model:hover { background: var(--accent-soft); color: var(--accent); }
.cp-fill { flex: 1; }
/* /model menu: floats above the message box */
.composer { position: relative; }
.model-menu { position: absolute; right: 12px; bottom: calc(100% - 6px); z-index: 5; display: grid; min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.model-menu b { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 8px 6px; }
.model-menu button { font: inherit; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.model-menu button:hover, .model-menu button:focus-visible { background: var(--accent-soft); }
.model-menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.cu-bar { width: 64px; height: 6px; flex: none; border-radius: 99px; background: var(--line); overflow: hidden; }
.cu-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.cu-bar.full i { background: var(--signal); }
.cu-pct { overflow: hidden; text-overflow: ellipsis; }
#chatModeSeg button { border: 0; background: none; padding: 6px 10px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; }
#chatModeSeg button + button { border-left: 1px solid var(--line); }
#chatModeSeg button.on { background: var(--accent-soft); color: var(--accent); }

/* Claude everywhere: panel + rail button */
.shell.panel-open { grid-template-columns: var(--rail-w, 212px) 320px minmax(0, 1fr) 400px; }
.shell.no-list.panel-open { grid-template-columns: var(--rail-w, 212px) minmax(0, 1fr) 400px; }
.claude-panel { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; height: var(--app-h, 100vh);
  min-width: 0; overflow: hidden; }
.cp-head { display: flex; gap: 4px; align-items: center; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.cp-head select { flex: 1; min-width: 0; padding: 6px 8px; font-weight: 600; background: var(--surface); border-color: transparent; }
.cp-head select:hover { border-color: var(--line); }
.cp-body { flex: 1; min-height: 0; display: flex; }
.cp-body > .chat { height: 100%; flex: 1; min-width: 0; }
.chat.compact .chat-log { padding: 14px 14px 8px; }
.chat.compact .composer { padding: 10px 12px 12px; display: grid; gap: 6px; }
.chat.compact .msg.user { max-width: 90%; margin-right: 0; }
.composer { flex-direction: column; align-items: stretch; }
.composer > .row textarea { flex: 1; width: auto; min-width: 0; }
.composer > * { min-width: 0; }
.ctx-chip { font-size: 12.5px; color: var(--muted); }
.ctx-chip label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; background: var(--surface); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 99px; max-width: 100%; min-width: 0; white-space: nowrap; }
.ctx-chip { min-width: 0; overflow: hidden; }
.ctx-chip label { overflow: hidden; }
.ctx-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ctx-chip b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-chip input { accent-color: var(--accent); margin: 0; }
.ctx-tag { display: block; font-size: 11.5px; color: var(--accent); margin-bottom: 2px; }
.chat-empty { color: var(--muted); font-size: 13.5px; margin: auto 0; text-align: center; padding: 20px; }
.ask-claude { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 10px; border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--rail-ink) 22%, transparent); background: color-mix(in srgb, var(--rail-ink) 8%, transparent);
  color: var(--rail-ink); font-weight: 600; cursor: pointer; text-align: left; }
.ask-claude:hover { background: color-mix(in srgb, var(--rail-ink) 14%, transparent); }
.ask-claude svg { width: 18px; height: 18px; color: var(--signal); flex: none; }
.ask-claude.dev { margin-top: -6px; font-weight: 500; }
.ask-claude.dev svg { color: var(--rail-ink); opacity: .85; }
.ask-claude.on { background: color-mix(in srgb, var(--rail-ink) 18%, transparent); border-color: color-mix(in srgb, var(--rail-ink) 40%, transparent); }
.cp-title { font: 600 14px var(--display); white-space: nowrap; padding: 0 4px; }

/* Hulk: leaps from spot to spot every few seconds and opens "Work on Rony" (static/hulk.js).
   The button glides to the new spot while .hk-fig arcs up and down, so together they make a leap. */
.hulk { --hk-leap: 1.1s; /* keep in step with LEAP in hulk.js */ position: fixed; left: 0; top: 0; z-index: 50; width: 76px; height: 76px; padding: 0; border: 0;
  background: none; cursor: pointer; transition: transform var(--hk-leap) cubic-bezier(.45, 0, .55, 1); }
.hulk.still { transition: none; }
.hk-fig { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .15s; }
.hk-fig svg { width: 100%; height: 100%; display: block; overflow: visible; transition: transform .2s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.hulk.flip .hk-fig svg { transform: scaleX(-1); }
/* Body parts pivot at the shoulder, hip, neck */
.hk-arm, .hk-leg, .hk-head, .hk-chest, .hk-body { transform-box: fill-box; }
.hk-arm, .hk-leg { transform-origin: 50% 0; } .hk-head, .hk-body { transform-origin: 50% 100%; } .hk-chest { transform-origin: 50% 70%; }
/* At rest: breathing, a slow arm flex and an angry head nod, so he's never frozen */
.hk-chest { animation: hk-breathe 1.6s ease-in-out infinite; }
.hk-arm.l { animation: hk-flex-l 2.4s ease-in-out infinite; }
.hk-arm.r { animation: hk-flex-r 2.4s ease-in-out infinite; }
.hk-head { animation: hk-nod 3.2s ease-in-out infinite; }
@keyframes hk-breathe { 50% { transform: scale(1.04, 1.06); } }
@keyframes hk-flex-l { 50% { transform: rotate(14deg); } }
@keyframes hk-flex-r { 50% { transform: rotate(-14deg); } }
@keyframes hk-nod { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-6deg); } 90% { transform: rotate(5deg); } }
/* Mid-leap: arms thrown up, legs tucked */
.hulk.leap .hk-arm.l { animation: hk-leap-arm-l var(--hk-leap) ease-in-out; }
.hulk.leap .hk-arm.r { animation: hk-leap-arm-r var(--hk-leap) ease-in-out; }
.hulk.leap .hk-leg.l { animation: hk-tuck-l var(--hk-leap) ease-in-out; }
.hulk.leap .hk-leg.r { animation: hk-tuck-r var(--hk-leap) ease-in-out; }
@keyframes hk-leap-arm-l { 20%, 70% { transform: rotate(140deg); } }
@keyframes hk-leap-arm-r { 20%, 70% { transform: rotate(-140deg); } }
@keyframes hk-tuck-l { 25%, 70% { transform: rotate(35deg) scaleY(.8); } }
@keyframes hk-tuck-r { 25%, 70% { transform: rotate(-35deg) scaleY(.8); } }
/* Rage, before and during each leap: trembles, glows red, brows drop, gritted teeth open into a roar,
   steam blows out by his ears and a growl pops up */
.hk-roar, .hk-steam circle { opacity: 0; }
.hk-brow, .hk-steam circle { transform-box: fill-box; transform-origin: 50% 50%; }
.hulk.rage .hk-body { animation: hk-tremble .09s linear 8; }
.hulk.rage svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)) drop-shadow(0 0 7px rgba(230, 50, 30, .65)); }
.hulk.rage .hk-brow { transform: translateY(1.2px) scaleX(1.08); }
.hulk.rage .hk-grit { opacity: 0; }
.hulk.rage .hk-roar { opacity: 1; animation: hk-roar .25s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.hulk.rage .hk-steam circle { animation: hk-steam .7s ease-out 2; }
.hulk.rage .hk-steam circle + circle { animation-delay: .12s; }
@keyframes hk-tremble { 0%, 100% { transform: none; } 25% { transform: translate(-1px, .5px); } 75% { transform: translate(1px, -.5px); } }
@keyframes hk-roar { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
@keyframes hk-steam { 0% { opacity: .9; transform: translateY(4px) scale(.4); } 100% { opacity: 0; transform: translateY(-12px) scale(1.6); } }
.hk-grr { position: absolute; left: 70%; top: -18px; font: 800 13px var(--display); color: #b3261e; white-space: nowrap;
  text-shadow: 0 1px 0 var(--surface), 0 0 5px var(--surface); opacity: 0; pointer-events: none; transform-origin: 0 100%; }
.hulk.rage .hk-grr { animation: hk-grr 1.25s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hk-grr { 0% { opacity: 0; transform: scale(0) rotate(-15deg); } 15% { opacity: 1; transform: scale(1.25) rotate(-8deg); }
  30%, 75% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: 0; transform: translateY(-10px) rotate(-8deg); } }
/* Landing: dust puffs kick out to both sides */
.hk-dust { position: absolute; left: 50%; bottom: -2px; pointer-events: none; }
.hk-dust i { position: absolute; width: 12px; height: 9px; margin: -4px 0 0 -6px; border-radius: 50%; background: #c9bfa8; opacity: 0; }
.hulk.land .hk-dust i { animation: hk-dust .6s ease-out; }
.hulk.land .hk-dust i:nth-child(1) { --dx: -30px; } .hulk.land .hk-dust i:nth-child(2) { --dx: 30px; }
.hulk.land .hk-dust i:nth-child(3) { --dx: 0px; --dy: -10px; }
@keyframes hk-dust { 0% { opacity: .85; transform: scale(.5); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy, -4px)) scale(2.2); } }
.hulk:hover .hk-fig { transform: scale(1.12); }
.hulk:focus-visible { outline-offset: 4px; border-radius: var(--r); }
.hk-shadow { position: absolute; left: 50%; bottom: -4px; width: 40px; height: 6px; margin-left: -20px; border-radius: 50%;
  background: rgba(0, 0, 0, .18); pointer-events: none; }
/* Leap: crouch, fly up in an arc, land with a squash; his shadow shrinks while he's in the air */
.hulk.leap .hk-fig { animation: hk-leap var(--hk-leap) ease-in-out; }
.hulk.leap .hk-shadow { animation: hk-shadow var(--hk-leap) ease-in-out; }
@keyframes hk-leap { 0% { transform: none; } 10% { transform: scale(1.12, .84); } 50% { transform: translateY(-90px) scale(.95, 1.08) rotate(-8deg); }
  90% { transform: scale(1.15, .84); } 100% { transform: none; } }
@keyframes hk-shadow { 50% { transform: scale(.4); opacity: .4; } }
/* Smash: both fists up, slam down, shock ring + word + page shake */
.hulk.smash .hk-fig { animation: hk-slam .65s cubic-bezier(.5, 0, .3, 1.4) forwards; }
.hulk.smash .hk-arm.l { animation: hk-smash-l .65s cubic-bezier(.5, 0, .3, 1.4) forwards; }
.hulk.smash .hk-arm.r { animation: hk-smash-r .65s cubic-bezier(.5, 0, .3, 1.4) forwards; }
@keyframes hk-smash-l { 0% { transform: none; } 45% { transform: rotate(160deg); } 60%, 100% { transform: rotate(25deg); } }
@keyframes hk-smash-r { 0% { transform: none; } 45% { transform: rotate(-160deg); } 60%, 100% { transform: rotate(-25deg); } }
@keyframes hk-slam { 0% { transform: none; } 45% { transform: translateY(-22px) scale(1.15) rotate(-6deg); }
  60% { transform: translateY(2px) scale(1.25, .85); } 100% { transform: scale(1.05); } }
.hk-boom { position: absolute; left: 50%; bottom: 0; width: 20px; height: 8px; margin-left: -10px; border-radius: 50%;
  border: 3px solid #8fd16f; opacity: 0; pointer-events: none; }
.hulk.smash .hk-boom { animation: hk-boom .7s .38s ease-out; }
@keyframes hk-boom { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(9, 6); } }
.hk-word { position: absolute; left: 50%; top: -14px; transform: translateX(-50%) scale(0); font: 800 15px var(--display);
  color: #3d7a2e; white-space: nowrap; text-shadow: 0 1px 0 var(--surface), 0 0 6px var(--surface); pointer-events: none; }
.hulk.smash .hk-word { animation: hk-word .8s .38s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes hk-word { 0% { transform: translateX(-50%) scale(0) rotate(-12deg); } 30% { transform: translateX(-50%) scale(1.3) rotate(-6deg); }
  80% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-10px) scale(1) rotate(-6deg); opacity: 0; } }
body.hk-shake #shell { animation: hk-shake .35s linear; }
@keyframes hk-shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }
@media (prefers-reduced-motion: reduce) {
  .hulk * { animation: none !important; }
}
.claude-panel.dev .cp-head { background: var(--signal-soft); }
.claude-panel.dev .cp-title { color: var(--signal-ink); }
.ask-claude kbd { margin-left: auto; font: 500 11px var(--font); color: var(--rail-muted); }
.rail-collapsed .ask-claude { justify-content: center; padding: 9px 0; }
.rail-collapsed .ask-claude .label, .rail-collapsed .ask-claude kbd { display: none; }
@media (max-width: 980px) { .shell:not(.dock) .ask-claude { justify-content: center; padding: 9px 0; } .ask-claude .label, .ask-claude kbd { display: none; } }
@media (max-width: 1200px) { .shell.panel-open:not(.no-list) #listCol { display: none; }
  .shell.panel-open:not(.no-list) { grid-template-columns: var(--rail-w, 212px) minmax(0, 1fr) 380px; }
  .shell.dock.panel-open:not(.no-list) { grid-template-columns: minmax(0, 1fr) 380px; } }

/* Claude home */
.claude-home { max-width: 1100px; padding-top: 20px; }
.claude-home h1.title { font-size: 30px; }
.home-ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; display: grid; gap: 8px;
  box-shadow: 0 1px 0 var(--line-soft); }
.home-ask textarea { border: 0; background: transparent; min-height: 72px; font-size: 15px; padding: 2px; }
.home-ask textarea:focus { outline: none; background: transparent; }
.home-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip.suggest { cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.chip.suggest:hover { border-color: var(--accent); color: var(--accent); }
.conn-list { display: grid; gap: 2px; max-height: 280px; overflow: auto; }
.conn { display: flex; gap: 8px; align-items: center; padding: 4px 2px; font-size: 13.5px; }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.conn.connected i { background: #3fae7a; } .conn.failed i { background: var(--bad); }
.conn .n { font-weight: 500; } .conn .hint { margin-left: auto; }
.new-chat-more summary { cursor: pointer; list-style: none; }
.new-chat-more[open] summary { margin-bottom: 8px; }

/* chat type picker */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pcard { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pcard:hover { border-color: var(--accent); }
.pcard.off { opacity: .55; }
.pcard.off:hover { border-color: var(--line); }
.pc-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.pc-ic svg { width: 18px; height: 18px; }
.pc-glyph { font: 700 14px var(--display); }
.pc-txt { display: grid; gap: 2px; min-width: 0; }
.pc-txt b { font-weight: 600; }
.chat-empty h3 { font: 600 17px var(--display); color: var(--ink); margin: 0 0 4px; }

/* terminal */
.term-page { display: flex; flex-direction: column; height: var(--app-h, 100vh); background: #101614; }
.term-tabs { display: flex; gap: 2px; align-items: flex-end; padding: 8px 10px 0; background: #0b100e; overflow-x: auto; flex: none; }
.term-tab { display: flex; gap: 8px; align-items: center; max-width: 240px; padding: 7px 8px 7px 12px; border: 0; border-radius: 8px 8px 0 0;
  background: transparent; color: #8fa49c; cursor: pointer; font: 500 12.5px var(--font); }
.term-tab:hover { background: #161e1b; color: #dbe6e1; }
.term-tab.on { background: #101614; color: #eef4f1; }
.term-tab.dead .tt-name { text-decoration: line-through; opacity: .6; }
.tt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.tt-x { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; color: #6f817a; font-size: 14px; flex: none; }
.tt-x:hover { background: #26302c; color: #fff; }
.term-new { border: 0; background: none; color: #8fa49c; padding: 6px 8px; cursor: pointer; border-radius: 6px; margin-bottom: 2px; }
.term-new:hover { background: #161e1b; color: #fff; }
.term-new svg { width: 15px; height: 15px; display: block; }
.term-panes { flex: 1; min-height: 0; position: relative; }
.term-pane { position: absolute; inset: 0; padding: 8px 4px 4px 12px; }
.term-pane .xterm { height: 100%; }
.term-pane .xterm-viewport { scrollbar-width: thin; }

/* inbox */
.inbox { max-width: 1100px; }
.ibx-list { display: grid; gap: 10px; }
.ibx { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); }
.ibx.unread { border-left: 3px solid var(--accent); padding-left: 14px; }
.ibx.unread.needs { border-left-color: var(--signal); }
.ibx.flash { box-shadow: 0 0 0 3px var(--signal-soft); }
.ibx-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid;
  place-items: center; font: 700 15px var(--display); }
.ibx.needs .ibx-ic { background: var(--signal-soft); color: var(--signal-ink); }
.ibx-top { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.ibx-kind { font-weight: 600; color: var(--muted); }
.ibx h3 { margin: 2px 0 4px; font: 600 15.5px/1.35 var(--display); }
.ibx h3 a { color: inherit; text-decoration: none; } .ibx h3 a:hover { text-decoration: underline; }
.ibx p.ibx-body { margin: 0 0 8px; color: var(--muted); white-space: pre-wrap; font-size: 13.5px; }
details.ibx-body { margin: 2px 0 8px; } details.ibx-body summary { cursor: pointer; }
.ibx .actions { margin-top: 6px; }
.ibx-more { margin-left: auto; display: inline-flex; gap: 2px; }

/* browser */
.bw { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: var(--app-h, 100vh); }
.bw-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }
.bw-bar { display: flex; gap: 4px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bw-bar .btn.icon { padding: 5px 7px; }
.bw-url { flex: 1; min-width: 0; }
.bw-url input { border-radius: 99px; padding: 6px 14px; font-size: 13px; }
.bw-tabs { display: flex; gap: 2px; padding: 6px 10px 0; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.bw-tab { display: flex; gap: 6px; align-items: center; max-width: 220px; padding: 6px 8px 6px 12px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0; background: transparent; color: var(--muted); cursor: pointer; font: 500 12.5px var(--font); }
.bw-tab span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-tab.on { background: var(--canvas); color: var(--ink); border-color: var(--line); }
.bw-tab .tt-x { color: var(--faint); }
.bw-newtab { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.bw-newtab svg { width: 15px; height: 15px; display: block; }
.bw-view { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; padding: 10px; outline: none; }
.bw-view:focus-visible img { box-shadow: 0 0 0 2px var(--accent); }
.bw-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 1px var(--line); cursor: default; user-select: none; }
.bw-view img:not([src]) { display: none; }
.bw-msg { color: var(--muted); }
.bw-chat { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bw-chat-head { display: flex; gap: 8px; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bw-chat-head b { font: 600 15px var(--display); }
.bw-chat-head .btn { margin-left: auto; padding: 3px 6px; }
.bw-chat-body { flex: 1; min-height: 0; display: flex; }
.bw-chat-body > .chat { height: 100%; flex: 1; min-width: 0; }
@media (max-width: 1100px) { .bw { grid-template-columns: minmax(0, 1fr) 320px; } }

/* settings */
.settings-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.settings-group:first-of-type { border-top: 0; padding-top: 4px; }
.settings-group h3 { font: 600 15px var(--display); margin: 0 0 4px; }
.settings-group .fields { display: grid; gap: 12px; max-width: 640px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }
.savebar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--canvas) 30%); padding: 22px 0 6px; display: flex; gap: 10px; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 8px); background: var(--ink); color: var(--canvas);
  padding: 9px 16px; border-radius: var(--r); font-size: 13px; opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* With the menu as a bottom dock, messages appear just above it instead of hidden behind it */
.shell.dock ~ .toast { bottom: calc(var(--dock-pad, 80px) + 4px); z-index: 60; }

@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* narrow windows */
@media (max-width: 980px) {
  .shell { grid-template-columns: 64px 280px minmax(0, 1fr); --rail-w: 64px; }
  .shell.dock { grid-template-columns: 280px minmax(0, 1fr); }
  .shell .mark b, .shell .nav .label, .shell .nav .key, .shell .status em { display: none; }
  .shell .nav a { justify-content: center; padding: 9px 0; }
  .shell .nav .count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .rail .collapse { display: none; }
  .split, .settings-group { grid-template-columns: 1fr; gap: 12px; }
  .page { padding: 24px 22px 48px; }
}
@media (max-width: 640px) {
  .shell, .shell.no-list { grid-template-columns: 1fr; height: auto; }
  .rail { flex-direction: row; overflow-x: auto; padding: 8px; }
  .rail .nav { flex-direction: row; } .rail .spacer, .rail .status, .mark b { display: none; }
  .mark { padding: 0 8px 0 0; }
  #listCol { border-right: 0; border-bottom: 1px solid var(--line); max-height: 45vh; }
  .page { padding: 20px 16px 40px; }
}

/* Projects (static/projects.js): header, tabs, then a files pane (tree + viewer) that fills the window */
.pj { display: flex; flex-direction: column; height: var(--app-h, 100vh); min-height: 0; padding: 22px 28px 0; }
.pj-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.pj-head > div:first-child { flex: 1 1 260px; }
.pj-tabs { align-self: flex-start; margin-bottom: 14px; }
.pj-body { flex: 1; min-height: 0; overflow: auto; padding-bottom: 24px; }
.pj-branch { font: 600 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); background: var(--accent-soft);
  padding: 1px 7px; border-radius: 99px; }
.pj-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pj-files { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 0; height: 100%; min-height: 320px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pj-tree { overflow: auto; border-right: 1px solid var(--line); padding: 6px 4px; }
.pj-row { display: flex; align-items: center; gap: 5px; width: 100%; padding: 4px 8px 4px calc(8px + var(--d, 0) * 14px); border: 0;
  background: none; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; border-radius: var(--r-sm); margin: 0; }
p.pj-row { cursor: default; font-size: 12.5px; }
.pj-row:hover { background: var(--line-soft); }
.pj-row.on { background: var(--accent-soft); color: var(--accent); }
.pj-row.dim { color: var(--faint); }
.pj-row svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.pj-caret { width: 10px; flex: none; font-size: 10px; color: var(--faint); }
.pj-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.pj-file-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.pj-file-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; font-weight: 600; }
.pj-note { padding: 6px 12px 0; margin: 0; }
.pj-empty { margin: auto; padding: 24px; text-align: center; }
.pj-code { flex: 1; margin: 0; overflow: auto; padding: 10px 0; font: 12.5px/1.55 ui-monospace, "SF Mono", Menlo, monospace;
  counter-reset: ln; tab-size: 4; background: var(--surface); }
.pj-code span { display: inline-block; min-width: 100%; padding-right: 16px; }
.pj-code span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; margin-right: 14px; padding-right: 8px;
  text-align: right; color: var(--faint); border-right: 1px solid var(--line-soft); user-select: none; }
.pj-code.plain { padding: 10px 14px; }
.pj-md { flex: 1; overflow: auto; padding: 14px 20px; max-width: none; }
.pj-img { flex: 1; overflow: auto; display: grid; place-items: center; padding: 16px;
  background: repeating-conic-gradient(var(--line-soft) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.pj-img img { max-width: 100%; max-height: 100%; }
.pj-sec { margin-bottom: 22px; }
.pj-sec h3 { font: 600 15px var(--display); margin: 0 0 10px; }
.pj-sec h3 .muted { font: 500 13px var(--font); margin-left: 6px; }
.pj-changes, .pj-log { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pj-change, .pj-commit { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line-soft);
  background: none; font: inherit; font-size: 13px; color: var(--ink); text-align: left; text-decoration: none; min-width: 0; }
.pj-change:first-child, .pj-commit:first-child { border-top: 0; }
.pj-change { cursor: pointer; } .pj-change:hover, a.pj-commit:hover { background: var(--line-soft); }
.pj-change.on { background: var(--accent-soft); }
.pj-commit .pj-name { flex: 1; } .pj-commit > .muted { white-space: nowrap; font-size: 12px; }
.pj-commit code { color: var(--muted); font-size: 12px; }
.pj-code-tag { flex: none; width: 70px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pj-code-tag.t-A, .pj-code-tag.t-N { color: var(--accent); } .pj-code-tag.t-D { color: var(--bad); } .pj-code-tag.t-U { color: var(--signal-ink); }
.pj-diff { margin-top: 10px; } .pj-diff pre.diff { max-height: 60vh; overflow: auto; margin: 0; }

/* Chat images: previews above the message box, thumbnails in the conversation, click to see full size */
.chat-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-attachments .att { position: relative; width: 64px; height: 64px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.chat-attachments .att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-attachments .att button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; line-height: 20px; cursor: pointer; }
.chat-attach { align-self: flex-end; }
.composer.drop { outline: 2px dashed var(--accent); outline-offset: -6px; background: var(--accent-soft); }
.msg-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-images img { max-width: 220px; max-height: 160px; border-radius: var(--r-sm); cursor: zoom-in; display: block; border: 1px solid var(--line); }
.img-zoom { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .75); display: grid; place-items: center; padding: 32px; cursor: zoom-out; }
.img-zoom img { max-width: 100%; max-height: 100%; border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* Hulk's jail (static/hulk.js). Two layers that move together: the back wall under him, the bars and
   padlock over him. It shows while you drag him, and stays once he's locked in. */
.hulk { touch-action: none; user-select: none; -webkit-user-drag: none; }
.hulk:active { cursor: grabbing; }
.hk-jail { position: fixed; left: 0; top: 0; z-index: 49; width: 110px; height: 112px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.hk-jail-front { z-index: 51; }
.hk-jail svg { width: 100%; height: 100%; display: block; overflow: visible; transform: scale(.85); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), filter .2s; }
body.hk-jail-open .hk-jail, body.hk-jailed .hk-jail { opacity: 1; }
body.hk-jail-open .hk-jail svg, body.hk-jailed .hk-jail svg { transform: none; }
body.hk-jail-hot .hk-jail svg { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--accent)); }
.hk-jail-tip { position: absolute; left: 0; bottom: calc(100% + 8px); padding: 3px 9px; border-radius: 6px; font-size: 12px;
  font-weight: 500; white-space: nowrap; background: var(--ink); color: var(--surface); opacity: 0; transition: opacity .15s; }
body.hk-jail-open:not(.hk-jailed) .hk-jail-tip { opacity: 1; }
body.hk-jail-hot .hk-jail-tip::after { content: " to lock him up"; }
.hk-lock { opacity: 0; transition: opacity .2s; }
body.hk-jailed:not(.hk-jail-open) .hk-lock { opacity: 1; }
/* The padlock is the way out: a button over it, shown only while he's locked in */
.hk-unlock { position: absolute; left: 36px; top: 80px; width: 38px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none;
  cursor: pointer; pointer-events: auto; display: none; }
body.hk-jailed .hk-unlock { display: block; }
.hk-unlock:hover + svg .hk-lock, .hk-jail-front:has(.hk-unlock:hover) .hk-lock { filter: brightness(1.2) drop-shadow(0 0 6px var(--signal)); }
.hk-unlock:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.hk-lock path { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 100% 100%; }
body.hk-unlocking .hk-lock path { transform: translateY(-4px) rotate(-25deg); } /* shackle springs open */
body.hk-unlocking .hk-jail-front svg { animation: hk-bars .07s linear 4; }
/* Being carried: he dangles and kicks */
.hulk.dragged { cursor: grabbing; z-index: 52; }
.hulk.dragged .hk-fig { animation: hk-dangle .5s ease-in-out infinite alternate; transform-origin: 50% 0; }
.hulk.dragged .hk-leg.l { animation: hk-swing .25s ease-in-out infinite alternate; }
.hulk.dragged .hk-leg.r { animation: hk-swing .25s ease-in-out infinite alternate-reverse; }
.hulk.dragged .hk-arm.l { animation: hk-leap-arm-l 1s ease-in-out infinite; }
.hulk.dragged .hk-arm.r { animation: hk-leap-arm-r 1s ease-in-out infinite; }
@keyframes hk-swing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes hk-dangle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
/* Locked in (clank) and shaking the bars when you click him */
.hulk.clank .hk-fig { animation: hk-slam .5s cubic-bezier(.5, 0, .3, 1.4); }
.hulk.rattle .hk-body { animation: hk-tremble .07s linear 8; }
body:has(.hulk.rattle) .hk-jail-front svg, body:has(.hulk.clank) .hk-jail-front svg { animation: hk-bars .07s linear 8; }
@keyframes hk-bars { 0%, 100% { transform: none; } 50% { transform: translateX(1.5px); } }
body.hk-jailed .hulk .hk-shadow { display: none; }
@media (prefers-reduced-motion: reduce) { .hk-jail svg, .hk-jail { transition: none; } .hk-jail-front svg { animation: none !important; } }

/* Allow/Deny card for an email or Slack message: the message as it will be sent */
.outgoing { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; margin: 6px 0 10px; }
.og-head { display: grid; gap: 3px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.og-head span { display: inline-block; width: 64px; color: var(--muted); }
.og-body { padding: 10px 12px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; max-height: 320px; overflow: auto; }

/* Hulk ⇄ Bruce Banner (in jail): a green flash and squeeze, the drawing swaps at its brightest point */
.hulk.morph .hk-fig { animation: hk-morph .8s ease-in-out; }
@keyframes hk-morph {
  0% { transform: none; filter: none; }
  45% { transform: scale(1.2, .8); filter: brightness(2.2) drop-shadow(0 0 12px #8fd16f); }
  55% { transform: scale(.75, 1.1); filter: brightness(2.4) drop-shadow(0 0 16px #8fd16f); }
  100% { transform: none; filter: none; } }

/* Transcript by speaker: a coloured name per person, then what they said in that turn */
.tr-turn { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.tr-turn:first-child { border-top: 0; }
.tr-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-who b { font-weight: 600; font-size: 13.5px; color: hsl(var(--who) 55% 42%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .tr-who b { color: hsl(var(--who) 60% 70%); } }
html.theme-graphite .tr-who b { color: hsl(var(--who) 55% 72%); }
.tr-said p { margin: 0 0 4px; display: block; }
.tr-said p:last-child { margin-bottom: 0; }

/* Ava's live panel on a meeting that's recording */
.ava-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ava-head h3 { font: 600 15px var(--display); margin: 0; }
.ava h4 { font: 600 13.5px var(--display); margin: 0 0 6px; color: var(--muted); }
.ava ul { margin: 0; padding-left: 18px; } .ava li { margin: 3px 0; }
.ava-q { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; margin-bottom: 8px; background: var(--canvas); }
.ava-q p { margin: 0 0 4px; } .ava-q .row { gap: 6px; margin-top: 6px; }
.ava-say { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ava-say textarea { flex: 1; resize: vertical; min-height: 40px; }

/* Voice messages: the mic turns red while recording, with a timer */
.chat-mic { position: relative; align-self: flex-end; gap: 4px; }
.chat-mic[data-state="starting"] { color: var(--muted); }
.chat-mic[data-state="rec"] { color: #fff; background: var(--bad); border-color: var(--bad); animation: mic-pulse 1.2s ease-in-out infinite; }
.chat-mic[data-state="busy"] { color: var(--accent); }
.chat-mic .mic-secs { font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-mic .mic-secs:empty { display: none; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .chat-mic[data-state="rec"] { animation: none; } }
.voice-lang { width: auto; padding: 3px 8px; font-size: 12.5px; }
.ava-lang { margin-left: auto; }
.ava-lang a { padding: 3px 10px; font-size: 12.5px; }

/* Side panel expanded over the page (its expand button); the same button puts it back on the right */
.claude-panel.wide { position: fixed; top: 0; right: 0; z-index: 45; width: min(1100px, calc(100vw - 80px)); height: 100vh;
  box-shadow: -18px 0 50px rgba(0, 0, 0, .25); }
.shell.dock .claude-panel.wide { height: calc(100vh - var(--dock-pad, 80px)); }
.claude-panel.wide .chat-log > * { max-width: 900px; }

/* A project's Claude chat, docked at the bottom of its page */
.pj:has(.pj-dock) .pj-body { padding-bottom: 12px; }
.pj-dock { flex: none; display: flex; flex-direction: column; min-height: 0; height: 42%; margin: 0 -28px; border-top: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
.pj-dock[data-size="tall"] { height: 72%; }
.pj-dock[data-size="min"] { height: auto; }
.shell.dock .pj-dock[data-size="min"] { margin-bottom: var(--dock-pad, 80px); }
.pj-dock-head { display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.pj-dock-head .cp-title { display: inline-flex; gap: 6px; align-items: center; }
.pj-dock-head .cp-title svg { width: 16px; height: 16px; }
.pj-dock-head select { flex: 1; min-width: 0; max-width: 420px; padding: 5px 8px; font-weight: 600; background: var(--surface); border-color: transparent; }
.pj-dock-head select:hover { border-color: var(--line); }
.pj-dock-head .cp-fill { flex: 1; }
.pj-dock-body { flex: 1; min-height: 0; display: flex; }
.pj-dock-body > .chat { height: 100%; flex: 1; min-width: 0; }
.pj-dock-empty { margin: auto; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px; }

/* Ava's chat on a meeting's page */
.ava-chat-box { padding: 0; height: 420px; display: flex; overflow: hidden; }
.ava-chat-box > .chat { height: 100%; flex: 1; min-width: 0; }
.ava-chat h3 small { font-weight: 500; }
.shell.dock .ava-chat-box .composer { padding-bottom: 12px; } /* not at the window's bottom, so no room for the dock needed */

/* The voice button (static/voicekey.js): bigger than the other menu items; in the dock it's raised in the middle */
.voice-key { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 4px 0 8px 10px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: var(--rail-active); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.voice-key svg { width: 20px; height: 20px; }
.voice-key .label { display: none; }
.shell.dock .voice-key { width: 58px; height: 58px; margin: -18px 6px 0; align-self: flex-start;
  background: radial-gradient(circle at 50% 35%, #3a3834, #1f1e1b 72%); border: 3px solid var(--canvas);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .15s; }
.shell.dock .voice-key svg { width: 24px; height: 24px; }
.shell.dock .voice-key:hover { transform: translateY(-3px); }
.shell.dock .voice-key .label { display: block; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; white-space: nowrap; opacity: 0;
  pointer-events: none; transition: opacity .12s; }
.shell.dock .voice-key:hover .label { opacity: 1; }
.voice-key[data-state="listening"] { background: #d9362b !important; animation: vk-pulse 1.1s ease-in-out infinite; }
.voice-key[data-state="thinking"] .vk-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent;
  border-top-color: var(--led-ok, #3fcf73); animation: spin .9s linear infinite; }
.voice-key[data-state="speaking"] { box-shadow: 0 0 0 0 rgba(63, 207, 115, .6); animation: vk-talk 1s ease-out infinite; }
@keyframes vk-pulse { 50% { box-shadow: 0 0 0 10px rgba(217, 54, 43, .22), 0 6px 16px rgba(0, 0, 0, .35); } }
@keyframes vk-talk { 0% { box-shadow: 0 0 0 0 rgba(63, 207, 115, .55); } 100% { box-shadow: 0 0 0 14px rgba(63, 207, 115, 0); } }
@media (prefers-reduced-motion: reduce) { .voice-key { animation: none !important; } }

/* ---------- Voice button, animated ----------
   idle: a slowly turning glow halo that breathes · listening: red core, live equaliser bars, ripples
   thinking: a comet ring spinning round · speaking: green sound waves rolling out */
.voice-key { isolation: isolate; overflow: visible; }
.voice-key .vk-core { position: relative; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
.voice-key .vk-core svg { transition: transform .2s, opacity .2s; }
.vk-halo { position: absolute; inset: -7px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #3fcf73, #2dd4bf, #60a5fa, #a3e635, #3fcf73);
  filter: blur(9px); opacity: .55; animation: vk-turn 7s linear infinite, vk-breathe 3.2s ease-in-out infinite; }
.voice-key:hover .vk-halo { opacity: .9; inset: -9px; }
@keyframes vk-turn { to { transform: rotate(360deg); } }
@keyframes vk-breathe { 0%, 100% { opacity: .38; } 50% { opacity: .72; } }
.shell:not(.dock) .vk-halo { inset: -4px; filter: blur(6px); }

/* listening: the mic turns into live equaliser bars, with red ripples */
.vk-bars { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 3px; }
.vk-bars i { display: block; width: 3px; height: 40%; border-radius: 3px; background: #fff; animation: vk-eq .9s ease-in-out infinite; }
.vk-bars i:nth-child(2) { animation-delay: -.2s; } .vk-bars i:nth-child(3) { animation-delay: -.45s; }
.vk-bars i:nth-child(4) { animation-delay: -.1s; } .vk-bars i:nth-child(5) { animation-delay: -.6s; }
@keyframes vk-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1.15); } }
.voice-key[data-state="listening"] .vk-core svg { opacity: 0; transform: scale(.6); }
.voice-key[data-state="listening"] .vk-bars { display: flex; }
.voice-key[data-state="listening"] .vk-halo { background: conic-gradient(#ff5a4e, #ff9f6e, #ff3b30, #ff5a4e); opacity: .85; animation-duration: 2.5s, 1.1s; }
.voice-key[data-state="listening"] { animation: none !important; }
.voice-key[data-state="listening"] .vk-wave, .voice-key[data-state="speaking"] .vk-wave {
  position: absolute; inset: 0; border-radius: 50%; z-index: 0; pointer-events: none;
  animation: vk-ripple 1.4s ease-out infinite; }
.voice-key[data-state="listening"] .vk-wave { box-shadow: 0 0 0 2px rgba(255, 90, 78, .7); }
.voice-key[data-state="speaking"] .vk-wave { box-shadow: 0 0 0 2px rgba(63, 207, 115, .8); animation-duration: 1.1s; }
@keyframes vk-ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* thinking: a bright comet chasing round the edge */
.voice-key[data-state="thinking"] .vk-ring { position: absolute; inset: -5px; z-index: 1; border: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(63, 207, 115, .25) 80%, #3fcf73 96%, #fff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: vk-turn .9s linear infinite; }
.voice-key[data-state="thinking"] .vk-halo { opacity: .7; animation-duration: 2.5s, 1.6s; }
.voice-key[data-state="thinking"] .vk-core svg { animation: vk-breathe 1.2s ease-in-out infinite; }

/* speaking: green halo, waves rolling out */
.voice-key[data-state="speaking"] { animation: none !important; }
.voice-key[data-state="speaking"] .vk-halo { background: conic-gradient(#3fcf73, #a3e635, #22c55e, #3fcf73); opacity: .85; animation-duration: 3s, .9s; }
.voice-key[data-state="speaking"] .vk-core svg { animation: vk-say .45s ease-in-out infinite alternate; }
@keyframes vk-say { to { transform: scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  .vk-halo, .vk-bars i, .vk-wave, .voice-key .vk-ring, .voice-key .vk-core svg { animation: none !important; }
}
/* The button's face lives on .vk-core (above the halo), so the glow shows only around the rim */
.shell.dock .voice-key { background: transparent; border: 0; box-shadow: none; }
.shell.dock .voice-key .vk-core { background: radial-gradient(circle at 50% 35%, #3a3834, #1f1e1b 72%); border: 3px solid var(--canvas);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.shell:not(.dock) .voice-key { background: transparent; box-shadow: none; }
.shell:not(.dock) .voice-key .vk-core { background: var(--rail-active); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.voice-key[data-state="listening"] { background: transparent !important; }
.voice-key[data-state="listening"] .vk-core { background: radial-gradient(circle at 50% 35%, #ff6b5e, #d9362b 70%) !important; }
.voice-key[data-state="speaking"] .vk-core { background: radial-gradient(circle at 50% 35%, #3d5b45, #1f2a22 72%) !important; }

/* ---------- Voice button in the dock, take 2: a true circle in line with the others, with a crisp
   rotating gradient ring instead of a blurred blob ---------- */
.shell.dock .voice-key { flex: none; width: 54px; height: 54px; aspect-ratio: 1; margin: 0 6px; padding: 0; align-self: center;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none; transform: none; }
.shell.dock .voice-key:hover { transform: none; }
.shell.dock .voice-key .vk-core { position: absolute; inset: 4px; width: auto; height: auto; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #44413b, #1d1c1a 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 4px rgba(0, 0, 0, .5); }
.shell.dock .voice-key .vk-core svg { width: 22px; height: 22px; }
/* the ring: a thin conic gradient, masked to a band, turning slowly; a small glow that breathes */
.shell.dock .vk-halo { inset: 0; filter: none; opacity: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, #3fcf73, #2dd4bf, #60a5fa, #a78bfa, #3fcf73);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: vk-turn 6s linear infinite; }
.shell.dock .voice-key::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -2; pointer-events: none;
  box-shadow: 0 0 10px 1px rgba(63, 207, 115, .45), 0 0 18px 2px rgba(96, 165, 250, .25); animation: vk-glow 3s ease-in-out infinite; }
@keyframes vk-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.shell.dock .voice-key:hover .vk-halo { inset: 0; animation-duration: 2.5s; }
.shell.dock .voice-key:hover::after { opacity: 1; animation: none; }
/* states recolour the ring and core */
.shell.dock .voice-key[data-state="listening"] .vk-halo { background: conic-gradient(#ff5a4e, #ffb07a, #ff3b30, #ff5a4e); animation-duration: 1.6s; }
.shell.dock .voice-key[data-state="listening"]::after { box-shadow: 0 0 12px 2px rgba(255, 90, 78, .55); animation-duration: 1s; }
.shell.dock .voice-key[data-state="listening"] .vk-core { background: radial-gradient(circle at 50% 30%, #ff7a6e, #d4322a 75%) !important; }
.shell.dock .voice-key[data-state="speaking"] .vk-halo { background: conic-gradient(#3fcf73, #bef264, #22c55e, #3fcf73); animation-duration: 2s; }
.shell.dock .voice-key[data-state="speaking"] .vk-core { background: radial-gradient(circle at 50% 30%, #3f5d47, #1c2a20 75%) !important; }
.shell.dock .voice-key[data-state="thinking"] .vk-halo { opacity: .35; }
.shell.dock .voice-key[data-state="thinking"] .vk-ring { inset: 0; }
.shell.dock .voice-key .vk-wave { inset: 0; }
.shell.dock .voice-key .label { bottom: calc(100% + 12px); }
@media (prefers-reduced-motion: reduce) { .shell.dock .voice-key::after { animation: none; } }

/* ---------- Agents ---------- */
.ag-form { display: grid; gap: 14px; }
.ag-form textarea { resize: vertical; }
.ag-when { display: grid; gap: 8px; margin-top: 8px; }
.ag-when[hidden] { display: none; }
.ag-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-days label { cursor: pointer; }
.ag-days input { position: absolute; opacity: 0; pointer-events: none; }
.ag-days span { display: inline-block; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ag-days input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ag-days input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ag-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ag-template { display: grid; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ag-template:hover { border-color: var(--accent); }
.ag-runs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.ag-run { display: grid; gap: 4px; justify-items: start; min-width: 150px; max-width: 220px; padding: 8px 10px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ag-run .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ag-run.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ag-chat-box { padding: 0; height: 460px; display: flex; overflow: hidden; }
.ag-chat-box > .chat { height: 100%; flex: 1; min-width: 0; }
.shell.dock .ag-chat-box .composer { padding-bottom: 12px; }
details.section > summary { cursor: pointer; list-style: none; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::before { content: "▸ "; color: var(--muted); }
details.section[open] > summary::before { content: "▾ "; }
.ag-chat-box .mode-pick { display: none; } /* agents are read-only whatever the mode says */
.bw-signin { position: absolute; inset: 0; margin: auto; max-width: 460px; height: fit-content; padding: 22px 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
.bw-signin[hidden] { display: none; }
.bw-signin h3 { margin: 0 0 8px; }
.bw-signin p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.bw-google { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 10px 0; padding: 10px 14px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.bw-google[hidden] { display: none; }
.bw-bar .btn { white-space: nowrap; }
/* the dock floats over the bottom of the window: keep the page view and the chat's controls clear of it */
.shell.dock .bw-view { padding-bottom: calc(10px + var(--dock-pad)); }
.shell.dock .bw-chat .composer { padding-bottom: calc(12px + var(--dock-pad)); }
.bw-chat .chat-foot { flex-wrap: wrap; }
.ag-suggest { margin-bottom: 10px; display: grid; gap: 6px; }
.ag-suggest p { margin: 0; }
.ag-suggest-text { white-space: pre-wrap; font-size: 13.5px; background: var(--canvas); border-radius: var(--r); padding: 10px 12px; }
.ag-work.with-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; }
@media (max-width: 1100px) { .ag-work.with-browser { grid-template-columns: 1fr; } }
.ag-browser { padding: 0; height: 460px; display: flex; flex-direction: column; overflow: hidden; }
.bwl-bar { display: flex; gap: 8px; align-items: center; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.bwl-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bwl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.bwl-view { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; background: var(--canvas); position: relative; }
.bwl-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); pointer-events: none; }
.bwl-view img:not([src]) { display: none; }
.bwl-msg { color: var(--muted); font-size: 13px; }
/* the agent's live browser, expanded over the page (view only) */
.ag-browser.bwl-big { position: fixed; z-index: 60; inset: 20px 20px calc(20px + var(--dock-pad, 0px)) 20px; height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.bwl-view img { cursor: default; }
body.bwl-open::after { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(10, 14, 18, .5); }

/* ---------- Live Activity island (static/activity.js) ---------- */
.live-activity { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; justify-items: center; gap: 8px;
  font-family: var(--sans, system-ui); pointer-events: none; }
.live-activity[hidden] { display: none; }
.live-activity > * { pointer-events: auto; }
.la-pill { display: flex; align-items: center; gap: 10px; max-width: min(560px, 80vw); min-height: 36px; padding: 6px 14px 6px 10px;
  border: 0; border-radius: 999px; background: #0e1114; color: #eef2f5; font: 500 13px/1.2 inherit; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: max-width .35s ease, padding .35s ease, box-shadow .3s ease; }
.live-activity.enter .la-pill { animation: la-in .45s cubic-bezier(.2, .9, .25, 1.2); } /* only when it first appears */
.la-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes la-in { from { transform: scale(.6) translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.la-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-text b { font-weight: 650; }
.la-text span { color: #a9b4bd; }
.la-step { transition: opacity .2s; }
.la-time { font-variant-numeric: tabular-nums; color: #8b969f; font-size: 12px; }
.la-more { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #cfd7dd; }

/* working: two dots orbiting */
.la-orbit { position: relative; width: 18px; height: 18px; flex: none; animation: la-spin 1.4s linear infinite; }
.la-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #5ee0a0; top: 0; left: 6px; box-shadow: 0 0 8px #5ee0a0; }
.la-orbit i + i { top: auto; bottom: 0; background: #6cc4ff; box-shadow: 0 0 8px #6cc4ff; }
.la-orbit.sm { width: 14px; height: 14px; } .la-orbit.sm i { width: 5px; height: 5px; left: 4.5px; }
@keyframes la-spin { to { transform: rotate(360deg); } }

/* finished: a check that draws itself (failed: an exclamation) */
.la-mark { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; }
.la-mark.ok { background: #1f9d63; animation: la-pop .5s cubic-bezier(.2, .9, .25, 1.4); }
.la-mark.ok::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0); transform-origin: center; animation: la-check .35s .2s ease-out forwards; }
.la-mark.bad { background: #d24b3e; } .la-mark.bad::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 13px system-ui; }
.la-mark.sm, .la-mark.small { width: 15px; height: 15px; } .la-mark.sm::after, .la-mark.small::after { left: 4.5px; top: 2px; width: 4px; height: 7px; }
@keyframes la-pop { from { transform: scale(.3); } to { transform: none; } }
@keyframes la-check { to { transform: rotate(45deg) scale(1); } }
.live-activity[data-mode="done"] .la-pill { box-shadow: 0 6px 28px rgba(31, 157, 99, .45), inset 0 0 0 1px rgba(94, 224, 160, .35); padding: 8px 18px 8px 10px; }
.live-activity[data-mode="failed"] .la-pill { box-shadow: 0 6px 28px rgba(210, 75, 62, .45), inset 0 0 0 1px rgba(210, 75, 62, .5); }
/* an agent waiting for your answer: the one orange glow ("needs you") */
.live-activity[data-mode="asking"] .la-pill { box-shadow: 0 0 0 1px var(--signal), 0 6px 26px color-mix(in srgb, var(--signal) 45%, transparent);
  animation: la-breathe 2s ease-in-out 3; } /* glows a few times, then stays lit */
@keyframes la-breathe { 50% { box-shadow: 0 0 0 1px var(--signal), 0 6px 34px color-mix(in srgb, var(--signal) 70%, transparent); } }

/* the list of everything, under the island */
.la-panel { width: min(440px, 86vw); padding: 8px; border-radius: 18px; background: #0e1114; color: #eef2f5;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); animation: la-in .3s ease; }
.la-head { padding: 6px 10px 4px; font-size: 11.5px; color: #8b969f; }
.la-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.la-row:hover, .la-row:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.la-row-main { display: grid; min-width: 0; flex: 1; }
.la-row-main b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-row-main span { font-size: 12px; color: #a9b4bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-clear { margin: 4px 6px 2px; border: 0; background: none; color: #8b969f; font: 12px inherit; cursor: pointer; }
.la-clear:hover { color: #eef2f5; }
@media (prefers-reduced-motion: reduce) { .la-orbit, .la-pill, .la-mark, .la-mark::after, .la-panel { animation: none !important; } .la-mark.ok::after { transform: rotate(45deg); } }
/* Inbox stacks: several notices of one kind as one row */
.ibx-stack { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.ibx-stack-head { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; }
.ibx-stack-head:hover { background: var(--line-soft); }
.ibx-stack-title { display: grid; min-width: 0; flex: 1; }
.ibx-stack-title .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-stack-count { min-width: 26px; padding: 2px 8px; border-radius: 99px; background: var(--line-soft); font-size: 12.5px; font-weight: 600; text-align: center; }
.ibx-stack-actions { display: flex; justify-content: flex-end; padding: 0 10px 8px; margin-top: -6px; }
.ibx-stack:not(.open) .ibx-stack-actions { display: none; }
.ibx-stack-items { padding: 0 10px 6px; }

/* ---------- Alerts: cards that drop out of the island ---------- */
.la-alerts { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e8eef2; color: #0e1114;
  font: 700 11.5px/20px system-ui; text-align: center; }
.la-bell { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 10px rgba(242, 193, 78, .6); }
.la-bell::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(242, 193, 78, .6);
  opacity: 0; animation: la-ring 2.2s ease-out 3; } /* rings three times when alerts arrive, then rests */
.la-bell.quiet { background: #59636b; box-shadow: none; } .la-bell.quiet::after { display: none; }
@keyframes la-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.live-activity[data-mode="alerts"] .la-pill { box-shadow: 0 6px 26px rgba(242, 193, 78, .28), inset 0 0 0 1px rgba(242, 193, 78, .35); }

.la-cards { display: grid; gap: 0; width: min(440px, 88vw); margin-top: 2px; }
.la-cards-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; font-size: 12px; color: var(--muted); }
.la-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.la-link:hover { color: var(--ink); }
.la-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #0e1114; color: #eef2f5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .07); position: relative; }
/* the second and third card peek out from behind the first, like a stack */
/* cards behind the first peek out underneath as thin edges, like a stack */
.la-card:nth-of-type(n+2) { height: 20px; padding: 0; margin: -12px auto 0; width: calc(100% - var(--i) * 28px); overflow: hidden;
  z-index: calc(3 - var(--i)); opacity: calc(1 - var(--i) * .3); pointer-events: none; border-radius: 0 0 16px 16px; }
.la-card:nth-of-type(n+2) > * { visibility: hidden; }
.la-card-top .la-link { margin-left: 8px; color: #8b969f; }
.la-card-top .la-link:hover { color: #fff; }
.la-card:first-of-type { z-index: 4; }
.la-card.drop { animation: la-drop .55s cubic-bezier(.2, .9, .25, 1.25); }
@keyframes la-drop { from { transform: translateY(-46px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.la-card-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .08); font-size: 17px; }
.la-card-main { min-width: 0; flex: 1; display: grid; gap: 4px; }
.la-card-top { display: flex; justify-content: space-between; font-size: 11.5px; color: #8b969f; }
.la-card-title { color: #fff; font-weight: 650; font-size: 14.5px; text-decoration: none; line-height: 1.3; }
.la-card-title:hover { text-decoration: underline; }
.la-card p { margin: 0; color: #b8c2ca; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.la-card-acts { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.la-card-acts .btn { font-size: 12.5px; padding: 5px 12px; }
.la-card-quiet { margin-left: auto; display: flex; gap: 12px; color: #8b969f; }
.la-card-quiet .la-link:hover { color: #fff; }
.la-rest { justify-self: center; margin-top: 18px; color: var(--muted); }
.la-row-ic { width: 15px; text-align: center; flex: none; }
.la-head .la-link { float: right; color: #8b969f; }

/* Today: the day's alerts as a little timeline */
.la-timeline { padding: 2px 10px 6px; }
.la-tl { display: flex; gap: 10px; align-items: center; padding: 4px 0; color: inherit; text-decoration: none; font-size: 12.5px; }
.la-tl:hover .la-tl-text { color: #fff; }
.la-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #f2c14e; flex: none; box-shadow: 0 0 0 3px rgba(242, 193, 78, .15); }
.la-tl.handled .la-tl-dot { background: #4b555d; box-shadow: none; }
.la-tl-text { color: #cfd7dd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-tl-text i { color: #8b969f; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .la-card.drop, .la-bell::after { animation: none !important; } }

/* ---------- Artifacts ---------- */
.art { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 12px; height: var(--app-h, 100vh);
  padding: 12px; padding-bottom: calc(12px + var(--dock-pad, 0px)); box-sizing: border-box; }
.art-chat { padding: 0; display: flex; overflow: hidden; min-height: 0; }
.art-chat > .chat { flex: 1; min-width: 0; height: 100%; }
.art-chat .composer { padding-bottom: 12px !important; }
.art-chat .mode-pick { display: none; }
.art-stage { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.art-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; min-width: 0; }
.art-bar > * { flex: none; } .art-bar .art-title { flex: 0 1 auto; min-width: 60px; }
.art-title { font: 600 15px var(--display, inherit); padding: 2px 6px; border-radius: 6px; outline: none; max-width: 40ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-title:focus { background: var(--canvas); box-shadow: 0 0 0 1px var(--line); }
.art-spacer { flex: 1; }
.art-ver { width: auto; font-size: 12.5px; padding: 4px 8px; }
.art-view { flex: 1; min-height: 0; background: #fff; position: relative; }
.art-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.art-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--canvas); color: var(--muted); text-align: center; padding: 20px; }
.art-wait .la-orbit i { background: var(--accent); box-shadow: none; } .art-wait .la-orbit i + i { background: var(--muted); }
.art-new .art-form { display: grid; gap: 10px; }
.art-new textarea { resize: vertical; font-size: 15px; }
.art-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.art-idea { text-align: left; font: inherit; font-size: 13.5px; color: inherit; cursor: pointer; line-height: 1.4; }
.art-idea:hover { border-color: var(--accent); }
@media (max-width: 1000px) { .art { grid-template-columns: 1fr; grid-template-rows: 45% 55%; } }
.art-from { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--line-soft); color: var(--muted); }

/* ---------- Follow-ups ---------- */
.fu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .fu-cols { grid-template-columns: 1fr; } }
.fu-col > .hint { margin: -4px 0 12px; }
.fu-group { margin-bottom: 14px; }
.fu-when { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.fu-group.late .fu-when { color: var(--bad); }
.fu-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 6px; transition: opacity .25s, transform .25s; }
.fu-item.leaving { opacity: 0; transform: translateX(12px); }
.fu-item > input[type=checkbox] { margin-top: 3px; }
.fu-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.fu-what { font-size: 14px; line-height: 1.4; }
.fu-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); align-items: center; }
.fu-meta a { color: inherit; }
.fu-due { position: relative; cursor: pointer; padding: 1px 8px; border-radius: 99px; background: var(--line-soft); color: var(--ink); }
.fu-group.late .fu-due { background: var(--bad-soft); color: var(--bad); }
.fu-due input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fu-empty { padding: 14px; }

/* ---------- Jira tickets on a meeting ---------- */
.jira-wait, .jira-empty { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.jira-wait { justify-content: flex-start; color: var(--muted); }
.jira-wait .la-orbit i { background: var(--accent); box-shadow: none; } .jira-wait .la-orbit i + i { background: var(--muted); }
.jira-list { padding: 4px 12px; }
.jira-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.jira-row:last-child { border-bottom: 0; }
.jira-row.off .jira-main { opacity: .45; }
.jira-row > input { margin-top: 9px; }
.jira-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.jira-summary { font-weight: 600; font-size: 14px; border-color: transparent; background: transparent; padding: 4px 6px; margin-left: -6px; }
.jira-summary:hover, .jira-summary:focus { border-color: var(--line); background: var(--surface); }
.jira-desc { width: 100%; font-size: 13px; margin-top: 6px; }
.jira-done { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.jira-key { font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.la-card p.la-prep { white-space: pre-line; -webkit-line-clamp: 9; } /* the prep's short parts, one per line */

/* ---------- Share notes (meeting page) ---------- */
.share { display: grid; gap: 10px; }
.share-top { display: grid; gap: 6px; }
.share-sent { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.share-form { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.share-to { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .share-to { grid-template-columns: 1fr; } }
.share-form textarea { font-size: 13px; font-family: ui-monospace, Menlo, monospace; resize: vertical; }
.share-what { justify-self: start; }
.share-auto[hidden] { display: none; }

/* ---------- Questions for Ava ---------- */
.asks-list { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.asks-q { font-weight: 500; }
.asks-a { color: var(--accent); margin-top: 2px; }
.asks-add input { flex: 1; }
.agenda-asks { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.phone-code { font: 700 18px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; }

/* Usage page (static/usage.js) */
.usage .section > h3 small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.usage .section > h3 .btn { margin-left: auto; }
.us-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.us-limit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; background: var(--surface); display: grid; gap: 8px; }
.us-limit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.us-pct { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.us-meter { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.us-meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.us-limit.high .us-meter i { background: var(--signal, #ff7a1a); } /* "needs you": close to the limit */
.us-bars { display: grid; gap: 8px; }
.us-bar { display: grid; grid-template-columns: 150px 1fr 190px; gap: 12px; align-items: center; font-size: 13.5px; }
.us-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-bar-track { height: 12px; }
.us-bar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); opacity: .85; }
.us-bar-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.us-bar-val small { font-weight: 400; color: var(--muted); }
.us-days { display: flex; align-items: flex-end; gap: 6px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.us-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; cursor: default; }
.us-day:hover .us-col { opacity: 1; }
.us-col { width: 70%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .8; }
.us-day-lbl { font-size: 11.5px; color: var(--muted); padding-bottom: 4px; }

/* Follow-ups inside the Inbox; the one Claude button carries the chats' counts */
.fu-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ask-claude { position: relative; }
.ask-claude .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--signal); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.ask-claude .live { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.claude-tabs { display: flex; margin-bottom: 12px; }
.claude-tabs a { flex: 1; text-align: center; }

/* Runners page (static/runners.js) */
.rn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.rn-card { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.rn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rn-head h3 { font-size: 17px; margin: 0; display: flex; gap: 8px; align-items: center; }
.rn-live { display: flex; gap: 10px; font-size: 12.5px; }
.rn-sum { display: inline-flex; align-items: center; gap: 5px; }
.rn-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.rn-dot.on { background: #3fcf73; } .rn-dot.busy { background: var(--accent); } .rn-dot.off { background: var(--bad); }
.rn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rn-addr { font-size: 12px; }
.rn-gh-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 12.5px; }
.rn-gh-row code { font-size: 12px; }
.rn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.rn-form .btn { justify-self: start; }
.rn-other { margin-top: 16px; }

/* Focus mode on the Today page */
.focus-start { position: relative; }
.focus-start summary { list-style: none; }
.focus-start summary::-webkit-details-marker { display: none; }
.focus-form { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; padding: 14px; display: grid; gap: 10px; z-index: 20;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.focus-form .hint { margin: 0; }
.focus-on { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.focus-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Who's speaking (static/voices.js) */
.vc-intro { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; }
.vc-groups { display: grid; gap: 10px; }
.vc-group { padding: 14px 16px; display: grid; gap: 8px; }
.vc-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.vc-group audio { width: 100%; max-width: 420px; height: 32px; }
.vc-texts { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 3px; }
.vc-form input { max-width: 260px; }
.phone-qrs { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.phone-qr { margin: 0; display: grid; gap: 6px; justify-items: center; }
.phone-qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 6px; display: block; }
.phone-qr svg path { fill: #000; }
.phone-qr { justify-items: start; }
.phone-qr svg { width: 220px; height: 220px; }
.phone-more summary { cursor: pointer; margin-bottom: 6px; }
.usage { display: grid; gap: 18px; }

/* Messages page (static/messages.js) */
.msg-list { display: grid; gap: 10px; }
.msg-card { padding: 14px 16px; display: grid; gap: 8px; transition: opacity .2s, transform .2s; }
.msg-card.leaving { opacity: 0; transform: translateX(20px); }
.msg-card.closed { opacity: .7; }
.msg-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-src { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--ink); align-self: center; }
.msg-src svg { width: 13px; height: 13px; }
.msg-why { font-weight: 600; }
.msg-text { margin: 0; color: var(--muted); white-space: pre-wrap; font-size: 13.5px; max-height: 7.5em; overflow: hidden; }
.msg-acts { gap: 8px; flex-wrap: wrap; }

/* The services' logos (core.js brand()) */
.brand { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.brand svg { width: 100%; height: 100%; display: block; }
.la-card-ic .brand, .la-row-ic .brand, .ibx-ic .brand { width: 18px; height: 18px; }
.msg-src .brand { width: 14px; height: 14px; }
.nav a .brand { width: 24px; height: 24px; }
.settings-group h3 .brand { margin-right: 4px; }
.msg-card { grid-template-columns: 44px 1fr; align-items: start; column-gap: 14px; }
.msg-body { display: grid; gap: 8px; min-width: 0; }
.msg-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: hsl(var(--h) 45% 45%); color: #fff; font-weight: 700; font-size: 15px; }
.msg-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.msg-avatar-src { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.msg-avatar-src .brand { width: 13px; height: 13px; }

/* Settings: sections on the left, one at a time on the right, saved as you go */
.set-nav .item { display: flex; align-items: center; gap: 10px; }
.set-ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--muted); }
.set-ic svg, .set-ic .brand { width: 18px; height: 18px; }
.set-nav .item.on .set-ic { color: var(--accent); }
.list-head input[type=search] { width: 100%; margin-top: 10px; }
.settings-page .settings-group { border-top: 0; padding-top: 4px; }
.settings-page .settings-group > div:first-child h3 { display: none; } /* the page title already names it */
.set-saved { font-size: 13px; font-weight: 600; color: var(--accent); align-self: center; }
.set-hit { background: var(--accent-soft); border-radius: 6px; box-shadow: 0 0 0 4px var(--accent-soft); }
.phone-ask { padding: 12px 14px; display: grid; gap: 8px; border-color: var(--signal) !important; }
.msg-react { display: inline-flex; gap: 2px; padding: 2px; border-radius: 99px; background: var(--line-soft); }
.msg-react .btn { font-size: 17px; padding: 3px 8px; min-height: 0; border-radius: 99px; line-height: 1.3; }
.msg-react .btn:hover { transform: scale(1.18); }
.la-progress { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); margin-top: 5px; overflow: hidden; }
.la-progress i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .6s; }
