/* =========================================================
   Meetings Recorder — live demo
   Tahoe-style window chrome + 1:1 design tokens from
   the macOS app's DesignSystem.swift
   ========================================================= */

/* Mobile gate: hide demo on small viewports, show centered message */
.mobile-gate { display: none; }

@media (max-width: 1023px) {
  body { background: #0e1224; }
  .desktop { display: none !important; }
  .mobile-gate {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  .mobile-gate-icon {
    width: 96px; height: 96px;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    margin-bottom: 24px;
  }
  .mobile-gate-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
  }
  .mobile-gate-sub {
    font-size: 15px;
    margin: 0;
    opacity: .65;
  }
}

:root {
  /* Accent */
  --accent: #7C5CFC;
  --accent-light: #A78BFA;
  --accent-ultra: #EDE9FE;
  --accent-grad: linear-gradient(135deg, #5B3EC4 0%, #7C5CFC 50%, #9B7FE6 100%);

  /* Text */
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;

  /* Borders */
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Backgrounds */
  --window-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --surface-bg: #F4F4F7;

  /* Stat card colors */
  --green-label: #059669;
  --green-value: #047857;
  --green-bg: #DDF6E8;
  --amber-label: #B45309;
  --amber-value: #92400E;
  --amber-bg: #FCEEC8;

  /* Spacing/radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Window sizes scale with the viewport so the demo looks right both on a
     compact 13" MacBook and on a 4K external display. Mins are picked so the
     dashboard's three stat cards stay one-line on the smallest target; maxes
     prevent giant empty cards on 4K. */
  --window-w: clamp(960px, calc(22vw + 540px), 1140px);
  --window-h: clamp(560px, calc(36vh + 280px), 780px);
  --sidebar-w: 204px;

  --browser-w: clamp(600px, calc(23vw + 300px), 920px);
  --browser-h: clamp(400px, calc(36vh + 140px), 640px);

  /* Dock */
  --dock-icon-size: 56px;

  /* Sidebar (light, inside window) */
  --sb-bg: #F7F7FA;
}

/* =========================================================
   Reset / base
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  background: #000;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; background: transparent; border: 0; outline: 0; }
img { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* =========================================================
   Desktop + wallpaper
   ========================================================= */

.desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background: url("assets/DefaultAerial_Tahoe_Beach.jpg") center / cover no-repeat;
}

/* =========================================================
   Menu Bar
   ========================================================= */

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  z-index: 5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 14px; }
.mb-apple { font-size: 15px; }
.mb-app { font-weight: 600; }
.mb-menu { font-size: 13px; opacity: 0.95; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-cc { font-size: 14px; opacity: 0.8; }
.mb-right i { font-size: 13px; }

/* =========================================================
   Window shell — Tahoe single rounded shell with inset sidebar
   ========================================================= */

.window-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--window-w);
  height: var(--window-h);
  display: grid;
  grid-template-columns: calc(var(--sidebar-w) + 7px) 1fr;
  background: var(--window-bg);
  border-radius: 14px;
  overflow: hidden;
  z-index: 2;
  box-shadow:
    inset 0 0 0 0.5px rgba(0,0,0,0.06),
    0 22px 50px -10px rgba(0,0,0,0.45),
    0 8px 20px -4px rgba(0,0,0,0.3);
  visibility: hidden; /* JS positions before reveal to avoid flicker */
}
.window-shell.is-positioned { visibility: visible; }
[data-drag-handle] { cursor: grab; }
[data-drag-handle].is-dragging { cursor: grabbing; }

/* Inset sidebar — its own rounded panel inside the shell */
.sidebar {
  margin: 7px 0 7px 7px;
  background: var(--sb-bg);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.sb-titlebar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
}

.sb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 4px;
  min-height: 0;
}

/* Main area — extends to top/right/bottom edges of the shell */
.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--window-bg);
  overflow: hidden;
}

.main-titlebar {
  /* +7px on top so the record / search controls land at the same vertical
     centerline as the sidebar's traffic dots (the sidebar panel is itself
     inset by 7px inside the window shell). */
  height: 51px;
  flex: 0 0 51px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 0 14px;
  user-select: none;
}
.main-titlebar .title-text {
  margin-right: auto;
}

.topbar-back {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  font-size: 12px;
  flex: 0 0 auto;
}
.topbar-back:hover { background: rgba(0,0,0,0.08); }

