/**
 * VANTIX Tool #44 — Voice AI Realtime API Bandwidth & Cost Calculator
 * CAD Dark-Glass Design Language (Obsidian Canvas #0a0c10, Radial Dot-Grid, VANTIX Gold #D4AF37)
 * Zero-Collision & Responsive Containment Architecture (v3.2 SEO/AEO/GEO Magnet & XSS-Sanitized Edition)
 */

:root {
  --voice-canvas: #0a0c10;
  --voice-card-bg: rgba(20, 25, 35, 0.85);
  --voice-card-border: rgba(255, 255, 255, 0.08);
  --voice-card-hover: rgba(255, 255, 255, 0.12);
  --voice-text-main: #f3f4f6;
  --voice-text-muted: #9ca3af;
  --voice-gold: #d4af37;
  --voice-gold-dim: rgba(212, 175, 55, 0.15);
  --voice-cyan: #00e5ff;
  --voice-cyan-dim: rgba(0, 229, 255, 0.12);
  --voice-emerald: #10b981;
  --voice-emerald-dim: rgba(16, 185, 129, 0.12);
  --voice-ruby: #ef4444;
  --voice-ruby-dim: rgba(239, 68, 68, 0.12);
  --voice-amber: #f59e0b;
  --voice-amber-dim: rgba(245, 158, 11, 0.12);
  --voice-purple: #a855f7;
  --voice-purple-dim: rgba(168, 85, 247, 0.12);
  --voice-mono-font: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Menlo, Consolas, monospace;
}

/* Base Container & CAD Canvas — Strict Anti-Overflow & 2-Panel Shell Compatibility */
.voice-calc-app {
  background-color: var(--voice-canvas);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--voice-text-main);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem 1.25rem 3.5rem;
  border-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  overflow-x: clip;
  container-type: inline-size;
  container-name: voiceApp;
}

.voice-container {
  max-width: 1320px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Dynamic pSEO Persona & Regional Calibration Banner (Tool #40/#41/#42 Parity) */
.voice-pseo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.voice-pseo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--voice-mono-font);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--voice-gold);
  color: #0a0c10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Glass Card Primitive — Anti-Collision Enforced */
.voice-glass-card {
  background: var(--voice-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--voice-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.voice-glass-card:hover {
  border-color: var(--voice-card-hover);
}

/* Header & Hero Badge Ribbon */
.voice-header {
  margin-bottom: 1.75rem;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.voice-badge-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

.voice-pill-live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--voice-emerald);
  color: var(--voice-emerald);
}

.voice-pill-tool {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--voice-gold);
  color: var(--voice-gold);
}

.voice-pill-cyan {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--voice-cyan);
  color: var(--voice-cyan);
}

.voice-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: voicePulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

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

.voice-title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--voice-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}

.voice-subtitle {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--voice-text-muted);
  max-width: 860px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
  word-break: break-word;
}

/* Header Action Toolbar & Comet Guide Triggers */
.voice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.voice-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--voice-text-main);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.voice-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.voice-btn:focus-visible,
.voice-preset-chip:focus-visible,
.voice-accordion-header:focus-visible,
.voice-faq-q:focus-visible,
.voice-mode-tab:focus-visible,
.voice-modal-close:focus-visible,
.vantix-guide-trigger:focus-visible,
.voice-toc-link:focus-visible {
  outline: 2px solid var(--voice-gold);
  outline-offset: 2px;
}

.voice-btn-primary {
  background: var(--voice-gold);
  color: #000 !important;
  border-color: var(--voice-gold);
  font-weight: 700;
}

.voice-btn-primary:hover {
  background: #e6c24f;
  color: #000 !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.voice-btn-cyan {
  background: rgba(0, 229, 255, 0.14);
  color: var(--voice-cyan);
  border-color: rgba(0, 229, 255, 0.45);
}

.voice-btn-cyan:hover {
  background: rgba(0, 229, 255, 0.24);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

/* Tool #38/#40/#41/#42 Signature Circular Comet Guide Trigger (?) & Hover Popup */
.vantix-guide-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.vantix-guide-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1.5px solid var(--voice-gold);
  color: var(--voice-gold);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.vantix-guide-trigger:hover,
.vantix-guide-trigger:focus {
  background: var(--voice-gold);
  color: #0a0c10;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.vantix-guide-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 250px;
  background: #111622;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  color: var(--voice-text-main);
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 250;
  text-align: left;
  white-space: normal;
}

.vantix-guide-wrap:hover .vantix-guide-popup,
.vantix-guide-wrap:focus-within .vantix-guide-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .vantix-guide-popup {
    left: auto;
    right: 0;
    transform: translateY(4px);
    max-width: min(250px, calc(100vw - 32px));
  }
  .vantix-guide-wrap:hover .vantix-guide-popup,
  .vantix-guide-wrap:focus-within .vantix-guide-popup {
    transform: translateY(0);
  }
}

