/* ==========================================================================
   BARYON — Minimalist Monochrome (Black & White) Architectural Theme
   Ultra-Clean, High-Contrast Dieter Rams / Apple SF Aesthetic
   All Rectangles Generously Rounded, Sleek Vector Iconography
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #09090b;
  --bg-elevated: #141417;
  --bg-card: #0d0d0f;
  --bg-card-subtle: #121215;
  --border-color: rgba(255, 255, 255, 0.11);
  --border-focus: rgba(255, 255, 255, 0.42);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #636369;

  --accent-white: #ffffff;
  --accent-black: #000000;

  --safe-top: env(safe-area-inset-top, 0px);
  --effective-safe-top: var(--safe-top);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --app-height: 100lvh;
  --app-offset-top: 0px;
  --composer-bottom-pad: 8px;
}

@media all and (display-mode: standalone) and (orientation: portrait) {
  :root {
    --effective-safe-top: calc(max(env(safe-area-inset-top, 0px), 59px) + 16px);
    --composer-bottom-pad: 14px;
  }
}

html.ios-standalone:not(.ios-landscape) {
  --effective-safe-top: calc(max(env(safe-area-inset-top, 0px), 59px) + 16px);
  --composer-bottom-pad: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: var(--app-height, 100lvh);
  min-height: var(--app-height, 100lvh);
  margin: 0;
  padding: 0;
  background: #000000;
  -webkit-text-size-adjust: 100%;
}

html.ios-standalone {
  min-height: max(var(--app-height, 100lvh), calc(100% + env(safe-area-inset-top, 0px)));
}

body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  min-height: var(--app-height, 100lvh);
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 350;
  line-height: 1.55;
  letter-spacing: -0.012em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.app-shell {
  position: fixed;
  top: var(--app-offset-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ==========================================================================
   Vector Icon System
   ========================================================================== */
.svg-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-icon-sm {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-icon-xs {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-giant-mic {
  width: 64px;
  height: 64px;
  display: inline-block;
  vertical-align: middle;
}

.modal-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Side Drawers (Generously Rounded Corners)
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  height: var(--app-height, 100lvh);
  width: 310px;
  max-width: 86vw;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  padding-top: var(--effective-safe-top);
  padding-bottom: max(12px, var(--safe-bottom));
  z-index: 60;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-left {
  left: 0;
  border-right: 1px solid var(--border-color);
  border-radius: 0 28px 28px 0;
  transform: translateX(-105%);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.85);
}

.sidebar-left.open {
  transform: translateX(0);
}

.sidebar-right {
  right: 0;
  width: 340px;
  border-left: 1px solid var(--border-color);
  border-radius: 28px 0 0 28px;
  transform: translateX(105%);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.85);
}

.sidebar-right.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
}

.brand-title {
  font-weight: 550;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-actions {
  padding: 10px 12px 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar-new-btn {
  padding: 9px 14px;
  font-size: 13px;
}

.sidebar-quick-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.sidebar-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-mini-btn:hover,
.sidebar-mini-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 6px 16px 4px;
  flex-shrink: 0;
}

.session-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.session-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.session-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.session-item-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 195px;
}

.session-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.settings-advanced-details {
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
}

.settings-advanced-summary {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.net-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 12px 14px;
  font-size: 12px;
}

.net-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.status-dot.offline {
  background: #555555;
}

.net-urls {
  color: var(--text-secondary);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.45;
  word-break: break-all;
}

/* ==========================================================================
   Main Center Area
   ========================================================================== */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

