/* ==========================================================================
   CASENOTES GOOGLE STITCH UI COMPONENT STYLES
   Pixel-perfect, responsive, code-driven legal-tech UI mockups.
   Supports Dark & Light modes seamlessly via CSS variables.
   All buttons, badges, and cards adhere to strict zero border-radius.
   ========================================================================== */

:root,
html[data-theme="dark"],
html:not([data-theme="light"]) {
  --bg: #0f0f0f;
  --surface: #171717;
  --ink: #f4f2ed;
  --text: #f4f2ed;
  --muted: #a3a39d;
  --soft: #83837a;
  --line: rgba(255,255,255,.12);
  --line-2: rgba(255,255,255,.08);
  --accent: #6ea8ff;
  --accent-soft: #182a4a;
  --green: #4fce8f;
  --green-soft: #123321;
  --amber: #f5b84f;
  --amber-soft: #2e2410;
  --shadow-1: rgba(0,0,0,.35);
  --shadow-2: rgba(0,0,0,.45);
  --shadow-3: rgba(0,0,0,.55);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #FBFBFA;
  --surface: #ffffff;
  --ink: #0B0B0C;
  --text: #111111;
  --muted: #57574f;
  --soft: #6e6e67;
  --line: rgba(11,11,12,.09);
  --line-2: rgba(11,11,12,.06);
  --accent: #2F6DF0;
  --accent-soft: #EAF1FE;
  --green: #2FA96A;
  --green-soft: #E9F6EF;
  --amber: #F5A623;
  --amber-soft: #FEF4E1;
  --shadow-1: rgba(0,0,0,.04);
  --shadow-2: rgba(0,0,0,.06);
  --shadow-3: rgba(0,0,0,.1);
}

.stitch-ui {
  width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px var(--shadow-2);
  margin: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Window Chrome */
.stitch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  user-select: none;
}

.stitch-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.stitch-dot--close { background: #ff5f56; }
.stitch-dot--min { background: #ffbd2e; }
.stitch-dot--max { background: #27c93f; }

.stitch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.stitch-title .sub {
  color: var(--muted);
  font-weight: 400;
}

.stitch-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-body {
  padding: 20px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Badges & Tags */
.stitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 0;
  border: 1px solid transparent;
  line-height: 1.3;
}

.stitch-badge--green {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(47, 169, 106, 0.3);
}

.stitch-badge--amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(245, 166, 35, 0.3);
}

.stitch-badge--blue {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(47, 109, 240, 0.3);
}

.stitch-badge--red {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(229, 72, 77, 0.3);
}

.stitch-badge--neutral {
  color: var(--muted);
  background: var(--bg);
  border-color: var(--line);
}

/* Buttons */
.stitch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.stitch-btn:hover {
  transform: translateY(-1px);
}

.stitch-btn:active {
  transform: translateY(0);
}

.stitch-btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.stitch-btn--primary:hover {
  filter: brightness(1.1);
}

.stitch-btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.stitch-btn--secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.stitch-btn--danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(229, 72, 77, 0.3);
}

.stitch-btn--danger:hover {
  background: var(--red);
  color: #ffffff;
}

.stitch-btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.stitch-btn--ghost:hover {
  color: var(--ink);
  background: var(--bg);
}

/* Cards & Layout Grids */
.stitch-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stitch-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stitch-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.stitch-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stitch-card--highlight {
  border-left: 3px solid var(--accent);
}

.stitch-card--amber {
  border-left: 3px solid var(--amber);
}

.stitch-card--green {
  border-left: 3px solid var(--green);
}

.stitch-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stitch-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.stitch-card__desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.stitch-quote {
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.55;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  margin: 4px 0;
}

/* Data Table */
.stitch-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stitch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.stitch-table th {
  background: var(--table-head-bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}

.stitch-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  vertical-align: middle;
}

.stitch-table tr:last-child td {
  border-bottom: none;
}

.stitch-table tr:hover td {
  background: var(--bg);
}

/* Toggle Switch */
.stitch-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.stitch-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--line);
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 0;
}

