:root {
  --os-ink: #10140f;
  --os-black: #070a08;
  --os-panel: #111512;
  --os-panel-soft: #181d18;
  --os-pearl: #f5f5ef;
  --os-pearl-2: #ecefe7;
  --os-line: rgba(16, 20, 15, 0.12);
  --os-line-dark: rgba(255, 255, 255, 0.09);
  --os-lime: #b8f13b;
  --os-lime-strong: #a5df1f;
  --os-mint: #25d3ae;
  --os-violet: #9278ff;
  --os-coral: #ff5d56;
  --os-muted: #657064;
  --os-muted-dark: #98a197;
  --os-radius-xl: 30px;
  --os-radius-lg: 22px;
  --os-radius-md: 16px;
  --os-shadow: 0 24px 64px rgba(10, 20, 10, 0.12);
}

/* Account, device entitlement and managed-AI budget surface. */
.os-account-page {
  max-width: 1180px;
}

.os-account-summary,
.os-account-auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.os-account-summary > section,
.os-account-auth-grid > form,
.os-account-usage,
.os-account-boundary,
.os-account-recovery {
  border: 1px solid rgba(89, 219, 198, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 42, 45, 0.92), rgba(9, 27, 30, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.os-account-summary > section {
  padding: 18px;
}

.os-account-summary span,
.os-account-auth-grid form > span,
.os-account-recovery > span {
  color: #71d8c6;
  font-size: 12px;
  letter-spacing: .08em;
}

.os-account-summary h2,
.os-account-auth-grid h2 {
  margin: 8px 0 5px;
  color: #f3fffc;
  font-size: 19px;
}

.os-account-summary p,
.os-account-usage p,
.os-account-boundary p,
.os-account-recovery p {
  margin: 0;
  color: rgba(222, 242, 238, .72);
  line-height: 1.65;
}

.os-account-usage {
  margin-top: 16px;
  padding: 18px;
}

.os-account-usage > div {
  display: flex;
  justify-content: space-between;
  color: #eafffa;
}

.os-account-usage > i {
  display: block;
  height: 8px;
  margin: 13px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.os-account-usage > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35c5af, #74e1c2);
}

.os-account-auth-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}

.os-account-auth-grid > form {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.os-account-auth-grid label {
  display: grid;
  gap: 7px;
  color: rgba(235, 249, 246, .84);
  font-size: 13px;
}

.os-account-auth-grid input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(117, 217, 201, .2);
  border-radius: 11px;
  outline: none;
  color: #f2fffc;
  background: rgba(4, 20, 23, .78);
}

.os-account-auth-grid input:focus {
  border-color: rgba(91, 225, 201, .68);
  box-shadow: 0 0 0 3px rgba(67, 200, 179, .1);
}

.os-account-boundary {
  margin-top: 16px;
  padding: 18px 20px;
}

.os-account-boundary > b {
  color: #effffb;
}

.os-account-boundary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.os-account-boundary li {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9ee5d8;
  background: rgba(45, 185, 164, .1);
  font-size: 12px;
}

.os-account-message {
  margin: 15px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 196, 103, .23);
  border-radius: 12px;
  color: #ffddaa;
  background: rgba(121, 75, 19, .14);
}

.os-account-recovery {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  padding: 17px;
}

.os-account-recovery code {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 9px;
  color: #fff4c7;
  background: rgba(0, 0, 0, .28);
  letter-spacing: .1em;
  user-select: text;
}

.os-account-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .os-account-summary,
  .os-account-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* AI songwriting stays a thin launcher: all heavy models remain in the D-drive worker app. */
.stage-os.is-ai-song-page #stage {
  overflow: auto;
  background:
    radial-gradient(circle at 78% 8%, rgba(32, 211, 156, 0.10), transparent 34%),
    #07100d;
}

.os-ai-song-page {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: #edf8f3;
}