/* Compact Sleek Top Bar (Flushes with physical top edge behind Dynamic Island) */
.top-bar {
  box-sizing: border-box;
  padding-top: var(--effective-safe-top);
  height: calc(50px + var(--effective-safe-top));
  min-height: calc(50px + var(--effective-safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(16px, var(--safe-left));
  padding-right: max(16px, var(--safe-right));
  padding-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20;
  flex-shrink: 0;
}

html.ios-standalone .top-bar {
  background: #000000;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  flex: 1;
}

#btn-open-left {
  flex-shrink: 0 !important;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.session-heading {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  color: var(--text-primary);
}

.status-Subtext {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.badge-btn {
  position: relative;
}

.mini-pill {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: 600;
  padding: 0 5px;
  border-radius: 9999px;
}

/* Reconnect Strip */
.reconnect-banner {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 7px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Conversation Stream & Messages
   ========================================================================== */
.stream-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 28px;
  -webkit-overflow-scrolling: touch;
}

.empty-state {
  max-width: 440px;
  margin: 50px auto;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
}

.empty-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 550;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jobs-feed {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Job Cards (Architectural Rounded Rectangles)
   ========================================================================== */
.job-card {
  background: linear-gradient(180deg, #121215 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job-card.running {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 255, 255, 0.06);
}

.job-prompt-bar {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 26px 26px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.job-live-progress {
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-live-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.job-live-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  overflow: hidden;
}

.job-live-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.25s ease-out;
}

.job-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding-top: 2px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-collapse-icon {
  width: 14px;
  height: 14px;
}

.job-card.collapsed .job-collapse-toggle {
  transform: rotate(-90deg);
}

.job-card.collapsed .job-prompt-bar {
  border-radius: 24px;
  border-bottom: none;
}

.job-card.collapsed .job-output-body,
.job-card.collapsed .thought-details,
.job-card.collapsed .stepwise-tracker,
.job-card.collapsed .job-footer-bar {
  display: none !important;
}

.btn-star-job {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: transform 0.15s, color 0.15s;
}

.btn-star-job .star-svg {
  width: 16px;
  height: 16px;
}

.btn-star-job.starred {
  color: #ffffff;
}

.btn-star-job:active {
  transform: scale(1.25);
}

.job-prompt-text {
  font-weight: 380;
  font-size: 13px;
  line-height: 1.38;
  color: #d4d4d8;
  word-break: break-word;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  cursor: pointer;
  padding-top: 1px;
  transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.job-prompt-text:hover {
  color: #ffffff;
}

.job-prompt-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  white-space: pre-wrap;
  color: #ffffff;
}

.badge {
  font-size: 10px;
  font-weight: 450;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
  margin-top: 1px;
}

.badge-running {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.stepwise-tracker {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.step-pill.in_progress {
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.35);
}

.step-pill.completed {
  color: #ffffff;
}

.thought-details {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.thought-summary-bar {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 450;
  color: var(--text-secondary);
  cursor: pointer;
}

.thought-body {
  padding: 8px 16px 14px;
  font-size: 12.5px;
  font-weight: 350;
  color: var(--text-secondary);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.job-output-body {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 350;
  line-height: 1.62;
  color: #f4f4f5;
  overflow-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.job-output-body p {
  font-weight: 350;
  margin-bottom: 12px;
}

.job-output-body strong, .job-output-body b {
  font-weight: 550;
  color: #ffffff;
}

.job-output-body h1, .job-output-body h2, .job-output-body h3, .job-output-body h4 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.job-output-body h1 { font-size: 1.35em; }
.job-output-body h2 { font-size: 1.2em; }
.job-output-body h3 { font-size: 1.1em; }
.job-output-body h4 { font-size: 1.0em; }

/* Collapsible Section Headings */
.collapsible-heading {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  margin: 16px -6px 8px !important;
  border-radius: 8px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.collapsible-heading:hover {
  background: rgba(255, 255, 255, 0.05);
}

.collapsible-heading .heading-title {
  flex: 1;
}

.heading-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-heading:hover .heading-chevron {
  opacity: 1;
}

.collapsible-heading.heading-collapsed .heading-chevron {
  transform: rotate(-90deg);
}

.section-hidden {
  display: none !important;
}

/* Collapsible Paragraph Blocks */
.para-block {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 2px 4px 2px 2px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.para-block:hover {
  background: rgba(255, 255, 255, 0.02);
}

.para-gutter {
  flex-shrink: 0;
  width: 20px;
  padding-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fold-para {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.para-block:hover .btn-fold-para,
.para-block.collapsed .btn-fold-para {
  opacity: 0.95;
}

.btn-fold-para:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.fold-chevron {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.para-block.collapsed .fold-chevron {
  transform: rotate(-90deg);
}

.para-body {
  flex: 1;
  min-width: 0;
}

.para-full {
  margin-bottom: 0 !important;
}

.para-preview {
  display: none;
  cursor: pointer;
  padding: 2px 8px 4px 0;
  border-radius: 8px;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}

.para-preview:hover {
  background: rgba(255, 255, 255, 0.035);
}

.para-block.collapsed .para-full {
  display: none !important;
}

.para-block.collapsed .para-preview {
  display: inline-block;
}

.para-preview-text {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 350;
}

.para-expand-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 450;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.12s ease;
}

.para-expand-pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Audio Narration Active Paragraph Highlight */
.para-block.audio-active {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid #ffffff;
  padding-left: 8px;
}

/* Outline Mode Button Active State */
.btn-toggle-outline.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.job-output-body p { margin-bottom: 12px; }
.job-output-body ul, .job-output-body ol { margin: 8px 0 14px 22px; }

.job-output-body pre {
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 12px 0;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
}

.job-output-body code {
  font-family: 'SF Mono', ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.job-output-body pre code {
  background: none;
  padding: 0;
}

.job-footer-bar {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 26px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
}

.job-usage-info {
  font-size: 11px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.job-usage-info:empty {
  display: none;
}

/* ==========================================================================
   Clickable Sentences & Selection Toolbar
   ========================================================================== */
.job-sentence {
  border-radius: 4px;
  padding: 1px 2px;
  cursor: pointer;
  transition: background 0.12s;
}

.job-sentence:hover {
  background: rgba(255, 255, 255, 0.12);
  outline: 1px dashed rgba(255, 255, 255, 0.35);
}

.job-sentence.active-sentence {
  background: rgba(255, 255, 255, 0.22) !important;
  outline: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 5px;
}

.selection-toolbar {
  position: absolute;
  bottom: var(--floating-dock-bottom, calc(var(--composer-bottom-pad, 14px) + 68px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 7px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
  max-width: 92vw;
  overflow-x: auto;
  white-space: nowrap;
  touch-action: manipulation;
  transition: bottom 0.14s ease-out;
}

.sel-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 450;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, transform 0.1s;
}

.sel-btn:active {
  transform: scale(0.96);
}

.sel-btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   Floating Jump Navigation Dock (Ultra-Compact Non-Intrusive Glass Capsule)
   ========================================================================== */
.scroll-nav-dock {
  position: absolute;
  right: max(12px, var(--safe-right));
  bottom: var(--floating-dock-bottom, calc(var(--composer-bottom-pad, 14px) + 68px));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(16, 16, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 45;
  opacity: 0.88;
  transition: opacity 0.2s, bottom 0.14s ease-out;
}

body.audio-bar-visible .scroll-nav-dock,
body:has(#audio-player-bar:not(.hidden)) .scroll-nav-dock {
  bottom: var(--floating-dock-bottom, calc(var(--composer-bottom-pad, 14px) + 198px));
}

.scroll-nav-dock:hover {
  opacity: 1;
}

body.composer-expanded .scroll-nav-dock,
body.keyboard-open .scroll-nav-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px);
}

.nav-dock-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 9999px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, color 0.15s;
}

.nav-dock-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-dock-btn:active {
  transform: scale(0.92);
}

.nav-dock-bottom {
  width: auto;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Load Older Wrap */
.load-older-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
  border-radius: 9999px;
}

/* ==========================================================================
   Bottom Composer Bar (Floating Glassmorphic Pill Capsule)
   ========================================================================== */
.composer-section {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 30%, #000000 100%);
  border-top: none;
  padding-top: 6px;
  padding-left: max(12px, var(--safe-left));
  padding-right: max(12px, var(--safe-right));
  padding-bottom: var(--composer-bottom-pad, 14px);
  z-index: 20;
  flex-shrink: 0;
}

.prompt-slots-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 20, 23, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 5px 6px 5px 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease, border-radius 0.18s ease;
}

.composer-capsule-header {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 2px;
  order: -2;
}

.composer-capsule-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.composer-capsule-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.composer-parallel-pill,
.composer-collapse-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.composer-parallel-pill:active,
.composer-collapse-pill:active {
  transform: scale(0.95);
}

.prompt-textarea {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-radius: 0;
  padding: 7px 8px;
  font-family: inherit;
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom and viewport scroll jump */
  font-weight: 380;
  line-height: 1.4;
  height: 36px;
  max-height: 60px;
  resize: none;
  outline: none;
  overflow-y: auto;
  transition: min-height 0.18s ease, padding 0.18s ease, background 0.18s ease;
}

/* Expanded Capsule Mode when Text Box is Clicked / Focused or Has Text */
.prompt-slot.is-expanded,
.prompt-slot.parallel-slot {
  flex-wrap: wrap;
  border-radius: 22px;
  padding: 8px 9px 7px;
  gap: 6px;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.prompt-slot.is-expanded .composer-capsule-header,
.prompt-slot.parallel-slot .composer-capsule-header {
  display: flex;
}

.prompt-slot.is-expanded .prompt-textarea,
.prompt-slot.parallel-slot .prompt-textarea {
  order: -1;
  flex: 1 1 100%;
  width: 100%;
  min-height: 74px;
  max-height: 150px;
  height: auto;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.44;
}

.prompt-slot.is-expanded #btn-voice-input {
  margin-left: auto;
}

.composer-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.composer-icon-btn:active {
  transform: scale(0.94);
}

.composer-icon-btn.recording {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.composer-send-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.composer-send-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Seekable Audio Player Bar (Large Touch Scrubber + Paragraph & 1-Min Snap)
   ========================================================================== */
.audio-player-bar {
  background: rgba(14, 14, 17, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 14px 8px;
  z-index: 30;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.audio-player-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audio-scrubber-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.scrubber-track-container {
  position: relative;
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
}

.scrubber-ticks-layer {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.scrubber-tick {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
}

.scrubber-tick-para {
  width: 3px;
  height: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.scrubber-tick-min {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.scrubber-tick-min-label {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.audio-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  outline: none;
  margin: 0;
  position: relative;
  z-index: 3;
  cursor: pointer;
  touch-action: none;
}

.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 0 2px #ffffff;
  cursor: pointer;
  transition: transform 0.1s;
}

.audio-scrubber:active::-webkit-slider-thumb {
  transform: scale(1.18);
}

.audio-scrubber-xl {
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.audio-scrubber-xl::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  border: 4px solid #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 0 2.5px #ffffff;
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.audio-transport-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.audio-right-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
}

@media (max-width: 600px) {
  .audio-controls-row {
    justify-content: center;
  }
  .audio-right-group {
    width: 100%;
    justify-content: space-between;
    padding-top: 2px;
  }
}

.audio-para-pill {
  font-size: 11px;
  font-weight: 500;
  font-family: 'SF Mono', ui-monospace, monospace;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.audio-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.audio-skip-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.18);
}

.audio-play-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.time-label {
  font-size: 12px;
  font-weight: 500;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  min-width: 38px;
  text-align: center;
}

/* ==========================================================================
   Full-Screen Hands-Free Car / Driving Mode Overlay
   ========================================================================== */
.drive-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  background: #000000;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--effective-safe-top) + 8px) 16px calc(var(--composer-bottom-pad, 8px) + 4px);
  overflow: hidden;
}

.drive-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drive-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drive-title-icon {
  width: 20px;
  height: 20px;
}

.drive-title {
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.drive-center {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 6px 0;
}

.drive-status-large {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.35;
  flex-shrink: 0;
}

/* Car Mode Live Progress & ETA Telemetry Card */
.drive-progress-panel {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.96) 0%, rgba(14, 14, 17, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drive-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.drive-timer-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.drive-timer-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.drive-timer-digits {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 550;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.drive-timer-eta-val {
  color: #e4e4e7;
}

.drive-timer-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.drive-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.drive-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  transition: width 0.2s ease-out;
}

.drive-stage-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.drive-stage-pill {
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s;
}

.drive-stage-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.drive-stage-pill.done {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.drive-giant-btn {
  width: 100%;
  max-width: 380px;
  height: clamp(130px, 21dvh, 175px);
  border-radius: 9999px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: #0d0d0d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 1;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}

.drive-giant-btn:active {
  transform: scale(0.97);
}

.drive-giant-btn.recording {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.85);
}

.drive-giant-btn.recording .drive-mic-vector-wrap svg {
  stroke: #000000;
}

.drive-mic-text {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.drive-audio-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.drive-scrubber-panel {
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drive-scrubber-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drive-time-label {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 550;
  color: #ffffff;
}

.drive-para-badge {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 9px;
  border-radius: 9999px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-scrubber-container {
  height: 36px;
}

.drive-transport-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.35fr 1fr 0.8fr;
  gap: 8px;
  width: 100%;
}

.drive-transport-btn {
  padding: 13px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #141414;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.1s, background 0.15s;
}

.drive-transport-compact {
  font-size: 13px;
  padding: 13px 6px;
}

.drive-transport-btn:active {
  transform: scale(0.95);
}

.drive-transport-primary {
  background: #ffffff;
  color: #000000;
  border: none;
}

/* ==========================================================================
   Right Drawer: Clips & Memory
   ========================================================================== */
.clip-Input-box {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-textarea {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.clip-textarea:focus {
  border-color: var(--border-focus);
}

.clip-input-actions {
  display: flex;
  gap: 6px;
}

.clip-note-input {
  flex: 1;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.clip-note-input:focus {
  border-color: var(--border-focus);
}

.clip-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
}

.export-btns { display: flex; gap: 6px; }

.clips-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.clip-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 10px 4px 10px 6px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease;
}

.clip-card:last-child {
  border-bottom: none;
}

.clip-card.pinned {
  border-left: 2px solid #ffffff;
  padding-left: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.clip-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clip-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.clip-type-pill {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.clip-type-pill.global {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.clip-note-tag {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.clip-quote {
  font-size: 13px;
  font-weight: 350;
  line-height: 1.42;
  color: var(--text-primary);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
  word-break: break-word;
  transition: max-height 0.2s ease;
}

.clip-quote.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  white-space: pre-wrap;
}

.clip-side-actions {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
  padding-top: 2px;
}

.clip-micro-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clip-micro-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.clip-micro-btn.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.clip-micro-btn.btn-del-clip:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.clip-micro-btn svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Modals & Settings (Rounded Card Windows)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: max(16px, var(--effective-safe-top)) 16px max(16px, var(--safe-bottom));
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.setting-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.modal-select, .modal-input, .modal-textarea {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}

.modal-select:focus, .modal-input:focus, .modal-textarea:focus {
  border-color: var(--border-focus);
}

.setting-row-checkbox {
  padding: 6px 0;
}

.auto-send-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   Buttons (High-Contrast Monochrome & Complete Pill Shapes)
   ========================================================================== */
.primary-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.1s, opacity 0.15s;
}

.primary-btn:active {
  transform: scale(0.97);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, transform 0.1s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.secondary-btn:active {
  transform: scale(0.97);
}

.tiny-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 450;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, transform 0.1s;
}

.tiny-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tiny-btn:active {
  transform: scale(0.95);
}

.icon-btn, .icon-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.icon-btn:hover, .icon-btn-sm:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-btn:active, .icon-btn-sm:active {
  transform: scale(0.94);
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
}

.full-width { width: 100%; }
.mt-8 { margin-top: 8px; }
.hidden { display: none !important; }

/* Spinner */
.spinner-sm {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Flash Executive Prelude Banner & Recitation Fallback Notice */
.job-prelude-banner {
  margin: 0 14px 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-prelude-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  opacity: 0.9;
}

.job-prelude-text {
  font-size: 13.5px;
  line-height: 1.48;
  color: #e4e4e7;
}

.job-recitation-notice {
  margin: 12px 0;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.055);
  border-left: 3px solid #ffffff;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #e4e4e7;
}

/* Archiving Transition */
.job-card.archiving {
  opacity: 0;
  transform: scale(0.96) translateY(-8px);
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  overflow: hidden !important;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Send Button Dictation Loading State */
#btn-send-prompts.loading {
  opacity: 0.85;
  cursor: wait;
}

#btn-send-prompts.loading svg {
  animation: spin 0.8s linear infinite;
}

/* Archive Modal & Items */
.archive-scope-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  margin: 14px 0 16px;
  border: 1px solid var(--border-color);
}

.archive-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.archive-tab.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.archive-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}

.archive-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.archive-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.archive-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.archive-item-session {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 9999px;
}

.archive-item-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

.archive-item-prompt {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.archive-item-output {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  max-height: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.archive-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.archive-empty-icon {
  width: 44px;
  height: 44px;
  opacity: 0.45;
}

/* Mobile optimizations for collapsible paragraphs */
@media (max-width: 600px) {
  .para-gutter {
    width: 24px;
  }
  .btn-fold-para {
    width: 22px;
    height: 22px;
    opacity: 0.55;
  }
  .collapsible-heading {
    padding: 6px 4px;
  }
}

/* ==========================================================================
   Thread & Workspace Search + Topic Synthesis Compiler
   ========================================================================== */
.search-compiler-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.search-topic-field {
  width: 100%;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.search-topic-field:focus {
  outline: none;
  border-color: var(--border-focus);
}

.search-compiler-actions {
  display: flex;
  gap: 8px;
}

.search-compiler-actions .primary-btn {
  flex: 1;
}

.search-synthesis-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.synthesis-result-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.synthesis-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.synthesis-doc-title {
  font-size: 15.5px;
  font-weight: 550;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.synthesis-doc-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.synthesis-doc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.synthesis-doc-body {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 13.5px;
  line-height: 1.55;
}

.synthesis-followups-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

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

.followup-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.followup-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.followup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.followup-card-title {
  font-size: 13px;
  font-weight: 550;
  color: #ffffff;
}

.followup-card-rationale {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.38;
}

.followup-card-prompt {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.followup-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.search-matches-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-matches-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-match-row {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.search-match-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-match-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.search-match-prompt {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-match-snippet {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Multi-User Auth Gate Overlay & Sidebar User Profile Bar
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  z-index: 9999;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, var(--effective-safe-top)) 20px max(20px, var(--safe-bottom));
}

.auth-gate-overlay.hidden {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 4px;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.auth-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.auth-error-msg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
}

.btn-google-auth {
  width: 100%;
  padding: 13px 18px;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn-google-auth:hover {
  opacity: 0.92;
}

.btn-google-auth:active {
  transform: scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-otc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-input {
  width: 100%;
  background: #121212;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.auth-input:focus {
  border-color: #ffffff;
}

.auth-code-input {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.25em;
  text-align: center;
}

.auth-code-input::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  letter-spacing: normal;
  font-weight: 400;
}

.auth-footer-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.auth-footer-note code {
  font-family: 'SF Mono', ui-monospace, monospace;
  color: var(--text-secondary);
}

.sidebar-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.user-avatar-badge {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta-text {
  min-width: 0;
  flex: 1;
}

.user-display-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-display-email {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Shared Collaborative Chat, Author Badges, Team Messages & Inline Comments
   ========================================================================== */
.session-collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  flex-shrink: 0;
}

.job-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.job-card.team-message {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.22);
}

.job-card.team-message .job-prompt-bar {
  background: rgba(255, 255, 255, 0.05);
}

.composer-mode-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.composer-mode-pill.mode-message {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.job-comments-section {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-comments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.job-comment-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-comment-item.is-highlight {
  border-left: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.job-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.job-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffffff;
}

.job-highlight-quote {
  font-size: 12.5px;
  line-height: 1.42;
  color: #ffffff;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-style: italic;
}

.job-comment-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.job-comment-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.job-comment-input {
  flex: 1;
  background: #0d0d0d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}

.job-comment-input:focus {
  border-color: #ffffff;
}

.share-search-wrap {
  position: relative;
}

.share-user-results {
  margin-top: 6px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.share-user-row {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.12s;
}

.share-user-row:last-child {
  border-bottom: none;
}

.share-user-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.share-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.share-action-buttons button {
  flex: 1;
}

.share-invite-result {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #ffffff;
}

.share-collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.share-collab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.admin-notif-banner {
  margin: 8px 14px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #ffffff;
  flex-shrink: 0;
}

.admin-notif-banner.hidden {
  display: none !important;
}

.offline-hub-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
}

.offline-hub-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.offline-hub-title {
  font-size: 14px;
  font-weight: 650;
  color: #ffffff;
  margin-bottom: 4px;
}

.offline-hub-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* 3-Button Response Length Controls (Car Mode & Normal Composer) */
.drive-length-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin-top: 16px;
}

.drive-len-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 8px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.drive-len-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22);
}

.drive-length-row.recording-active .drive-len-btn {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.drive-length-row.recording-active .drive-len-btn.active {
  background: #ffffff;
  color: #000000;
}

.drive-len-btn:active {
  transform: scale(0.96);
}

.drive-len-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.drive-len-sub {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 500;
}

/* Left-Side Discreet Hold/Tap Mode & Length Popover Menu */
.composer-mode-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.composer-mode-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 215px;
  background: rgba(16, 16, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78);
  z-index: 200;
  transform-origin: bottom left;
  animation: popMenuIn 0.14s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes popMenuIn {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mode-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 9px 11px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.mode-menu-item:hover,
.mode-menu-item.drag-hover {
  background: rgba(255, 255, 255, 0.12);
}

.mode-menu-item.active {
  background: #ffffff;
  color: #000000;
}

.mode-menu-main {
  font-size: 13px;
  font-weight: 650;
}

.mode-menu-sub {
  font-size: 11px;
  opacity: 0.72;
  font-weight: 500;
}

.mode-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 3px 6px;
}

/* Shared Chat Unread Activity Pulse & Badge */
.mini-pill.has-unread {
  background: #10b981 !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 0 0 2px #000000, 0 0 10px rgba(16, 185, 129, 0.8);
  animation: unreadPulse 1.8s infinite ease-in-out;
}

.icon-btn.has-unread-ring {
  border-color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.session-unread-pill {
  background: #10b981;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

@keyframes unreadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* ==========================================================================
   Headphone Hands-Free Always-On Console (Divorced from Car/Drive Mode)
   ========================================================================== */
.headphone-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height, 100lvh);
  background: #000000;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(14px, var(--effective-safe-top)) 16px max(18px, var(--composer-bottom-pad, 14px));
  overflow-y: auto;
}

.hp-beta-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
}

.hp-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0;
}

.hp-status-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-status-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #71717a;
  flex-shrink: 0;
}

.hp-pulse-dot.listening {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
  animation: unreadPulse 1.4s infinite ease-in-out;
}

.hp-pulse-dot.thinking {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
  animation: unreadPulse 1s infinite ease-in-out;
}

.hp-pulse-dot.speaking {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.hp-state-badge {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #e4e4e7;
}

.hp-decision-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
}

.hp-status-headline {
  font-size: 15px;
  line-height: 1.4;
  color: #ffffff;
}

.hp-level-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.hp-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #ffffff);
  border-radius: 9999px;
  transition: width 0.08s ease;
}

.hp-transcript-card {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hp-live-transcript {
  min-height: 76px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.48;
  color: #ffffff;
  font-weight: 500;
  word-break: break-word;
}

.hp-placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  font-size: 14.5px;
}

.hp-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-mic-toggle-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #141417;
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hp-mic-toggle-btn.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.13);
  color: #ffffff;
}

.hp-length-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.hp-progress-panel {
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hp-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.hp-timer-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.hp-stage-detail {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-timer-eta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
}

.hp-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.hp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #ffffff);
  border-radius: 9999px;
  transition: width 0.25s ease;
}

.hp-stream-snippet {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-len-btn {
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 6px;
  color: #d4d4d8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hp-len-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.hp-len-main {
  font-size: 12.5px;
  font-weight: 700;
}

.hp-len-sub {
  font-size: 10px;
  opacity: 0.75;
}

.hp-toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.hp-commands-hint {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 12px;
}

.hp-commands-hint code {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 5px;
}

.headphone-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: #09090b;
  border-bottom: 1px solid rgba(16, 185, 129, 0.45);
  font-size: 12.5px;
  color: #ffffff;
}

.hp-mini-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.hp-mini-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-mini-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn.hp-active-glow {
  border-color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
  color: #10b981 !important;
}

/* ==========================================================================
   Shared Highlights & Messages Hub Thread + Direct Note Button
   ========================================================================== */
.session-item.highlights-hub-item {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 2px;
}

.session-item.highlights-hub-item.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.job-card.shared-highlight-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.shared-highlight-body {
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shared-highlight-quote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
}

.shared-highlight-note {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.composer-note-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid var(--border-focus);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.1s, background 0.15s;
}

.composer-note-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.composer-note-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   White / Daylight (Inverted Monochrome) Colour Scheme (`html[data-theme="light"]`)
   ========================================================================== */
html[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f6;
  --bg-elevated: #e4e4e7;
  --bg-card: #fafafa;
  --bg-card-subtle: #f4f4f5;
  --border-color: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(0, 0, 0, 0.45);
  --border-subtle: rgba(0, 0, 0, 0.07);

  --text-primary: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;

  --accent-white: #09090b;
  --accent-black: #ffffff;
  background: #ffffff;
}

html[data-theme="light"] body,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .main-area,
html[data-theme="light"] .stream-container {
  background: #ffffff !important;
  color: #09090b !important;
}

html[data-theme="light"] .top-bar,
html[data-theme="light"] .composer-section {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .sidebar {
  background: #f8f9fa !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .job-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .job-prompt-bar {
  background: #f4f4f6 !important;
  border-bottom-color: rgba(0, 0, 0, 0.09) !important;
}

html[data-theme="light"] .job-prompt-text,
html[data-theme="light"] .job-output-body,
html[data-theme="light"] .markdown-body,
html[data-theme="light"] .session-heading,
html[data-theme="light"] .user-display-name,
html[data-theme="light"] .modal-header h3 {
  color: #09090b !important;
}

html[data-theme="light"] .job-footer-bar {
  background: #fafafa !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .prompt-slot {
  background: #f4f4f6 !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .prompt-slot.is-expanded .prompt-textarea,
html[data-theme="light"] .prompt-slot.parallel-slot .prompt-textarea {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
  color: #09090b !important;
}

html[data-theme="light"] .prompt-textarea {
  color: #09090b !important;
}

html[data-theme="light"] .composer-parallel-pill,
html[data-theme="light"] .composer-collapse-pill {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="light"] .composer-send-btn,
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .user-avatar-badge,
html[data-theme="light"] .job-author-badge {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}

html[data-theme="light"] .icon-btn,
html[data-theme="light"] .secondary-btn,
html[data-theme="light"] .tiny-btn,
html[data-theme="light"] .sidebar-mini-btn,
html[data-theme="light"] .composer-mode-pill,
html[data-theme="light"] .composer-icon-btn,
html[data-theme="light"] .composer-note-btn,
html[data-theme="light"] .nav-dock-btn {
  background: #f4f4f6 !important;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="light"] .session-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #09090b !important;
}

html[data-theme="light"] .session-item.active {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}

html[data-theme="light"] .session-item.active .session-item-title {
  color: #ffffff !important;
}

html[data-theme="light"] .session-item.highlights-hub-item:not(.active) {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="light"] .shared-highlight-quote {
  background: #f4f4f6 !important;
  border-left-color: #09090b !important;
  color: #09090b !important;
}

html[data-theme="light"] .shared-highlight-note {
  background: #f8f9fa !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #09090b !important;
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="light"] .modal-card,
html[data-theme="light"] .composer-mode-menu,
html[data-theme="light"] .selection-toolbar,
html[data-theme="light"] .audio-player-bar {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="light"] .modal-input,
html[data-theme="light"] .modal-select,
html[data-theme="light"] .modal-textarea {
  background: #f4f4f6 !important;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="light"] .mode-menu-main {
  color: #09090b !important;
}

html[data-theme="light"] .mode-menu-item.active {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .job-sentence.active-sentence {
  background: rgba(0, 0, 0, 0.09) !important;
  color: #000000 !important;
}

html[data-theme="light"] .job-sentence.shared-highlight-mark {
  background: rgba(245, 158, 11, 0.22) !important;
  border-bottom-color: rgba(217, 119, 6, 0.65) !important;
}

html[data-theme="light"] .drive-overlay,
html[data-theme="light"] .headphone-overlay {
  background: #ffffff !important;
  color: #09090b !important;
}

html[data-theme="light"] .hp-status-card,
html[data-theme="light"] .hp-transcript-card,
html[data-theme="light"] .hp-len-btn,
html[data-theme="light"] .drive-len-btn,
html[data-theme="light"] .drive-transport-btn {
  background: #f4f4f6 !important;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .hp-len-btn.active,
html[data-theme="light"] .drive-len-btn.active,
html[data-theme="light"] .drive-transport-primary {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}

html[data-theme="light"] .hp-len-btn.active .hp-len-main,
html[data-theme="light"] .hp-len-btn.active .hp-len-sub,
html[data-theme="light"] .drive-len-btn.active .drive-len-title,
html[data-theme="light"] .drive-len-btn.active .drive-len-sub {
  color: #ffffff !important;
}

html[data-theme="light"] .hp-progress-panel {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .hp-timer-pill {
  background: #09090b !important;
  color: #ffffff !important;
}

html[data-theme="light"] .hp-stage-detail {
  color: #09090b !important;
}

html[data-theme="light"] .hp-progress-track {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Multimodal Image & Document Attachment Strip + Job Card Previews
   ========================================================================== */
.composer-attachment-strip {
  max-width: 780px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 10px;
  background: rgba(20, 20, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 5px 8px;
  flex-shrink: 0;
  max-width: 220px;
}

.attachment-chip-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.attachment-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.attachment-chip-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.attachment-chip-name {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-chip-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.attachment-chip-remove {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
}

.job-attachments-row {
  padding: 10px 14px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.job-att-image-link {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #09090b;
  max-width: 180px;
  max-height: 140px;
}

.job-att-image {
  display: block;
  max-width: 180px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.job-att-doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  max-width: 260px;
}

.job-att-doc-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.session-heading {
  cursor: pointer;
}

.session-heading:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.session-item-meta .icon-btn-sm {
  opacity: 0.65;
  padding: 3px;
}

.session-item:hover .session-item-meta .icon-btn-sm {
  opacity: 1;
}

html[data-theme="light"] .composer-attachment-strip {
  background: #f4f4f6 !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="light"] .attachment-chip,
html[data-theme="light"] .job-att-doc-pill {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #09090b !important;
}

/* ==========================================================================
   Shared Visibility Boundary System (Purple = Shared Thread / Green = Shared Excerpt)
   ========================================================================== */
.session-item.shared-session-item {
  border-left: 3px solid #a855f7 !important;
  background: rgba(168, 85, 247, 0.07);
}

.session-item.highlights-hub-item {
  border-left: 3px solid #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(16, 185, 129, 0.07);
}

/* Any card inside a Shared Thread has a unmistakable Purple border */
.job-card.shared-thread-card {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.22), 0 6px 22px rgba(168, 85, 247, 0.12);
}

/* Any card in a Private Thread that has a Shared Highlight excerpt has an Emerald Green border */
.job-card.has-shared-excerpt,
.job-card.shared-highlight-card {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22), 0 6px 22px rgba(16, 185, 129, 0.12);
}

.card-visibility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-visibility-strip.is-shared-thread {
  background: rgba(168, 85, 247, 0.16);
  color: #e9d5ff;
  border-bottom-color: rgba(168, 85, 247, 0.32);
}

.card-visibility-strip.is-shared-excerpt {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border-bottom-color: rgba(16, 185, 129, 0.32);
}

.job-comment-item.is-highlight {
  border: 1.5px solid #10b981 !important;
  background: rgba(16, 185, 129, 0.09) !important;
}

.job-comments-section.is-shared-comments {
  border-top: 1.5px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.05);
}

.job-comments-section.is-shared-comments .job-comment-input {
  border-color: rgba(168, 85, 247, 0.55);
}

.comment-visibility-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 650;
}

.comment-visibility-tag.shared-green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.comment-visibility-tag.shared-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid #a855f7;
  color: #d8b4fe;
}

.comment-visibility-tag.private-lock {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
}

/* Composer Shared vs Private Visibility Banner & Border */
.composer-visibility-banner {
  max-width: fit-content;
  margin: 0 auto 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.composer-visibility-banner.hidden {
  display: none !important;
}

.composer-visibility-banner.is-private {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.composer-visibility-banner.is-shared-purple {
  background: rgba(168, 85, 247, 0.16);
  border: 1.5px solid #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.22);
}

.composer-visibility-banner.is-shared-green {
  background: rgba(16, 185, 129, 0.16);
  border: 1.5px solid #10b981;
  color: #d1fae5;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.22);
}

.visibility-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.visibility-dot.private {
  background: #71717a;
}

.visibility-dot.shared-purple {
  background: #c084fc;
  box-shadow: 0 0 8px #a855f7;
}

.visibility-dot.shared-green {
  background: #34d399;
  box-shadow: 0 0 8px #10b981;
}

.composer-section.is-shared-purple .prompt-slot {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22) !important;
}

.composer-section.is-shared-green .prompt-slot {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.22) !important;
}

/* ==========================================================================
   Voice Speed Controls (1× / 1.25× / 1.5× / 2× Permanent + Hold-for-2× Booster)
   ========================================================================== */
.speed-preset-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}

.speed-preset-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  -webkit-user-select: none;
}

.speed-preset-group-compact .speed-preset-btn {
  padding: 3px 6px;
  font-size: 10.5px;
}

.speed-preset-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-hold-2x {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  border: 1.5px solid rgba(168, 85, 247, 0.65) !important;
  background: rgba(168, 85, 247, 0.14) !important;
  color: #e9d5ff !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn-hold-2x.holding-boost {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #052e16 !important;
  transform: scale(0.96);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.65) !important;
}

.drive-speed-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.drive-hold-2x-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Light theme overrides for Shared Visibility & Speed Controls */
html[data-theme="light"] .job-card.shared-thread-card {
  border: 2px solid #9333ea !important;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.14) !important;
}

html[data-theme="light"] .job-card.has-shared-excerpt,
html[data-theme="light"] .job-card.shared-highlight-card {
  border: 2px solid #059669 !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.14) !important;
}

html[data-theme="light"] .card-visibility-strip.is-shared-thread,
html[data-theme="light"] .composer-visibility-banner.is-shared-purple {
  background: rgba(147, 51, 234, 0.12) !important;
  color: #581c87 !important;
  border-color: #9333ea !important;
}

html[data-theme="light"] .card-visibility-strip.is-shared-excerpt,
html[data-theme="light"] .composer-visibility-banner.is-shared-green {
  background: rgba(5, 150, 105, 0.12) !important;
  color: #064e3b !important;
  border-color: #059669 !important;
}

html[data-theme="light"] .composer-visibility-banner.is-private {
  background: #f4f4f5 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #52525b !important;
}

html[data-theme="light"] .speed-preset-group {
  background: #e4e4e7 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .speed-preset-btn.active {
  background: #09090b !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-hold-2x {
  background: rgba(147, 51, 234, 0.12) !important;
  border-color: #9333ea !important;
  color: #581c87 !important;
}

/* ============================================================================
   HOSPITAL WORK SANDBOX (/work), INBOUND EMAIL & CARBON / SUPER-INTENSE MODE
   ============================================================================ */
.work-sandbox-bar {
  margin: 6px 14px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14) 0%, rgba(15, 118, 110, 0.08) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.45);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.work-sandbox-bar.hidden {
  display: none !important;
}

.work-sandbox-bar-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.work-sandbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5eead4;
  text-transform: uppercase;
}

.work-sandbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 8px #14b8a6;
  flex-shrink: 0;
}

.work-sandbox-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.work-action-btn {
  background: rgba(20, 184, 166, 0.16) !important;
  border-color: rgba(45, 212, 191, 0.42) !important;
  color: #ccfbf1 !important;
  font-weight: 600 !important;
}

.work-action-btn:hover {
  background: rgba(20, 184, 166, 0.28) !important;
}

.work-lock-btn {
  background: rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(244, 63, 94, 0.42) !important;
  color: #fecdd3 !important;
}

.work-preset-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.work-preset-strip::-webkit-scrollbar {
  display: none;
}

.work-preset-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #e2e8f0;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}

.work-preset-chip:hover {
  background: rgba(20, 184, 166, 0.25);
  border-color: #2dd4bf;
  color: #ffffff;
}

#btn-header-work.work-active-glow {
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.session-item.is-work-sandbox {
  border-left: 3px solid #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: rgba(239, 68, 68, 0.08);
}

.session-collab-badge.work-sandbox-badge {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fecaca;
}

/* Any card inside the Hospital Work Sandbox (`sess_work_sandbox` / `/work`) has an unmistakable Red outline */
.job-card.work-sandbox-card {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.28), 0 6px 22px rgba(239, 68, 68, 0.14);
}

.card-visibility-strip.is-work-sandbox-red {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border-bottom-color: rgba(239, 68, 68, 0.38);
}

.job-comments-section.is-work-comments {
  border-top: 1.5px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.05);
}

.job-comments-section.is-work-comments .job-comment-input {
  border-color: rgba(239, 68, 68, 0.55);
}

.comment-visibility-tag.work-red {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.composer-visibility-banner.is-work-sandbox-red,
.composer-visibility-banner.is-work-sandbox-teal {
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1.5px solid #ef4444 !important;
  color: #fee2e2 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.24);
}

.visibility-dot.work-red,
.visibility-dot.work-teal {
  background: #f87171;
  box-shadow: 0 0 8px #ef4444;
}

.composer-section.is-work-sandbox-red .prompt-slot {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.24) !important;
}

html[data-theme="light"] .job-card.work-sandbox-card {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.16) !important;
}

html[data-theme="light"] .card-visibility-strip.is-work-sandbox-red,
html[data-theme="light"] .composer-visibility-banner.is-work-sandbox-red {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #7f1d1d !important;
  border-color: #dc2626 !important;
}

/* Strictly Isolated Hospital /work Terminal Mode: hide personal drawers & buttons */
body.work-sandbox-mode #btn-open-left,
body.work-sandbox-mode #btn-toggle-right,
body.work-sandbox-mode #btn-header-share,
body.work-sandbox-mode #btn-header-podcast,
body.work-sandbox-mode #btn-open-search,
body.work-sandbox-mode #sidebar-left,
body.work-sandbox-mode #sidebar-right,
body.work-sandbox-mode .btn-clip-entire,
body.work-sandbox-mode #btn-clip-pin,
body.work-sandbox-mode #btn-clip-note,
body.work-sandbox-mode #btn-clip-share-highlight {
  display: none !important;
}

/* When on /work, prioritize the Hospital Work Access Code box in the Auth Gate */
body.work-sandbox-mode #btn-google-signin,
body.work-sandbox-mode .auth-divider,
body.work-sandbox-mode #auth-otc-form {
  display: none !important;
}

.auth-work-sandbox-box.is-primary-work-gate {
  margin-top: 4px !important;
  border: 1.5px solid #2dd4bf !important;
  background: rgba(20, 184, 166, 0.12) !important;
}

/* Carbon & Super-Intense Thinking Badges */
.job-engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.job-engine-badge.argon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d4d4d8;
}

.job-engine-badge.carbon {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}

.job-engine-badge.super-intense {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.65);
  color: #fdba74;
}

.composer-mode-pill.is-carbon {
  border-color: rgba(56, 189, 248, 0.65) !important;
  background: rgba(56, 189, 248, 0.14) !important;
  color: #bae6fd !important;
}

.composer-mode-pill.is-super {
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.38);
  border-color: rgba(251, 146, 60, 0.75) !important;
}

.btn-copy-clean {
  background: rgba(20, 184, 166, 0.15) !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  color: #99f6e4 !important;
  font-weight: 600 !important;
}

.btn-copy-clean:hover {
  background: rgba(20, 184, 166, 0.28) !important;
}

/* ==========================================================================
   Intelligent Audio Sync, Pre-Highlights, Clip Button & Highlights Digest
   ========================================================================== */

/* Live spoken sentence tracking during audio playback */
.job-sentence.speaking-sentence {
  background: rgba(45, 212, 191, 0.16) !important;
  box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.92), 0 0 0 1px rgba(45, 212, 191, 0.3);
  border-radius: 5px;
  padding: 1px 4px;
}

html[data-theme="light"] .job-sentence.speaking-sentence {
  background: rgba(13, 148, 136, 0.13) !important;
  box-shadow: inset 3px 0 0 rgba(13, 148, 136, 0.85), 0 0 0 1px rgba(13, 148, 136, 0.25);
}

/* Suggested pre-highlight (amber dashed underline, 1-tap open toolbar) */
.job-sentence.suggested-highlight {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1.5px dashed rgba(251, 191, 36, 0.65);
  border-radius: 3px;
}

.job-sentence.suggested-highlight:hover {
  background: rgba(245, 158, 11, 0.16);
}

html[data-theme="light"] .job-sentence.suggested-highlight {
  background: rgba(245, 158, 11, 0.12);
  border-bottom-color: rgba(217, 119, 6, 0.7);
}

/* Saved / clipped highlight inline indicator */
.job-sentence.saved-highlight {
  background: rgba(251, 191, 36, 0.17);
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.82);
  border-radius: 4px;
}

html[data-theme="light"] .job-sentence.saved-highlight {
  background: rgba(245, 158, 11, 0.22);
  border-bottom-color: rgba(217, 119, 6, 0.85);
}

/* Focus Highlights Only mode */
.job-output-body.highlights-focus-mode .job-sentence:not(.suggested-highlight):not(.saved-highlight):not(.shared-highlight-mark):not(.speaking-sentence) {
  opacity: 0.28;
  transition: opacity 0.2s ease;
}

.job-output-body.highlights-focus-mode li:not(:has(.suggested-highlight, .saved-highlight, .shared-highlight-mark, .speaking-sentence)),
.job-output-body.highlights-focus-mode blockquote:not(:has(.suggested-highlight, .saved-highlight, .shared-highlight-mark, .speaking-sentence)) {
  opacity: 0.34;
}

/* Audio Bar + Car/Headphone Clip Buttons */
.audio-clip-btn,
.drive-clip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}

.drive-clip-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.audio-clip-btn:hover,
.drive-clip-btn:hover {
  background: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.audio-clip-btn:active,
.drive-clip-btn:active,
.audio-clip-btn.just-clipped,
.drive-clip-btn.just-clipped {
  transform: scale(0.96);
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.8);
  color: #a7f3d0;
}

html[data-theme="light"] .audio-clip-btn,
html[data-theme="light"] .drive-clip-btn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(217, 119, 6, 0.55);
  color: #92400e;
}

/* Footer Highlights toggle button */
.btn-toggle-highlights.active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.65) !important;
  color: #fde68a !important;
}

html[data-theme="light"] .btn-toggle-highlights.active {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(217, 119, 6, 0.65) !important;
  color: #92400e !important;
}

/* Key Highlights Digest panel inside job card */
.job-highlights-digest {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

html[data-theme="light"] .job-highlights-digest {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(217, 119, 6, 0.3);
}

.highlights-digest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.highlights-digest-title {
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.01em;
}

html[data-theme="light"] .highlights-digest-title {
  color: #92400e;
}

.highlights-focus-toggle {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
}

.highlights-focus-toggle.active {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.55);
  color: #99f6e4;
}

.highlights-digest-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.highlights-digest-summary-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.highlights-digest-item {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlights-digest-item.is-saved {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(245, 158, 11, 0.09);
}

html[data-theme="light"] .highlights-digest-item {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.1);
}

.highlights-digest-quote {
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-primary);
  cursor: pointer;
}

.highlights-digest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.highlights-digest-reason {
  font-size: 11px;
  color: var(--text-muted);
}

.highlights-digest-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlights-digest-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  cursor: pointer;
}

.highlights-digest-btn.save:hover {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.2);
}

.highlights-digest-btn.share:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(16, 185, 129, 0.22);
}

/* Interactive Clip Confirmation Action Toast */
.highlight-action-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  max-width: min(94vw, 460px);
  background: rgba(18, 18, 22, 0.96);
  color: #f4f4f5;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: fadeSlideDown 0.16s ease-out;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.highlight-toast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
}

.highlight-toast-quote {
  font-size: 12px;
  line-height: 1.4;
  color: #e4e4e7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.highlight-toast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.highlight-toast-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.highlight-toast-btn.primary {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(16, 185, 129, 0.24);
  color: #a7f3d0;
}

@media (max-width: 760px) {
  .audio-para-pill {
    max-width: 66px;
    padding: 3px 7px;
    font-size: 10.5px;
  }
  .audio-clip-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Consolidated Export Dropdown, Compact Work Copy Clean & Share Highlight Dialog
   ========================================================================== */

#composer-visibility-banner,
.composer-visibility-banner {
  display: none !important;
}

.tiny-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.15 !important;
}

.job-footer-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

.job-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 5px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}

.job-actions::-webkit-scrollbar {
  display: none;
}

.job-actions > *,
.job-actions .tiny-btn,
.job-actions .tiny-btn span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  word-break: keep-all !important;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .job-footer-bar {
    padding: 7px 10px !important;
  }
  .job-actions {
    gap: 4px !important;
  }
  .job-actions .tiny-btn {
    padding: 3.5px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
    height: 26px !important;
  }
}

.btn-copy-clean {
  white-space: nowrap !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  height: 26px !important;
  flex-shrink: 0;
}

.baryon-floating-export-menu {
  position: fixed;
  min-width: 164px;
  background: rgba(24, 24, 27, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.highlights-digest-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.highlights-digest-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e4e4e7;
  border-radius: 9999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.highlights-digest-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.job-export-option {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #f4f4f5;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s ease;
}

.job-export-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.highlight-toast-ctx-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #d4d4d8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  user-select: none;
}

.highlight-toast-ctx-opt input[type="checkbox"] {
  accent-color: #10b981;
  margin: 0;
  cursor: pointer;
}

.share-hl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-hl-modal-card {
  width: min(420px, 94vw);
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
}

.share-hl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: #6ee7b7;
}

.share-hl-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d4d4d8;
  border-radius: 9999px;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-hl-modal-quote {
  font-size: 12px;
  line-height: 1.45;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #10b981;
  padding: 7px 10px;
  border-radius: 6px;
  max-height: 84px;
  overflow-y: auto;
}

.share-hl-note-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 11px;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
}