/* Traffic lights */
.traffic { display: flex; align-items: center; gap: 8px; }
.traffic .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: rgba(0,0,0,0);
  cursor: pointer;
}
.traffic .dot i { transform: scale(0.85); }
.traffic:hover .dot { color: rgba(0,0,0,0.55); }
.dot-close { background: #FF5F57; box-shadow: inset 0 0 0 0.5px #E0443E; }
.dot-min   { background: #FEBC2E; box-shadow: inset 0 0 0 0.5px #DEA123; }
.dot-max   { background: #28C840; box-shadow: inset 0 0 0 0.5px #1AAB29; }

/* Sidebar toggle button */
.sb-toggle {
  width: 28px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.7;
  border-radius: 5px;
  font-size: 16px;
}
.sb-toggle:hover { opacity: 1; background: rgba(0,0,0,0.05); }

.sb-section { padding: 0 10px 8px; }
.sb-spacer { flex: 1; }

.sb-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.6px;
  padding: 10px 12px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  width: 100%;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.sb-item i { font-size: 15px; width: 18px; text-align: center; flex: 0 0 18px; }
.sb-item span { flex: 1; }
.sb-item:hover { background: rgba(0,0,0,0.04); }
.sb-item.is-active {
  background: var(--accent-ultra);
  color: var(--accent);
  font-weight: 500;
}
.sb-item.is-active i { color: var(--accent); }

.sb-badge {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  justify-content: center;
}

.sb-meeting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 12px;
}
.sb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 8px;
}
.dot-accent  { background: var(--accent); }
.dot-warning { background: var(--warning); }
.dot-danger  { background: var(--danger); }

.sb-meeting-body { min-width: 0; }
.sb-meeting-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.sb-meeting-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

/* =========================================================
   Top bar — title + actions (right side)
   ========================================================= */

.title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Record button — pill style. Idle: neutral. Recording: solid red. */
.record-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px 0 13px;
  height: 40px;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}
.record-pill:hover { background: rgba(0,0,0,0.07); }
.record-pill .rec-icon { font-size: 14px; color: var(--text-primary); }

.record-pill.is-recording {
  background: var(--danger);
  color: #fff;
  font-weight: 600;
}
.record-pill.is-recording:hover { background: #DC2626; }
.record-pill.is-recording .rec-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 4px;
}

/* Search pill */
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  width: 240px;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  color: var(--text-tertiary);
  font-size: 13px;
  height: 40px;
}
.search-pill i { font-size: 12px; color: var(--text-tertiary); }
.search-pill input { width: 100%; color: var(--text-primary); }
.search-pill input::placeholder { color: var(--text-tertiary); }

/* =========================================================
   Main content scroll area
   ========================================================= */