.stitch-toggle--active {
  background: var(--green);
}

.stitch-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transition: transform 0.2s ease;
  border-radius: 0;
}

.stitch-toggle--active .stitch-toggle__thumb {
  transform: translateX(16px);
}

/* Waveform Visualizer for Figure 3 */
.stitch-wave-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
}

.stitch-wave-bar {
  width: 3px;
  background: var(--green);
  border-radius: 0;
  animation: stitchWave 1.2s infinite ease-in-out alternate;
}

.stitch-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.stitch-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.stitch-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.stitch-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.stitch-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.stitch-wave-bar:nth-child(7) { animation-delay: 0.6s; }
.stitch-wave-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes stitchWave {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* ==========================================================================
   IN-MEETING 1920x1080 FULL-SCALE VIDEO CONFERENCE CANVAS (FIGURE 3)
   Authentic legal deposition conference stage with 16:9 proportion,
   4 realistic participant feeds, ambient HUD bar, floating privilege toast,
   and enterprise meeting control dock.
   ========================================================================== */

.stitch-meeting-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9.2;
  min-height: 580px;
  background: #090a0c;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .stitch-meeting-16x9 {
    aspect-ratio: auto;
    min-height: 640px;
  }
}

/* Meeting Top Window & Ambient Bar */
.stitch-meeting-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(14, 16, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #a0a5b0;
  z-index: 5;
  gap: 12px;
  flex-wrap: wrap;
}

.stitch-meeting-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-meeting-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-meeting-title {
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 12.5px;
}

.stitch-meeting-case {
  color: #787f8f;
  font-size: 11px;
}

/* Center Ambient HUD Pill (CaseNotes In-Meeting Core Concept) */
.stitch-ambient-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 26, 34, 0.9);
  border: 1px solid rgba(47, 169, 106, 0.35);
  padding: 4px 12px;
  box-shadow: 0 0 16px rgba(47, 169, 106, 0.12);
}

.stitch-ambient-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: stitchPulse 1.8s infinite ease-in-out;
}

@keyframes stitchPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.stitch-ambient-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
}

.stitch-ambient-shortcut {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stitch-meeting-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stitch-timer {
  font-family: var(--mono);
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Meeting Stage: 2x2 Conference Grid */
.stitch-meeting-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  position: relative;
  background: #0d0f12;
}

@media (max-width: 768px) {
  .stitch-meeting-stage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
}

.stitch-meeting-tile {
  position: relative;
  background: #15181e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stitch-meeting-tile--active {
  border: 2px solid var(--green) !important;
  box-shadow: 0 0 20px rgba(47, 169, 106, 0.3) !important;
}

/* Backdrop representation for video tiles */
.stitch-tile-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
  opacity: 0.9;
}