.vantix-guide-popup-title {
  font-weight: 700;
  color: var(--voice-gold);
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.vantix-guide-popup-desc {
  color: var(--voice-text-muted);
  font-size: 0.72rem;
}

/* 4-Layer Autonomous Sentinel Bar */
.voice-sentinel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: rgba(15, 20, 30, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.voice-sentinel-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  min-width: 0;
}

.voice-sentinel-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--voice-mono-font);
  font-size: 0.76rem;
  color: var(--voice-text-muted);
  line-height: 1.35;
  word-break: break-word;
}

.voice-sentinel-metric strong {
  color: #ffffff;
}

/* Mode Switcher Segmented Control — Zero Text Collision */
.voice-mode-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(10, 15, 25, 0.9);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--voice-card-border);
  margin: 0.25rem 0 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
  gap: 4px;
}

.voice-mode-tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--voice-text-muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.voice-mode-tab:hover {
  color: #fff;
}

.voice-mode-tab.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--voice-gold);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* 5-Card Executive KPI Ribbon — Container-Aware Anti-Collision Grid */
.voice-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.voice-kpi-card {
  background: rgba(18, 23, 33, 0.88);
  border: 1px solid var(--voice-card-border);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voice-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--voice-gold);
  opacity: 0.85;
}

.voice-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
}

.voice-kpi-cyan::before { background: var(--voice-cyan); }
.voice-kpi-emerald::before { background: var(--voice-emerald); }
.voice-kpi-ruby::before { background: var(--voice-ruby); }
.voice-kpi-purple::before { background: var(--voice-purple); }

.voice-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--voice-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  word-break: break-word;
}

.voice-kpi-value {
  font-family: var(--voice-mono-font);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.voice-kpi-sub {
  font-size: 0.72rem;
  color: var(--voice-text-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* Workload Preset Chips */
.voice-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  min-width: 0;
}

.voice-preset-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--voice-text-muted);
  margin-right: 0.25rem;
}

.voice-preset-chip {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--voice-card-border);
  color: var(--voice-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.voice-preset-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--voice-gold);
}

.voice-preset-chip.active {
  background: var(--voice-gold-dim);
  border-color: var(--voice-gold);
  color: var(--voice-gold);
}

/* Controls Grid — Strict Min-Width 0 Anti-Collision */
.voice-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.voice-grid-2 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.voice-field {
  margin-bottom: 1.2rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Field Header — Wraps Gracefully Without Label/Hint Collision */
.voice-field-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
  width: 100%;
  min-width: 0;
}

.voice-field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--voice-text-main);
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.voice-field-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.voice-value-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: var(--voice-mono-font);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--voice-gold-dim);
  color: var(--voice-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.voice-field-hint {
  font-size: 0.73rem;
  color: var(--voice-text-muted);
  line-height: 1.35;
}

.voice-dual-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.voice-range {
  flex: 1 1 auto;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.voice-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--voice-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  border: 2px solid #0a0c10;
  transition: transform 0.12s ease;
}

.voice-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.voice-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--voice-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  border: 2px solid #0a0c10;
  transition: transform 0.12s ease;
}

/* Slider Milestones (Tool #40/#41 Standard Anti-Collision) */
.voice-slider-milestones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--voice-mono-font);
  font-size: clamp(0.65rem, 1.4vw, 0.7rem);
  color: var(--voice-text-muted);
  margin-top: 0.3rem;
  width: 100%;
  opacity: 0.85;
}