.content {
  flex: 1;
  background: var(--window-bg);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Screens */
.screen { display: none; width: 100%; height: 100%; }
.screen.is-active { display: flex; }

.screen-dashboard { flex-direction: column; overflow-y: auto; }

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* Greeting */
.ds-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.day-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dn-btn {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(243,244,246,0.5);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.dn-btn:hover { background: rgba(0,0,0,0.06); }
.dn-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.dn-today {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 4px;
}

/* =========================================================
   Stat cards — no borders, solid fills
   ========================================================= */

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.stat-card {
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}
.stat-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-head i { font-size: 12px; flex: 0 0 auto; }
.stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-detail { font-size: 11px; line-height: 1.35; }

.stat-accent { background: var(--accent-grad); color: #fff; }
.stat-accent .stat-head { color: rgba(255,255,255,0.85); }
.stat-accent .stat-detail { color: rgba(255,255,255,0.75); }

.stat-green {
  background: var(--green-bg);
  color: var(--green-label);
}
.stat-green .stat-value { color: var(--green-value); }

.stat-amber {
  background: var(--amber-bg);
  color: var(--amber-label);
}
.stat-amber .stat-value { color: var(--amber-value); }

/* =========================================================
   Sections / cards
   ========================================================= */

.section { display: flex; flex-direction: column; gap: 16px; }
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}

/* =========================================================
   Day timeline
   ========================================================= */

.timeline-card { padding: 16px; }
.tl-times { display: flex; align-items: center; margin-bottom: 8px; }
.tl-times-spacer { width: 80px; flex: 0 0 80px; }
.tl-times-track {
  flex: 1;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-tertiary);
}

.tl-lanes {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-row { display: flex; align-items: center; }
.tl-row-label {
  width: 80px;
  flex: 0 0 80px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.tl-row-track {
  flex: 1;
  position: relative;
  background: var(--border-light);
  border-radius: 6px;
}
.tl-row-meetings { height: 24px; }
.tl-row-thin { height: 16px; }

.tl-block {
  position: absolute;
  top: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
}
.tl-block-meeting { background: rgba(124,92,252,0.85); height: 24px; }
.tl-block-ctx-pre  { background: rgba(245,158,11,0.45); height: 16px; border-radius: 3px; }
.tl-block-ctx-post { background: rgba(245,158,11,0.65); height: 16px; border-radius: 3px; }
.tl-block-free     { background: rgba(16,185,129,0.40); height: 16px; border-radius: 3px; }

.tl-now {
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(239,68,68,0.5);
  pointer-events: none;
  margin-left: -0.75px;
}
.tl-now::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -3.25px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.tl-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-dot { display: inline-flex; align-items: center; gap: 6px; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ld-accent  { background: var(--accent); }
.ld-warning { background: var(--warning); }
.ld-success { background: var(--success); }
.tl-now-label { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.tl-now-text { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.tl-now-time { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* =========================================================
   Meeting cards (expandable)
   ========================================================= */

.meetings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc {
  background: var(--card-bg);
  border-radius: var(--r-md);
  box-shadow: 0 4px 9px rgba(0,0,0,0.07);
  /* visible — the attendance dropdown anchors inside the row and would
     otherwise be clipped by the card's bounds when no brief is expanded. */
  overflow: visible;
  transition: box-shadow 180ms ease, background 180ms ease;
}
.mc:hover, .mc.is-expanded {
  background: #FEFEFF;
  box-shadow: 0 7px 14px rgba(0,0,0,0.07);
}
.mc.is-skipped { opacity: 0.6; }

.mc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: default;
}
.mc.has-brief .mc-row { cursor: pointer; }

.mc-time {
  width: 78px;
  flex: 0 0 78px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.mc-time-start {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.mc-time-dur {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.mc-divider {
  width: 3px;
  height: 38px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 3px;
}
.mc-divider.is-now { background: var(--danger); }
.mc-divider.is-soon { background: var(--warning); }
.mc-divider.is-past { background: var(--text-tertiary); }

.mc-body { min-width: 0; flex: 1; }
.mc-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.mc-brief-pill {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 16px;
  flex: 0 0 auto;
}
.mc-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Attendance picker */
.att-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.att-picker i { font-size: 9px; font-weight: bold; opacity: 0.7; }

.att-attend { background: rgba(16,185,129,0.12); color: var(--green-label); }
.att-maybe {
  background: rgba(245,158,11,0.12);
  color: #D97706;
  border: 1px solid #FCD34D;
  padding: 3px 9px;
}
.att-skip { background: rgba(0,0,0,0.04); color: var(--text-tertiary); }

.att-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 0 0 0.5px rgba(0,0,0,0.1);
  padding: 4px;
  min-width: 130px;
  z-index: 20;
  display: none;
}
.att-menu.is-open { display: block; }
.att-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.att-menu-item:hover { background: var(--accent); color: #fff; }
.att-menu-item .check { width: 12px; opacity: 0; }
.att-menu-item.is-current .check { opacity: 1; }

/* Scope row — appears inline after the user changes the attendance, asking
   whether the change is only for this occurrence or for all future ones. */
.mc-scope-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border-light);
  margin: 0 0 0 0;
}
.mc-scope-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-right: auto;
}
.mc-scope-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.mc-scope-only {
  background: var(--accent-ultra);
  color: var(--accent);
}
.mc-scope-only:hover { background: rgba(124,92,252,0.18); }
.mc-scope-all {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
}
.mc-scope-all:hover { background: rgba(0,0,0,0.08); }

/* Brief body */
.mc-brief-body {
  margin: 2px 14px 14px;
  padding: 12px;
  background: var(--surface-bg);
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* =========================================================
   Charts row
   ========================================================= */

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.chart-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chart-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.chart-head i { font-size: 14px; color: var(--accent); }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.bar-col { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; cursor: pointer; }
.bar-track {
  width: 100%;
  height: 110px;
  background: rgba(243,244,246,0.65);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.bar-col.is-selected .bar-track {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.bar-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}
.bar-stack > div { width: 100%; flex-shrink: 0; }
.bar-free { background: rgba(16,185,129,0.5); }
.bar-ctx { background: rgba(245,158,11,0.75); }
.bar-meet { background: var(--accent); }

.bar-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}
.bar-col.is-today .bar-label,
.bar-col.is-selected .bar-label {
  color: var(--accent);
  font-weight: 700;
}

/* Summary card */
.summary-rows { display: flex; flex-direction: column; gap: 12px; }
.summary-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
}
.sr-dot { width: 10px; height: 10px; border-radius: 50%; }
.sr-label { font-size: 13px; color: var(--text-secondary); }
.sr-value { font-size: 16px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

.summary-bar {
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.summary-bar > div { height: 100%; }

.summary-budget {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 4px;
  font-size: 11px;
}
.sb-budget-label { color: var(--text-tertiary); }
.sb-budget-val { color: var(--text-secondary); font-weight: 500; }

.chart-legend { padding-top: 0; margin-top: 0; border-top: 0; }

/* =========================================================
   Browser window — fake Chrome running a Meet call
   ========================================================= */

.browser-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--browser-w);
  height: var(--browser-h);
  background: #202124;
  border-radius: 12px;
  overflow: hidden;
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.08),
    0 22px 50px -10px rgba(0,0,0,0.55),
    0 8px 20px -4px rgba(0,0,0,0.35);
  visibility: hidden;
}
.browser-shell.is-positioned { visibility: visible; }

.bw-chrome {
  flex: 0 0 auto;
  background: #DEE1E6;
  user-select: none;
}

.bw-titlebar {
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 10px 0 12px;
}
.bw-titlebar .traffic { padding-bottom: 8px; }

.bw-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.bw-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #fff;
  color: #3C4043;
  font-size: 12px;
  border-radius: 8px 8px 0 0;
  max-width: 220px;
  min-width: 0;
}
.bw-tab-fav { font-size: 12px; color: #1A73E8; }
.bw-tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.bw-tab-close { font-size: 12px; color: #80868B; margin-left: 4px; }
.bw-newtab {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5F6368;
  font-size: 12px;
}

.bw-toolbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
}
.bw-nav { display: flex; align-items: center; gap: 4px; }
.bw-nav-btn {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5F6368;
  font-size: 13px;
}
.bw-nav-btn:hover { background: rgba(0,0,0,0.06); }
.bw-url {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #F1F3F4;
  border-radius: 999px;
  font-size: 12px;
  color: #3C4043;
  min-width: 0;
}
.bw-url i { font-size: 11px; color: #5F6368; }
.bw-url-host { color: #3C4043; }
.bw-url-path { color: #80868B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-extras { display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.bw-extras i { font-size: 14px; color: #5F6368; }
.bw-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #7C5CFC;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Meet room contents */
.bw-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.meet-room {
  background: #202124;
  color: #E8EAED;
  position: relative;
}

.meet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 0;
  flex: 0 0 auto;
}
.meet-title-block { display: flex; flex-direction: column; gap: 2px; }
.meet-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.1px;
}
.meet-subtitle {
  font-size: 11px;
  color: #9AA0A6;
}
.meet-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.meet-rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(234, 67, 53, 0.18);
  color: #F28B82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  border: 1px solid rgba(234, 67, 53, 0.35);
}
.meet-rec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EA4335;
  animation: rec-pulse 1.4s ease-in-out infinite;
}
.meet-time {
  font-size: 12px;
  color: #BDC1C6;
  font-variant-numeric: tabular-nums;
}

.meet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  min-height: 0;
}

.meet-tile {
  position: relative;
  background: #303134;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
}
.meet-tile-talking { border-color: #8AB4F8; box-shadow: 0 0 0 1px rgba(138,180,248,0.4); }

.meet-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.meet-tile-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(32,33,36,0.75);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
.meet-talking-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34A853;
  box-shadow: 0 0 0 2px rgba(52,168,83,0.25);
  animation: meet-talking-pulse 0.9s ease-in-out infinite;
}
@keyframes meet-talking-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.meet-tile-mic {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(32,33,36,0.75);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
}
.meet-tile-mic.muted { background: #EA4335; color: #fff; }

.meet-controls {
  flex: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  background: #202124;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.meet-controls-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9AA0A6;
  min-width: 0;
}
.meet-controls-side i { font-size: 13px; color: #34A853; }
.meet-controls-right { justify-content: flex-end; }

.meet-controls-center {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meet-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #3C4043;
  color: #E8EAED;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.meet-btn:hover { background: #4D5156; }
.meet-btn-ghost { background: transparent; color: #BDC1C6; }
.meet-btn-ghost:hover { background: rgba(255,255,255,0.08); }
.meet-leave {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #EA4335;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.meet-leave:hover { background: #DC2626; }

/* =========================================================
   Floating recording window
   ========================================================= */

.rec-float, .rec-countdown {
  position: absolute;
  bottom: 110px;
  right: 28px;
  width: 240px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.55),
    inset 0 0 0 1px rgba(0,0,0,0.04),
    0 18px 40px rgba(0,0,0,0.18),
    0 6px 14px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
  user-select: none;
  animation: rec-float-in 200ms cubic-bezier(0.2, 0.8, 0.2, 1.05);
}
@keyframes rec-float-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rec-float-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex: 0 0 8px;
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.rec-float-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-float-timer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rec-float-time {
  font-size: 28px;
  font-weight: 600;
  font-family: ui-monospaced, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.rec-float-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.rec-float-status i { font-size: 12px; }

.rec-float-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-float-stop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 30px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}
.rec-float-stop:hover { background: #DC2626; }
.rec-float-stop i { font-size: 9px; font-weight: bold; }

/* Countdown variant */
.rec-countdown { gap: 6px; }
.rec-countdown-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 8px;
}
.rec-countdown-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.rec-countdown-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 2px 0 6px;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1.05);
}
.rec-countdown-num.is-tick { transform: scale(1.06); }
.rec-float-cancel {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 30px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}
.rec-float-cancel:hover { background: rgba(0,0,0,0.08); }

/* =========================================================
   Dock
   ========================================================= */

.dock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  gap: 0;
}
.dock-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 18px 40px rgba(0,0,0,0.4),
    0 0 0 0.5px rgba(0,0,0,0.05);
}
.dock-items {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 6px;
  gap: 4px;
}

.dock-item {
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  position: relative;
  cursor: default;
}
.dock-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* The Meetings Recorder app icon ships as a square PNG (no built-in
   rounded mask), unlike the Big Sur icons which have transparent
   squircle corners. Round the active-app slot AND inset slightly so
   its visible area matches the Big Sur squircle footprint instead of
   filling the full 56×56 box. */
.dock-item.dock-app-active img {
  width: 86%;
  height: 86%;
  margin: 7%;
  border-radius: 12px;
}

.dock-divider {
  width: 1px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.4);
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 6px;
  align-self: center;
  cursor: default;
}

.dock-running {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .charts-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
/* =========================================================
   Chat screen
   ========================================================= */

.screen-chat { flex-direction: row; overflow: hidden; }

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--window-bg);
}

.chat-topbar {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
}
.chat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-ellipsis {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}
.chat-ellipsis:hover { background: rgba(0,0,0,0.05); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}

.chat-msg-user {
  display: flex;
  justify-content: flex-end;
  padding-left: 60px;
}
.chat-msg-user-bubble {
  background: var(--accent-ultra);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
}

.chat-msg-assistant {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 40px;
}

.chat-sparkle {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  margin-top: 2px;
}

.chat-msg-content {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}
.chat-msg-content p { margin: 0 0 10px; }
.chat-msg-content p:last-child { margin-bottom: 0; }
.chat-msg-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
  list-style: none;
}
.chat-msg-content ul li {
  position: relative;
  margin-bottom: 8px;
}
.chat-msg-content ul li::before {
  content: "•";
  color: var(--text-secondary);
  position: absolute;
  left: -16px;
}
.chat-msg-content strong { font-weight: 600; }