.os-ai-song-hero {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 34px 40px;
  border: 1px solid rgba(89, 219, 170, 0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 42, 34, 0.96), rgba(8, 18, 15, 0.98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.os-ai-song-copy > span,
.os-ai-song-section-title > span {
  color: #65d9aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.os-ai-song-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.os-ai-song-copy > p {
  max-width: 690px;
  margin: 0;
  color: #a8bbb3;
  font-size: 15px;
  line-height: 1.75;
}

.os-ai-song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.os-ai-song-actions button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(121, 158, 143, 0.26);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbeae4;
  font-weight: 750;
  cursor: pointer;
}

.os-ai-song-actions button.primary {
  min-width: 204px;
  border-color: transparent;
  background: linear-gradient(135deg, #5be0aa, #28bd87);
  color: #06110d;
}

.os-ai-song-actions button i { margin-left: 8px; }
.os-ai-song-actions button:disabled { opacity: 0.48; cursor: not-allowed; }

.os-ai-song-warning {
  display: flex;
  gap: 11px;
  align-items: center;
  max-width: 690px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 197, 92, 0.25);
  border-radius: 12px;
  background: rgba(255, 182, 66, 0.08);
  color: #ffd48c;
}

.os-ai-song-warning.error { border-color: rgba(255, 111, 120, 0.26); background: rgba(255, 82, 95, 0.08); color: #ffacb2; }
.os-ai-song-warning > i { font-size: 22px; }
.os-ai-song-warning span { display: grid; gap: 3px; }
.os-ai-song-warning small { color: #b9aaa0; }

.os-ai-song-orbit {
  position: relative;
  width: 226px;
  height: 226px;
  justify-self: center;
}

.os-ai-song-orbit > i {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(85, 224, 168, 0.25);
  border-radius: 50%;
}

.os-ai-song-orbit > i:nth-child(2) { inset: 33px; border-style: dashed; transform: rotate(23deg); }
.os-ai-song-orbit > i:nth-child(3) { inset: 57px; border-color: rgba(85, 224, 168, 0.42); }
.os-ai-song-orbit > div {
  position: absolute;
  inset: 73px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #62e3b0, #1c9a70);
  color: #06110d;
  box-shadow: 0 0 55px rgba(50, 214, 153, 0.28);
}
.os-ai-song-orbit span { font-size: 22px; }
.os-ai-song-orbit b { font-size: 10px; letter-spacing: 0.12em; }
.os-ai-song-orbit small { font-size: 9px; }

.os-ai-song-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.os-ai-song-status-grid article {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid rgba(118, 160, 143, 0.16);
  border-radius: 16px;
  background: rgba(15, 29, 24, 0.82);
}
.os-ai-song-status-grid span { color: #81968e; font-size: 12px; }
.os-ai-song-status-grid b { font-size: 19px; }
.os-ai-song-status-grid small { color: #879a92; }
.os-ai-song-status-grid article.ready b,
.os-ai-song-status-grid article.running b { color: #65d9aa; }
.os-ai-song-status-grid article.warning b,
.os-ai-song-status-grid article.missing b { color: #ffbe72; }

.os-ai-song-workflow {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(118, 160, 143, 0.16);
  border-radius: 18px;
  background: rgba(12, 24, 20, 0.88);
}
.os-ai-song-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.os-ai-song-section-title small { color: #81968e; }
.os-ai-song-steps {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.os-ai-song-steps > article {
  min-width: 148px;
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 7px;
  position: relative;
  padding: 18px;
  border: 1px solid rgba(102, 198, 159, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.os-ai-song-steps article > em { position: absolute; top: 12px; right: 13px; color: #49675b; font-size: 11px; font-style: normal; }
.os-ai-song-steps article > i { color: #5ed9a8; font-size: 21px; }
.os-ai-song-steps article > b { font-size: 15px; }
.os-ai-song-steps article > small { color: #82958e; line-height: 1.55; }
.os-ai-song-steps > i { color: #38564a; }

.os-ai-song-safety {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.os-ai-song-safety > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 90px;
  padding: 18px;
  border-radius: 15px;
  background: rgba(13, 27, 22, 0.8);
}
.os-ai-song-safety > div > i { color: #5ed9a8; font-size: 21px; }
.os-ai-song-safety span { min-width: 0; display: grid; gap: 6px; }
.os-ai-song-safety small { overflow-wrap: anywhere; color: #82958e; line-height: 1.5; }

@media (max-width: 1050px) {
  .os-ai-song-hero { grid-template-columns: 1fr 190px; padding: 28px; }
  .os-ai-song-orbit { width: 180px; height: 180px; }
  .os-ai-song-orbit > div { inset: 58px; }
  .os-ai-song-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-ai-song-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .os-ai-song-steps > i { display: none; }
  .os-ai-song-steps > article { min-width: 0; }
}

@media (max-width: 760px) {
  .os-ai-song-page { width: calc(100% - 24px); padding-top: 16px; }
  .os-ai-song-hero { grid-template-columns: 1fr; }
  .os-ai-song-orbit { display: none; }
  .os-ai-song-status-grid,
  .os-ai-song-steps,
  .os-ai-song-safety { grid-template-columns: 1fr; }
  .os-ai-song-section-title { align-items: flex-start; flex-direction: column; }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.stage-os {
  margin: 0;
  color: var(--os-ink);
  background: var(--os-pearl);
  font-family: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage-os button,
.stage-os input,
.stage-os textarea {
  font: inherit;
}

.stage-os button {
  cursor: pointer;
}

.stage-os .app {
  min-width: 1080px;
  height: 100vh;
  background: var(--os-pearl);
}

.stage-os .titlebar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px minmax(480px, 1fr) 120px;
  align-items: center;
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 0 18px 0 24px;
  color: #f6f7f2;
  background: #070907;
  border: 0;
  box-shadow: none;
}

.stage-os .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  width: max-content;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.stage-os .brand span {
  color: #fff;
  font-weight: 760;
}

.stage-os .brand i {
  color: var(--os-lime);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.stage-os .brand b {
  display: none;
}

.stage-os .brand b.os-brand-icon {
  display: block;
  margin-right: 3px;
  color: #fff;
  font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets";
  font-size: 18px;
  font-weight: 400;
}

.stage-os .rail {
  position: relative;
  inset: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 26px;
  height: 58px;
  margin: 0;
  padding: 0;
  justify-self: stretch;
  align-self: stretch;
  background: transparent;
  border: 0;
}

.os-nav-item,
.os-history-button {
  position: relative;
  border: 0;
  color: #92998f;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.os-nav-item::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  content: "";
  background: var(--os-lime);
  opacity: 0;
  transform: scaleX(0.3);
  transition: 180ms ease;
}

.os-nav-item.active,
.os-nav-item:hover,
.os-history-button:hover {
  color: #fff;
}

.os-nav-item.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.os-history-button {
  margin-left: 10px;
  color: #bdc3ba;
}

.os-user {
  position: relative;
  display: flex;
  align-items: center;
}

.os-avatar {
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 241, 59, 0.55);
  border-radius: 50%;
  background: #eff2e8;
}

.os-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
  transform: scale(1.65);
}

.os-user-menu {
  position: absolute;
  top: 50px;
  right: 0;
  display: none;
  width: 248px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(17, 20, 17, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.os-user-menu.open {
  display: grid;
  gap: 3px;
}

.os-user-menu button {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  text-align: left;
  background: transparent;
}

.os-user-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.os-user-menu b {
  font-size: 13px;
}

.os-user-menu span {
  color: #8e978c;
  font-size: 11px;
}

.stage-os .window-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.stage-os .window-actions button {
  display: grid;
  width: 34px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #92998f;
  background: transparent;
  font-size: 13px;
}

.stage-os .window-actions button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.stage-os .screen {
  display: block;
  width: 100%;
  height: calc(100vh - 58px);
  padding: 0;
  overflow: hidden;
  background: var(--os-pearl);
}

.stage-os .stage {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.stage-os .prep,
.stage-os .trust {
  display: none !important;
}

.os-page {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

.os-kicker {
  margin-bottom: 14px;
  color: #6f786e;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-primary {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  color: #11150f;
  background: var(--os-lime);
  box-shadow: 0 10px 24px rgba(165, 223, 31, 0.18);
  font-weight: 780;
}

.os-primary:hover {
  background: #c6fa55;
  transform: translateY(-1px);
}

.os-text-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--os-line);
  border-radius: 14px;
  color: var(--os-ink);
  background: transparent;
  font-weight: 700;
}

/* Pre-live */
.os-prep-page {
  display: grid;
  grid-template-rows: minmax(390px, 1fr) auto 76px;
  background:
    radial-gradient(circle at 72% 22%, rgba(184, 241, 59, 0.14), transparent 28%),
    linear-gradient(155deg, #f7f7f2 0%, #eef1e9 100%);
}

.os-prep-hero {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 54px;
  max-width: 1260px;
  width: calc(100% - 88px);
  margin: 0 auto;
  padding: 48px 0 28px;
}

.os-prep-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.os-prep-copy h1 span {
  color: #8da921;
}

.os-prep-copy > p {
  max-width: 570px;
  margin: 24px 0 0;
  color: #687067;
  font-size: 16px;
  line-height: 1.75;
}

.os-prep-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.os-coach-portrait {
  position: relative;
}

.os-coach-portrait-prep {
  height: min(44vh, 430px);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--os-shadow);
}

.os-coach-portrait-prep > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  transform: scale(1.07);
}

.os-coach-quote {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 17px;
  background: rgba(248, 249, 244, 0.88);
  box-shadow: 0 12px 34px rgba(27, 36, 24, 0.12);
  backdrop-filter: blur(14px);
}

.os-coach-quote b {
  color: #718c15;
  font-size: 13px;
}

.os-coach-quote span {
  color: #4d554c;
  font-size: 12px;
  line-height: 1.45;
}

.os-prep-checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1260px;
  width: calc(100% - 88px);
  margin: 0 auto;
  padding: 0 0 24px;
}

.os-check-card {
  position: relative;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.os-check-card.ready {
  border-color: rgba(165, 223, 31, 0.48);
  background: rgba(248, 252, 237, 0.82);
}

.os-check-state {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7c8479;
  background: rgba(16, 20, 15, 0.06);
  font-size: 10px;
  font-weight: 760;
}

.os-check-card.ready .os-check-state {
  color: #5c730c;
  background: rgba(184, 241, 59, 0.26);
}

.os-check-card h3 {
  margin: 14px 0 5px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.os-check-card p {
  max-width: 220px;
  margin: 0;
  color: #778076;
  font-size: 11px;
  line-height: 1.5;
}

.os-check-card > button {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  color: #50594f;
  background: rgba(16, 20, 15, 0.06);
  font-size: 11px;
  font-weight: 700;
}

.os-prep-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(44px, calc((100% - 1260px) / 2));
  color: #778076;
  border-top: 1px solid rgba(16, 20, 15, 0.08);
  background: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.os-prep-foot button {
  border: 0;
  color: #495447;
  background: transparent;
  font-weight: 760;
}

/* Live stage */
.os-live-page {
  height: 100%;
  min-height: 860px;
  background: var(--os-black);
}

.os-live-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 1.15fr) minmax(300px, 0.68fr) minmax(260px, 0.68fr);
  gap: 18px;
  height: 57%;
  min-height: 470px;
  padding: 46px max(40px, calc((100% - 1360px) / 2)) 72px;
  overflow: hidden;
  color: var(--os-ink);
  background:
    radial-gradient(circle at 52% 20%, rgba(184, 241, 59, 0.24), transparent 28%),
    linear-gradient(135deg, #f7f7f2 0%, #edf0e9 100%);
}

.os-live-copy {
  align-self: center;
  max-width: 640px;
}

.os-live-copy h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.os-direction-card {
  position: relative;
  max-width: 560px;
  margin-top: 26px;
  padding: 17px 52px 17px 18px;
  border-radius: 18px;
  color: #13180f;
  background: var(--os-lime);
  box-shadow: 0 16px 36px rgba(157, 210, 25, 0.16);
}

.os-direction-card span {
  display: block;
  margin-bottom: 6px;
  color: #5b6e19;
  font-size: 10px;
  font-weight: 800;
}

.os-direction-card b {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.os-direction-card p {
  margin: 4px 0 0;
  color: #455211;
  font-size: 11px;
}

.os-live-coach {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 60px rgba(20, 30, 16, 0.12);
}

.os-live-coach img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.07);
}

.os-coach-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #344032;
  background: rgba(248, 249, 244, 0.8);
  font-size: 10px;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.os-coach-status i,
.os-mini-heading i,
.os-audio-status i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca49a;
}

.os-coach-status i,
.os-mini-heading i.online,
.os-audio-status .online i {
  background: var(--os-mint);
  box-shadow: 0 0 0 4px rgba(37, 211, 174, 0.12);
}

.os-live-flow {
  align-self: stretch;
  padding: 22px;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.53);
}

.os-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #727a70;
  font-size: 10px;
}

.os-flow-head b {
  color: #43503f;
}

.os-flow-item {
  display: grid;
  grid-template-columns: 38px 10px 1fr;
  gap: 8px;
  min-height: 82px;
  color: #7b8378;
}

.os-flow-item time {
  padding-top: 3px;
  font-size: 9px;
}

.os-flow-item > span {
  position: relative;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 2px solid #aab0a6;
  border-radius: 50%;
}

.os-flow-item > span::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 1px;
  height: 62px;
  content: "";
  background: rgba(16, 20, 15, 0.12);
}

.os-flow-item:last-child > span::after {
  display: none;
}

.os-flow-item.active {
  color: #21281e;
}

.os-flow-item.active > span {
  border-color: var(--os-lime-strong);
  background: var(--os-lime);
}

.os-flow-item p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.os-control-island {
  position: absolute;
  z-index: 12;
  top: calc(57% - 27px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(16, 19, 16, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.os-control-island button {
  min-width: 116px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #dce0d8;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.os-control-island button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.os-control-island button span {
  margin-right: 4px;
  color: #fff;
}

.os-control-island button.danger {
  color: #fff;
  background: var(--os-coral);
}

.os-audio-deck {
  height: 43%;
  min-height: 360px;
  padding: 50px max(40px, calc((100% - 1360px) / 2)) 30px;
  color: #f5f7f2;
  background:
    radial-gradient(circle at 45% -10%, rgba(184, 241, 59, 0.08), transparent 30%),
    #080b09;
}

.os-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.os-deck-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-deck-head span {
  font-size: 13px;
  font-weight: 780;
}

.os-deck-head b {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--os-lime);
  background: rgba(184, 241, 59, 0.08);
  font-size: 9px;
}

.os-deck-head button,
.os-panel-head button {
  border: 0;
  color: #aab1a8;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.os-deck-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.85fr;
  gap: 12px;
}

.os-deck-grid > article {
  min-height: 278px;
  padding: 20px;
  border: 1px solid var(--os-line-dark);
  border-radius: 20px;
  background: linear-gradient(145deg, #151a15, #0f1310);
}

.os-mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8f988d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.os-voice-mini h3,
.os-sound-mini h3 {
  margin: 14px 0 5px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.os-voice-mini p {
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: #858f83;
  font-size: 10px;
  line-height: 1.5;
}

.os-preset-row {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.os-preset-row button {
  padding: 7px 10px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #aab1a8;
  background: transparent;
  font-size: 10px;
}

.os-preset-row button.selected {
  color: #10150e;
  border-color: var(--os-lime);
  background: var(--os-lime);
}

.os-deck-grid .os-range-control {
  gap: 8px;
  margin-top: 17px;
}

.os-deck-grid .os-range-control > span {
  font-size: 9px;
}

.os-deck-grid .os-range-control input {
  height: 3px;
}

.os-deck-grid .os-range-control input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border-width: 3px;
}

.os-sound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.os-sound-grid button {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--os-line-dark);
  border-radius: 12px;
  color: #f3f5f0;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  transition: 120ms ease;
}

.os-sound-grid button:hover,
.os-sound-grid button.playing {
  color: #11140f;
  border-color: var(--os-lime);
  background: var(--os-lime);
}

.os-sound-grid b {
  font-size: 11px;
}

.os-sound-grid span {
  color: #7f887c;
  font-size: 9px;
}

.os-sound-grid button:hover span,
.os-sound-grid button.playing span {
  color: #4f5c1c;
}

.os-live-pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 8px;
}

.os-live-pulse > span {
  grid-column: 1 / -1;
  color: #8f988d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.os-live-pulse > div:not(.os-pulse-line) {
  display: grid;
  margin-top: 18px;
}

.os-live-pulse b {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.os-live-pulse small {
  color: #788176;
  font-size: 9px;
}

.os-pulse-line {
  position: relative;
  grid-column: 1 / -1;
  height: 42px;
  margin-top: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 241, 59, 0.18);
}

.os-pulse-line::before {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 24px;
  content: "";
  background: linear-gradient(170deg, transparent 0 15%, var(--os-lime) 16% 20%, transparent 21% 33%, var(--os-lime) 34% 38%, transparent 39% 53%, var(--os-lime) 54% 58%, transparent 59%);
  opacity: 0.7;
}

/* Audio workspace */
.os-audio-page {
  min-height: 100%;
  padding: 42px max(42px, calc((100% - 1340px) / 2));
  color: #f5f7f2;
  background:
    radial-gradient(circle at 70% 5%, rgba(184, 241, 59, 0.08), transparent 24%),
    #080a08;
}

.os-audio-heading,
.os-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.os-audio-heading h1,
.os-form-heading h1 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 52px);
  letter-spacing: -0.05em;
}

.os-audio-heading p,
.os-form-heading p {
  margin: 8px 0 0;
  color: #828b80;
  font-size: 13px;
}

.os-audio-status {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.os-audio-status > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--os-line-dark);
  border-radius: 999px;
  color: #8e978c;
  font-size: 10px;
}

.os-audio-status > span.online {
  color: #cfd9c9;
}

.os-audio-workspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.85fr) minmax(560px, 1.3fr);
  gap: 16px;
}

.os-voice-panel,
.os-effects-panel {
  min-height: 620px;
  padding: 22px;
  border: 1px solid var(--os-line-dark);
  border-radius: 26px;
  background: rgba(18, 22, 18, 0.92);
}

.os-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
}

.os-scene-card {
  display: grid;
  grid-template-columns: 1fr 170px;
  height: 210px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--os-ink);
  background: linear-gradient(145deg, #f5f6ed, #e8efda);
}

.os-scene-copy {
  align-self: center;
  padding: 24px;
}

.os-scene-copy small {
  color: #6d7769;
  font-size: 10px;
}

.os-scene-copy h2 {
  margin: 10px 0 4px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.os-scene-copy p {
  margin: 0;
  color: #6e776b;
  font-size: 11px;
}

.os-scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 25%;
  transform: scale(1.07);
}

.os-preset-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.os-preset-large button {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--os-line-dark);
  border-radius: 13px;
  color: #f0f3ed;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
}

.os-preset-large button.selected {
  color: #11150f;
  border-color: var(--os-lime);
  background: var(--os-lime);
}

.os-preset-large b {
  font-size: 11px;
}

.os-preset-large span {
  color: #80897e;
  font-size: 9px;
}

.os-preset-large button.selected span {
  color: #536316;
}

.os-range-control {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.os-range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ba399;
  font-size: 11px;
}

.os-range-control > span b {
  color: #fff;
  font-size: 12px;
}

.os-range-control input {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--os-lime) 0 var(--value), #30362f var(--value));
}

.os-range-control input::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 4px solid var(--os-lime);
  border-radius: 50%;
  background: #11150f;
  box-shadow: 0 0 0 3px rgba(184, 241, 59, 0.1);
}

.os-search-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--os-line-dark);
  border-radius: 14px;
  color: #a5ada2;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}

.os-search-line b {
  max-width: 50%;
  overflow: hidden;
  color: #6f786e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.os-effect-button {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 8px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--os-line-dark);
  border-radius: 16px;
  color: #f3f5f0;
  text-align: left;
  background: linear-gradient(145deg, #171c17, #111411);
}

.os-effect-button:hover,
.os-effect-button.playing {
  border-color: rgba(184, 241, 59, 0.7);
  box-shadow: inset 0 0 0 1px rgba(184, 241, 59, 0.1);
}

.os-effect-button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--os-lime);
  font-size: 11px;
  font-weight: 800;
}

.os-effect-button b {
  align-self: end;
  font-size: 12px;
}

.os-effect-button small {
  color: #737c71;
  font-size: 9px;
}

.os-route-note {
  margin-top: 26px;
  padding: 16px;
  border-radius: 15px;
  color: #899187;
  background: rgba(184, 241, 59, 0.05);
}

.os-route-note span {
  color: var(--os-lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.os-route-note p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

/* Profile and settings */
.os-form-page,
.os-settings-page,
.os-postlive-page {
  min-height: 100%;
  padding: 50px max(46px, calc((100% - 1260px) / 2));
  background:
    radial-gradient(circle at 84% 10%, rgba(184, 241, 59, 0.12), transparent 24%),
    linear-gradient(155deg, #f7f7f2, #eef0e9);
}

.os-form-heading .os-primary,
.os-settings-page .os-primary {
  margin-top: 12px;
}

.os-profile-grid,
.os-settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.os-form-section,
.os-profile-summary,
.os-settings-card,
.os-privacy-card {
  padding: 24px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 46px rgba(20, 30, 16, 0.05);
}

.os-form-section.span-2,
.os-privacy-card.span-2 {
  grid-column: 1 / -1;
}

.os-form-section > h2,
.os-settings-card h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.os-profile-summary {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  background: #101410;
}

.os-profile-summary img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 18px;
}

.os-profile-summary div {
  display: grid;
  gap: 6px;
}

.os-profile-summary small {
  color: #879085;
  font-size: 10px;
}

.os-profile-summary b {
  color: #fff;
  font-size: 18px;
}

.os-profile-summary span {
  color: var(--os-lime);
  font-size: 11px;
}

.stage-os .os-form-page .form-grid,
.stage-os .os-settings-page .form-grid {
  gap: 14px;
}

.stage-os .os-form-page .field,
.stage-os .os-settings-page .field,
.stage-os .os-form-page .option-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.stage-os .os-form-page .field label,
.stage-os .os-settings-page .field label,
.stage-os .os-form-page .option-block label {
  color: #374036;
  font-size: 12px;
  font-weight: 760;
}

.stage-os .os-form-page input,
.stage-os .os-settings-page input {
  min-height: 46px;
  border: 1px solid rgba(16, 20, 15, 0.12);
  border-radius: 13px;
  color: var(--os-ink);
  background: rgba(255, 255, 255, 0.72);
}

.stage-os .os-form-page .option {
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(16, 20, 15, 0.12);
  border-radius: 999px;
  color: #4d574c;
  background: rgba(255, 255, 255, 0.66);
}

.stage-os .os-form-page .option.selected {
  color: #11150f;
  border-color: var(--os-lime-strong);
  background: var(--os-lime);
}

.os-settings-card > span,
.os-post-card > span {
  color: #7b8479;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid rgba(16, 20, 15, 0.08);
}

.os-setting-row:first-of-type {
  margin-top: 8px;
}

.os-setting-row > div {
  display: grid;
  gap: 4px;
}

.os-setting-row b {
  font-size: 13px;
}

.os-setting-row small {
  color: #7a8378;
  font-size: 10px;
}

.os-setting-row button,
.os-post-next button {
  padding: 8px 11px;
  border: 1px solid rgba(16, 20, 15, 0.12);
  border-radius: 10px;
  color: #3d473c;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}

.os-privacy-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  color: #dce2d8;
  background: #101410;
}

.os-privacy-card p {
  margin: 0;
  color: #8f988d;
  font-size: 11px;
  line-height: 1.6;
}

/* End and post-live */
.os-processing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 760px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(184, 241, 59, 0.18), transparent 25%),
    #f4f5ef;
}

.os-processing-orbit {
  width: 210px;
  height: 210px;
  margin-bottom: 26px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(20, 30, 16, 0.12);
  animation: osFloat 1800ms ease-in-out infinite;
}

.os-processing-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 50%;
}

.os-processing-page h1 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.os-processing-page h1 span {
  color: #86a21d;
}

.os-processing-page > p {
  margin: 20px 0;
  color: #737c71;
  font-size: 13px;
}

.os-processing-steps {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.os-processing-steps span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #8a9288;
  background: rgba(16, 20, 15, 0.05);
  font-size: 10px;
}

.os-processing-steps span.done,
.os-processing-steps span.active {
  color: #536316;
  background: rgba(184, 241, 59, 0.22);
}

.os-processing-steps span.active {
  box-shadow: inset 0 0 0 1px rgba(165, 223, 31, 0.5);
}

@keyframes osFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.os-postlive-head {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.os-postlive-head h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.os-session-score {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-radius: 20px;
  color: #fff;
  background: #101410;
}

.os-session-score small,
.os-session-score span {
  color: #8b9489;
  font-size: 9px;
}

.os-session-score b {
  color: var(--os-lime);
  font-size: 24px;
}

.os-postlive-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.45fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.os-post-card {
  padding: 24px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.os-post-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 16px;
}

.os-post-stats > span,
.os-post-stats > p {
  grid-column: 1 / -1;
}

.os-post-stats > div {
  display: grid;
  gap: 3px;
  margin-top: 15px;
}

.os-post-stats b {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.os-post-stats small {
  color: #7a8378;
  font-size: 9px;
}

.os-post-stats p,
.os-post-focus p {
  color: #737c71;
  font-size: 11px;
  line-height: 1.6;
}

.os-post-focus {
  grid-row: 1 / 3;
  grid-column: 2;
  padding: 32px;
  color: #f4f6f1;
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 241, 59, 0.16), transparent 26%),
    #101410;
}

.os-post-focus > span {
  color: var(--os-lime);
}

.os-post-focus h2 {
  max-width: 680px;
  margin: 32px 0 12px;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.os-post-focus p {
  max-width: 600px;
  color: #939c91;
}

.os-post-focus .os-primary {
  margin-top: 24px;
}

.os-post-next h2 {
  margin: 22px 0;
  font-size: 17px;
  line-height: 1.5;
}

.os-modal-backdrop {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 5, 0.56);
  backdrop-filter: blur(12px);
}

.os-end-dialog {
  width: min(460px, calc(100% - 40px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #fff;
  background: #131713;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.os-end-dialog > span {
  color: var(--os-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.os-end-dialog h2 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.os-end-dialog p {
  margin: 0;
  color: #929a90;
  font-size: 12px;
  line-height: 1.6;
}

.os-end-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.os-end-dialog button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--os-line-dark);
  border-radius: 11px;
  color: #e1e5de;
  background: transparent;
  font-weight: 700;
}

.os-end-dialog button.danger {
  border-color: var(--os-coral);
  color: #fff;
  background: var(--os-coral);
}

.os-sidebar-notice {
  margin: 8px 0 0;
  padding: 9px;
  border: 1px solid rgba(184, 241, 59, .15);
  border-radius: 9px;
  color: #aeb9aa;
  background: rgba(184, 241, 59, .04);
  font-size: 8px;
  line-height: 1.5;
}
.os-sidebar-notice.warning { color: #e4a899; border-color: rgba(235, 119, 93, .2); background: rgba(235, 119, 93, .05); }
.os-sidebar-notice { position: relative; }
.os-sidebar-notice span { display: block; padding-right: 16px; }
.os-sidebar-notice button { position: absolute; top: 4px; right: 5px; border: 0; color: inherit; background: transparent; }

@media (max-width: 1240px) {
  .stage-os .titlebar {
    grid-template-columns: 180px minmax(440px, 1fr) 100px;
  }

  .os-prep-hero,
  .os-prep-checks {
    width: calc(100% - 56px);
  }

  .os-live-stage {
    grid-template-columns: minmax(420px, 1.2fr) minmax(260px, 0.7fr) minmax(230px, 0.62fr);
    padding-right: 28px;
    padding-left: 28px;
  }

  .os-live-copy h1 {
    font-size: 44px;
  }

  .os-audio-deck {
    padding-right: 28px;
    padding-left: 28px;
  }

  .os-audio-page,
  .os-form-page,
  .os-settings-page,
  .os-postlive-page {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-height: 820px) {
  .os-prep-page {
    grid-template-rows: minmax(350px, 1fr) auto 58px;
  }

  .os-prep-hero {
    padding-top: 28px;
  }

  .os-live-page {
    min-height: 730px;
  }

  .os-live-stage {
    min-height: 410px;
    padding-top: 28px;
  }

  .os-audio-deck {
    min-height: 320px;
    padding-top: 42px;
  }

  .os-deck-grid > article {
    min-height: 176px;
  }
}

/* Screenshot-faithful live console pass */
.os-fluent {
  font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets";
  font-style: normal;
  font-weight: 400;
}

.stage-os .titlebar {
  grid-template-columns: 190px minmax(720px, 1fr) 82px;
  height: 62px;
  min-height: 62px;
  padding-left: 18px;
}

.stage-os .screen {
  height: calc(100vh - 62px);
}

.stage-os .rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 62px;
}

.os-primary-nav {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 62px;
}

.os-live-header-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  color: #9ba39a;
  font-size: 9px;
  white-space: nowrap;
  transform: none;
}

.os-live-header-status > span,
.os-live-header-status > b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  color: #a8afa6;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 650;
}

.os-live-header-status > span.primary {
  color: #e7eadf;
}

.os-live-header-status > span.primary > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-lime);
  box-shadow: 0 0 0 4px rgba(184, 241, 59, 0.1);
}

.os-live-header-status > span.ready .os-fluent {
  color: #74d865;
}

.os-live-header-status > span.listening .os-fluent {
  color: #62d5c1;
}

.os-live-header-status > b {
  color: #c3c8c0;
}

.os-history-button {
  display: none;
}

.os-live-page {
  height: 100%;
  min-height: 780px;
}

.os-live-stage {
  grid-template-columns: minmax(330px, 0.95fr) minmax(320px, 0.9fr) minmax(210px, 0.56fr) minmax(250px, 0.64fr);
  gap: 0;
  height: 44%;
  min-height: 400px;
  padding: 20px 26px 46px;
  background:
    radial-gradient(circle at 47% 45%, rgba(184, 241, 59, 0.14), transparent 25%),
    linear-gradient(112deg, #f8f8f4 0%, #f1f2ed 68%, #eceee8 100%);
}

.os-live-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(100deg, transparent 0 46%, rgba(255, 255, 255, 0.42) 52%, transparent 64%);
  opacity: 0.55;
}

.os-live-copy,
.os-live-coach-hero,
.os-live-timeline,
.os-relation-panel {
  position: relative;
  z-index: 2;
}

.os-live-copy {
  align-self: center;
  max-width: 440px;
  padding: 10px 16px 0 8px;
}

.os-live-copy .os-kicker {
  margin-bottom: 10px;
  color: #697168;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.os-reminder-reason {
  display: grid;
  gap: 4px;
}

.os-field-label,
.os-advice-label {
  color: #7f8a7a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.os-field-label {
  display: block;
  text-transform: none;
}

.os-advice-label {
  margin-top: 16px;
  color: #6f8c16;
}

.os-live-copy h1 {
  max-width: 430px;
  font-size: clamp(34px, 3.1vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.os-speech-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  max-width: 355px;
  margin-top: 26px;
  padding: 17px 20px;
  border: 1px solid rgba(16, 20, 15, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(20, 28, 18, 0.08);
  backdrop-filter: blur(12px);
}

.os-speech-card::after {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 34px;
  height: 22px;
  content: "";
  background: rgba(255, 255, 255, 0.74);
  clip-path: polygon(0 0, 100% 100%, 0 72%);
}

.os-speech-card > i {
  color: var(--os-lime-strong);
  font-size: 19px;
}

.os-speech-card div {
  display: grid;
  gap: 5px;
}

.os-speech-card b {
  font-size: 13px;
  line-height: 1.42;
}

.os-field-label-cue {
  margin-top: 5px;
}

.os-speech-card span {
  color: #6f786e;
  font-size: 10px;
  line-height: 1.45;
}

.os-live-coach-hero {
  align-self: stretch;
  min-width: 0;
  overflow: visible;
}

.os-live-coach-hero img {
  position: absolute;
  top: -42px;
  right: -9%;
  width: 120%;
  height: auto;
  object-fit: contain;
  object-position: 50% 0;
  filter: saturate(0.98) contrast(1.02);
}

.os-live-timeline {
  align-self: stretch;
  padding: 10px 12px 0 5px;
  border-left: 1px solid rgba(16, 20, 15, 0.08);
}

.os-live-timeline .os-flow-head {
  margin: 0 0 12px 8px;
}

.os-live-timeline .os-flow-item {
  grid-template-columns: 36px 9px 1fr;
  gap: 7px;
  min-height: 74px;
}

.os-live-timeline .os-flow-item p {
  display: -webkit-box;
  overflow: hidden;
  color: #6f776d;
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.os-live-timeline .os-flow-item.active p {
  color: #1f281c;
}

.os-live-timeline .os-flow-item.mint > span {
  border-color: var(--os-mint);
  background: var(--os-mint);
}

.os-live-timeline .os-flow-item.violet > span {
  border-color: var(--os-violet);
  background: var(--os-violet);
}

.os-live-timeline .os-flow-item.coral > span {
  border-color: var(--os-coral);
  background: var(--os-coral);
}

.os-relation-panel {
  align-self: center;
  min-height: 350px;
  margin-left: 8px;
  padding: 18px;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 44px rgba(26, 32, 22, 0.08);
  backdrop-filter: blur(18px);
}

.os-relation-level {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--os-violet);
}

.os-relation-level > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(146, 120, 255, 0.12);
}

.os-relation-level b {
  font-size: 12px;
}

.os-relation-panel h3 {
  margin: 17px 0 7px;
  font-size: 11px;
}

.os-relation-panel > p {
  margin: 0;
  color: #697168;
  font-size: 9px;
  line-height: 1.55;
}

.os-tone-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(16, 20, 15, 0.08);
}

.os-tone-block > b {
  color: #5c635a;
  font-size: 9px;
}

.os-tone-track {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin-top: 5px;
}

.os-tone-track span {
  width: 3px;
  border-radius: 999px;
  background: var(--os-violet);
}

.os-tone-track span:nth-child(1),
.os-tone-track span:nth-child(7) { height: 6px; }
.os-tone-track span:nth-child(2),
.os-tone-track span:nth-child(6) { height: 12px; }
.os-tone-track span:nth-child(3),
.os-tone-track span:nth-child(5) { height: 19px; }
.os-tone-track span:nth-child(4) { height: 25px; }

.os-next-actions {
  margin-top: 6px;
  border-top: 1px solid rgba(16, 20, 15, 0.08);
}

.os-next-actions button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  color: #353d33;
  text-align: left;
  background: transparent;
  font-size: 9px;
}

.os-next-actions button + button {
  border-top: 1px solid rgba(16, 20, 15, 0.06);
}

.os-control-island {
  top: calc(44% - 31px);
  gap: 0;
  padding: 5px;
  border-radius: 28px;
}

.os-control-island button {
  display: flex;
  min-width: 140px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.os-control-island .os-control-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
}

.os-control-island button > span {
  display: grid;
  margin: 0;
  text-align: left;
}

.os-control-island button em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-mint);
  box-shadow: 0 0 0 4px rgba(37, 211, 174, 0.1);
}