.share-hl-note-input:focus {
  border-color: rgba(52, 211, 153, 0.65);
}

.share-hl-ctx-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e4e4e7;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.share-hl-ctx-toggle input[type="checkbox"] {
  accent-color: #10b981;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.share-hl-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.share-hl-btn {
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
}

.share-hl-btn.primary {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
}

.job-output-body ul li > .para-block,
.job-output-body ol li > .para-block {
  margin: 2px 0;
}

/* --- Voice Whiteboard & Enthymeme Studio Sub-Screen --- */
#whiteboard-overlay[data-wb-theme="dark"] {
  --wb-bg: #09090d;
  --wb-canvas-bg: #09090d;
  --wb-grid-dot: rgba(255, 255, 255, 0.085);
  --wb-surface: rgba(16, 16, 23, 0.94);
  --wb-surface-elevated: rgba(24, 24, 34, 0.98);
  --wb-border: rgba(255, 255, 255, 0.1);
  --wb-border-strong: rgba(255, 255, 255, 0.18);
  --wb-text: #f4f4f5;
  --wb-text-muted: #a1a1aa;
  --wb-text-subtle: #71717a;
  --wb-card-bg: rgba(20, 20, 28, 0.95);
  --wb-card-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
  --wb-pill-bg: rgba(255, 255, 255, 0.055);
  --wb-pill-hover: rgba(255, 255, 255, 0.11);
  --wb-input-bg: rgba(255, 255, 255, 0.055);
  --wb-accent: #818cf8;
  --wb-accent-soft: rgba(99, 102, 241, 0.22);
  --wb-accent-border: rgba(129, 140, 248, 0.45);
  --wb-cyan: #22d3ee;
  --wb-cyan-soft: rgba(34, 211, 238, 0.14);
  --wb-cyan-border: rgba(34, 211, 238, 0.48);
  --wb-cyan-text: #a5f3fc;
  --wb-purple-soft: rgba(168, 85, 247, 0.2);
  --wb-purple-border: rgba(192, 132, 252, 0.48);
  --wb-purple-text: #e9d5ff;
  --wb-toast-bg: rgba(18, 18, 26, 0.94);
  --wb-toast-text: #f4f4f5;
  --wb-dock-bg: rgba(16, 16, 24, 0.92);
}

