:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #090d12;
  color: #f4f7fb;
}

/* AI Live OS workflow UI */
.os-page {
  --os-bg: #f4f6f8;
  --os-panel: #fff;
  --os-text: #17202a;
  --os-muted: #66727f;
  --os-line: #e5e9ed;
  --os-red: #e94a35;
  --os-red-dark: #c93624;
  --os-green: #15966d;
  --os-blue: #3867d6;
  margin: 0;
  min-width: 1180px;
  background: var(--os-bg);
  color: var(--os-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.os-page * { box-sizing: border-box; }
.os-page [hidden] { display: none !important; }
.os-page button, .os-page input, .os-page select, .os-page textarea { font: inherit; }
.os-page button { cursor: pointer; }
.os-page button:disabled { cursor: not-allowed; opacity: .45; }
.os-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.os-sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; z-index: 10; display: flex; flex-direction: column; padding: 24px 16px 18px; background: #17212b; color: #fff; }
.os-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; color: inherit; text-decoration: none; }
.os-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #ff7867, #e83925); font-size: 20px; font-weight: 900; box-shadow: 0 8px 24px #e94a3544; }
.os-brand span:last-child { display: grid; gap: 2px; }
.os-brand strong { font-size: 16px; letter-spacing: -.01em; }
.os-brand small { color: #8f9ca8; font-size: 11px; }
.os-nav { display: grid; gap: 7px; }
.os-nav button { position: relative; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; width: 100%; padding: 12px 12px; border: 0; border-radius: 11px; background: transparent; color: #9facb8; text-align: left; }
.os-nav button > span { grid-row: 1 / 3; align-self: center; font-size: 19px; }
.os-nav button b { color: #d7dde2; font-size: 14px; }
.os-nav button small { margin-top: 2px; font-size: 10px; }
.os-nav button:hover { background: #202d39; }
.os-nav button.active { background: #fff; color: var(--os-red); box-shadow: 0 12px 30px #0003; }
.os-nav button.active b { color: #17212b; }
.os-nav button.active small { color: #7c8792; }
.os-future-phases { display: grid; gap: 7px; margin-top: 22px; padding: 14px 10px; border-top: 1px solid #2d3a45; }
.os-future-phases > span { color: #657582; font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.os-future-phases > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; color: #85939e; }
.os-future-phases b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #3a4853; border-radius: 7px; font-size: 8px; }
.os-future-phases p { display: grid; gap: 1px; margin: 0; }
.os-future-phases strong { color: #aab5bd; font-size: 10px; }
.os-future-phases small { font-size: 8px; }
.os-future-phases em { padding: 3px 5px; border-radius: 999px; background: #26343f; color: #7e8c97; font-size: 7px; font-style: normal; }
.os-local-state { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 10px; border: 1px solid #30404e; border-radius: 12px; background: #1e2a35; }
.os-local-state > i { width: 9px; height: 9px; border-radius: 50%; background: #39d4a0; box-shadow: 0 0 0 5px #39d4a01b; }
.os-local-state span { display: grid; gap: 2px; }
.os-local-state strong { font-size: 11px; }
.os-local-state small { color: #81909c; font-size: 9px; }
.os-main { grid-column: 2; padding: 28px 32px 48px; }
.os-topbar { display: flex; justify-content: space-between; align-items: center; max-width: 1480px; margin: 0 auto 24px; }
.os-topbar p { margin: 0; }
.os-topbar > div:first-child > p:first-child, .os-panel-head > div > span { color: var(--os-red); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.os-topbar h1 { margin: 4px 0 4px; font-size: 28px; letter-spacing: -.035em; }
.os-topbar #page-subtitle { color: var(--os-muted); font-size: 13px; }
.os-top-actions { display: flex; align-items: center; gap: 10px; }
.os-user-chip { max-width: 180px; overflow: hidden; padding: 9px 12px; border-radius: 999px; background: #17212b; color: #fff; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.os-connection { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--os-line); border-radius: 999px; background: #fff; color: var(--os-muted); font-size: 11px; }
.os-connection i { width: 7px; height: 7px; border-radius: 50%; background: #e3a522; }
.os-connection.connected i { background: var(--os-green); }
.os-connection.error i { background: var(--os-red); }
.os-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; background: #eef1f4; color: var(--os-text); font-size: 12px; font-weight: 750; transition: .18s ease; }
.os-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px #24314113; }
.os-button.primary { background: var(--os-red); color: #fff; }
.os-button.primary:hover:not(:disabled) { background: var(--os-red-dark); }
.os-button.ghost { border-color: var(--os-line); background: #fff; }
.os-button.danger { border-color: #f2c6c1; background: #fff5f3; color: #b93425; }
.os-button.light { background: #fff; color: #a42d21; }
.os-button.wide { width: 100%; }
.os-button.large { min-height: 48px; font-size: 14px; }

/* Public cloud login */
.login-page { min-height: 100vh; margin: 0; background: #eef1f4; color: #17202a; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.login-page * { box-sizing: border-box; }
.login-shell { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(440px, 1.08fr); min-height: 100vh; }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; overflow: hidden; padding: clamp(36px, 6vw, 82px); background: radial-gradient(circle at 85% 10%, #ec604d55, transparent 30%), linear-gradient(145deg, #111b24, #21313d); color: #fff; }
.login-intro::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 430px; height: 430px; border: 1px solid #ffffff18; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff08, 0 0 0 140px #ffffff05; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.login-brand .os-brand-mark { flex: 0 0 auto; }
.login-brand span:last-child { display: grid; gap: 2px; }
.login-brand strong { font-size: 17px; }
.login-brand small { color: #97a5b0; font-size: 11px; }
.login-message { position: relative; z-index: 1; max-width: 620px; padding: 72px 0; }
.login-message > span { color: #f4816f; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.login-message h1 { max-width: 560px; margin: 13px 0 18px; font-size: clamp(36px, 5vw, 68px); line-height: 1.05; letter-spacing: -.055em; }
.login-message p { max-width: 540px; margin: 0; color: #bdc7ce; font-size: 15px; line-height: 1.75; }
.login-stage { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.login-stage span { padding: 8px 10px; border: 1px solid #ffffff1f; border-radius: 999px; background: #ffffff09; color: #cbd3d9; font-size: 10px; }
.login-stage span:first-child { border-color: #e95d49; background: #e94a3526; color: #ff9d8f; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 38px; }
.login-card { width: min(430px, 100%); padding: clamp(28px, 5vw, 48px); border: 1px solid #dfe4e8; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px #27323a17; }
.login-card > span { color: #dc4b37; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.login-card h2 { margin: 8px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 27px; color: #74808a; font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 16px; }
.login-field { display: grid; gap: 7px; }
.login-field span { color: #45515a; font-size: 11px; font-weight: 750; }
.login-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dbe1e5; border-radius: 10px; outline: none; background: #f9fafb; color: #17202a; font: inherit; font-size: 14px; transition: .15s ease; }
.login-field input:focus { border-color: #e94a35; background: #fff; box-shadow: 0 0 0 3px #e94a3517; }
.login-submit { min-height: 50px; margin-top: 4px; border: 0; border-radius: 10px; background: #e94a35; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px #d9443030; }
.login-submit:hover:not(:disabled) { background: #ce3c2a; }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-error { min-height: 18px; margin: -4px 0 0; color: #bd3121; font-size: 11px; line-height: 1.5; }
.login-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e8ecef; color: #87929a; font-size: 10px; line-height: 1.6; }
@media (max-width: 840px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding: 30px 26px; }
  .login-message { padding: 56px 0 26px; }
  .login-message h1 { font-size: 40px; }
  .login-stage { display: none; }
  .login-panel { min-height: auto; padding: 24px 18px 42px; }
}
.os-view { display: none; max-width: 1480px; margin: 0 auto; }
.os-view.active { display: block; animation: os-enter .2s ease; }
@keyframes os-enter { from { opacity: 0; transform: translateY(3px); } }
.os-next-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 146px; margin-bottom: 18px; padding: 25px 28px; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 75% -20%, #ff9c8766, transparent 40%), linear-gradient(135deg, #e94a35, #be2f22); color: #fff; box-shadow: 0 16px 36px #ba392128; }
.os-next-card .os-next-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #ffffff44; border-radius: 16px; background: #ffffff14; font-size: 25px; }
.os-next-card span { font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; opacity: .76; }
.os-next-card h2 { margin: 5px 0 4px; font-size: 23px; letter-spacing: -.02em; }
.os-next-card p { margin: 0; color: #ffe4df; font-size: 13px; }
.os-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.os-kpi-row article { display: grid; gap: 4px; min-height: 98px; padding: 17px 19px; border: 1px solid var(--os-line); border-radius: 13px; background: #fff; box-shadow: 0 4px 16px #26313a05; }
.os-kpi-row span { color: var(--os-muted); font-size: 11px; }
.os-kpi-row strong { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.os-kpi-row small { color: #94a0aa; font-size: 10px; }
.os-two-column { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 18px; margin-bottom: 18px; }
.os-panel { padding: 20px; border: 1px solid var(--os-line); border-radius: 15px; background: var(--os-panel); box-shadow: 0 5px 20px #26313a06; }
.os-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.os-panel-head.compact { margin-bottom: 15px; }
.os-panel-head h2 { margin: 3px 0 2px; font-size: 17px; letter-spacing: -.02em; }
.os-panel-head p { margin: 0; color: var(--os-muted); font-size: 11px; }
.os-room-list { display: grid; gap: 9px; }
.os-room-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid #edf0f2; border-radius: 12px; background: #fbfcfc; }
.os-room-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #192630; color: #fff; font-size: 11px; font-weight: 900; }
.os-room-info > div:first-child { display: flex; align-items: center; gap: 8px; }
.os-room-info h3 { margin: 0; font-size: 13px; }
.os-room-info p { margin: 3px 0 6px; color: var(--os-muted); font-size: 10px; }
.os-room-info > small { display: block; margin-top: 4px; color: #98a1a9; font-size: 9px; }
.os-mini-progress { width: 100%; height: 4px; overflow: hidden; border-radius: 9px; background: #e8ecef; }
.os-mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--os-red); }
.os-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #edf1f4; color: #67737d; font-size: 9px; font-weight: 800; white-space: nowrap; }
.os-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.os-status.live { background: #e5f7f0; color: var(--os-green); }
.os-status.paused { background: #fff5dc; color: #a97800; }
.os-status.stopped { background: #f0f1f2; color: #7e858c; }
.os-status.ready { background: #eaf0ff; color: var(--os-blue); }
.os-flow { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.os-flow li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 10px; min-height: 54px; }
.os-flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 31px; bottom: -3px; width: 1px; background: #dde2e6; }
.os-flow li > b { display: grid; place-items: center; align-self: start; width: 31px; height: 31px; border-radius: 50%; background: #fff0ed; color: var(--os-red); font-size: 11px; }
.os-flow strong { font-size: 12px; }
.os-flow p { margin: 3px 0 0; color: var(--os-muted); font-size: 10px; }
.os-review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.os-review-card { padding: 16px; border: 1px solid var(--os-line); border-radius: 12px; background: #fbfcfc; text-align: left; }
.os-review-card:hover { border-color: #e9a39a; background: #fffaf9; }
.os-review-card > span { color: var(--os-red); font-size: 9px; font-weight: 800; }
.os-review-card h3 { margin: 6px 0; font-size: 13px; }
.os-review-card p { display: -webkit-box; min-height: 32px; margin: 0 0 12px; overflow: hidden; color: var(--os-muted); font-size: 10px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.os-review-card footer { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--os-line); font-size: 9px; }
.os-review-card footer em { margin-left: auto; color: var(--os-red); font-style: normal; font-weight: 800; }
.os-empty { padding: 24px; border: 1px dashed #dbe0e4; border-radius: 11px; color: var(--os-muted); text-align: center; }
.os-empty b { color: var(--os-text); font-size: 12px; }
.os-empty p { margin: 4px 0 0; font-size: 10px; }
.os-empty.small { padding: 12px; }
.os-context-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; }
.os-context-bar label { display: flex; align-items: center; gap: 9px; color: var(--os-muted); font-size: 10px; font-weight: 700; }
.os-context-bar select { min-width: 240px; padding: 8px 30px 8px 10px; border: 1px solid var(--os-line); border-radius: 8px; background: #f8fafb; color: var(--os-text); font-size: 11px; font-weight: 750; }
#control-room-status { display: flex; align-items: center; gap: 9px; }
#control-room-status > small { color: var(--os-muted); font-size: 10px; }
.os-lifecycle { display: flex; gap: 8px; margin-left: auto; }
.os-readiness { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #bae4d4; border-radius: 12px; background: #f0fbf7; }
.os-readiness > div:first-child { display: flex; align-items: center; gap: 10px; }
.os-readiness > div:first-child > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--os-green); color: #fff; }
.os-readiness span { display: grid; gap: 2px; }
.os-readiness strong { font-size: 11px; }
.os-readiness small { color: var(--os-muted); font-size: 9px; }
.os-checks { display: flex; gap: 5px; }
.os-checks span { display: inline-flex; padding: 5px 7px; border-radius: 7px; background: #fff; color: #7c858d; font-size: 8px; }
.os-checks span.done { color: var(--os-green); }
.os-control-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.os-control-main { display: grid; gap: 14px; min-width: 0; }
.os-sticky-panel { position: sticky; top: 18px; }
.os-monitor { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 17px; }
.os-video-wrap { position: relative; height: 330px; overflow: hidden; border-radius: 12px; background: #182028; }
.os-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.os-video-wrap > div { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 34px 13px 12px; background: linear-gradient(transparent, #0e151dd9); color: #fff; }
.os-video-wrap strong { font-size: 11px; }
.os-video-wrap span { color: #c8d0d7; font-size: 9px; }
.os-live-chip { padding: 6px 9px; border-radius: 999px; background: #eef1f4; color: #75818a; font-size: 9px; font-weight: 850; }
.os-live-chip.active { background: #e8f8f1; color: var(--os-green); }
.os-speech { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--os-line); border-radius: 12px; background: linear-gradient(145deg, #fff, #fafbfc); }
.os-speech > div:first-child { display: flex; gap: 6px; }
.os-speech > div:first-child span { padding: 4px 7px; border-radius: 6px; background: #fff0ed; color: var(--os-red); font-size: 8px; font-weight: 850; }
.os-speech blockquote { margin: 25px 0; color: #202a32; font-family: Georgia, serif; font-size: 21px; line-height: 1.55; }
.os-speech footer { display: flex; justify-content: space-between; margin-top: auto; color: var(--os-muted); font-size: 9px; }
.os-buffer { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--os-line); color: var(--os-muted); font-size: 9px; }
.os-buffer > i { grid-column: 1 / 3; height: 4px; overflow: hidden; border-radius: 6px; background: #e9edef; }
.os-buffer > i > b { display: block; height: 100%; background: var(--os-green); }
.os-progress { height: 5px; margin: -8px 0 15px; overflow: hidden; border-radius: 9px; background: #e9edef; }
.os-progress i { display: block; height: 100%; border-radius: inherit; background: var(--os-red); }
.os-product-plan { display: grid; gap: 7px; }
.os-product-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 10px; padding: 11px; border: 1px solid #edf0f2; border-radius: 10px; }
.os-product-row.active { border-color: #efb0a8; background: #fff9f7; }
.os-product-row > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #edf0f2; font-size: 10px; }
.os-product-row.active > b { background: var(--os-red); color: #fff; }
.os-product-row > div > div:first-child { display: flex; align-items: center; gap: 7px; }
.os-product-row strong { font-size: 11px; }
.os-product-row > div > div:first-child span { padding: 3px 6px; border-radius: 5px; background: #fbe4df; color: var(--os-red); font-size: 8px; font-weight: 800; }
.os-product-row small { color: var(--os-muted); font-size: 9px; }
.os-product-note { display: flex; gap: 5px; margin-top: 7px; }
.os-product-note input { width: min(520px, 100%); padding: 6px 8px; border: 1px solid #e3e7ea; border-radius: 7px; background: #fff; font-size: 9px; }
.os-product-note button { border: 0; background: transparent; color: var(--os-red); font-size: 9px; font-weight: 800; }
.os-row-actions { display: grid; gap: 5px; }
.os-row-actions .os-button { min-height: 28px; padding-inline: 9px; font-size: 9px; }
.os-signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.os-signal-grid h3, .os-control-side h3 { margin: 0 0 10px; font-size: 12px; }
.os-comment-form { display: grid; grid-template-columns: 90px 1fr auto; gap: 6px; }
.os-comment-form input, .os-comment-form textarea { padding: 8px; border: 1px solid var(--os-line); border-radius: 8px; background: #fafbfc; font-size: 10px; resize: vertical; }
.os-comment-list, .os-advice-list { display: grid; gap: 6px; margin-top: 9px; }
.os-comment-list article, .os-advice-list article { padding: 10px; border: 1px solid #edf0f2; border-radius: 9px; background: #fcfdfd; }
.os-comment-list article > div { display: flex; justify-content: space-between; font-size: 9px; }
.os-comment-list article p, .os-advice-list article p { margin: 4px 0 0; color: var(--os-muted); font-size: 9px; line-height: 1.5; }
.os-advice-list article > span { color: var(--os-red); font-size: 8px; font-weight: 850; }
.os-advice-list h4 { margin: 4px 0 0; font-size: 10px; line-height: 1.4; }
.os-form { display: grid; gap: 11px; }
.os-form label, .os-detail-field, .os-create-form > section > label { display: grid; gap: 5px; color: #4f5c67; font-size: 10px; font-weight: 750; }
.os-form input, .os-form select, .os-form textarea, .os-detail-field input, .os-detail-field textarea, .os-create-form input, .os-create-form select { width: 100%; padding: 9px 10px; border: 1px solid var(--os-line); border-radius: 8px; outline: 0; background: #fafbfc; color: var(--os-text); font-size: 10px; font-weight: 500; resize: vertical; }
.os-form input:focus, .os-form select:focus, .os-form textarea:focus, .os-create-form input:focus { border-color: #e99589; box-shadow: 0 0 0 3px #e94a350e; }
.os-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.os-range-row label { min-width: 0; }
.os-range-row output { float: right; color: var(--os-red); }
.os-range-row input { height: 22px; padding: 0; accent-color: var(--os-red); }
.os-control-side hr { height: 1px; margin: 17px 0; border: 0; background: var(--os-line); }
.os-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.os-quick-actions button { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--os-line); border-radius: 9px; background: #fafbfc; text-align: left; }
.os-quick-actions strong { font-size: 10px; }
.os-quick-actions small { color: var(--os-muted); font-size: 8px; }
.os-control-side details { margin-top: 14px; padding: 10px; border: 1px solid var(--os-line); border-radius: 9px; }
.os-control-side summary { color: #596570; font-size: 9px; font-weight: 800; }
.os-detail-field { margin: 9px 0; }

/* Rehearsal lab */
.sim-safety-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #b8dfd1; border-radius: 13px; background: linear-gradient(100deg, #effbf7, #f8fcfb); }
.sim-safety-banner > div:first-child { display: flex; align-items: center; gap: 11px; }
.sim-safety-banner > div:first-child > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--os-green); color: #fff; font-size: 10px; letter-spacing: .08em; }
.sim-safety-banner span { display: grid; gap: 2px; }
.sim-safety-banner strong { font-size: 11px; }
.sim-safety-banner small { color: #5d756d; font-size: 9px; }
.sim-safety-tags { display: flex; grid-auto-flow: column; gap: 6px; }
.sim-safety-tags span { padding: 5px 8px; border-radius: 7px; background: #fff; color: #268364; font-size: 8px; font-weight: 800; }
.sim-toolbar { display: flex; align-items: end; gap: 9px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--os-line); border-radius: 13px; background: #fff; }
.sim-toolbar label, .sim-injector label { display: grid; gap: 5px; color: var(--os-muted); font-size: 9px; font-weight: 800; }
.sim-toolbar select, .sim-injector input, .sim-injector textarea { padding: 8px 9px; border: 1px solid var(--os-line); border-radius: 8px; outline: 0; background: #fafbfc; color: var(--os-text); font-size: 10px; resize: vertical; }
.sim-toolbar label:first-child select { min-width: 190px; }
.sim-toolbar label:nth-child(2) select { min-width: 210px; }
.sim-run-actions { display: flex; gap: 6px; margin-left: auto; }
.os-button.danger-outline { border: 1px solid #ecc1bc; background: #fff; color: #bd3c2d; }
.sim-scenario-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 14px; padding: 20px 22px; border-radius: 15px; background: #17212b; color: #fff; }
.sim-scenario-hero > div:first-child > span { color: #ff8f7d; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.sim-scenario-hero h2 { margin: 5px 0; font-size: 19px; }
.sim-scenario-hero p { max-width: 760px; margin: 0; color: #aeb9c2; font-size: 10px; line-height: 1.55; }
.sim-scenario-hero > div:last-child { display: grid; justify-items: end; gap: 4px; min-width: 180px; }
.sim-scenario-hero > div:last-child > strong { font-size: 16px; }
.sim-scenario-hero > div:last-child > small { color: #94a2ad; font-size: 8px; }
.sim-state { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: #2a3945; color: #c4cdd4; font-size: 8px; font-weight: 800; }
.sim-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sim-state.running { background: #173f34; color: #60deb1; }
.sim-state.paused { background: #493d1d; color: #ffd275; }
.sim-state.completed { background: #283c5b; color: #8fb9ff; }
.sim-kpis { margin-bottom: 14px; }
.sim-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.sim-dashboard-main { display: grid; gap: 14px; min-width: 0; }
.sim-dashboard-side { display: grid; gap: 14px; position: sticky; top: 14px; }
.sim-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim-chart-panel { min-height: 300px; }
.sim-legend { display: flex; gap: 11px; color: var(--os-muted); font-size: 8px; font-weight: 800; }
.sim-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 4px; vertical-align: middle; background: currentColor; }
.sim-legend .viewers { color: var(--os-red); }
.sim-legend .comments { color: #326edb; }
.sim-legend .orders { color: #23a477; }
.sim-trend-chart { height: 190px; border-radius: 10px; background: linear-gradient(#fff, #fafcfd); }
.sim-trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.sim-trend-chart line { stroke: #e8ecef; stroke-width: 1; }
.sim-trend-chart polyline { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sim-trend-chart .viewers { stroke: var(--os-red); }
.sim-trend-chart .comments { stroke: #326edb; }
.sim-trend-chart .orders { stroke: #23a477; }
.sim-timeline-progress { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; margin-top: 8px; color: var(--os-muted); font-size: 8px; }
.sim-timeline-progress > div { position: relative; height: 6px; border-radius: 8px; background: #e8ecef; }
.sim-timeline-progress > div > i { display: block; height: 100%; border-radius: inherit; background: var(--os-red); }
.sim-timeline-progress > div > b { position: absolute; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: #bec6cc; box-shadow: 0 0 0 1px #aab4bc; }
.sim-timeline-progress > div > b.done { background: var(--os-red); box-shadow: 0 0 0 1px var(--os-red); }
.sim-health-chip { padding: 6px 8px; border-radius: 7px; background: #eaf8f3; color: var(--os-green); font-size: 8px; font-weight: 900; }
.sim-health-chip.warning, .sim-health-chip.degraded { background: #fff5d9; color: #9b7000; }
.sim-health-chip.critical { background: #feeae7; color: #c83d2d; }
.sim-stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sim-stream-grid article { display: grid; gap: 4px; padding: 9px; border: 1px solid #edf0f2; border-radius: 8px; background: #fbfcfc; }
.sim-stream-grid span { color: var(--os-muted); font-size: 8px; }
.sim-stream-grid strong { font-size: 11px; }
.sim-alert-list { display: grid; gap: 6px; margin-top: 9px; }
.sim-alert-list article { display: grid; grid-template-columns: 22px 1fr; gap: 7px; padding: 8px; border: 1px solid #f0dec0; border-radius: 8px; background: #fffbf2; }
.sim-alert-list article.high { border-color: #f0c4be; background: #fff5f3; }
.sim-alert-list article > b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e9b04d; color: #fff; font-size: 9px; }
.sim-alert-list article.high > b { background: var(--os-red); }
.sim-alert-list strong { font-size: 9px; }
.sim-alert-list p { margin: 2px 0 0; color: var(--os-muted); font-size: 8px; line-height: 1.4; }
.sim-comment-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.sim-comment-summary article { display: grid; justify-items: center; gap: 2px; padding: 8px 3px; border-radius: 8px; background: #f4f6f7; }
.sim-comment-summary strong { font-size: 14px; }
.sim-comment-summary span { color: var(--os-muted); font-size: 7px; }
.sim-comment-feed { display: grid; gap: 5px; max-height: 210px; overflow: auto; }
.sim-comment-feed article { display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; padding: 8px; border: 1px solid #edf0f2; border-radius: 8px; }
.sim-comment-feed b { font-size: 8px; }
.sim-comment-feed p { grid-column: 1 / 3; margin: 0; color: #4d5963; font-size: 9px; }
.sim-comment-feed span { grid-row: 1; grid-column: 2; color: #a97900; font-size: 7px; font-weight: 800; }
.sim-comment-feed span.answered { color: var(--os-green); }
.sim-event-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sim-event-columns h3 { margin: 0 0 8px; font-size: 10px; }
.sim-schedule-list, .sim-event-log { display: grid; max-height: 300px; overflow: auto; }
.sim-schedule-list article { display: grid; grid-template-columns: 42px 12px 1fr; gap: 7px; min-height: 39px; color: #8b959d; }
.sim-schedule-list time, .sim-event-log time { font-size: 8px; font-weight: 800; }
.sim-schedule-list i { position: relative; width: 8px; height: 8px; border: 2px solid #cbd2d7; border-radius: 50%; }
.sim-schedule-list article:not(:last-child) i::after { content: ""; position: absolute; top: 8px; left: 2px; width: 1px; height: 31px; background: #dde2e5; }
.sim-schedule-list article.done i { border-color: var(--os-green); background: var(--os-green); }
.sim-schedule-list article.next { color: var(--os-text); }
.sim-schedule-list article.next i { border-color: var(--os-red); }
.sim-schedule-list strong, .sim-event-log strong { display: block; font-size: 9px; }
.sim-schedule-list small, .sim-event-log small { color: var(--os-muted); font-size: 7px; }
.sim-event-log { gap: 5px; }
.sim-event-log article { display: grid; grid-template-columns: 40px 1fr; gap: 7px; padding: 7px; border-left: 2px solid #dce2e6; background: #fafbfc; }
.sim-score-card { background: linear-gradient(155deg, #fff, #fbfcfc); }
.sim-score-head { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; }
#sim-score-ring { --score: 0deg; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(var(--os-red) var(--score), #e8ecef 0); }
#sim-score-ring strong { font-size: 23px; }
#sim-score-ring small { margin-top: -19px; color: var(--os-muted); font-size: 7px; }
.sim-score-head > div:last-child > span { color: var(--os-red); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.sim-score-head h2 { margin: 4px 0; font-size: 14px; }
.sim-score-head p { margin: 0; color: var(--os-muted); font-size: 8px; line-height: 1.45; }
.sim-assertion-list { display: grid; gap: 5px; margin: 14px 0; }
.sim-assertion-list article { display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: start; padding: 8px; border-radius: 8px; background: #f5f7f8; }
.sim-assertion-list article > b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dce1e4; color: #7b858d; font-size: 8px; }
.sim-assertion-list article.passed > b { background: #dff5ec; color: var(--os-green); }
.sim-assertion-list article.warning > b { background: #fff0c9; color: #9a6e00; }
.sim-assertion-list article.failed > b { background: #fee4e0; color: var(--os-red); }
.sim-assertion-list strong { display: block; font-size: 9px; }
.sim-assertion-list small { display: block; margin-top: 2px; color: var(--os-muted); font-size: 7px; line-height: 1.4; }
.sim-injector { display: grid; gap: 9px; }
.sim-inject-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sim-inject-grid button { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--os-line); border-radius: 8px; background: #fafbfc; text-align: left; }
.sim-inject-grid button:hover { border-color: #e8a39a; background: #fff8f6; }
.sim-inject-grid b { font-size: 9px; }
.sim-inject-grid small { color: var(--os-muted); font-size: 7px; }

@media (max-width: 1180px) {
  .sim-dashboard-grid { grid-template-columns: 1fr; }
  .sim-dashboard-side { position: static; grid-template-columns: 1fr 1fr; }
  .sim-toolbar { flex-wrap: wrap; }
  .sim-run-actions { width: 100%; margin-left: 0; }
}
.os-help-text { margin-left: auto; color: var(--os-muted); font-size: 10px; }
.os-empty-large { padding: 70px; border: 1px dashed #d7dde1; border-radius: 15px; background: #fff; text-align: center; }
.os-empty-large b { font-size: 17px; }
.os-empty-large p { color: var(--os-muted); font-size: 11px; }
.os-review-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 14px; padding: 24px 26px; border-radius: 16px; background: #17212b; color: #fff; }
.os-review-hero span { color: #ff927f; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.os-review-hero h2 { margin: 5px 0; font-size: 23px; }
.os-review-hero p { max-width: 760px; margin: 0; color: #bec7ce; font-size: 11px; line-height: 1.6; }
.os-review-hero > div:last-child { display: grid; min-width: 180px; gap: 3px; padding-left: 22px; border-left: 1px solid #ffffff22; }
.os-review-hero > div:last-child strong { font-size: 20px; }
.os-review-hero > div:last-child small { color: #9eabb5; font-size: 9px; }
.review-columns { grid-template-columns: 1.25fr 1fr; }
.os-interest-list { display: grid; gap: 13px; }
.os-interest-list article { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.os-interest-list article > b { display: grid; place-items: center; align-self: start; width: 25px; height: 25px; border-radius: 8px; background: #fff0ed; color: var(--os-red); font-size: 9px; }
.os-interest-list article > div > div { display: flex; justify-content: space-between; font-size: 10px; }
.os-interest-list i { display: block; height: 7px; margin: 6px 0 4px; overflow: hidden; border-radius: 8px; background: #edf0f2; }
.os-interest-list em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--os-red), #ff8a74); }
.os-interest-list small { color: var(--os-muted); font-size: 8px; }
.os-optimization-list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.os-optimization-list li { display: grid; grid-template-columns: 27px 1fr; gap: 9px; padding: 11px; border: 1px solid #edf0f2; border-radius: 10px; background: #fbfcfc; }
.os-optimization-list b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #17212b; color: #fff; font-size: 9px; }
.os-optimization-list p { margin: 1px 0 0; font-size: 10px; line-height: 1.55; }
.os-create-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 18px; align-items: start; }
.os-create-steps { position: sticky; top: 18px; padding: 21px; border-radius: 15px; background: #17212b; color: #fff; }
.os-create-steps h2 { margin: 0; font-size: 18px; }
.os-create-steps > p { margin: 5px 0 22px; color: #93a1ac; font-size: 10px; }
.os-create-steps ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.os-create-steps li { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 10px; min-height: 70px; }
.os-create-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 31px; bottom: 0; width: 1px; background: #344451; }
.os-create-steps li > b { z-index: 1; display: grid; place-items: center; align-self: start; width: 31px; height: 31px; border-radius: 50%; background: #263642; font-size: 10px; }
.os-create-steps li.active > b { background: var(--os-red); }
.os-create-steps li span { display: grid; align-content: start; gap: 3px; }
.os-create-steps strong { font-size: 11px; }
.os-create-steps small { color: #86949f; font-size: 9px; }
.os-create-form { padding: 0; overflow: hidden; }
.os-create-form > section { display: grid; gap: 14px; padding: 25px 28px; border-bottom: 1px solid var(--os-line); }
.os-create-form > section:last-child { border-bottom: 0; background: #fbfcfc; }
.os-step-title { display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: center; }
.os-step-title > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff0ed; color: var(--os-red); font-size: 12px; }
.os-step-title h2 { margin: 0; font-size: 16px; }
.os-step-title p { margin: 3px 0 0; color: var(--os-muted); font-size: 10px; }
.os-persona-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.os-persona-option { position: relative; cursor: pointer; }
.os-persona-option input { position: absolute; opacity: 0; }
.os-persona-option > span { display: grid; min-height: 130px; align-content: start; gap: 7px; padding: 14px; border: 1px solid var(--os-line); border-radius: 11px; background: #fafbfc; }
.os-persona-option input:checked + span { border-color: var(--os-red); background: #fff8f6; box-shadow: inset 0 0 0 1px var(--os-red); }
.os-persona-option strong { font-size: 11px; }
.os-persona-option small { color: var(--os-muted); font-size: 9px; line-height: 1.45; }
.os-persona-option em { margin-top: auto; color: var(--os-red); font-size: 8px; font-style: normal; }
.os-product-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.os-product-picker label { position: relative; cursor: pointer; }
.os-product-picker input { position: absolute; opacity: 0; }
.os-product-picker label > span { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--os-line); border-radius: 10px; background: #fafbfc; }
.os-product-picker input:checked + span { border-color: #efafa6; background: #fff8f6; }
.os-product-picker label > span > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #e8ecef; font-size: 9px; }
.os-product-picker input:checked + span > b { background: var(--os-red); color: #fff; }
.os-product-picker label > span > span { display: grid; gap: 2px; }
.os-product-picker strong { font-size: 10px; }
.os-product-picker small { color: var(--os-muted); font-size: 8px; }
.os-create-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.os-create-summary > div { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--os-line); border-radius: 9px; background: #fff; }
.os-create-summary span { color: var(--os-muted); font-size: 8px; }
.os-create-summary strong { font-size: 10px; }
.created-session-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 18px; padding: 26px 28px; overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 85% 0, #ffffff26, transparent 32%), linear-gradient(135deg, #17232c, #243743); color: #fff; box-shadow: 0 16px 38px #17212b20; }
.created-session-result > div:first-child > span { color: #62d9ad; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.created-session-result h2 { margin: 6px 0; font-size: 22px; }
.created-session-result p { margin: 0; color: #b9c4cb; font-size: 11px; }
.created-session-code { display: grid; gap: 7px; min-width: 350px; padding: 17px; border: 1px solid #ffffff24; border-radius: 13px; background: #ffffff0c; }
.created-session-code span { color: #9fadb7; font-size: 9px; }
.created-session-code strong { color: #fff; font-size: 25px; letter-spacing: .045em; }
.created-session-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.waiting-session-panel { margin-top: 18px; }
.waiting-session-list { display: grid; gap: 8px; }
.waiting-session-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #e5e9ed; border-radius: 11px; background: #fafbfc; }
.waiting-session-item > div { min-width: 0; }
.waiting-session-item h3 { margin: 0; font-size: 12px; }
.waiting-session-item p { margin: 5px 0 0; color: #6d7982; font-size: 9px; }
.waiting-session-item code { display: inline-block; margin-right: 6px; color: #b93b2b; font-family: inherit; font-size: 11px; font-weight: 850; letter-spacing: .025em; }
.waiting-session-actions { display: flex; gap: 6px; }
.os-toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 380px; padding: 12px 16px; border-radius: 10px; background: #17212b; color: #fff; box-shadow: 0 12px 40px #17212b44; font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.os-toast.visible { opacity: 1; transform: translateY(0); }
.os-toast.error { background: #b53325; }
@media (max-width: 1280px) {
  .os-main { padding-inline: 22px; }
  .os-control-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .os-monitor { grid-template-columns: 230px minmax(0, 1fr); }
  .os-persona-list { grid-template-columns: 1fr; }
}

/* Local platform control plane */
.platform-page {
  min-height: 100vh;
  background: #f3f5f7;
  color: #17202a;
}

.platform-page button,
.platform-page input,
.platform-page textarea,
.platform-page select {
  font: inherit;
}

.platform-page button {
  cursor: pointer;
}

.platform-page button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.platform-app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.platform-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px;
  border-right: 1px solid #e1e5e9;
  background: #fff;
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 25px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ff4d35;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(255, 77, 53, 0.25);
}

.platform-brand div,
.sidebar-environment div {
  display: grid;
  gap: 2px;
}

.platform-brand strong {
  color: #18212b;
  font-size: 15px;
}

.platform-brand small,
.sidebar-environment small {
  color: #8c98a5;
  font-size: 10px;
}

.platform-nav {
  display: grid;
  gap: 5px;
}

.platform-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #65717d;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.platform-nav button span {
  width: 18px;
  color: #9ba6b2;
  font-size: 16px;
  text-align: center;
}

.platform-nav button.active {
  background: #fff0ed;
  color: #df3e27;
}

.platform-nav button.active span {
  color: #ff4d35;
}

.sidebar-environment {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid #e8ebee;
  border-radius: 12px;
  background: #fafbfc;
}

.sidebar-environment strong {
  color: #27313b;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.local-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20b881;
  box-shadow: 0 0 0 5px rgba(32, 184, 129, 0.1);
}

.platform-main {
  min-width: 0;
  padding: 24px 30px 50px;
}

.platform-header,
.room-heading,
.panel-heading,
.header-actions,
.room-title-row,
.room-lifecycle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-header {
  margin-bottom: 22px;
}

.platform-kicker,
.section-label {
  margin: 0 0 4px;
  color: #9aa4ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.platform-header h1,
.room-heading h2,
.platform-panel h3 {
  margin: 0;
  color: #17202a;
}

.platform-header h1 {
  font-size: 24px;
  letter-spacing: -0.035em;
}

.ghost-button,
.mini-button {
  border: 1px solid #dfe4e8;
  border-radius: 9px;
  background: #fff;
  color: #56616d;
}

.ghost-button {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
}

.connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.connection-chip.connected {
  background: #e9f8f2;
  color: #13845e;
}

.connection-chip.pending {
  background: #fff6e5;
  color: #9d6a0c;
}

.connection-chip.error {
  background: #ffeded;
  color: #c83e3e;
}

.room-heading {
  padding: 18px 20px;
  border: 1px solid #e1e5e9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(29, 43, 56, 0.04);
}

.room-title-row {
  justify-content: flex-start;
}

.room-heading h2 {
  font-size: 18px;
}

.room-heading p {
  margin: 5px 0 0;
  color: #8b96a2;
  font-size: 11px;
}

.room-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.room-status.ready,
.room-status.stopped {
  background: #eef1f3;
  color: #68737f;
}

.room-status.live {
  background: #e7f8f1;
  color: #11845e;
}

.room-status.paused {
  background: #fff2dc;
  color: #a66b08;
}

.primary-button,
.secondary-button,
.danger-button {
  min-width: 76px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}

.primary-button {
  border: 1px solid #ff4d35;
  background: #ff4d35;
  color: #fff;
}

.secondary-button {
  border: 1px solid #dce1e5;
  background: #fff;
  color: #505c68;
}

.danger-button {
  border: 1px solid #f4cccc;
  background: #fff6f6;
  color: #ca3d3d;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.platform-metrics article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid #e3e7ea;
  border-radius: 13px;
  background: #fff;
}

.platform-metrics span {
  color: #8c97a3;
  font-size: 10px;
}

.platform-metrics strong {
  color: #1a242e;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.platform-metrics small {
  overflow: hidden;
  color: #a3acb5;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-metrics .runtime-card {
  border-color: #f2d8d2;
  background: #fff9f7;
}

.platform-metrics .runtime-card strong {
  color: #df4c35;
  font-size: 15px;
}

.platform-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 12px;
  align-items: start;
}

.workspace-primary,
.workspace-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.platform-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e1e5e9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(29, 43, 56, 0.035);
}

.platform-panel h3 {
  font-size: 14px;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 13px;
}

.panel-heading.compact {
  margin-bottom: 14px;
}

.safe-badge,
.plan-progress-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f3f5;
  color: #78838e;
  font-size: 9px;
  font-weight: 750;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1fr);
  gap: 14px;
}

.video-monitor {
  position: relative;
  min-height: 335px;
  overflow: hidden;
  border-radius: 13px;
  background: #101318;
}

.video-monitor video {
  width: 100%;
  height: 100%;
  min-height: 335px;
  object-fit: cover;
  opacity: 0.88;
}

.video-monitor::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.45), transparent 28%, transparent 65%, rgba(5, 8, 12, 0.75));
  content: "";
  pointer-events: none;
}

.video-topline,
.video-bottomline {
  position: absolute;
  z-index: 1;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.video-topline {
  top: 11px;
}

.video-topline span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(12, 16, 21, 0.72);
  color: #fff;
  font-weight: 800;
}

.video-topline i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a93b;
}

.video-topline .active i {
  background: #ff4838;
  box-shadow: 0 0 0 4px rgba(255, 72, 56, 0.2);
}

.video-bottomline {
  bottom: 12px;
  align-items: flex-end;
}

.video-bottomline strong {
  max-width: 68%;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}

.video-bottomline span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.speech-monitor {
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #e6e9ec;
  border-radius: 13px;
  background: #fafbfc;
}

.speech-meta,
.speech-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.speech-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff0ed;
  color: #dc4933;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.speech-meta span:last-child {
  background: #eef6ff;
  color: #3e78ac;
}

.speech-monitor > p {
  flex: 1;
  margin: 23px 0;
  color: #26323e;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 580;
  line-height: 1.65;
}

.speech-footer {
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e9ec;
  color: #909ba6;
  font-size: 9px;
}

.buffer-state {
  margin-top: 14px;
}

.buffer-state > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #75808b;
  font-size: 9px;
}

.buffer-state strong {
  color: #37424d;
}

.buffer-track,
.show-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf0;
}

.buffer-track {
  margin: 7px 0;
}

.buffer-track i,
.show-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22b986;
  transition: width 350ms ease;
}

.buffer-state small {
  color: #a3acb5;
  font-size: 8px;
  line-height: 1.45;
}

.show-progress-track i {
  background: linear-gradient(90deg, #ff735f, #ff4d35);
}

.product-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.timeline-product {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8ebee;
  border-radius: 10px;
  background: #fbfcfc;
}

.timeline-index {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf0f2;
  color: #7b8792;
  font-size: 10px;
  font-weight: 800;
}

.timeline-product div:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.timeline-product strong {
  overflow: hidden;
  color: #34404b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-product span {
  color: #9aa4ae;
  font-size: 8px;
}

.timeline-product.active {
  border-color: #ffb2a7;
  background: #fff6f4;
}

.timeline-product.active .timeline-index {
  background: #ff4d35;
  color: #fff;
}

.timeline-product.completed {
  opacity: 0.62;
}

.timeline-product.completed .timeline-index {
  background: #dff4ec;
  color: #18845f;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  color: #747f8a;
  font-size: 9px;
  font-weight: 750;
}

.platform-page input,
.platform-page textarea,
.platform-page select {
  width: 100%;
  border: 1px solid #dfe4e8;
  border-radius: 9px;
  outline: 0;
  background: #fbfcfd;
  color: #28333e;
  font-size: 11px;
}

.platform-page input,
.platform-page select {
  height: 36px;
  padding: 0 10px;
}

.platform-page textarea {
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.5;
}

.platform-page input:focus,
.platform-page textarea:focus,
.platform-page select:focus {
  border-color: #ff8d7d;
  box-shadow: 0 0 0 3px rgba(255, 77, 53, 0.08);
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.inline-field button,
.wide-action {
  border: 1px solid #ff4d35;
  border-radius: 9px;
  background: #ff4d35;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.inline-field button {
  padding: 0 12px;
}

.wide-action {
  width: 100%;
  min-height: 36px;
  margin-top: 9px;
  padding: 8px 10px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.quick-actions button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e1e5e8;
  border-radius: 10px;
  background: #fafbfc;
  text-align: left;
}

.quick-actions strong {
  color: #36414c;
  font-size: 10px;
}

.quick-actions small {
  color: #9aa4ae;
  font-size: 8px;
}

.coupon-details {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}

.coupon-details summary {
  color: #66717d;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.comment-form {
  display: grid;
  gap: 7px;
}

.comment-list,
.recommendation-list,
.event-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.comment-list article,
.recommendation-list article {
  padding: 10px;
  border: 1px solid #e8ebee;
  border-radius: 10px;
  background: #fbfcfd;
}

.comment-list article > div,
.recommendation-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-list strong {
  color: #3a4651;
  font-size: 10px;
}

.comment-list p,
.recommendation-list p {
  margin: 5px 0 0;
  color: #697581;
  font-size: 9px;
  line-height: 1.5;
}

.comment-state,
.policy-chip {
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff2de;
  color: #9a6a16;
  font-size: 7px;
  font-weight: 800;
}

.comment-state.answered,
.policy-chip.content_safe_auto {
  background: #e5f7f0;
  color: #11845f;
}

.policy-chip.human_approval_required {
  background: #fff0ed;
  color: #cd4833;
}

.recommendation-list h4 {
  margin: 8px 0 0;
  color: #34404b;
  font-size: 10px;
  line-height: 1.45;
}

.recommendation-list article > div > strong {
  color: #9ba4ae;
  font-size: 8px;
}

.mini-button {
  padding: 5px 7px;
  font-size: 8px;
}

.runtime-status-list {
  display: grid;
  gap: 9px;
}

.runtime-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #67727e;
  font-size: 9px;
}

.runtime-status-list span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.runtime-status-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb7bf;
}

.runtime-status-list i.healthy {
  background: #24b984;
}

.runtime-status-list i.waiting {
  background: #e9a93f;
}

.runtime-status-list strong {
  color: #8c97a1;
  font-size: 8px;
  font-weight: 600;
}

.event-list {
  max-height: 390px;
  overflow: auto;
}

.event-list article {
  display: grid;
  grid-template-columns: 60px 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.event-list time {
  color: #9da6af;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.event-dot {
  width: 7px;
  height: 7px;
  margin-top: 2px;
  border: 2px solid #ff8a79;
  border-radius: 50%;
  background: #fff;
}

.event-list article div {
  padding-bottom: 9px;
  border-bottom: 1px solid #eef0f2;
}

.event-list strong {
  display: block;
  color: #4a5661;
  font-size: 9px;
}

.event-list p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #929ca6;
  font-size: 8px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted-count,
.empty-state {
  color: #a0a9b2;
  font-size: 8px;
}

.empty-state {
  margin: 7px 0;
  line-height: 1.5;
}

.platform-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 11px 14px;
  transform: translateY(18px);
  border-radius: 10px;
  background: #1c2934;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.platform-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.platform-toast.error {
  background: #b83d3d;
}

@media (max-width: 1180px) {
  .platform-app {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .platform-workspace {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .platform-app {
    display: block;
  }

  .platform-sidebar {
    position: static;
    height: auto;
  }

  .platform-nav {
    display: none;
  }

  .sidebar-environment {
    margin-top: 0;
  }

  .platform-main {
    padding: 18px;
  }

  .room-heading,
  .platform-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .monitor-grid,
  .workspace-side {
    grid-template-columns: 1fr;
  }

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

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

button,
textarea,
input {
  font: inherit;
}

.console-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(243, 83, 53, 0.14), transparent 30%),
    #090d12;
}

.console-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(460px, 680px);
  gap: 40px;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
}

.console-copy {
  padding: 24px 0;
}

.eyebrow {
  color: #ff6a49;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.console-copy h1 {
  max-width: 720px;
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.lede {
  max-width: 720px;
  color: #aeb8c5;
  font-size: 17px;
  line-height: 1.7;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: #b9c4d0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 14px currentColor;
}

.status-dot.online {
  background: #34d399;
}

.status-dot.sample-ready {
  background: #f59e0b;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #26313e;
  border-radius: 14px;
  background: rgba(18, 24, 32, 0.76);
}

.metric-grid strong {
  color: #f8fafc;
  font-size: 20px;
}

.metric-grid span {
  color: #8995a5;
  font-size: 11px;
}

.control-group {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #202a36;
  border-radius: 18px;
  background: rgba(18, 24, 32, 0.76);
}

.control-group h2 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.section-heading p {
  margin: 0;
  color: #8995a5;
  font-size: 12px;
  line-height: 1.55;
}

.test-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(52, 211, 153, 0.09);
  color: #8ee7c2;
  font-size: 10px;
  font-weight: 700;
}

.tts-segment-switcher {
  margin-top: 16px;
}

.tts-direction {
  margin: 14px 0 8px;
  color: #fbc96b;
  font-size: 12px;
  line-height: 1.55;
}

.tts-active-script {
  padding: 13px 14px;
  border: 1px solid #2a3542;
  border-radius: 12px;
  background: #0d131b;
  font-size: 13px;
}

.tts-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tts-provider-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #2a3542;
  border-radius: 14px;
  background: rgba(11, 16, 23, 0.82);
}

.tts-provider-card.recommended-card {
  border-color: rgba(52, 211, 153, 0.42);
}

.tts-provider-card.baseline-card {
  border-style: dashed;
}

.tts-provider-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tts-provider-heading div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tts-provider-heading strong {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}

.tts-provider-heading span {
  color: #8995a5;
  font-size: 10px;
  line-height: 1.4;
}

.tts-provider-heading em {
  flex: 0 0 auto;
  color: #9df0cf;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.tts-provider-card audio {
  display: block;
  width: 100%;
  height: 34px;
}

.tts-caveat {
  padding-left: 11px;
  border-left: 2px solid #f59e0b;
}

.live-api-candidate {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(52, 211, 153, 0.05)),
    rgba(11, 16, 23, 0.88);
}

.live-api-candidate audio {
  display: block;
  width: 100%;
  height: 36px;
}

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

.live-variant-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 10px;
  border: 1px solid #3b3550;
  border-radius: 11px;
  background: rgba(11, 16, 23, 0.7);
}

.live-variant-grid > div.enhanced {
  border-color: rgba(236, 72, 153, 0.5);
}

.live-variant-grid span {
  color: #c7bdf5;
  font-size: 10px;
  font-weight: 700;
}

.live-api-candidate p {
  margin: 10px 0 0;
  color: #9da8b7;
  font-size: 11px;
  line-height: 1.55;
}

.sweet-voice-test {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #2a3542;
}

.sweet-voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.sweet-voice-grid article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  border: 1px solid #2a3542;
  border-radius: 12px;
  background: rgba(11, 16, 23, 0.82);
}

.sweet-voice-grid article.sweet-candidate {
  border-color: rgba(236, 72, 153, 0.52);
  background: rgba(236, 72, 153, 0.07);
}

.sweet-voice-grid strong {
  color: #f8fafc;
  font-size: 12px;
}

.sweet-voice-grid span {
  color: #8995a5;
  font-size: 10px;
  line-height: 1.4;
}

.sweet-voice-grid audio {
  width: 100%;
  height: 34px;
  margin-top: 5px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability {
  border: 1px solid;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}

.capability.supported {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.09);
  color: #8ee7c2;
}

.capability.unsupported {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.06);
  color: #98a4b3;
}

.capability.pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fbc96b;
}

.capability-note {
  margin: 14px 0 0;
  color: #8995a5;
  font-size: 12px;
  line-height: 1.65;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  cursor: pointer;
  border: 1px solid #354151;
  border-radius: 10px;
  padding: 10px 14px;
  background: #171f2a;
  color: #f8fafc;
}

button:hover {
  border-color: #75849a;
  background: #202b39;
}

button.active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.16);
  color: #9df0cf;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

button.primary {
  border-color: #ef5b3f;
  background: #ef5b3f;
}

button.danger {
  border-color: #77343b;
  color: #ff9aa5;
}

.speech-form textarea,
.speech-form input {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #354151;
  border-radius: 10px;
  padding: 12px;
  background: #0d131b;
  color: #f8fafc;
  resize: vertical;
}

.event-log {
  overflow: auto;
  min-height: 150px;
  max-height: 240px;
  margin: 0;
  color: #9de8bc;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.check-list {
  margin: 0;
  padding-left: 22px;
  color: #aeb8c5;
  font-size: 13px;
  line-height: 1.8;
}

.button-grid + .check-list {
  margin-top: 14px;
}

.sample-switcher {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.test-condition {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

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

.test-condition-grid .test-condition {
  grid-template-columns: 96px 1fr;
  margin: 0;
  padding: 10px;
  border: 1px solid #2a3542;
  border-radius: 12px;
  background: rgba(11, 16, 23, 0.72);
}

.test-condition-grid .test-condition img {
  width: 96px;
  aspect-ratio: 9 / 16;
}

.test-condition img {
  display: block;
  width: 132px;
  aspect-ratio: 16 / 9;
  border: 1px solid #354151;
  border-radius: 10px;
  object-fit: cover;
}

.test-condition p {
  margin: 0;
  color: #aeb8c5;
  font-size: 12px;
  line-height: 1.65;
}

.test-condition strong {
  color: #fbc96b;
}

.test-script {
  margin: 0;
  color: #f7d7cf;
  font-size: 15px;
  line-height: 1.7;
}

.truth-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid #f59e0b;
  border-radius: 4px 14px 14px 4px;
  background: rgba(245, 158, 11, 0.08);
}

.truth-note strong {
  color: #fbc96b;
  font-size: 12px;
}

.truth-note span {
  color: #aeb8c5;
  font-size: 12px;
  line-height: 1.65;
}

.check-list code {
  color: #9df0cf;
}

.preview-shell {
  position: sticky;
  top: 24px;
  align-self: start;
  overflow: hidden;
  width: min(100%, 680px);
  justify-self: end;
  border: 1px solid #26313e;
  border-radius: 24px;
  background: #05070a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-bottom: 1px solid #26313e;
  background: #0c1118;
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.preview-toolbar strong {
  font-size: 13px;
}

.preview-toolbar small {
  color: #8d99a8;
  font-size: 10px;
}

.preview-toolbar a {
  flex: 0 0 auto;
  color: #ff947b;
  font-size: 11px;
  text-decoration: none;
}

.preview-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.preview-shell iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 760px;
  border: 0;
  background: #05070a;
}

.livetalk-preview-shell video {
  display: block;
  width: 100%;
  height: calc(100vh - 132px);
  min-height: 680px;
  max-height: 880px;
  background: #05070a;
  object-fit: contain;
}

.sample-dot {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
}

.video-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #8995a5;
  font-size: 11px;
}

.video-caption span:first-child {
  color: #fbc96b;
}

@media (max-width: 980px) {
  .console-shell {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    position: static;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .console-shell {
    width: min(100% - 28px, 1440px);
  }

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

  .tts-provider-grid {
    grid-template-columns: 1fr;
  }

  .sweet-voice-grid {
    grid-template-columns: 1fr;
  }

  .live-variant-grid {
    grid-template-columns: 1fr;
  }

  .test-condition {
    grid-template-columns: 1fr;
  }

  .test-condition-grid {
    grid-template-columns: 1fr;
  }

  .test-condition img {
    width: 100%;
  }
}

.stage-page {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  background: #172121;
}

.cloud-stage-page {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #112328;
}

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

.cloud-stage-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 19, 20, 0.32), transparent 30%),
    linear-gradient(0deg, rgba(7, 19, 20, 0.48), transparent 38%);
}

.cloud-start-button {
  position: absolute;
  left: 50%;
  bottom: 7.5rem;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  color: white;
  background: #ef5c39;
  font: 700 1rem/1 system-ui, sans-serif;
}

.cloud-start-button:disabled {
  opacity: 0.55;
}

#stage-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stage-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.live-pill {
  position: absolute;
  top: 3.3%;
  left: 5.5%;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(11, 15, 20, 0.76);
  font-size: clamp(10px, 1.35vw, 20px);
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.live-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3e52;
  box-shadow: 0 0 10px #ff3e52;
}

.brand-lockup {
  position: absolute;
  top: 8%;
  left: 5.5%;
}

.brand-lockup p {
  margin: 0 0 5px;
  color: #f7b86d;
  font-size: clamp(9px, 1.15vw, 16px);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-lockup h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(26px, 4.6vw, 68px);
  line-height: 0.95;
}

.product-card {
  position: absolute;
  right: 4.5%;
  bottom: 14%;
  display: grid;
  grid-template-columns: 29% 1fr;
  gap: 16px;
  align-items: center;
  width: 91%;
  min-height: 11%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 15px;
  background: rgba(9, 13, 18, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(circle at 70% 25%, #ffdb86, transparent 26%),
    linear-gradient(145deg, #e84024, #7a1018);
  transform: rotate(-2deg);
}

.product-image span {
  position: absolute;
  top: 9px;
  right: 8px;
  border-radius: 99px;
  padding: 4px 7px;
  background: #f7c95e;
  color: #4d1c11;
  font-size: 9px;
  font-weight: 900;
}

.product-image strong {
  font-family: Impact, sans-serif;
  font-size: clamp(20px, 3.1vw, 42px);
  line-height: 0.82;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.product-card p {
  margin: 0 0 5px;
  color: #a9b4bf;
  font-size: clamp(9px, 1.2vw, 16px);
}

.product-card h2 {
  margin: 0;
  font-size: clamp(18px, 2.7vw, 38px);
}

.price {
  display: block;
  margin-top: 7px;
  color: #ffb957;
  font-size: clamp(15px, 2.2vw, 30px);
}

.subtitle {
  position: absolute;
  bottom: 5.2%;
  left: 5%;
  width: 90%;
  color: white;
  font-size: clamp(13px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.runtime-state {
  position: absolute;
  top: 3.8%;
  right: 4.5%;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(8px, 0.9vw, 13px);
}

@media (max-width: 900px) {
  .console-shell {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    position: static;
    justify-self: center;
    grid-row: 1;
  }
}

/* Conversational product fact copilot */
.fact-copilot-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 14px; padding: 24px 26px; overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 82% -40%, #ff9d8655, transparent 45%), linear-gradient(135deg, #17212b, #263944); color: #fff; }
.fact-copilot-hero > div:first-child > span { color: #ff9c89; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.fact-copilot-hero h2 { margin: 6px 0 5px; font-size: 21px; letter-spacing: -.025em; }
.fact-copilot-hero p { margin: 0; color: #b8c3cb; font-size: 11px; }
.fact-hero-principles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.fact-hero-principles span { padding: 6px 9px; border: 1px solid #ffffff1f; border-radius: 999px; background: #ffffff0d; color: #dce3e7; font-size: 8px; white-space: nowrap; }
.fact-copilot-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 690px; overflow: hidden; border: 1px solid #dfe5e8; border-radius: 17px; background: #fff; box-shadow: 0 16px 45px #24313d0c; }
.fact-conversation { display: grid; grid-template-rows: auto auto minmax(310px, 1fr) auto auto; min-width: 0; border-right: 1px solid #e5e9ec; }
.fact-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; }
.fact-ai-identity { display: flex; align-items: center; gap: 10px; }
.fact-ai-identity > b, .fact-message-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #f05b43, #c83323); color: #fff; font-size: 10px; box-shadow: 0 8px 18px #e94a3530; }
.fact-ai-identity > span { display: grid; gap: 2px; }
.fact-ai-identity strong { font-size: 11px; }
.fact-ai-identity small { color: #7b8790; font-size: 8px; }
.fact-ai-identity small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #27a879; }
.fact-workspace-head > label { display: flex; align-items: center; gap: 8px; color: #7b8790; font-size: 9px; }
.fact-workspace-head select { min-width: 230px; padding: 8px 28px 8px 10px; border: 1px solid #dfe5e8; border-radius: 8px; background: #fafbfc; color: #29343c; font-size: 9px; font-weight: 700; }
.fact-progress-wrap { display: grid; gap: 7px; padding: 0 20px 13px; border-bottom: 1px solid #edf0f2; }
.fact-progress-wrap > div { display: flex; justify-content: space-between; color: #77848e; font-size: 8px; }
.fact-progress-wrap > i { height: 4px; overflow: hidden; border-radius: 99px; background: #edf1f3; }
.fact-progress-wrap > i > b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e94a35, #ff8b74); transition: width .3s ease; }
.fact-chat-thread { display: flex; flex-direction: column; gap: 15px; min-height: 0; padding: 22px 22px 12px; overflow: auto; background: linear-gradient(180deg, #fbfcfd 0%, #fff 35%); }
.fact-chat-thread article { display: flex; align-items: flex-start; gap: 9px; max-width: 88%; }
.fact-chat-thread article.user { align-self: flex-end; justify-content: flex-end; }
.fact-chat-thread article > div { display: grid; gap: 4px; }
.fact-chat-thread article > div > span { color: #89949c; font-size: 8px; font-weight: 750; }
.fact-chat-thread article.user > div > span { text-align: right; }
.fact-chat-thread p { margin: 0; padding: 11px 13px; border: 1px solid #e5e9ec; border-radius: 4px 13px 13px; background: #fff; color: #33414b; font-size: 10px; line-height: 1.65; box-shadow: 0 5px 16px #2837420a; white-space: pre-wrap; }
.fact-chat-thread article.user p { border-color: #e94a35; border-radius: 13px 4px 13px 13px; background: #e94a35; color: #fff; }
.fact-chat-thread article small { color: #d04a35; font-size: 8px; font-weight: 750; }
.fact-message-avatar { width: 27px; height: 27px; border-radius: 9px; font-size: 8px; box-shadow: none; }
.fact-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 20px 10px; }
.fact-quick-replies button { padding: 6px 9px; border: 1px solid #f0c8c1; border-radius: 999px; background: #fff8f6; color: #b74634; font-size: 8px; }
.fact-quick-replies button:hover { border-color: #e94a35; background: #fff1ee; }
.fact-composer { margin: 0 20px 20px; padding: 10px; border: 1px solid #dfe5e8; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px #25323e10; }
.fact-composer:focus-within { border-color: #e8a295; box-shadow: 0 0 0 3px #e94a350b; }
.fact-composer textarea { width: 100%; resize: none; border: 0; outline: 0; color: #27343d; font-size: 10px; line-height: 1.55; }
.fact-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.fact-composer > div > span { color: #98a1a8; font-size: 7px; }
.fact-composer .os-button { min-height: 31px; font-size: 9px; }
.fact-draft-panel { min-width: 0; max-height: 780px; padding: 20px; overflow: auto; background: #fafbfc; }
.fact-draft-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.fact-draft-panel > header > div > span { color: #df513c; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.fact-draft-panel > header h2 { margin: 4px 0; font-size: 16px; }
.fact-draft-panel > header p { margin: 0; color: #7a8690; font-size: 9px; }
.fact-draft-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; background: #e8f5f0; color: #16825f; font-size: 7px; font-weight: 800; }
.fact-draft-status.dirty { background: #fff0d6; color: #916400; }
.fact-identity-summary { display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: 6px; margin: 15px 0; }
.fact-identity-summary > div { display: grid; gap: 3px; min-width: 0; padding: 9px; border: 1px solid #e4e8eb; border-radius: 8px; background: #fff; }
.fact-identity-summary span { color: #849099; font-size: 7px; }
.fact-identity-summary strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fact-summary-section { margin-top: 15px; }
.fact-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.fact-section-title h3 { margin: 0; font-size: 10px; }
.fact-section-title span { color: #818d96; font-size: 8px; }
.fact-draft-list { display: grid; gap: 7px; }
.fact-draft-list article { padding: 9px; border: 1px solid #e3e8eb; border-left: 3px solid #1c9b72; border-radius: 9px; background: #fff; }
.fact-draft-list article.needs_review { border-left-color: #e5a423; background: #fffdf7; }
.fact-item-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.fact-item-meta span { color: #16805f; font-size: 7px; font-weight: 850; }
.fact-draft-list article.needs_review .fact-item-meta span { color: #9a6d08; }
.fact-item-meta em { overflow: hidden; color: #929ca3; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.fact-draft-list textarea { width: 100%; padding: 0; resize: vertical; border: 0; outline: 0; background: transparent; color: #34424b; font-size: 9px; line-height: 1.5; }
.fact-draft-list footer { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 5px; }
.fact-draft-list footer select { margin-right: auto; border: 0; background: transparent; color: #78848d; font-size: 7px; }
.fact-draft-list footer button { padding: 3px 6px; border: 0; border-radius: 5px; background: #eef2f4; color: #697680; font-size: 7px; }
.fact-draft-list footer button:first-of-type { background: #e8f5f0; color: #137657; font-weight: 800; }
.fact-empty { padding: 24px 14px; border: 1px dashed #d8dfe3; border-radius: 9px; color: #8a959d; font-size: 8px; text-align: center; }
.fact-gap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.fact-gap-list > div { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 5px; padding: 7px; border: 1px solid #e4e8eb; border-radius: 7px; background: #fff; }
.fact-gap-list b { grid-row: 1 / 3; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #f0f3f5; color: #89949c; font-size: 7px; }
.fact-gap-list span { font-size: 8px; font-weight: 700; }
.fact-gap-list small { color: #919ba2; font-size: 6px; }
.fact-gap-list .done b { background: #e5f5ef; color: #16805f; }
.fact-research-card { margin-top: 16px; padding: 11px; border: 1px solid #dce5ea; border-radius: 10px; background: linear-gradient(135deg, #f2f7fa, #fff); }
.fact-research-title { display: flex; align-items: center; gap: 8px; }
.fact-research-title > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #dfeaf0; color: #3e6579; font-size: 13px; }
.fact-research-title > span { display: grid; gap: 2px; }
.fact-research-title strong { font-size: 9px; }
.fact-research-title small { color: #73848f; font-size: 7px; }
.fact-research-card form { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 9px; }
.fact-research-card input { min-width: 0; padding: 7px 8px; border: 1px solid #d9e1e5; border-radius: 7px; background: #fff; font-size: 8px; }
.fact-research-card .os-button { min-height: 29px; padding-inline: 9px; font-size: 8px; }
.fact-source-list { display: grid; gap: 5px; margin-top: 7px; }
.fact-source-list article { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: center; padding: 6px; border-radius: 7px; background: #fff; }
.fact-source-list article > b { color: #3d7189; font-size: 9px; }
.fact-source-list article > div { min-width: 0; }
.fact-source-list strong, .fact-source-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-source-list strong { font-size: 8px; }
.fact-source-list small { color: #84919a; font-size: 7px; }
.fact-draft-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e3e8eb; }
.fact-draft-actions .os-button { min-height: 33px; font-size: 9px; }
.fact-library-panel { margin-top: 16px; }

/* Versioned tenant assets and session launch */
.os-asset-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.os-scope-chip { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #eef2f5; color: #65727d; font-size: 9px; font-weight: 800; white-space: nowrap; }
.os-panel-actions { display: flex; align-items: center; gap: 8px; }
.os-asset-list { display: grid; gap: 9px; }
.os-asset-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e8ecef; border-radius: 11px; background: #fbfcfc; }
.os-asset-item h3 { margin: 0; font-size: 12px; }
.os-asset-item p { margin: 4px 0 7px; color: #687680; font-size: 9px; }
.os-asset-item footer { display: flex; flex-wrap: wrap; gap: 6px; }
.os-asset-item footer span { padding: 3px 6px; border-radius: 6px; background: #eef2f4; color: #5f6b74; font-size: 8px; }
.os-asset-item footer span.published { background: #e8f7f1; color: #13835f; }
.os-asset-item footer span.draft { background: #fff3da; color: #9b6a00; }
.os-asset-version { display: grid; gap: 3px; min-width: 60px; text-align: right; }
.os-asset-version strong { font-size: 13px; }
.os-asset-version small { color: #8b969f; font-size: 8px; }
.os-asset-side { display: grid; justify-items: end; gap: 10px; }
.os-list-actions { display: flex; gap: 6px; }
.os-list-actions .os-button { min-height: 31px; padding-inline: 11px; font-size: 9px; }
.os-version-trail { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.os-version-trail span { padding: 3px 6px; border: 1px solid #e1e6e9; border-radius: 999px; color: #73808a; background: #fff; font-size: 8px; }
.os-version-trail span.published { border-color: #bfe2d5; color: #13835f; background: #f0faf6; }
.os-version-trail span.draft { border-color: #f1d8a4; color: #8b6309; background: #fff8e8; }
.os-version-context { display: grid; gap: 3px; padding: 10px 11px; border-left: 3px solid #e94a35; border-radius: 0 8px 8px 0; background: #fff7f5; }
.os-version-context strong { color: #28343d; font-size: 10px; }
.os-version-context span { color: #6e7a84; font-size: 9px; line-height: 1.45; }
.os-presenter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.os-presenter-card { overflow: hidden; border: 1px solid #e5e9ed; border-radius: 12px; background: #fbfcfc; }
.os-presenter-visual { display: grid; place-items: end start; min-height: 145px; padding: 12px; background: linear-gradient(145deg, #e9d5cf, #f7eee9 55%, #d6e0e5); }
.os-presenter-visual.night { background: linear-gradient(145deg, #342a3f, #73505a 60%, #d39684); color: #fff; }
.os-presenter-visual span { padding: 5px 7px; border-radius: 7px; background: #ffffffc9; color: #2b3339; font-size: 8px; font-weight: 800; }
.os-presenter-card > div:last-child { padding: 13px; }
.os-presenter-card h3 { margin: 0 0 4px; font-size: 12px; }
.os-presenter-card p { margin: 0 0 9px; color: #697781; font-size: 9px; line-height: 1.5; }
.os-presenter-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.os-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.os-card-actions .os-button { min-height: 30px; padding-inline: 9px; font-size: 9px; }
.os-inline-result { margin-top: 13px; padding: 12px; border: 1px solid #bfe2d5; border-radius: 9px; background: #f0faf6; }
.os-inline-result strong { font-size: 10px; }
.os-inline-result p { margin: 5px 0 0; font-family: Georgia, serif; font-size: 11px; line-height: 1.5; }
.os-fieldset { margin: 0; padding: 10px; border: 1px solid #e4e8eb; border-radius: 9px; }
.os-fieldset legend { padding: 0 5px; color: #4f5c67; font-size: 10px; font-weight: 750; }
.os-compact-picker { display: grid; gap: 6px; }
.os-compact-picker label { display: flex; align-items: flex-start; gap: 7px; color: #3f4a52; font-size: 9px; font-weight: 500; }
.os-compact-picker input { width: auto; margin-top: 1px; accent-color: #e94a35; }
.os-plan-picker { display: grid; gap: 8px; }
.os-plan-option { position: relative; cursor: pointer; }
.os-plan-option input { position: absolute; opacity: 0; }
.os-plan-option > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px; border: 1px solid #e3e8eb; border-radius: 10px; background: #fafbfc; }
.os-plan-option input:checked + span { border-color: #e94a35; background: #fff7f5; box-shadow: inset 0 0 0 1px #e94a35; }
.os-plan-option strong { font-size: 11px; }
.os-plan-option small { display: block; margin-top: 4px; color: #6e7a84; font-size: 9px; }
.os-plan-option em { color: #e94a35; font-size: 9px; font-style: normal; font-weight: 800; }
.os-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.os-mode-options label { position: relative; cursor: pointer; }
.os-mode-options input { position: absolute; opacity: 0; }
.os-mode-options span { display: grid; gap: 3px; padding: 13px; border: 1px solid #e1e6e9; border-radius: 10px; background: #fafbfc; }
.os-mode-options input:checked + span { border-color: #e94a35; background: #fff7f5; box-shadow: inset 0 0 0 1px #e94a35; }
.os-mode-options strong { font-size: 11px; }
.os-mode-options small { color: #73808a; font-size: 9px; }
.os-tenant-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.os-tenant-summary article { display: grid; gap: 4px; padding: 14px; border-left: 2px solid #e94a35; background: #fafbfc; }
.os-tenant-summary span { color: #70808a; font-size: 9px; }
.os-tenant-summary strong { font-size: 12px; }
.os-permission-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.os-permission-table th, .os-permission-table td { padding: 11px; border-bottom: 1px solid #e5e9ed; text-align: left; }
.os-permission-table th { color: #68757f; font-size: 9px; }
.os-permission-table td:not(:first-child) { color: #53616b; }

.monitoring-workspace { display: grid; gap: 14px; }
.monitoring-workspace[hidden] { display: none; }
#ai-control-workspace[hidden] { display: none; }
.monitor-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 6px; border: 1px solid #e2e7ea; border-radius: 13px; background: #f5f7f8ee; box-shadow: 0 8px 24px #17212b0c; backdrop-filter: blur(12px); }
.monitor-tabs button { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #68757f; text-align: left; cursor: pointer; }
.monitor-tabs button span { font-size: 10px; font-weight: 800; }
.monitor-tabs button small { overflow: hidden; color: #87929a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.monitor-tabs button:hover { background: #fff; color: #29353d; }
.monitor-tabs button.active { background: #fff; color: #d94f39; box-shadow: 0 3px 12px #17212b12; }
.monitor-tabs button.active small { color: #9a625a; }
.monitor-tabs button:focus-visible { outline: 2px solid #e94a35; outline-offset: 1px; }
.monitor-tab-panel { display: none; gap: 14px; }
.monitor-tab-panel.active { display: grid; }
.monitor-tab-panel[hidden] { display: none; }
.monitoring-status-panel { overflow: hidden; }
.monitor-session-hero { display: grid; gap: 20px; padding: 25px 27px; overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 87% -15%, #ef684f66, transparent 38%), linear-gradient(135deg, #17232c, #263a47); color: #fff; box-shadow: 0 14px 34px #17212b1c; }
.monitor-session-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.monitor-session-copy > div > span { color: #ff8f7d; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.monitor-session-copy h2 { margin: 5px 0 4px; font-size: 22px; }
.monitor-session-copy p { margin: 0; color: #b8c3ca; font-size: 11px; }
.monitor-session-copy .os-live-chip { flex: 0 0 auto; border: 1px solid #ffffff1f; background: #ffffff12; color: #cdd5da; }
.monitor-session-copy .os-live-chip.active { border-color: #4ecb9d55; background: #35bd8b22; color: #6ee0b7; }
.monitor-code-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; border: 1px solid #ffffff20; border-radius: 13px; background: #ffffff0b; }
.monitor-code-row > div:first-child { display: grid; gap: 3px; }
.monitor-code-row span, .monitor-code-row small { color: #9fadb6; font-size: 9px; }
.monitor-code-row strong { color: #fff; font-size: 25px; letter-spacing: .05em; }
.monitor-code-actions { display: flex; gap: 7px; }
.monitor-code-actions .os-button.ghost { border-color: #ffffff28; background: #ffffff0d; color: #fff; }
.monitor-progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.monitor-progress-steps > div { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: center; padding: 10px; border: 1px solid #ffffff16; border-radius: 10px; background: #ffffff08; color: #8f9da7; }
.monitor-progress-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff10; font-size: 9px; }
.monitor-progress-steps span { display: grid; gap: 1px; }
.monitor-progress-steps strong { font-size: 9px; }
.monitor-progress-steps small { color: #788995; font-size: 7px; }
.monitor-progress-steps > div.done { border-color: #47ca9950; background: #35bd8b15; color: #71ddb7; }
.monitor-progress-steps > div.done b { background: #35bd8b; color: #fff; }
.monitor-primary-grid { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr); gap: 14px; align-items: start; }
.monitor-frame-panel { min-width: 0; }
.monitor-frame-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.monitor-autoplay-button { min-height: 27px; padding: 5px 8px; border: 1px solid #dfe5e8; border-radius: 999px; background: #fff; color: #6e7a83; font-size: 8px; font-weight: 750; cursor: pointer; }
.monitor-autoplay-button.active { border-color: #bfe2d5; background: #f0faf6; color: #197355; }
.monitor-latest-frame { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #1a2730, #0f171d); }
.monitor-latest-frame > div { max-width: 390px; padding: 30px; color: #9eabb4; text-align: center; }
.monitor-latest-frame > div::before { content: "LIVE"; display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border: 1px solid #ffffff20; border-radius: 15px; color: #ef7563; font-size: 10px; font-weight: 900; }
.monitor-latest-frame b { display: block; color: #e9eef1; font-size: 13px; }
.monitor-latest-frame p { margin: 7px 0 0; font-size: 9px; line-height: 1.6; }
.monitor-latest-frame img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 520px; object-fit: contain; background: #0e151a; }
.monitor-frame-overlay { position: absolute; inset: auto 10px 10px; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #0d151ccc; color: #fff; font-size: 8px; backdrop-filter: blur(5px); }
.monitor-frame-strip { display: flex; gap: 6px; margin-top: 8px; padding: 2px 0 5px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scrollbar-width: thin; scroll-snap-type: x proximity; }
.monitor-frame-strip button { position: relative; flex: 0 0 112px; min-width: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #18242c; cursor: pointer; scroll-snap-align: center; }
.monitor-frame-strip button.active { border-color: #e94a35; }
.monitor-frame-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.monitor-frame-strip time { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: #0d151ccc; color: #fff; font-size: 7px; }
.monitor-observation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.monitor-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.monitor-dashboard-metrics article { display: grid; gap: 5px; min-height: 92px; padding: 15px; border: 1px solid #e6eaed; border-radius: 11px; background: #fafbfc; }
.monitor-dashboard-metrics span { color: #75818a; font-size: 9px; }
.monitor-dashboard-metrics strong { overflow-wrap: anywhere; color: #26323a; font-size: 18px; font-variant-numeric: tabular-nums; }
.monitor-dashboard-metrics small { overflow: hidden; color: #96a0a7; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.monitoring-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.monitoring-status-grid article { display: grid; gap: 5px; min-height: 92px; padding: 15px; border: 1px solid #e6eaed; border-radius: 11px; background: #fafbfc; }
.monitoring-status-grid span { color: #75818a; font-size: 9px; }
.monitoring-status-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.monitoring-status-grid small { color: #7b8790; font-size: 9px; }
.monitoring-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: start; }
.monitoring-ai-streams { grid-template-columns: 1.35fr .65fr; }
.monitor-transcript-list, .monitor-visual-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; }
.monitor-transcript-list article, .monitor-visual-list article { padding: 11px 12px; border: 1px solid #e7ebee; border-radius: 10px; background: #fbfcfc; }
.monitor-transcript-list article > div, .monitor-visual-list article > div { display: flex; justify-content: space-between; gap: 10px; color: #748089; font-size: 8px; }
.monitor-transcript-list article strong, .monitor-visual-list article strong { color: #27323a; font-size: 9px; }
.monitor-transcript-list article p, .monitor-visual-list article p { margin: 7px 0 0; color: #27323a; font-size: 10px; line-height: 1.6; }
.monitor-transcript-list article blockquote { margin: 6px 0 0; padding: 7px 9px; border-left: 3px solid #7c3aed; background: #f4f1ff; color: #51446f; font-size: 9px; line-height: 1.6; }
.monitor-transcript-list article.interim { border-style: dashed; background: #fafafa; opacity: .78; }
.monitor-transcript-list article.final { border-color: #d8e6df; background: #fcfefd; }
.monitor-visual-list article dl { display: grid; gap: 5px; margin: 8px 0 0; }
.monitor-visual-list article dl div { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 7px; padding: 6px 8px; border-radius: 7px; background: #f2f5f6; }
.monitor-visual-list article dt { color: #77838c; font-size: 8px; font-weight: 800; }
.monitor-visual-list article dd { margin: 0; color: #4b5861; font-size: 8px; line-height: 1.55; }
.monitor-visual-list article ul { margin: 7px 0 0; padding-left: 16px; color: #a34535; font-size: 8px; line-height: 1.6; }
.monitor-product-list { display: grid; gap: 7px; }
.monitor-product-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid #e7ebee; border-radius: 10px; background: #fbfcfc; }
.monitor-product-list article > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff0ec; color: #d55540; font-size: 9px; }
.monitor-product-list article strong { display: block; font-size: 10px; }
.monitor-product-list article small { color: #748089; font-size: 8px; }
.monitor-product-list article > span { color: #5d6a73; font-size: 9px; line-height: 1.5; text-align: right; }
.monitoring-boundaries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.monitoring-boundaries span { padding: 12px; border: 1px solid #bfe2d5; border-radius: 9px; background: #f0faf6; color: #197355; font-size: 9px; font-weight: 750; text-align: center; }
.review-media-panel { margin-bottom: 14px; }
.review-media-summary { display: grid; grid-template-columns: 150px 150px minmax(0, 1fr); gap: 10px; }
.review-media-summary > article { display: grid; gap: 5px; padding: 15px; border: 1px solid #e6eaed; border-radius: 11px; background: #fafbfc; }
.review-media-summary article span { color: #75818a; font-size: 9px; }
.review-media-summary article strong { font-size: 22px; }
.review-media-summary article small { color: #7b8790; font-size: 9px; }
.review-media-issues { display: grid; gap: 6px; }
.review-media-issues p { margin: 0; padding: 8px 10px; border-left: 2px solid #e94a35; background: #fff7f5; color: #4f5c67; font-size: 9px; line-height: 1.45; }

body.modal-open { overflow: hidden; }
.os-modal[hidden] { display: none; }
.os-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 28px; }
.os-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(17, 25, 31, 0.62); backdrop-filter: blur(5px); cursor: default; }
.os-modal-dialog { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(820px, 100%); max-height: min(860px, calc(100vh - 56px)); overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(10, 18, 24, .28); }
.os-modal-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid #e8ecef; background: linear-gradient(180deg, #fff, #fafbfc); }
.os-modal-head span { color: #dd563f; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.os-modal-head h2 { margin: 4px 0 5px; font-size: 20px; }
.os-modal-head p { margin: 0; color: #6d7982; font-size: 10px; }
.os-modal-close { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e2e7ea; border-radius: 50%; background: #fff; color: #5d6870; font-size: 21px; cursor: pointer; }
.os-modal-close:hover { border-color: #d55540; color: #d55540; }
.os-modal-body { overflow: auto; padding: 22px 24px 24px; }
.os-modal-form { gap: 15px; }
.os-editor-identity { display: none !important; }
.os-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.os-modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e8ecef; }
.os-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 13px; background: linear-gradient(135deg, #17232c, #273945); color: #fff; }
.os-detail-hero > div > span { color: #f0a48f; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.os-detail-hero h3 { margin: 6px 0; font-size: 18px; line-height: 1.25; }
.os-detail-hero p { max-width: 620px; margin: 0; color: #c8d0d5; font-size: 10px; line-height: 1.55; }
.os-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.os-detail-grid div { padding: 12px; border: 1px solid #e7ebee; border-radius: 10px; background: #fbfcfc; }
.os-detail-grid dt { color: #77838c; font-size: 8px; }
.os-detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #29353d; font-size: 10px; font-weight: 750; }
.os-detail-section { margin-top: 18px; }
.os-detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.os-detail-section-head h3 { margin: 0; font-size: 12px; }
.os-detail-section-head span { color: #7b8790; font-size: 9px; }
.os-fact-list, .os-plan-detail-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.os-fact-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e7ebee; border-radius: 9px; }
.os-fact-list p { margin: 0; color: #35424b; font-size: 10px; line-height: 1.45; }
.os-fact-list span { padding: 3px 6px; border-radius: 999px; background: #eef2f4; color: #6d7982; font-size: 8px; }
.os-plan-detail-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e7ebee; border-radius: 9px; }
.os-plan-detail-list li > b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #fff0ec; color: #d55540; font-size: 9px; }
.os-plan-detail-list strong { display: block; font-size: 10px; }
.os-plan-detail-list small { color: #748089; font-size: 8px; }
.os-history-table { display: grid; gap: 6px; }
.os-history-table > div { display: grid; grid-template-columns: 48px 72px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #f7f9fa; }
.os-history-table strong { font-size: 10px; }
.os-history-table span { justify-self: start; padding: 3px 6px; border-radius: 999px; font-size: 8px; }
.os-history-table span.published { background: #e7f6f0; color: #13835f; }
.os-history-table span.draft { background: #fff2d8; color: #926500; }
.os-history-table p, .os-history-table small { margin: 0; color: #75818a; font-size: 8px; }
@media (max-width: 1280px) {
  .os-asset-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .os-presenter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .os-modal { padding: 10px; }
  .os-modal-dialog { max-height: calc(100vh - 20px); }
  .os-modal-head, .os-modal-body { padding-left: 16px; padding-right: 16px; }
  .os-form-grid, .os-detail-grid { grid-template-columns: 1fr; }
  .os-history-table > div { grid-template-columns: 42px 68px 1fr; }
  .os-history-table small { display: none; }
  .monitoring-status-grid, .monitoring-columns, .monitoring-boundaries, .review-media-summary, .monitor-primary-grid, .monitor-observation-grid, .monitor-dashboard-metrics { grid-template-columns: 1fr; }
  .monitor-tabs { position: static; display: flex; overflow-x: auto; }
  .monitor-tabs button { flex: 0 0 130px; }
  .monitor-progress-steps { grid-template-columns: 1fr 1fr; }
  .monitor-code-row, .created-session-result { grid-template-columns: 1fr; display: grid; }
  .created-session-code { min-width: 0; }
}