.os-control-island button.danger {
  min-width: 200px;
  border: 1px solid rgba(255, 93, 86, 0.72);
  background: rgba(77, 21, 19, 0.82);
}

.os-control-island button.danger .os-control-icon {
  border-color: var(--os-coral);
  background: var(--os-coral);
}

.os-control-island button small {
  color: #d6a9a6;
  font-size: 8px;
  font-weight: 500;
}

.os-audio-deck {
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr) 56px;
  gap: 8px;
  height: 56%;
  min-height: 470px;
  padding: 40px 16px 12px;
  background:
    radial-gradient(circle at 27% 2%, rgba(184, 241, 59, 0.065), transparent 24%),
    #070a08;
}

.os-deck-head {
  height: 24px;
  margin-bottom: 0;
}

.os-deck-head > div {
  gap: 8px;
}

.os-deck-head > div > i {
  color: #aab1a8;
}

.os-deck-head span {
  font-size: 11px;
}

.os-deck-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.os-deck-grid > article {
  height: 100%;
  min-height: 320px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #111612, #0c100d);
}

.os-mini-heading {
  min-height: 25px;
  color: #e9ede7;
  letter-spacing: 0;
}

.os-mini-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.os-mini-heading > span .os-fluent {
  color: var(--os-lime);
}

.os-mini-heading > b {
  color: #858e83;
  font-size: 8px;
}

.os-mini-heading > b.online {
  color: var(--os-lime);
}

.os-wave-monitor {
  position: relative;
  height: 104px;
  margin-top: 7px;
  padding: 10px 34px 14px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: #090d0b;
}

.os-voice-console {
  display: grid;
  grid-template-rows: 25px minmax(100px, 1fr) auto minmax(72px, 0.7fr) auto;
  gap: 8px;
}

.os-voice-console .os-wave-monitor,
.os-voice-console .os-preset-row,
.os-voice-console .os-voice-controls,
.os-voice-console .os-device-mini {
  margin-top: 0;
}

.os-voice-console .os-wave-monitor {
  height: auto;
}

.os-voice-console .os-wave-monitor canvas {
  height: 100%;
}

.os-wave-monitor canvas {
  width: 100%;
  height: 70px;
}

.os-wave-labels {
  position: absolute;
  inset: 7px 38px 5px 7px;
  display: flex;
  pointer-events: none;
  justify-content: space-between;
  color: #7b847a;
  font-size: 7px;
}

.os-wave-labels small,
.os-wave-labels time {
  color: #535b53;
  font-size: 6px;
  line-height: 2.2;
}

.os-level-meters {
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.os-level-meters > i {
  width: 4px;
  height: 58%;
  border-radius: 3px;
  background: linear-gradient(to top, #b8f13b 0 70%, #ffdc55 70% 88%, #ff716a 88%);
}

.os-level-meters > i + i {
  height: 72%;
}

.os-level-meters small {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  color: #6d756d;
  font-size: 6px;
}

.os-preset-row {
  gap: 7px;
  margin-top: 9px;
}

.os-preset-row button {
  flex: 1;
  padding: 7px 6px;
  font-size: 8px;
}

.os-voice-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.os-voice-controls .os-range-control,
.os-timbre-control {
  min-height: 72px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.os-voice-controls .os-range-control > span {
  font-size: 8px;
}

.os-timbre-control {
  display: grid;
  gap: 7px;
  color: #969f94;
  font-size: 8px;
}

.os-timbre-control b {
  color: #e7eae4;
  font-size: 8px;
}

.os-timbre-control > div {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--os-mint), var(--os-lime));
}

.os-timbre-control i {
  display: block;
  width: 12px;
  height: 12px;
  margin: -4px 0 0 52%;
  border: 3px solid var(--os-mint);
  border-radius: 50%;
  background: #101510;
}

.os-device-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: #697269;
  font-size: 7px;
}

.os-device-mini b {
  margin-right: 9px;
  color: var(--os-lime);
}

.os-sound-console .os-mini-heading label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9aa299;
  font-size: 8px;
}

.os-sound-console .os-mini-heading label b {
  color: var(--os-mint);
}

.os-sound-console .os-mini-heading input {
  width: 130px;
  accent-color: var(--os-mint);
}

.os-sound-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: calc(100% - 32px);
  margin-top: 7px;
}

.os-sound-grid button {
  position: relative;
  display: block;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border-radius: 14px;
}

.os-sound-grid button:first-child {
  border-color: rgba(37, 211, 174, 0.9);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 174, 0.38), 0 0 20px rgba(37, 211, 174, 0.1);
}

.os-sound-grid button:hover {
  color: #f3f5f0;
  border-color: rgba(37, 211, 174, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.os-sound-grid button.playing {
  color: #11140f;
  border-color: var(--os-lime);
  background: var(--os-lime);
}

.os-pad-head {
  display: grid;
  grid-template-columns: 20px 22px 1fr;
  align-items: center;
  gap: 6px;
}

.os-pad-head small {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #8c958b;
  background: rgba(255, 255, 255, 0.06);
  font-size: 7px;
}

.os-pad-head > i {
  color: #ffd764;
  font-size: 15px;
}

.os-pad-head b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-sound-grid canvas {
  width: 100%;
  height: clamp(42px, 7vh, 76px);
  margin-top: 7px;
}

.os-sound-grid button > em {
  color: #647066;
  font-size: 7px;
  font-style: normal;
}

.os-sound-grid button:hover .os-pad-head small,
.os-sound-grid button.playing .os-pad-head small,
.os-sound-grid button:hover em,
.os-sound-grid button.playing em {
  color: #526016;
}

.os-audio-route {
  display: grid;
  grid-template-columns: auto 20px auto 20px auto 1fr auto;
  gap: 12px;
  min-height: 56px;
  align-items: center;
  margin-top: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  color: #798278;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-route > span {
  display: grid;
  grid-template-columns: 26px auto;
  align-items: center;
  column-gap: 8px;
}

.os-audio-route > span > i {
  grid-row: 1 / 3;
  color: #ecf0e9;
  font-size: 20px;
}

.os-audio-route > span b {
  color: #dfe4dd;
  font-size: 9px;
}

.os-audio-route > span small {
  color: #6f786f;
  font-size: 7px;
}

.os-audio-route strong {
  justify-self: center;
  color: #798278;
}

.os-audio-route strong.ready {
  color: #c4dc73;
}

.os-audio-route strong i {
  margin-right: 7px;
}

.os-audio-route button {
  border: 0;
  color: #aeb6ac;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
}

@media (max-width: 1360px) {
  .stage-os .titlebar {
    grid-template-columns: 166px minmax(720px, 1fr) 76px;
  }

  .os-live-header-status > span:nth-of-type(2),
  .os-live-header-status > span:nth-of-type(3) {
    display: none;
  }

  .os-live-header-status {
    transform: none;
  }

  .os-live-stage {
    grid-template-columns: minmax(300px, 0.9fr) minmax(290px, 0.82fr) minmax(190px, 0.52fr) minmax(230px, 0.62fr);
  }
}

@media (max-height: 900px) {
  .os-live-page {
    min-height: 730px;
  }

  .os-live-stage {
    height: 43%;
    min-height: 345px;
    padding-top: 10px;
    padding-bottom: 38px;
  }

  .os-live-copy h1 {
    font-size: 38px;
  }

  .os-speech-card {
    margin-top: 16px;
    padding: 12px 15px;
  }

  .os-relation-panel {
    min-height: 310px;
    padding: 14px;
  }

  .os-live-timeline .os-flow-item {
    min-height: 62px;
  }

  .os-control-island {
    top: calc(43% - 28px);
  }

  .os-audio-deck {
    height: 57%;
    min-height: 385px;
    padding-top: 34px;
  }

  .os-deck-grid > article {
    min-height: 264px;
  }

  .os-wave-monitor {
    height: 82px;
  }

  .os-wave-monitor canvas {
    height: 50px;
  }

  .os-sound-grid button {
    min-height: 98px;
  }

  .os-sound-grid canvas {
    height: 32px;
  }

  .os-voice-controls .os-range-control,
  .os-timbre-control {
    min-height: 60px;
  }

  .os-audio-route {
    min-height: 48px;
  }
}

/* Screenshot-faithful full audio workspace */
.os-audio-page {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 58px;
  gap: 10px;
  height: 100%;
  min-height: 820px;
  padding: 10px 18px 12px;
  background:
    radial-gradient(circle at 58% 8%, rgba(37, 211, 174, 0.05), transparent 28%),
    #090c0a;
}

.os-audio-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.os-audio-page-top > button,
.os-audio-page-top .os-audio-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.os-audio-page-top > button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #b8c0b6;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
}

.os-audio-live-status > span,
.os-audio-live-status > b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  color: #8f988e;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-live-status > span > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-lime);
}

.os-audio-live-status > b.ready {
  color: #b8e6dc;
}

.os-audio-live-status > b.optional,
.os-audio-page-route strong.optional {
  color: #aab3a8;
}

.os-audio-dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.12fr 0.78fr;
  grid-template-rows: 0.43fr 0.57fr;
  gap: 10px;
  min-height: 0;
}

.os-audio-dashboard > section {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--os-line-dark);
  border-radius: 17px;
  background: linear-gradient(145deg, #111612, #0c100d);
}

.os-audio-signal-panel {
  grid-column: 1 / 3;
  grid-row: 1;
  padding: 13px 16px;
}

.os-signal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: #e6eae3;
  font-size: 10px;
  font-weight: 760;
}

.os-signal-title span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-signal-title span > i {
  color: var(--os-lime);
}