.voice-input-num {
  width: 102px;
  flex-shrink: 0;
  padding: 0.45rem 0.6rem;
  font-family: var(--voice-mono-font);
  font-size: 0.84rem;
  color: #fff;
  background: rgba(10, 15, 25, 0.85);
  border: 1px solid var(--voice-card-border);
  border-radius: 6px;
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.voice-input-num:focus {
  border-color: var(--voice-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.voice-select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.8rem;
  font-size: 0.84rem;
  color: #fff;
  background: rgba(10, 15, 25, 0.88);
  border: 1px solid var(--voice-card-border);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.voice-select:focus {
  border-color: var(--voice-gold);
}

/* Stacked Cost & Bandwidth Ledger Bar — Zero Text Clipping */
.voice-ledger-container {
  margin: 1.5rem 0;
}

.voice-ledger-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1rem;
  margin-bottom: 0.65rem;
}

.voice-ledger-bar {
  display: flex;
  height: 28px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--voice-card-border);
  margin-bottom: 0.85rem;
}

.voice-bar-segment {
  height: 100%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--voice-mono-font);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  min-width: 0;
}

.voice-seg-voice { background: var(--voice-gold); color: #000; }
.voice-seg-waste { background: var(--voice-ruby); color: #fff; }
.voice-seg-stt { background: var(--voice-cyan); color: #000; }
.voice-seg-plat { background: var(--voice-purple); color: #fff; }
.voice-seg-egr { background: var(--voice-emerald); color: #000; }

.voice-ledger-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.78rem;
}

.voice-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--voice-mono-font);
  line-height: 1.3;
}

.voice-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Concurrency & Rate Limit Alert Banner */
.voice-alert-banner {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
  line-height: 1.45;
  box-sizing: border-box;
  width: 100%;
  word-break: break-word;
}

.voice-alert-danger {
  display: flex;
  background: var(--voice-ruby-dim);
  border: 1px solid var(--voice-ruby);
  color: #fca5a5;
}

.voice-alert-warning {
  display: flex;
  background: var(--voice-amber-dim);
  border: 1px solid var(--voice-amber);
  color: #fcd34d;
}

.voice-alert-info {
  display: flex;
  background: var(--voice-cyan-dim);
  border: 1px solid var(--voice-cyan);
  color: #a5f3fc;
}

/* SVG Trajectory Chart — Proportional Aspect Ratio (Zero Text/Circle Distortion) */
.voice-chart-wrapper {
  margin: 1.5rem 0;
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid var(--voice-card-border);
  border-radius: 10px;
  padding: 1.25rem;
  overflow: hidden;
}

.voice-chart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 340px;
  display: block;
}

.voice-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.35rem;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  font-family: var(--voice-mono-font);
  line-height: 1.35;
}

/* Comparison Tables — Touch Scroll & Anti-Collision */
.voice-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--voice-card-border);
  box-sizing: border-box;
}

.voice-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.voice-table th {
  background: rgba(10, 15, 25, 0.95);
  padding: 0.8rem 0.95rem;
  font-weight: 700;
  color: var(--voice-gold);
  border-bottom: 1px solid var(--voice-card-border);
  white-space: nowrap;
}

.voice-table td {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

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

.voice-table-highlight {
  background: rgba(212, 175, 55, 0.06);
}

/* Collapsible Hostile Red-Team Accordion */
.voice-accordion {
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  background: rgba(20, 20, 15, 0.5);
  margin-top: 1.25rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.voice-accordion-header {
  padding: 0.95rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.08);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--voice-amber);
  line-height: 1.35;
}

.voice-accordion-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.voice-accordion.open .voice-accordion-icon {
  transform: rotate(180deg);
}

.voice-accordion-body {
  padding: 1.25rem;
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.voice-accordion.open .voice-accordion-body {
  display: block;
}

/* ==========================================================================
   SEO, AEO & GEO MAGNET WHITEPAPER COMPONENTS (3,500+ Word Authority Guide)
   ========================================================================== */
.voice-article {
  margin-top: 2.5rem;
  line-height: 1.78;
  color: #d1d5db;
  word-break: break-word;
}

.voice-article h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 2.5rem 0 0.95rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--voice-card-border);
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.voice-article h2:first-child {
  margin-top: 0.25rem;
}

.voice-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--voice-gold);
  margin: 1.65rem 0 0.65rem;
  line-height: 1.35;
}

.voice-article p {
  margin-bottom: 1.15rem;
}

.voice-article ul, .voice-article ol {
  margin: 0 0 1.25rem 1.35rem;
}

.voice-article li {
  margin-bottom: 0.6rem;
}

.voice-article code {
  font-family: var(--voice-mono-font);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--voice-cyan);
  font-size: 0.88em;
  word-break: break-word;
}