#whiteboard-overlay[data-wb-theme="light"] {
  --wb-bg: #f1f5f9;
  --wb-canvas-bg: #ffffff;
  --wb-grid-dot: rgba(15, 23, 42, 0.11);
  --wb-surface: rgba(248, 250, 252, 0.96);
  --wb-surface-elevated: #ffffff;
  --wb-border: rgba(15, 23, 42, 0.11);
  --wb-border-strong: rgba(15, 23, 42, 0.22);
  --wb-text: #0f172a;
  --wb-text-muted: #475569;
  --wb-text-subtle: #64748b;
  --wb-card-bg: rgba(255, 255, 255, 0.97);
  --wb-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --wb-pill-bg: rgba(15, 23, 42, 0.045);
  --wb-pill-hover: rgba(15, 23, 42, 0.09);
  --wb-input-bg: #ffffff;
  --wb-accent: #4f46e5;
  --wb-accent-soft: rgba(79, 70, 229, 0.12);
  --wb-accent-border: rgba(79, 70, 229, 0.38);
  --wb-cyan: #0891b2;
  --wb-cyan-soft: rgba(8, 145, 178, 0.1);
  --wb-cyan-border: rgba(8, 145, 178, 0.42);
  --wb-cyan-text: #0e7490;
  --wb-purple-soft: rgba(147, 51, 234, 0.12);
  --wb-purple-border: rgba(147, 51, 234, 0.36);
  --wb-purple-text: #6b21a8;
  --wb-toast-bg: rgba(255, 255, 255, 0.96);
  --wb-toast-text: #0f172a;
  --wb-dock-bg: rgba(255, 255, 255, 0.92);
}

.whiteboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--wb-bg);
  color: var(--wb-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

.whiteboard-overlay.hidden {
  display: none !important;
}

.wb-topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--wb-surface);
  border-bottom: 1px solid var(--wb-border);
  backdrop-filter: blur(16px);
  overflow: visible;
  flex-shrink: 0;
}

.wb-topbar-left,
.wb-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.wb-nav-btn,
.wb-action-btn,
.wb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: var(--wb-pill-bg);
  color: var(--wb-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
}

.wb-icon-btn {
  width: 30px;
  padding: 0;
}

.wb-nav-btn:hover:not(:disabled),
.wb-action-btn:hover:not(:disabled),
.wb-icon-btn:hover:not(:disabled) {
  background: var(--wb-pill-hover);
  border-color: var(--wb-border-strong);
}

.wb-action-btn:disabled,
.wb-icon-btn:disabled,
.wb-tool-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.wb-btn-subtle {
  color: var(--wb-text-muted);
}

.wb-history-group {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: var(--wb-pill-bg);
  overflow: hidden;
}

.wb-history-group .wb-action-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 9px;
}

.wb-history-group .wb-action-btn + .wb-action-btn {
  border-left: 1px solid var(--wb-border);
}

.wb-btn-entheo.active {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
  color: var(--wb-accent);
}