.os-signal-title span > b {
  color: var(--os-lime);
  font-weight: 400;
}

.os-signal-title em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7f897d;
  background: rgba(184, 241, 59, 0.07);
  font-size: 8px;
  font-style: normal;
}

.os-signal-flow {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  max-width: 620px;
  margin: 8px auto 4px;
}

.os-signal-flow > i {
  justify-self: center;
  color: var(--os-lime);
}

.os-signal-node {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto auto;
  gap: 1px 7px;
}

.os-signal-node > small {
  grid-column: 1 / -1;
  color: #7a8378;
  font-size: 7px;
}

.os-signal-node > i {
  display: grid;
  grid-row: 2 / 4;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #dfe4dc;
  background: rgba(255, 255, 255, 0.025);
  font-size: 17px;
}

.os-signal-node > b {
  align-self: end;
  color: #d8ddd5;
  font-size: 8px;
}

.os-signal-node > span {
  color: var(--os-lime);
  font-size: 7px;
}

.os-signal-wave {
  position: relative;
  height: calc(100% - 104px);
  min-height: 105px;
  margin-top: 5px;
  padding: 8px 38px 8px 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 11px;
  background: #090d0b;
}

.os-signal-wave canvas {
  width: 100%;
  height: 100%;
}

.os-wave-scale {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #556057;
  font-size: 6px;
}

.os-current-scene {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 44%;
  color: #172015;
  background: linear-gradient(145deg, #f5f7df, #edf2df) !important;
}

.os-current-scene > .os-current-scene-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 18px 0 54px 18px;
}

.os-current-scene > .os-current-scene-copy > small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #677264;
  font-size: 8px;
  font-weight: 720;
}

.os-current-scene h2 {
  margin: 13px 0 8px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.os-current-scene > .os-current-scene-copy > button {
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #4d5d20;
  background: rgba(184, 241, 59, 0.38);
  font-size: 8px;
}

.os-current-scene > .os-current-scene-copy > b {
  display: block;
  margin-top: 17px;
  color: #596356;
  font-size: 8px;
}

.os-current-scene > .os-current-scene-copy > b span {
  margin-left: 20px;
  color: #1a2118;
}

.os-segment-level {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.os-segment-level i {
  width: 15px;
  height: 6px;
  border-radius: 999px;
  background: var(--os-lime);
}

.os-segment-level i:last-child {
  background: rgba(16, 20, 15, 0.15);
}

.os-current-scene > img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 23%;
}

.os-current-scene > label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.os-current-scene > label span {
  display: grid;
  gap: 2px;
}

.os-current-scene > label b {
  font-size: 8px;
}

.os-current-scene > label small {
  color: #737c71;
  font-size: 7px;
}

.os-current-scene > label input {
  width: 34px;
  height: 20px;
  appearance: none;
  border-radius: 999px;
  background: #cfd4ca;
  accent-color: var(--os-mint);
}

.os-current-scene > label input::after {
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  content: "";
  background: #fff;
  transition: 140ms ease;
}

.os-current-scene > label input:checked {
  background: var(--os-mint);
}

.os-current-scene > label input:checked::after {
  transform: translateX(14px);
}

.os-audio-voltune-panel,
.os-audio-soundstage-panel,
.os-audio-device-panel {
  padding: 13px;
}

.os-audio-voltune-panel {
  grid-column: 1;
  grid-row: 2;
}

.os-audio-soundstage-panel {
  grid-column: 2;
  grid-row: 2;
}

.os-audio-device-panel {
  grid-column: 3;
  grid-row: 2;
}

.os-audio-panel-title {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  color: #e5e9e2;
  font-size: 10px;
  font-weight: 760;
}

.os-audio-panel-title span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-audio-panel-title span > i {
  color: var(--os-lime);
}

.os-audio-panel-title span > em,
.os-audio-panel-title > em {
  color: #7e887d;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.os-audio-panel-title button {
  border: 0;
  color: #7f887e;
  background: transparent;
  font-size: 7px;
}

.os-audio-preset-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 7px;
}

.os-audio-preset-matrix button {
  display: grid;
  min-height: 66px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--os-line-dark);
  border-radius: 11px;
  color: #aab2a8;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-preset-matrix button > i {
  color: #b6e8df;
  font-size: 18px;
}

.os-audio-preset-matrix button.selected {
  color: #fff;
  border-color: var(--os-mint);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 174, 0.18);
}

.os-audio-voltune-panel .os-range-control {
  gap: 5px;
  margin-top: 12px;
}

.os-audio-voltune-panel .os-range-control > span {
  font-size: 8px;
}

.os-audio-shaping {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.os-audio-shaping > div {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #838c81;
  font-size: 7px;
}

.os-audio-shaping b {
  color: #cad0c8;
  font-size: 7px;
}

.os-audio-shaping i {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--os-mint), var(--os-lime));
}

.os-audio-panel-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.os-audio-panel-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #9da69b;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.os-audio-search {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  min-height: 34px;
  align-items: center;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid var(--os-line-dark);
  border-radius: 10px;
  color: #788177;
  font-size: 7px;
}

.os-audio-search label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.os-audio-pad-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: calc(100% - 104px);
  margin-top: 7px;
}

.os-audio-pad-matrix button {
  position: relative;
  display: grid;
  grid-template-columns: 16px 20px 1fr;
  grid-template-rows: 20px 1fr;
  align-items: center;
  gap: 2px 4px;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  border: 1px solid var(--os-line-dark);
  border-radius: 10px;
  color: #e2e6df;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.os-audio-pad-matrix button:first-child {
  border-color: var(--os-mint);
}

.os-audio-pad-matrix button:hover {
  border-color: rgba(37, 211, 174, 0.65);
  background: rgba(37, 211, 174, 0.06);
}

.os-audio-pad-matrix button small {
  color: #7a8379;
  font-size: 7px;
}

.os-audio-pad-matrix button > i {
  color: #ffd866;
  font-size: 14px;
}

.os-audio-pad-matrix button b {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-audio-pad-matrix canvas {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 25px;
}

.os-audio-soundstage-panel > .os-range-control {
  gap: 4px;
  margin-top: 7px;
}

.os-audio-soundstage-panel > .os-range-control > span {
  font-size: 8px;
}

.os-audio-device-panel {
  display: grid;
  grid-template-rows: 24px auto auto auto minmax(54px, 1fr);
  gap: 5px;
  padding: 10px;
  overflow: hidden !important;
}

.os-assistant-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.os-assistant-mode > button {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 37px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  color: #8b948a;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.os-assistant-mode > button > i {
  color: #6f786e;
  font-size: 13px;
}

.os-assistant-mode > button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.os-assistant-mode > button b {
  color: #cbd1c9;
  font-size: 9px;
}

.os-assistant-mode > button small {
  overflow: hidden;
  color: #6f786e;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-assistant-mode > button.selected {
  border-color: rgba(184, 241, 59, 0.7);
  color: #e9f2d8;
  background: rgba(184, 241, 59, 0.075);
  box-shadow: inset 0 0 0 1px rgba(184, 241, 59, 0.08);
}

.os-assistant-mode > button.selected > i {
  color: var(--os-lime);
}

.os-audio-setup-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 6px;
}

.os-audio-setup-actions > button {
  min-height: 30px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #aeb6ac;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-setup-actions > button.primary {
  border-color: rgba(184, 241, 59, 0.42);
  color: #172006;
  background: var(--os-lime);
  font-weight: 800;
}

.os-device-list {
  display: grid;
  gap: 4px;
}

.os-device-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  min-height: 34px;
}

.os-device-row > i {
  color: #edf1ea;
  font-size: 16px;
}

.os-device-row > span {
  display: grid;
  gap: 2px;
}

.os-device-row b {
  color: #d8ddd6;
  font-size: 8px;
}

.os-device-row small {
  color: #707970;
  font-size: 7px;
}

.os-device-row em {
  color: #7c857b;
  font-size: 7px;
  font-style: normal;
}

.os-device-row em.online {
  color: var(--os-mint);
}

.os-device-row em.warning {
  color: #e5aa66;
}

.os-voiceprint-status {
  position: relative;
  min-height: 48px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
}

.os-voiceprint-status span {
  color: #dfe3dd;
  font-size: 8px;
  font-weight: 720;
}

.os-voiceprint-status span b {
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #7fe0cd;
  background: rgba(37, 211, 174, 0.09);
  font-size: 7px;
}

.os-voiceprint-status:not(.configured) span b {
  color: #e5aa66;
  background: rgba(229, 170, 102, 0.1);
}

.os-voiceprint-status p {
  margin: 4px 0 0;
  color: #707970;
  font-size: 7px;
}

.os-voiceprint-status > i {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: var(--os-mint);
  font-size: 22px;
}

.os-audio-device-panel > button {
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #a3aca1;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-page-route {
  display: grid;
  grid-template-columns: auto 20px auto 20px auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--os-line-dark);
  border-radius: 14px;
  color: #768076;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.os-audio-page-route > span {
  display: grid;
  grid-template-columns: 27px auto;
  column-gap: 7px;
  align-items: center;
}

.os-audio-page-route > span > i {
  grid-row: 1 / 3;
  color: #edf0eb;
  font-size: 19px;
}

.os-audio-page-route > span b {
  color: #d8ddd5;
  font-size: 8px;
}

.os-audio-page-route > span small {
  font-size: 7px;
}

.os-audio-page-route strong {
  justify-self: center;
}

.os-audio-page-route strong.ready {
  color: #bee569;
}

.os-audio-page button:disabled,
.os-audio-deck button:disabled,
.os-audio-page input:disabled,
.os-audio-deck input:disabled,
.os-range-control.disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.42;
}

.os-audio-page-route button {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #b5bdb3;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

@media (max-height: 900px) {
  .os-audio-page {
    min-height: 730px;
  }

  .os-audio-dashboard {
    grid-template-rows: 0.41fr 0.59fr;
  }

  .os-signal-flow {
    margin-top: 3px;
  }

  .os-signal-wave {
    height: calc(100% - 91px);
    min-height: 75px;
  }

  .os-audio-preset-matrix button {
    min-height: 50px;
  }

  .os-audio-shaping {
    margin-top: 7px;
  }
}

/* Compact live workspace: reduce oversized stage whitespace without shrinking readable text. */
@media (min-width: 1400px) and (min-height: 850px) {
  .os-live-page {
    min-height: 650px;
  }

  .os-live-stage {
    height: 37%;
    min-height: 315px;
    padding: 13px 24px 38px;
  }

  .os-live-copy {
    max-width: 400px;
    padding-top: 2px;
  }

  .os-live-copy h1 {
    max-width: 390px;
    font-size: clamp(32px, 2.65vw, 46px);
  }

  .os-speech-card {
    max-width: 340px;
    margin-top: 18px;
    padding: 14px 17px;
  }

  .os-live-coach-hero img {
    top: -24px;
    right: -1%;
    width: 103%;
  }

  .os-live-timeline {
    padding-top: 4px;
  }

  .os-live-timeline .os-flow-item {
    min-height: 58px;
  }

  .os-relation-panel {
    min-height: 285px;
    padding: 15px 17px;
  }

  .os-relation-panel h3 {
    margin-top: 12px;
  }

  .os-tone-block {
    margin-top: 10px;
    padding-top: 9px;
  }

  .os-next-actions button {
    padding: 7px 0;
  }

  .os-control-island {
    top: calc(37% - 27px);
  }

  .os-control-island button {
    min-width: 132px;
    height: 46px;
  }

  .os-control-island button.danger {
    min-width: 186px;
  }

  .os-audio-deck {
    grid-template-rows: 22px minmax(0, 1fr) 50px;
    height: 63%;
    min-height: 370px;
    padding-top: 34px;
  }

  .os-deck-grid > article {
    min-height: 250px;
    padding: 12px;
  }

  .os-wave-monitor {
    height: 84px;
  }

  .os-voice-console {
    grid-template-rows: 23px minmax(82px, 1fr) auto minmax(58px, 0.62fr) auto;
    gap: 6px;
  }

  .os-voice-controls .os-range-control,
  .os-timbre-control {
    min-height: 58px;
    padding: 8px;
  }

  .os-sound-grid canvas {
    height: clamp(32px, 5vh, 58px);
  }

  .os-audio-route {
    min-height: 50px;
  }
}

/* Unified polish for prep, profile, settings, processing and post-live. */
.stage-os button:focus-visible,
.stage-os input:focus-visible {
  outline: 2px solid var(--os-lime-strong);
  outline-offset: 3px;
}

.os-coach-portrait-prep {
  background:
    radial-gradient(circle at 50% 34%, rgba(184, 241, 59, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.66);
}

.os-coach-portrait-prep > img {
  object-fit: contain;
  object-position: 50% 8%;
  transform: scale(1.03);
}

.os-check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.os-check-top > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #667063;
  background: rgba(16, 20, 15, 0.055);
  font-size: 15px;
}

.os-check-card.ready .os-check-top > i {
  color: #60790b;
  background: rgba(184, 241, 59, 0.22);
}

.os-check-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.os-check-card:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 223, 31, 0.42);
  box-shadow: 0 16px 34px rgba(20, 30, 16, 0.07);
}

.os-check-card > button {
  top: auto;
  right: 17px;
  bottom: 17px;
}

.os-profile-summary em {
  max-width: 220px;
  margin-top: 4px;
  color: #788176;
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
}

.os-profile-options {
  padding-top: 19px;
  padding-bottom: 19px;
}

.os-profile-options .option-field {
  display: block;
}

.os-profile-options .option-field + .option-field {
  margin-top: 15px;
}

.os-profile-options .option-head {
  margin-bottom: 7px;
}

.os-profile-options .field-tip {
  min-height: 14px;
  margin: 5px 0 0;
}

.os-profile-options .choice-chip {
  min-height: 31px;
  padding: 0 13px;
  border-color: rgba(16, 20, 15, 0.12);
  color: #4d574c;
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.os-profile-options .choice-chip.selected {
  color: #0f1710;
  border-color: var(--os-mint);
  background: rgba(37, 211, 174, 0.17);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 174, 0.12);
}

.os-status-card {
  color: #edf1ea;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 241, 59, 0.12), transparent 25%),
    #101410;
}

.os-status-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.os-status-card-head span {
  color: #7f887d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-status-card-head h2 {
  margin: 5px 0 10px;
}

.os-status-card-head > b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #c8f76a;
  background: rgba(184, 241, 59, 0.09);
  font-size: 9px;
}

.os-status-card .os-setting-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 9px;
  padding: 11px 0;
  border-color: rgba(255, 255, 255, 0.07);
}

.os-status-card .os-setting-row > i {
  color: #dfe5dc;
  font-size: 16px;
}

.os-status-card .os-setting-row b {
  color: #edf1ea;
}

.os-status-card .os-setting-row small {
  color: #768075;
}

.os-status-card .os-setting-row em {
  color: #7b8479;
  font-size: 8px;
  font-style: normal;
}

.os-status-card .os-setting-row em.online {
  color: var(--os-mint);
}

.os-status-card .os-setting-row button {
  color: #cfd5cc;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.os-privacy-card {
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 24px;
}

.os-privacy-card > div {
  display: grid;
  gap: 4px;
}

.os-privacy-card > div span {
  color: var(--os-lime);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.os-privacy-card ul {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-privacy-card li {
  padding: 6px 8px;
  border-radius: 999px;
  color: #a7b0a4;
  background: rgba(255, 255, 255, 0.05);
  font-size: 8px;
  white-space: nowrap;
}

.os-processing-page {
  display: grid;
  grid-template-rows: auto auto 4px auto;
  gap: 15px;
  min-height: 100%;
  height: 100%;
  align-content: center;
  padding: 32px max(36px, calc((100% - 980px) / 2));
  overflow: hidden;
}

.os-processing-orbit {
  width: 142px;
  height: 142px;
  margin: 0 auto;
  padding: 7px;
}

.os-processing-copy {
  text-align: center;
}

.os-processing-copy .os-kicker {
  margin-bottom: 10px;
}

.os-processing-page h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.os-processing-page > .os-processing-copy > p {
  margin: 13px 0 0;
  color: #737c71;
  font-size: 11px;
}

.os-processing-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  width: min(680px, 80%);
  margin: 0 auto;
}

.os-processing-track i {
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 20, 15, 0.08);
}