.stitch-tile-backdrop--partner {
  background: radial-gradient(circle at 50% 30%, #2a313d 0%, #12151b 80%);
}

.stitch-tile-backdrop--client {
  background: radial-gradient(circle at 50% 30%, #302626 0%, #151213 80%);
}

.stitch-tile-backdrop--assoc {
  background: radial-gradient(circle at 50% 30%, #1f2a24 0%, #0e1411 80%);
}

.stitch-tile-backdrop--expert {
  background: radial-gradient(circle at 50% 30%, #2b281f 0%, #14130e 80%);
}

/* Portrait figure simulation */
.stitch-tile-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.stitch-tile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.stitch-tile-avatar--partner { background: #1e3a5f; color: #93c5fd; border-color: #60a5fa; }
.stitch-tile-avatar--client { background: #4c1d24; color: #fca5a5; border-color: #f87171; }
.stitch-tile-avatar--assoc { background: #143e2e; color: #86efac; border-color: #4ade80; }
.stitch-tile-avatar--expert { background: #453714; color: #fde047; border-color: #facc15; }

/* Status tags & nameplates inside tiles */
.stitch-tile-top-status {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.stitch-tile-nameplate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.7) 70%, transparent 100%);
  color: #ffffff;
  font-size: 12px;
  gap: 8px;
}

.stitch-nameplate-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.stitch-nameplate-role {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 4px;
}

.stitch-nameplate-mic {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   THE FLOATING PRIVILEGE PAUSE TOAST HUD (PROMINENT & HEROIC)
   ========================================================================== */
.stitch-toast-floating-hud {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 820px;
  background: rgba(18, 14, 8, 0.94);
  border: 1.5px solid var(--amber);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 36px rgba(245, 166, 35, 0.28);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
  .stitch-toast-floating-hud {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

.stitch-toast-hud-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stitch-toast-hud-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stitch-toast-hud-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.stitch-toast-hud-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.stitch-toast-hud-desc {
  color: #e5e3dc;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.stitch-toast-hud-desc strong {
  color: var(--amber);
}

.stitch-toast-hud-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Meeting Bottom Control Dock */
.stitch-meeting-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #0e1014;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
  gap: 12px;
  flex-wrap: wrap;
}

.stitch-bottombar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 11.5px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
}

.stitch-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.stitch-ctrl-btn--danger {
  background: rgba(229, 72, 77, 0.2);
  border-color: rgba(229, 72, 77, 0.4);
  color: #ff8588;
}

.stitch-ctrl-btn--danger:hover {
  background: var(--red);
  color: #ffffff;
}

/* Post-Meeting Summary Figure 4 */
.stitch-summary-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .stitch-summary-split {
    grid-template-columns: 1fr;
  }
}

.stitch-transcript-bubble {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0;
  margin-bottom: 10px;
}

.stitch-transcript-bubble--priv {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

/* Confidence Meter for Figure 5 */
.stitch-meter-track {
  width: 100%;
  height: 8px;
  background: var(--line);
  overflow: hidden;
  border-radius: 0;
  margin: 6px 0;
}

.stitch-meter-fill {
  height: 100%;
  background: var(--green);
  border-radius: 0;
}

/* KPI Stat Cards for Figure 6 */
.stitch-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .stitch-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stitch-kpi-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0;
}

.stitch-kpi-card__num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stitch-kpi-card__num--accent { color: var(--accent); }
.stitch-kpi-card__num--amber { color: var(--amber); }
.stitch-kpi-card__num--green { color: var(--green); }

.stitch-kpi-card__label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Gantt Timeline for Figure 6 */
.stitch-gantt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}

.stitch-gantt-bar {
  height: 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}

.stitch-gantt-bar--amber {
  background: var(--amber-soft);
  border-left-color: var(--amber);
  color: var(--amber);
}

.stitch-gantt-bar--green {
  background: var(--green-soft);
  border-left-color: var(--green);
  color: var(--green);
}

/* Role Grid for Figure 7 */
.stitch-role-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 0;
}

.stitch-role-card--partner { border-top: 3px solid var(--accent); }
.stitch-role-card--assoc { border-top: 3px solid var(--green); }
.stitch-role-card--para { border-top: 3px solid var(--amber); }
.stitch-role-card--client { border-top: 3px solid var(--purple); }

.stitch-role-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 8px;
}

.stitch-role-feature:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Mobile Viewports for Figure 8 */
.stitch-phone-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .stitch-phone-wrapper {
    grid-template-columns: 1fr;
  }
}

.stitch-phone {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 14px 12px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.stitch-phone__notch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
}

.stitch-phone__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Token Specimens for Figure 8 */
.stitch-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stitch-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 11px;
  font-family: var(--mono);
}

.stitch-swatch__color {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
}

/* ==========================================================================
   GROUNDED ZERO-HALLUCINATION AI INTELLIGENCE COMPONENT
   Deterministic, citation-linked legal AI architecture with verbatim proof.
   ========================================================================== */

.stitch-grounded-qa {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stitch-ai-query-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink);
  flex-wrap: wrap;
}