.wb-btn-meld {
  background: var(--wb-purple-soft);
  border-color: var(--wb-purple-border);
  color: var(--wb-purple-text);
}

.wb-btn-freeform {
  background: var(--wb-cyan-soft);
  border-color: var(--wb-cyan-border);
  color: var(--wb-cyan-text);
}

.wb-btn-poles {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.38);
  color: #10b981;
}

.wb-board-select {
  height: 30px;
  max-width: 210px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: var(--wb-input-bg);
  color: var(--wb-text);
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.wb-sync-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  color: var(--wb-text-muted);
  white-space: nowrap;
}

.wb-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.wb-sync-status-pill.offline .wb-sync-dot {
  background: #f59e0b;
}

.wb-sync-status-pill.syncing .wb-sync-dot {
  background: #38bdf8;
  animation: pulse 1.2s infinite;
}

.wb-export-menu-wrap {
  position: relative;
}

.wb-export-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: var(--wb-surface-elevated);
  border: 1px solid var(--wb-border-strong);
  box-shadow: var(--wb-card-shadow);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-export-popover.hidden {
  display: none !important;
}

.wb-export-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.wb-export-item:hover {
  background: var(--wb-pill-hover);
}

.wb-export-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--wb-border);
}

/* Enthymeme Bar */
.wb-entheo-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px;
  background: var(--wb-surface);
  border-bottom: 1px solid var(--wb-border);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.wb-entheo-bar.hidden {
  display: none !important;
}

.wb-seed-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 220px;
  min-width: 180px;
}

.wb-seed-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wb-text-muted);
}

.wb-pole-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wb-pole-dot.pole-a {
  background: #10b981;
}

.wb-pole-dot.pole-b {
  background: #f59e0b;
}

.wb-seed-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wb-seed-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  background: var(--wb-input-bg);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--wb-text);
  font-size: 12.5px;
  outline: none;
}

.wb-seed-input:focus {
  border-color: var(--wb-accent);
}

.wb-dice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  color: var(--wb-text-muted);
  cursor: pointer;
}

.wb-dice-btn:hover {
  background: var(--wb-pill-hover);
  color: var(--wb-text);
}

.wb-seed-arrow {
  display: flex;
  align-items: center;
  height: 32px;
  color: var(--wb-accent);
  padding-bottom: 1px;
}

.wb-seed-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-bridge-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--wb-accent-border);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Spatial Viewport & Stage */
.wb-canvas-viewport {
  position: relative;
  flex: 1;
  overflow: auto;
  background-color: var(--wb-canvas-bg);
  background-image: radial-gradient(var(--wb-grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  touch-action: pan-x pan-y;
}

.wb-canvas-stage {
  position: relative;
  width: 2200px;
  height: 1500px;
  min-width: 100%;
  min-height: 100%;
}

.wb-edges-svg {
  position: absolute;
  inset: 0;
  width: 2200px;
  height: 1500px;
  pointer-events: none;
  z-index: 1;
}

.wb-ink-canvas {
  position: absolute;
  inset: 0;
  width: 2200px;
  height: 1500px;
  pointer-events: none;
  z-index: 3;
}

.wb-ink-canvas.drawing-active {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

.wb-nodes-layer {
  position: absolute;
  inset: 0;
  width: 2200px;
  height: 1500px;
  z-index: 4;
  pointer-events: none;
}

.wb-edge-controls-layer {
  position: absolute;
  inset: 0;
  width: 2200px;
  height: 1500px;
  z-index: 5;
  pointer-events: none;
}

.wb-ring-overlays-layer {
  position: absolute;
  inset: 0;
  width: 2200px;
  height: 1500px;
  z-index: 6;
  pointer-events: none;
}

/* Blank-Canvas Onboarding Guide */
.wb-empty-guide {
  position: absolute;
  top: 28px;
  left: 28px;
  max-width: 720px;
  width: calc(100vw - 56px);
  background: var(--wb-surface-elevated);
  border: 1px solid var(--wb-border-strong);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--wb-card-shadow);
  backdrop-filter: blur(16px);
  z-index: 2;
  pointer-events: auto;
}

.wb-empty-guide.hidden {
  display: none !important;
}

.wb-empty-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wb-empty-guide-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-text);
  letter-spacing: -0.01em;
}

.wb-empty-guide-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--wb-border);
  background: var(--wb-pill-bg);
  color: var(--wb-text-muted);
  cursor: pointer;
}

.wb-empty-guide-close:hover {
  background: var(--wb-pill-hover);
  color: var(--wb-text);
}

.wb-empty-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wb-guide-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  padding: 11px;
}

.wb-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  flex-shrink: 0;
}

.wb-guide-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-text);
  margin-bottom: 3px;
}

.wb-guide-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--wb-text-muted);
}

.wb-empty-guide-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Edge Midpoint Controls */
.wb-edge-midpoint-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--wb-surface-elevated);
  border: 1px solid var(--wb-border-strong);
  border-radius: 9999px;
  padding: 2px 5px;
  pointer-events: auto;
  box-shadow: var(--wb-card-shadow);
  backdrop-filter: blur(8px);
}

.wb-edge-mid-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--wb-text-muted);
  padding: 0 5px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-edge-mid-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  color: var(--wb-text);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}

.wb-edge-mid-btn:hover {
  background: var(--wb-pill-hover);
}

.wb-edge-mid-btn.bridge-ai {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
  color: var(--wb-accent);
}

.wb-edge-mid-btn.del-edge {
  color: var(--wb-text-subtle);
  padding: 2px 5px;
}

.wb-edge-mid-btn.del-edge:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
}

/* Ring-to-Ask Overlays */
.wb-ring-processing-box {
  position: absolute;
  border: 2px dashed var(--wb-cyan);
  background: var(--wb-cyan-soft);
  border-radius: 16px;
  pointer-events: none;
  animation: pulse 1.5s infinite;
}

.wb-ring-processing-badge {
  position: absolute;
  top: -28px;
  left: 0;
  background: var(--wb-surface-elevated);
  border: 1px solid var(--wb-cyan-border);
  color: var(--wb-cyan-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: var(--wb-card-shadow);
}

.wb-ring-prompt-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wb-surface-elevated);
  border: 1.5px solid var(--wb-cyan);
  color: var(--wb-text);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--wb-card-shadow);
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
}

/* Node Cards */
.wb-node-card {
  position: absolute;
  width: 248px;
  min-height: 76px;
  background: var(--wb-card-bg);
  border: 1.5px solid var(--wb-accent-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--wb-card-shadow);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  backdrop-filter: blur(10px);
}

.wb-node-card:active {
  cursor: grabbing;
}

.wb-node-card.connect-source {
  box-shadow: 0 0 0 2.5px var(--wb-cyan), var(--wb-card-shadow);
}

.wb-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.wb-node-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wb-text-muted);
}

.wb-node-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wb-node-actions {
  display: flex;
  gap: 3px;
}

.wb-node-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 22px;
  padding: 0 5px;
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  color: var(--wb-text-muted);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
}

.wb-node-mini-btn:hover {
  background: var(--wb-pill-hover);
  color: var(--wb-text);
}

.wb-node-ink-subtitle {
  font-size: 10.5px;
  color: var(--wb-cyan-text);
  background: var(--wb-cyan-soft);
  border-left: 2px solid var(--wb-cyan);
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-style: italic;
}

.wb-node-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--wb-text);
  word-break: break-word;
}

.wb-node-detail {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--wb-text-muted);
  word-break: break-word;
}

.wb-node-title[contenteditable="true"]:focus,
.wb-node-detail[contenteditable="true"]:focus {
  outline: 1px dashed var(--wb-accent);
  background: var(--wb-pill-bg);
  border-radius: 4px;
  cursor: text;
}

/* Floating Studio Tool Dock */
.wb-floating-tools {
  position: fixed;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--wb-dock-bg);
  border: 1px solid var(--wb-border-strong);
  border-radius: 16px;
  padding: 6px 9px;
  box-shadow: var(--wb-card-shadow);
  backdrop-filter: blur(18px);
}

.wb-floating-tools::-webkit-scrollbar {
  display: none;
}

.wb-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wb-dock-divider {
  width: 1px;
  height: 20px;
  background: var(--wb-border-strong);
  flex-shrink: 0;
  margin: 0 2px;
}

.wb-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wb-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.wb-tool-btn:hover:not(:disabled) {
  background: var(--wb-pill-hover);
  color: var(--wb-text);
}

.wb-tool-btn.active {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
  color: var(--wb-text);
}

.wb-tool-ring.active {
  background: var(--wb-cyan-soft);
  border-color: var(--wb-cyan-border);
  color: var(--wb-cyan-text);
}

.wb-tool-icon-only {
  width: 28px;
  padding: 0;
}

.wb-tool-danger:hover:not(:disabled) {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.wb-autoring-pill {
  border-radius: 9999px;
  padding: 0 10px;
  border: 1px solid var(--wb-border);
  background: var(--wb-pill-bg);
}

.wb-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-text-subtle);
}

.wb-autoring-pill.active {
  background: var(--wb-cyan-soft);
  border-color: var(--wb-cyan-border);
  color: var(--wb-cyan-text);
}

.wb-autoring-pill.active .wb-pill-dot {
  background: var(--wb-cyan);
}

/* Stroke Width & Ink Color Controls */
.wb-stroke-widths,
.wb-ink-swatches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wb-width-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.wb-width-btn:hover {
  background: var(--wb-pill-hover);
}

.wb-width-btn.active {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
}

.wb-width-dot {
  display: block;
  width: var(--dot-size, 6px);
  height: var(--dot-size, 6px);
  border-radius: 50%;
  background: var(--wb-text);
}

