:root {
  --poly-primary: #ff7a18;
  --poly-secondary: #ffa726;
  --talk-primary: #1e88e5;
  --talk-secondary: #0d47a1;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-soft: #1d2b52;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 122, 24, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(30, 136, 229, 0.18), transparent 28%),
    var(--bg-dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

button, select, input { font: inherit; }

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 167, 38, 0.92);
  outline-offset: 3px;
}

.enterprise-frame {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

.hero-header {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-logo {
  height: 112px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(255, 122, 24, 0.3));
}

.edition-pill {
  margin-top: -8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--poly-primary), var(--talk-primary));
  color: white;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 20px rgba(255, 122, 24, 0.35);
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.enterprise-nav {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 33, 62, 0.76);
}

.enterprise-nav a,
.nav-button {
  color: #d7dce8;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.enterprise-nav a.active {
  color: white;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.28), rgba(30, 136, 229, 0.28));
}

.console-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.enterprise-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-kicker {
  display: block;
  color: var(--poly-primary);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}

h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 20px; }

.status-pill {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 136, 229, 0.62);
  background:
    linear-gradient(135deg, rgba(30, 136, 229, 0.38), rgba(255, 122, 24, 0.26)),
    rgba(13, 24, 51, 0.94);
  color: #f5fbff;
  border-radius: 999px;
  padding: 10px 15px 10px 18px;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(30, 136, 229, 0.24), 0 10px 28px rgba(0, 0, 0, 0.22);
  font-weight: 700;
}

.status-pill::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 7px;
  width: 5px;
  border-radius: 999px;
  background: var(--poly-primary);
  box-shadow: 0 0 14px rgba(30, 136, 229, 0.72);
}

.readiness-rail {
  display: inline-grid;
  gap: 7px;
  max-width: 360px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.readiness-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #dfe7f5;
  font-size: 13px;
  font-weight: 800;
}

.readiness-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--talk-primary);
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.62);
}

.readiness-rail[data-state="active"] .readiness-dot,
.readiness-rail[data-state="warning"] .readiness-dot {
  background: var(--poly-secondary);
  box-shadow: 0 0 16px rgba(255, 167, 38, 0.7);
}

.readiness-rail[data-state="error"] .readiness-dot {
  background: #ff5252;
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.72);
}