/* Source toggle row */
.chat-proof-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 1px 0;
}
.chat-proof-toggle:hover { color: var(--text-secondary); }
.chat-proof-toggle i { font-size: 9px; transition: transform 150ms ease; }
.chat-proof-toggle.is-open i { transform: rotate(90deg); }

.chat-proof-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.chat-proof-list.is-open { display: flex; }
.chat-proof {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  border-radius: 4px;
}
.chat-proof:hover { background: rgba(243,244,246,0.4); padding-left: 6px; padding-right: 6px; }
.chat-proof-rule {
  width: 2px;
  background: rgba(124,92,252,0.5);
  border-radius: 1px;
  flex: 0 0 2px;
}
.chat-proof-body { flex: 1; min-width: 0; }
.chat-proof-snippet {
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.4;
}
.chat-proof-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.chat-proof-meta .timecode {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.chat-proof-meta i { margin-left: auto; font-size: 9px; }

/* Input area */
.chat-input-wrap {
  flex: 0 0 auto;
  padding: 14px 24px 16px;
  background: var(--window-bg);
}
.chat-input {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 150ms ease;
}
.chat-input:focus-within {
  border-color: rgba(124,92,252,0.6);
}
.chat-input textarea {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  min-height: 32px;
  max-height: 120px;
  padding: 4px 0;
  font-family: inherit;
}
.chat-input textarea::placeholder { color: var(--text-tertiary); }

.chat-mic, .chat-send {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-tertiary);
  background: rgba(243,244,246,0.5);
  transition: background 150ms ease, color 150ms ease;
}
.chat-mic { opacity: 0.55; cursor: not-allowed; }
.chat-send i { font-size: 13px; font-weight: bold; }
.chat-send.is-active { background: var(--accent); color: #fff; }
.chat-send.is-active:hover { background: #6B4EEC; }

/* Welcome state — empty new chat */
.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 32px;
}
.chat-welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.chat-welcome-orb {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(124,92,252,0.35);
}
.chat-welcome-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}
.chat-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}
.chat-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  height: 120px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}
.chat-suggestion:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.chat-suggestion-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-ultra);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.chat-suggestion-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
}