.os-processing-track i:first-child,
.os-processing-track i:nth-child(2) {
  background: var(--os-lime);
}

.os-processing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: min(760px, 88%);
  margin: 0 auto;
}

.os-processing-steps span {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 2px 8px;
  padding: 12px;
  border: 1px solid rgba(16, 20, 15, 0.07);
  border-radius: 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
}

.os-processing-steps span b {
  grid-row: 1 / 3;
  align-self: center;
  color: #9aa198;
  font-size: 9px;
}

.os-processing-steps span em {
  color: #30382f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.os-processing-steps span small {
  color: #7c857a;
  font-size: 8px;
}

.os-processing-steps span.done,
.os-processing-steps span.active {
  color: inherit;
  background: rgba(246, 251, 232, 0.78);
}

.os-processing-steps span.active {
  border-color: rgba(165, 223, 31, 0.72);
  box-shadow: 0 12px 30px rgba(165, 223, 31, 0.11);
}

.os-postlive-head {
  margin-bottom: 20px;
}

.os-postlive-head > div:first-child > p {
  max-width: 610px;
  margin: 13px 0 0;
  color: #727b70;
  font-size: 11px;
  line-height: 1.55;
}

.os-session-score {
  position: relative;
  padding-right: 58px;
}

.os-session-score > i {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--os-lime);
  font-size: 24px;
}

.os-post-stats > div {
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  gap: 0 6px;
}

.os-post-stats > div > i {
  grid-row: 1 / 3;
  align-self: center;
  color: #7f991c;
  font-size: 16px;
}

.os-post-focus {
  padding: 28px;
}

.os-post-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-post-focus-head > span {
  color: var(--os-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-post-focus-head > b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #9ea89c;
  background: rgba(255, 255, 255, 0.05);
  font-size: 8px;
}

.os-post-focus h2 {
  margin: 22px 0 14px;
}

.os-post-flow {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 7px;
  margin: 18px 0;
}

.os-post-flow > i {
  color: #5f695d;
  font-size: 12px;
}

.os-post-flow > div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.os-post-flow b {
  color: var(--os-lime);
  font-size: 8px;
}

.os-post-flow span {
  color: #edf1eb;
  font-size: 11px;
  font-weight: 760;
}

.os-post-flow small {
  color: #778076;
  font-size: 8px;
}

.os-post-next button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-height: 820px) {
  .os-form-page,
  .os-settings-page,
  .os-postlive-page {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .os-form-heading {
    margin-bottom: 22px;
  }

  .os-form-section,
  .os-profile-summary,
  .os-settings-card,
  .os-privacy-card {
    padding: 19px;
  }

  .os-profile-options .option-field + .option-field {
    margin-top: 12px;
  }

  .os-postlive-head h1 {
    font-size: 42px;
  }

  .os-post-card {
    padding: 20px;
  }

  .os-post-focus {
    padding: 24px;
  }

  .os-post-focus h2 {
    font-size: 25px;
  }
}

/* Readability pass: lift micro-copy without increasing the overall workspace scale. */
.os-live-header-status {
  font-size: 10px;
}

.os-live-timeline .os-flow-head,
.os-live-timeline .os-flow-item time {
  font-size: 10px;
}

.os-live-timeline .os-flow-item p {
  font-size: 10px;
  line-height: 1.5;
}

.os-relation-level b {
  font-size: 13px;
}

.os-relation-panel h3 {
  font-size: 12px;
}

.os-relation-panel > p,
.os-tone-block > b,
.os-next-actions button {
  font-size: 10px;
}

.os-speech-card span {
  font-size: 11px;
}

.os-deck-head span {
  font-size: 12px;
}

.os-mini-heading > span {
  font-size: 12px;
}

.os-mini-heading > b,
.os-sound-console .os-mini-heading label,
.os-voice-controls .os-range-control > span,
.os-timbre-control,
.os-timbre-control b {
  font-size: 9px;
}

.os-wave-labels {
  font-size: 8px;
}

.os-wave-labels small,
.os-wave-labels time,
.os-level-meters small {
  font-size: 7px;
}

.os-preset-row button {
  font-size: 9px;
}

.os-device-mini {
  font-size: 8px;
}

.os-pad-head small,
.os-sound-grid button > em {
  font-size: 8px;
}

.os-pad-head b {
  font-size: 10px;
}

.os-audio-route {
  font-size: 9px;
}

.os-audio-route > span b {
  font-size: 10px;
}

.os-audio-route > span small {
  font-size: 8px;
}

.os-audio-page-top > button {
  font-size: 10px;
}

.os-audio-live-status > span,
.os-audio-live-status > b {
  font-size: 9px;
}

.os-signal-title,
.os-audio-panel-title {
  font-size: 11px;
}

.os-signal-title em {
  font-size: 9px;
}

.os-signal-node > small,
.os-signal-node > span {
  font-size: 8px;
}

.os-signal-node > b {
  font-size: 9px;
}

.os-wave-scale {
  font-size: 7px;
}

.os-current-scene > .os-current-scene-copy > small,
.os-current-scene > .os-current-scene-copy > b,
.os-current-scene > .os-current-scene-copy > button {
  font-size: 9px;
}

.os-current-scene > label b {
  font-size: 9px;
}

.os-current-scene > label small {
  font-size: 8px;
}

.os-audio-panel-title button,
.os-audio-panel-actions button,
.os-audio-search {
  font-size: 8px;
}

.os-audio-preset-matrix button {
  font-size: 9px;
}

.os-audio-voltune-panel .os-range-control > span,
.os-audio-soundstage-panel > .os-range-control > span {
  font-size: 9px;
}

.os-audio-shaping > div,
.os-audio-shaping b {
  font-size: 8px;
}

.os-audio-pad-matrix button small {
  font-size: 8px;
}

.os-audio-pad-matrix button b {
  font-size: 9px;
}

.os-device-row b {
  font-size: 9px;
}

.os-device-row small,
.os-device-row em {
  font-size: 8px;
}

.os-voiceprint-status span {
  font-size: 9px;
}

.os-voiceprint-status span b,
.os-voiceprint-status p {
  font-size: 8px;
}

.os-audio-device-panel > button,
.os-audio-page-route,
.os-audio-page-route > span b {
  font-size: 9px;
}

.os-audio-page-route > span small {
  font-size: 8px;
}

.os-form-page .field-tip,
.os-settings-page .field-tip {
  font-size: 10.5px;
}

.os-setting-row small,
.os-privacy-card p,
.os-post-stats p,
.os-post-focus p {
  font-size: 11px;
}

/* Integrated live controls and in-app audio workspace, 2026-07-28. */
.stage-os .titlebar {
  grid-template-columns: 170px minmax(0, 1fr) 112px;
}

.stage-os .rail {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.os-user {
  min-width: 238px;
  justify-content: flex-end;
  gap: 10px;
}

.os-profile-entry {
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border: 1px solid rgba(184, 241, 59, 0.22);
  border-radius: 12px;
  color: #f2f5ec;
  text-align: right;
  background: rgba(184, 241, 59, 0.055);
}

.os-profile-entry:hover {
  border-color: rgba(184, 241, 59, 0.52);
  background: rgba(184, 241, 59, 0.1);
}

.os-profile-entry span {
  font-size: 11px;
  font-weight: 760;
}

.os-profile-entry small {
  color: #929c8f;
  font-size: 8px;
}

.os-control-island {
  top: calc(44% - 34px);
  width: max-content;
  max-width: calc(100% - 28px);
  min-height: 68px;
  gap: 4px;
  padding: 5px;
  border-radius: 32px;
}

.os-control-island > button,
.os-control-island > label {
  flex: 0 0 auto;
}

.os-control-island > .os-capture-control {
  display: grid;
  grid-template-columns: 32px minmax(130px, 1fr) auto;
  width: 238px;
  min-width: 238px;
  height: 58px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 25px;
  color: #edf1e9;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.os-control-island > .os-capture-control:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.os-control-island > .os-capture-control.ready {
  border-color: rgba(37, 211, 174, 0.34);
  background: rgba(37, 211, 174, 0.07);
}

.os-control-island > .os-capture-control.warning {
  border-color: rgba(255, 194, 73, 0.38);
}

.os-control-island > .os-capture-control.error {
  border-color: rgba(255, 92, 92, 0.62);
  background: rgba(255, 70, 70, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 70, 70, 0.05);
}

.os-control-island .os-capture-control.error > span small,
.os-control-island .os-capture-control.error > em {
  color: #ff9b9b;
}

.os-control-island button.os-capture-control.error > em > i {
  background: #ff5c5c;
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.14);
}

.os-control-island .os-capture-control > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
  text-align: left;
}

.os-control-island .os-capture-control > span b {
  color: #fff;
  font-size: 11px;
}

.os-control-island .os-capture-control > span small {
  overflow: hidden;
  color: #98a297;
  font-size: 8px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-control-island .os-capture-control.ready > span small {
  color: #73d9c5;
}

.os-control-island button.os-capture-control > em {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  color: #c9d0c6;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.os-control-island button.os-capture-control > em > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #747d73;
}

.os-control-island button.os-capture-control.ready > em > i {
  background: var(--os-mint);
  box-shadow: 0 0 0 3px rgba(37, 211, 174, 0.12);
}

.os-media-toggle {
  user-select: none;
}

.os-media-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.os-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #343b34;
  transition: 160ms ease;
}

.os-toggle-track > b {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f3f5ef;
  transition: 160ms ease;
}

.os-media-toggle > input:checked + .os-toggle-track {
  background: var(--os-mint);
}

.os-media-toggle > input:checked + .os-toggle-track > b {
  transform: translateX(16px);
}

.os-control-island > button.os-compact-control {
  min-width: 92px;
  width: 92px;
  height: 58px;
  gap: 7px;
  padding: 0 10px;
  border-radius: 25px;
}

.os-control-island > button.os-compact-control > span {
  font-size: 10px;
  white-space: nowrap;
}

.os-control-island > button.os-overlay-toggle {
  position: relative;
  min-width: 112px;
  width: 112px;
  padding-right: 18px;
}

.os-control-island > button.os-overlay-toggle > span {
  gap: 1px;
}

.os-control-island > button.os-overlay-toggle small {
  color: #8c968a;
  font-size: 7px;
}

.os-control-island > button.os-overlay-toggle em {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: #596159;
  box-shadow: none;
}

.os-control-island > button.os-overlay-toggle.active {
  border-color: rgba(37, 211, 174, 0.38);
  background: rgba(37, 211, 174, 0.08);
}

.os-control-island > button.os-overlay-toggle.active small {
  color: #73d9c5;
}

.os-control-island > button.os-overlay-toggle.active em {
  background: var(--os-mint);
  box-shadow: 0 0 0 4px rgba(37, 211, 174, 0.1);
}

.os-control-island > button.start-live,
.os-control-island > button.danger {
  min-width: 208px;
  height: 58px;
  border-radius: 25px;
}

.os-control-island > button.start-live {
  color: #12170f;
  background: var(--os-lime);
}

.os-control-island > button.start-live:hover {
  background: #c6f755;
}

.os-control-island > button.start-live .os-control-icon {
  color: #17200f;
  border-color: rgba(23, 32, 15, 0.28);
}

.os-control-island > button.start-live span,
.os-control-island > button.start-live small {
  color: #17200f;
}

.os-control-island > button.danger small {
  color: #d6a9a6;
}

.os-range-control input,
.os-inline-range input {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.os-range-control input::-webkit-slider-runnable-track,
.os-inline-range input::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--os-lime) 0 var(--value), #30362f var(--value));
}

.os-range-control input::-webkit-slider-thumb,
.os-inline-range input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  appearance: none;
  border: 4px solid var(--os-lime);
  border-radius: 50%;
  background: #11150f;
  box-shadow: 0 0 0 4px rgba(184, 241, 59, 0.1);
}

.os-range-control input:focus-visible,
.os-inline-range input:focus-visible {
  outline: 2px solid rgba(184, 241, 59, 0.75);
  outline-offset: 2px;
}

.os-current-scene > .os-integrated-audio-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.os-integrated-audio-badge > span {
  display: grid;
  gap: 2px;
}

.os-integrated-audio-badge b {
  font-size: 9px;
}

.os-integrated-audio-badge small {
  color: #737c71;
  font-size: 8px;
}

.os-integrated-audio-badge > i {
  color: #1faf91;
}

.os-audio-panel-title > b {
  color: #7f887e;
  font-size: 8px;
  font-weight: 620;
}

.os-audio-panel-actions {
  align-items: center;
}

.os-audio-panel-actions > span {
  color: #707970;
  font-size: 8px;
}

/* Full native audio controls: the assistants stay hidden while their complete
   day-to-day settings are managed inside the LiveCoach audio page. */
.stage-os .os-audio-page {
  display: block;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(184, 241, 59, 0.35) transparent;
}

.stage-os .os-audio-page-top {
  min-height: 38px;
  margin-bottom: 10px;
}

.stage-os .os-audio-dashboard {
  grid-template-columns: minmax(270px, .92fr) minmax(360px, 1.32fr) minmax(230px, .78fr);
  grid-template-rows: 230px auto;
  align-items: stretch;
  min-height: 0;
}

.stage-os .os-audio-dashboard > section {
  overflow: hidden;
}

.stage-os .os-audio-page-route {
  min-height: 58px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.os-audio-device-routing,
.os-audio-mixer-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.os-audio-device-routing > i {
  align-self: center;
  justify-self: center;
  color: var(--os-lime);
}

.os-audio-device-routing label,
.os-audio-mixer-settings > label:not(.os-switch),
.os-pad-editor-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #929b90;
  font-size: 8px;
}

.os-audio-device-routing select,
.os-audio-mixer-settings select,
.os-pad-editor input,
.os-pad-editor select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  outline: none;
  color: #dfe5dc;
  background: #111713;
  font: inherit;
}

.os-audio-device-routing select:focus,
.os-audio-mixer-settings select:focus,
.os-pad-editor input:focus,
.os-pad-editor select:focus {
  border-color: rgba(37, 211, 174, .72);
}

.os-audio-engine-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.os-audio-engine-state span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #859084;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
}

.os-audio-panel-actions {
  flex-wrap: wrap;
}

.os-audio-panel-actions button.primary,
.os-pad-editor-actions button.primary {
  border-color: var(--os-lime);
  color: #152006;
  background: var(--os-lime);
  font-weight: 800;
}

.os-audio-panel-actions button.danger,
.os-pad-editor-actions button.danger {
  border-color: rgba(255, 91, 87, .38);
  color: #ff8e8b;
  background: rgba(255, 91, 87, .08);
}

.stage-os .os-audio-search {
  grid-template-columns: 18px minmax(120px, 1fr) auto auto auto;
  gap: 7px;
  padding: 5px 7px 5px 10px;
}

.os-audio-search > input {
  min-width: 0;
  height: 27px;
  border: 0;
  outline: 0;
  color: #dce2da;
  background: transparent;
  font-size: 8px;
}

.os-audio-search > button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 8px;
  color: #aeb7ac;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
}

.stage-os .os-audio-full-pads {
  grid-template-rows: none;
  height: auto;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 3px;
}

.stage-os .os-audio-full-pads .os-full-pad {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  border: 1px solid var(--os-line-dark);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
}

.stage-os .os-audio-full-pads .os-full-pad.playing {
  border-color: var(--os-mint);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 174, .16);
}

.stage-os .os-audio-full-pads .os-pad-play {
  display: grid;
  grid-template-columns: 16px 18px minmax(0, 1fr);
  grid-template-rows: 20px 42px 15px;
  gap: 2px 4px;
  min-height: 0;
  padding: 7px 7px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stage-os .os-audio-full-pads .os-pad-play canvas {
  grid-column: 1 / -1;
  width: 100%;
  height: 42px;
}

.stage-os .os-audio-full-pads .os-pad-play > span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #707a70;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-full-pad > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 3px 6px 6px;
}

.os-full-pad > div em {
  margin-right: auto;
  color: #94a08f;
  font-size: 7px;
  font-style: normal;
}

.stage-os .os-audio-full-pads .os-full-pad > div button {
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 7px;
  color: #aab3a7;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
}

.os-audio-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 110px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #758074;
  font-size: 8px;
}