.readiness-steps {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-rail[data-state="active"] .readiness-steps,
.readiness-rail[data-state="warning"] .readiness-steps,
.readiness-rail[data-state="error"] .readiness-steps {
  display: flex;
}

.readiness-steps li {
  border: 1px solid rgba(30, 136, 229, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text-muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(13, 24, 51, 0.55);
}

.readiness-steps li[data-state="active"] {
  border-color: rgba(255, 167, 38, 0.54);
  color: #ffe4bd;
  background: rgba(255, 167, 38, 0.12);
}

.readiness-steps li[data-state="done"] {
  border-color: rgba(30, 136, 229, 0.5);
  color: #eaf7ff;
  background: rgba(30, 136, 229, 0.16);
}

.readiness-steps li[data-state="warning"] {
  border-color: rgba(255, 167, 38, 0.54);
  color: #fff4d9;
}

.readiness-steps li[data-state="error"] {
  border-color: rgba(255, 82, 82, 0.62);
  color: #ffe4e4;
  background: rgba(255, 82, 82, 0.12);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 54px minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.language-select { display: grid; gap: 8px; }
.language-select span { color: #e0e0e0; font-weight: 700; }

select {
  width: 100%;
  border: 2px solid rgba(255, 122, 24, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(22, 33, 62, 0.86);
  color: white;
  outline: none;
}

select:focus { border-color: var(--poly-primary); }
select:disabled { opacity: 0.58; cursor: not-allowed; }
option:disabled { color: #6f7890; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-live,
.btn-share,
.btn-swap {
  --button-gradient: linear-gradient(170deg, rgb(240, 85, 27) 42%, rgb(59, 107, 229) 73%);
  background:
    radial-gradient(ellipse at 28% 8%, rgba(255, 168, 45, 0.68) 0%, rgba(255, 168, 45, 0.22) 28%, transparent 48%),
    linear-gradient(180deg, rgba(255, 122, 24, 0.26) 0%, rgba(7, 14, 38, 0.02) 42%, rgba(7, 14, 38, 0.22) 100%),
    var(--button-gradient);
  border-color: rgba(255, 122, 24, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 122, 24, 0.34),
    inset 0 -12px 24px rgba(7, 14, 38, 0.2),
    0 0 22px rgba(240, 85, 27, 0.28),
    0 0 20px rgba(59, 107, 229, 0.22);
}

.btn-live::before,
.btn-share::before,
.btn-swap::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: 11px 11px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.btn-live::after,
.btn-share::after,
.btn-swap::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 38%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg) translateX(-160%);
  pointer-events: none;
  transition: transform 0.55s ease;
}

.btn-live:hover:not(:disabled),
.btn-share:hover:not(:disabled),
.btn-swap:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 194, 99, 0.4),
    inset 0 -12px 24px rgba(7, 14, 38, 0.16),
    0 0 28px rgba(240, 85, 27, 0.36),
    0 0 24px rgba(59, 107, 229, 0.32);
}

.btn-live:hover:not(:disabled)::after,
.btn-share:hover:not(:disabled)::after,
.btn-swap:hover:not(:disabled)::after {
  transform: rotate(18deg) translateX(430%);
}

.btn-live:active:not(:disabled),
.btn-share:active:not(:disabled),
.btn-swap:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 0 2px 12px rgba(7, 14, 38, 0.34),
    0 0 16px rgba(240, 85, 27, 0.24),
    0 0 14px rgba(59, 107, 229, 0.18);
}


.session-meta-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.session-title-field {
  display: grid;
  gap: 7px;
}

.session-title-field span,
.session-timer span {
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 800;
}

.session-title-field input {
  width: 100%;
  border: 1px solid rgba(255, 122, 24, 0.38);
  border-radius: 10px;
  background: rgba(13, 24, 51, 0.72);
  color: #eef4ff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.session-title-field input:focus-visible {
  border-color: rgba(30, 136, 229, 0.78);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.session-timer {
  min-width: 150px;
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: 12px;
  background: rgba(30, 136, 229, 0.08);
  padding: 9px 12px;
}

.session-timer strong {
  display: block;
  margin-top: 3px;
  color: #f5fbff;
  font-size: 22px;
  line-height: 1;
}

.enterprise-listening {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 70px minmax(80px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 18px;
  width: min(440px, 100%);
  height: 0;
  margin: 0 auto;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: height 0.24s ease, margin 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.enterprise-listening.is-visible {
  height: 82px;
  margin: 14px auto 4px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.waveform {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 48px;
}

.waveform::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.45), rgba(59, 107, 229, 0.5), transparent);
  box-shadow: 0 0 16px rgba(59, 107, 229, 0.24);
}

.waveform span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 4px;
  height: calc(12px + (34px * var(--level)));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 176, 47, 0.98), rgba(255, 122, 24, 0.78) 46%, rgba(59, 107, 229, 0.9));
  box-shadow:
    0 0 14px rgba(255, 122, 24, 0.22),
    0 0 18px rgba(59, 107, 229, 0.18);
  animation: enterprise-wave 0.86s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  transform-origin: center;
}

.listening-mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 122, 24, 0.44);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 190, 70, 0.52), transparent 42%),
    linear-gradient(180deg, rgba(255, 122, 24, 0.28), rgba(59, 107, 229, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 176, 47, 0.28),
    inset 0 -12px 22px rgba(7, 14, 38, 0.2),
    0 0 24px rgba(255, 122, 24, 0.22),
    0 0 26px rgba(59, 107, 229, 0.24);
}

.listening-mic::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 122, 24, 0.2);
  border-radius: 24px;
  box-shadow: 0 0 26px rgba(59, 107, 229, 0.18);
  animation: enterprise-mic-pulse 1.25s ease-in-out infinite;
}

.listening-mic-svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  fill: white;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.enterprise-listening.is-paused .waveform span,
.enterprise-listening.is-paused .listening-mic::after {
  animation-play-state: paused;
}

.enterprise-listening.is-paused { opacity: 0.62; }

