html { scroll-behavior: smooth; overflow-x: hidden; }
/* SonicVoice Studio - Enterprise Obsidian Design System */
/* Inspired by Linear, Vercel & Stripe Workbench */

:root {
  --bg-app: #09090b;
  --bg-surface: #0e0e11;
  --bg-card: #141418;
  --bg-card-hover: #1a1a20;
  --bg-input: #121216;
  --bg-terminal: #0a0a0d;
  
  --border-subtle: #1e1e24;
  --border-default: #26262d;
  --border-focus: #52525b;
  
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #52525b;
  
  --color-white: #ffffff;
  --color-emerald: #10b981;
  --color-emerald-bg: rgba(16, 185, 129, 0.08);
  --color-emerald-border: rgba(16, 185, 129, 0.25);
  
  --color-amber: #f59e0b;
  --color-amber-bg: rgba(245, 158, 11, 0.08);
  --color-amber-border: rgba(245, 158, 11, 0.25);
  
  --color-cyan: #06b6d4;
  --color-cyan-bg: rgba(6, 182, 212, 0.08);
  --color-cyan-border: rgba(6, 182, 212, 0.25);
  
  --color-rose: #f43f5e;
  --color-rose-bg: rgba(244, 63, 94, 0.08);
  --color-rose-border: rgba(244, 63, 94, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Top Header ---------------- */
.app-header {
  height: 54px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  user-select: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 18px;
  height: 18px;
  color: var(--color-white);
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.env-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.header-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
}

.agent-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selector-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.custom-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-width: 240px;
}

.custom-select:hover {
  border-color: var(--border-focus);
}

.custom-select:focus {
  border-color: var(--color-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emerald);
}

/* ---------------- Workspace Layout ---------------- */
.app-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 52% 48%;
  height: calc(100vh - 54px);
  overflow: hidden;
}