.os-audio-mixer-settings {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .78fr);
  align-items: stretch;
  margin-top: 10px;
}

.os-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 9px;
  color: #aab3a8;
}

.os-switch > input {
  position: absolute;
  opacity: 0;
}

.os-switch > i {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #394239;
}

.os-switch > i::after {
  display: block;
  width: 13px;
  height: 13px;
  margin: 2px;
  border-radius: 50%;
  content: "";
  background: #d5dbd2;
  transition: 140ms ease;
}

.os-switch > input:checked + i {
  background: var(--os-mint);
}

.os-switch > input:checked + i::after {
  transform: translateX(13px);
  background: #07100b;
}

.os-switch > span {
  display: grid;
  gap: 2px;
  font-size: 8px;
}

.os-switch small {
  color: #6f796e;
  font-size: 7px;
}

.os-bgm-control {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto minmax(180px, .8fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 11px;
}

.os-bgm-control > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.os-bgm-control > div > i {
  color: var(--os-lime);
  font-size: 18px;
}

.os-bgm-control > div span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.os-bgm-control b,
.os-bgm-control small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-bgm-control b { color: #dce2da; font-size: 8px; }
.os-bgm-control small { color: #707a70; font-size: 7px; }
.os-bgm-control > button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 8px;
  color: #aeb7ac;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
}
.os-bgm-control .os-range-control { margin: 0; }

.os-pad-editor {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(184, 241, 59, .25);
  border-radius: 12px;
  background: rgba(184, 241, 59, .025);
}

.os-pad-editor-head,
.os-pad-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.os-pad-editor-head > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #dce2da;
  font-size: 9px;
}

.os-pad-editor-head small { color: #7e897c; font-size: 7px; }
.os-pad-editor-head button,
.os-pad-editor-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--os-line-dark);
  border-radius: 8px;
  color: #aeb7ac;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
}

.os-pad-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.os-pad-editor-grid input[type="range"] {
  height: 34px;
  padding: 0;
  accent-color: var(--os-lime);
}

.os-pad-editor-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.os-pad-editor-actions > label {
  margin-right: auto;
  color: #aab3a8;
  font-size: 8px;
}

@media (max-width: 1000px) {
  .stage-os .os-audio-dashboard {
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.2fr);
    grid-template-rows: 220px auto auto;
  }
  .stage-os .os-audio-signal-panel { grid-column: 1 / -1; grid-row: 1; }
  .stage-os .os-audio-voltune-panel { grid-column: 1; grid-row: 2; }
  .stage-os .os-current-scene { grid-column: 2; grid-row: 2; }
  .stage-os .os-audio-soundstage-panel { grid-column: 1; grid-row: 3; }
  .stage-os .os-audio-device-panel { grid-column: 2; grid-row: 3; }
}

.os-inline-range {
  display: grid !important;
  grid-template-columns: auto auto minmax(110px, 1fr);
  align-items: center;
  gap: 6px;
}

@media (max-width: 1320px) {
  .os-profile-entry small {
    display: none;
  }

  .os-user {
    min-width: 142px;
  }

  .os-control-island > .os-capture-control {
    width: 210px;
    min-width: 210px;
  }

  .os-control-island > button.os-compact-control {
    min-width: 76px;
    width: 76px;
  }

  .os-control-island > button.os-overlay-toggle {
    min-width: 112px;
    width: 112px;
  }

  .os-control-island > button.start-live,
  .os-control-island > button.danger {
    min-width: 184px;
  }
}

/* Manual big-board report: a deliberate low-frequency layer above live coaching. */
.os-big-board-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(235, 240, 231, 0.25);
  border-radius: 12px;
  color: #eef1ea;
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
  transition: 160ms ease;
}

.os-big-board-button:hover:not(:disabled) {
  border-color: rgba(184, 241, 59, 0.55);
  background: rgba(184, 241, 59, 0.1);
}

.os-big-board-button:disabled {
  cursor: default;
  color: #697067;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.os-big-board-button.ready {
  color: #eaf6d5;
  border-color: rgba(184, 241, 59, 0.38);
  background: rgba(184, 241, 59, 0.09);
}

.os-big-board-button.ready > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-lime);
  box-shadow: 0 0 0 3px rgba(184, 241, 59, 0.12);
}

.os-big-board-button.error {
  color: #ffd8d5;
  border-color: rgba(255, 93, 86, 0.38);
}

.os-big-board-scrim {
  position: fixed;
  z-index: 40;
  inset: 58px 0 0;
  background: rgba(7, 10, 8, 0.18);
  backdrop-filter: blur(1.5px);
}

.os-big-board-drawer {
  position: fixed;
  z-index: 43;
  top: 58px;
  right: 0;
  bottom: 90px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(62vw, 680px);
  min-width: 560px;
  overflow: hidden;
  color: #1a2118;
  border-left: 1px solid rgba(16, 20, 15, 0.1);
  border-bottom: 1px solid rgba(16, 20, 15, 0.1);
  border-radius: 0 0 0 28px;
  background: #f8f8f3;
  box-shadow: -28px 24px 80px rgba(8, 14, 8, 0.22);
  animation: osBigBoardIn 220ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes osBigBoardIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.os-big-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 19px;
  border-bottom: 1px solid rgba(16, 20, 15, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.os-big-board-head > div {
  display: grid;
  gap: 4px;
}

.os-big-board-head span,
.os-big-board-lead > span,
.os-big-board-actions > span {
  color: #75806f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.os-big-board-head h2 {
  margin: 0;
  color: #121712;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.os-big-board-head p {
  margin: 2px 0 0;
  color: #858e81;
  font-size: 9px;
}

.os-big-board-head > button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(16, 20, 15, 0.1);
  border-radius: 12px;
  color: #596255;
  background: #fff;
  font-size: 23px;
  line-height: 1;
}

.os-big-board-reminder {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 12px 20px 0;
  padding: 9px 13px;
  border: 1px solid rgba(184, 241, 59, 0.38);
  border-radius: 15px;
  color: #eaf0e6;
  text-align: left;
  background: #111611;
}

.os-big-board-reminder > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--os-lime);
}

.os-big-board-reminder > span {
  display: grid;
  gap: 2px;
}

.os-big-board-reminder b { font-size: 10px; }
.os-big-board-reminder small { color: #929c8f; font-size: 8px; }
.os-big-board-reminder em { color: var(--os-lime); font-size: 9px; font-style: normal; font-weight: 800; }

.os-big-board-scroll {
  min-height: 0;
  padding: 24px 28px 30px;
  overflow: auto;
  overscroll-behavior: contain;
}

.os-big-board-lead {
  padding: 22px;
  border-radius: 20px;
  color: #f3f6ef;
  background:
    radial-gradient(circle at 90% 0, rgba(184, 241, 59, 0.16), transparent 32%),
    #111611;
}

.os-big-board-lead > span { color: #b8f13b; }
.os-big-board-lead h3 {
  margin: 13px 0 0;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.os-big-board-dimensions {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 19px;
  background: rgba(16, 20, 15, 0.08);
}

.os-big-board-dimensions article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.86);
}

.os-big-board-dimensions article > b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #5d6d27;
  background: rgba(184, 241, 59, 0.22);
  font-size: 9px;
}

.os-big-board-dimensions article > div { display: grid; gap: 6px; }
.os-big-board-dimensions span { font-size: 12px; font-weight: 820; }
.os-big-board-dimensions p,
.os-big-board-actions p {
  margin: 0;
  color: #596255;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-line;
}