@keyframes enterprise-wave {
  from { transform: scaleY(0.42); opacity: 0.46; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes enterprise-mic-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.36; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

.recording-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.session-control { display: none; }

.recording-controls.is-session-active .start-control { display: none; }
.recording-controls.is-session-active .session-control { display: inline-flex; }

.status-pill[data-state="error"] {
  border-color: rgba(255, 82, 82, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 82, 82, 0.4), rgba(255, 122, 24, 0.2)),
    rgba(48, 16, 35, 0.96);
  color: #fff1f1;
  box-shadow: 0 0 24px rgba(255, 82, 82, 0.28), 0 10px 28px rgba(0, 0, 0, 0.24);
}

.status-pill[data-state="error"]::before {
  background: #ff5252;
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.78);
}

.status-pill[data-state="pending"] {
  border-color: rgba(255, 176, 47, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 176, 47, 0.4), rgba(255, 122, 24, 0.24)),
    rgba(40, 31, 18, 0.95);
  color: #fff4d9;
  box-shadow: 0 0 24px rgba(255, 176, 47, 0.26), 0 10px 28px rgba(0, 0, 0, 0.24);
}

.status-pill[data-state="pending"]::before {
  background: #ffb02f;
  box-shadow: 0 0 16px rgba(255, 176, 47, 0.78);
}

.status-pill[data-state="closed"] {
  border-color: rgba(168, 178, 204, 0.48);
  background:
    linear-gradient(135deg, rgba(168, 178, 204, 0.2), rgba(30, 136, 229, 0.14)),
    rgba(19, 28, 54, 0.9);
  color: #e8edf8;
  box-shadow: 0 0 18px rgba(168, 178, 204, 0.14), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.status-pill[data-state="closed"]::before {
  background: #a8b2cc;
  box-shadow: 0 0 12px rgba(168, 178, 204, 0.48);
}

.action-icon-btn {
  width: 70px;
  height: 56px;
  min-width: 70px;
  flex: 0 0 70px;
  padding: 0;
  border-radius: 18px;
}

.action-svg {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  fill: white;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
}

.action-svg-tab {
  width: 34px;
  height: 30px;
}

.btn-live:hover:not(:disabled),
.btn-share:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
}

.btn-share:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(59, 107, 229, 0.34),
    inset 0 -10px 22px rgba(7, 14, 38, 0.18),
    0 0 28px rgba(59, 107, 229, 0.34),
    0 0 24px rgba(240, 85, 27, 0.28);
}

.btn-swap {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 12px;
  font-size: 25px;
  line-height: 1;
  justify-self: center;
}

.btn-swap:hover:not(:disabled) {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 5px 20px rgba(255, 122, 24, 0.4);
}

.btn-tertiary {
  background:
    linear-gradient(180deg, rgba(255, 176, 47, 0.18), rgba(7, 14, 38, 0.18)),
    rgba(13, 24, 58, 0.82);
  border-color: rgba(255, 176, 47, 0.36);
  color: #ffd59a;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 120px;
  box-shadow:
    inset 0 1px 0 rgba(255, 176, 47, 0.14),
    0 0 14px rgba(255, 122, 24, 0.14);
}

.btn-tertiary:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 176, 47, 0.26), rgba(7, 14, 38, 0.16)),
    rgba(18, 31, 72, 0.9);
  color: #ffe4bd;
  box-shadow:
    inset 0 1px 0 rgba(255, 176, 47, 0.2),
    0 0 18px rgba(255, 122, 24, 0.2);
}

.btn-stop {
  background:
    linear-gradient(180deg, rgba(255, 82, 82, 0.2), rgba(7, 14, 38, 0.18)),
    rgba(37, 18, 42, 0.86);
  border-color: rgba(255, 82, 82, 0.42);
  color: #ffb4b4;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 120px;
  box-shadow:
    inset 0 1px 0 rgba(255, 130, 130, 0.16),
    0 0 14px rgba(255, 82, 82, 0.14);
}

.btn-stop:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 82, 82, 0.3), rgba(7, 14, 38, 0.14)),
    rgba(50, 20, 48, 0.94);
  color: #ffe4e4;
  box-shadow:
    inset 0 1px 0 rgba(255, 130, 130, 0.22),
    0 0 18px rgba(255, 82, 82, 0.22);
}