.stitch-ai-query-bar:focus-within {
  border-color: var(--accent);
}

.stitch-ai-query-input {
  flex: 1;
  min-width: 260px;
  font-family: var(--font-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-ai-query-input strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
}

.stitch-grounded-answer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.stitch-grounded-answer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}

.stitch-grounded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px;
}

.stitch-grounded-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.stitch-grounded-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.stitch-cite-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(47, 169, 106, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  margin: 0 3px;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.stitch-cite-tag:hover {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-1px);
}

.stitch-cite-tag--amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 166, 35, 0.35);
}

.stitch-cite-tag--amber:hover {
  background: var(--amber);
  color: #ffffff;
}

/* Verbatim Source Inspector Drawer */
.stitch-proof-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .stitch-proof-split {
    grid-template-columns: 1fr;
  }
}

.stitch-proof-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stitch-proof-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
}

.stitch-proof-panel__quote {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  margin: 0;
}

.stitch-guardrail-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px dashed var(--line);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}

.stitch-guardrail-banner strong {
  color: var(--ink);
}

/* ==========================================================================
   HIGH-FIDELITY MOBILE COMPANION SCREENS (FIGURE 8)
   Realistic mobile viewport frames showing meeting attendance, meeting summary,
   and grounded AI search.
   ========================================================================== */

.stitch-phone--active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--shadow-1);
}

.stitch-phone-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}

.stitch-phone-meeting-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stitch-phone-speaker-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--green-soft);
  border: 1px solid rgba(47, 169, 106, 0.3);
  font-size: 11px;
}

.stitch-phone-record-tap {
  background: var(--amber-soft);
  border: 1.5px solid var(--amber);
  color: var(--amber);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  margin-top: auto;
}

.stitch-phone-record-tap:hover {
  background: var(--amber);
  color: #ffffff;
}

.stitch-phone-summary-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 5px 8px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
}

.stitch-phone-chat-bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Light Theme High-Contrast Overrides */
[data-theme="light"] .stitch-badge--green {
  color: #186337;
  background: #e6f6ee;
  border-color: rgba(24, 99, 55, 0.3);
}

[data-theme="light"] .stitch-badge--amber {
  color: #925400;
  background: #fdf3e5;
  border-color: rgba(146, 84, 0, 0.3);
}

[data-theme="light"] .stitch-badge--blue {
  color: #184db8;
  background: #ebf2fe;
  border-color: rgba(24, 77, 184, 0.3);
}

[data-theme="light"] .stitch-cite-tag {
  color: #186337;
  background: #e6f6ee;
  border-color: rgba(24, 99, 55, 0.4);
}

[data-theme="light"] .stitch-cite-tag:hover {
  color: #ffffff;
  background: #186337;
}

[data-theme="light"] .stitch-phone-record-tap {
  color: #925400;
  background: rgba(245, 166, 35, 0.12);
  border-color: #d98200;
}

[data-theme="light"] .stitch-phone-record-tap:hover {
  background: #d98200;
  color: #ffffff;
}

/* ==========================================================================
   INTERACTIVE LEGAL AI ASSISTANT (LUA-LEGAL BENCHMARK ENGINE)
   Multi-mode interactive workbench: Q&A, Client Follow-up, UTBMS, Spoliation.
   ========================================================================== */

.stitch-ai-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 4px 12px 0 12px;
  overflow-x: auto;
  user-select: none;
}

.stitch-ai-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  border-radius: 0;
}

.stitch-ai-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.stitch-ai-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
  border-left-color: var(--line);
  border-right-color: var(--line);
  border-top-color: var(--line);
}

.stitch-prompt-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.stitch-prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.stitch-prompt-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}

.stitch-prompt-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Document Drafter View */
.stitch-letter-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.stitch-letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.stitch-redaction-pill {
  display: inline-block;
  background: #1c1917;
  color: #f59e0b;
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid #44403c;
  border-radius: 0;
  letter-spacing: 0.02em;
}

