:root {
  color-scheme: dark;
  --bg: #071a2d;
  --panel: rgba(14, 43, 65, 0.86);
  --panel-strong: #0e2b41;
  --line: rgba(154, 195, 208, 0.2);
  --text: #f5fbfc;
  --muted: #a9c3cd;
  --accent: #59d3aa;
  --accent-strong: #25b989;
  --danger: #ff9c9c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(53, 169, 146, 0.18), transparent 30rem),
    radial-gradient(circle at 10% 80%, rgba(39, 115, 153, 0.2), transparent 34rem),
    var(--bg);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1440px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.brand {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(89, 211, 170, 0.14), rgba(37, 185, 137, 0.04));
  border: 1px solid rgba(89, 211, 170, 0.24);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(37, 185, 137, 0.2));
}

.brand-tag {
  margin-left: 3px;
  padding: 5px 9px;
  color: var(--accent);
  border: 1px solid rgba(89, 211, 170, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(520px, 1.04fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: 42px 0 34px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 4.25vw, 64px);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 620px;
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.launch-card {
  max-width: 680px;
  padding: 22px 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.launch-card-title {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.launch-card label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.language-row,
.mode-row { min-width: 0; }

.language-row select,
.mode-row select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  color: var(--text);
  background: rgba(4, 24, 40, 0.72);
  border: 1px solid rgba(154, 195, 208, 0.3);
  border-radius: 12px;
  outline: none;
}

.mode-row { margin: 0; }

.mode-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(89, 211, 170, 0.13);
}

.mode-row select:disabled { opacity: 0.65; }

.confidentiality-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(8, 31, 48, 0.94), rgba(16, 68, 70, 0.5));
  border: 1px solid rgba(89, 211, 170, 0.28);
  border-radius: 13px;
}

.confidentiality-notice[data-accepted="true"] {
  background: linear-gradient(135deg, rgba(17, 83, 68, 0.48), rgba(8, 31, 48, 0.94));
  border-color: rgba(89, 211, 170, 0.58);
}

.confidentiality-notice-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(89, 211, 170, 0.1);
  border: 1px solid rgba(89, 211, 170, 0.25);
  border-radius: 10px;
  font-size: 13px;
}

.confidentiality-notice-copy { min-width: 0; display: grid; gap: 3px; }
.confidentiality-notice-copy strong { font-size: 13px; line-height: 1.3; }
.confidentiality-notice-copy > span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.confidentiality-notice > button {
  min-height: 40px;
  padding: 0 13px;
  color: var(--accent);
  background: rgba(4, 24, 40, 0.52);
  border: 1px solid rgba(89, 211, 170, 0.3);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.confidentiality-dialog {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 13, 23, 0.78);
  backdrop-filter: blur(12px);
}

.confidentiality-card {
  width: min(860px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  overflow: auto;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 0, rgba(89, 211, 170, 0.12), transparent 22rem),
    linear-gradient(155deg, #0e2b41, #061827 76%);
  border: 1px solid rgba(89, 211, 170, 0.42);
  border-radius: 24px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-color: rgba(89, 211, 170, 0.35) transparent;
}

.confidentiality-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  align-items: start;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.confidentiality-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: rgba(89, 211, 170, 0.1);
  border: 1px solid rgba(89, 211, 170, 0.28);
  border-radius: 15px;
}
.confidentiality-mark img { width: 34px; height: 34px; }
.confidentiality-header .eyebrow { margin-bottom: 7px; font-size: 11px; }
.confidentiality-header h2 { margin: 0; font-size: 29px; line-height: 1.16; letter-spacing: -0.025em; }
.confidentiality-header p:last-child { margin: 9px 0 0; color: #c7dbe2; font-size: 14px; line-height: 1.55; }
.confidentiality-close {
  width: 38px;
  height: 38px;
  color: var(--text);
  background: rgba(154, 195, 208, 0.08);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 22px;
}

.confidentiality-terms { display: grid; gap: 10px; margin: 20px 0; }
.confidentiality-term {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: rgba(4, 24, 40, 0.52);
  border: 1px solid rgba(154, 195, 208, 0.12);
  border-radius: 12px;
}
.confidentiality-term-number { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.confidentiality-term h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.35; }
.confidentiality-term p { margin: 0; color: #c7dbe2; font-size: 14px; font-weight: 500; line-height: 1.58; }
.confidentiality-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 15px;
  color: var(--text);
  background: rgba(89, 211, 170, 0.08);
  border: 1px solid rgba(89, 211, 170, 0.25);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.confidentiality-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.confidentiality-actions { display: grid; grid-template-columns: minmax(120px, 0.35fr) minmax(220px, 1fr); gap: 10px; margin-top: 14px; }
.confidentiality-actions button { min-height: 50px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 850; }
.confidentiality-cancel { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.confidentiality-accept { color: #06271f; background: var(--accent); border: 0; }
.confidentiality-accept:disabled { cursor: not-allowed; opacity: 0.42; }
.confidentiality-version { margin: 12px 0 0; color: #9bb5bf; font-size: 11px; text-align: right; }
body.confidentiality-open { overflow: hidden; }

.language-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(89, 211, 170, 0.13);
}

.language-row select:disabled { opacity: 0.65; }

.language-detected {
  display: none;
}

.launch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.78fr);
  align-items: end;
  gap: 12px;
}

.access-code-field { flex: 1; }

.access-request-open {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #5bd5ad !important;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  box-shadow: none;
}

.access-request-open:hover {
  color: #8af0cb !important;
  text-decoration: underline;
}

.access-request-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 21, 35, 0.82);
  backdrop-filter: blur(12px);
}

.access-request-dialog[hidden] { display: none; }

.access-request-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(91, 213, 173, 0.38);
  border-radius: 20px;
  background: #0b2b3d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.access-request-header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.access-request-header h2 { margin: 3px 0 8px; font-size: clamp(24px, 4vw, 36px); }