.voice-output {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 122, 24, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 122, 24, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(30, 136, 229, 0.14)),
    rgba(13, 24, 51, 0.82);
  box-shadow: 0 0 24px rgba(255, 122, 24, 0.12), inset 3px 0 0 rgba(255, 122, 24, 0.82);
}

.voice-output[hidden] { display: none; }
.voice-output audio { display: none; }
.voice-meta { min-width: 0; }
.voice-kicker { display: block; color: var(--poly-primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.voice-output strong { display: block; margin-top: 4px; font-size: 14px; color: #f5fbff; }

.enterprise-player {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.player-toggle {
  min-width: 64px;
  min-height: 38px;
  border: 1px solid rgba(255, 122, 24, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(170deg, rgba(240, 85, 27, 0.86), rgba(59, 107, 229, 0.78));
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.18);
}

.player-track { min-width: 0; }

.player-track input[type="range"] {
  width: 100%;
  accent-color: var(--poly-primary);
}

.player-time {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.player-speeds {
  display: inline-flex;
  gap: 5px;
}

.player-download,
.player-speeds button {
  min-height: 28px;
  border: 1px solid rgba(30, 136, 229, 0.32);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(13, 24, 51, 0.64);
  color: #dfe7f5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.player-speeds button.active {
  border-color: rgba(255, 122, 24, 0.52);
  background: rgba(255, 122, 24, 0.18);
  color: #ffe4bd;
}

.player-download {
  min-width: 32px;
  padding: 0;
  color: #ffe4bd;
}

.player-download:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.swap-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #ffe4bd;
  font-size: 13px;
  font-weight: 800;
}

.swap-marker::before,
.swap-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.55), transparent);
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.output-panel {
  min-height: 290px;
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.25));
  padding: 20px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.output-panel.translation-panel {
  border-color: rgba(30, 136, 229, 0.36);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(13, 71, 161, 0.15));
}

.panel-heading {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.panel-heading-split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.panel-title-stack { min-width: 0; }

.panel-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.panel-heading > span,
.panel-title-stack > span {
  display: block;
  margin-top: 5px;
}

.panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.panel-actions-end {
  justify-content: flex-end;
}

.panel-action {
  min-height: 30px;
  border: 1px solid rgba(30, 136, 229, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(13, 24, 51, 0.58);
  color: #dfe7f5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.panel-action-primary {
  border-color: rgba(255, 122, 24, 0.44);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(30, 136, 229, 0.16));
  color: #ffe4bd;
}

.panel-action:hover:not(:disabled) {
  border-color: rgba(255, 167, 38, 0.62);
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.14);
}

.panel-action:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.icon-action {
  width: 34px;
  padding: 0;
  font-size: 18px;
}

.output-text {
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 180px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(30, 136, 229, 0.68) rgba(13, 24, 51, 0.5);
}

.output-text::-webkit-scrollbar { width: 8px; }
.output-text::-webkit-scrollbar-track { background: rgba(13, 24, 51, 0.5); border-radius: 999px; }
.output-text::-webkit-scrollbar-thumb { background: rgba(30, 136, 229, 0.68); border-radius: 999px; }

.translation-panel .output-text {
  scrollbar-color: rgba(255, 122, 24, 0.68) rgba(13, 24, 51, 0.5);
}

.translation-panel .output-text::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 24, 0.68);
}

.output-placeholder {
  margin: 0;
  color: var(--text-muted);
}

.linked-output {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.linked-segment {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #e8edf8;
  cursor: default;
  text-align: left;
  line-height: 1.45;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.linked-segment.is-pending {
  border-style: dashed;
  color: #c9d3e8;
  opacity: 0.84;
}

.linked-segment:hover,
.linked-segment:focus-visible,
.linked-segment.is-linked {
  border-color: rgba(255, 167, 38, 0.54);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(30, 136, 229, 0.14));
  color: #f8fbff;
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.12);
}

.enterprise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.enterprise-strip article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.enterprise-strip span { color: var(--poly-primary); font-size: 12px; font-weight: 800; }
.enterprise-strip strong { display: block; margin-top: 6px; }