/* Streaming cursor + searching indicator */
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 0.85s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat-searching {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}
.chat-spinner {
  width: 14px; height: 14px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chat-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(124,92,252,0.35);
  word-break: break-all;
}
.chat-link:hover { border-bottom-color: var(--accent); }

/* Right-side chat list (inspector) */
.chat-list {
  width: 280px;
  flex: 0 0 280px;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  background: var(--window-bg);
  min-height: 0;
}
.chat-list-header {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
}
.chat-new {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: linear-gradient(90deg, #7C5CFC, #9B7FE6);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: filter 150ms ease;
}
.chat-new:hover { filter: brightness(1.05); }
.chat-new i { font-size: 14px; }
.chat-new span { flex: 1; text-align: left; }
.chat-shortcut {
  flex: 0 0 auto !important;
  text-align: right !important;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: rgba(255,255,255,0.75);
}

.chat-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 0;
}
.chat-list-section { padding: 8px 14px 4px; }
.chat-list-section-title {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: var(--text-tertiary);
}
.chat-list-item {
  margin: 0 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 100ms ease;
}
.chat-list-item:hover { background: rgba(243,244,246,0.5); }
.chat-list-item.is-active { background: var(--accent-ultra); }
.chat-list-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.chat-list-item.is-active .chat-list-item-title { color: var(--accent); font-weight: 600; }
.chat-list-item-preview {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   Follow-ups screen
   ========================================================= */

.screen-followups { flex-direction: row; overflow: hidden; }

.fu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--window-bg);
}