.access-request-header p { margin: 0; color: #a9c0cd; }
.access-request-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #103d48; }
.access-request-mark img { width: 30px; height: 30px; }
.access-request-close { border: 0; background: transparent; color: #d9e8ef; font-size: 28px; cursor: pointer; }
.access-request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.access-request-grid label { display: grid; gap: 7px; color: #c6d7df; font-size: 13px; font-weight: 700; }
.access-request-grid input, .access-request-grid select, .access-request-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #31556a;
  border-radius: 10px;
  padding: 12px 13px;
  background: #061f31;
  color: #f4fbff;
  font: inherit;
}
.access-request-grid input:focus, .access-request-grid select:focus, .access-request-grid textarea:focus { outline: 2px solid #5bd5ad; outline-offset: 1px; }
.access-request-wide { grid-column: 1 / -1; }
.access-request-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.access-request-consent { display: flex; gap: 10px; margin-top: 17px; color: #bbccd5; font-size: 13px; line-height: 1.45; }
.access-request-consent input { margin-top: 2px; accent-color: #5bd5ad; }
.access-request-status { min-height: 20px; margin: 12px 0 0; color: #a9c0cd; font-size: 13px; }
.access-request-status[data-state="error"] { color: #ff9a9a; }
.access-request-status[data-state="success"] { color: #78e7c0; }
.access-request-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.access-request-actions button { border-radius: 10px; padding: 12px 18px; font-weight: 800; cursor: pointer; }
.access-request-cancel { border: 1px solid #3c5c6e; background: transparent; color: #dceaf0; }
.access-request-submit { border: 0; background: #5bd5ad; color: #032b27; }
.access-request-submit:disabled { opacity: 0.6; cursor: wait; }

.launch-row[data-open-access="true"] button { width: 100%; }

.launch-row input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(4, 24, 40, 0.72);
  border: 1px solid rgba(154, 195, 208, 0.3);
  border-radius: 12px;
  outline: none;
}

.launch-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(89, 211, 170, 0.13);
}

.launch-row button,
.secondary-button {
  min-height: 52px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.launch-row button {
  color: #06271f;
  background: var(--accent);
}

.launch-row button:hover { background: #73e5bd; }
.launch-row button:disabled { cursor: wait; opacity: 0.65; }

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="success"] { color: var(--accent); }

.test-mode-notice {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #9ff0d4;
  background: rgba(20, 106, 90, 0.22);
  border: 1px solid rgba(89, 211, 170, 0.34);
  border-radius: 10px;
  font-size: 12px;
}

.hints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 12px;
}

.hints li { display: flex; min-width: 0; align-items: flex-start; gap: 8px; line-height: 1.35; }
.hints li > span:first-child {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(89, 211, 170, 0.28);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.hints .hint-text {
  width: auto;
  height: auto;
  display: inline;
  color: inherit;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
}

.preview-column {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: center;
}

.preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #0d2b43, #071725);
  border: 1px solid rgba(154, 195, 208, 0.24);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.05), transparent 38%);
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.placeholder p { margin: 22px 0 5px; font-size: 20px; font-weight: 750; }
.placeholder span { color: var(--muted); font-size: 13px; }

.startup-dashboard-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e8eef5;
}

.startup-dashboard-preview .browser-placeholder-dashboard {
  filter: blur(9px);
  opacity: 0.7;
  transform: scale(1.07);
}

.startup-preview-tint {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 72%, rgba(89, 211, 170, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(4, 27, 42, 0.78), rgba(5, 47, 48, 0.62));
  backdrop-filter: blur(2px);
}

.startup-preview-tint::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28%;
  width: 24%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(114, 238, 198, 0.11), transparent);
  animation: startup-preview-scan 3.8s ease-in-out infinite;
}

.startup-loading-logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(76px, 12%, 116px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(3, 34, 41, 0.72);
  border: 1px solid rgba(114, 238, 198, 0.48);
  border-radius: 28%;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(89, 211, 170, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  animation: startup-logo-halo 2.2s ease-in-out infinite;
}

.startup-loading-logo::after {
  position: absolute;
  inset: -35% auto -35% -70%;
  width: 48%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(220, 255, 244, 0.52), transparent);
  transform: rotate(14deg);
  animation: startup-logo-shimmer 2.2s ease-in-out infinite;
}

.startup-loading-logo img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(89, 211, 170, 0.44));
  animation: startup-logo-breathe 2.2s ease-in-out infinite;
}

.startup-preparing-status {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100% - 208px));
  min-height: 62px;
  padding: 13px 16px;
  color: #f4fffc;
  background: rgba(3, 25, 36, 0.76);
  border: 1px solid rgba(114, 238, 198, 0.32);
  border-radius: 17px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  text-align: left;
}

.placeholder[data-startup-state="idle"] .startup-preparing-pulse { display: none; }
.placeholder[data-startup-state="idle"] .startup-loading-logo::after { display: none; }
.placeholder[data-startup-state="idle"] .startup-loading-logo,
.placeholder[data-startup-state="idle"] .startup-loading-logo img { animation-duration: 4.8s; }

body[data-presenter-mode="replay"] .startup-avatar-card { display: none; }

body[data-presenter-mode="replay"] .startup-preparing-status {
  left: 50%;
  bottom: 18%;
  width: min(440px, calc(100% - 56px));
  transform: translateX(-50%);
}

.startup-preparing-pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(89, 211, 170, 0.38);
  animation: startup-status-pulse 1.8s ease-out infinite;
}

.startup-preparing-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.placeholder .startup-preparing-copy strong {
  color: #f4fffc;
  font-size: clamp(13px, 1.35vw, 17px);
  line-height: 1.22;
}

.placeholder .startup-preparing-copy > span {
  color: #a9c6ce;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.35;
}

.startup-avatar-card {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  width: clamp(106px, 18%, 138px);
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eeee, #cad8d5);
  border: 2px solid rgba(89, 211, 170, 0.82);
  border-radius: 24%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 8px rgba(89, 211, 170, 0.08);
  animation: startup-avatar-float 4.2s ease-in-out infinite;
}

.startup-avatar-fallback {
  position: absolute;
  inset: 29%;
  width: 42%;
  height: 42%;
  object-fit: contain;
}

.startup-avatar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@keyframes startup-preview-scan {
  0% { left: -28%; opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { left: 108%; opacity: 0; }
}

@keyframes startup-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(89, 211, 170, 0.42); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(89, 211, 170, 0); }
}

@keyframes startup-avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes startup-logo-halo {
  0%, 100% { box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(89, 211, 170, 0.2); }
  50% { box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(89, 211, 170, 0); }
}

@keyframes startup-logo-shimmer {
  0%, 26% { left: -70%; opacity: 0; }
  42%, 66% { opacity: 1; }
  82%, 100% { left: 122%; opacity: 0; }
}