@media (max-width: 820px) {
  .enterprise-frame { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .app-logo { height: 86px; }
  .edition-pill { margin-top: -8px; }
  .enterprise-status-row { flex-direction: column; align-items: stretch; gap: 10px; }


.enterprise-listening { grid-template-columns: minmax(70px, 1fr) 58px minmax(70px, 1fr); gap: 10px; }
  .enterprise-listening.is-visible { height: 72px; }
  .waveform { gap: 4px; height: 40px; }
  .listening-mic { width: 56px; height: 56px; border-radius: 16px; }
  .listening-mic-svg { width: 31px; height: 31px; }
  .recording-controls { align-items: center; }
  .controls, .session-meta-bar, .session-grid, .enterprise-strip, .voice-output, .settings-grid, .enterprise-player { grid-template-columns: 1fr; }
  .btn-swap { width: 58px; min-width: 58px; justify-self: center; }
  .action-icon-btn { width: 70px; min-width: 70px; flex-basis: 70px; }
  .status-pill { white-space: normal; }
  .panel-heading-split {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .panel-heading-split .panel-actions-end { justify-self: end; align-self: start; }
  .panel-heading-split .panel-title-stack { min-width: 0; }
  .panel-title-row { align-items: center; flex-wrap: wrap; }
  .panel-actions { justify-content: flex-start; }
  .player-speeds { flex-wrap: wrap; }
  .readiness-rail { max-width: none; }
}


.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-field { display: grid; gap: 8px; }
.settings-field span { color: #e0e0e0; font-weight: 700; }
.settings-footer { display: flex; justify-content: flex-end; margin-top: 20px; }

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

.module-panel[hidden] { display: none; }

.enterprise-module { margin-top: 22px; }

.module-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.module-heading p {
  margin: 0;
  color: var(--text-muted);
}

.usage-summary-grid,
.subscription-state {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card,
.subscription-state article {
  border: 1px solid rgba(30, 136, 229, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(255, 122, 24, 0.08)),
    rgba(13, 24, 51, 0.68);
  padding: 14px;
}

.metric-card-primary {
  border-color: rgba(255, 122, 24, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.14)),
    rgba(13, 24, 51, 0.74);
}

.metric-card-warning strong { color: #ffd1d1; }

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.metric-card span,
.subscription-state span {
  display: block;
  color: var(--poly-primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong,
.subscription-state strong {
  display: block;
  margin-top: 8px;
  color: #f5fbff;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.history-filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-filter-presets button {
  min-height: 34px;
  border: 1px solid rgba(30, 136, 229, 0.34);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(13, 24, 51, 0.58);
  color: #dfe7f5;
  cursor: pointer;
  font-weight: 900;
}

.history-filter-presets button.active,
.history-filter-presets button:hover,
.history-filter-presets button:focus-visible {
  border-color: rgba(255, 122, 24, 0.56);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(30, 136, 229, 0.16));
  color: #ffe4bd;
  outline: none;
}

.history-filter-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.history-filter-toggle {
  display: none;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 122, 24, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.14));
  color: #fff2df;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.history-filter-controls {
  display: grid;
  gap: 12px;
}

.history-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-status-tabs button {
  min-height: 34px;
  border: 1px solid rgba(30, 136, 229, 0.34);
  border-radius: 999px;
  background: rgba(13, 24, 51, 0.7);
  color: #dfe7f5;
  cursor: pointer;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.history-status-tabs button.active,
.history-status-tabs button:hover,
.history-status-tabs button:focus-visible {
  border-color: rgba(255, 122, 24, 0.62);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(30, 136, 229, 0.14));
  color: #fff2df;
  outline: none;
}

.history-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.history-toolbar label {
  display: grid;
  gap: 7px;
}

.history-toolbar input {
  width: 100%;
  border: 1px solid rgba(255, 122, 24, 0.38);
  border-radius: 10px;
  background: rgba(13, 24, 51, 0.72);
  color: #eef4ff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.history-toolbar input:focus-visible {
  border-color: rgba(30, 136, 229, 0.78);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.history-toolbar span {
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 800;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
}


.history-title-editor {
  display: grid;
  gap: 7px;
  min-width: min(420px, 100%);
}

.history-title-editor label { display: block; }

.history-title-editor input {
  width: 100%;
  border: 1px solid rgba(30, 136, 229, 0.36);
  border-radius: 10px;
  background: rgba(13, 24, 51, 0.72);
  color: #f5fbff;
  padding: 10px 12px;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  outline: none;
}

.history-title-editor input:disabled {
  opacity: 0.72;
}

.history-title-editor input:focus-visible {
  border-color: rgba(255, 122, 24, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
}

.panel-action-danger {
  border-color: rgba(255, 82, 82, 0.5);
  color: #ffd7d7;
}

.panel-action-danger:hover:not(:disabled),
.panel-action-danger:focus-visible:not(:disabled) {
  background: rgba(255, 82, 82, 0.15);
  box-shadow: 0 0 18px rgba(255, 82, 82, 0.16);
}

.history-list-panel,
.history-detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 24, 51, 0.54);
  padding: 16px;
}

.history-list-heading,
.history-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.history-list-heading span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(30, 136, 229, 0.68) rgba(13, 24, 51, 0.5);
}

.history-list::-webkit-scrollbar,
.detail-text::-webkit-scrollbar { width: 8px; }
.history-list::-webkit-scrollbar-track,
.detail-text::-webkit-scrollbar-track { background: rgba(13, 24, 51, 0.5); border-radius: 999px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(30, 136, 229, 0.68); border-radius: 999px; }
.detail-text::-webkit-scrollbar-thumb { background: rgba(30, 136, 229, 0.68); border-radius: 999px; }
.detail-grid article:nth-child(2) .detail-text { scrollbar-color: rgba(255, 122, 24, 0.68) rgba(13, 24, 51, 0.5); }
.detail-grid article:nth-child(2) .detail-text::-webkit-scrollbar-thumb { background: rgba(255, 122, 24, 0.68); }

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #eef4ff;
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.history-row:hover,
.history-row.active {
  border-color: rgba(255, 122, 24, 0.48);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(30, 136, 229, 0.12));
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.1);
}

