:root {
  --bg-void: #050507;
  --bg-obsidian: #0B0B0D;
  --bg-surface: #111116;
  --bg-surface-elevated: #17171E;
  --border-gold: #3F3522;
  --border-gold-strong: #6E5629;
  --border-gold-soft: rgba(212, 175, 55, 0.22);
  --gold-antique: #9E7D3A;
  --gold-bright: #D4AF37;
  --gold-pale: #EAD8B1;
  --parchment: #F3E8D2;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg-void: #EAE2D1;
  --bg-obsidian: #F4EFE4;
  --bg-surface: #FAF6EE;
  --bg-surface-elevated: #FFFFFF;
  --border-gold: #D3C19E;
  --border-gold-strong: #A6823B;
  --border-gold-soft: rgba(140, 103, 30, 0.24);
  --gold-antique: #7D5B1C;
  --gold-bright: #9C721D;
  --gold-pale: #4A3512;
  --parchment: #1F1A14;
  --text-muted: #5C5143;
  --text-dim: #756856;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--parchment);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 44%, rgba(212, 175, 55, 0.055) 0%, rgba(11, 11, 13, 0.22) 48%, var(--bg-void) 86%),
    var(--bg-obsidian);
}

/* Latar Grid Katedral Halus */
.app-shell::before {
  content: "";
  position: absolute;
  inset: 54px 0 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(212, 175, 55, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.85) 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.85) 20%, transparent 82%);
}

/* ========================
   LIGHT MODE ("IVORY CATHEDRAL") OVERRIDES
   ======================== */
html[data-theme="light"] .app-shell {
  background:
    radial-gradient(circle at 50% 44%, rgba(168, 124, 42, 0.1) 0%, rgba(244, 239, 228, 0.4) 50%, var(--bg-void) 92%),
    var(--bg-obsidian);
}

html[data-theme="light"] .app-shell::before {
  background-image:
    linear-gradient(to right, rgba(140, 103, 30, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 103, 30, 0.065) 1px, transparent 1px);
}