.fu-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border-light);
}
.fu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.fu-tab.is-active {
  background: var(--accent-ultra);
  color: var(--accent);
  font-weight: 600;
}
.fu-tab-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: rgba(243,244,246,0.7);
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.fu-tab.is-active .fu-tab-count {
  background: var(--accent);
  color: #fff;
}

.fu-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

/* Follow-up card */
.fu-card {
  background: var(--card-bg);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: opacity 90ms ease, transform 90ms ease;
}
.fu-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fu-card.is-done { opacity: 0.45; transform: scale(0.99); transform-origin: left; }
.fu-card.is-done .fu-subject { text-decoration: line-through; color: var(--text-tertiary); }

/* Row 1 */
.fu-row1 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fu-priority-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 8px;
}
.fu-priority-high   { background: var(--danger); }
.fu-priority-medium { background: var(--warning); }
.fu-priority-low    { background: var(--text-tertiary); }

.fu-checkbox {
  width: 24px; height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 1px;
}
.fu-checkbox-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 100ms, border-color 100ms;
}
.fu-card.is-done .fu-checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fu-checkbox-box i { font-size: 10px; font-weight: bold; }

.fu-subject {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.fu-date {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.fu-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}
.fu-trash {
  color: var(--text-tertiary);
  font-size: 11px;
  padding: 2px;
  cursor: pointer;
}
.fu-trash:hover { color: var(--danger); }

/* Row 2 — audio strip + counterpart + mentions */
.fu-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 48px;
  justify-content: space-between;
}
.fu-row2-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.fu-row2-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 12px;
}

.fu-play {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  cursor: pointer;
  transition: filter 100ms ease;
}
.fu-play:hover { filter: brightness(1.05); }

/* Waveform — two layered bar rows, top one clip-revealed via width */
.fu-wave {
  position: relative;
  height: 22px;
  flex: 0 0 auto;
  width: 180px;
}
.fu-wave-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 1.5px;
  pointer-events: none;
}
.fu-wave-grey > .fu-bar { background: rgba(0,0,0,0.18); }
.fu-wave-purple {
  width: 0%;
  overflow: hidden;
}
.fu-wave-purple > .fu-bar { background: var(--accent); }
.fu-card.is-playing .fu-wave-purple {
  animation: fu-wave-fill 6s linear forwards;
}
@keyframes fu-wave-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
.fu-bar {
  flex: 1;
  border-radius: 1.5px;
  min-width: 2px;
}