.history-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.history-row-main strong,
.history-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row-side {
  justify-items: end;
  align-content: start;
}

.history-row small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.history-row em {
  justify-self: end;
  min-width: 62px;
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
  text-align: center;
  color: #dfe7f5;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
}

.history-row em[data-status="completed"] {
  border-color: rgba(30, 136, 229, 0.48);
  color: #dff1ff;
}

.history-row em[data-status="failed"] {
  border-color: rgba(255, 82, 82, 0.52);
  color: #ffcccc;
}

.history-row em[data-status="disconnected"] {
  border-color: rgba(255, 167, 38, 0.52);
  color: #ffe4bd;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.detail-meta-item {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px 12px;
}

.detail-meta dt {
  color: var(--poly-primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: #f5fbff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid article,
.event-list-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.detail-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-panel-heading .compact-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.detail-panel-heading .icon-action {
  width: 32px;
  min-height: 32px;
  color: #dfe7f5;
}

.detail-panel-heading h3 {
  min-width: 0;
  margin: 0;
}

.detail-grid h3,
.event-list-panel h3 {
  margin: 0 0 10px;
  color: #f5fbff;
  font-size: 15px;
}

.detail-text {
  min-height: 160px;
  max-height: 260px;
  overflow-y: auto;
  color: #dfe7f5;
  line-height: 1.55;
  scrollbar-color: rgba(30, 136, 229, 0.68) rgba(13, 24, 51, 0.5);
  white-space: pre-wrap;
}

.event-list-panel { margin-top: 14px; }

.event-list-heading,
.event-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-list-heading { margin-bottom: 10px; }
.event-list-heading h3 { margin: 0; }
.event-pager { margin-top: 12px; }
.event-pager span { color: var(--text-muted); font-size: 12px; font-weight: 800; }


.event-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #dfe7f5;
}

.event-list[hidden],
.event-pager[hidden] {
  display: none;
}

.event-list li { padding-left: 4px; }
.event-list strong { display: block; color: #ffe4bd; font-size: 12px; }
.event-list span { display: block; margin-top: 2px; }
.event-list small { display: block; margin-top: 2px; color: var(--text-muted); }

.subscription-panel {
  min-height: 360px;
}

.subscription-state {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Usage cards step from desktop six-up, to compact two-up, then single-column mobile. */
@media (max-width: 980px) {
  .usage-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-toolbar .btn { grid-column: 1 / -1; }
  .history-layout { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .history-filter-toggle { display: inline-grid; place-items: center; }
  .history-filter-controls { display: none; }
  .history-filter-controls.is-open { display: grid; }
  .history-toolbar,
  .detail-grid,
  .subscription-state { grid-template-columns: 1fr; }
  .usage-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-detail-heading { flex-direction: column; }
  .detail-meta { grid-template-columns: 1fr; }
}


.account-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dfe7f5;
  font-size: 13px;
}

.account-identity {
  align-items: start;
  border: 1px solid rgba(255, 167, 38, 0.36);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.16));
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 9px 13px;
  text-align: left;
}

.account-identity span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-identity strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-strip a,
.account-strip button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 24, 51, 0.72);
  color: #fff;
  cursor: pointer;
  padding: 8px 13px;
  text-decoration: none;
}