html[data-theme="light"] .topbar {
  border-bottom: 1px solid #D8CAAE;
  background: linear-gradient(180deg, rgba(252, 249, 242, 0.96) 0%, rgba(243, 236, 222, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(72, 54, 22, 0.08), inset 0 -1px 0 rgba(156, 114, 29, 0.14);
}

html[data-theme="light"] .brand-logo { background: #F4EFE4; }
html[data-theme="light"] .brand-title { text-shadow: none; }

html[data-theme="light"] .core-pill {
  background: rgba(156, 114, 29, 0.12);
  border-color: rgba(156, 114, 29, 0.34);
  color: #7D5B1C;
}

html[data-theme="light"] .meta-badge {
  background: rgba(255, 252, 246, 0.92);
  border-color: #D5C6A7;
  color: #3F362B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .meta-badge.online {
  border-color: rgba(22, 163, 74, 0.42);
  color: #166534;
}

html[data-theme="light"] .meta-badge.offline {
  border-color: rgba(220, 38, 38, 0.42);
  color: #991B1B;
}

html[data-theme="light"] .meta-badge.gold {
  border-color: rgba(156, 114, 29, 0.38);
  color: #6B4C13;
}

html[data-theme="light"] .meta-badge.warn {
  border-color: rgba(217, 119, 6, 0.42);
  color: #92400E;
}

html[data-theme="light"] .mode-indicator {
  background: rgba(255, 252, 246, 0.95);
  border-color: #CEBD9B;
}

html[data-theme="light"] .icon-btn { color: #524637; }
html[data-theme="light"] .icon-btn:hover {
  background: rgba(156, 114, 29, 0.12);
  border-color: rgba(156, 114, 29, 0.3);
  color: #1F1A14;
}
html[data-theme="light"] .icon-btn.close-btn:hover {
  background: rgba(185, 28, 28, 0.9);
  color: #FFFFFF;
}

html[data-theme="light"] .corner-bracket { border-color: rgba(140, 103, 30, 0.52); }

html[data-theme="light"] .hud-glass-card {
  background: rgba(252, 249, 242, 0.82);
  border-color: rgba(184, 155, 98, 0.62);
  box-shadow: 0 12px 32px rgba(72, 54, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .hud-card-head { border-bottom-color: rgba(184, 155, 98, 0.36); }
html[data-theme="light"] .meter-track { background: #E7DEC9; border-color: #CEBD9B; }
html[data-theme="light"] .tech-chip {
  background: rgba(156, 114, 29, 0.08);
  border-color: #D5C6A7;
  color: #4A3E30;
}
html[data-theme="light"] .mini-log-line { color: #3D342A; }

html[data-theme="light"] .live-subtitle {
  background: rgba(255, 252, 246, 0.88);
  border-color: rgba(156, 114, 29, 0.35);
  color: #3B2B11;
  box-shadow: 0 10px 26px rgba(72, 54, 22, 0.14);
}

html[data-theme="light"] .status-text {
  color: #241D15;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .speaker-pill {
  background: rgba(255, 252, 246, 0.94);
  border-color: #C7B795;
  box-shadow: 0 6px 18px rgba(72, 54, 22, 0.12);
}
html[data-theme="light"] .speaker-pill .pill-label { color: #4A3E30; }
html[data-theme="light"] .speaker-pill.master { border-color: #9C721D; }
html[data-theme="light"] .speaker-pill.master .pill-label { color: #241D15; }

html[data-theme="light"] .quick-trigger-btn,
html[data-theme="light"] .mic-toggle-btn,
html[data-theme="light"] .hud-icon-pill {
  background: rgba(255, 252, 246, 0.94);
  border-color: #C7B795;
  color: #3F362B;
  box-shadow: 0 6px 18px rgba(72, 54, 22, 0.12);
}
html[data-theme="light"] .mic-toggle-btn.active {
  background: rgba(236, 253, 245, 0.96);
  border-color: rgba(22, 163, 74, 0.5);
  color: #166534;
}
html[data-theme="light"] .quick-trigger-btn.hands-free {
  background: rgba(239, 246, 255, 0.96);
  border-color: rgba(2, 132, 199, 0.45);
  color: #075985;
}

html[data-theme="light"] .upload-btn {
  background: linear-gradient(180deg, #FFFDF8 0%, #EFE6D4 100%);
  border-color: #A6823B;
  color: #543A10;
  box-shadow: 0 8px 20px rgba(72, 54, 22, 0.14);
}
html[data-theme="light"] .upload-btn:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: #8C671E;
  box-shadow: 0 8px 24px rgba(156, 114, 29, 0.22);
}

html[data-theme="light"] .command-bar {
  background: rgba(255, 252, 246, 0.95);
  border-color: #A6823B;
  box-shadow: 0 10px 28px rgba(72, 54, 22, 0.14);
}
html[data-theme="light"] .command-input {
  color: #1F1A14;
}
html[data-theme="light"] .command-input::placeholder {
  color: #756856;
}

html[data-theme="light"] .drawer-backdrop,
html[data-theme="light"] .modal-backdrop { background: rgba(232, 224, 206, 0.76); }
html[data-theme="light"] .settings-drawer {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 124, 42, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.98) 0%, rgba(242, 235, 221, 0.99) 100%);
  border-top-color: #D5C6A7;
}
html[data-theme="light"] .drawer-header { border-bottom-color: #DED0B6; }
html[data-theme="light"] .gothic-card,
html[data-theme="light"] .modal-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5EB 100%);
  border-color: #D9CBAF;
  box-shadow: 0 14px 36px rgba(72, 54, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .card-title { color: #1F1A14; }
html[data-theme="light"] .card-pill {
  background: rgba(156, 114, 29, 0.12);
  border-color: rgba(156, 114, 29, 0.3);
  color: #6B4C13;
}
html[data-theme="light"] .enroll-status { color: #B45309; }
html[data-theme="light"] .enroll-status.enrolled { color: #15803D; }
html[data-theme="light"] .enroll-guide {
  background: #F6F0E3;
  border-color: #C7B48E;
}
html[data-theme="light"] .enroll-guide.recording {
  border-color: #9C721D;
  background: rgba(212, 175, 55, 0.14);
}
html[data-theme="light"] .enroll-guide.recording .enroll-guide-label { color: #9C721D; }
html[data-theme="light"] .progress-track { background: #E7DEC9; border-color: #D2C2A2; }
html[data-theme="light"] .action-btn {
  background: linear-gradient(180deg, #FFFDF8 0%, #EFE5D1 100%);
  border-color: #A6823B;
  color: #4A3512;
}
html[data-theme="light"] .action-btn:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: #8C671E;
}
html[data-theme="light"] .folder-input,
html[data-theme="light"] .voice-select,
html[data-theme="light"] .kv-textarea {
  background: #FAF6EE;
  border-color: #D2C2A2;
  color: #241D15;
}
html[data-theme="light"] .browse-btn,
html[data-theme="light"] .mini-btn {
  background: #F2E9D7;
  border-color: #C4B089;
  color: #4A3512;
}
html[data-theme="light"] .browse-btn:hover:not(:disabled),
html[data-theme="light"] .mini-btn:hover {
  background: #FFFDF8;
  border-color: #8C671E;
}
html[data-theme="light"] .toggle-label { color: #2D251C; }
html[data-theme="light"] .slider { background: #DCD1BB; border-color: #C2B08E; }
html[data-theme="light"] .slider::before { background: #7D6D57; }
html[data-theme="light"] .switch input:checked + .slider {
  background: rgba(156, 114, 29, 0.25);
  border-color: #9C721D;
}
html[data-theme="light"] .switch input:checked + .slider::before { background: #9C721D; }
html[data-theme="light"] .log-box {
  background: #FAF6EE;
  border-color: #D5C6A7;
  color: #2A231B;
}
html[data-theme="light"] .kv-key-item {
  background: #FAF6EE;
  border-color: #D5C6A7;
  color: #2A231B;
}
html[data-theme="light"] .kv-key-item.active {
  background: rgba(156, 114, 29, 0.14);
  border-color: #9C721D;
  color: #4A3512;
}
html[data-theme="light"] .drawer-body::-webkit-scrollbar-thumb,
html[data-theme="light"] .log-box::-webkit-scrollbar-thumb { background: #CBB996; }
html[data-theme="light"] .toast {
  background: rgba(255, 252, 246, 0.97);
  border-color: #A6823B;
  color: #1F1A14;
  box-shadow: 0 12px 28px rgba(72, 54, 22, 0.18);
}

/* ========================
   TOPBAR LUXURY FUTURISTIK
   ======================== */
.topbar {
  position: relative;
  z-index: 50;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #282115;
  background: linear-gradient(180deg, rgba(16, 15, 20, 0.98) 0%, rgba(10, 10, 13, 0.96) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(212, 175, 55, 0.08);
  cursor: default;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  pointer-events: none;
}

.brand-crest {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.68), rgba(63, 53, 34, 0.4));
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0B0B0D;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--parchment);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

.core-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.26);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* Telemetry Badges di Tengah Topbar */
.topbar-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  overflow: hidden;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid #2A241A;
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: #CBD5E1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s ease, color 0.35s ease;
}

.meta-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  flex-shrink: 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.meta-badge.online {
  border-color: rgba(74, 222, 128, 0.32);
  color: #D1FAE5;
}

.meta-badge.online .dot {
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.meta-badge.offline {
  border-color: rgba(248, 113, 113, 0.35);
  color: #FECACA;
}

.meta-badge.offline .dot {
  background: #F87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
}

.meta-badge.gold {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold-pale);
}

.meta-badge.gold .dot {
  background: var(--gold-bright);
  box-shadow: 0 0 7px rgba(212, 175, 55, 0.7);
}

.meta-badge.warn {
  border-color: rgba(251, 191, 36, 0.32);
  color: #FDE68A;
}

.meta-badge.warn .dot {
  background: #FBBF24;
  box-shadow: 0 0 7px rgba(251, 191, 36, 0.7);
}

.meta-badge.clock {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold-pale);
  border-color: #2E271B;
}

@media (max-width: 1220px) {
  .meta-badge.clock { display: none; }
}

@media (max-width: 1080px) {
  .core-pill,
  .meta-badge.voice-chip { display: none; }
}

@media (max-width: 900px) {
  .meta-badge.mood-chip { display: none; }
}

@media (max-width: 680px) {
  .meta-badge.bio-chip { display: none; }
  .brand-title { font-size: 12px; letter-spacing: 0.14em; }
  .mode-indicator { padding: 0 9px; font-size: 9px; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid #352C1D;
  cursor: default;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  transition: color 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo);
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  transition: background-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.icon-btn {
  width: 34px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.16s ease;
}

.icon-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.24);
  color: var(--parchment);
}

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

.icon-btn.close-btn:hover {
  background: rgba(153, 27, 27, 0.85);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FFFFFF;
}

/* ========================
   STAGE FULL-SCREEN
   ======================== */
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

#orbCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: absolute;
  inset: 16px;
  z-index: 25;
  border-radius: 16px;
  border: 2px dashed var(--gold-bright);
  background: rgba(10, 10, 14, 0.76);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold-pale);
  pointer-events: none;
}

.drop-overlay.visible {
  display: flex;
}

.drop-overlay strong {
  font-size: 16px;
  letter-spacing: 0.12em;
}

.drop-overlay span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Ornamen Filigree Sudut Arsitektur Gothic */
.gothic-frame {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 2;
}

.corner-bracket {
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: rgba(158, 125, 58, 0.55);
  border-style: solid;
}

.corner-bracket.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 6px; }
.corner-bracket.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 6px; }
.corner-bracket.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 6px; }
.corner-bracket.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 6px; }

/* Panel Telemetri Kiri & Kanan (Wide Fullscreen) */
.side-telemetry {
  position: absolute;
  top: 50%;
  transform: translateY(-54%);
  width: 280px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-telemetry.left { left: 32px; }
.side-telemetry.right { right: 32px; }

@media (max-width: 1020px) {
  .side-telemetry { display: none; }
}

.hud-glass-card {
  background: rgba(13, 13, 18, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(63, 53, 34, 0.78);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(212, 175, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hud-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(63, 53, 34, 0.55);
}

.hud-card-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-pale);
}

.hud-card-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

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

.hud-kv-val {
  font-weight: 600;
  color: var(--parchment);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

/* Spectrum Mini Bar di Panel Kiri */
.acoustic-bars {
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 2px 0;
}

.acoustic-bar {
  flex: 1;
  height: 16%;
  min-height: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FDE047 0%, #D4AF37 55%, #5A4622 100%);
  opacity: 0.72;
  transition: height 0.08s linear, opacity 0.2s ease;
}

.meter-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #1A1A22;
  border: 1px solid #2A241A;
  overflow: hidden;
}

.meter-fill {
  width: 4%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9E7D3A 0%, #D4AF37 60%, #FDE047 100%);
  transition: width 0.08s linear;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2B251B;
  color: #CBD5E1;
}

.mini-log-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 156px;
  overflow: hidden;
}

.mini-log-line {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
  color: #CBD5E1;
  padding-left: 8px;
  border-left: 1.5px solid rgba(158, 125, 58, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hud-hint {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
}

/* HUD Gothic Overlay Tengah Bawah + Ephemeral Live Subtitle */
.hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 28px;
}

.hud-block {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.live-subtitle {
  min-height: 24px;
  max-width: 680px;
  max-height: 110px;
  overflow-y: auto;
  padding: 7px 18px;
  border-radius: 12px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  text-align: center;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.45;
  color: var(--gold-pale);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.live-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.gothic-divider {
  width: 340px;
  max-width: 82vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(158, 125, 58, 0.85) 100%);
}

.divider-line.right {
  background: linear-gradient(90deg, rgba(158, 125, 58, 0.85) 0%, transparent 100%);
}

.divider-crest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #C9A24B;
}

.crest-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #C9A24B;
}

.crest-diamond {
  width: 8px;
  height: 8px;
  background: #C9A24B;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201, 162, 75, 0.55);
}

.status-text {
  min-height: 24px;
  max-width: 100%;
  text-align: center;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--parchment);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88);
  transition: opacity 0.25s ease;
}

.hud-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.speaker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 158px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(19, 19, 25, 0.92);
  border: 1px solid #3F3F46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: border-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.speaker-pill.master {
  border-color: #7A5F2E;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.14), 0 0 22px rgba(110, 86, 41, 0.3);
}

.speaker-pill.guest { border-color: #52525B; }

.pill-gem {
  width: 7px;
  height: 7px;
  background: #9E7D3A;
  transform: rotate(45deg);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.speaker-pill.master .pill-gem {
  background: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
}

.speaker-pill.guest .pill-gem {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
}

.pill-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: #BAB09C;
  transition: color 0.3s ease;
}

.speaker-pill.master .pill-label { color: var(--parchment); }
.speaker-pill.guest .pill-label { color: #E2E8F0; }

/* Mic Toggle Pill */
.mic-toggle-btn {
  pointer-events: auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(17, 17, 23, 0.92);
  border: 1px solid #4E3E22;
  color: var(--gold-pale);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.mic-toggle-btn:hover {
  border-color: var(--gold-bright);
  color: var(--parchment);
}

.mic-toggle-btn.active {
  background: rgba(16, 36, 26, 0.92);
  border-color: rgba(74, 222, 128, 0.55);
  color: #BBF7D0;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.22), 0 6px 20px rgba(0, 0, 0, 0.5);
}

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

/* Quick Trigger Toggle Pill */
.quick-trigger-btn {
  pointer-events: auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(17, 17, 23, 0.92);
  border: 1px solid #3C3322;
  color: #CBD5E1;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}

.quick-trigger-btn .qt-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.quick-trigger-btn.hands-free {
  border-color: rgba(56, 189, 248, 0.45);
  color: #E0F2FE;
  background: rgba(13, 24, 38, 0.9);
}

.quick-trigger-btn.hands-free .qt-dot {
  background: #38BDF8;
  box-shadow: 0 0 9px rgba(56, 189, 248, 0.85);
}

.quick-trigger-btn:hover {
  border-color: var(--gold-bright);
  color: var(--parchment);
}

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

/* Tombol Kapsul Upload File */
.upload-btn {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  height: 38px;
  min-width: 204px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #17151C 0%, #101015 100%);
  border: 1px solid #634D25;
  color: var(--gold-pale);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition:
    border-color 0.28s var(--ease-out-expo),
    background-color 0.28s var(--ease-out-expo),
    transform 0.18s var(--ease-out-expo),
    box-shadow 0.28s var(--ease-out-expo);
}

.upload-btn::before {
  content: "";
  position: absolute;
  inset: 0 0 46% 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.upload-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: #1C1A24;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.2);
}

.upload-btn:hover:not(:disabled)::before { opacity: 1; }
.upload-btn:active:not(:disabled) { transform: scale(0.98); }
.upload-btn:disabled { opacity: 0.52; cursor: default; }

/* Small Icon Pill (Keyboard / Text Command Toggle) */
.hud-icon-pill {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 17, 23, 0.92);
  border: 1px solid #3C3322;
  color: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.hud-icon-pill:hover,
.hud-icon-pill.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.hud-icon-pill:active { transform: scale(0.95); }

/* Command Bar (Opsional Ketik Perintah) */
.command-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 580px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 16px;
  border-radius: 999px;
  background: rgba(15, 15, 21, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid #5A4622;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.command-bar.open {
  display: flex;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-size: 13px;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: text;
  -webkit-user-select: text;
}

.command-input::placeholder {
  color: var(--text-dim);
}

.command-send-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #6E5629;
  background: linear-gradient(180deg, #272013 0%, #17130C 100%);
  color: var(--gold-pale);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.command-send-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
}

.command-send-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ========================
   SETTINGS CONTROL DECK (FULL SCREEN OVERLAY)
   ======================== */
.drawer-backdrop {
  position: absolute;
  inset: 54px 0 0 0;
  z-index: 30;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s var(--ease-out-expo);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, rgba(14, 14, 19, 0.97) 0%, rgba(8, 8, 11, 0.99) 100%);
  border-top: 1px solid #2A2317;
  transform: translateY(18px) scale(0.99);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.36s var(--ease-out-expo),
    opacity 0.3s var(--ease-out-expo);
}

.settings-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  height: 56px;
  flex-shrink: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #221E16;
}

.drawer-header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-pale);
}

.drawer-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

@media (max-width: 720px) {
  .drawer-subtitle { display: none; }
  .drawer-header { padding: 0 16px; }
  .drawer-body { padding: 16px; }
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 32px;
  display: flex;
  justify-content: center;
}

.settings-grid {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.settings-col-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-col-right {
  display: flex;
  flex-direction: column;
}

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

.drawer-body::-webkit-scrollbar,
.log-box::-webkit-scrollbar,
.kv-key-list::-webkit-scrollbar {
  width: 6px;
}

.drawer-body::-webkit-scrollbar-track,
.log-box::-webkit-scrollbar-track,
.kv-key-list::-webkit-scrollbar-track {
  background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb,
.log-box::-webkit-scrollbar-thumb,
.kv-key-list::-webkit-scrollbar-thumb {
  background: #2C271D;
  border-radius: 999px;
}

.gothic-card {
  background: linear-gradient(180deg, #131319 0%, #101015 100%);
  border: 1px solid #2E271C;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.05);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #F8FAFC;
}

.card-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-pale);
}

.enroll-status {
  font-size: 12px;
  font-weight: 600;
  color: #FBBF24;
}

.enroll-status.enrolled { color: #4ADE80; }

.enroll-guide {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px dashed #3F3522;
  background: #0B0B0F;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.enroll-guide.recording {
  border-style: solid;
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.18);
}

.enroll-guide-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--gold-antique);
  transition: color 0.25s ease;
}

.enroll-guide.recording .enroll-guide-label { color: #FDE047; }

.enroll-guide-quote {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--parchment);
  user-select: text;
  -webkit-user-select: text;
}

.enroll-guide-tip {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #1B1B22;
  overflow: hidden;
  border: 1px solid #262630;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9E7D3A 0%, #D4AF37 55%, #FDE047 100%);
  transition: width 0.18s ease-out;
}

.action-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid #5A4622;
  background: linear-gradient(180deg, #1E1A12 0%, #14120D 100%);
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.15s ease;
}

.action-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #282216 0%, #191610 100%);
}

.action-btn:active:not(:disabled) { transform: scale(0.98); }
.action-btn:disabled { opacity: 0.5; cursor: default; }

.action-btn.danger {
  border-color: rgba(220, 38, 38, 0.55);
  color: #FCA5A5;
}

.action-btn.danger:hover:not(:disabled) {
  border-color: #EF4444;
}

.folder-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.folder-input {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #2A2A34;
  background: #0B0B0F;
  color: #CBD5E1;
  font-size: 12px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.folder-input:focus {
  border-color: var(--gold-bright);
}

.browse-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #4A3B1E;
  background: #18181F;
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.browse-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: #20202A;
}

.browse-btn:disabled { opacity: 0.5; cursor: default; }

.voice-select {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #2A2A34;
  background: #0B0B0F;
  color: var(--parchment);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-label {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.range-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-pale);
  min-width: 38px;
  text-align: right;
  font-family: Consolas, monospace;
}

.gold-range {
  flex: 1;
  accent-color: var(--gold-bright);
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 3px;
  cursor: pointer;
}

.toggle-label { font-size: 12px; color: #CBD5E1; }

.storage-note {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25252E;
  border: 1px solid #3A3A47;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #94A3B8;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease;
}

.switch input:checked + .slider {
  background: rgba(212, 175, 55, 0.24);
  border-color: var(--gold-bright);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
  background: var(--gold-bright);
}

.log-card { flex: 1; min-height: 360px; }

.log-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid #3A3222;
  background: #17171E;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mini-btn:hover {
  border-color: var(--gold-bright);
  color: var(--parchment);
}

.log-box {
  flex: 1;
  width: 100%;
  min-height: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #22222B;
  background: #09090C;
  color: #CBD5E1;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11px;
  line-height: 1.52;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

/* ========================
   AUTH & KV MODALS
   ======================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  background: linear-gradient(180deg, #14141B 0%, #0D0D12 100%);
  border: 1px solid #4A3B1E;
  padding: 22px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-card.wide {
  max-width: 820px;
  max-height: 86vh;
}

.modal-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-error {
  font-size: 11.5px;
  color: #F87171;
  min-height: 16px;
}

.kv-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  min-height: 320px;
  max-height: 58vh;
}

@media (max-width: 720px) {
  .kv-layout {
    grid-template-columns: 1fr;
    max-height: 66vh;
    overflow-y: auto;
  }
}

.kv-key-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.kv-key-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #26231C;
  background: #0B0B0F;
  color: #CBD5E1;
  font-family: Consolas, monospace;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kv-key-item:hover {
  border-color: var(--gold-antique);
}

.kv-key-item.active {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-pale);
}

.kv-editor-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-textarea {
  flex: 1;
  min-height: 190px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2A2A34;
  background: #09090D;
  color: var(--parchment);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11.5px;
  line-height: 1.48;
  resize: vertical;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

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

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 95;
  max-width: 520px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(18, 17, 24, 0.96);
  border: 1px solid #634D25;
  color: var(--parchment);
  font-size: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.28s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