/* ---------------- Left Builder Pane ---------------- */
.builder-pane {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.segmented-nav-wrapper {
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.segmented-nav {
  display: flex;
  gap: 4px;
  background-color: var(--bg-card);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.nav-segment {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.nav-segment svg {
  stroke: currentColor;
}

.nav-segment:hover {
  color: var(--text-primary);
}

.nav-segment.active {
  background-color: var(--bg-surface);
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.count-pill {
  background: var(--border-default);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
}

.pane-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}

.config-view {
  display: none;
}

.config-view.active {
  display: block;
}

/* ---------------- Form Elements ---------------- */
.field-block {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  border-radius: 6px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--border-focus);
}

.field-textarea {
  resize: vertical;
  line-height: 1.5;
}

.field-caption {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.mono {
  font-family: var(--font-mono);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prompt-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.prompt-info-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

/* Sliders */
.range-slider {
  width: 100%;
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  outline: none;
  accent-color: var(--color-white);
  cursor: pointer;
  margin: 8px 0;
}

.slider-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
}

/* Checkboxes & Switches */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkbox-custom {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.checkbox-container input:checked + .checkbox-custom {
  background: var(--color-white);
  border-color: var(--color-white);
}

.checkbox-container input:checked + .checkbox-custom::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.checkbox-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-knob {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-default);
  transition: .2s;
  border-radius: 20px;
}

.slider-knob:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  transition: .2s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider-knob {
  background-color: var(--color-emerald);
}

.switch-toggle input:checked + .slider-knob:before {
  transform: translateX(16px);
}

/* Card Containers */
.preview-panel, .toggle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-heading, .toggle-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.preview-sub, .toggle-card-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Tools View */
.tools-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.section-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.tool-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}

.tool-item-card:hover {
  border-color: var(--border-default);
}

.tool-item-left {
  flex: 1;
}

.tool-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tool-func-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
}

.tool-desc-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.tool-meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-item-actions {
  display: flex;
  gap: 6px;
}

/* Method Badges */
.method-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.method-GET { background: var(--color-cyan-bg); color: var(--color-cyan); border: 1px solid var(--color-cyan-border); }
.method-POST { background: var(--color-amber-bg); color: var(--color-amber); border: 1px solid var(--color-amber-border); }
.method-PUT { background: var(--color-emerald-bg); color: var(--color-emerald); border: 1px solid var(--color-emerald-border); }
.method-DELETE { background: var(--color-rose-bg); color: var(--color-rose); border: 1px solid var(--color-rose-border); }

/* ---------------- Right Console Pane ---------------- */
.console-pane {
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  gap: 16px;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-dim);
}

.network-badge.active {
  color: var(--color-emerald);
}

.network-badge.active .network-dot {
  background-color: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

/* Audio Monitor (Studio Grade) */
.audio-monitor {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.monitor-top-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.channel-pill, .rtt-badge {
  font-size: 10px;
  color: var(--text-muted);
}

.duration-counter {
  color: var(--color-white);
  font-weight: 600;
}

.acoustic-disc-container {
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.acoustic-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.disc-inner svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.acoustic-ring-1, .acoustic-ring-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}

.acoustic-disc.live {
  border-color: var(--color-white);
}

.acoustic-disc.live .disc-inner svg {
  color: var(--color-white);
}

.acoustic-disc.active-speech {
  border-color: var(--color-emerald);
}

.acoustic-disc.active-speech .disc-inner svg {
  color: var(--color-emerald);
}

.state-readout {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 10px 0 6px;
  text-align: center;
}

#waveformCanvas {
  width: 100%;
  max-width: 440px;
  height: 38px;
}

/* Telemetry Blocks */
.telemetry-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.telemetry-block.flex-grow {
  flex: 1;
  min-height: 160px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.block-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-feed, .transcript-feed {
  overflow-y: auto;
  max-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-feed-placeholder {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px 0;
}

/* Tool Debug Card */
.debug-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.debug-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.debug-entry-name {
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.debug-status-pill {
  font-size: 10px;
  color: var(--text-muted);
}

.debug-status-pill.success {
  color: var(--color-emerald);
}

.debug-code-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 8px;
  color: #a1a1aa;
  font-size: 10.5px;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Transcript Entry */
.transcript-entry {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0;
}

.speaker-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  height: fit-content;
  flex-shrink: 0;
}

.speaker-user {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.speaker-agent {
  background: var(--color-emerald-bg);
  color: var(--color-emerald);
  border: 1px solid var(--color-emerald-border);
}

.transcript-body {
  color: var(--text-primary);
}

/* ---------------- Buttons System ---------------- */
.btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-solid {
  background-color: var(--color-white);
  color: #000000;
  font-weight: 600;
}

.btn-solid:hover {
  background-color: #e4e4e7;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-outline:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.btn-sm {
  font-size: 11px;
  padding: 4px 10px;
}

.btn-clean {
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
}

.btn-clean:hover {
  color: var(--text-secondary);
}

.btn-call-idle {
  background: var(--color-white);
  color: #000000;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 6px;
}

.btn-call-idle:hover {
  background: #e4e4e7;
}

.btn-call-active {
  background: var(--color-rose);
  color: var(--color-white);
  font-weight: 600;
}

.btn-call-active:hover {
  background: #e11d48;
}

/* ---------------- Modal System ---------------- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

.modal-title-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

.modal-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--color-white);
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer-bar {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.schema-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
}

.mode-pill-group {
  display: flex;
  background: var(--bg-card);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.mode-pill {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.mode-pill.active {
  background: var(--bg-surface);
  color: var(--color-white);
  font-weight: 600;
}

.params-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.param-grid-row {
  display: grid;
  grid-template-columns: 2.5fr 1.8fr 3.5fr 1fr 24px;
  gap: 6px;
  align-items: center;
  background: var(--bg-card);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.param-grid-row input, .param-grid-row select {
  font-size: 11px;
  padding: 5px 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-primary);
}

.btn-remove-row {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.btn-remove-row:hover {
  color: var(--color-rose);
}

.test-webhook-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.test-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.webhook-terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a1a1aa;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.required {
  color: var(--color-rose);
}


/* ==========================================================================
   VOCALLO AUTH & SHARE MODAL EXTENSIONS
   ========================================================================== */

.header-auth-section {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.user-avatar-pill {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #27272a;
  border: 1px solid var(--border-medium);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-email-pill {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-icon-signout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.2s;
}

.btn-icon-signout:hover {
  color: #ef4444;
}

/* Share Dialog */
.share-dialog {
  max-width: 500px !important;
}

.publish-status-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.publish-status-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.status-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.share-url-container {
  display: flex;
  gap: 8px;
}

.share-preview-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Auth Dialog */
.auth-dialog {
  max-width: 440px !important;
}

.auth-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

.auth-alert-box {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-alert-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.auth-alert-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.auth-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.otp-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-box {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  background: #18181b;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.2s;
}

.otp-box:focus {
  border-color: #fff;
  background: #27272a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.otp-action-row {
  display: flex;
  justify-content: flex-end;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-text-link:hover {
  color: #fff;
}


/* Modal Overlay & Dialog Centering */
.modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000 !important;
  padding: 20px;
}

.modal-dialog {
  background: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  padding: 26px 28px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.4;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}


/* ==========================================================================
   VOCALLO PUBLIC LANDING PAGE STYLES (Obsidian Developer Aesthetic)
   ========================================================================== */

.landing-view-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
}

.landing-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.landing-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Landing Hero Section */
.landing-hero-section {
  position: relative;
  padding: 80px 32px 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.landing-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(20, 184, 166, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.hero-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-blue);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Embedded Auth Card in Hero */
.hero-auth-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.auth-card-header {
  margin-bottom: 20px;
}

.auth-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.auth-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-card-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.card-tab {
  flex: 1;
  padding: 10px 4px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.card-tab:hover {
  color: #fff;
}

.card-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

.card-auth-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Features Section */
.landing-features-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #121215;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Architecture Section */
.landing-architecture-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.architecture-diagram-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121215;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 40px;
  gap: 20px;
}

.arch-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.1em;
}

.arch-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.arch-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.arch-arrow {
  font-size: 24px;
  color: var(--text-muted);
}

/* Documentation Section */
.landing-docs-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.doc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.doc-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* About Us Section */
.landing-about-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.about-content-card {
  background: #121215;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px 36px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Contact Us Section */
.landing-contact-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.contact-card {
  background: linear-gradient(135deg, #18181c, #121215);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
}

.contact-email-link {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--accent-blue);
}

.contact-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 32px 32px 32px;
  background: #09090b;
}

.footer-top-row {
  max-width: 1200px;
  margin: 0 auto 36px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom-row {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .landing-nav-links {
    display: none;
  }
  .architecture-diagram-card {
    flex-direction: column;
  }
  .arch-arrow {
    transform: rotate(90deg);
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}


/* Studio View Container Layout */
.studio-view-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-canvas);
  overflow: hidden;
}


/* Clickable Brand Link Styling */
.app-brand {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-brand:hover {
  opacity: 0.88;
}

.app-brand:active {
  transform: scale(0.98);
}

.header-brand {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.header-brand:hover {
  opacity: 0.88;
}

/* =========================================================================
   AGENT MANAGEMENT DASHBOARD VIEW
   ========================================================================= */
.dashboard-view-container {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-header {
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
}

.dash-header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-content {
  flex: 1;
  padding: 40px 24px 80px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.dash-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.dash-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dash-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

.dash-stats .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-default);
}

.dash-stats .stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 14px;
  width: 360px;
  max-width: 100%;
  transition: border-color 0.15s;
}

.dash-search-box:focus-within {
  border-color: #71717a;
}

.dash-search-box svg {
  color: var(--text-dim);
}

.dash-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.dash-search-box input::placeholder {
  color: var(--text-dim);
}

.dash-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Agent Card */
.agent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.agent-card:hover {
  border-color: #52525b;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.agent-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.agent-status-badge.active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.agent-status-badge.draft {
  background: rgba(161, 161, 170, 0.1);
  color: #a1a1aa;
  border: 1px solid rgba(161, 161, 170, 0.2);
}

.agent-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.agent-pill.model-pill {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
}

.agent-pill.tools-pill {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.05);
}

.agent-greeting-preview {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

.agent-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.agent-btn-edit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.create-agent-dashed-card {
  border: 2px dashed var(--border-default);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 12px;
  min-height: 220px;
}

.create-agent-dashed-card:hover {
  border-color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.dashed-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--border-default);
}

.dashed-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.dashed-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 260px;
  line-height: 1.4;
}

/* =========================================================================
   STUDIO WORKSPACE & TAB VISIBILITY FIX
   ========================================================================= */
.builder-tab-content {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.builder-tab-content.active {
  display: flex;
}

/* Console Pane & Testing Stage */
.console-pane {
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  gap: 16px;
  border-left: 1px solid var(--border-subtle);
}

.console-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.console-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.status-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.live {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.status-pill.connecting {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.testing-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.acoustic-disc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.acoustic-disc {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.acoustic-disc.live {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.acoustic-disc.speaking {
  border-color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.disc-core svg {
  color: var(--text-muted);
  transition: color 0.2s;
}

.acoustic-disc.live .disc-core svg {
  color: #fff;
}

.acoustic-disc.speaking .disc-core svg {
  color: #10b981;
}

.waveform-canvas {
  width: 100%;
  max-width: 320px;
  height: 36px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.console-agent-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.call-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.call-metrics-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.metric-timer {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.btn-call-primary {
  background: #10b981;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-call-primary:hover {
  background: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-call-primary.active-call {
  background: #ef4444;
  color: #fff;
}

.btn-call-primary.active-call:hover {
  background: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.telemetry-deck, .transcript-deck {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deck-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.deck-action-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.deck-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.telemetry-feed, .transcript-feed {
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-placeholder {
  color: var(--text-dim);
  font-size: 11px;
  font-style: italic;
}

.transcript-item {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.transcript-item.user {
  border-left: 2px solid #a1a1aa;
}

.transcript-item.agent {
  border-left: 2px solid #10b981;
}

.transcript-speaker {
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.tool-speech-snippet {
  font-size: 11px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

/* Header Workflow Title Input */
.header-workflow-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-workflow-title-wrap:focus-within {
  border-color: #71717a;
  box-shadow: 0 0 0 1px #71717a;
}

.header-workflow-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-workflow-name-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  width: 230px;
  transition: width 0.2s ease;
}

.header-workflow-name-input:focus {
  width: 320px;
}

.edit-pencil-icon {
  color: var(--text-dim);
  pointer-events: none;
}
