@font-face {
  font-family: "Emarat Janna";
  src: local("Janna LT Regular"), local("JannaLT-Regular"), local("Janna LT");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Emarat Janna";
  src: local("Janna LT Bold"), local("JannaLT-Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url("./fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url("./fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url("./fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url("./fonts/Tajawal-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url("./fonts/Tajawal-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 16px/1.65 "Emarat Janna", Tajawal, Inter, system-ui, "Noto Sans Arabic", Arial, sans-serif;
  color: #172639;
  background: #f3f5f6;
  --navy: #0c1c30;
  --ink: #172639;
  --muted: #4d6072;
  --border: #dbe3e9;
  --panel: #fff;
  --surface: #f4f7f9;
  --accent: #a91c2b;
  --accent-hover: #851321;
  --mint: #ffd9dd;
  --gold: #ffd19b;
  --dark-muted: #b9c8d7;
  --radius: 1.2rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(1220px, calc(100% - 3rem)); margin-inline: auto; }
.topbar { background: white; color: var(--ink); border-bottom: 1px solid var(--border); }
.bar-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .6rem 1rem; min-height: 80px; padding-block: .65rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.sira-logo { display: block; width: clamp(135px, 20vw, 213px); height: auto; }
.brand-product {
  border-inline-start: 1px solid var(--border); padding-inline-start: .75rem;
  display: flex; flex-direction: column; font-size: 1.4rem; font-weight: 800; line-height: 1.05;
}
.brand-product small { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .14em; margin-top: .32rem; }
html[lang="en"] .brand-product small { display: none; }
.visual-wave, .hero-wave { display: flex; align-items: center; justify-content: center; gap: 3px; }
.visual-wave i, .hero-wave i { width: 3px; height: 12px; background: currentColor; border-radius: 999px; }
#account-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.05rem; }
#account-nav a, #account-nav button { color: var(--ink); }
#account-nav a { text-underline-offset: .25em; text-decoration-color: #8295a7; }
#account-nav button { background: transparent; min-height: 38px; border-color: var(--border); }
#account-name { max-width: min(25vw, 230px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#role { color: var(--muted); }
main { padding-block: clamp(1.15rem, 2.7vw, 2.2rem) 3rem; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(160px, 15.5vw, 205px); margin-bottom: 1.25rem; border: 1px solid #253e54;
  border-radius: calc(var(--radius) + .2rem); padding: clamp(1.2rem, 3.5vw, 2.5rem);
  color: #fff; background: linear-gradient(120deg, #45242d, #1b2b3f 61%, #0c1c30);
}
.hero-content { width: min(100%, 760px); position: relative; z-index: 1; }
.hero p { margin-bottom: 0; color: #d5e3ec; font-size: clamp(.98rem, 2vw, 1.08rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: #fae9eb;
  border: 1px solid #d4a6ac69; background: #142239b5; border-radius: 999px;
  padding: .18rem .65rem; font-size: .9rem; font-weight: 700;
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: #aed1ce; }
body[data-phase="live"] .dot { background: #75f0b7; box-shadow: 0 0 0 4px #67dea233; }
.hero-wave {
  color: var(--mint); position: absolute; inset-inline-end: clamp(1rem, 7vw, 5.5rem); top: 50%;
  transform: translateY(-50%); gap: clamp(5px, 1vw, 13px); opacity: .2; pointer-events: none;
}
.hero-wave i { width: clamp(4px, .65vw, 10px); height: clamp(18px, 3.6vw, 48px); }
.hero-wave i:nth-child(3n) { height: clamp(32px, 6vw, 91px); }
.hero-wave i:nth-child(4n + 2) { height: clamp(26px, 5vw, 64px); }
.hero-wave i:nth-child(6), .hero-wave i:nth-child(8) { height: clamp(46px, 9vw, 130px); }
.hero-wave i:first-child, .hero-wave i:last-child { height: 12px; }
h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.26; margin: .4rem 0 .25rem; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; line-height: 1.4; margin: 0; }
p { color: var(--muted); margin: .45rem 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
body[data-view="studio"] .layout { grid-template-columns: minmax(0, 1fr); }
body[data-view="audience"] .layout, body[data-view="speaker"] .layout { grid-template-columns: minmax(0, 1fr); }
body[data-view="audience"] main, body[data-view="speaker"] main, body[data-view="guest"] main { max-width: 880px; }
.panel, .guide { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1rem, 2.7vw, 1.55rem); min-width: 0; }
.panel { background: var(--panel); box-shadow: 0 9px 24px #2433470d; }
.guide { background: var(--navy); color: #fff; border-color: #26394f; }
.guide p, .guide ol { color: #d5e3ec; }
.guide ol { margin-block: .8rem 1.25rem; padding-inline-start: 1.5rem; }
.guide li + li { margin-top: .55rem; }
.visual-wave { justify-content: flex-start; gap: 6px; height: 70px; color: var(--mint); margin-bottom: .8rem; }
.visual-wave i { width: 5px; height: 24px; }
.visual-wave i:nth-child(2n) { height: 43px; opacity: .8; }
.visual-wave i:nth-child(3n) { height: 65px; }
.panel-head, .panel-title, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.panel-head { justify-content: space-between; margin-bottom: 1rem; }
.panel-title { flex-wrap: nowrap; }
.form-row, .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
label { display: grid; gap: .33rem; color: #273c4c; font-size: .94rem; font-weight: 700; }
input, textarea, select, button, .button { font: inherit; }
input:not([type=checkbox]), textarea, select {
  width: 100%; color: var(--ink); background: var(--surface); border: 1px solid #b9c8d3;
  border-radius: .66rem; padding: .55rem .68rem; min-height: 46px;
}
select { appearance: none; padding-inline-end: 2.1rem; }
label:has(> select) { position: relative; }
label:has(> select)::after {
  content: ""; position: absolute; inset-inline-end: 1rem; bottom: 1.22rem;
  width: .48rem; height: .48rem; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg); pointer-events: none;
}
fieldset { border: 0; padding: 0; margin: 1.1rem 0 .7rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: .55rem; }
legend span { font-size: .88rem; color: var(--accent); margin-inline-start: .4rem; }
.languages { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: .45rem; }
.languages label { display: flex; align-items: center; gap: .42rem; cursor: pointer; border: 1px solid var(--border); border-radius: .56rem; padding: .38rem .48rem; }
.languages label:has(:checked) { background: #fbedee; border-color: #d999a1; }
.languages label:has(:disabled) { opacity: .5; cursor: default; }
input[type=checkbox] { accent-color: var(--accent); margin: 0; width: 1rem; height: 1rem; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .5rem .88rem; border-radius: .65rem; border: 1px solid transparent;
  cursor: pointer; font-weight: 700; text-decoration: none; text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}
button:disabled { opacity: .5; cursor: default; }
.primary { color: white; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: #244457; background: var(--panel); border-color: #b9c8d3; }
.secondary:hover:not(:disabled) { background: #edf4f6; border-color: #88a5b1; }
:focus-visible { outline: 3px solid #ab2739; outline-offset: 3px; }
#mode-hint { min-height: 1.7rem; margin-block: .65rem 1rem; font-size: .92rem; }
#setup-back { color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: .43rem; background: #e9eff3; color: #385064;
  border-radius: 999px; padding: .16rem .62rem; font-size: .88rem; font-weight: 700;
}
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
#connection[data-connected="true"], .conference-card[data-phase="live"] .chip { color: #005c4c; background: #d9f3e9; }
.role-icon { display: inline-grid; position: relative; flex: 0 0 auto; place-items: center; width: 2.3rem; height: 2.3rem; color: #a91c2b; background: #f9e9eb; border-radius: .7rem; }
.role-icon::before, .role-icon::after { content: ""; position: absolute; }
.icon-mic::before, body[data-guest="speaker"] #guest-gate .role-icon::before {
  width: .48em; height: .8em; border: 2px solid currentColor; border-radius: .4em; top: .48em;
}
.icon-mic::after, body[data-guest="speaker"] #guest-gate .role-icon::after {
  width: .9em; height: .7em; border: solid currentColor; border-width: 0 2px 2px; border-radius: 0 0 .52em .52em; bottom: .38em;
}
.icon-listen::before, body[data-guest="audience"] #guest-gate .role-icon::before { width: .92em; height: .77em; border: solid currentColor; border-width: 2px 2px 0; border-radius: .6em .6em 0 0; }
.icon-listen::after, body[data-guest="audience"] #guest-gate .role-icon::after { width: .24em; height: .38em; background: currentColor; border-radius: 2px; transform: translate(-.42em, .29em); box-shadow: .84em 0 0 currentColor; }
.icon-caption::before { width: .96em; height: .68em; border: 2px solid currentColor; border-radius: 3px; }
.icon-caption::after { width: .54em; height: 2px; background: currentColor; box-shadow: 0 4px currentColor; transform: translateY(-2px); }
#studio { background: var(--navy); color: #fff; border-color: #263b50; }
#studio .role-icon { background: #203d4a; color: var(--mint); }
#studio .secondary { background: #1a2a40; color: #eff7ff; border-color: #62788c; }
#studio-navigation .button { min-height: 40px; padding-inline: .65rem; font-size: .9rem; }
#studio .secondary:hover:not(:disabled) { background: #293f55; }
#studio label, #studio p { color: #d4e1ec; }
#studio textarea { background: #182a40; border-color: #748697; color: #fff; }
#studio summary { color: #d5e8f1; }
.metrics > div { background: #1b2b42; border: 1px solid #3b5268; border-radius: .8rem; padding: .62rem .75rem; }
.metrics span { font-size: .87rem; display: block; color: var(--dark-muted); }
.metrics strong { display: block; font-size: 1.45rem; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: start; }
.metrics strong[dir="ltr"] { text-align: right; }
.mic-block { margin-block: .85rem .3rem; padding: .9rem; background: #16283d; border: 1px solid #3b5268; border-radius: .85rem; }
.mic-control { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.mic-orb { flex: 0 0 auto; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border: 1px solid #557482; border-radius: 50%; background: #1b3546; }
#studio .mic-orb .role-icon { background: transparent; font-size: 1.45rem; width: 2.8rem; height: 2.8rem; }
.mic-action { display: flex; flex: 1; align-items: start; flex-direction: column; gap: .42rem; }
#studio-state { background: #263c50; color: #d2e2ef; }
#studio-state[data-phase="live"] { background: #194b42; color: #aaf7d6; }
#mic { background: var(--mint); color: #132e33; }
#mic:hover:not(:disabled) { background: #c5fce9; }
body[data-phase="live"] #mic { background: #ffcbc0; color: #6b221b; }
.meter { height: 7px; background: repeating-linear-gradient(90deg, #3e556c 0 8px, #243b53 8px 11px); border-radius: 6px; overflow: hidden; margin-bottom: .45rem; }
.meter span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #64d7bf, #e7eb9a); transition: width 80ms linear; }
#provider, #preview, #voice-status { font-size: .92rem; }
#preview:empty, #voice-status:empty { display: none; }
details { margin-top: .95rem; border-top: 1px solid #52667a; padding-top: .62rem; }
summary { cursor: pointer; }
details button, details form { margin-top: .53rem; }
.controls { align-items: end; margin-bottom: .85rem; }
.controls label { flex: 1 1 150px; }
.caption-surface { background: #eef3f6; border: 1px solid #e2e9ed; min-height: clamp(190px, 28vh, 300px); border-radius: .82rem; padding: .85rem; }
#empty { min-height: clamp(160px, 26vh, 270px); display: grid; align-content: center; justify-items: center; text-align: center; padding: .6rem; }
.caption-placeholder { width: min(155px, 65%); height: 29px; background: repeating-linear-gradient(0deg, #a9bdc7 0 3px, transparent 3px 12px); border-radius: 3px; opacity: .7; margin-bottom: .45rem; }
#captions { max-height: min(49vh, 510px); overflow: auto; overflow-wrap: anywhere; }
#captions p { margin: 0; padding: .6rem .5rem; color: inherit; font-size: clamp(1.08rem, 2.2vw, 1.3rem); white-space: pre-wrap; }
#captions p + p { border-top: 1px solid #c4d3dc; }
.transcript-footer { margin-top: .75rem; }
#follow[aria-pressed="true"] { background: #e6f3ef; color: #005b51; border-color: #a2c7be; }
#sharing { grid-column: 1 / -1; scroll-margin-top: 1rem; }
.invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.invite-card { display: grid; gap: .55rem; min-width: 0; padding: .85rem; background: #f5f8f9; border: 1px solid var(--border); border-radius: .8rem; }
.invite-card h3, .invite-card p { margin: 0; }
.invite-card h3 { font-size: 1.05rem; }
.invite-card p, .invite-card .button, .invite-card button { font-size: .9rem; }
.invite-card:first-child .role-icon { background: #ffeeda; color: #80511c; }
.invite-code, #guest-code { font-family: ui-monospace, monospace; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.workspace-auth, .staff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.workspace-auth { max-width: 880px; align-items: stretch; }
.auth-panel form, .staff-panel form { display: grid; gap: .8rem; margin-top: .85rem; }
.auth-panel form button, .staff-panel form button { justify-self: start; }
.auth-guide { display: grid; align-content: center; }
#staff-invite { margin-top: 1rem; }
#staff-list { list-style: none; padding: 0; margin: .75rem 0 0; }
#staff-list li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .7rem .1rem; border-top: 1px solid var(--border); }
#staff-list strong, #staff-list bdi { display: block; overflow-wrap: anywhere; }
#staff-list bdi { color: var(--muted); font-size: .9rem; }
.workspace-toolbar {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; margin-bottom: 1rem; background: var(--panel); border: 1px solid var(--border); border-radius: .9rem;
}
.workspace-toolbar label { width: min(100%, 23rem); }
.conference-grid { display: grid; gap: .85rem; }
.conference-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  column-gap: 1.5rem; row-gap: .9rem; border-inline-start: 4px solid #cc8890;
}
.conference-card[data-phase="live"] { border-inline-start-color: var(--accent); }
.conference-card h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.conference-card-meta { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; }
.conference-card-meta > div { min-width: 0; }
.conference-mark { position: relative; flex: 0 0 2.85rem; height: 2.85rem; background: #f8e8eb; border-radius: .75rem; }
.conference-mark::before {
  content: ""; position: absolute; inset: 29% 25% 24%; border: 2px solid #a91c2b; border-radius: 3px;
  background: linear-gradient(#a91c2b, #a91c2b) center 30% / 100% 2px no-repeat;
}
.conference-date { color: var(--muted); font-size: .88rem; }
.conference-card .actions { grid-area: 1 / 2; align-self: center; }
.conference-languages {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(9rem, .23fr) minmax(0, 1fr);
  gap: .85rem 1.25rem; background: var(--surface); border: 1px solid var(--border);
  padding: .75rem 1rem; border-radius: .8rem;
}
.conference-source { border-inline-end: 1px solid var(--border); padding-inline-end: .85rem; }
.conference-source > span, .conference-audience > span,
.settings-summary-source > span { display: block; color: var(--muted); font-size: .9rem; font-weight: 700; }
.conference-source strong, .settings-summary-source strong { display: block; margin-top: .16rem; }
.channel-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .3rem 0 0; }
.channel-list li { background: #fff; border: 1px solid #dce2e9; padding: .1rem .55rem; font-size: .9rem; border-radius: .5rem; }
.conference-expand { min-height: 36px; padding: .15rem .35rem; margin-top: .25rem; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.conference-empty { text-align: center; padding-block: 2.6rem; }
.conference-empty p { margin-bottom: .9rem; }
.guest-gate { width: min(100%, 510px); margin-inline: auto; }
.guest-gate form { display: grid; gap: .55rem; margin-top: 1rem; }
#guest-code { font-size: 1.28rem; min-height: 53px; }
#gate-hint { margin: 0; font-size: .9rem; }
#guest-submit { margin-top: .4rem; min-height: 48px; }
body[data-guest="speaker"] .hero { background: linear-gradient(123deg, #4b2733, #223146 60%, #0c1c30); }
body[data-guest="speaker"] .hero-wave { color: var(--gold); opacity: .36; }
body[data-guest="speaker"] #guest-gate .role-icon { color: #80511c; background: #ffeeda; }
body[data-view="speaker"] .mic-control { padding-block: .4rem; }
body[data-view="audience"] { background: #121f32; }
body[data-view="audience"] .topbar { border-bottom: 1px solid var(--border); }
body[data-view="audience"] .transcript { background: #203249; color: #fff; border-color: #52677c; }
body[data-view="audience"] #monitor label, body[data-view="audience"] #voice-status { color: #e0edf8; }
body[data-view="audience"] #listen { background: #142339; color: #fff; border-color: #8b9daf; color-scheme: dark; }
body[data-view="audience"] #audio { background: var(--mint); color: #133233; min-width: 132px; }
body[data-view="audience"] #audio[aria-pressed="true"] { background: #e5f1fb; color: #1b3b54; }
body[data-view="audience"] .caption-surface { background: #101e31; border-color: #42566b; }
body[data-view="audience"] #empty p { color: #d3e0ec; }
body[data-view="audience"] #captions p { font-size: clamp(1.2rem, 2.7vw, 1.55rem); }
body[data-view="audience"] #captions p + p { border-color: #42566b; }
body[data-view="audience"] .secondary:not([aria-pressed="true"]) { background: #293f56; color: #eef8ff; border-color: #748b9f; }
#message { color: #8a281d; font-weight: 700; }
#message:not(:empty) { padding: .65rem .85rem; background: #fff2e7; border: 1px solid #eab8a5; border-radius: .72rem; margin-top: .85rem; }
body[data-view="guest"] #message { width: min(100%, 510px); margin-inline: auto; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 1.5rem); }
  .layout, body[data-view="studio"] .layout, body[data-view="speaker"] .layout,
  .workspace-auth, .staff-grid, .invite-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-wave { opacity: .13; }
  .bar-inner { min-height: 65px; }
  #account-nav { gap: .3rem .65rem; font-size: .9rem; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .languages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 154px; }
  .controls #audio { flex: 1 1 115px; }
  #account-name { display: none; }
  .guest-gate, #guest-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.speaker-receipt { margin-block: .85rem; padding: .7rem .85rem; border: 1px solid #526c82; border-radius: .7rem; background: #20374b; }
#receipt-state { font-weight: 700; }
#studio #receipt-detail { margin: .2rem 0 0; font-size: .9rem; }
.speaker-receipt[data-received="true"] { background: #194239; border-color: #4f9c86; }
.speaker-receipt[data-received="true"] #receipt-state { color: var(--mint); }
.invite-qr { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.invite-qr img { width: 152px; height: 152px; padding: 2px; background: #fff; border: 1px solid var(--border); border-radius: .65rem; image-rendering: pixelated; }
#channel-health { grid-column: 1 / -1; }
.health-scroll { overflow-x: auto; }
#channel-health table { width: 100%; border-collapse: collapse; white-space: nowrap; }
#channel-health th, #channel-health td { padding: .55rem; border-bottom: 1px solid var(--border); text-align: start; }
.invite-qr figure, #qr-screen figure { margin: 0; text-align: center; }
.invite-qr figcaption, #qr-screen figcaption { font-weight: 700; }
#qr-screen { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; text-align: center; background: white; color: var(--ink); }
#qr-screen button { display: block; margin-inline-start: auto; }
#qr-screen img { display: block; image-rendering: pixelated; margin: 1rem auto 0; width: min(52vh, 76vw); aspect-ratio: 1; }
#qr-screen-code { font: 700 clamp(1.4rem, 5vw, 3rem) monospace; letter-spacing: .12em; }

#lecture-tabs {
  display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem;
  padding: .4rem; background: var(--panel); border: 1px solid var(--border); border-radius: .85rem;
}
#lecture-tabs button { flex: 0 0 auto; white-space: nowrap; background: transparent; color: var(--ink); }
#lecture-tabs button:hover { background: #edf4f6; }
#lecture-tabs button[aria-selected="true"] { background: var(--accent); color: white; }

body[data-view="settings"] .layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, .36fr); }
body[data-view="settings"] .hero, body[data-view="workspace"] .hero { min-height: 0; padding-block: clamp(1.2rem, 3vw, 1.85rem); }
body[data-view="settings"] .hero h1, body[data-view="workspace"] .hero h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
.settings-basics { padding: .95rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.settings-basics h3, .settings-summary h3 { font-size: 1rem; margin: 0 0 .55rem; }
.settings-languages { margin-top: 1.25rem; }
.language-tools { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; justify-content: space-between; margin-bottom: .65rem; }
.language-tools label { flex: 1 1 12rem; }
.language-tools .actions { gap: .4rem; }
.settings-languages .languages { grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); }
.settings-languages .languages label { min-height: 42px; }
.settings-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.settings-footer #mode-hint { margin: 0; min-height: 0; }
.settings-summary-source { margin-block: .8rem; background: var(--surface); padding: .65rem .8rem; border-radius: .65rem; }
.settings-summary-targets h3 span { display: inline-block; color: var(--accent); background: #f9e9eb; border-radius: .45rem; padding-inline: .45rem; margin-inline-start: .2rem; }
@media (max-width: 760px) {
  body[data-view="settings"] .layout { grid-template-columns: minmax(0, 1fr); }
  .conference-card { grid-template-columns: minmax(0, 1fr); }
  .conference-card .actions { grid-area: auto; }
}
@media (max-width: 440px) {
  .conference-languages { grid-template-columns: minmax(0, 1fr); }
  .conference-source { border-inline-end: 0; border-bottom: 1px solid var(--border); padding-block-end: .55rem; }
  .settings-languages .languages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body[data-phase="live"] .hero .dot { background: #75f0b7; }
body[data-guest="speaker"] .hero-wave { color: var(--mint); }
@media (max-width: 540px) {
  .bar-inner { gap: .5rem; }
  .brand { gap: .55rem; }
  .brand-product { padding-inline-start: .5rem; font-size: 1.1rem; }
  #account-nav { order: 3; width: 100%; }
  #role { display: none; }
}

body[data-view="speaker"] main { max-width: 720px; }
body[data-view="speaker"] .hero { min-height: 0; padding: clamp(1rem, 4vw, 1.65rem); margin-bottom: .85rem; }
body[data-view="speaker"] .hero h1 { font-size: clamp(1.55rem, 5.5vw, 2.5rem); }
body[data-view="speaker"] .hero-wave { opacity: .12; }
.speaker-language-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.speaker-language-summary div {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem;
  padding: .25rem .65rem; border: 1px solid #738297; border-radius: .55rem; background: #142239b5;
}
.speaker-language-summary dt { color: #d5e3ec; font-size: .88rem; }
.speaker-language-summary dd { margin: 0; font-weight: 700; color: #fff; }
body[data-view="speaker"] #studio { display: flex; flex-direction: column; gap: .8rem; }
body[data-view="speaker"] .console-head { margin: 0; }
body[data-view="speaker"] .mic-block { order: 1; margin: 0; }
body[data-view="speaker"] .metrics { order: 2; }
body[data-view="speaker"] #speaker-language-details { order: 3; margin: 0; }
body[data-view="speaker"] #studio-state { display: none; }
.mic-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
body[data-view="speaker"] .mic-buttons #mic { min-height: 49px; }
body[data-view="speaker"] .speaker-receipt { margin-block-end: 0; }
body[data-view="speaker"] #speaker-language-list li { color: var(--ink); }
@media (max-width: 440px) {
  body[data-view="speaker"] .mic-control { gap: .65rem; align-items: flex-start; }
  body[data-view="speaker"] .mic-orb { width: 2.9rem; height: 2.9rem; }
  body[data-view="speaker"] .mic-buttons { flex-direction: column; width: 100%; }
  body[data-view="speaker"] .mic-buttons button { width: 100%; }
}

#broadcast-costs table { width: 100%; border-collapse: collapse; white-space: nowrap; }
#broadcast-costs th, #broadcast-costs td { padding: .6rem; border-bottom: 1px solid var(--border); text-align: start; }
.cost-total { background: var(--surface); border: 1px solid var(--border); border-radius: .7rem; padding: .55rem .8rem; }
.cost-total span, .cost-total strong { display: block; }
.cost-total span { color: var(--muted); font-size: .9rem; }