[data-theme="light"] .stitch-redaction-pill {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Spoliation & Record Decision Cards */
.stitch-spoliation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .stitch-spoliation-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-spoliation-card {
  border: 1.5px solid var(--line);
  background: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
}

.stitch-spoliation-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--surface);
}

.stitch-spoliation-card--active {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 4px 16px var(--shadow-1);
}

.stitch-ai-pane {
  display: none;
}

.stitch-ai-pane.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: stitchFadeIn 0.22s ease-out;
}

@keyframes stitchFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* UTBMS Billing Table */
.stitch-utbms-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stitch-utbms-table th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stitch-utbms-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  vertical-align: top;
}

.stitch-utbms-table tr:last-child td {
  border-bottom: none;
}

.stitch-utbms-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .stitch-utbms-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* Action button in stitch cards */
.stitch-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #0b0c0e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.stitch-btn-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.stitch-btn-action--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stitch-btn-action--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}

/* Audio Player Mock */
.stitch-audio-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.stitch-waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  flex: 1;
}

.stitch-waveform-bar {
  width: 3px;
  background: var(--line);
  height: 30%;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.stitch-audio-bar.playing .stitch-waveform-bar {
  background: var(--accent);
  animation: stitchWave 0.8s infinite ease-in-out alternate;
}

.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(3) { animation-delay: 0.25s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(4) { animation-delay: 0.4s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(5) { animation-delay: 0.15s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(7) { animation-delay: 0.05s; }
.stitch-audio-bar.playing .stitch-waveform-bar:nth-child(8) { animation-delay: 0.35s; }

@keyframes stitchWave {
  from { height: 20%; }
  to { height: 100%; }
}

/* ==========================================================================
   AUTHENTIC CASENOTES SAAS DESIGN SYSTEM (EXTRACTED FROM COVER UI)
   Exact replica of the original CaseNotes interface shown on the hero cover:
   - 9-dot grid + CaseNotes logo
   - Global search bar with ⌘+F shortcut
   - Left vertical navigation rail (Dashboard, Meetings, Templates, Settings)
   - 4 Metric cards (09 Meetings, 20.9h Recorded, 129 Tasks, 42 Decisions)
   - Timeline meeting list with Zoom/Meet/Teams badges and Live Transcript CTAs
   - Right panel: CaseNotes Bot invite input & Upcoming Meetings with Bot Joining toggles
   - Clean, purposeful, zero-radius legal software styling (Lua Legal benchmark)
   ========================================================================== */

.cn-app-shell {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px var(--shadow-2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-body);
  color: var(--ink);
}

/* Top App Header */
.cn-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.cn-top-bar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cn-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.cn-dots-grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2.5px;
}

.cn-dot-grid-cell {
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.cn-logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}

.cn-logo-text .cn-blue {
  color: #2563eb;
}

.cn-logo-text .cn-navy {
  color: var(--ink);
}

.cn-logo-sub {
  font-size: 7.5px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-left: 3px;
  text-transform: uppercase;
}

/* Centered Search Bar */
.cn-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
}

.cn-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  width: 100%;
}

.cn-search-shortcut {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

/* Right Top Bar Actions */
.cn-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-action-icon-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
}

.cn-action-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cn-ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.cn-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.cn-user-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

/* App Main Layout: Rail + Canvas + Aside */
.cn-workspace-layout {
  display: grid;
  grid-template-columns: 70px 1fr 340px;
  min-height: 580px;
  background: var(--bg);
}

@media (max-width: 1050px) {
  .cn-workspace-layout {
    grid-template-columns: 70px 1fr;
  }
  .cn-aside-panel {
    display: none;
  }
}

@media (max-width: 680px) {
  .cn-workspace-layout {
    grid-template-columns: 1fr;
  }
  .cn-nav-rail {
    display: none;
  }
}

/* Left Nav Rail */
.cn-nav-rail {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.cn-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.cn-nav-item:hover {
  color: var(--ink);
  background: var(--bg);
}

.cn-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* Center Workspace Area */
.cn-canvas {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  background: var(--bg);
}

/* Greeting Block */
.cn-greeting-block h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.cn-greeting-block p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 4 Metrics Cards Grid */
.cn-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.cn-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.cn-metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cn-metric-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cn-metric-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-metric-icon-box--blue { background: #eff8ff; color: #2563eb; }
.cn-metric-icon-box--green { background: #ecfdf3; color: #12b76a; }
.cn-metric-icon-box--orange { background: #fff4ed; color: #fb6514; }
.cn-metric-icon-box--amber { background: #fef0c7; color: #f79009; }

[data-theme="dark"] .cn-metric-icon-box--blue { background: #172554; color: #93c5fd; }
[data-theme="dark"] .cn-metric-icon-box--green { background: #052e16; color: #86efac; }
[data-theme="dark"] .cn-metric-icon-box--orange { background: #431407; color: #fdba74; }
[data-theme="dark"] .cn-metric-icon-box--amber { background: #451a03; color: #fde047; }

.cn-metric-meta {
  display: flex;
  flex-direction: column;
}

.cn-metric-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.cn-metric-sub {
  font-size: 10.5px;
  color: var(--muted);
}

.cn-metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-top: 4px;
}

/* Meetings Timeline View */
.cn-meetings-section {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cn-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
}

.cn-section-title-group h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.cn-section-title-group span {
  font-size: 11.5px;
  color: var(--muted);
}

.cn-date-header {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cn-date-header::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed var(--line);
}

/* Meeting Row Item */
.cn-meeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}

.cn-meeting-row:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.cn-meeting-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-meeting-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-meeting-icon--green { background: var(--green-soft); color: var(--green); }
.cn-meeting-icon--blue { background: var(--accent-soft); color: var(--accent); }
.cn-meeting-icon--red { background: var(--red-soft); color: var(--red); }

.cn-meeting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cn-meeting-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cn-meeting-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.cn-meeting-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cn-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cn-pill--live {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid rgba(2, 122, 72, 0.3);
}

[data-theme="dark"] .cn-pill--live {
  background: rgba(18, 183, 106, 0.15);
  color: #6ce9a6;
  border-color: rgba(18, 183, 106, 0.35);
}

.cn-pill--completed {
  background: #fef0c7;
  color: #b54708;
  border: 1px solid rgba(247, 144, 9, 0.3);
}

[data-theme="dark"] .cn-pill--completed {
  background: rgba(247, 144, 9, 0.15);
  color: #fde047;
  border-color: rgba(247, 144, 9, 0.35);
}

.cn-pill--zoom {
  background: #eff8ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .cn-pill--zoom {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.35);
}

.cn-pill--participants {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Meeting Action Buttons */
.cn-meeting-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cn-btn-live-transcript {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
}

.cn-btn-live-transcript:hover {
  background: #2563eb;
  color: #ffffff;
}

.cn-btn-join {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
}

.cn-btn-join:hover {
  background: #1d4ed8;
}

/* Right Aside Panel */
.cn-aside-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.cn-aside-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.cn-aside-tab {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cn-aside-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* CaseNotes Bot Invite Box */
.cn-bot-box {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cn-bot-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cn-bot-sub {
  font-size: 11px;
  color: var(--muted);
}

.cn-bot-input {
  width: 100%;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  box-sizing: border-box;
}

.cn-btn-invite {
  width: 100%;
  padding: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 0;
  text-align: center;
  transition: all 0.15s ease;
}

.cn-btn-invite:hover {
  background: #1d4ed8;
}

/* Upcoming Meetings in Aside */
.cn-upcoming-item {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.cn-upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

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

.cn-btn-tag-action {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cn-btn-tag-action--green {
  border-color: rgba(18, 183, 106, 0.4);
  color: var(--green);
}

.cn-btn-tag-action--blue {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--accent);
}

/* ==========================================================================
   CASENOTES IN-MEETING LIVE NOTETAKER VIEW (LUA LEGAL BENCHMARK)
   ========================================================================== */

.cn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.cn-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.cn-breadcrumb a:hover {
  color: var(--ink);
}

.cn-breadcrumb-sep {
  color: var(--line-3, #ccc);
}

.cn-breadcrumb-current {
  font-weight: 700;
  color: var(--ink);
}

.cn-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.cn-live-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-live-badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

[data-theme="dark"] .cn-live-badge-rec {
  background: #450a0a;
  border-color: #ef4444;
  color: #fca5a5;
}

.cn-rec-dot {
  width: 7px;
  height: 7px;
  background: #dc2626;
  border-radius: 50%;
  animation: cnPulse 1.2s infinite ease-in-out;
}

@keyframes cnPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.cn-live-timer {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cn-legal-ctrls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cn-btn-off-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fffbeb;
  border: 1.5px solid #d97706;
  color: #b45309;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
}

[data-theme="dark"] .cn-btn-off-record {
  background: #451a03;
  border-color: #f59e0b;
  color: #fde68a;
}

.cn-btn-off-record:hover {
  background: #d97706;
  color: #ffffff;
}

.cn-btn-strike {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
}

.cn-btn-strike:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.cn-live-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 480px;
  background: var(--bg);
}

@media (max-width: 950px) {
  .cn-live-grid {
    grid-template-columns: 1fr;
  }
}

.cn-transcript-feed {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  background: var(--surface);
}

.cn-transcript-row {
  display: flex;
  gap: 14px;
}

.cn-speaker-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.cn-speaker-avatar--partner { background: #2563eb; color: #ffffff; }
.cn-speaker-avatar--expert { background: #d97706; color: #ffffff; }
.cn-speaker-avatar--assoc { background: #475467; color: #ffffff; }

.cn-transcript-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cn-speaker-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cn-speaker-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.cn-speaker-role {
  font-size: 11px;
  color: var(--muted);
}

.cn-speaker-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
}

.cn-transcript-bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.cn-transcript-bubble--privileged {
  border-left: 3px solid #d97706;
  background: #fffbeb;
}

[data-theme="dark"] .cn-transcript-bubble--privileged {
  background: #2a1b07;
  border-left-color: #f59e0b;
}

.cn-live-side-intel {
  padding: 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.cn-intel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cn-intel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   CASENOTES POST-MEETING DETAIL VIEW
   ========================================================================== */

.cn-detail-header {
  padding: 18px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.cn-detail-title-group h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.cn-detail-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cn-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cn-tabs-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  gap: 4px;
  overflow-x: auto;
}

.cn-tab-item {
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cn-tab-item:hover {
  color: var(--ink);
}

.cn-tab-item.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.cn-detail-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: var(--bg);
}

@media (max-width: 900px) {
  .cn-detail-body {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CASENOTES UNDER NDA LOCK CARD — MINIMALIST SPECIFICATION
   Ultra-clean, minimal presentation matching user reference image:
   - Matte dark surface with crisp outer border
   - Centered square icon box with border and griddy-icons_lock-filled
   - Bold "UNDER NDA" with "NDA" muted in gray
   - Clean, elegant single-line subtext
   ========================================================================== */
.cn-nda-lock-card {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 1920 / 953;
  min-height: clamp(380px, 48vw, 564px);
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.cn-nda-lock-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #121212;
}

[data-theme="light"] .cn-nda-lock-card {
  background: #0d0d0d;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cn-nda-icon-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cn-nda-lock-card:hover .cn-nda-icon-box {
  transform: translateY(-2px);
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.5);
}

.cn-nda-lock-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.cn-nda-title {
  font-family: var(--font-display, 'Inter', -apple-system, sans-serif);
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #FFFFFF !important;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.cn-nda-title span {
  color: #a1a19b !important;
  font-weight: 800;
}

.cn-nda-desc {
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.5;
  color: #a1a19b !important;
  margin: 0;
  max-width: 560px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

@media (max-width: 640px) {
  .cn-nda-lock-card {
    min-height: 300px;
    padding: 36px 16px;
    aspect-ratio: auto;
  }
}

/* =======================================================================   CaseNotes Courthouse Mobile Companion (Google Stitch High-Fidelity Mockup)
   3 x High-Fidelity Mobile Viewports (430x928px Proportions)
   ========================================================================== */

.mobile-companion-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: radial-gradient(circle at 50% 0%, #171a26 0%, #0c0d14 70%, #07080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 36px 24px;
  gap: 22px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

[data-theme="light"] .mobile-companion-showcase {
  background: radial-gradient(circle at 50% 0%, #1e2230 0%, #10121a 70%, #0a0b10 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.mobile-phone-frame {
  position: relative;
  width: 100%;
  max-width: 324px;
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  background: #0d0f17;
  border: 7px solid #202434;
  border-radius: 46px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  box-sizing: border-box;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.mobile-phone-frame:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 24px rgba(59, 130, 246, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.mobile-phone-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.mobile-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 38px;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-phone-frame:hover .mobile-phone-img {
  transform: scale(1.02);
}

/* Dynamic Island & Hardware Status Bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #f4f2ed;
  position: relative;
  z-index: 10;
}

.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 23px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 12;
}

.phone-island__camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111420;
  border: 1px solid #1f2333;
}

.phone-island__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.phone-island__dot--orange {
  background: #ff9f0a;
  box-shadow: 0 0 8px #ff9f0a;
  animation: islandPulse 1.8s infinite;
}
.phone-island__dot--green {
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}
.phone-island__dot--blue {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

@keyframes islandPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* CaseNotes App Header with Brand Logo */
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  gap: 8px;
}

.phone-brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-dots-grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 1.5px;
}

.phone-dots-grid span {
  width: 3px;
  height: 3px;
  background: #3b82f6;
  border-radius: 0.5px;
}

.phone-brand-name {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

.phone-brand-name .phone-brand-accent {
  color: #3b82f6;
}

.phone-brand-tag {
  font-size: 7.5px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header Status Chips */
.phone-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.phone-status-chip--live {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.phone-status-chip--live .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.phone-status-chip--sync {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.phone-status-chip--shield {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

/* Screen Layout */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 13px 8px;
  overflow: hidden;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.4;
}

.phone-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.phone-nav-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.phone-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 7px;
  box-sizing: border-box;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.phone-badge--red { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.phone-badge--green { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.phone-badge--amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.phone-badge--blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Audio Waveform Meter */
.phone-waveform-wrap {
  margin-top: 5px;
}
.phone-waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  gap: 2.5px;
  padding: 0 2px;
}
.phone-waveform__bar {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  border-radius: 2px;
  min-height: 4px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.25);
}

/* Chat & Diarization Feed */
.phone-diarization {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 7px;
  flex: 1;
  overflow: hidden;
}

.phone-bubble {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.35;
}

.phone-bubble__speaker {
  font-weight: 700;
  font-size: 9.5px;
  color: #60a5fa;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-bubble__time {
  font-size: 8.5px;
  color: #9ca3af;
  font-weight: 400;
  font-family: var(--mono);
}

/* Decision pill */
.phone-bubble--decision {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

/* 1-Tap Privilege Button (Thumb-Reach Ergonomics) */
.phone-privilege-btn {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  margin-top: auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone-privilege-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.6);
}
.phone-privilege-btn__main {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-privilege-btn__sub {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Action button */
.phone-action-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 11px;
  padding: 9.5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease;
}
.phone-action-btn:hover {
  transform: translateY(-1px);
}

/* Safe Area Home Indicator */
.phone-home-bar {
  width: 108px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  margin: 5px auto 5px;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .mobile-companion-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px;
  }
  .mobile-phone-frame {
    max-width: 330px;
  }
}