.wb-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--wb-border-strong);
  background: var(--swatch, #38bdf8);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wb-swatch-btn:hover {
  transform: scale(1.1);
}

.wb-swatch-btn.active {
  box-shadow: 0 0 0 2px var(--wb-dock-bg), 0 0 0 4px var(--wb-text);
}

.wb-swatch-adaptive {
  background: linear-gradient(135deg, #f8fafc 50%, #0f172a 50%);
}

/* Status Toast Banner */
.wb-status-banner {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--wb-toast-bg);
  color: var(--wb-toast-text);
  border: 1px solid var(--wb-border-strong);
  box-shadow: var(--wb-card-shadow);
  backdrop-filter: blur(14px);
  max-width: min(92vw, 620px);
  text-align: center;
}

.wb-status-banner.error {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.94);
  color: #fef2f2;
}

.wb-status-banner.hidden {
  display: none !important;
}

/* Bottom Voice & Command Bar */
.wb-bottom-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--wb-surface);
  border-top: 1px solid var(--wb-border);
  flex-shrink: 0;
}

.wb-voice-mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9999px;
  border: 1px solid rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#whiteboard-overlay[data-wb-theme="light"] .wb-voice-mic-btn {
  color: #be123c;
}

.wb-voice-mic-btn.recording {
  background: #e11d48;
  border-color: #fb7185;
  color: #ffffff !important;
  animation: pulse 1.2s infinite;
}

.wb-command-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  background: var(--wb-input-bg);
  border: 1px solid var(--wb-border);
  border-radius: 9999px;
  padding: 0 15px;
  color: var(--wb-text);
  font-size: 13px;
  outline: none;
}

.wb-command-input:focus {
  border-color: var(--wb-accent);
}

.wb-speak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid var(--wb-border);
  background: var(--wb-pill-bg);
  color: var(--wb-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.wb-speak-pill.active {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
  color: var(--wb-accent);
}

.wb-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--wb-accent-border);
  background: var(--wb-accent-soft);
  color: var(--wb-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Studio Confirmation / Input Modal */
.wb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wb-modal-backdrop.hidden {
  display: none !important;
}

.wb-modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--wb-surface-elevated);
  border: 1px solid var(--wb-border-strong);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--wb-card-shadow);
  color: var(--wb-text);
}

.wb-modal-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.wb-modal-desc {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--wb-text-muted);
}

.wb-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.wb-modal-input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--wb-border-strong);
  background: var(--wb-input-bg);
  color: var(--wb-text);
  font-size: 13px;
  outline: none;
}

.wb-modal-input:focus {
  border-color: var(--wb-accent);
}

.wb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .wb-btn-label {
    display: none;
  }
  .wb-board-select {
    max-width: 140px;
  }
}

.btn-open-job-whiteboard {
  background: rgba(168, 85, 247, 0.18) !important;
  border-color: rgba(192, 132, 252, 0.55) !important;
  color: #e9d5ff !important;
}

.btn-delete-job:hover,
.btn-delete-job:active {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fca5a5 !important;
}

@media (max-width: 768px) {
  .job-actions {
    padding-right: 136px;
  }
}

/* --- Pending / Uploading Voice Recording Optimistic Card --- */
.pending-voice-card {
  margin: 10px 0 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(24, 24, 32, 0.92);
  border: 1px solid rgba(129, 140, 248, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-voice-card.is-error {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(69, 10, 10, 0.32);
}

.pending-voice-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pending-voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.22);
  animation: pulse 1.3s infinite;
  flex-shrink: 0;
}

.pending-voice-card.is-error .pending-voice-dot {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22);
  animation: none;
}

.pending-voice-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pending-voice-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #f4f4f5);
}

.pending-voice-sub {
  font-size: 12px;
  color: var(--text-muted, #a1a1aa);
}

.pending-voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-voice-retry,
.btn-voice-discard {
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-voice-retry {
  background: rgba(99, 102, 241, 0.26);
  border-color: rgba(129, 140, 248, 0.55);
  color: #e0e7ff;
}

.btn-voice-discard {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

html[data-theme="light"] .pending-voice-card {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .pending-voice-card.is-error {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.45);
}

html[data-theme="light"] .pending-voice-title {
  color: #09090b;
}

html[data-theme="light"] .pending-voice-sub {
  color: #52525b;
}

html[data-theme="light"] .btn-voice-retry {
  background: #eef2ff;
  border-color: #6366f1;
  color: #3730a3;
}

html[data-theme="light"] .btn-voice-discard {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.14);
  color: #3f3f46;
}

/* ==========================================================================
   Unified Conversation Mode (Chat <-> Whiteboard) & Listen/Read Queue System
   ========================================================================== */

/* Sidebar 2-Button Creation Row (+ New Chat | + Whiteboard) */
.sidebar-new-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.sidebar-new-row .sidebar-new-btn,
.sidebar-new-row .sidebar-new-wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.sidebar-new-wb-btn {
  background: rgba(99, 102, 241, 0.14) !important;
  border: 1px solid rgba(129, 140, 248, 0.42) !important;
  color: #c7d2fe !important;
}

.sidebar-new-wb-btn:hover {
  background: rgba(99, 102, 241, 0.24) !important;
  border-color: rgba(129, 140, 248, 0.68) !important;
  color: #ffffff !important;
}

html[data-theme="light"] .sidebar-new-wb-btn {
  background: rgba(79, 70, 229, 0.09) !important;
  border-color: rgba(79, 70, 229, 0.35) !important;
  color: #3730a3 !important;
}

.sidebar-quick-pills {
  grid-template-columns: repeat(3, 1fr) !important;
}

.sidebar-queue-btn.has-items {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: rgba(14, 165, 233, 0.14) !important;
  color: #bae6fd !important;
}

html[data-theme="light"] .sidebar-queue-btn.has-items {
  border-color: rgba(2, 132, 199, 0.45) !important;
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0369a1 !important;
}

.session-wb-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: #c7d2fe;
  margin-left: 5px;
  flex-shrink: 0;
}

html[data-theme="light"] .session-wb-badge {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  color: #4338ca;
}

/* Header Segmented Mode Switcher (Chat | Board) */
.session-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-right: 4px;
  flex-shrink: 0;
}

.session-mode-switch.hidden {
  display: none !important;
}

.session-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.15;
}

.session-mode-btn:hover {
  color: var(--text-primary);
}

.session-mode-btn.active {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .session-mode-switch {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .session-mode-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

@media (max-width: 560px) {
  .session-mode-btn {
    padding: 3.5px 7.5px;
    font-size: 10.5px;
  }
}

/* Whiteboard Overlay (iPad / Desktop Only — Hidden on iPhone) */
.whiteboard-overlay {
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 9800;
}

@media (max-width: 767px) {
  .wb-ipad-only-item,
  .btn-open-job-whiteboard,
  .session-wb-badge,
  #whiteboard-overlay {
    display: none !important;
  }
}

.wb-squirreled-hint {
  font-size: 11px;
  color: var(--wb-text-muted);
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .wb-squirreled-hint {
    display: none !important;
  }
}

/* Squirreled Metatext Drawer inside Converted Whiteboard Heading Cards */
.wb-node-mini-btn.btn-wb-node-peek {
  width: auto !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  gap: 3px;
  background: var(--wb-accent-soft) !important;
  border-color: var(--wb-accent-border) !important;
  color: var(--wb-text) !important;
}

.wb-node-squirreled-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--wb-border);
  max-height: 210px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wb-text);
  cursor: auto;
  user-select: text;
}

#whiteboard-overlay[data-wb-theme="light"] .wb-node-squirreled-box {
  background: rgba(15, 23, 42, 0.04);
}

.wb-node-squirreled-box p {
  margin: 0 0 6px;
}

.wb-node-squirreled-box p:last-child {
  margin-bottom: 0;
}

/* Per-Request "+Audio" Composer Toggle Chip */
.composer-audio-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.composer-audio-req-pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
}

.composer-audio-req-pill.active {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.8);
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.28);
}

.composer-audio-req-pill.read-later-armed {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(192, 132, 252, 0.8);
  color: #f3e8ff;
}

html[data-theme="light"] .composer-audio-req-pill {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: #52525b;
}

html[data-theme="light"] .composer-audio-req-pill.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #075985;
}

@media (max-width: 480px) {
  .composer-audio-req-pill {
    padding: 0 7px;
    font-size: 10.5px;
  }
}

/* Attachment Strip Quick "Save as Note" Action */
.att-quick-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.att-quick-note-btn:hover {
  background: rgba(245, 158, 11, 0.25);
}

html[data-theme="light"] .att-quick-note-btn {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

/* Saved Note Card (user_note) & Whiteboard Snapshot Card (whiteboard_note) */
.saved-note-card {
  border-color: rgba(251, 191, 36, 0.34) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.02)) !important;
}

.saved-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

html[data-theme="light"] .saved-note-pill {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

.note-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-note-analyze-audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.2);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-note-analyze-audio:hover {
  background: rgba(14, 165, 233, 0.32);
}

.btn-note-analyze-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

html[data-theme="light"] .btn-note-analyze-audio {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #075985;
}

html[data-theme="light"] .btn-note-analyze-text {
  background: #f4f4f5;
  border-color: rgba(15, 23, 42, 0.2);
  color: #18181b;
}

/* Drive Mode Unheard Playlist Quick-Start Button */
.drive-queue-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px auto 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.72);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(99, 102, 241, 0.28));
  color: #f0f9ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
}

.drive-queue-play-btn.hidden {
  display: none !important;
}

/* Queue & Playlist Modal (#modal-queue) */
.queue-modal-card {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-now-playing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 600;
}

.queue-now-playing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
}

.queue-now-playing-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.queue-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.queue-tabs-group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.queue-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.queue-tab-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
}