.voice-article blockquote {
  border-left: 3px solid var(--voice-gold);
  background: rgba(212, 175, 55, 0.05);
  margin: 1.15rem 0;
  padding: 0.85rem 1.15rem;
  border-radius: 0 6px 6px 0;
  color: var(--voice-text-muted);
  overflow-x: auto;
}

/* Interactive Jump-Link Table of Contents (Google Sitelinks & Dwell-Time Magnet) */
.voice-toc-box {
  background: rgba(12, 17, 26, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.voice-toc-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--voice-gold);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.5rem 1.25rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.voice-toc-grid li {
  margin: 0 !important;
  padding: 0 !important;
}

.voice-toc-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--voice-text-main);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.voice-toc-link:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--voice-gold);
}

/* AEO Zero-Click Direct Answer Callout Box (Featured Snippet & AI Overview Target) */
.voice-aeo-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(212, 175, 55, 0.06) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-left: 4px solid var(--voice-cyan);
  border-radius: 10px;
  padding: 1.15rem 1.3rem;
  margin: 1.35rem 0 1.65rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.voice-aeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--voice-mono-font);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--voice-cyan);
  margin-bottom: 0.45rem;
}

.voice-aeo-box p {
  margin: 0 !important;
  font-size: 0.94rem;
  color: #f3f4f6;
  line-height: 1.65;
}

/* Enterprise FinOps Case Study Cards */
.voice-case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  width: 100%;
  min-width: 0;
}

.voice-case-study-card {
  background: rgba(14, 19, 29, 0.9);
  border: 1px solid var(--voice-card-border);
  border-top: 3px solid var(--voice-gold);
  border-radius: 10px;
  padding: 1.25rem;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voice-case-study-card h3 {
  margin-top: 0 !important;
  font-size: 1.02rem !important;
  color: #fff !important;
}

/* Long-Tail & Short-Tail Semantic Keyword Cluster Pills */
.voice-keyword-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--voice-card-border);
}

.voice-keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-family: var(--voice-mono-font);
  font-size: 0.72rem;
  color: var(--voice-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--voice-card-border);
  border-radius: 6px;
  line-height: 1.3;
}

/* FAQ Accordion */
.voice-faq-item {
  border: 1px solid var(--voice-card-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: rgba(15, 20, 30, 0.6);
  overflow: hidden;
}

.voice-faq-q {
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}

.voice-faq-a {
  padding: 0 1.15rem 1.15rem;
  color: var(--voice-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  display: none;
}

.voice-faq-item.open .voice-faq-a {
  display: block;
}

/* Companion Tools Cross-Link Grid */
.voice-companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.voice-companion-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border-radius: 8px;
  background: rgba(18, 23, 33, 0.75);
  border: 1px solid var(--voice-card-border);
  text-decoration: none;
  color: var(--voice-text-main);
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.voice-companion-card:hover {
  border-color: var(--voice-gold);
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.05);
}

.voice-companion-title {
  font-weight: 700;
  color: var(--voice-gold);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.voice-companion-desc {
  font-size: 0.8rem;
  color: var(--voice-text-muted);
  line-height: 1.45;
}

/* Modal for JSON Log Inspector */
.voice-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.voice-modal-backdrop.open {
  display: flex;
}

.voice-modal-card {
  background: #0d1117;
  border: 1px solid var(--voice-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.voice-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.voice-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--voice-gold);
  margin: 0;
}

.voice-modal-close {
  background: transparent;
  border: none;
  color: var(--voice-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.voice-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.voice-textarea {
  width: 100%;
  height: 170px;
  background: #06090e;
  border: 1px solid var(--voice-card-border);
  border-radius: 6px;
  color: var(--voice-cyan);
  font-family: var(--voice-mono-font);
  font-size: 0.8rem;
  padding: 0.75rem;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  line-height: 1.45;
}

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

/* Container & Responsive Mobile Rules */
@media (max-width: 768px) {
  .voice-calc-app {
    padding: 1rem 0.75rem 2.5rem;
  }
  .voice-glass-card {
    padding: 1.15rem;
  }
  .voice-sentinel-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .voice-kpi-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .voice-mode-switcher {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .voice-mode-tab {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
  .voice-dual-control {
    gap: 0.5rem;
  }
  .voice-input-num {
    width: 88px;
  }
}

@media (max-width: 480px) {
  .voice-kpi-ribbon {
    grid-template-columns: 1fr;
  }
}
