@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --font-sans: "Sora", system-ui, sans-serif;
  --bg: #f7f7f4;
  --bg-gradient-start: #fafaf8;
  --bg-gradient-end: #f3f3ef;
  --surface: #ffffff;
  --surface-soft: #fafaf8;
  --surface-muted: #f0f0ec;
  --panel: var(--surface);
  --text: #11183f;
  --muted: #667199;
  --text-subtle: #8a93b5;
  --line: #deded8;
  --border-soft: #eaeae5;
  --accent: #6675f6;
  --accent-hover: #5663e8;
  --accent-soft: #e9ecff;
  --accent-text: #ffffff;
  --danger: #b74b6d;
  --shadow-soft: 0 12px 30px rgb(35 35 30 / 0.06);
  --topbar-control-height: 46px;
  --app-min-height: 620px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
}

body.landing-page {
  background:
    radial-gradient(circle at 10% 8%, rgb(102 117 246 / 0.1), transparent 28%),
    radial-gradient(circle at 88% 2%, rgb(180 156 255 / 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg) 46%, var(--bg-gradient-end) 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: var(--app-min-height);
  padding: 20px 28px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: filter 160ms ease, opacity 160ms ease;
}

.app-shell.is-locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(25 33 36 / 0.38);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.plan-modal-card {
  width: min(80vw, 1180px);
  max-height: min(86vh, 760px);
  overflow: auto;
}

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

.modal-close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.feature-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

.feature-mark.is-included {
  background: color-mix(in srgb, var(--accent), white 86%);
  color: var(--accent);
}

.feature-mark.is-not-included {
  color: var(--muted);
  font-size: 18px;
}

.plan-card-grid {
  overflow: auto;
}

.plan-comparison-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.plan-comparison-table th,
.plan-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.plan-comparison-table tr > :last-child {
  border-right: 0;
}

.plan-comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.plan-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.plan-comparison-table thead th:first-child,
.plan-comparison-table tbody th {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-comparison-table tbody td {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.plan-comparison-table .is-current-plan {
  background: color-mix(in srgb, var(--accent), white 93%);
  box-shadow: inset 0 3px 0 var(--accent);
}

.landing-plan-card.is-featured-plan {
  border-color: color-mix(in srgb, var(--accent), white 20%);
}

.plan-table-title {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.billing-button.plan-choose-button {
  min-height: 42px;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  padding-inline: 14px;
  white-space: nowrap;
}

.current-plan-label {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.plan-feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.modal-card h2 {
  margin: 0;
  font-size: 22px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.topbar > .app-brand {
  grid-column: 1;
  justify-self: start;
  margin-right: 0;
}

.topbar-actions {
  grid-column: 3;
  min-width: 0;
  margin-inline: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.listen-stack {
  width: 100%;
  display: grid;
  min-width: 0;
}

.listen-control {
  position: relative;
  height: var(--topbar-control-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 14px 30px;
  align-items: center;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgb(102 117 246 / 0.18);
  overflow: visible;
}

.listen-control.is-listening {
  grid-template-columns: minmax(0, 1fr) 40px 14px 30px;
  background: var(--danger);
}

.listen-main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  padding-inline: 6px;
  white-space: nowrap;
  font-size: 18px;
}

.listen-control .listen-main-button {
  border-radius: 12px 0 0 12px;
  background: transparent;
}

.listen-session-time {
  flex-shrink: 0;
  min-width: 4.5ch;
  padding-left: 10px;
  border-left: 1px solid rgb(255 255 255 / 0.3);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mute-button {
  width: 0;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.listen-control .mute-button {
  width: 100%;
  padding: 0 4px;
}

.listen-control .mute-button:hover:not(:disabled),
.listen-control .mute-button:focus-visible,
.listen-control.is-muted .mute-button {
  background: rgb(255 255 255 / 0.18);
  outline: none;
}

.control-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.pause-control-icon, .microphone-off-icon { display: none; }
.listen-control.is-listening .pause-control-icon { display: block; }
.mute-button .control-icon { margin: auto; }
.mute-button.is-muted .microphone-on-icon { display: none; }
.mute-button.is-muted .microphone-off-icon { display: block; }
.microphone-chevron-icon { width: 16px; height: 16px; margin: auto; }

.mute-button[hidden] {
  display: block;
  visibility: hidden;
}

.inline-mic-meter {
  width: 0;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
}

.listen-control.is-listening .inline-mic-meter {
  width: 14px;
  opacity: 1;
}

.listen-control.is-muted .inline-mic-meter {
  opacity: 0.45;
}

#meterFill {
  --meter-level: 0;
  --meter-opacity: 0.35;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
  overflow: hidden;
}

#meterFill .voice-bar {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
  border-radius: inherit;
  background: #fff;
  opacity: var(--meter-opacity);
  transform: scaleY(var(--meter-level));
  transform-origin: center bottom;
  transition: transform 70ms linear, opacity 70ms linear;
}

.mic-menu-button {
  width: 0;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 0;
  border-radius: 0 12px 12px 0;
  padding: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
}

.listen-control .mic-menu-button {
  width: 30px;
}

.mic-menu-button[hidden] {
  display: block;
  visibility: hidden;
}

.mic-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  max-height: min(320px, 60vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.14);
}

.mic-menu[hidden] {
  display: none;
}

.mic-menu-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.mic-menu-option:hover,
.mic-menu-option[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.language-menu-button {
  position: relative;
  height: 34px;
  width: 34px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.language-menu-button span {
  position: relative;
  width: 15px;
  height: 15px;
}

.language-menu-button span::before,
.language-menu-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.language-menu-button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.language-menu-button:hover,
.language-menu-button:focus-visible,
.language-menu-button[aria-expanded="true"] {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  outline: none;
}

.language-add-menu.is-pane-add .language-menu-button {
  width: 100%;
  min-width: 82px;
  height: 44px;
  grid-template-columns: auto auto auto;
  justify-content: center;
  padding: 0 10px;
}

.language-menu-add-label {
  font-size: 13px;
  font-weight: 600;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0;
  font-weight: 700;
}

h1 span {
  font-weight: 400;
}

.app-brand p,
.panel-title span,
.placeholder {
  color: var(--muted);
}

.status-pill {
  display: none;
}

.status-pill.is-error {
  display: block;
  margin-top: 8px;
  color: #9f1d17;
  font-size: 12px;
  line-height: 1.4;
}

.status-pill.live {
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 650;
}

input[type="password"],
input[type="email"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 13px;
  background: var(--surface-soft);
}

.language-add-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: min(470px, 70vh);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.14);
  padding: 10px;
  transform: translateX(var(--language-popover-shift, 0));
}

.language-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 8px;
  outline: none;
}

.language-search:focus {
  border-color: color-mix(in srgb, var(--accent), white 30%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 85%);
}

.language-option-list {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
}

.language-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.language-option:hover,
.language-option:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.language-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.language-option.is-selected small {
  color: var(--accent);
}

.language-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.language-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.language-empty-state {
  color: var(--muted);
  padding: 14px 10px;
  font-weight: 650;
}

.primary-button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  min-width: 0;
}

.secondary-button,
.icon-text-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.secondary-button:disabled,
.icon-text-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.danger-button {
  background: var(--danger);
}

.session-qr-button {
  width: var(--topbar-control-height);
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.session-refresh-button {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  min-width: 20px;
  min-height: var(--topbar-control-height);
}

.session-refresh-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.session-qr-button[hidden],
.session-refresh-button[hidden] {
  display: none;
}

.session-qr-button img {
  width: 34px;
  height: 34px;
  display: block;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  transition: grid-template-columns 190ms ease, column-gap 190ms ease;
}

.workspace-grid > * {
  min-width: 0;
}

.sessions-column {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sessions-sidebar {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 150ms ease,
    transform 190ms ease,
    padding-inline 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.sessions-sidebar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sessions-sidebar-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.sessions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sessions-chevron {
  width: 14px;
  height: 14px;
  opacity: 0;
  filter: opacity(0.5);
  transition: opacity 120ms ease, transform 120ms ease;
}

.sessions-sidebar-header:hover .sessions-chevron,
.sessions-toggle:focus-visible .sessions-chevron,
.sessions-toggle[aria-expanded="false"] .sessions-chevron { opacity: 1; }

.sessions-toggle[aria-expanded="false"] .sessions-chevron { transform: rotate(-90deg); }

.sessions-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.session-library-list[hidden] { display: none; }

.session-new-button {
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  justify-self: start;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.session-new-button:hover { filter: brightness(1.08); }
.session-new-button:disabled { opacity: 0.5; cursor: default; }

.sessions-sidebar-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.session-library-list {
  width: calc(100% + 20px);
  margin-inline: -10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: 3px;
}

.session-library-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.session-library-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

/* Keep text aligned with the sidebar heading while the surface extends around it. */
.session-library-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0;
  position: relative;
  display: block;
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: none;
  transition: background 120ms ease;
}

.session-library-item:hover,
.session-library-item:focus-within {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: none;
  outline: none;
}

.session-library-item.is-active {
  background: color-mix(in srgb, var(--accent) 26%, var(--surface));
  box-shadow: none;
}

.session-library-item.is-active:hover,
.session-library-item.is-active:focus-within {
  background: color-mix(in srgb, var(--accent) 32%, var(--surface));
}

.session-library-open {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 9px 82px 9px 10px;
  display: grid;
  gap: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.session-library-open:focus-visible {
  outline: none;
}

.session-library-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.3;
}

.session-library-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}

.session-library-item .session-date {
  opacity: 1;
  position: absolute;
  right: 10px;
  width: 58px;
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 120ms ease 90ms;
}

.session-delete-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  border: 1px solid color-mix(in srgb, #b3261e, white 58%);
  border-radius: 7px;
  padding: 5px 7px;
  background: #fff8f7;
  color: #9f1d17;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease 90ms;
}

.session-library-item:hover .session-delete-button {
  opacity: 1;
  pointer-events: auto;
}

.session-library-item:hover .session-date,
.session-library-item:focus-within .session-date {
  opacity: 0;
}

.session-library-item:focus-within .session-delete-button {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0ms;
}

.live-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.right-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 2px 0;
  overflow: auto;
}

.translation-context-widget textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 68px;
  padding: 8px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: inherit;
  background: var(--panel);
}

.translation-context-widget textarea:disabled { opacity: 0.65; }

.translation-context-widget textarea:focus {
  caret-color: var(--text);
}

.translation-context-widget textarea:focus::placeholder {
  opacity: 0;
}

.translation-context-content {
  position: relative;
  display: grid;
  margin-top: 0;
}

.translation-context-optional {
  --context-tag-bg: #e5e5df;
  position: absolute;
  right: 14px;
  top: calc(100% - 1px);
  padding: 2px 7px 3px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: var(--context-tag-bg);
  color: #111111;
  font-size: 9px;
  line-height: 12px;
  pointer-events: none;
}

.translation-context-optional::before,
.translation-context-optional::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 7px;
}

.translation-context-optional::before {
  left: -7px;
  background: radial-gradient(circle at 0 100%, transparent 6px, var(--line) 6px, var(--line) 7px, var(--context-tag-bg) 7px);
}

.translation-context-optional::after {
  right: -7px;
  background: radial-gradient(circle at 100% 100%, transparent 6px, var(--line) 6px, var(--line) 7px, var(--context-tag-bg) 7px);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .translation-context-optional { --context-tag-bg: #aeb0b7; }
}
html[data-theme="dark"] .translation-context-optional { --context-tag-bg: #aeb0b7; }

.translation-context-save-status {
  position: absolute;
  top: calc(100% + 20px);
  font-size: 10px;
  color: var(--muted);
}

.side-widget {
  display: grid;
  gap: 8px;
  padding: 0;
}

.side-widget-header,
.side-stat-row,
.side-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-widget-header {
  min-height: 28px;
}

.side-widget-header span {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.side-stat-row span,
.side-control-row span,
.side-control-row label {
  color: var(--text);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.3;
}

.side-widget > strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.side-stat-row { min-height: 24px; }
.side-control-row { min-height: 28px; }

.side-stat-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.side-link-button,
.side-icon-button {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
}

.side-icon-button:hover, .side-link-button:hover { background: var(--surface-muted); }

.side-link-button {
  padding: 0 10px;
}

.side-icon-button {
  width: 28px;
  padding: 0;
}

.plan-usage-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.plan-usage-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.audience-side-widget .translation-qr-slot {
  justify-content: flex-start;
}

.audience-side-widget .original-qr-card {
  width: 100%;
}

.audience-side-widget .original-qr-controls {
  justify-content: start;
}

.audience-side-widget .session-qr-button {
  width: 96px;
  height: 96px;
  min-height: 96px;
}

.audience-side-widget .session-qr-button img {
  width: 80px;
  height: 80px;
}

.audience-link {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  overflow-wrap: anywhere;
  text-align: left;
}

.audience-link-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
}

.audience-link-text {
  display: flex;
  align-items: baseline;
  min-width: 0;
  flex: 1;
  border-radius: 4px;
  cursor: pointer;
}

.audience-link-prefix { flex: 0 0 auto; }

.audience-link-text input {
  width: 0;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: inherit;
  box-shadow: none;
}

.audience-link[data-editing="false"] .audience-link-text:hover {
  color: var(--accent);
  text-decoration: underline;
  background: var(--surface-muted);
}

.audience-link[data-editing="true"] .audience-link-text input {
  cursor: text;
  box-shadow: none;
}

.audience-link-text:focus-within {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.audience-link[data-editing="true"] .audience-link-text:focus-within {
  outline: none;
}

.audience-link-action {
  flex: 0 0 40px;
  width: 40px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.audience-link-action:hover:enabled { background: var(--surface-muted); }
.audience-link-action:disabled { color: var(--muted); opacity: 0.45; cursor: default; }

.audience-link-action svg {
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-link-message {
  display: block;
  margin-top: 4px;
  color: #b42332;
  font-size: 11px;
  font-weight: 500;
}

.audience-link-message[hidden] { display: none; }

.right-panel .segmented-control { border-radius: 8px; }
.right-panel .segmented-control button { width: 32px; height: 28px; font-size: 16px; font-weight: 500; }
.right-panel .contrast-icon { width: 16px; height: 16px; stroke-width: 1.8; }

.right-panel .projection-font-control button[data-value="regular"] { font-weight: 400; }
.right-panel .projection-font-control button[data-value="medium"] { font-weight: 550; }
.right-panel .projection-font-control button[data-value="bold"] { font-weight: 700; }

.display-side-widget .display-controls {
  display: grid;
  gap: 10px;
  justify-content: stretch;
}

.app-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  flex: 0 0 54px;
  min-height: 54px;
  padding-top: 6px;
}

.app-footer > .account-summary {
  margin-right: auto;
  width: 280px;
  flex: 0 1 280px;
}

.app-footer .account-menu {
  top: auto;
  bottom: calc(100% + 8px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

.app-brand {
  margin-right: auto;
  flex-shrink: 0;
}

.app-brand h1 {
  font-size: 30px;
  line-height: 1;
}

.app-brand p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.2;
}

.app-footer > img {
  width: min(78px, 18vw);
  height: auto;
  display: block;
  opacity: 0.74;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legal-links a,
.legal-document a {
  color: var(--accent);
  text-decoration: none;
}

.legal-links a:hover,
.legal-document a:hover {
  text-decoration: underline;
}

.panel {
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

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

.translation-panel > .panel-title {
  min-height: 0;
  margin-bottom: 0;
}

.translation-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.translation-toolbar-slot {
  grid-column: 2;
  min-width: 0;
  min-height: var(--topbar-control-height);
  display: flex;
  align-items: center;
}

.translation-panel {
  grid-area: 1 / 1;
  padding: 0;
  overflow: hidden;
}

.projection-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #090909;
}

.display-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle-control {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px !important;
  min-height: 34px;
}

.toggle-control input {
  accent-color: var(--accent);
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}

.segmented-control button {
  width: 38px;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  appearance: none;
  display: grid;
  place-items: center;
  padding: 0 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.is-active {
  background: var(--accent);
  color: var(--accent-text);
}

.segmented-control button:disabled {
  opacity: 0.4;
  cursor: default;
}

.text-size-control button {
  font-weight: 800;
}

.contrast-icon {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-size-control button {
  font-size: 20px;
}

.translation-card .caption-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  min-height: 0;
  padding-right: 4px;
}

.translation-card .caption-stack::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.translation-card p {
  font-size: clamp(21px, calc(var(--card-font-scale, 1) * 3vw), 44px);
  line-height: 1.12;
  font-weight: 430;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

.translation-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
}

.translation-qr-slot {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.translation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  pointer-events: auto;
}

.translation-language-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.translation-language-controls h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.transcript-download-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.transcript-download-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.transcript-download-link:disabled {
  cursor: default;
  opacity: 0.55;
}

.selected-language-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.selected-language-pill {
  min-height: 28px;
  max-width: 180px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 46%);
  border-radius: 999px;
  padding: 3px 7px 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-language-remove {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.selected-language-remove::before,
.selected-language-remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.selected-language-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.selected-language-remove:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.selected-language-remove:disabled {
  opacity: 0.35;
  cursor: default;
}

.translation-target-grid {
  display: block;
  min-height: 0;
  overflow: visible;
}

.translation-target-area {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.translation-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.target-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  flex: 1;
  padding: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.translation-toolbar > .pop-button {
  flex: 0 0 38px;
  margin: 0 10px 0 auto;
  width: 38px;
  min-height: 38px;
}

.live-grid > .projection-popup-button {
  --tab-bg: var(--surface-soft);
  --tab-text: var(--text);
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: calc(100% - 1px);
  width: auto;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--tab-bg);
  color: var(--tab-text);
  white-space: nowrap;
  font-size: 13px;
}

.projection-popup-button::before,
.projection-popup-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.projection-popup-button::before {
  left: -12px;
  background: radial-gradient(circle at 0 0, transparent 11px, var(--line) 11px, var(--line) 12px, var(--tab-bg) 12px);
}

.projection-popup-button::after {
  right: -12px;
  background: radial-gradient(circle at 100% 0, transparent 11px, var(--line) 11px, var(--line) 12px, var(--tab-bg) 12px);
}

.display-body.is-embedded .display-fullscreen-button {
  display: none;
}

.translation-column-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: min(2vw, 28px);
  overflow: visible;
  padding: 8px 52px 8px 8px;
  transition: grid-template-columns 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.translation-column-grid.target-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.translation-column-grid.target-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.translation-column-grid.target-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.translation-column-grid.target-count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.translation-column-grid.target-count-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.translation-column-grid.target-count-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.translation-column-grid.target-count-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.translation-column-grid.target-count-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.translation-column-grid.target-count-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }

.translation-column {
  min-width: 0;
  min-height: 0;
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: background 120ms ease;
}

.translation-column:hover,
.translation-column:focus-within {
  background: var(--surface-muted);
}

.translation-column header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.target-card .caption-stack {
  overflow-y: auto;
  padding-right: 0;
}

.target-card .caption-stack > :first-child {
  margin-top: auto;
}

.target-card .caption-stack::after {
  content: "";
  flex: 0 0 28px;
}

.transcript-review .translation-column-grid {
  overflow: auto;
  align-items: stretch;
  align-content: start;
  grid-auto-rows: max-content;
  row-gap: 12px;
  scrollbar-width: thin;
  padding-right: 8px;
}

.transcript-review .translation-column {
  min-height: 100%;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span var(--transcript-row-count);
  align-items: start;
}

.transcript-review .transcript-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transcript-review .transcript-cell p { margin: 0; }


.transcript-review .translation-column header {
  grid-row: 1;
  position: sticky;
  top: -8px;
  z-index: 2;
  padding: 8px 0;
  background: var(--panel);
  transition: background 120ms ease;
}

.transcript-review .translation-column:hover header,
.transcript-review .translation-column:focus-within header {
  background: var(--surface-muted);
}

.transcript-review .translation-column header h3 {
  font-size: 14px;
  font-weight: 550;
}

.transcript-review .caption-stack {
  overflow: visible;
  flex: 0 0 auto;
  gap: 12px;
}

.transcript-review .caption-stack > :first-child {
  margin-top: 0;
}

.transcript-review .caption-stack::after { display: none; }

.transcript-review .transcript-speaker-heading {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.transcript-review .caption-line {
  font-size: clamp(14px, calc(var(--card-font-scale, 1) * 16px), 22px);
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.translation-column header h3 {
  margin: 0;
}

.translation-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.translation-column-remove {
  flex: 0 0 auto;
  padding: 0;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.translation-column-remove:hover { color: var(--text); }
.translation-column-remove:disabled { opacity: 0.3; cursor: default; }

.translation-column-copy {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b8b8b;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}

.translation-column:hover .translation-column-copy,
.translation-column:focus-within .translation-column-copy,
.translation-column-copy.is-copied {
  opacity: 1;
}

.translation-column-copy:hover,
.translation-column-copy:focus-visible {
  background: color-mix(in srgb, var(--line), transparent 45%);
  color: var(--text);
  outline: none;
}

.copy-library-icon {
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("/icons/copy.svg?v=lower-left-20260930") center / contain no-repeat;
  mask: url("/icons/copy.svg?v=lower-left-20260930") center / contain no-repeat;
}

.translation-column-copy svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-card {
  background: color-mix(in srgb, var(--surface-soft), var(--surface-muted) 34%);
  overflow-y: hidden;
  overflow-x: hidden;
}

.original-qr-card {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.original-qr-controls {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

.original-qr-button {
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 4px;
}

.original-qr-button img {
  width: 100%;
  height: 100%;
}

.original-qr-refresh {
  min-height: 36px;
  align-self: center;
}

.qr-panel-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.source-card .caption-stack {
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.source-card p {
  font-size: clamp(17px, calc(var(--card-font-scale, 1) * 2vw), 32px);
  color: var(--text);
  font-weight: 430;
}

.translation-grid[data-contrast="light"] .translation-card {
  background: var(--surface-soft);
}

.translation-grid[data-contrast="light"] .target-card {
  background: transparent;
}

.translation-grid[data-contrast="light"] .source-card {
  background: color-mix(in srgb, var(--surface-soft), var(--bg) 44%);
}

.translation-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.translation-card header h3 {
  margin: 0;
  font-weight: 700;
}

.pane-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.translation-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.translation-card-pop,
.translation-card-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.translation-card-pop:hover,
.translation-card-pop:focus-visible {
  color: var(--accent);
  outline: none;
}

.translation-card-close:hover,
.translation-card-close:focus-visible {
  color: var(--danger);
  outline: none;
}

.translation-card-close:disabled {
  opacity: 0.35;
  cursor: default;
}

.pop-button {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pop-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.caption-line {
  animation: caption-rise 160ms linear;
}

@keyframes caption-rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.display-body {
  --display-bg: #090909;
  --display-text: #fff6df;
  --display-muted: #b5aaa0;
  background: var(--display-bg);
  color: var(--display-text);
  overflow: hidden;
}

.display-body[data-contrast="light"] {
  --display-bg: #f8f7f2;
  --display-text: #101414;
  --display-muted: #546061;
}

.display-fullscreen-button {
  position: fixed;
  z-index: 20;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--display-muted), transparent 45%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--display-bg), transparent 18%);
  color: var(--display-text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0.42;
  transition: opacity 140ms ease, background 140ms ease;
}

.display-fullscreen-button:hover,
.display-fullscreen-button:focus-visible,
.display-fullscreen-button.is-fullscreen {
  opacity: 1;
  outline: none;
}

.display-body.is-embedded .projector-grid {
  grid-template-columns: repeat(var(--projector-columns, 1), minmax(0, 1fr));
}

.display-brand {
  position: fixed;
  left: clamp(18px, 2.2vw, 34px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 15;
  margin: 0;
  color: var(--display-muted);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 520;
  letter-spacing: 0;
  opacity: 0.72;
  pointer-events: none;
}

.display-brand strong {
  color: var(--display-text);
  font-weight: 700;
}

.projector-root {
  height: 100vh;
  padding: min(5vw, 72px);
}

.projector-grid {
  display: grid;
  grid-template-columns: repeat(var(--projector-columns, 1), minmax(0, 1fr));
  gap: min(3vw, 44px);
}

.projector-with-source {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.projector-target-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: min(3vw, 44px);
  min-height: 0;
}

.projector-with-source.target-count-2 .projector-target-grid,
.projector-with-source.target-count-3 .projector-target-grid,
.projector-with-source.target-count-4 .projector-target-grid,
.projector-with-source.target-count-5 .projector-target-grid,
.projector-with-source.target-count-6 .projector-target-grid,
.projector-with-source.target-count-7 .projector-target-grid,
.projector-with-source.target-count-8 .projector-target-grid,
.projector-with-source.target-count-9 .projector-target-grid,
.projector-with-source.target-count-10 .projector-target-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projector-with-source.target-count-3 .projector-target-grid,
.projector-with-source.target-count-4 .projector-target-grid,
.projector-with-source.target-count-5 .projector-target-grid,
.projector-with-source.target-count-6 .projector-target-grid,
.projector-with-source.target-count-7 .projector-target-grid,
.projector-with-source.target-count-8 .projector-target-grid,
.projector-with-source.target-count-9 .projector-target-grid,
.projector-with-source.target-count-10 .projector-target-grid {
  grid-auto-rows: minmax(0, 1fr);
}

.projector-root:not(.projector-grid) .projector-column,
.projector-root > .placeholder {
  height: 100%;
}

.projector-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.projector-column h2 {
  margin: 0 0 min(2vw, 24px);
  color: var(--display-muted);
  font-size: clamp(22px, 2.2vw, 42px);
}

.projector-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: min(2.2vw, 22px);
  overflow-y: auto;
  overflow-anchor: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projector-feed::-webkit-scrollbar {
  display: none;
}

.projector-feed > :first-child {
  margin-top: auto;
}

.projector-feed::after {
  content: "";
  flex: 0 0 clamp(42px, 7vh, 96px);
}

.projector-feed p {
  margin: 0;
  color: var(--display-text);
  font-size: clamp(min(34px, calc(var(--font-scale, 1) * 85px)), calc(var(--font-scale, 1) * 7vw), 118px);
  line-height: 1.06;
  font-weight: 760;
  letter-spacing: 0;
}

.projector-feed .placeholder {
  color: var(--display-muted);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(247 247 244 / 0.62);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.account-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.account-display-details {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}

.account-display-plan {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-display-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.account-summary[hidden] {
  display: none;
}

.account-menu-button {
  width: 100%;
  min-width: 0;
  height: var(--topbar-control-height);
  padding: 3px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}

.account-menu-button:hover,
.account-menu-button[aria-expanded="true"] {
  background: var(--surface-muted);
}

.account-menu-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: var(--surface-muted);
}

.account-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid color-mix(in srgb, var(--line), var(--text) 8%);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar #accountInitials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 15;
  width: min(280px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgb(74 91 180 / 0.14);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-header {
  display: grid;
  gap: 2px;
  padding: 4px 4px 16px;
}

.account-menu-header strong,
.account-menu-header span,
.account-menu-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-header strong {
  font-size: 14px;
}

.account-menu-header span,
.account-menu-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-menu-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  font-size: 13px;
}

.account-plan-usage .plan-usage-meter {
  margin: 12px 4px 0;
}

.billing-actions {
  display: grid;
  gap: 8px;
  padding: 12px 4px 2px;
}

.billing-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.billing-button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.billing-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.account-menu-signout {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.provider-buttons {
  display: grid;
  gap: 8px;
}

.auth-tabs button,
.provider-buttons button,
.link-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.provider-buttons button {
  min-height: var(--topbar-control-height);
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  justify-items: center;
  width: 100%;
  padding: 0 14px;
}

.provider-logo {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.google-logo {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.apple-logo svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #111;
}

.auth-tabs button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}

.forgot-password-button {
  justify-self: start;
  color: color-mix(in srgb, var(--muted), transparent 12%);
  font-size: 12px;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-footer-logo {
  justify-self: center;
  width: min(116px, 42vw);
  height: auto;
  margin-top: 8px;
  opacity: 0.82;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.remember-option input {
  accent-color: var(--accent);
}

.legal-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.legal-acceptance[hidden] {
  display: none;
}

.legal-acceptance input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.legal-acceptance a {
  color: var(--accent);
  text-decoration: none;
}

.legal-acceptance a:hover {
  text-decoration: underline;
}

.auth-status {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
}

.legal-page {
  min-height: 100vh;
}

.legal-document {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
}

.legal-home-link img {
  width: 128px;
  height: auto;
  display: block;
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.legal-updated {
  margin: 12px 0 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-document h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legal-document p {
  margin: 0;
  color: color-mix(in srgb, var(--text), var(--muted) 26%);
  font-size: 16px;
  line-height: 1.6;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgb(248 251 255 / 0.82);
  border-bottom: 1px solid rgb(102 117 246 / 0.11);
  backdrop-filter: blur(18px);
}

.landing-brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-nav-links,
.landing-nav-actions,
.hero-actions,
.hero-proof,
.landing-footer nav {
  display: flex;
  align-items: center;
}

.landing-nav-links {
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.landing-nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.landing-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.landing-button,
.landing-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
}

.landing-page .landing-button {
  padding: 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgb(102 117 246 / 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-button.small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.landing-nav .landing-button.small {
  color: #fff;
}

.landing-page .landing-button:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 18px 42px rgb(102 117 246 / 0.28);
}

.landing-secondary {
  padding: 0 4px;
  color: color-mix(in srgb, var(--accent), var(--text) 18%);
}

.landing-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  justify-content: start;
  gap: clamp(24px, 4vw, 54px);
  padding: 120px clamp(18px, 5vw, 76px) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgb(102 117 246 / 0.14), transparent 32%),
    radial-gradient(circle at 78% 12%, rgb(180 156 255 / 0.2), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #f7f9ff 48%, #f4f0ff 100%);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: transparent;
  perspective: 1200px;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  content: "";
  inset: -9% -6% -9% -18%;
  background: url("/product-preview-live-ui.png") 78% 54% / cover no-repeat;
  transform: perspective(1200px) rotateY(-9deg) rotateX(1.5deg) translate3d(6%, 4%, 0) scale(1.09);
  transform-origin: 86% 48%;
  opacity: 0.18;
}

.hero-media::after {
  filter: blur(5px);
  opacity: 0.22;
  mask-image: radial-gradient(circle at 76% 42%, transparent 0 23%, rgb(0 0 0 / 0.28) 38%, #000 70%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(248 251 255 / 0.78) 0%, rgb(248 251 255 / 0.62) 38%, rgb(248 251 255 / 0.34) 66%, rgb(248 251 255 / 0.08) 100%),
    radial-gradient(ellipse at 20% 76%, rgb(233 236 255 / 0.42) 0%, rgb(233 236 255 / 0.2) 44%, transparent 76%),
    linear-gradient(180deg, transparent 0%, rgb(244 240 255 / 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  color: var(--text);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgb(255 255 255 / 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-demo {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  gap: 14px;
  margin-top: 72px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(9 22 19 / 0.92);
  color: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.28);
  backdrop-filter: blur(18px);
}

.hero-animation-window {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin: 58px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.hero-animation-window iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}

.demo-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.demo-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-explainer {
  width: min(390px, 100%);
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.demo-explainer[hidden] {
  display: none;
}

.demo-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: clamp(178px, 24vh, 250px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.09);
}

.demo-panes[hidden] {
  display: none;
}

.demo-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.demo-pane + .demo-pane {
  border-left: 1px solid rgb(255 255 255 / 0.14);
}

.demo-pane h3 {
  margin: 0;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.demo-pane-lines {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  scrollbar-width: none;
}

.demo-pane-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  transition: transform 360ms linear;
  will-change: transform;
}

.demo-pane-lines::-webkit-scrollbar {
  display: none;
}

.demo-pane-lines p {
  margin: 0;
}

.demo-button {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.2);
}

.demo-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.demo-button[hidden] {
  display: none;
}

.demo-control.is-live .demo-button {
  border-radius: 999px 0 0 999px;
  box-shadow: none;
}

.demo-control.is-live .demo-mic-meter {
  width: 36px;
  min-height: 58px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  opacity: 1;
}

#demoMeterFill {
  --meter-level: 0;
  --meter-opacity: 0.35;
  width: 7px;
  height: 28px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
  overflow: hidden;
}

#demoMeterFill .voice-bar {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
  border-radius: inherit;
  background: #fff;
  opacity: var(--meter-opacity);
  transform: scaleY(var(--meter-level));
  transform-origin: bottom;
  transition: transform 70ms linear, opacity 70ms linear;
}

.demo-countdown {
  --demo-progress: 1;
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.demo-countdown svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.demo-countdown circle {
  fill: none;
  stroke-width: 5;
}

.demo-countdown-track {
  stroke: rgb(255 255 255 / 0.18);
}

.demo-countdown-ring {
  stroke: var(--accent-soft);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: calc(113.1 * (1 - var(--demo-progress)));
  transition: stroke-dashoffset 120ms linear;
}

.demo-countdown[hidden],
.demo-mic-meter[hidden] {
  display: none;
}

.landing-section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 76px);
}

.section-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-copy h2,
.visual-copy h2,
.landing-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 72px);
  background: linear-gradient(135deg, #f8fbff 0%, #f2f5ff 100%);
}

.intro-grid,
.feature-grid,
.testimonial-grid,
.plans-row {
  display: grid;
  gap: 16px;
}

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

.intro-grid article,
.feature-card,
.testimonial-grid blockquote,
.plans-row article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.76);
  box-shadow: var(--shadow-soft);
}

.intro-grid article {
  padding: 22px;
}

.intro-grid strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.intro-grid h3,
.feature-card h3,
.plans-row h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.intro-grid p,
.feature-card p,
.visual-copy p,
.plans-row p,
.landing-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-section {
  background: var(--surface-soft);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent), var(--line) 34%);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.12);
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 46% 36%, rgb(255 255 255 / 0.9), transparent 46%),
    linear-gradient(145deg, #fbfbff 0%, #f1f0ff 100%);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.82),
    0 14px 32px rgb(74 91 180 / 0.1);
}

.feature-icon svg {
  width: 60px;
  height: 60px;
  display: block;
  overflow: visible;
}

.feature-icon img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon rect {
  filter: none;
}

.icon-qr svg {
  width: 72px;
  height: 72px;
}

.icon-qr .qr-corners {
  stroke: currentColor;
  stroke-width: 7;
}

.icon-qr .qr-finder {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
}

.icon-qr .qr-dot,
.icon-qr .qr-module {
  fill: currentColor;
  stroke: none;
}

.icon-rocket path:nth-child(3) {
  stroke-width: 6;
}

.icon-rocket svg {
  width: 68px;
  height: 68px;
}

.icon-rocket path,
.icon-rocket circle {
  stroke-width: 7;
}

.icon-rocket path:nth-child(5) {
  stroke-width: 7.5;
}


.visual-proof {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  background: linear-gradient(135deg, #f4f7ff 0%, #f4f0ff 100%);
}

.visual-copy p:not(.section-kicker) {
  margin-top: 20px;
  font-size: 18px;
}

.product-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgb(74 91 180 / 0.16);
}

.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.testimonials {
  background: var(--bg);
}

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

.testimonial-grid blockquote {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 26px;
}

.testimonial-grid p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.42;
}

.testimonial-grid cite {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.plans-section {
  background:
    radial-gradient(circle at 18% 0%, rgb(102 117 246 / 0.2), transparent 34%),
    linear-gradient(135deg, #11183f 0%, #20275f 58%, #2b2869 100%);
  color: #fff;
}

.plans-section .section-copy h2 {
  color: #fff;
}

.faq-section {
  background: var(--surface-soft);
}

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

.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.plans-row article {
  min-height: 360px;
  padding: 26px;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: 0 18px 44px rgb(8 13 46 / 0.18);
}

.landing-plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
}

.landing-plan-header {
  display: grid;
  gap: 10px;
}

.plans-row h3 {
  margin: 0;
  color: #fff;
}

.plans-row p {
  margin: 0;
  color: rgb(255 255 255 / 0.68);
}

.landing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.landing-plan-price strong {
  color: #dfe4ff;
  font-size: 34px;
  line-height: 1.1;
}

.landing-plan-price span {
  color: rgb(255 255 255 / 0.58);
  font-size: 15px;
  font-weight: 500;
}

.landing-plan-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  list-style: none;
}

.landing-plan-features li {
  position: relative;
  padding-left: 22px;
  color: rgb(255 255 255 / 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.landing-plan-features li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: #dfe4ff;
  font-weight: 700;
}

.landing-plan-features li.is-muted {
  color: rgb(255 255 255 / 0.42);
}

.landing-plan-features li.is-muted::before {
  content: "-";
  color: rgb(255 255 255 / 0.36);
}

.landing-cta {
  margin: 0;
  padding: clamp(78px, 11vw, 136px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 50% 0%, rgb(102 117 246 / 0.14), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #f4f0ff 100%);
  text-align: center;
}

.handwritten-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.handwritten-underline::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  bottom: -0.03em;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, #6675f6 0%, #9a8cff 50%, #c8bfff 100%);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.landing-cta p {
  width: min(620px, 100%);
  margin: 18px auto 28px;
  font-size: 18px;
}

.landing-footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 24px clamp(18px, 5vw, 76px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.landing-footer div {
  display: grid;
  gap: 3px;
}

.landing-footer strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.landing-footer span,
.landing-footer nav {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.landing-footer nav {
  gap: 14px;
}

.landing-footer-logo {
  width: min(96px, 20vw);
  height: auto;
  display: block;
  opacity: 0.88;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-10px); }
}

@media (max-width: 1060px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-demo,
  .hero-animation-window {
    width: min(760px, 100%);
  }

  .hero-demo,
  .hero-animation-window {
    margin-top: 0;
  }
}

@media (orientation: portrait) and (max-width: 1100px) {
  .landing-hero {
    align-items: center;
    min-height: 86svh;
    padding-top: clamp(96px, 10svh, 130px);
    padding-bottom: clamp(48px, 8svh, 88px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(248 251 255 / 0.82) 0%, rgb(248 251 255 / 0.68) 52%, rgb(248 251 255 / 0.44) 84%, rgb(248 251 255 / 0.24) 100%),
      radial-gradient(ellipse at 24% 66%, rgb(233 236 255 / 0.46) 0%, rgb(233 236 255 / 0.24) 42%, transparent 82%),
      linear-gradient(180deg, rgb(248 251 255 / 0.06) 0%, transparent 28%, rgb(244 240 255 / 0.2) 100%);
  }
}

.qr-popup-body,
.mobile-body {
  background: var(--bg);
}

.qr-popup {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2.4vmin, 28px);
}

.qr-popup-content {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-block: auto;
  min-height: 0;
}

.mobile-header h1 {
  font-size: 34px;
}

.qr-popup img {
  width: var(--qr-popup-size, min(86vw, 70vh));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 92px);
  aspect-ratio: 1;
  padding: clamp(8px, 2vmin, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-popup p {
  max-width: min(720px, calc(100vw - 24px));
  color: var(--muted);
  font-size: clamp(11px, 1.7vmin, 14px);
  text-align: left;
  overflow-wrap: anywhere;
}

.qr-popup-brand {
  margin: 0;
}

.qr-popup-brand strong {
  color: var(--text);
  font-weight: 900;
}

.mobile-shell {
  height: var(--mobile-viewport-height, 100svh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.mobile-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-header h1 {
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.mobile-header h1 strong {
  font-weight: 900;
}

.mobile-header h1 span {
  font-weight: 500;
}

.mobile-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.mobile-status {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.mobile-original-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.mobile-audio-toggle {
  flex: 0 0 auto;
  height: 42px;
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-audio-toggle.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mobile-audio-toggle[hidden] {
  display: none;
}

.mobile-original-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.mobile-header select {
  width: min(48vw, 180px);
  padding: 10px 12px;
  font-weight: 750;
}

.mobile-caption-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-caption-pane {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.mobile-source-pane {
  flex: 0 0 32%;
  background: #f9fbfb;
}

.mobile-translation-pane {
  flex: 1 1 auto;
}

.mobile-caption-panel:not(.show-original) .mobile-translation-pane {
  flex-basis: 100%;
}

.mobile-caption-stack {
  height: 100%;
  display: block;
  overflow-y: auto;
  overflow-anchor: none;
  padding-bottom: 8px;
}

.mobile-caption-stack p {
  margin: 0 0 16px;
  font-size: clamp(var(--mobile-translation-font-min, 28px), var(--mobile-translation-font-fluid, 8.5vw), var(--mobile-translation-font-max, 52px));
  line-height: 1.1;
  font-weight: 500;
}

.mobile-source-stack p {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(var(--mobile-source-font-min, 18px), var(--mobile-source-font-fluid, 5.4vw), var(--mobile-source-font-max, 32px));
  font-weight: 450;
  line-height: 1.14;
}

.mobile-bottom-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.mobile-text-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-text-controls button {
  width: 52px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.mobile-text-controls button:disabled {
  opacity: 0.35;
}

@media (max-width: 390px) {
  .mobile-header {
    gap: 8px;
  }

  .mobile-header h1 {
    font-size: 28px;
  }

  .mobile-controls {
    gap: 8px;
  }

  .mobile-header select {
    width: min(34vw, 140px);
    padding-inline: 8px;
  }

  .mobile-original-toggle {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    height: auto;
    min-height: 68px;
    grid-template-columns: auto auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-nav-actions {
    gap: 8px;
  }

  .landing-login {
    font-size: 13px;
  }

  .landing-button.small {
    min-height: 38px;
    padding-inline: 13px;
  }

  .landing-hero {
    align-items: start;
    min-height: auto;
    padding: 92px 18px 42px;
  }

  .hero-media {
    background: transparent;
  }

  .hero-media::before,
  .hero-media::after {
    inset: -6% -38% -6% -28%;
    background-position: 66% 42%;
    transform: perspective(900px) rotateY(-6deg) translate3d(0, 2%, 0) scale(1.02);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(248 251 255 / 0.84) 0%, rgb(248 251 255 / 0.76) 58%, rgb(248 251 255 / 0.56) 88%, rgb(248 251 255 / 0.38) 100%),
      radial-gradient(ellipse at 26% 62%, rgb(233 236 255 / 0.48) 0%, rgb(233 236 255 / 0.28) 42%, transparent 86%),
      linear-gradient(180deg, rgb(248 251 255 / 0.08) 0%, transparent 34%, rgb(244 240 255 / 0.26) 100%);
  }

  .hero-content h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-proof {
    display: none;
  }

  .hero-demo,
  .hero-animation-window {
    padding: 16px;
  }

  .demo-button {
    width: 100%;
  }

  .demo-panes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 220px;
  }

  .demo-control {
    width: 100%;
  }

  .demo-control.is-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .demo-control.is-live .demo-button {
    min-width: 0;
    padding-inline: 18px;
  }

  .demo-pane {
    padding: 12px;
  }

  .demo-pane-lines {
    font-size: 12px;
  }

  .landing-secondary {
    justify-content: flex-start;
    min-height: 36px;
  }

  .landing-section,
  .landing-cta {
    padding-inline: 18px;
  }

  .intro-band,
  .visual-proof {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .feature-grid,
  .testimonial-grid,
  .faq-grid,
  .plans-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .testimonial-grid blockquote,
  .plans-row article {
    min-height: auto;
  }

  .product-frame {
    box-shadow: 0 18px 44px rgb(74 91 180 / 0.14);
  }

  .landing-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 16px;
    overflow: auto;
  }

  .topbar,
  .workspace-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .workspace-grid {
    min-height: auto;
    overflow-x: hidden;
  }

  .workspace-grid > * {
    max-width: 100%;
  }

  .sessions-sidebar {
    max-height: 360px;
  }

  .topbar {
    display: grid;
    gap: 10px;
  }

  .translation-toolbar-slot {
    grid-column: 1;
  }

  .topbar-actions {
    grid-column: 1;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .listen-stack {
    min-width: 0;
  }

  .listen-control {
    max-width: 100%;
  }

  .live-grid {
    display: grid;
    overflow: visible;
  }

  .translation-panel {
    width: 100%;
    max-width: 100%;
  }

  .translation-grid,
  .translation-target-grid,
  .translation-column-grid {
    grid-template-columns: 1fr;
  }

  .translation-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .translation-toolbar .display-controls {
    justify-content: flex-start;
  }

  .translation-column {
    min-height: 220px;
  }

  .projector-with-source,
  .projector-with-source.target-count-2 .projector-target-grid,
  .projector-with-source.target-count-3 .projector-target-grid,
  .projector-with-source.target-count-4 .projector-target-grid,
  .projector-with-source.target-count-5 .projector-target-grid,
  .projector-with-source.target-count-6 .projector-target-grid,
  .projector-with-source.target-count-7 .projector-target-grid,
  .projector-with-source.target-count-8 .projector-target-grid,
  .projector-with-source.target-count-9 .projector-target-grid,
  .projector-with-source.target-count-10 .projector-target-grid {
    grid-template-columns: 1fr;
  }

  .plan-modal-card {
    width: min(96vw, 520px);
  }

  .panel {
    min-height: 330px;
  }

  .primary-button {
    width: 100%;
  }

  .session-qr-button {
    width: var(--topbar-control-height);
    flex: 0 0 var(--topbar-control-height);
  }

  .language-popover {
    left: 0;
    width: min(320px, calc(100vw - 32px));
  }

  .audience-side-widget .session-qr-button {
    width: 96px;
    flex: 0 0 96px;
  }
}

/* Controller-only original speech: crop to the last wrapped row, so each new
   row starts at the left edge without scrolling or delaying incoming tokens. */
.original-caption {
  position: absolute;
  top: calc(100% + 12px);
  left: 4px;
  right: 4px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.original-caption[hidden] { display: none; }
.original-caption > strong { flex: none; font-size: 14px; }
.original-caption-viewport {
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.original-caption-line {
  flex: none;
  width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.original-caption-provisional { opacity: 0.6; }
.billing-config-modal{width:min(1080px,95vw)!important;max-width:1080px!important;padding:18px!important}.billing-config-modal .plan-card-grid{display:block;overflow:hidden;margin:0}

.billing-config-modal{display:flex;flex-direction:column;height:min(94vh,1080px);max-height:94vh!important;overflow:hidden!important}.billing-config-modal .plan-card-grid{flex:1;min-height:0}.billing-config-modal .modal-header{flex-shrink:0}

/* Device appearance affects the app chrome, never the explicit projection contrast. */
/* Automatic fallback also works before the appearance script loads. */
@media (prefers-color-scheme: dark) {

html:not([data-theme="light"]) body:not(.display-body):not(.landing-page) {
    color-scheme: dark;
    --bg: #191a1c;
    --bg-gradient-start: #191a1c;
    --bg-gradient-end: #191a1c;
    --surface: #232427;
    --panel: var(--surface);
    --surface-soft: #292a2e;
    --surface-muted: #303136;
    --text: #eeeef0;
    --muted: #b0b1bd;
    --text-subtle: #9c9eac;
    --line: #414247;
    --border-soft: #34353a;
    --accent-hover: #7885ff;
    --accent-soft: #303454;
    --danger: #f28fa8;
    --shadow-soft: 0 12px 30px rgb(0 0 0 / 0.18);
  }

html:not([data-theme="light"]) .auth-overlay { background: rgb(25 26 28 / 0.76); }

html:not([data-theme="light"]) .auth-card, html:not([data-theme="light"]) .modal-card, html:not([data-theme="light"]) .account-menu, html:not([data-theme="light"]) .mic-menu { box-shadow: 0 24px 70px rgb(0 0 0 / 0.32); }

html:not([data-theme="light"]) input::placeholder, html:not([data-theme="light"]) textarea::placeholder { color: var(--muted); opacity: 1; }

html:not([data-theme="light"]) .legal-links a { color: #a9b2ff; }

html:not([data-theme="light"]) .sessions-chevron { filter: invert(1); }

html:not([data-theme="light"]) .apple-logo { color: var(--text); }

html:not([data-theme="light"]) .apple-logo svg { fill: currentColor; }

html:not([data-theme="light"]) .app-footer > img, html:not([data-theme="light"]) .auth-footer-logo { background: #f7f7f4; border-radius: 6px; padding: 4px; }

html:not([data-theme="light"]) .feature-mark.is-included { background: var(--accent-soft); color: #b7beff; }

html:not([data-theme="light"]) .session-delete-button { background: #41292d; color: #f5a4af; border-color: #78454c; }

html:not([data-theme="light"]) .status-pill.is-error, html:not([data-theme="light"]) .audience-link-message { color: #f5a4af; }

html:not([data-theme="light"]) .mobile-source-pane { background: var(--surface-soft); }

html:not([data-theme="light"]) .translation-toolbar { box-shadow: none; }

}

html[data-theme="dark"] body:not(.display-body):not(.landing-page) {
    color-scheme: dark;
    --bg: #191a1c;
    --bg-gradient-start: #191a1c;
    --bg-gradient-end: #191a1c;
    --surface: #232427;
    --panel: var(--surface);
    --surface-soft: #292a2e;
    --surface-muted: #303136;
    --text: #eeeef0;
    --muted: #b0b1bd;
    --text-subtle: #9c9eac;
    --line: #414247;
    --border-soft: #34353a;
    --accent-hover: #7885ff;
    --accent-soft: #303454;
    --danger: #f28fa8;
    --shadow-soft: 0 12px 30px rgb(0 0 0 / 0.18);
  }

html[data-theme="dark"] .auth-overlay { background: rgb(25 26 28 / 0.76); }

html[data-theme="dark"] .auth-card, html[data-theme="dark"] .modal-card, html[data-theme="dark"] .account-menu, html[data-theme="dark"] .mic-menu { box-shadow: 0 24px 70px rgb(0 0 0 / 0.32); }

html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--muted); opacity: 1; }

html[data-theme="dark"] .legal-links a { color: #a9b2ff; }

html[data-theme="dark"] .sessions-chevron { filter: invert(1); }

html[data-theme="dark"] .apple-logo { color: var(--text); }

html[data-theme="dark"] .apple-logo svg { fill: currentColor; }

html[data-theme="dark"] .app-footer > img, html[data-theme="dark"] .auth-footer-logo { background: #f7f7f4; border-radius: 6px; padding: 4px; }

html[data-theme="dark"] .feature-mark.is-included { background: var(--accent-soft); color: #b7beff; }

html[data-theme="dark"] .session-delete-button { background: #41292d; color: #f5a4af; border-color: #78454c; }

html[data-theme="dark"] .status-pill.is-error, html[data-theme="dark"] .audience-link-message { color: #f5a4af; }

html[data-theme="dark"] .mobile-source-pane { background: var(--surface-soft); }

html[data-theme="dark"] .translation-toolbar { box-shadow: none; }


.appearance-setting { display: grid; gap: 10px; margin-top: 14px; padding: 14px 4px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.appearance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.appearance-options button { display: grid; place-items: center; min-height: 34px; padding: 6px 8px; border: 0; border-radius: 7px; color: var(--text); background: transparent; font: inherit; cursor: pointer; }
.appearance-options button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.appearance-options button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Independent output layouts; keyed output contains no browser controls/brand. */
.display-body.is-broadcast { background:#00ff00; color:white; }
.is-broadcast .display-brand,.is-broadcast .display-fullscreen-button { display:none; }
.broadcast-root { padding:0; }
.broadcast-feed { position:absolute;left:6%;right:6%;bottom:var(--broadcast-safe,8%);height:calc(var(--broadcast-size,54) * 2.5 * 100vh / 1080);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden; }
.broadcast-feed p { flex:0 0 auto;margin:0;color:#fff;font-size:calc(var(--broadcast-size,54) * 100vh / 1080);line-height:1.25;text-align:center;overflow-wrap:anywhere;white-space:pre-line;text-shadow:0 2px 3px #000,-1px 0 #000,1px 0 #000; }
.broadcast-access { display:grid;place-content:center;gap:14px;padding:40px;background:#191a1c;color:white;height:100vh;text-align:center; }
.broadcast-access a { color:#b9c0ff; }
.broadcast-controls { display:grid;gap:10px;padding:12px 0; }
.broadcast-controls > button { width:100%; }
.broadcast-controls .side-control-row { padding:0; }
.broadcast-lock { font-size:12px;color:var(--muted); }
.broadcast-controls button[data-locked=true] { opacity:.7; }
.account-billing-summary { display:grid;gap:8px;padding:12px 0; }
.account-billing-summary > span { color:var(--muted);font-size:13px; }
.broadcast-controls #broadcastOptions { display:grid;gap:10px; }
.broadcast-controls #broadcastOptions[hidden] { display:none; }
.broadcast-toolbar { display:flex;flex-wrap:wrap;align-items:center;gap:4px; }
.broadcast-toolbar[aria-label="Broadcast language, size and weight"] button { flex:1 1 auto; }
.broadcast-toolbar #broadcastFontDecrease,.broadcast-toolbar [data-broadcast-weight=regular] { border-radius:6px 0 0 6px; }
.broadcast-toolbar #broadcastFontIncrease,.broadcast-toolbar [data-broadcast-weight=bold] { margin-left:-4px;border-radius:0 6px 6px 0; }
.broadcast-toolbar [data-broadcast-weight=medium] { margin-left:-4px;border-radius:0; }
.broadcast-toolbar button { border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:13px;min-height:30px;padding:4px 5px;cursor:pointer; }
.broadcast-toolbar #broadcastFontDecrease,.broadcast-toolbar #broadcastFontIncrease,.broadcast-toolbar [data-broadcast-weight] { font-size:16px; }
.broadcast-toolbar button[aria-pressed=true],.broadcast-language-choices button[aria-pressed=true] { background:var(--accent);color:white; }
[data-broadcast-weight=regular]{font-weight:400!important}[data-broadcast-weight=medium]{font-weight:550!important}[data-broadcast-weight=bold]{font-weight:700!important}
.broadcast-language-choices { display:flex;flex-wrap:wrap;gap:5px;max-height:190px;overflow:auto;margin-top:8px; }
.broadcast-language-choices button { border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--text);padding:6px;font:inherit;font-size:12px;cursor:pointer; }
.broadcast-language-choices button:disabled { opacity:.4;cursor:default; }
#broadcastLanguagePicker { font-size:12px; }
#broadcastLanguageSearch { max-width:100%;width:100%;margin-top:6px; }
.broadcast-root[data-placement=center] .broadcast-feed { top:6%;bottom:6%;height:auto;justify-content:center; }

/* Keep both scroll regions keyboard/touch native; reveal only the picker thumb during scrolling. */
.right-panel { scrollbar-width:none; }
.right-panel::-webkit-scrollbar { display:none; }
.right-panel:focus-visible,.broadcast-language-choices:focus-visible { outline:2px solid var(--accent);outline-offset:-2px; }
.broadcast-language-choices { overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:transparent transparent; }
.broadcast-language-choices.is-scrolling { scrollbar-color:var(--muted) transparent; }
.broadcast-language-choices::-webkit-scrollbar { width:6px; }
.broadcast-language-choices::-webkit-scrollbar-thumb { background:transparent;border-radius:6px; }
.broadcast-language-choices.is-scrolling::-webkit-scrollbar-thumb { background:var(--muted); }

#broadcastLanguagePicker { position:fixed;inset:auto;margin:0;box-sizing:border-box;z-index:1000;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--panel);box-shadow:0 12px 36px #0006;overflow:hidden; }
#broadcastLanguagePicker::backdrop { background:transparent; }

#broadcastStatus:empty { display:none; }

/* Consistent menu insets and spacing, without reducing reading size. */
.account-menu { padding:14px;width:min(320px,calc(100vw - 32px)); }
.account-menu-header { padding:0 0 12px;gap:3px; }
.account-menu-header strong { font-size:16px; }
.account-menu-header span { font-size:14px;font-weight:500; }
.account-billing-summary { gap:6px;padding:12px 0;border-top:1px solid var(--line); }
.account-billing-summary > strong { font-size:17px; }
.account-billing-summary > span { font-size:15px;line-height:1.45; }
.account-billing-summary .account-reset-status { font-size:14px; }
.account-billing-summary .billing-button { margin-top:6px;min-height:42px;font-size:16px; }
.account-menu .support-menu-link { margin:0;padding:8px 0 12px;text-align:left;font-size:15px; }
.account-menu .appearance-setting { margin:0;padding:12px 0;gap:8px;font-size:16px; }
.account-menu .appearance-options button { font-size:15px;min-height:38px; }
.account-menu-signout { margin-top:0;min-height:42px;font-size:16px; }
* { scrollbar-width:none!important; }
*::-webkit-scrollbar { display:none!important; }

/* Authentication: one continuous, accessible flow. */
.auth-overlay { overflow-y: auto; overscroll-behavior: contain; padding: 32px 20px; align-items: safe center; }
.auth-card { width: min(440px, 100%); box-sizing: border-box; gap: 16px; padding: 30px; margin: auto; }
.auth-card [hidden] { display: none !important; }
.auth-wordmark { display: inline-flex; align-items: baseline; gap: 6px; width: fit-content; color: var(--text); text-decoration: none; font-size: 32px; font-weight: 800; letter-spacing: -1.2px; }
.auth-wordmark span { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.auth-card h2 { margin: 4px 0 -8px; font-size: 25px; line-height: 1.2; letter-spacing: -.5px; }
.auth-card h2:focus { outline: none; }
.auth-description { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
#authEntry, .auth-email-form, #authLegalStep { display: grid; gap: 16px; }
.auth-tabs { margin-bottom: 2px; }
.auth-tabs button { font-size: 14px; }
.auth-card .provider-buttons button { min-height: 48px; font-size: 15px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-card .field { gap: 7px; font-size: 14px; }
.auth-card input:not([type="checkbox"]) { min-width: 0; width: 100%; box-sizing: border-box; min-height: 48px; font-size: 16px; }
.auth-password-row { display: flex; align-items: center; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.auth-password-row input { flex: 1; border: none; background: transparent; }
.auth-password-row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-password-row input:focus { outline: none; }
.auth-password-row button { align-self: stretch; padding: 0 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.auth-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.auth-field-error { color: #b42340; margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.auth-field-error:empty, .auth-status:empty { display: none; }
.auth-card .auth-status { min-height: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.auth-card .legal-acceptance { align-items: start; font-size: 13px; line-height: 1.55; }
.auth-card .legal-acceptance input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.auth-card .primary-button { width: 100%; min-height: 48px; font-size: 15px; }
.auth-card .forgot-password-button { font-size: 14px; color: var(--text); min-height: 32px; margin-top: -8px; }
.auth-help { justify-self: center; color: var(--muted); font-size: 13px; padding: 6px; }
#authBackButton { min-height: 40px; font-size: 14px; color: var(--text); }
.auth-card button:disabled { opacity: .55; cursor: default; }
.auth-card :is(button, a, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-progress { display: flex; align-items: center; gap: 12px; min-height: 68px; color: var(--muted); font-size: 14px; }
.auth-spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: auth-spin 1s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spinner { animation: none; } }
html:not([data-theme="light"]) .auth-field-error { color: #ffb2c0; }
@media (max-width: 480px) { .auth-overlay { padding: 16px 12px; } .auth-card { padding: 24px 20px; border-radius: 16px; } }
.auth-card { gap: 12px; padding: 26px 30px; }
#authEntry, .auth-email-form, #authLegalStep { gap: 12px; }
.auth-card h2 { margin-top: 0; margin-bottom: -4px; }
.auth-wordmark { font-size: 28px; }
.auth-card .provider-buttons button, .auth-card .primary-button, .auth-card input:not([type="checkbox"]) { min-height: 44px; }
.auth-card .auth-password-row input:focus-visible { outline: none; }
.auth-card input[aria-invalid="true"] { border-color: #b42340; }
/* Keep optional measurement choices out of the authentication dialog; consent
   remains unset until the user makes a choice after entering the app. */
body:has(#authOverlay:not([hidden])) #oye-measurement-choice { display: none; }

/* Fold the sessions column and its footer profile together. */
.topbar > .app-brand { width: max-content; }
.app-shell { --sessions-track: minmax(230px, 280px); }
.topbar, .workspace-grid {
  grid-template-columns: var(--sessions-track) minmax(0, 1fr) minmax(230px, 280px);
  transition: grid-template-columns 260ms cubic-bezier(.22, 1, .36, 1);
}
.sessions-sidebar-header { position: relative; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; min-height: 28px; }
.sessions-toggle { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--text); }
.sessions-toggle:hover { background: var(--surface-muted); }
.sessions-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sessions-toggle .sessions-menu-icon { display: none; }
.sessions-sidebar-header > div, .session-new-button, .session-library-list, .session-library-feedback { transition: opacity 180ms ease, visibility 180ms; }
.app-footer > .account-summary { transition: flex-basis 260ms cubic-bezier(.22, 1, .36, 1), width 260ms cubic-bezier(.22, 1, .36, 1); }
.account-display-details { white-space: nowrap; overflow: hidden; transition: opacity 180ms ease, max-width 260ms ease; max-width: 242px; }
.app-shell.sessions-folded { --sessions-track: minmax(48px, 48px); }
.sessions-folded .sessions-sidebar-header > div,
.sessions-folded .session-new-button,
.sessions-folded .session-library-list,
.sessions-folded .session-library-feedback { opacity: 0; visibility: hidden; pointer-events: none; }
.sessions-folded .sessions-toggle { position: absolute; top: 0; left: 0; }
.sessions-folded .sessions-close-icon { display: none; }
.sessions-folded .sessions-toggle .sessions-menu-icon { display: block; }
.sessions-folded .app-footer > .account-summary { width: 48px; flex-basis: 48px; }
.sessions-folded .account-menu-button { width: 28px; gap: 0; }
.sessions-folded .account-display-details { opacity: 0; max-width: 0; visibility: hidden; }
@media (max-width: 760px) {
  .topbar, .workspace-grid, .sessions-folded .topbar, .sessions-folded .workspace-grid { grid-template-columns: 1fr; }
  .sessions-folded .sessions-sidebar { flex: 0 0 28px; padding-block: 0; }
  .sessions-folded .session-library-list, .sessions-folded .session-library-feedback { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .workspace-grid, .app-footer > .account-summary, .account-display-details,
  .sessions-sidebar-header > div, .session-new-button, .session-library-list, .session-library-feedback { transition: none; }
}

/* Keep the wordmark and Display heading on the same text baseline. */
.topbar > .app-brand,
.topbar > .translation-toolbar-slot { align-self: first baseline; }
.sessions-folded .app-brand p { display: none; }

/* Projection controls hang from the display edge, matching its Pop out tab. */
.live-grid > .projection-control-tabs {
  position: absolute;
  z-index: 3;
  top: calc(100% - 1px);
  right: 20px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
}
.projection-control-tabs .side-control-row { display: contents; }
.projection-control-tabs .segmented-control {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--surface-soft);
}
.projection-control-tabs .segmented-control::before,
.projection-control-tabs .segmented-control::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.projection-control-tabs .segmented-control::before {
  left: -12px;
  background: radial-gradient(circle at 0 100%, transparent 11px, var(--line) 11px, var(--line) 12px, var(--surface-soft) 12px);
}
.projection-control-tabs .segmented-control::after {
  right: -12px;
  background: radial-gradient(circle at 100% 100%, transparent 11px, var(--line) 11px, var(--line) 12px, var(--surface-soft) 12px);
}
.projection-control-tabs .segmented-control button { width: 32px; height: 37px; font-size: 16px; font-weight: 500; }
.projection-control-tabs .segmented-control button:first-child { border-bottom-left-radius: 11px; }
.projection-control-tabs .segmented-control button:last-child { border-bottom-right-radius: 11px; }
.projection-control-tabs .segmented-control button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.projection-control-tabs .projection-font-control button[data-value="regular"] { font-weight: 400; }
.projection-control-tabs .projection-font-control button[data-value="medium"] { font-weight: 550; }
.projection-control-tabs .projection-font-control button[data-value="bold"] { font-weight: 700; }
.projection-control-tabs .contrast-icon { width: 16px; height: 16px; stroke-width: 1.8; }
.original-caption { top: calc(100% + 48px); }
.app-footer { flex-basis: 92px; min-height: 92px; }
@media (max-width: 760px) {
  .live-grid { margin-bottom: 80px; }
  .live-grid > .projection-control-tabs { right: 12px; }
  .app-footer { flex-basis: 54px; min-height: 54px; }
}

/* Compact display tabs with symbol-only selection and no source caption row. */
.live-grid > .projection-control-tabs { gap: clamp(28px, 3vw, 40px); }
.projection-control-tabs .segmented-control button { height: 29px; }
.projection-control-tabs .segmented-control button.is-active { background: transparent; color: var(--accent); }
.original-caption { display: none; }
.app-footer { flex-basis: 54px; min-height: 54px; }
@media (max-width: 760px) {
  .live-grid { margin-bottom: 40px; }
}

/* Reserve only the attached tabs' height at the browser's lower edge. */
.app-shell { padding-bottom: 8px; }
.app-footer { flex-basis: 34px; min-height: 34px; padding-top: 0; }
.app-footer .account-menu-button { height: 34px; }

/* A compact accent wordmark keeps the folded rail as narrow as its avatar. */
.app-brand h1 span { font-weight: inherit; }
.app-brand .brand-compact { display: none; }
.app-shell.sessions-folded { --sessions-track: minmax(28px, 28px); }
.sessions-folded .app-brand .brand-full { display: none; }
.sessions-folded .app-brand .brand-compact { display: inline; color: var(--accent); }
.sessions-folded .app-brand h1 { width: 28px; text-align: center; }
.sessions-folded .app-footer > .account-summary { width: 28px; flex-basis: 28px; }

/* Crossfade the wordmarks and icons while the sidebar resizes. */
.topbar, .workspace-grid { transition: grid-template-columns 360ms cubic-bezier(.22, 1, .36, 1); }
.app-brand h1, .sessions-folded .app-brand h1 {
  position: relative;
  width: 64px;
  height: 36px;
  line-height: 36px;
  text-align: left;
  transition: width 360ms cubic-bezier(.22, 1, .36, 1);
}
.sessions-folded .app-brand h1 { width: 28px; }
.app-brand .brand-full, .sessions-folded .app-brand .brand-full {
  display: block;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 220ms ease, transform 360ms ease;
}
.app-brand .brand-compact, .sessions-folded .app-brand .brand-compact {
  display: block;
  position: absolute;
  top: -2px;
  left: 0;
  width: 28px;
  font-size: 36px;
  line-height: 36px;
  text-align: center;
  color: var(--accent);
  opacity: 0;
  transform: scale(.85);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(.22, 1, .36, 1);
}
.sessions-folded .app-brand .brand-full { opacity: 0; transform: translateX(6px); }
.sessions-folded .app-brand .brand-compact { opacity: 1; transform: scale(1); }
.app-brand p, .sessions-folded .app-brand p {
  display: block;
  overflow: hidden;
  max-height: 16px;
  opacity: 1;
  margin-top: 4px;
  transition: max-height 360ms ease, margin-top 360ms ease, opacity 220ms ease;
}
.sessions-folded .app-brand p { max-height: 0; margin-top: 0; opacity: 0; }
.sessions-toggle, .sessions-folded .sessions-toggle { position: absolute; top: 0; right: 0; left: auto; }
.sessions-toggle .sessions-close-icon, .sessions-toggle .sessions-menu-icon,
.sessions-folded .sessions-toggle .sessions-close-icon, .sessions-folded .sessions-toggle .sessions-menu-icon {
  display: block;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: opacity 220ms ease, transform 360ms ease;
}
.sessions-toggle .sessions-close-icon { opacity: 1; transform: rotate(0); }
.sessions-toggle .sessions-menu-icon { opacity: 0; transform: rotate(-90deg); }
.sessions-folded .sessions-toggle .sessions-close-icon { opacity: 0; transform: rotate(90deg); }
.sessions-folded .sessions-toggle .sessions-menu-icon { opacity: 1; transform: rotate(0); }
.app-footer > .account-summary { transition: flex-basis 360ms cubic-bezier(.22, 1, .36, 1), width 360ms cubic-bezier(.22, 1, .36, 1); }
.account-display-details { visibility: visible; transition: opacity 220ms ease, max-width 360ms ease, visibility 360ms; }
@media (prefers-reduced-motion: reduce) {
  .topbar, .workspace-grid, .app-brand h1, .app-brand span, .app-brand p,
  .sessions-toggle svg, .app-footer > .account-summary, .account-display-details { transition: none !important; }
}

/* Tighten the folded rail and its surrounding gutters without shrinking the o. */
.app-shell { transition: filter 160ms ease, opacity 160ms ease, padding-left 360ms cubic-bezier(.22, 1, .36, 1); }
.app-shell.sessions-folded { --sessions-track: minmax(24px, 24px); padding-left: 16px; }
.topbar, .workspace-grid { transition: grid-template-columns 360ms cubic-bezier(.22, 1, .36, 1), column-gap 360ms cubic-bezier(.22, 1, .36, 1); }
.sessions-folded .topbar, .sessions-folded .workspace-grid { column-gap: 12px; }
.sessions-folded .app-brand h1, .sessions-folded .app-brand .brand-compact { width: 24px; }
.sessions-folded .sessions-toggle { width: 24px; height: 24px; }
.sessions-folded .sessions-toggle svg { top: 2px; left: 2px; }
.sessions-folded .app-footer > .account-summary { width: 24px; flex-basis: 24px; }
.sessions-folded .account-menu-button { width: 24px; }
.account-avatar { transition: width 360ms ease, height 360ms ease, flex-basis 360ms ease; }
.sessions-folded .account-avatar { width: 24px; height: 24px; flex-basis: 24px; }
@media (prefers-reduced-motion: reduce) {
  .app-shell, .topbar, .workspace-grid, .account-avatar { transition: none !important; }
}

/* Bring the Display toolbar closer to the browser edge and caption panel. */
@media (min-width: 761px) {
  .app-shell { padding-top: 8px; }
  .topbar { margin-bottom: 6px; }
}

/* Keep context and capture controls aligned to the transcript panel edges. */
.right-panel { padding-top: 0; }
.right-panel > * { flex-shrink: 0; }
.translation-context-widget > .side-widget-header { min-height: 0; line-height: 20px; align-items: flex-start; }
.right-panel > .listen-stack { margin-top: auto; display: flex; flex-direction: column; }
.right-panel .listen-control { flex-shrink: 0; }
.right-panel .listen-stack > .status-pill { order: -1; margin: 0 0 8px; }
.right-panel .mic-menu { top: auto; bottom: calc(100% + 8px); }

/* Use the browser top layer so the device menu escapes the tools scroller. */
#micMenu { position: fixed; inset: auto; margin: 0; z-index: 1000; max-width: calc(100vw - 24px); }

/* The tagline belongs below the logo without changing the Display header row. */
@media (min-width: 761px) {
  .topbar > .app-brand { position: relative; }
  .topbar > .app-brand p { position: absolute; top: 100%; left: 0; white-space: nowrap; }
}

/* Fixed action/time cells keep the clock steady as capture actions change. */
.listen-control, .listen-control.is-listening { grid-template-columns: minmax(0, 1fr) 28px 6px 26px; }
.listen-control .listen-main-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding-inline: 0;
}
#listenButtonLabel { grid-column: 1; grid-row: 1; justify-self: center; }
.listen-control .listen-session-time {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding-left: 0;
  text-align: center;
  white-space: nowrap;
}
.listen-control .pause-control-icon {
  position: absolute;
  left: calc(50% - 18px);
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 16px;
}
.listen-control .mute-button { padding-inline: 0; }
.listen-control .inline-mic-meter,
.listen-control.is-listening .inline-mic-meter { width: 6px; }
.listen-control .mic-menu-button { width: 26px; }
html[data-theme="dark"] .listen-control.is-listening { background: #b93d56; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .listen-control.is-listening { background: #b93d56; }
}

/* Make the mobile QR destination easier to read. */
.audience-link-text { font-size: 15px; }
.audience-link-text input { font-size: inherit; }

/* Capture and microphone selection are two independent button surfaces. */
.listen-control, .listen-control.is-listening {
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  background: transparent !important;
  box-shadow: none;
}
.listen-control .listen-main-button { border-radius: 12px; background: var(--accent); }
.listen-control.is-listening .listen-main-button { background: var(--danger); }
html[data-theme="dark"] .listen-control.is-listening .listen-main-button { background: #b93d56; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .listen-control.is-listening .listen-main-button { background: #b93d56; }
}
.listen-control .mic-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 72px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  cursor: pointer;
  transition: background 150ms ease;
}
.listen-control .mic-menu-button:hover,
.listen-control .mic-menu-button[aria-expanded="true"] { background: var(--accent-hover); }
.listen-control .mic-menu-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.listen-control .mic-menu-button .microphone-chevron-icon { margin: 0; }
.listen-control .mic-menu-button .inline-mic-meter,
.listen-control.is-listening .mic-menu-button .inline-mic-meter { width: 3px; height: 16px; flex: 0 0 3px; }
.listen-control.is-muted .mic-menu-button .microphone-on-icon { display: none; }
.listen-control.is-muted .mic-menu-button .microphone-off-icon { display: block; }
.mic-menu .mute-button {
  display: block;
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.mic-menu .mute-button:hover:not(:disabled) { background: var(--surface-muted); }
.mic-menu .mute-button:disabled { opacity: .45; cursor: default; }

/* Keep the display add button level with its language pills. */
.translation-toolbar .language-menu-button { width:28px;height:28px; }

.audience-qr-explainer { display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px; }
.audience-qr-help { margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5; }

.listen-control .listen-main-button:focus-visible, .listen-control .mic-menu-button:focus-visible { outline:2px solid var(--accent-text); outline-offset:-4px; }