.queue-tab-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.queue-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-play-all-btn,
.queue-mark-all-btn {
  padding: 7px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.queue-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(58vh, 460px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.queue-item-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
}

.queue-item-row.is-playing {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .queue-item-row {
  background: #fafafa;
}

.queue-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.queue-item-session {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.queue-item-status.ready {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.queue-item-status.synth {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

html[data-theme="light"] .queue-item-status.ready {
  background: #dcfce7;
  color: #166534;
}

html[data-theme="light"] .queue-item-status.synth {
  background: #fef3c7;
  color: #92400e;
}

.queue-item-prompt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.queue-item-snippet {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.queue-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.queue-item-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.queue-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   Shared Chat Daily Check-In & MRCS Progress Tracker (Elegant Collaborative Hub)
   ========================================================================== */

.shared-checkin-banner {
  margin: 0 auto 14px;
  max-width: 820px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(6, 78, 59, 0.14));
  padding: 13px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.shared-checkin-banner.hidden {
  display: none !important;
}

html[data-theme="light"] .shared-checkin-banner {
  background: linear-gradient(145deg, #ecfdf5, #f0fdf4);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.checkin-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.checkin-banner-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

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

.checkin-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

html[data-theme="light"] .checkin-streak-pill {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

.checkin-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  cursor: pointer;
}

html[data-theme="light"] .checkin-time-pill {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.15);
  color: #334155;
}

.checkin-banner-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.checkin-stat-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkin-stat-box {
  padding: 5px 10px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html[data-theme="light"] .checkin-stat-box {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.22);
}

.checkin-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.checkin-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 7-Day Mini Sparkline Bar Strip */
.checkin-7day-strip {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  padding: 4px 8px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .checkin-7day-strip {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.2);
}

.checkin-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 24px;
}

.checkin-day-bar-wrap {
  width: 10px;
  height: 22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

html[data-theme="light"] .checkin-day-bar-wrap {
  background: rgba(15, 23, 42, 0.08);
}

.checkin-day-bar-fill {
  width: 100%;
  border-radius: 99px;
  background: #10b981;
  transition: height 0.25s ease;
}

.checkin-day-bar-fill.met-goal {
  background: linear-gradient(180deg, #34d399, #059669);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.55);
}

.checkin-day-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Quick-Log Composer Row inside Banner & Check-In Prompt Card */
.checkin-quicklog-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme="light"] .checkin-quicklog-row {
  border-top-color: rgba(5, 150, 105, 0.18);
}

.checkin-preset-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.checkin-preset-pill:hover {
  background: rgba(16, 185, 129, 0.26);
}

html[data-theme="light"] .checkin-preset-pill {
  background: #d1fae5;
  border-color: #059669;
  color: #065f46;
}

.checkin-num-input {
  width: 74px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 0 8px;
}

.checkin-note-input {
  flex: 1 1 160px;
  min-width: 130px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-size: 12.5px;
  padding: 0 10px;
}

html[data-theme="light"] .checkin-num-input,
html[data-theme="light"] .checkin-note-input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.btn-checkin-submit {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Stream Cards for `checkin_prompt` and `checkin_log` */
.job-card.checkin-stream-card {
  border-color: rgba(16, 185, 129, 0.48) !important;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.09), rgba(20, 20, 24, 0.94)) !important;
}

html[data-theme="light"] .job-card.checkin-stream-card {
  background: linear-gradient(165deg, #ecfdf5, #ffffff) !important;
  border-color: rgba(5, 150, 105, 0.4) !important;
}

.checkin-card-body {
  padding: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkin-question-box {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.checkin-progress-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

html[data-theme="light"] .checkin-progress-bar-track {
  background: rgba(15, 23, 42, 0.1);
}

.checkin-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.3s ease;
}

/* Configuration Box inside #modal-share */
.shared-checkin-config-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
  margin-bottom: 14px;
}

html[data-theme="light"] .shared-checkin-config-card {
  background: #f0fdf4;
  border-color: rgba(5, 150, 105, 0.3);
}

.shared-checkin-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shared-checkin-config-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.shared-checkin-config-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.checkin-enable-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  flex-shrink: 0;
}

.shared-checkin-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 560px) {
  .shared-checkin-config-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Native Image Generation & Calendar Artwork Figures (Gemini Nano Banana 2.1)
   ========================================================================== */

.baryon-generated-figure {
  margin: 12px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .baryon-generated-figure {
  background: #fafafa;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.baryon-generated-img-link {
  display: block;
  width: 100%;
  background: #09090b;
  line-height: 0;
}

.baryon-generated-img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.baryon-generated-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: var(--text-secondary);
}

html[data-theme="light"] .baryon-generated-caption {
  border-top-color: rgba(15, 23, 42, 0.09);
}

.baryon-generated-alt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baryon-img-dl-btn {
  text-decoration: none;
  flex-shrink: 0;
}

/* ==========================================================================
   Elastic Rope Comment Tethers & Check-In Snooze / Past-Day Editor
   ========================================================================== */

.jobs-feed {
  position: relative;
}

.elastic-rope-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}

.elastic-rope-glow {
  fill: none;
  stroke: rgba(192, 132, 252, 0.25);
  stroke-width: 7px;
  stroke-linecap: round;
  filter: blur(2.5px);
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.elastic-rope-core {
  fill: none;
  stroke: #c084fc;
  stroke-width: 2.6px;
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.elastic-rope-braid {
  fill: none;
  stroke: #f0abfc;
  stroke-width: 1.4px;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  animation: ropeFiberFlow 2.6s linear infinite;
}

.elastic-rope-knot {
  fill: #e879f9;
  stroke: #18181b;
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.75));
}

.elastic-rope-group.is-highlight-rope .elastic-rope-glow {
  stroke: rgba(52, 211, 153, 0.26);
}
.elastic-rope-group.is-highlight-rope .elastic-rope-core {
  stroke: #34d399;
}
.elastic-rope-group.is-highlight-rope .elastic-rope-braid {
  stroke: #a7f3d0;
}
.elastic-rope-group.is-highlight-rope .elastic-rope-knot {
  fill: #34d399;
}

@keyframes ropeFiberFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}

@keyframes ropeTwang {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(5px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.elastic-rope-group.rope-plucked {
  animation: ropeTwang 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.rope-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.rope-anchor-pill:hover {
  background: rgba(192, 132, 252, 0.28);
  border-color: #d8b4fe;
  transform: translateY(-1px);
}

.tethered-comment-card {
  margin-left: 22px;
  border: 1.5px solid rgba(192, 132, 252, 0.5) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.11) 0%, rgba(24, 24, 27, 0.92) 100%) !important;
  border-radius: 16px;
  padding: 10px 14px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .tethered-comment-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, #ffffff 100%) !important;
  border-color: rgba(147, 51, 234, 0.45) !important;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.1);
}

.tethered-comment-card.is-highlight-comment {
  border-color: rgba(52, 211, 153, 0.55) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11) 0%, rgba(24, 24, 27, 0.92) 100%) !important;
}

.tethered-rope-pin {
  position: absolute;
  left: -12px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2e1065;
  border: 2px solid #c084fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #f3e8ff;
  cursor: pointer;
  z-index: 7;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.parent-rope-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.24);
  border: 1.5px solid #c084fc;
  color: #f3e8ff;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.45);
}

.job-card.rope-pulse-target,
.tethered-comment-card.rope-pulse-target {
  box-shadow: 0 0 0 3px #d8b4fe, 0 0 26px rgba(192, 132, 252, 0.65) !important;
  transition: box-shadow 0.25s ease;
}

.checkin-snooze-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.checkin-snooze-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkin-snooze-pill:hover {
  background: rgba(96, 165, 250, 0.28);
  border-color: #60a5fa;
  color: #ffffff;
}

.checkin-snoozed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.checkin-date-picker-input {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
}

.nav-dock-reading-ghost {
  width: auto !important;
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
  gap: 5px;
  background: rgba(139, 92, 246, 0.22) !important;
  border: 1px solid rgba(192, 132, 252, 0.52) !important;
  color: #f3e8ff !important;
  opacity: 0.78;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.32);
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.15s ease;
}

.nav-dock-reading-ghost:hover {
  opacity: 1;
  background: rgba(139, 92, 246, 0.4) !important;
  transform: translateY(-1px);
}

.nav-dock-reading-ghost.hidden {
  display: none !important;
}

/* Podcast Roundtable ("In Our Time" British Multi-Voice) Speaker Badges */
.podcast-speaker-badge {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

.podcast-speaker-badge.is-host {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

.podcast-speaker-badge.is-clara {
  background: rgba(244, 114, 182, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.42);
  color: #fbcfe8;
}

.podcast-speaker-badge.is-julian {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

html[data-theme="light"] .podcast-speaker-badge.is-host {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400e;
}

html[data-theme="light"] .podcast-speaker-badge.is-clara {
  background: rgba(190, 24, 93, 0.1);
  border-color: rgba(190, 24, 93, 0.32);
  color: #9d174d;
}

html[data-theme="light"] .podcast-speaker-badge.is-julian {
  background: rgba(3, 105, 161, 0.1);
  border-color: rgba(3, 105, 161, 0.32);
  color: #075985;
}

/* =========================================================================
   Baryon α-Release Evolutionary Lab ("α-Lab") & Feature Capsule Runtime UI
   ========================================================================= */
.alpha-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.22));
  color: #f5d0fe;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.alpha-header-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.45);
}

.alpha-header-pill.is-paused {
  opacity: 0.58;
  filter: grayscale(0.45);
}

.alpha-greek-glyph {
  font-family: ui-serif, Georgia, Cambria, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.alpha-topbar-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 42vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.alpha-topbar-pills::-webkit-scrollbar {
  display: none;
}

.alpha-sdk-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.alpha-sdk-top-pill:hover {
  border-color: rgba(192, 132, 252, 0.6);
  color: #ffffff;
}

.alpha-composer-banners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.alpha-composer-banners:empty {
  display: none;
  margin-bottom: 0;
}

.alpha-composer-banner-slot {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(17, 24, 39, 0.86);
  color: #f1f5f9;
  font-size: 12.5px;
  line-height: 1.42;
}

.alpha-job-panel-slot {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  font-size: 13px;
}

.alpha-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: ui-serif, Georgia, serif;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(236, 72, 153, 0.28));
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #fae8ff;
}

.alpha-lab-modal-card {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.alpha-lab-body,
.alpha-drawer-body {
  overflow-y: auto;
  padding: 4px 2px 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alpha-channel-banner {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.34);
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.alpha-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.alpha-feature-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.alpha-feature-card.is-whacky {
  border-color: rgba(244, 114, 182, 0.42);
  background: linear-gradient(180deg, rgba(83, 24, 68, 0.22), rgba(15, 23, 42, 0.7));
}

.alpha-feature-card.is-useful {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(180deg, rgba(12, 74, 110, 0.22), rgba(15, 23, 42, 0.7));
}

.alpha-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: fit-content;
}

.alpha-cat-pill.whacky {
  background: rgba(244, 114, 182, 0.18);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.45);
}

.alpha-cat-pill.useful {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.alpha-explain-output {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(192, 132, 252, 0.35);
  font-size: 12.8px;
  line-height: 1.52;
}

.alpha-combine-studio {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background: rgba(17, 24, 39, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="light"] .alpha-header-pill {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.14));
  border-color: rgba(126, 34, 206, 0.45);
  color: #6b21a8;
  box-shadow: none;
}

html[data-theme="light"] .alpha-sdk-top-pill,
html[data-theme="light"] .alpha-composer-banner-slot,
html[data-theme="light"] .alpha-job-panel-slot,
html[data-theme="light"] .alpha-feature-card,
html[data-theme="light"] .alpha-combine-studio,
html[data-theme="light"] .alpha-explain-output {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-theme="light"] .alpha-cat-pill.whacky {
  color: #9d174d;
  background: rgba(244, 114, 182, 0.16);
}

html[data-theme="light"] .alpha-cat-pill.useful {
  color: #075985;
  background: rgba(56, 189, 248, 0.16);
}