.account-strip form { margin: 0; }

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(260px, 360px);
  gap: 18px;
  width: min(900px, 100%);
}

.auth-panel,
.auth-aside {
  border: 1px solid var(--line);
  background: rgba(22, 33, 62, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 24px;
  border-radius: 18px;
  padding: 34px;
}

.auth-brand {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
}

.auth-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(255, 122, 24, 0.24));
}

.auth-copy { display: grid; gap: 10px; }
.auth-copy h1 { font-size: 38px; }
.auth-copy p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.auth-primary {
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--poly-primary), var(--talk-primary));
  box-shadow: 0 14px 34px rgba(30, 136, 229, 0.24);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.auth-error {
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 10px;
  background: rgba(255, 82, 82, 0.12);
  color: #ffd6d6;
  margin: 0;
  padding: 10px 12px;
}

.auth-aside {
  align-content: end;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.auth-aside article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 24, 51, 0.46);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.auth-aside span {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-aside strong { color: #fff; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { padding: 24px; }
  .auth-copy h1 { font-size: 30px; }
}

.analytics-grid,
.settings-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-card,
.settings-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 24, 51, 0.5);
  padding: 16px;
}

.analytics-heading,
.settings-card-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.analytics-heading strong,
.settings-card-heading h2 {
  margin: 0;
  color: #f5fbff;
  font-size: 18px;
}

.analytics-list {
  display: grid;
  gap: 8px;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
  min-height: 48px;
}

.analytics-row span {
  min-width: 0;
  color: #eef4ff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.analytics-row strong {
  color: #ffe4bd;
  font-size: 13px;
}

.analytics-row small {
  color: var(--text-muted);
  font-weight: 800;
}

.settings-card .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retention-policy-status {
  margin-top: 12px;
  border: 1px solid rgba(30, 136, 229, 0.28);
  border-radius: 10px;
  background: rgba(30, 136, 229, 0.08);
  color: #dfe7f5;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.retention-policy-status[data-tone="active"] {
  border-color: rgba(255, 122, 24, 0.42);
  background: rgba(255, 122, 24, 0.12);
  color: #ffe4bd;
}

.retention-policy-status[data-tone="warning"] {
  border-color: rgba(255, 93, 108, 0.42);
  background: rgba(255, 93, 108, 0.1);
  color: #ffd1d1;
}

.endpoint-settings-grid {
  grid-template-columns: 1fr;
}

.settings-field input {
  width: 100%;
  border: 1px solid rgba(255, 122, 24, 0.38);
  border-radius: 10px;
  background: rgba(13, 24, 51, 0.72);
  color: #eef4ff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.settings-field input:focus-visible {
  border-color: rgba(30, 136, 229, 0.78);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.settings-page-footer {
  align-items: center;
  gap: 12px;
}

.settings-page-footer span {
  color: var(--text-muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .analytics-grid,
  .settings-page-grid { grid-template-columns: 1fr; }
  .analytics-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .settings-card .settings-grid { grid-template-columns: 1fr; }
  .settings-page-footer { justify-content: stretch; }
  .settings-page-footer .btn { width: 100%; }
}

.settings-card-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coming-soon-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 167, 38, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.92), rgba(30, 136, 229, 0.72));
  color: #ffffff;
  padding: 6px 12px;
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.endpoint-preview-card {
  position: relative;
}

.endpoint-preview-fields {
  opacity: 0.45;
  filter: blur(0.3px);
  pointer-events: none;
}

.endpoint-preview-fields input:disabled {
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .usage-summary-grid { grid-template-columns: 1fr; }
}