.os-big-board-actions {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.os-big-board-actions > article {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.os-big-board-actions > article > span {
  color: #596255;
  font-size: 10px;
  font-weight: 820;
}

.os-big-board-actions > article.primary {
  border-color: rgba(151, 200, 33, 0.4);
  background: rgba(184, 241, 59, 0.13);
}

.os-big-board-actions > article.primary > span { color: #60781e; }
.os-big-board-actions > article.avoid { background: rgba(255, 93, 86, 0.045); }
.os-big-board-actions > article.avoid > span { color: #b95650; }

.os-big-board-evidence {
  margin-top: 22px;
  border-top: 1px solid rgba(16, 20, 15, 0.09);
  border-bottom: 1px solid rgba(16, 20, 15, 0.09);
}

.os-big-board-evidence summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.os-big-board-evidence summary span { font-size: 11px; font-weight: 820; }
.os-big-board-evidence summary small { color: #7a8377; font-size: 9px; }
.os-big-board-evidence > div { padding: 0 0 18px; }
.os-big-board-evidence h4 { margin: 14px 0 7px; font-size: 10px; }
.os-big-board-evidence ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #667063; }
.os-big-board-evidence li { padding-left: 3px; font-size: 10px; line-height: 1.55; }

.os-big-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.os-big-board-footer > div { display: grid; gap: 2px; }
.os-big-board-footer b { color: #57604f; font-size: 9px; }
.os-big-board-footer span { color: #929a8f; font-size: 8px; }
.os-big-board-footer button,
.os-big-board-error-state button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(16, 20, 15, 0.14);
  border-radius: 12px;
  color: #2f382d;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.os-big-board-loading,
.os-big-board-error-state {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.os-big-board-orbit {
  width: 92px;
  height: 92px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(184, 241, 59, 0.28);
  border-radius: 50%;
  background: #111611;
}

.os-big-board-orbit img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.os-big-board-loading h3,
.os-big-board-error-state h3 { margin: 20px 0 7px; font-size: 18px; }
.os-big-board-loading p,
.os-big-board-error-state p { max-width: 390px; margin: 0; color: #7a8377; font-size: 10px; line-height: 1.65; }
.os-big-board-progress { width: 250px; height: 3px; margin-top: 22px; overflow: hidden; border-radius: 999px; background: rgba(16, 20, 15, 0.08); }
.os-big-board-progress i { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--os-lime-strong); animation: osBigBoardProgress 1.3s ease-in-out infinite; }
@keyframes osBigBoardProgress { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.os-big-board-skeleton { display: grid; gap: 9px; width: min(100%, 440px); margin-top: 30px; }
.os-big-board-skeleton span { height: 12px; border-radius: 999px; background: rgba(16, 20, 15, 0.055); }
.os-big-board-skeleton span:nth-child(2) { width: 82%; }
.os-big-board-skeleton span:nth-child(3) { width: 93%; }
.os-big-board-skeleton span:nth-child(4) { width: 67%; }
.os-big-board-error-state > i { color: #d86d66; font-size: 30px; }
.os-big-board-error-state button { margin-top: 18px; }

@media (max-width: 1320px) {
  .os-big-board-button { min-width: 92px; padding: 0 10px; font-size: 9px; }
  .os-big-board-drawer { width: 64vw; min-width: 520px; }
}

@media (max-height: 820px) {
  .os-big-board-drawer { bottom: 78px; }
  .os-big-board-head { padding: 17px 24px 14px; }
  .os-big-board-scroll { padding: 18px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .os-big-board-drawer,
  .os-big-board-progress i { animation: none; }
}

/* Single-window application shell: top-level domains above contextual navigation. */
.stage-os .titlebar {
  grid-template-columns: 190px minmax(0, 1fr) 112px;
}

.os-main-menu {
  display: flex;
  height: 58px;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.os-main-menu-item {
  position: relative;
  min-width: 74px;
  padding: 0 8px;
  border: 0;
  color: #92998f;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.os-main-menu-item::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--os-lime);
  opacity: 0;
}

.os-main-menu-item:hover,
.os-main-menu-item.active {
  color: #fff;
}

.os-main-menu-item.active::after {
  opacity: 1;
}

.stage-os .screen {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  height: calc(100vh - 58px);
}

.os-sidebar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 22px 14px 16px;
  color: #eef2e9;
  background: #0d110e;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.os-sidebar-heading {
  display: grid;
  gap: 4px;
  padding: 0 10px 18px;
}

.os-sidebar-heading span {
  font-size: 15px;
  font-weight: 780;
}

.os-sidebar-heading small {
  color: #7f8a7d;
  font-size: 10px;
  line-height: 1.45;
}

.stage-os .os-sidebar .rail {
  position: static;
  display: flex;
  height: auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  overflow: auto;
  margin: 0;
  padding: 0;
}

.os-sidebar-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #98a197;
  text-align: left;
  background: transparent;
  font-size: 12px;
  font-weight: 680;
}

.os-sidebar-item i {
  color: #758071;
  font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets";
  font-size: 15px;
  font-style: normal;
  text-align: center;
}

.os-sidebar-item:hover {
  color: #f4f7ef;
  background: rgba(255, 255, 255, 0.045);
}

.os-sidebar-item.active {
  color: #f4f8ec;
  border-color: rgba(184, 241, 59, 0.2);
  background: rgba(184, 241, 59, 0.09);
}

.os-sidebar-item.active i {
  color: var(--os-lime);
}

.os-sidebar-status {
  display: grid;
  gap: 8px;
  padding: 14px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.os-sidebar-status > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.os-sidebar-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #626a61;
}

.os-sidebar-status span.online {
  background: var(--os-mint);
  box-shadow: 0 0 0 3px rgba(37, 211, 174, 0.1);
}

.os-sidebar-status span.optional {
  background: #a3ad9f;
}

.os-sidebar-status b,
.os-sidebar-status small {
  font-size: 9px;
}

.os-sidebar-status b {
  color: #aeb7ab;
  font-weight: 650;
}

.os-sidebar-status small {
  color: #6e786c;
}

.stage-os .stage {
  grid-column: 2;
  min-width: 0;
}

.stage-os .os-live-page > .os-live-header-status {
  min-height: 44px;
  padding: 7px 18px;
  color: #aab2a7;
  background: #111511;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stage-os .os-live-page > .os-live-header-status + .os-live-stage {
  height: calc(44% - 22px);
}

.stage-os .os-big-board-scrim {
  left: 218px;
}

@media (max-width: 1100px) {
  .stage-os .screen { grid-template-columns: 218px minmax(0, 1fr); }
  .stage-os .os-big-board-scrim { left: 218px; }
  .os-main-menu { gap: 10px; }
  .os-main-menu-item { min-width: 64px; font-size: 12px; }
}

/* Post-live coach is hosted in MainWindow. It replaces the former business window. */
.os-postlive-workspace {
  height: 100%;
  min-height: 0;
  padding: 28px 32px 40px;
  overflow: auto;
}

.os-workspace-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.os-workspace-title h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.os-workspace-title p {
  margin: 7px 0 0;
  color: #727b70;
  font-size: 11px;
}

.os-postlive-toolbar,
.os-postlive-actions,
.os-postlive-outcomes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-postlive-toolbar span {
  margin-right: 4px;
  color: #697267;
  font-size: 10px;
}

.os-postlive-toolbar button,
.os-postlive-actions button,
.os-postlive-outcomes button,
.os-workspace-title > button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(16, 20, 15, 0.12);
  border-radius: 10px;
  color: #343c33;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.os-postlive-toolbar button:hover,
.os-postlive-actions button:hover,
.os-postlive-outcomes button:hover,
.os-workspace-title > button:hover {
  border-color: rgba(119, 153, 22, 0.52);
  background: #fff;
}

.os-postlive-toolbar button:disabled,
.os-postlive-actions button:disabled,
.os-postlive-outcomes button:disabled {
  opacity: 0.42;
  pointer-events: none;
}

.os-postlive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 12px;
  color: #687166;
  background: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.os-postlive-summary b {
  color: #526313;
  font-size: 10px;
}

.os-postlive-summary.blocked b,
.os-postlive-summary.fallback b {
  color: #a75342;
}

.os-postlive-coach-grid {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.os-postlive-candidates,
.os-postlive-detail,
.os-postlive-history {
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 44px rgba(35, 44, 29, 0.05);
}

.os-postlive-candidates {
  position: sticky;
  top: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.os-postlive-candidates > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 9px;
  color: #636c61;
  font-size: 10px;
}

.os-postlive-candidates > div:first-child span {
  min-width: 21px;
  padding: 3px 6px;
  border-radius: 999px;
  text-align: center;
  color: #4e5f10;
  background: rgba(184, 241, 59, 0.2);
}

.os-postlive-candidates > button {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: left;
  color: #2b322a;
  background: rgba(242, 244, 237, 0.72);
}

.os-postlive-candidates > button.active {
  border-color: rgba(143, 184, 28, 0.46);
  background: rgba(184, 241, 59, 0.12);
}

.os-postlive-candidates button span {
  padding-right: 62px;
  font-size: 13px;
  font-weight: 800;
}

.os-postlive-candidates button small {
  color: #777f75;
  font-size: 9px;
}

.os-postlive-candidates button em {
  position: absolute;
  top: 12px;
  right: 10px;
  color: #58700c;
  font-size: 8px;
  font-style: normal;
}

.os-postlive-candidates button em.blocked {
  color: #b25542;
}

.os-postlive-detail {
  padding: 20px;
}

.os-postlive-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 20, 15, 0.08);
}

.os-postlive-detail header span,
.os-postlive-detail section > span,
.os-postlive-drafts > div:first-child > span,
.os-postlive-outcomes > span {
  color: #788176;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.os-postlive-detail header h2 {
  margin: 5px 0 4px;
  font-size: 25px;
}

.os-postlive-detail header p,
.os-postlive-facts p {
  margin: 0;
  color: #717a6f;
  font-size: 10px;
  line-height: 1.55;
}

.os-postlive-detail header > b {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
}

.os-postlive-detail header > b.allowed {
  color: #53690c;
  background: rgba(184, 241, 59, 0.18);
}

.os-postlive-detail header > b.blocked {
  color: #a54e3d;
  background: rgba(224, 105, 78, 0.12);
}

.os-postlive-facts,
.os-postlive-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.os-postlive-facts section,
.os-postlive-guidance section,
.os-postlive-drafts {
  padding: 14px;
  border: 1px solid rgba(16, 20, 15, 0.07);
  border-radius: 13px;
  background: rgba(246, 247, 242, 0.72);
}

.os-postlive-drafts {
  margin-top: 12px;
}

.os-postlive-drafts > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.os-postlive-drafts > div:first-child b {
  color: #6b7868;
  font-size: 9px;
}

.os-postlive-opener-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.os-postlive-opener-list button {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #454d43;
  text-align: left;
  background: #fff;
  font-size: 10px;
  line-height: 1.5;
}

.os-postlive-opener-list button.active {
  border-color: rgba(143, 184, 28, 0.48);
  background: rgba(184, 241, 59, 0.08);
}

.os-postlive-opener-list i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  color: #52650d;
  background: rgba(184, 241, 59, 0.2);
  font-size: 9px;
  font-style: normal;
}

.os-postlive-guidance section > ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #60695e;
  font-size: 9px;
  line-height: 1.55;
}

.os-postlive-guidance section.allowed {
  border-color: rgba(128, 170, 20, 0.19);
}

.os-postlive-guidance section.forbidden {
  border-color: rgba(200, 89, 64, 0.16);
}

.os-postlive-guidance section.forbidden > b {
  display: block;
  margin-top: 10px;
  color: #a9503d;
  font-size: 9px;
}

.os-postlive-outcomes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 20, 15, 0.08);
}

.os-postlive-outcomes > span {
  margin-right: auto;
}

.os-postlive-empty,
.os-postlive-blank p {
  color: #7b8379;
  font-size: 9px;
  line-height: 1.55;
}

.os-postlive-blank {
  padding: 20px 8px;
  text-align: center;
}

.os-postlive-blank-large {
  display: grid;
  min-height: 340px;
  place-content: center;
}

.os-postlive-history {
  padding: 18px;
}

.os-postlive-history-head,
.os-postlive-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 180px;
  align-items: center;
  gap: 16px;
}

.os-postlive-history-head {
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(16, 20, 15, 0.08);
  color: #697267;
  font-size: 10px;
}

.os-postlive-history article {
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 20, 15, 0.06);
}

.os-postlive-history article div {
  display: grid;
  gap: 3px;
}

.os-postlive-history article small,
.os-postlive-history article time {
  color: #7a8378;
  font-size: 9px;
}

.os-postlive-history article em {
  color: #566b10;
  font-size: 10px;
  font-style: normal;
}

@media (max-width: 1080px) {
  .os-postlive-workspace { padding: 24px; }
  .os-postlive-coach-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .os-postlive-facts,
  .os-postlive-guidance { grid-template-columns: 1fr; }
}

.stage-os .os-voiceprint-status {
  display: grid;
  gap: 6px;
  min-height: 156px;
  margin-top: 10px;
  padding: 11px;
}

.stage-os .os-voiceprint-status h3 {
  margin: 1px 0 0;
  color: #d9ded7;
  font-size: 9px;
  line-height: 1.35;
}

.stage-os .os-voiceprint-status p,
.stage-os .os-voiceprint-status > small {
  margin: 0;
  color: #818a80;
  font-size: 8px;
  line-height: 1.45;
}

.os-voiceprint-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.os-voiceprint-progress i {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.os-voiceprint-progress i.done,
.os-voiceprint-status.running .os-voiceprint-progress i:first-child {
  background: var(--os-lime);
}

.os-voiceprint-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.os-voiceprint-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #cbd2c8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 8px;
}

.os-voiceprint-actions button:first-child {
  color: #dff0a6;
  border-color: rgba(184, 241, 59, 0.22);
}

.os-voiceprint-actions button:disabled {
  opacity: .38;
}

.os-audio-background-settings {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
}

.os-audio-background-settings > span {
  color: #dfe3dd;
  font-size: 8px;
  font-weight: 720;
}

.os-audio-background-settings label {
  display: grid;
  gap: 3px;
}

.os-audio-background-settings label small,
.os-audio-background-settings > div small {
  color: #777f76;
  font-size: 7px;
}

.os-audio-background-settings input[type="text"],
.os-audio-background-settings input:not([type]) ,
.os-audio-background-settings input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #cbd2c8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 7px;
}

.os-audio-background-settings label.check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-audio-background-settings > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.os-audio-background-settings button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(184, 241, 59, 0.2);
  border-radius: 8px;
  color: #dff0a6;
  background: rgba(184, 241, 59, 0.05);
  font-size: 8px;
}

.os-diagnostics-page {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.os-system-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.os-system-info-grid section {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}
.os-system-info-grid span { color: #788176; font-size: 10px; font-weight: 760; }
.os-system-info-grid h2 { margin: 28px 0 10px; font-size: 22px; }
.os-system-info-grid p { margin: 0; color: #737c71; font-size: 10px; line-height: 1.65; }

.os-diagnostics-grid {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(420px, 1.1fr);
  gap: 14px;
}

.os-background-services-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.os-background-services-card > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.os-background-services-card > div span,
.os-background-services-card article b { font-weight: 800; }
.os-background-services-card > div b,
.os-background-services-card article small,
.os-background-services-card article em { color: #788176; font-size: 9px; }
.os-background-services-card article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(16, 20, 15, 0.08);
  border-radius: 12px;
  background: #f5f7f1;
}
.os-background-services-card article > i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #a5aca2;
}
.os-background-services-card article > i.online { background: #77a614; box-shadow: 0 0 0 4px rgba(119, 166, 20, 0.1); }
.os-background-services-card article > i.optional { background: #d0a94b; }
.os-background-services-card article span { display: grid; min-width: 0; gap: 3px; }
.os-background-services-card article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-background-services-card article em { grid-column: 2; font-style: normal; }

.os-demo-controller-card,
.os-demo-log-card,
.os-diagnostics-boundary {
  padding: 20px;
  border: 1px solid rgba(16, 20, 15, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.os-demo-card-head,
.os-demo-log-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.os-demo-card-head span,
.os-demo-log-card span {
  color: #788176;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .06em;
}

.os-demo-card-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.os-demo-card-head > b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #767f74;
  background: #eef0e9;
  font-size: 9px;
}

.os-demo-card-head > b.running {
  color: #52680d;
  background: rgba(184, 241, 59, .18);
}

.os-demo-fields {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.os-demo-fields label {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #626b60;
  font-size: 10px;
}

.os-demo-fields select {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(16, 20, 15, .12);
  border-radius: 9px;
  color: #353d34;
  background: #fff;
  font-size: 10px;
}

.os-demo-fields input[type="range"] {
  width: 100%;
}

.os-demo-fields small {
  min-width: 42px;
  color: #778075;
  font-size: 9px;
}

.os-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.os-demo-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(16, 20, 15, .12);
  border-radius: 9px;
  color: #40483e;
  background: #fff;
  font-size: 9px;
}

.os-demo-actions button.primary {
  color: #354405;
  border-color: rgba(143, 184, 28, .4);
  background: rgba(184, 241, 59, .18);
}

.os-demo-actions button.danger {
  color: #a24f3e;
}

.os-demo-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 11px;
  color: #596257;
  background: #f1f3ed;
  font-size: 9px;
}

.os-demo-state > div {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe3da;
}

.os-demo-state > div i {
  display: block;
  height: 100%;
  background: #91b721;
}

.os-demo-state small {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  color: #788176;
}

.os-demo-log-card > div:first-child b {
  color: #788176;
  font-size: 8px;
  font-weight: 600;
}

.os-demo-log-card pre {
  height: 360px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  color: #cdd6c9;
  background: #101410;
  font-family: Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.os-diagnostics-boundary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
}

.os-diagnostics-boundary b {
  color: #54670f;
  font-size: 10px;
}

.os-diagnostics-boundary p {
  margin: 0;
  color: #737c71;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .os-diagnostics-grid { grid-template-columns: 1fr; }
  .os-diagnostics-boundary { grid-column: 1; }
  .os-background-services-card { grid-template-columns: 1fr 1fr; }
  .os-system-info-grid { grid-template-columns: 1fr; }
}

.os-virtual-mixer {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(89, 219, 170, .18);
  border-radius: 18px;
  color: #dce8e2;
  background: #0c1713;
}
.os-virtual-mixer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.os-virtual-mixer header span { color: #62ddb0; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.os-virtual-mixer header h2 { margin: 5px 0; font-size: 23px; }
.os-virtual-mixer header p { margin: 0; color: #85978f; font-size: 10px; }
.os-virtual-mixer header > b { padding: 7px 10px; border-radius: 999px; color: #aab7b1; background: #17231e; font-size: 9px; }
.os-virtual-mixer header > b.online { color: #72e8bc; background: rgba(89, 219, 170, .1); }
.os-vm-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.os-vm-status span, .os-vm-status em { padding: 6px 9px; border-radius: 8px; color: #9eb0a8; background: #13201b; font-size: 9px; font-style: normal; }
.os-vm-status em { margin-left: auto; color: #dce8e2; }
.os-vm-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.os-vm-presets button, .os-virtual-mixer footer button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: #d6e1dc;
  background: #14211c;
  font-size: 9px;
}
.os-vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.os-vm-grid fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.os-vm-grid legend { padding: 0 6px; color: #72e8bc; font-size: 10px; font-weight: 800; }
.os-vm-grid label { display: grid; gap: 5px; min-width: 0; color: #92a49c; font-size: 8px; }
.os-vm-grid label.check { grid-template-columns: auto 1fr; align-items: center; }
.os-vm-grid input:not([type="checkbox"]), .os-vm-grid select { min-width: 0; height: 32px; padding: 0 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #e2ebe7; background: #101c17; font-size: 9px; }
.os-vm-trial { grid-column: 1 / -1; padding: 10px; border-radius: 9px; background: rgba(89,219,170,.06); }
.os-vm-trial b { font-size: 10px; }
.os-vm-trial p, .os-vm-trial li { color: #91a39b; font-size: 8px; line-height: 1.5; }
.os-virtual-mixer footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.os-virtual-mixer footer button.primary { color: #07110d; background: #72e8bc; }
.os-virtual-mixer footer button.danger { color: #ff9c8c; }
.os-virtual-mixer button:disabled { opacity: .38; cursor: not-allowed; }

@media (max-width: 1120px) {
  .os-vm-grid { grid-template-columns: 1fr; }
}

.os-ai-song-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: end;
  padding: 24px;
  border: 1px solid rgba(89, 219, 170, .2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(18, 42, 34, .96), rgba(8, 18, 15, .98));
}

.os-ai-song-compact-head h1 {
  margin: 4px 0 8px;
  font-size: 38px;
}

.os-ai-song-compact-head p {
  max-width: 650px;
  margin: 0;
  color: #9fb2aa;
  font-size: 11px;
  line-height: 1.65;
}

.os-ai-song-compact-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
}

.os-ai-song-compact-status span,
.os-ai-song-compact-status small {
  color: #82958e;
  font-size: 9px;
}

.os-ai-song-compact-status b {
  color: #65d9aa;
  font-size: 15px;
}

.os-ai-song-compact-status small {
  grid-column: 1 / -1;
}

.os-ai-song-compact-status button,
.os-song-form-card button,
.os-song-record-card button,
.os-song-task-actions button,
.os-ai-song-page .os-workspace-title > button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(101, 217, 170, .2);
  border-radius: 9px;
  color: #d9ebe4;
  background: rgba(255, 255, 255, .045);
  font-size: 9px;
}

.os-ai-song-compact-status button:disabled,
.os-song-form-card button:disabled,
.os-song-record-card button:disabled,
.os-song-task-actions button:disabled {
  opacity: .4;
}

.os-ai-song-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  gap: 12px;
  margin-top: 14px;
}

.os-song-form-card,
.os-song-record-card,
.os-song-task-card,
.os-song-files-card {
  padding: 18px;
  border: 1px solid rgba(118, 160, 143, .16);
  border-radius: 17px;
  background: rgba(12, 24, 20, .88);
}

.os-song-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.os-song-form-grid label,
.os-song-record-card > label {
  display: grid;
  gap: 5px;
  color: #8ea198;
  font-size: 9px;
}

.os-song-form-grid label.span-2 {
  grid-column: 1 / -1;
}

.os-song-form-grid label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.os-song-form-grid input,
.os-song-form-grid select,
.os-song-record-card input,
.os-song-record-card select {
  width: 100%;
  min-width: 0;
  height: 33px;
  padding: 0 9px;
  border: 1px solid rgba(118, 160, 143, .18);
  border-radius: 9px;
  color: #dce9e3;
  background: #0b1512;
  font-size: 9px;
}

.os-song-form-grid input[type="range"] {
  padding: 0;
}

.os-song-submit {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.os-song-submit span {
  min-width: 0;
  margin-right: auto;
  color: #83968d;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.os-song-record-card {
  display: grid;
  align-content: start;
  gap: 11px;
}

.os-song-record-card > small {
  color: #71847b;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.os-song-record-card > div:last-child {
  display: flex;
  gap: 7px;
}

.os-recording-level,
.os-song-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.os-recording-level i,
.os-song-progress i {
  display: block;
  height: 100%;
  background: #4ed7a1;
}

.os-ai-song-task-page .os-workspace-title,
.os-ai-song-files-page .os-workspace-title {
  color: #edf8f3;
}

.os-ai-song-task-page .os-workspace-title p,
.os-ai-song-files-page .os-workspace-title p {
  color: #82958e;
}

.os-song-task-card header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.os-song-task-card header span {
  color: #65d9aa;
  font-size: 9px;
  text-transform: uppercase;
}

.os-song-task-card header h2 {
  margin: 6px 0;
  font-size: 25px;
}

.os-song-task-card header p {
  margin: 0;
  color: #899b93;
  font-size: 10px;
}

.os-song-task-card header > b {
  color: #65d9aa;
  font-size: 30px;
}

.os-song-progress {
  margin: 18px 0 12px;
}

.os-song-task-actions {
  display: flex;
  gap: 7px;
}

.os-song-task-card pre {
  height: 360px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  color: #c5d4ce;
  background: #07100d;
  font-family: Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.os-song-files-head,
.os-song-files-card article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 80px 150px;
  align-items: center;
  gap: 10px;
}

.os-song-files-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 12px;
  color: #82958e;
  font-size: 9px;
}

.os-song-files-card article {
  min-height: 58px;
  border-top: 1px solid rgba(118, 160, 143, .1);
}

.os-song-files-card article > i {
  color: #65d9aa;
  font-size: 17px;
}

.os-song-files-card article div {
  display: grid;
  gap: 3px;
}

.os-song-files-card article small,
.os-song-files-card article em,
.os-song-files-card article time {
  color: #82958e;
  font-size: 8px;
  font-style: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .os-ai-song-compact-head,
  .os-ai-song-workspace { grid-template-columns: 1fr; }
}

/* Guided preflight journey, 2026-08-22. Scoped to the waiting-to-go-live state. */
.stage-os.is-preflight-page .stage {
  overflow: hidden;
  background: #080b09;
}

.stage-os.is-preflight-page .os-sidebar {
  background:
    linear-gradient(180deg, rgba(184, 241, 59, 0.035), transparent 28%),
    #0c100d;
}

.stage-os.is-preflight-page .os-sidebar-heading {
  padding-bottom: 16px;
}

.stage-os.is-preflight-page .os-sidebar-heading span {
  font-size: 16px;
}

.stage-os.is-preflight-page .os-sidebar-heading small {
  color: #8b9588;
  font-size: 10px;
}

.stage-os.is-preflight-page .os-sidebar .rail {
  overflow: hidden auto;
}

.os-preflight-rail-list {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 3px 0;
}

.os-preflight-rail-list::before {
  position: absolute;
  z-index: 0;
  top: 30px;
  bottom: 30px;
  left: 24px;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.09);
}

.os-preflight-rail-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 62px;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 7px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #e8ede4;
  text-align: left;
  background: transparent;
}

.os-preflight-rail-step:hover,
.os-preflight-rail-step.current {
  border-color: rgba(184, 241, 59, 0.18);
  background: rgba(184, 241, 59, 0.055);
}

.os-preflight-step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #8f998c;
  background: #111612;
  font-size: 9px;
  font-weight: 800;
}

.os-preflight-rail-step.ready .os-preflight-step-index {
  color: #15200e;
  border-color: var(--os-lime);
  background: var(--os-lime);
}

.os-preflight-rail-step.error .os-preflight-step-index {
  color: #fff;
  border-color: rgba(255, 93, 86, 0.72);
  background: rgba(255, 93, 86, 0.22);
}

.os-preflight-rail-step > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.os-preflight-rail-step b {
  font-size: 11px;
  font-weight: 760;
}

.os-preflight-rail-step small {
  overflow: hidden;
  color: #778176;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-preflight-rail-step > em {
  color: #879184;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.os-preflight-rail-step.ready > em { color: var(--os-lime); }
.os-preflight-rail-step.error > em { color: #ff7973; }
.os-preflight-rail-step.optional > em { color: #9386d9; }

.stage-os.is-preflight-page .os-sidebar-status {
  gap: 10px;
  padding-top: 12px;
}

.os-preflight-side-state {
  display: grid !important;
  grid-template-columns: 8px minmax(0, 1fr) auto !important;
  gap: 7px !important;
}

.os-preflight-side-state > span {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: #d8a83f !important;
  box-shadow: 0 0 0 4px rgba(216, 168, 63, 0.09);
}

.os-preflight-side-state.ready > span {
  background: var(--os-lime) !important;
  box-shadow: 0 0 0 4px rgba(184, 241, 59, 0.09);
}

.os-preflight-side-note {
  margin: 0;
  color: #6f796d;
  font-size: 8px;
  line-height: 1.55;
}

.os-preflight-page {
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  color: #eef3ea;
  background:
    radial-gradient(circle at 72% 14%, rgba(184, 241, 59, 0.07), transparent 29%),
    radial-gradient(circle at 20% 90%, rgba(37, 211, 174, 0.035), transparent 32%),
    #080b09;
}

.os-preflight-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(248px, 0.7fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100%;
  gap: 12px;
}

.os-preflight-focus,
.os-preflight-summary,
.os-preflight-audio {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(14, 19, 15, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.19);
}

.os-preflight-focus {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 25px 30px 22px;
  overflow: hidden;
  border-radius: 24px;
}

.os-preflight-focus::before {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 280px;
  height: 280px;
  content: "";
  border-radius: 50%;
  background: rgba(184, 241, 59, 0.055);
  filter: blur(4px);
}

.os-preflight-focus.error::before { background: rgba(255, 93, 86, 0.075); }
.os-preflight-focus.ready::before { background: rgba(184, 241, 59, 0.09); }

.os-preflight-focus > header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #a7b0a3;
}

.os-preflight-focus > header span {
  color: var(--os-lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.os-preflight-focus.error > header span { color: #ff7973; }

.os-preflight-focus > header small {
  color: #737d71;
  font-size: 9px;
}

.os-preflight-focus-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 620px;
  gap: 9px;
  margin-top: 24px;
}

.os-preflight-state-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(184, 241, 59, 0.28);
  border-radius: 15px;
  color: var(--os-lime);
  background: rgba(184, 241, 59, 0.085);
  font-size: 20px;
}

.os-preflight-focus.error .os-preflight-state-mark {
  color: #ff7771;
  border-color: rgba(255, 93, 86, 0.38);
  background: rgba(255, 93, 86, 0.09);
}

.os-preflight-focus-copy h1 {
  max-width: 610px;
  margin: 4px 0 0;
  color: #f5f8f1;
  font-size: clamp(29px, 3.1vw, 42px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.os-preflight-focus-copy p {
  max-width: 600px;
  margin: 0;
  color: #9da69a;
  font-size: 12px;
  line-height: 1.65;
}

.os-preflight-diagnosis {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 660px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.os-preflight-diagnosis > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.os-preflight-diagnosis > div > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9a43a;
  box-shadow: 0 0 0 4px rgba(217, 164, 58, 0.08);
}

.os-preflight-focus.error .os-preflight-diagnosis > div > span { background: var(--os-coral); }
.os-preflight-focus.ready .os-preflight-diagnosis > div > span { background: var(--os-lime); }

.os-preflight-diagnosis b {
  color: #e8ede4;
  font-size: 11px;
}

.os-preflight-diagnosis em {
  color: #747f72;
  font-size: 8px;
  font-style: normal;
}

.os-preflight-diagnosis p {
  margin: 0 0 0 16px;
  color: #818b7e;
  font-size: 9px;
  line-height: 1.55;
}

.os-preflight-required-progress {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 660px;
  gap: 7px;
  margin-top: 15px;
}

.os-preflight-required-progress > div {
  display: flex;
  justify-content: space-between;
  color: #7d877a;
  font-size: 8px;
}

.os-preflight-required-progress > div b { color: #c8d0c3; }

.os-preflight-required-progress > i {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.os-preflight-required-progress > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--os-mint), var(--os-lime));
  transition: width 180ms ease;
}

.os-preflight-focus-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.os-preflight-primary,
.os-preflight-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 780;
}

.os-preflight-primary {
  border: 1px solid var(--os-lime);
  color: #11170e;
  background: var(--os-lime);
  box-shadow: 0 10px 26px rgba(184, 241, 59, 0.12);
}

.os-preflight-primary:hover { background: #c6f755; }

.os-preflight-secondary {
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d7ddd3;
  background: rgba(255, 255, 255, 0.035);
}

.os-preflight-secondary:hover { background: rgba(255, 255, 255, 0.075); }

.os-preflight-focus > footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: #6e786c;
  font-size: 8px;
  line-height: 1.45;
}

.os-preflight-focus > footer i { color: #8c9689; }

.os-preflight-summary {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 17px;
  border-radius: 24px;
}

.os-preflight-coach {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 92px;
  padding: 7px 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.os-preflight-coach img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
}

.os-preflight-coach > div {
  display: grid;
  gap: 3px;
}

.os-preflight-coach span {
  color: var(--os-lime);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.os-preflight-coach b {
  color: #eff4eb;
  font-size: 12px;
  line-height: 1.35;
}

.os-preflight-coach small {
  color: #758073;
  font-size: 8px;
  line-height: 1.4;
}

.os-preflight-summary-list {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.os-preflight-summary-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #dfe5db;
  text-align: left;
  background: transparent;
}

.os-preflight-summary-row:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.os-preflight-summary-row > i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #96a091;
  background: rgba(255, 255, 255, 0.04);
}

.os-preflight-summary-row.ready > i { color: var(--os-lime); background: rgba(184, 241, 59, 0.07); }
.os-preflight-summary-row.error > i { color: #ff7771; background: rgba(255, 93, 86, 0.08); }

.os-preflight-summary-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.os-preflight-summary-row b { font-size: 9px; }
.os-preflight-summary-row small {
  overflow: hidden;
  color: #6f796d;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-preflight-summary-row em {
  color: #899386;
  font-size: 7px;
  font-style: normal;
  font-weight: 720;
}

.os-preflight-summary-row.ready em { color: var(--os-lime); }
.os-preflight-summary-row.error em { color: #ff7771; }
.os-preflight-summary-row.optional em { color: #a99bff; }

.os-preflight-start-block {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.os-preflight-start {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--os-lime);
  border-radius: 14px;
  color: #11170e;
  background: var(--os-lime);
  font-weight: 780;
}

.os-preflight-start > i { font-size: 16px; }

.os-preflight-start > span {
  display: grid;
  gap: 1px;
  text-align: left;
  font-size: 11px;
}

.os-preflight-start small {
  color: rgba(17, 23, 14, 0.7);
  font-size: 7px;
  font-weight: 600;
}

.os-preflight-start:disabled {
  cursor: not-allowed;
  color: #687066;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.os-preflight-start:disabled small { color: #5e675c; }

.os-preflight-local {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #aeb7ab;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
}

.os-preflight-local:hover { color: #f1f4ed; background: rgba(255, 255, 255, 0.04); }

.os-preflight-start-block > p {
  margin: 0;
  color: #697267;
  text-align: center;
  font-size: 7px;
  line-height: 1.4;
}

.os-preflight-audio {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 16px;
}

.os-preflight-audio-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
}

.os-preflight-audio-head > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--os-mint);
  background: rgba(37, 211, 174, 0.075);
}

.os-preflight-audio-head > span {
  display: grid;
  gap: 2px;
}

.os-preflight-audio-head b { font-size: 10px; }
.os-preflight-audio-head small { color: #737d71; font-size: 8px; }
.os-preflight-audio-head > em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #9386d9;
  background: rgba(146, 120, 255, 0.08);
  font-size: 7px;
  font-style: normal;
  font-weight: 740;
}

.os-preflight-audio-head > button {
  min-width: 64px;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  color: #aab3a6;
  background: rgba(255, 255, 255, 0.035);
  font-size: 8px;
}

.os-preflight-audio.open .os-preflight-audio-head > button i { transform: rotate(180deg); }

.os-preflight-audio-detail {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  padding: 8px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #899386;
  font-size: 8px;
}

.os-preflight-audio-detail > span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.os-preflight-audio-detail > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #636b61;
}

.os-preflight-audio-detail > span i.online { background: var(--os-mint); }
.os-preflight-audio-detail p { flex: 1; margin: 0; color: #6f786c; }
.os-preflight-audio-detail > button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: #cbd2c7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 8px;
  white-space: nowrap;
}

.stage-os button:focus-visible,
.stage-os input:focus-visible,
.stage-os textarea:focus-visible {
  outline: 2px solid var(--os-lime);
  outline-offset: 2px;
}

.stage-os .os-live-header-status > span.degraded {
  color: #e4b95e;
  background: rgba(228, 185, 94, 0.08);
}

/* Keep live controls in document flow so they never cover the stage. */
.stage-os.is-live-page .os-live-page {
  min-height: 820px;
  overflow: auto;
  background: #070a08;
}

.stage-os.is-live-page .os-live-stage,
.stage-os.is-live-page .os-live-page > .os-live-header-status + .os-live-stage {
  grid-template-columns: minmax(240px, 1.15fr) minmax(140px, 0.58fr) minmax(170px, 0.72fr) minmax(190px, 0.78fr);
  width: 100%;
  height: 390px;
  min-height: 390px;
  padding: 17px 18px 22px;
}

.stage-os.is-live-page .os-live-copy {
  min-width: 0;
  padding-right: 10px;
}

.stage-os.is-live-page .os-live-copy h1 {
  font-size: clamp(27px, 2.45vw, 40px);
}

.stage-os.is-live-page .os-live-coach-hero,
.stage-os.is-live-page .os-live-timeline,
.stage-os.is-live-page .os-relation-panel {
  min-width: 0;
}

.stage-os.is-live-page .os-control-island {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - 28px);
  max-width: 1080px;
  min-height: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 12px auto;
  padding: 6px;
  border-radius: 22px;
  transform: none;
}

.stage-os.is-live-page .os-control-island > button,
.stage-os.is-live-page .os-control-island > label,
.stage-os.is-live-page .os-control-island > .os-capture-control,
.stage-os.is-live-page .os-control-island > button.os-compact-control,
.stage-os.is-live-page .os-control-island > button.start-live,
.stage-os.is-live-page .os-control-island > button.danger {
  width: auto;
  min-width: 0;
  flex: 1 1 174px;
}

.stage-os.is-live-page .os-audio-deck {
  height: auto;
  min-height: 470px;
  padding-top: 18px;
}

@media (max-width: 1120px) {
  .os-preflight-page { padding: 11px; }
  .os-preflight-shell { grid-template-columns: minmax(0, 1fr) 238px; gap: 9px; }
  .os-preflight-focus { padding: 22px 23px 19px; }
  .os-preflight-focus-copy { margin-top: 18px; }
  .os-preflight-focus-copy h1 { font-size: 29px; }
  .os-preflight-summary { padding: 13px; }
  .os-preflight-coach { grid-template-columns: 58px minmax(0, 1fr); min-height: 74px; padding: 3px 4px 8px; }
  .os-preflight-coach img { width: 58px; height: 58px; }
  .os-preflight-summary-row { min-height: 40px; padding: 5px 6px; }
  .os-preflight-audio-head { min-height: 48px; }
  .stage-os.is-live-page .os-live-stage,
  .stage-os.is-live-page .os-live-page > .os-live-header-status + .os-live-stage {
    grid-template-columns: minmax(215px, 1.1fr) minmax(120px, 0.55fr) minmax(155px, 0.7fr) minmax(175px, 0.75fr);
    padding-right: 13px;
    padding-left: 13px;
  }
}

/* Design QA pass 2: align the blocking state with the selected visual and restore readable type. */
.os-preflight-focus {
  justify-content: flex-start;
}

.os-preflight-focus-copy {
  margin-top: 18px;
}

.os-preflight-focus.error .os-preflight-focus-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 5px 13px;
  max-width: 680px;
  padding: 17px;
  border: 1px solid rgba(255, 93, 86, 0.22);
  border-radius: 17px;
  background: #f3e9e7;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.os-preflight-focus.error .os-preflight-state-mark {
  grid-row: 1 / span 2;
  align-self: start;
  color: #e4514b;
  border-color: rgba(228, 81, 75, 0.28);
  background: rgba(228, 81, 75, 0.08);
}

.os-preflight-focus.error .os-preflight-focus-copy h1 {
  grid-column: 2;
  margin: 1px 0 0;
  color: #1b201a;
  font-size: 28px;
  line-height: 1.12;
}

.os-preflight-focus.error .os-preflight-focus-copy p {
  grid-column: 2;
  color: #5e665c;
  font-size: 11px;
  line-height: 1.55;
}

.os-preflight-focus.error .os-preflight-diagnosis {
  border-color: rgba(255, 93, 86, 0.16);
  background: rgba(255, 93, 86, 0.045);
}

.os-preflight-rail-step small,
.os-preflight-rail-step > em,
.os-preflight-side-note,
.os-preflight-coach span,
.os-preflight-summary-row small,
.os-preflight-summary-row em,
.os-preflight-start small,
.os-preflight-start-block > p,
.os-preflight-audio-head small,
.os-preflight-audio-head > em,
.os-preflight-audio-head > button,
.os-preflight-audio-detail,
.os-preflight-audio-detail > button {
  font-size: 9px;
}

.os-preflight-coach small,
.os-preflight-diagnosis p,
.os-preflight-required-progress > div,
.os-preflight-focus > footer,
.os-preflight-local {
  font-size: 10px;
}

.os-preflight-summary-row b,
.os-preflight-audio-head b {
  font-size: 11px;
}

.os-preflight-summary-row {
  min-height: 46px;
}

.os-preflight-coach {
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 104px;
}

.os-preflight-coach img {
  width: 88px;
  height: 88px;
}

@media (max-width: 1120px) {
  .os-preflight-focus.error .os-preflight-focus-copy h1 { font-size: 25px; }
  .os-preflight-coach { grid-template-columns: 64px minmax(0, 1fr); min-height: 82px; }
  .os-preflight-coach img { width: 64px; height: 64px; }
  .os-preflight-summary-row small { font-size: 8px; }
}