@keyframes startup-logo-breathe {
  0%, 100% { opacity: 0.68; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.avatar-orbit {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(89, 211, 170, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(89, 211, 170, 0.04), 0 0 0 52px rgba(89, 211, 170, 0.025);
}

.avatar-core {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(89, 211, 170, 0.16), transparent 48%),
    linear-gradient(145deg, #103a43, #082c35);
  border: 1px solid rgba(89, 211, 170, 0.38);
  border-radius: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.avatar-logo {
  width: 58px;
  height: 58px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(37, 185, 137, 0.28));
}

body[data-presenter-mode="audio"] .avatar-orbit,
body[data-presenter-mode="replay"] .avatar-orbit {
  animation: none;
}

body[data-presenter-mode="audio"] .avatar-core::after,
body[data-presenter-mode="replay"] .avatar-core::after {
  content: "TEST";
  position: absolute;
  margin-top: 132px;
  padding: 4px 7px;
  color: #9ff0d4;
  background: #0b342d;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

@keyframes test-avatar-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.88; }
  50% { transform: scale(1.02); opacity: 1; }
}

#avatar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111b28;
}

.voice-state {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 15px;
  color: var(--text);
  background: rgba(3, 19, 31, 0.86);
  border: 1px solid rgba(154, 195, 208, 0.24);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.voice-state-dots {
  min-width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-state-dots i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
  animation: none;
}

.voice-state-dots i:nth-child(2) { animation-delay: 120ms; }
.voice-state-dots i:nth-child(3) { animation-delay: 240ms; }
.voice-state[data-state="starting"] .voice-state-dots i,
.voice-state[data-state="listening"] .voice-state-dots i,
.voice-state[data-state="thinking"] .voice-state-dots i,
.voice-state[data-state="preparing"] .voice-state-dots i,
.voice-state[data-state="speaking"] .voice-state-dots i { animation: voice-pulse 1.1s ease-in-out infinite; }
.voice-state[data-state="speaking"] .voice-state-dots i { animation-duration: 620ms; }
.voice-state[data-state="error"] .voice-state-dots i { background: var(--danger); animation: none; }
.voice-state-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.voice-state-copy strong { font-size: 13px; }
.voice-state-copy > span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.avatar-toggle-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: var(--accent);
  background: rgba(89, 211, 170, 0.1);
  border: 1px solid rgba(89, 211, 170, 0.42);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.avatar-toggle-button:hover:not(:disabled) { background: rgba(89, 211, 170, 0.2); }
.avatar-toggle-button:disabled { cursor: wait; opacity: 0.72; }

.voice-controls {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.voice-controls button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 850;
}

.ask-question-button {
  color: #06271f;
  background: var(--accent);
  border: 0;
}

.ask-question-button:hover { background: #73e5bd; }

.voice-message-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.voice-message-button::before {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 14a3 3 0 0 0 3-3V5a3 3 0 1 0-6 0v6a3 3 0 0 0 3 3Zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21H8v2h8v-2h-3v-3.08A7 7 0 0 0 19 11h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 14a3 3 0 0 0 3-3V5a3 3 0 1 0-6 0v6a3 3 0 0 0 3 3Zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21H8v2h8v-2h-3v-3.08A7 7 0 0 0 19 11h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.voice-message-toolbar { min-width: 148px; }

.voice-message-button[data-listening="true"] {
  color: #fff;
  background: #d9475f;
  border-color: #ff8295;
  box-shadow: 0 0 0 4px rgba(217, 71, 95, 0.2), 0 0 22px rgba(217, 71, 95, 0.34);
  animation: voice-recording-ring 1.25s ease-in-out infinite;
}

.voice-message-button[data-listening="true"]::after {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
  border-radius: 50%;
  animation: voice-recording-dot 900ms ease-in-out infinite;
}

.voice-message-button[data-listening="true"]:disabled {
  cursor: default;
  opacity: 1;
}

.interrupt-button {
  min-width: 92px;
  color: #ffd0d0;
  background: rgba(91, 30, 39, 0.72);
  border: 1px solid rgba(255, 156, 156, 0.38);
}

.voice-controls button:disabled { cursor: not-allowed; opacity: 0.46; }

/* На стартовом экране показываем только состояние подключения. Управление
   вопросами и речью находится в панели полноэкранной презентации. */
body:not(.presentation-screen-active) .preview .voice-controls { display: none !important; }
body:not(.presentation-screen-active) .preview .voice-state { bottom: 18px; }

@keyframes voice-pulse {
  0%, 100% { height: 6px; opacity: 0.55; }
  50% { height: 22px; opacity: 1; }
}

@keyframes voice-recording-ring {
  50% { box-shadow: 0 0 0 7px rgba(217, 71, 95, 0.11), 0 0 28px rgba(217, 71, 95, 0.42); }
}

@keyframes voice-recording-dot {
  50% { opacity: 0.35; }
}

.session-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: -18px 0 24px;
}

.presentation-toolbar {
  position: fixed;
  z-index: 80;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 7px;
  background: rgba(5, 25, 40, 0.94);
  border: 1px solid rgba(154, 195, 208, 0.24);
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.toolbar-more-button,
.toolbar-more-menu { display: none; }

.toolbar-more-menu[hidden] { display: none !important; }

.toolbar-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(18, 53, 77, 0.9);
  border: 1px solid rgba(154, 195, 208, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-button:hover:not(:disabled) { border-color: rgba(89, 211, 170, 0.68); }
.toolbar-button:disabled { cursor: not-allowed; opacity: 0.42; }
.toolbar-primary { color: #06271f; background: var(--accent); border-color: transparent; }
.toolbar-primary:hover:not(:disabled) { background: #73e5bd; }
.toolbar-danger { color: #ffd0d0; background: rgba(91, 30, 39, 0.78); border-color: rgba(255, 156, 156, 0.34); }
.toolbar-end-button { color: #ffd0d0; background: transparent; border-color: rgba(255, 156, 156, 0.34); }
.toolbar-plan-button { display: inline-flex; align-items: center; gap: 8px; }
.toolbar-count { padding: 3px 7px; color: var(--accent); background: rgba(89, 211, 170, 0.12); border-radius: 999px; font-size: 10px; }
.toolbar-separator { width: 1px; height: 26px; background: var(--line); }
.toolbar-spacer { flex: 1; }

.toolbar-speed-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 7px 0 11px;
  color: var(--muted);
  background: rgba(18, 53, 77, 0.9);
  border: 1px solid rgba(154, 195, 208, 0.2);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-speed-control select {
  width: 65px;
  min-height: 28px;
  padding: 0 22px 0 8px;
  color: var(--text);
  background-color: rgba(3, 24, 39, 0.92);
  border: 1px solid rgba(89, 211, 170, 0.42);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.toolbar-voice-state {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(89, 211, 170, 0.12);
}

.toolbar-voice-state[data-state="listening"],
.toolbar-voice-state[data-state="thinking"],
.toolbar-voice-state[data-state="preparing"],
.toolbar-voice-state[data-state="speaking"] { animation: toolbar-state-pulse 1s ease-in-out infinite; }
.toolbar-voice-state[data-state="error"] { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 156, 156, 0.12); }

@keyframes toolbar-state-pulse {
  50% { opacity: 0.45; transform: scale(0.78); }
}

.route-plan-backdrop {
  position: fixed;
  z-index: 84;
  inset: 0;
  padding: 0;
  background: rgba(1, 10, 17, 0.58);
  border: 0;
  backdrop-filter: blur(3px);
}

.route-plan-drawer {
  position: fixed;
  z-index: 85;
  top: 78px;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  overflow: auto;
  padding: 22px;
  color: var(--text);
  background: #0b263b;
  border: 1px solid rgba(154, 195, 208, 0.26);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.route-plan-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.route-plan-header .eyebrow { margin-bottom: 8px; }
.route-plan-header h2 { margin: 0; font-size: 25px; letter-spacing: -0.025em; }
.route-plan-close { width: 36px; height: 36px; flex: 0 0 auto; color: var(--text); background: rgba(154, 195, 208, 0.1); border: 1px solid var(--line); border-radius: 10px; font-size: 22px; }
.route-plan-lead { margin: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.route-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.route-plan-actions button { min-height: 34px; padding: 0 10px; }
.route-plan-actions button[data-active="true"] { color: #06271f; background: var(--accent); }
.route-plan-list { display: grid; gap: 14px; }
.route-plan-group { display: grid; gap: 6px; }
.route-plan-group-title { margin: 0; color: #79a8b7; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.route-plan-section { overflow: hidden; background: rgba(4, 24, 40, 0.58); border: 1px solid rgba(154, 195, 208, 0.14); border-radius: 12px; }
.route-plan-section[data-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(89, 211, 170, 0.1); }
.route-plan-section[data-completed="true"] { background: rgba(20, 106, 90, 0.18); }
.route-plan-section-header { display: grid; grid-template-columns: 24px 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 8px 9px; }
.route-plan-section-toggle { width: 24px; height: 28px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: 22px; line-height: 1; transform: rotate(0deg); transition: color 120ms ease, transform 120ms ease; }
.route-plan-section-toggle[data-expanded="true"] { color: var(--accent); transform: rotate(90deg); }
.route-plan-section input,
.route-plan-subitem input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.route-plan-section-copy,
.route-plan-subitem-copy { min-width: 0; display: grid; gap: 3px; }
.route-plan-section-copy strong { font-size: 12px; line-height: 1.32; }
.route-plan-section-copy span,
.route-plan-subitem-copy span { color: var(--muted); font-size: 10px; line-height: 1.3; }
.route-plan-subitems { display: grid; gap: 1px; padding: 0 8px 8px 50px; }
.route-plan-subitem { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 44px; padding: 7px 8px; background: rgba(2, 18, 30, 0.48); border-left: 2px solid rgba(154, 195, 208, 0.16); }
.route-plan-subitem:first-child { border-radius: 8px 8px 0 0; }
.route-plan-subitem:last-child { border-radius: 0 0 8px 8px; }
.route-plan-subitem[data-current="true"] { background: rgba(89, 211, 170, 0.1); border-left-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(89, 211, 170, 0.24); }
.route-plan-subitem[data-completed="true"] { background: rgba(20, 106, 90, 0.12); }
.route-plan-subitem[data-already-shown="true"] { opacity: 0.64; }
.route-plan-subitem[data-already-shown="true"] .route-plan-subitem-copy strong::after,
.route-plan-section[data-already-shown="true"] .route-plan-section-copy strong::after {
  content: attr(data-already-shown-label);
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  color: var(--accent);
  background: rgba(89, 211, 170, 0.1);
  border: 1px solid rgba(89, 211, 170, 0.24);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
}
.route-plan-subitem-copy strong { font-size: 11px; font-weight: 780; line-height: 1.32; }
.route-plan-jump { min-height: 30px; padding: 0 9px; color: var(--accent); background: transparent; border: 1px solid rgba(89, 211, 170, 0.28); border-radius: 8px; font-size: 10px; font-weight: 800; }
.route-plan-jump:disabled { cursor: not-allowed; opacity: 0.35; }
.route-plan-extra { margin: 16px 0; padding: 11px; color: var(--muted); background: rgba(154, 195, 208, 0.06); border-radius: 10px; font-size: 11px; line-height: 1.45; }
.route-start-selected { width: 100%; min-height: 46px; color: #06271f; background: var(--accent); border: 0; border-radius: 12px; font-weight: 850; }
.route-start-selected:disabled { cursor: not-allowed; opacity: 0.45; }

.follow-up-panel {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(1, 10, 17, 0.7);
  backdrop-filter: blur(6px);
}

.follow-up-panel[hidden] { display: none; }
html.follow-up-open, body.follow-up-open { overflow: hidden; }
.follow-up-card {
  width: min(1040px, 100%);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  padding: 28px;
  color: var(--text);
  background: linear-gradient(145deg, #0b263b, #071d2f);
  border: 1px solid rgba(89, 211, 170, 0.42);
  border-radius: 24px;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.64);
}
.follow-up-header { display: grid; grid-template-columns: 58px minmax(0, 1fr) 38px; align-items: start; gap: 17px; }
.follow-up-mark { display: grid; width: 58px; height: 58px; place-items: center; background: rgba(89, 211, 170, 0.1); border: 1px solid rgba(89, 211, 170, 0.34); border-radius: 16px; }
.follow-up-mark img { width: 38px; height: 38px; }
.follow-up-header .eyebrow { margin: 0 0 7px; }
.follow-up-header h2 { margin: 0; font-size: 30px; letter-spacing: -0.025em; }
.follow-up-header p:last-child { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.follow-up-close { width: 38px; height: 38px; padding: 0; color: var(--text); background: rgba(154, 195, 208, 0.08); border: 1px solid var(--line); border-radius: 11px; font-size: 22px; }
.follow-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.follow-up-section { min-width: 0; padding: 20px; background: rgba(2, 18, 30, 0.58); border: 1px solid rgba(154, 195, 208, 0.17); border-radius: 17px; }
.follow-up-section h3, .proposal-form h3 { margin: 0 0 10px; font-size: 19px; }
.follow-up-section > p { margin: 0 0 17px; color: var(--muted); line-height: 1.52; }
.follow-up-section label, .proposal-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.follow-up-section textarea, .proposal-fields input, .proposal-fields select, .proposal-fields textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(2, 18, 30, 0.88);
  border: 1px solid rgba(154, 195, 208, 0.25);
  border-radius: 11px;
  font: inherit;
}
.follow-up-section textarea, .proposal-fields textarea { min-height: 84px; resize: vertical; }
.feedback-rating { display: flex; gap: 5px; margin: 2px 0 15px; }
.feedback-rating button { width: 43px; height: 43px; padding: 0; color: #78909a; background: rgba(154, 195, 208, 0.06); border: 1px solid rgba(154, 195, 208, 0.17); border-radius: 11px; font-size: 25px; }
.feedback-rating button[data-selected="true"], .feedback-rating button:hover { color: #ffd166; border-color: rgba(255, 209, 102, 0.62); background: rgba(255, 209, 102, 0.09); }
.follow-up-primary, .follow-up-secondary { width: 100%; min-height: 47px; margin-top: 14px; border-radius: 12px; font-weight: 850; }
.follow-up-primary { color: #06271f; background: var(--accent); border: 0; }
.follow-up-secondary { color: var(--text); background: rgba(154, 195, 208, 0.08); border: 1px solid var(--line); }
.follow-up-primary:disabled, .follow-up-secondary:disabled { cursor: wait; opacity: 0.55; }
.follow-up-direct-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.follow-up-direct-links a { color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.follow-up-alternatives { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.follow-up-alternatives button { min-height: 42px; padding: 0 10px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; font-weight: 800; }
.follow-up-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.follow-up-status[data-kind="success"] { color: var(--accent); }
.follow-up-status[data-kind="error"] { color: var(--danger); }
.proposal-form { margin-top: 18px; padding: 20px; background: rgba(2, 18, 30, 0.76); border: 1px solid rgba(89, 211, 170, 0.27); border-radius: 17px; }
.proposal-form-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.proposal-form-heading p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.proposal-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.proposal-details { grid-column: 1 / -1; }
.proposal-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.proposal-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--accent); }
.proposal-submit-row { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: center; gap: 15px; }

.secondary-button {
  min-height: 44px;
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.route-button {
  min-height: 44px;
  color: #06271f;
  background: var(--accent);
  border: 0;
  font-weight: 850;
}

.route-button:hover { background: #73e5bd; }
.route-button:disabled { cursor: not-allowed; opacity: 0.5; }

.text-button {
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.browser-demo {
  display: none;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.browser-demo-copy {
  max-width: 760px;
}

.browser-demo h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.browser-demo-copy > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.browser-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.browser-controls > label:first-child {
  min-width: min(280px, 100%);
}

.browser-controls label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.browser-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 40px 0 14px;
  color: var(--text);
  background: rgba(4, 24, 40, 0.72);
  border: 1px solid rgba(154, 195, 208, 0.3);
  border-radius: 12px;
}

.browser-controls select:disabled { opacity: 0.55; }

.browser-highlight-switch {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.browser-highlight-switch input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.browser-highlight-switch > span:first-of-type {
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}

.browser-controls .secondary-button {
  min-height: 46px;
}

.browser-status {
  margin-bottom: 14px;
}

.browser-stage-shell {
  position: relative;
  width: 100%;
}

.browser-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  background: #dfe7f0;
  border: 1px solid rgba(154, 195, 208, 0.24);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.browser-stage.is-privacy-obscured #browser-frame,
.browser-stage.is-privacy-obscured .browser-focus {
  filter: blur(max(18px, 1.8cqw));
  opacity: 0.12;
}

.browser-watermark {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: rgba(6, 77, 62, 0.34);
  font-size: clamp(7px, 0.72cqw, 13px);
  font-weight: 760;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.browser-watermark span {
  position: absolute;
  display: grid;
  width: clamp(210px, 34cqw, 490px);
  gap: 0.22em;
  padding: clamp(7px, 0.72cqw, 13px) clamp(10px, 1.1cqw, 20px);
  border: 1px solid rgba(16, 132, 106, 0.18);
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(224, 252, 244, 0.28), rgba(239, 255, 250, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 4px 18px rgba(4, 68, 55, 0.035);
  line-height: 1.15;
  text-align: left;
  transform: rotate(-12deg);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.44);
}

.browser-watermark span::before {
  content: "CONTPARK";
  color: rgba(0, 113, 88, 0.42);
  font-size: 1.18em;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.browser-watermark span:nth-child(1) { top: 16%; left: 7%; }
.browser-watermark span:nth-child(2) { top: 47%; right: 6%; }
.browser-watermark span:nth-child(3) { top: 76%; left: 20%; }

.browser-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #173147;
  text-align: center;
  background: #e8eef5;
}

.browser-placeholder-dashboard {
  position: absolute;
  inset: -1.5%;
  display: grid;
  grid-template-columns: 19% 1fr;
  filter: blur(max(4px, 0.42cqw));
  opacity: 0.78;
  transform: scale(1.025);
  transform-origin: center;
}

.placeholder-sidebar {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 3.5%;
  padding: 8% 10%;
  background: #0b2947;
}

.placeholder-brand {
  width: 68%;
  height: 5%;
  margin-bottom: 9%;
  border-radius: 999px;
  background: #4f7492;
}

.placeholder-menu {
  width: 84%;
  height: 3.2%;
  border-radius: 999px;
  background: #58758f;
}

.placeholder-menu.short { width: 62%; }
.placeholder-menu.active {
  width: 100%;
  height: 6%;
  margin: -1% 0 2%;
  background: #0879b9;
}

.placeholder-workspace {
  display: grid;
  grid-template-rows: 9% 10% 42% 1fr;
  gap: 3%;
  padding: 0 2.5% 3%;
  background: #f3f6fa;
}

.placeholder-topbar,
.placeholder-actions {
  display: flex;
  align-items: center;
  gap: 3%;
  border-bottom: 1px solid #ccd6e0;
  background: #fff;
}

.placeholder-topbar span,
.placeholder-actions span {
  width: 15%;
  height: 25%;
  border-radius: 999px;
  background: #c7d1db;
}

.placeholder-topbar span:first-child { width: 28%; }
.placeholder-actions span { width: 14%; height: 32%; }

.placeholder-control-card {
  display: grid;
  grid-template-rows: 16% 24% 1fr;
  gap: 8%;
  padding: 2.5%;
  border-radius: 1.5cqw;
  background: #fff;
  box-shadow: 0 1cqw 3cqw rgba(33, 65, 91, 0.08);
}

.placeholder-heading {
  width: 24%;
  border-radius: 999px;
  background: #1783ae;
}

.placeholder-metrics,
.placeholder-alerts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5%;
}

.placeholder-metrics span {
  border-radius: 0.5cqw;
  background: #d9e1e8;
}

.placeholder-alerts span {
  border-left: 0.35cqw solid #e25b58;
  border-radius: 0.4cqw;
  background: #edf1f5;
}

.placeholder-alerts span:nth-child(even) { border-left-color: #e5b644; }

.placeholder-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2%;
}

.placeholder-chart {
  position: relative;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: repeating-linear-gradient(to bottom, #fff 0 18%, #dce4ec 18.5% 19%, #fff 19.5% 36%);
}

.placeholder-chart::after {
  position: absolute;
  right: 4%;
  bottom: 24%;
  left: 4%;
  height: 18%;
  content: '';
  border-top: 0.35cqw solid #ba65d4;
  transform: skewY(-5deg);
}

.placeholder-chart.rising::after {
  height: 45%;
  border-color: #278dc5;
  transform: skewY(-18deg);
}

.browser-placeholder::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  background: rgba(226, 235, 244, 0.28);
  backdrop-filter: blur(2px);
}

.browser-placeholder[data-state='loading']::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 24%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: placeholder-scan 1.6s ease-in-out infinite;
}

.browser-placeholder-message {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: clamp(20px, 3cqw, 56px);
}

.browser-placeholder-icon {
  width: 82px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #06271f;
  background: var(--accent);
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.browser-placeholder p {
  margin: 18px 0 0;
  max-width: min(560px, 72%);
  font-weight: 800;
}

.browser-revive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.9cqw, 16px);
  min-width: clamp(190px, 22cqw, 320px);
  min-height: clamp(54px, 5.4cqw, 78px);
  margin-top: clamp(18px, 2cqw, 34px);
  padding: 0 clamp(22px, 2.5cqw, 40px);
  color: #06271f;
  background: var(--accent);
  border: 1px solid rgba(6, 39, 31, 0.14);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(21, 119, 91, 0.26), 0 0 0 8px rgba(89, 211, 170, 0.12);
  font: inherit;
  font-size: clamp(14px, 1.25cqw, 21px);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.browser-revive-button[hidden] { display: none; }
.browser-revive-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(21, 119, 91, 0.32), 0 0 0 10px rgba(89, 211, 170, 0.14);
}
.browser-revive-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.browser-revive-button:disabled { cursor: wait; opacity: 0.72; }

.browser-revive-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
}

.browser-placeholder[data-state='recoverable'] .browser-placeholder-icon,
.browser-placeholder[data-state='idle'] .browser-placeholder-icon {
  display: none;
}

.browser-placeholder[data-state='recoverable'] p,
.browser-placeholder[data-state='idle'] p {
  margin-top: 0;
  font-size: clamp(15px, 1.25cqw, 22px);
}

.browser-placeholder[data-state='loading'] .browser-placeholder-icon {
  animation: placeholder-pulse 1.2s ease-in-out infinite;
}

@keyframes placeholder-scan {
  from { left: -28%; }
  to { left: 104%; }
}

@keyframes placeholder-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(89, 211, 170, 0.16); transform: scale(1); }
  50% { box-shadow: 0 0 0 1.2cqw rgba(89, 211, 170, 0); transform: scale(1.04); }
}

#browser-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  animation: browser-frame-appear 220ms ease-out;
}

@keyframes browser-frame-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.browser-focus {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  min-width: max(5px, 1.25cqw);
  min-height: max(5px, 1.25cqw);
  pointer-events: none;
  border: max(1px, 0.21cqw) solid var(--accent);
  border-radius: max(3px, 0.73cqw);
  box-shadow: 0 0 0 100vmax rgba(3, 15, 25, 0.64), 0 0 max(8px, 1.77cqw) rgba(89, 211, 170, 0.65);
  transition: none;
}

.browser-focus > span {
  position: absolute;
  left: -4px;
  bottom: calc(100% + 8px);
  padding: 7px 10px;
  color: #06271f;
  background: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.browser-live-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  color: #06271f;
  background: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.route-progress {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 180px);
  padding: 8px 12px;
  color: #eaf8f4;
  background: rgba(3, 19, 31, 0.84);
  border: 1px solid rgba(89, 211, 170, 0.36);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.route-progress-live { display: none; }
.route-progress span { color: var(--accent); font-size: 11px; font-weight: 900; }
.route-progress strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

body.presentation-screen-active { overflow: hidden; }

body.presentation-screen-active .browser-demo {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: #061827;
  border: 0;
}

body.presentation-screen-active .browser-demo-copy { display: none; }
body.presentation-screen-active .browser-controls,
body.presentation-screen-active .browser-status { display: none; }
body.presentation-screen-active .browser-stage-shell {
  width: min(100vw, calc(100vh * 16 / 9));
  width: min(100vw, calc(100dvh * 16 / 9));
}
body.presentation-screen-active .browser-stage {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
}

body.presentation-screen-active .preview {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 28px;
  width: min(300px, 26vw);
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(89, 211, 170, 0.72);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

body.presentation-screen-active .preview .voice-state {
  left: 8px;
  right: 8px;
  bottom: 58px;
  padding: 8px 10px;
  border-radius: 11px;
}

body.presentation-screen-active[data-presenter-mode="simli"][data-avatar-visible="true"] .preview .voice-state {
  position: fixed;
  top: auto;
  right: 28px;
  bottom: calc(38px + min(225px, 19.5vw));
  left: auto;
  width: min(300px, 26vw);
  max-width: none;
  min-height: 34px;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 10px;
}

body.presentation-screen-active[data-presenter-mode="simli"] .preview .voice-state-dots {
  min-width: 22px;
  height: 18px;
  gap: 3px;
}

body.presentation-screen-active[data-presenter-mode="simli"] .preview .voice-state-dots i {
  width: 4px;
  height: 4px;
}

body.presentation-screen-active[data-presenter-mode="simli"] .preview .voice-state-copy strong { font-size: 10px; }
body.presentation-screen-active[data-presenter-mode="simli"] .preview .voice-state-copy > span { display: none; }

body.presentation-screen-active .preview .voice-controls {
  left: 8px;
  right: 8px;
  bottom: 8px;
  gap: 6px;
}

body.presentation-screen-active .preview .voice-controls button {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 10px;
}

body.presentation-screen-active .preview .interrupt-button { min-width: 58px; }

body.presentation-screen-active .voice-state-copy > span { font-size: 9px; }

body.presentation-screen-active[data-presenter-mode="audio"] .preview,
body.presentation-screen-active[data-presenter-mode="replay"] .preview,
body.presentation-screen-active[data-avatar-visible="false"] .preview {
  right: 24px;
  bottom: 22px;
  width: min(370px, calc(100vw - 48px));
  height: 72px;
  aspect-ratio: auto;
  background: rgba(5, 25, 40, 0.94);
  border-width: 1px;
  border-radius: 16px;
}

body.presentation-screen-active[data-presenter-mode="audio"] .preview .placeholder,
body.presentation-screen-active[data-presenter-mode="replay"] .preview .placeholder,
body.presentation-screen-active[data-avatar-visible="false"] .preview .placeholder,
body.presentation-screen-active[data-presenter-mode="audio"] .preview .voice-controls,
body.presentation-screen-active[data-presenter-mode="replay"] .preview .voice-controls,
body.presentation-screen-active[data-avatar-visible="false"] .preview .voice-controls { display: none !important; }

body.presentation-screen-active[data-presenter-mode="audio"] .preview .voice-state,
body.presentation-screen-active[data-presenter-mode="replay"] .preview .voice-state,
body.presentation-screen-active[data-avatar-visible="false"] .preview .voice-state {
  inset: 7px;
  min-height: 0;
  padding: 8px 11px;
  border-radius: 11px;
  box-shadow: none;
}

body.presentation-screen-active[data-avatar-visible="false"] .preview .voice-state-copy > span { display: block; }

footer {
  padding: 24px 0 30px;
  color: #7895a2;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .preview-column { width: min(760px, 100%); justify-self: center; }
  .preview { width: 100%; }
}

@media (min-width: 1051px) and (min-height: 640px) {
  html,
  body { height: 100%; overflow-y: hidden; }
  .shell { height: 100dvh; min-height: 0; }
  .brand,
  footer { flex: 0 0 auto; }
  .hero { min-height: 0; overflow: hidden; }
  .hero-copy,
  .preview-column { min-height: 0; }
  .preview-column { max-height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
  .preview {
    width: min(100%, calc((100dvh - 238px) * 4 / 3));
    max-height: calc(100dvh - 238px);
    justify-self: center;
  }
  footer { padding: 14px 0 18px; }
}

@media (min-width: 1051px) and (max-height: 900px) {
  .brand { min-height: 72px; }
  .hero { padding-top: 28px; }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(40px, 4vw, 58px); }
  .lead { margin: 16px 0 18px; }
  .launch-card { padding-top: 18px; }
  .launch-card-title { margin-bottom: 15px; }
  .setup-grid { margin-bottom: 14px; }
  .confidentiality-notice { margin-bottom: 13px; }
  .preview-column { gap: 12px; }
  .hints { gap: 9px; font-size: 11px; }
  .hints li > span:first-child { width: 22px; height: 22px; flex-basis: 22px; }
  footer { padding-top: 10px; padding-bottom: 12px; }
}

@media (min-width: 1051px) and (max-height: 760px) {
  .brand { min-height: 64px; }
  .hero { padding-top: 18px; }
  .eyebrow { margin-bottom: 8px; }
  h1 { font-size: 46px; line-height: 0.98; }
  .lead { margin: 12px 0 14px; font-size: 15px; line-height: 1.42; }
  .launch-card { padding: 16px 20px 14px; }
  .launch-card-title { margin-bottom: 12px; font-size: 16px; }
  .setup-grid { gap: 12px; margin-bottom: 11px; }
  .launch-card label { margin-bottom: 7px; font-size: 12px; }
  .language-row select,
  .mode-row select { height: 42px; }
  .confidentiality-notice { gap: 9px; margin-bottom: 10px; padding: 8px 10px; }
  .confidentiality-notice-mark { width: 30px; height: 30px; }
  .confidentiality-notice-copy strong { font-size: 12px; }
  .confidentiality-notice-copy > span { font-size: 11px; }
  .confidentiality-notice > button { min-height: 36px; }
  .launch-row input,
  .launch-row button { min-height: 48px; height: 48px; }
  .access-request-open { margin-top: 12px; padding-top: 12px; }
  .status { margin-top: 8px; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 24px, 1440px); }
  .brand { min-height: 68px; }
  .hero { padding-top: 36px; gap: 34px; }
  h1 { font-size: clamp(38px, 13vw, 56px); }
  .setup-grid { grid-template-columns: 1fr; }
  .launch-row { grid-template-columns: 1fr; }
  .launch-row button { width: 100%; }
  .preview-column { gap: 18px; }
  .hints { grid-template-columns: 1fr; gap: 12px; font-size: 13px; }
  .access-request-dialog { align-items: end; padding: 8px; }
  .access-request-card { padding: 18px; border-radius: 18px 18px 8px 8px; }
  .access-request-grid { grid-template-columns: 1fr; }
  .access-request-wide { grid-column: auto; }
  .access-request-header { grid-template-columns: auto 1fr auto; }
  .confidentiality-notice { grid-template-columns: 32px minmax(0, 1fr); }
  .confidentiality-notice > button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .confidentiality-dialog { align-items: end; padding: 8px; }
  .confidentiality-card { max-height: calc(100dvh - 16px); padding: 16px; border-radius: 18px; }
  .confidentiality-header { grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 11px; }
  .confidentiality-mark { width: 44px; height: 44px; border-radius: 12px; }
  .confidentiality-mark img { width: 28px; height: 28px; }
  .confidentiality-header h2 { font-size: 24px; }
  .confidentiality-close { width: 34px; height: 34px; }
  .confidentiality-term { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .confidentiality-actions { grid-template-columns: 1fr; }
  .preview { aspect-ratio: 4 / 3; border-radius: 20px; }
  .startup-dashboard-preview .browser-placeholder-dashboard { transform: scale(1.12); }
  .startup-preparing-status {
    right: 18px;
    bottom: 122px;
    left: 18px;
    width: auto;
    min-height: 58px;
    padding: 12px 14px;
  }
  .startup-avatar-card { right: 18px; bottom: 18px; width: 86px; border-radius: 21px; }
  .session-actions { margin-top: -18px; justify-content: stretch; }
  .session-actions button { flex: 1; }
  .browser-demo { padding-top: 36px; }
  .browser-controls { align-items: stretch; flex-direction: column; }
  .browser-controls > label:first-child,
  .browser-controls .secondary-button,
  .browser-controls .text-button { width: 100%; }
  .browser-highlight-switch { width: 100%; }
  .browser-stage { border-radius: 16px; }
  .browser-focus > span { display: none; }
  body.presentation-screen-active .browser-demo {
    padding: 0;
  }
  body.presentation-screen-active .browser-stage {
    width: 100%;
    border-radius: 0;
  }
  body.presentation-screen-active .browser-controls { padding-right: 0; }
  body.presentation-screen-active .browser-controls > label:first-child,
  body.presentation-screen-active .browser-highlight-switch { display: none; }
  body.presentation-screen-active .browser-status { margin-right: 0; }
  body.presentation-screen-active .preview { right: 14px; bottom: 14px; width: 150px; aspect-ratio: 4 / 3; border-radius: 14px; }
  body.presentation-screen-active .preview .voice-state { display: none; }
  body.presentation-screen-active .preview .voice-controls { left: 5px; right: 5px; bottom: 5px; gap: 4px; }
  body.presentation-screen-active .preview .voice-controls button { min-height: 36px; padding: 0 6px; font-size: 9px; }
  body.presentation-screen-active .preview .interrupt-button { min-width: 42px; }
  .presentation-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
    overflow: visible;
  }
  .presentation-toolbar > * { flex: 0 0 auto; }
  .presentation-toolbar .toolbar-spacer { display: none; }
  .presentation-toolbar .toolbar-separator { display: none; }
  #route-previous-button,
  #route-speed-control,
  #route-next-button,
  #toolbar-interrupt-button,
  #toolbar-end-button { display: none; }
  .toolbar-more-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  .toolbar-more-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 16px));
    gap: 8px;
    padding: 10px;
    background: rgba(5, 25, 40, 0.98);
    border: 1px solid rgba(154, 195, 208, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
  }
  .toolbar-more-menu .toolbar-button { width: 100%; }
  .toolbar-mobile-speed-control {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 0 10px;
    color: var(--muted);
    background: rgba(18, 53, 77, 0.9);
    border: 1px solid rgba(154, 195, 208, 0.2);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
  }
  .toolbar-mobile-speed-control select {
    width: 72px;
    min-height: 30px;
    color: var(--text);
    background: rgba(2, 19, 31, 0.82);
    border: 1px solid rgba(154, 195, 208, 0.22);
    border-radius: 8px;
  }
  .toolbar-button { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .toolbar-speed-control { min-height: 36px; padding-left: 8px; font-size: 10px; }
  .toolbar-speed-control select { width: 58px; font-size: 10px; }
  .voice-message-button { gap: 6px; }
  .voice-message-button::before { width: 15px; height: 15px; }
  .voice-message-toolbar {
    flex: 1 1 100px;
    min-width: 100px;
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #toolbar-voice-state { order: -4; margin-left: 2px; }
  #toolbar-ask-button { order: -3; }
  #route-plan-button {
    order: -2;
    max-width: 92px;
    padding-inline: 8px;
    gap: 5px;
  }
  #route-toggle-button {
    order: -1;
    min-width: 0;
    max-width: 72px;
    overflow: hidden;
    padding-inline: 8px;
    text-overflow: ellipsis;
  }
  #toolbar-more-button { order: 0; margin-left: auto; }
  body.presentation-screen-active .browser-stage-shell {
    display: grid;
    width: min(100vw, calc((100dvh - 112px) * 16 / 9));
    gap: 8px;
  }
  body.presentation-screen-active .route-progress {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 34px;
    padding: 7px 10px;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.presentation-screen-active .route-progress-live {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(89, 211, 170, 0.12);
  }
  body.presentation-screen-active .browser-live-badge { display: none; }
  .route-plan-drawer { top: 68px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .route-plan-subitems { padding-left: 28px; }
  .route-plan-section-header { grid-template-columns: 22px 17px minmax(0, 1fr); }
  .route-plan-section-header > .route-plan-jump { display: none; }
  .follow-up-panel { align-items: end; padding: 8px; }
  .follow-up-card { max-height: calc(100dvh - 16px); padding: 18px; border-radius: 18px; }
  .follow-up-header { grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 11px; }
  .follow-up-mark { width: 44px; height: 44px; border-radius: 12px; }
  .follow-up-mark img { width: 29px; height: 29px; }
  .follow-up-header h2 { font-size: 23px; }
  .follow-up-grid, .proposal-fields { grid-template-columns: 1fr; }
  .follow-up-alternatives { grid-template-columns: 1fr; }
  .proposal-form-heading { display: block; }
  .proposal-form-heading .text-button { margin: 0 0 12px; padding: 0; }
  .proposal-details { grid-column: auto; }
  .proposal-submit-row { grid-template-columns: 1fr; }
  body.presentation-screen-active[data-presenter-mode="audio"] .preview,
  body.presentation-screen-active[data-presenter-mode="replay"] .preview { display: none; }
}

@media (max-height: 520px) {
  .presentation-toolbar {
    top: 6px;
    left: 6px;
    right: 6px;
    overflow: visible;
  }
  .presentation-toolbar .toolbar-spacer,
  .presentation-toolbar .toolbar-separator,
  #route-previous-button,
  #route-speed-control,
  #route-next-button,
  #toolbar-interrupt-button,
  #toolbar-end-button { display: none; }
  .toolbar-more-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 16px;
  }
  .toolbar-more-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 12px));
    gap: 7px;
    padding: 9px;
    background: rgba(5, 25, 40, 0.98);
    border: 1px solid rgba(154, 195, 208, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
  }
  .toolbar-more-menu .toolbar-button { width: 100%; }
  .toolbar-mobile-speed-control {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    color: var(--muted);
    background: rgba(18, 53, 77, 0.9);
    border: 1px solid rgba(154, 195, 208, 0.2);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
  }
  .toolbar-mobile-speed-control select {
    width: 72px;
    min-height: 28px;
    color: var(--text);
    background: rgba(2, 19, 31, 0.82);
    border: 1px solid rgba(154, 195, 208, 0.22);
    border-radius: 8px;
  }
  body.presentation-screen-active .browser-stage-shell {
    display: grid;
    width: min(100vw, calc((100dvh - 104px) * 16 / 9));
    gap: 6px;
  }
  body.presentation-screen-active .route-progress {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 30px;
    padding: 5px 9px;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.presentation-screen-active .route-progress-live {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--accent);
    border-radius: 50%;
  }
  body.presentation-screen-active .browser-live-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .startup-preview-tint::after,
  .startup-loading-logo,
  .startup-loading-logo::after,
  .startup-loading-logo img,
  .startup-preparing-pulse,
  .startup-avatar-card,
  .browser-placeholder[data-state='loading']::before,
  .browser-placeholder[data-state='loading'] .browser-placeholder-icon,
  .browser-revive-button,
  #browser-frame {
    animation: none;
  }
}