.fu-time {
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.fu-counterpart {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(243,244,246,0.5);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
}
.fu-counterpart i { font-size: 9px; font-weight: bold; }
.fu-counterpart-iowe i  { color: var(--accent); }
.fu-counterpart-oweme i { color: var(--warning); }

.fu-mentions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: var(--accent-ultra);
  border: 1px solid rgba(124,92,252,0.18);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  flex: 0 1 auto;
  max-width: 240px;
  min-width: 0;
}
.fu-mentions i { font-size: 9px; flex: 0 0 auto; }
.fu-mentions span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fu-counterpart span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Filter sidebar */
.fu-sidebar {
  width: 280px;
  flex: 0 0 280px;
  border-left: 1px solid var(--border-light);
  background: var(--window-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 6px;
  gap: 8px;
  min-height: 0;
}
.fu-filter-section { padding: 0; }
.fu-filter-title {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: var(--text-tertiary);
  padding: 8px 14px 4px;
}
.fu-filter-list { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }

.fu-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.fu-filter-row:hover { background: rgba(243,244,246,0.45); }
.fu-filter-row.is-active {
  background: var(--accent-ultra);
  color: var(--accent);
  font-weight: 600;
}
.fu-filter-row i {
  font-size: 12px;
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
  color: var(--text-secondary);
}
.fu-filter-row.is-active i { color: var(--accent); }
.fu-filter-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-filter-row .fu-filter-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: rgba(243,244,246,0.7);
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  flex: 0 0 auto;
}
.fu-filter-row.is-active .fu-filter-badge {
  background: var(--accent);
  color: #fff;
}

/* Empty state */
.fu-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--text-secondary);
  text-align: center;
}
.fu-empty i { font-size: 28px; color: var(--text-tertiary); }
.fu-empty-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.fu-empty-sub { font-size: 12px; color: var(--text-secondary); }

/* =========================================================
   Detail (one recording) screen
   ========================================================= */

.screen-detail { flex-direction: column; overflow: hidden; }
.dt-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 40px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Title block */
.dt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dt-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.dt-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}
.dt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dt-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 100ms ease;
}
.dt-action:hover { background: rgba(0,0,0,0.025); }
.dt-action i { font-size: 12px; }
.dt-action-regen {
  background: var(--accent-ultra);
  border-color: transparent;
  color: var(--accent);
}
.dt-action-regen:hover { background: rgba(124,92,252,0.18); }
.dt-action-delete {
  background: rgba(239,68,68,0.08);
  border-color: transparent;
  color: var(--danger);
}
.dt-action-delete:hover { background: rgba(239,68,68,0.14); }

/* Top row: relevance + summary */
.dt-row-top {
  display: grid;
  grid-template-columns: minmax(280px, 33%) 1fr;
  gap: 16px;
  align-items: stretch;
}
.dt-relevance {
  background: var(--accent-grad);
  color: #fff;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
}
.dt-relevance-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.dt-relevance-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.dt-relevance-bar {
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.dt-relevance-bar-fill {
  height: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}
.dt-relevance-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

.dt-summary {
  background: var(--surface-bg);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}
.dt-summary-label {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}
.dt-summary-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Meeting timeline */
.dt-timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dt-timeline-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dt-timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.dt-timeline-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.dt-timeline-active-pill {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.dt-timeline-legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.dt-timeline-legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dt-timeline-legend-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.dt-leg-off    { color: rgba(0,0,0,0.18); }
.dt-leg-ctx    { color: rgba(124,92,252,0.4); }
.dt-leg-rel    { color: var(--accent-light); }
.dt-leg-core   { color: var(--accent); }
.dt-timeline-speed {
  background: var(--accent-ultra);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.dt-timeline-strip {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.dt-timeline-play {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  align-self: center;
  cursor: pointer;
}
.dt-timeline-play:hover { filter: brightness(1.05); }

.dt-timeline-segments {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 4px;
  position: relative;
  padding-bottom: 22px;
  min-height: 64px;
}
.dt-timeline-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  cursor: pointer;
  transition: filter 100ms ease;
}
.dt-timeline-segment:hover { filter: brightness(1.05); }
.dt-segment-core    { background: var(--accent); }
.dt-segment-related { background: var(--accent-light); }
.dt-segment-context { background: rgba(124,92,252,0.4); color: rgba(255,255,255,0.95); }
.dt-segment-offtopic{ background: rgba(0,0,0,0.12); color: var(--text-secondary); }

.dt-timeline-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Playhead — vertical line + dot, sits over the segments */
.dt-playhead {
  position: absolute;
  top: -10px;
  bottom: 22px;
  width: 2px;
  background: rgba(0,0,0,0.85);
  pointer-events: none;
  transform: translateX(-1px);
  transition: left 100ms linear;
  z-index: 2;
}
.dt-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.85);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Current transcript line during playback */
.dt-line.is-current { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dt-line.is-current.dt-line-flat { background: rgba(124,92,252,0.06); }

/* Transcript + Action items row */
.dt-row-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.dt-transcript {
  background: var(--surface-bg);
  border-radius: var(--r-lg);
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.dt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dt-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.dt-transcript-copy {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.dt-transcript-copy:hover { background: rgba(0,0,0,0.04); }

.dt-transcript-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.dt-line {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  position: relative;
}
.dt-line-highlighted { background: var(--accent-ultra); }
.dt-line-flat        { background: transparent; padding-left: 12px; }
.dt-line-flat .dt-line-bar { background: transparent; }
.dt-line-bar {
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
  flex: 0 0 2px;
}
.dt-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dt-line-head { display: flex; align-items: baseline; gap: 8px; }
.dt-time {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  flex: 0 0 auto;
}
.dt-speaker {
  font-size: 13px;
  font-weight: 600;
}
.dt-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Speaker color variants */
.dt-speaker-ivan    { color: #F97316; }
.dt-speaker-maya    { color: #14B8A6; }
.dt-speaker-daniel  { color: #6366F1; }
.dt-speaker-hannah  { color: #EC4899; }
.dt-speaker-loom    { color: #0EA5E9; }
.dt-speaker-unknown { color: #06B6D4; }
.dt-line-bar-ivan    { background: #F97316; }
.dt-line-bar-maya    { background: #14B8A6; }
.dt-line-bar-daniel  { background: #6366F1; }
.dt-line-bar-hannah  { background: #EC4899; }
.dt-line-bar-loom    { background: #0EA5E9; }
.dt-line-bar-unknown { background: #06B6D4; }

/* Action items */
.dt-actions-pane {
  background: var(--surface-bg);
  border-radius: var(--r-lg);
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dt-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 2px;
  font-size: 11px;
}
.dt-toggle button {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.dt-toggle button.is-active {
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.dt-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-action-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.dt-action-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 6px;
  margin-top: 7px;
}

/* Key decisions block — sits inside the right pane below action items */
.dt-key-decisions {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dt-key-decisions-block {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}
.dt-key-decisions-bar {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex: 0 0 2px;
  align-self: stretch;
}
.dt-key-decisions-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

@media (max-width: 1100px) {
  .dt-row-top, .dt-row-bottom { grid-template-columns: 1fr; }
}

/* =========================================================
   Recordings screen
   ========================================================= */

.screen-recordings { flex-direction: column; overflow: hidden; }
.rec-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.rec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
}
.rec-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 2px;
  color: var(--text-primary);
}
.rec-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}
.rec-refresh {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}
.rec-refresh:hover { background: rgba(0,0,0,0.05); }

.rec-list { display: flex; flex-direction: column; }

.rec-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.rec-group:first-child .rec-group-title { padding-top: 4px; }

.rec-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 100ms ease;
}
.rec-row:hover { background: rgba(0,0,0,0.025); }

.rec-row-icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 16px;
}
.rec-row-icon-on  { background: var(--accent-ultra); color: var(--accent); }
.rec-row-icon-off { background: var(--border-light); color: var(--text-tertiary); }
.rec-row-icon-processing { background: rgba(124,92,252,0.15); color: var(--accent); }

.rec-spinner {
  width: 14px; height: 14px;
  border: 1.5px solid rgba(124,92,252,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.rec-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-row-detail {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-row.is-processing .rec-row-detail { color: var(--accent); }

.rec-row-status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin: 0 5px;
  vertical-align: 2px;
  background: var(--text-tertiary);
}

.rec-size {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 50px;
  text-align: right;
}

.rec-chevron {
  color: var(--text-tertiary);
  font-size: 11px;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .chat-list, .fu-sidebar { display: none; }
}

@media (max-width: 900px) {
  .window-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
