:root {
  color-scheme: light;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: #2d2938;
  background: #f6f5f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --purple: #23146e;
  --purple-2: #493a9c;
  --purple-wash: #f0edf8;
  --ink: #282431;
  --muted: #706b79;
  --line: #e7e4ec;
  --canvas: #f6f5f8;
  --surface: #ffffff;
  --red: #da1217;
  --red-dark: #b40e13;
  --haitistream-login-background: radial-gradient(ellipse at 9% 80%, #4b358c 0, transparent 34%), radial-gradient(ellipse at 88% 12%, #30226e 0, transparent 30%), linear-gradient(128deg, #1c105d 0%, #23146e 50%, #17103e 100%);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7867c5; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }

/* Workspace shell */
.workspace-page { --sidebar-width: 246px; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 15px 16px; background: var(--purple); color: #f8f6ff; }
.sidebar-logo { display: flex; width: fit-content; align-items: center; padding: 5px; overflow: hidden; border-radius: 7px; background: #fff; }
.sidebar-logo img { display: block; width: 162px; max-width: 100%; height: auto; }
.workspace-account { margin-top: 25px; }
.workspace-switcher { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid #ffffff2b; border-radius: 9px; background: #ffffff0d; }
.workspace-account .workspace-switcher > span:nth-child(2) { min-width: 0; overflow: hidden; }
.workspace-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e7e2f4; color: #392979; font-size: 12px; font-weight: 800; }
.workspace-switcher strong, .workspace-switcher small { display: block; }
.workspace-switcher strong { color: #fff; font-size: 13px; font-weight: 700; }
.workspace-switcher small { margin-top: 3px; color: #d6d0e8; font-size: 11px; }
.switcher-chevron { margin-left: auto; color: #c9c2de; font-size: 18px; }
.sidebar-label { margin: 27px 8px 9px; color: #bfb5e0; font-size: 11px; font-weight: 700; letter-spacing: 1.25px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #e3def0; text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; }
.nav-item:hover { background: #ffffff12; color: #fff; }
.nav-item.is-current { background: #ffffff1c; color: #fff; box-shadow: inset 2px 0 #e5def8; }
.nav-icon { display: grid; width: 16px; place-items: center; color: #d1c8e8; font-size: 17px; }
.nav-item.is-current .nav-icon { color: #fff; }
.nav-count { min-width: 20px; margin-left: auto; padding: 3px 5px; border-radius: 99px; background: #ffffff19; color: #eeeafb; text-align: center; font-size: 11px; }
.settings-nav-item { margin-top: 18px; padding-top: 8px; border-top: 1px solid #ffffff25; border-radius: 0 0 7px 7px; }
.sidebar-bottom { margin-top: auto; }
.platform-admin-link { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding: 10px 9px; border: 1px solid #ffffff3b; border-radius: 8px; background: #ffffff15; color: #fff; }
.platform-admin-link > span:first-child { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #ffffff1c; font-size: 15px; }
.platform-admin-link > span:nth-child(2) { min-width: 0; }
.platform-admin-link strong, .platform-admin-link small { display: block; }
.platform-admin-link strong { font-size: 11px; }
.platform-admin-link small { margin-top: 3px; color: #ded8ed; font-size: 10px; }
.platform-admin-link > span:last-child { margin-left: auto; color: #d8d0e9; font-size: 12px; }
.platform-admin-link:hover { border-color: #ffffff70; background: #ffffff22; }
.sidebar-prototype { display: flex; align-items: center; gap: 9px; padding: 11px 9px; border: 1px solid #ffffff22; border-radius: 8px; background: #ffffff0c; }
.prototype-pulse { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c8b9ee; }
.sidebar-prototype strong, .sidebar-prototype small { display: block; }
.sidebar-prototype strong { color: #fff; font-size: 12px; }
.sidebar-prototype small { margin-top: 3px; color: #ccc4df; font-size: 11px; }
.sidebar-foot { padding: 15px 5px 0; color: #c9c1dc; font-size: 11px; }

.workspace-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-feedback { margin-top: 10px; padding: 9px 11px; border: 1px solid #ddd7ec; border-radius: 7px; background: #f2eff8; color: #51466c; font-size: 11px; line-height: 1.5; }
.workspace-feedback.has-error { border-color: #e9c9ca; background: #fff5f5; color: #8d2529; }
.admin-empty-inline, .admin-table-empty { margin: 0; padding: 13px 10px; color: #696371; font-size: 12px; line-height: 1.55; }
.admin-empty-inline { border-top: 1px solid #efedf2; }
.admin-table-empty { padding: 20px 10px; text-align: center; }
.not-connected { color: #493a9c; }
.not-connected i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #493a9c; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(22px, 4vw, 52px); border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #77717f; font-size: 13px; }
.breadcrumb strong { color: #302b38; font-weight: 700; }
.breadcrumb > span:nth-child(2) { color: #a49eab; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.account-action-menu { position: relative; }
.account-action-trigger { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border: 1px solid #e7e3ec; border-radius: 9px; background: #fff; color: #342f3c; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.account-action-trigger:hover, .account-action-trigger[aria-expanded="true"] { border-color: #c9c1dc; background: #fbfaff; box-shadow: 0 3px 12px #2119360c; }
.account-avatar { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #eeeaf7; color: #493a9c; font-size: 11px; font-weight: 800; }
.account-trigger-copy { min-width: 0; display: grid; gap: 2px; }
.account-trigger-copy strong, .account-trigger-copy small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger-copy strong { color: #342f3c; font-size: 11px; font-weight: 700; }
.account-trigger-copy small { color: #716b78; font-size: 10px; }
.account-role-label { max-width: 170px; overflow: hidden; color: #493a9c; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; }
.account-trigger-copy.is-identity-error small { color: #a62529; }
.account-chevron { margin-left: 3px; color: #706a78; font-size: 18px; line-height: 1; }
.account-action-panel { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(260px, calc(100vw - 24px)); padding: 7px; border: 1px solid #e5e1eb; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px #21193621; }
.account-action-item { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 10px; margin-top: 3px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #48424f; text-align: left; font-size: 11px; font-weight: 600; cursor: pointer; }
.account-action-item:hover, .account-action-item:focus-visible { background: #f3f0f9; color: #392d6c; }
.account-action-item > span { width: 16px; display: grid; place-items: center; color: #665a92; font-size: 14px; }
.account-action-item.is-signout { color: #a62529; }
.account-action-item.is-signout > span { color: #a62529; }
.account-action-item.is-signout:hover, .account-action-item.is-signout:focus-visible { background: #fff2f2; color: #8e1d21; }
.account-action-item[aria-disabled="true"] { cursor: progress; opacity: .65; }
.account-action-feedback { margin: 7px 8px 4px; color: #625c69; font-size: 11px; line-height: 1.45; }
.account-action-feedback.is-error { color: #8d2529; }
.account-action-feedback.is-success { color: #27643b; }
.prototype-chip { display: inline-flex; align-items: center; gap: 6px; color: #6f6878; font-size: 11px; font-weight: 700; letter-spacing: .75px; }
.prototype-chip > span { width: 6px; height: 6px; border-radius: 50%; background: #8878bc; }
.primary-action { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid var(--red); border-radius: 7px; background: var(--red); color: #fff; box-shadow: 0 4px 12px #da121722; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.primary-action:hover { transform: translateY(-1px); border-color: var(--red-dark); background: var(--red-dark); }
.primary-action > span { font-size: 18px; line-height: 1; }
.workspace-content { width: min(1320px, 100%); margin: 0 auto; padding: 20px clamp(22px, 4vw, 52px) 0; }
.prototype-notice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ddd7ec; border-radius: 8px; background: #f0edf8; color: #443b58; }
.notice-glyph { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dcd5ee; color: #493a9c; font: 700 13px Georgia, serif; }
.prototype-notice p { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0; font-size: 12px; line-height: 1.5; }
.prototype-notice strong { color: #342a50; }
.prototype-notice p span { color: #5d566b; }
.page-view { padding-top: 27px; }
.page-view.is-visible { animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .72; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.dashboard-welcome, .view-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 4px 0 22px; }
.overline, .panel-kicker { margin: 0; color: #696372; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.overline > span:first-child:not(.sample-label) { color: #a29ba9; }
.dashboard-welcome h1, .view-title-row h1 { margin: 9px 0 6px; color: #282431; font: 700 clamp(24px, 3vw, 31px)/1.18 "Manrope", "Segoe UI", sans-serif; letter-spacing: -.045em; }
.welcome-subtitle, .view-title-row > div > p:last-child { margin: 0; color: #6f6a77; font-size: 14px; line-height: 1.6; }
.sample-label { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 5px; border-radius: 4px; background: #efedf3; color: #625c6b; font-size: 11px; font-weight: 700; letter-spacing: .65px; vertical-align: 1px; }

/* Dashboard summary and event list */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric-card { min-width: 0; padding: 15px 16px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 3px 10px #21193605; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #5f5a67; font-size: 12px; font-weight: 600; }
.metric-card > strong { display: block; margin-top: 13px; color: #292533; font: 700 28px/1 "Manrope", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.metric-card > small { display: block; margin-top: 6px; color: #77717f; font-size: 11px; }
.metric-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; font-size: 15px; }
.purple-icon, .pale-icon { background: #f0edf8; color: var(--purple-2); }
.live-mini { display: inline-flex; align-items: center; gap: 5px; color: #6e6875; font-size: 11px; font-weight: 700; letter-spacing: .55px; }
.live-mini i, .state-live i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #da12172d; }
.content-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 3px 10px #21193605; }
.upcoming-panel { padding: 17px 18px 8px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 13px; }
.panel-heading h2 { margin: 5px 0 4px; color: #302b39; font: 700 19px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: #736d7a; font-size: 12px; }
.text-action { border: 0; background: transparent; color: #493a9c; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.text-action:hover, .row-viewer-link:hover, .table-link:hover { color: #23146e; text-decoration: underline; }
.dashboard-event-list { display: grid; }
.dashboard-event-row { min-height: 56px; display: grid; grid-template-columns: 29px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border-top: 1px solid #efedf2; }
.event-date-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #f0edf8; color: #493a9c; font-size: 15px; }
.dashboard-event-name { min-width: 0; }
.dashboard-event-name strong, .dashboard-event-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-event-name strong { color: #35303d; font-size: 12px; font-weight: 700; }
.dashboard-event-name small { margin-top: 4px; color: #77717e; font-size: 11px; }
.dashboard-event-name small span { margin: 0 3px; color: #aaa4b0; }
.state-pill { width: fit-content; min-height: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; background: #f0edf8; color: #45376e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.event-bridge-status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 5px; color: #706a77; font-size: 10px; font-weight: 650; }
.event-bridge-status i { width: 6px; height: 6px; border-radius: 50%; background: #97919d; }
.event-bridge-status.bridge-starting i { background: #d19923; animation: bridge-pulse 1s ease-in-out infinite alternate; }
.event-bridge-status.bridge-live { color: #23714e; }
.event-bridge-status.bridge-live i { background: #2b9b68; }
.event-bridge-status.bridge-failed { color: #a41117; }
.event-bridge-status.bridge-failed i { background: #c6353b; }
.event-bridge-status small { max-width: 220px; font-size: 9px; font-weight: 400; line-height: 1.4; }
@keyframes bridge-pulse { to { opacity: .35; } }
.state-pill small { color: inherit; opacity: .75; font-size: 11px; font-weight: 600; }
.state-scheduled { background: #f0edf8; color: #493a9c; }
.state-offline { background: #f1eff3; color: #5e5966; }
.state-ended { background: #f0eff1; color: #635e68; }
.state-live { border-color: var(--red); background: var(--red); color: #fff; }
.state-live small { color: #fff; }
.row-viewer-link { color: #493a9c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.row-viewer-link span { margin-left: 3px; }
.guide-section { margin: 23px 0 21px; }
.guide-heading { align-items: end; }
.guide-heading .guide-count { margin-bottom: 3px; color: #726c79; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.guide-card { min-height: 116px; display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.guide-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #f0edf8; color: var(--purple-2); font-size: 16px; }
.mobile-icon { background: #f5f3f8; color: #625b71; }
.obs-icon { background: #f2f0f7; color: #544d61; }
.guide-card h3 { margin: 1px 0 5px; color: #332e3b; font: 700 13px "Manrope", "Segoe UI", sans-serif; }
.guide-card p { margin: 0; color: #6e6875; font-size: 11px; line-height: 1.55; }
.guide-meta { display: inline-block; margin-top: 8px; color: #77717f; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.guide-link { margin-top: 7px; padding: 0; border: 0; background: transparent; color: #493a9c; font-size: 11px; font-weight: 700; cursor: pointer; }
.workspace-footer { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e5e2e9; color: #77717e; font-size: 11px; }
.workspace-footer > span:last-child { display: inline-flex; align-items: center; gap: 7px; text-align: right; }
.workspace-footer i { width: 5px; height: 5px; border-radius: 50%; background: #897eb0; }

/* Event management and public viewer links */
.view-title-row { align-items: end; margin: 4px 0 17px; }
.view-title-row h1 { margin-top: 8px; }
.table-panel { overflow: hidden; }
.table-toolbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 15px; border-bottom: 1px solid var(--line); color: #494451; font-size: 12px; font-weight: 700; }
.table-toolbar strong { margin-left: 4px; color: #78727f; font-size: 11px; }
.data-disclaimer { color: #77717d; font-size: 11px; font-weight: 400; text-align: right; }
.event-table-wrap { overflow-x: auto; }
.event-table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: left; }
.event-table th { height: 35px; padding: 0 12px; background: #faf9fb; color: #706a77; font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.event-table td { height: 58px; padding: 7px 12px; border-top: 1px solid #eeecf1; color: #3d3845; font-size: 11px; }
.table-event-title { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.table-event-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #f0edf8; color: #493a9c; font-size: 15px; }
.table-event-title strong, .table-event-title small { display: block; }
.table-event-title strong { color: #342f3c; font-size: 11px; font-weight: 700; }
.table-event-title small { margin-top: 3px; color: #79737e; font-size: 11px; }
.table-date { color: #5f5a66 !important; white-space: nowrap; }
.method-label { padding: 4px 6px; border-radius: 5px; background: #f0edf8; color: #493a9c; font-size: 11px; font-weight: 700; }
.table-link { color: #493a9c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.more-button { width: 26px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6e6877; letter-spacing: 1px; cursor: pointer; }
.more-button:hover { border-color: #e4e0eb; background: #f8f7fa; }
.viewer-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.viewer-page-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.viewer-card-head { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.viewer-card-head .panel-kicker { color: #77717f; font-size: 11px; }
.viewer-card-head h2 { margin: 6px 0 0; color: #332e3a; font: 700 16px "Manrope", "Segoe UI", sans-serif; }
.viewer-card-date { margin: 8px 0 13px; color: #6d6774; font-size: 11px; }
.viewer-card-date span { margin: 0 3px; color: #aaa5b0; }
.audience-link-box { padding: 10px; border: 1px solid #e9e6ed; border-radius: 7px; background: #faf9fb; }
.audience-link-box > span { color: #706a76; font-size: 11px; font-weight: 700; letter-spacing: .65px; }
.audience-link-box > div { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.audience-link-box a { min-width: 0; overflow: hidden; color: #493a9c; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.viewer-invite-box > p { margin: 7px 0; color: #635d6b; font-size: 11px; line-height: 1.5; }
.viewer-invite-result { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.viewer-invite-result a { flex: 1 1 100%; }
.viewer-invite-feedback.has-error { color: #a62529; }
.copy-control { min-height: 25px; flex: 0 0 auto; padding: 0 8px; border: 1px solid #d9d5e0; border-radius: 5px; background: #fff; color: #403a4b; font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-control:hover { border-color: #8476b4; color: #493a9c; }
.operator-link-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 11px; padding: 0; border: 0; background: transparent; color: #4f4670; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.operator-link-button:hover { color: #23146e; }
.soft-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #ddd7ec; border-radius: 8px; background: #f0edf8; color: #5b5368; font-size: 12px; line-height: 1.6; }
.soft-notice strong { color: #382c65; }

/* Audience, analytics, and settings preview pages */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.access-card { padding: 17px; }
.access-symbol { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #f0edf8; color: #493a9c; font-size: 18px; }
.access-card h2 { margin: 13px 0 5px; color: #302b38; font: 700 16px "Manrope", sans-serif; }
.access-card p { min-height: 42px; margin: 0 0 13px; color: #68626f; font-size: 12px; line-height: 1.6; }
.analytics-empty { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.analytics-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: #f0edf8; color: #493a9c; font-size: 24px; }
.analytics-empty h2 { margin: 15px 0 6px; color: #35303d; font: 700 19px "Manrope", sans-serif; }
.analytics-empty p { max-width: 410px; margin: 0; color: #696471; font-size: 12px; line-height: 1.65; }
.analytics-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; padding: 6px 8px; border-radius: 5px; background: #f2f0f4; color: #5e5965; font-size: 11px; font-weight: 700; }
.analytics-status i { width: 5px; height: 5px; border-radius: 50%; background: #8d8697; }
.settings-panel { max-width: 700px; padding: 17px; }
.settings-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.large-avatar { width: 41px; height: 41px; font-size: 14px; }
.settings-heading h2 { margin: 0; color: #302b38; font: 700 16px "Manrope", sans-serif; }
.settings-heading p { margin: 4px 0 0; color: #706a77; font-size: 11px; }
.settings-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #efedf2; font-size: 12px; }
.settings-row:last-child { border: 0; }
.settings-row > span { color: #68626f; }
.settings-row > strong { color: #383341; font-size: 11px; }
.client-user-management { margin-top: 16px; padding: 17px; }
.client-user-management h2 { margin: 0; color: #302b38; font: 700 16px "Manrope", sans-serif; }
.client-user-management .panel-heading { margin-bottom: 14px; }
.client-user-invite-form { padding: 12px 0; border-top: 1px solid var(--line); }
.client-user-invite-form > div { display: flex; align-items: center; gap: 8px; }
.client-user-invite-form .form-control { min-width: 0; flex: 1; min-height: 37px; }
.client-user-management .event-table-wrap { overflow-x: auto; }
.client-user-management .event-table { min-width: 680px; }
.client-user-management .client-member-status { display: inline-block; width: auto; min-width: 105px; min-height: 31px; margin-right: 5px; }
.client-user-management .copy-control { min-height: 31px; margin: 2px 3px 2px 0; }
.client-invitations-heading { margin: 18px 0 8px; color: #39343f; font: 700 13px "Manrope", sans-serif; }
.not-connected { display: inline-flex; align-items: center; gap: 6px; }
.not-connected i { width: 5px; height: 5px; border-radius: 50%; background: #8b8492; }

/* Event setup wizard */
.wizard-dialog, .operator-dialog, .guide-dialog { width: min(760px, calc(100% - 28px)); max-width: none; max-height: min(88vh, 780px); padding: 0; overflow: auto; border: 1px solid #e0dce6; border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px #160d3280; }
.wizard-dialog::backdrop, .operator-dialog::backdrop, .guide-dialog::backdrop { background: #19132a99; backdrop-filter: blur(3px); }
.wizard-shell { padding: 22px 24px 0; }
.wizard-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.wizard-header h2 { margin: 5px 0 0; color: #302b38; font: 700 21px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.03em; }
.wizard-header .panel-kicker { color: #6a6472; }
.icon-close { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e7e4eb; border-radius: 50%; background: #fff; color: #625c6a; font-size: 20px; cursor: pointer; }
.icon-close:hover { background: #f5f3f8; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 21px 0 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.wizard-steps li { position: relative; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0 5px 12px; color: #77717d; font-size: 11px; }
.wizard-steps li::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.wizard-steps li > span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #d9d5df; border-radius: 50%; color: #6e6875; font-size: 11px; }
.wizard-steps li.is-active { color: #372b63; font-weight: 700; }
.wizard-steps li.is-active::after { background: #493a9c; }
.wizard-steps li.is-active > span, .wizard-steps li.is-complete > span { border-color: #493a9c; background: #493a9c; color: #fff; }
.wizard-steps li.is-complete::after { background: #cbc3e1; }
.wizard-step { min-height: 327px; padding: 20px 1px 22px; }
.wizard-step-title { margin-bottom: 17px; }
.step-overline { color: #726c78; font-size: 11px; font-weight: 700; letter-spacing: .9px; }
.wizard-step-title h3 { margin: 6px 0 4px; color: #322d3a; font: 700 18px "Manrope", "Segoe UI", sans-serif; }
.wizard-step-title p { margin: 0; color: #706a77; font-size: 12px; line-height: 1.5; }
.form-label { display: block; margin: 12px 0 6px; color: #423d49; font-size: 11px; font-weight: 700; }
.form-label > span { margin-left: 4px; color: #817b88; font-size: 11px; font-weight: 500; }
.form-control { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dcd8e1; border-radius: 6px; background: #fff; color: #322d3a; font-size: 12px; }
.form-control::placeholder { color: #88828e; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin: 13px 0 0; color: #716b77; font-size: 11px; line-height: 1.5; }
.choice-list { display: grid; gap: 8px; }
.choice-card { position: relative; min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e4e1e9; border-radius: 7px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #8c7cbd; background: #f7f5fb; }
.choice-card input, .method-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-radio { width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid #b9b3c1; border-radius: 50%; }
.choice-card input:checked + .choice-radio { border: 4px solid #493a9c; }
.choice-copy { min-width: 0; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { color: #332e3b; font-size: 12px; }
.choice-copy small { margin-top: 3px; color: #706a77; font-size: 11px; }
.choice-tag { margin-left: auto; color: #716a7b; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.wizard-note { margin-top: 12px; padding: 9px 11px; border-radius: 6px; background: #f1eff5; color: #5d5765; font-size: 11px; line-height: 1.5; }
.wizard-note strong { color: #443a5e; }
.device-neutral-note { display: flex; align-items: start; gap: 9px; margin-bottom: 12px; padding: 10px; border: 1px solid #e3dfeb; border-radius: 7px; background: #f8f7fa; color: #514b5b; }
.device-neutral-note > span { color: #493a9c; font-size: 17px; }
.device-neutral-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.device-neutral-note strong { color: #342c4f; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method-card { position: relative; min-height: 120px; display: flex; flex-direction: column; align-items: start; padding: 11px; border: 1px solid #e2dfe8; border-radius: 7px; cursor: pointer; }
.method-card.is-selected { border-color: #8473b6; background: #f7f5fb; box-shadow: 0 0 0 1px #8473b633; }
.method-card:focus-within { outline: 2px solid #7867c5; outline-offset: 2px; }
.method-acronym { margin-bottom: 8px; color: #493a9c; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.method-card strong { color: #37313f; font-size: 11px; }
.method-card small { margin-top: 5px; color: #706a77; font-size: 11px; line-height: 1.5; }
.method-check { position: absolute; top: 9px; right: 9px; display: grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: #493a9c; color: #fff; font-size: 11px; opacity: 0; }
.method-card.is-selected .method-check { opacity: 1; }
.viewer-preview-card { padding: 14px; border: 1px solid #e4e0e9; border-radius: 8px; background: #fbfafc; }
.preview-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-brand img { display: block; width: 98px; height: auto; border-radius: 4px; background: #fff; }
.preview-state { color: #655d70; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.viewer-preview-card h4 { margin: 15px 0 5px; color: #302b38; font: 700 16px "Manrope", sans-serif; }
.viewer-preview-card > p { margin: 0; color: #706a77; font-size: 11px; }
.preview-link-label { margin-top: 14px; color: #716b78; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.preview-url-row { margin-top: 6px; padding: 8px; border: 1px solid #e5e2e9; border-radius: 5px; background: #fff; }
.preview-url-row a { color: #493a9c; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.private-preview-note { display: flex; gap: 9px; margin-top: 11px; padding: 10px; border: 1px solid #e5e2eb; border-radius: 7px; background: #f2f0f6; }
.lock-glyph { color: #493a9c; font-size: 16px; }
.private-preview-note p, .private-preview-note span { display: block; margin: 0; color: #645e6c; font-size: 11px; line-height: 1.5; }
.private-preview-note strong { display: block; margin-bottom: 3px; color: #3d354f; font-size: 11px; }
.wizard-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -24px; padding: 12px 24px; border-top: 1px solid var(--line); background: #fff; }
.wizard-controls { display: flex; align-items: center; gap: 9px; }
.wizard-back, .wizard-cancel { min-height: 34px; padding: 0 11px; border: 1px solid #dedbe4; border-radius: 6px; background: #fff; color: #504a58; font-size: 11px; font-weight: 600; cursor: pointer; }
.wizard-back:hover, .wizard-cancel:hover { background: #f7f6f9; }
.wizard-controls .primary-action { min-height: 34px; font-size: 11px; }

/* Separate operator-only setup dialog */
.operator-dialog, .guide-dialog { width: min(530px, calc(100% - 28px)); }
.operator-dialog-shell { padding: 22px; }
.operator-event-name { margin: 11px 0; color: #6d6774; font-size: 12px; }
.private-callout { display: grid; gap: 5px; padding: 11px; border: 1px solid #ded9e8; border-radius: 7px; background: #f1eff6; }
.private-callout strong { color: #3e355c; font-size: 12px; }
.private-callout span { color: #635c6b; font-size: 11px; line-height: 1.5; }
.operator-protocol-row { display: flex; justify-content: space-between; margin: 14px 0; color: #655f6d; font-size: 11px; }
.operator-protocol-row strong { color: #493a9c; }
.operator-field-label { display: block; margin: 12px 0 6px; color: #524c59; font-size: 11px; font-weight: 700; }
.operator-value-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px; border: 1px solid #e2dfe8; border-radius: 6px; background: #fbfafc; }
.operator-value-row code { color: #342d40; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.operator-endpoint-note { margin: 10px 0 0; color: #686270; font-size: 11px; line-height: 1.5; }
.operator-dismiss { min-height: 34px; display: block; margin: 17px 0 0 auto; padding: 0 14px; border: 1px solid #dcd8e2; border-radius: 6px; background: #fff; color: #443e4b; font-size: 11px; font-weight: 700; cursor: pointer; }
.operator-dismiss:hover { background: #f6f4f8; }
.browser-broadcaster { margin-top: 18px; }
.browser-broadcaster[hidden] { display: none; }
.browser-broadcaster h3 { margin: 5px 0 0; color: #302b38; font: 700 16px "Manrope", "Segoe UI", sans-serif; }
.broadcaster-preview { display: block; width: min(100%, 480px); max-height: 54vh; aspect-ratio: 4 / 3; margin: 12px auto 0; border: 1px solid #dcd8e2; border-radius: 8px; background: #171224; object-fit: cover; transform: scaleX(-1); }
.broadcaster-status { min-height: 20px; margin: 9px 0 0; color: #575160; font-size: 12px; line-height: 1.5; }
.broadcaster-status.has-error { color: #a52837; }
.broadcaster-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 10px; }
.broadcaster-controls .operator-field-label { grid-column: 1 / -1; margin-bottom: -5px; }
.broadcaster-controls .operator-dismiss, .broadcaster-controls .primary-action { min-height: 40px; margin: 0; }
.broadcaster-controls .form-control { min-height: 40px; }
.broadcaster-controls button:disabled, .broadcaster-controls select:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) {
  .operator-dialog-shell { padding: 16px; }
  .broadcaster-controls { grid-template-columns: 1fr; }
  .broadcaster-controls .operator-field-label { grid-column: auto; }
  .broadcaster-preview { max-height: 48vh; }
}
.account-password-dialog { width: min(480px, calc(100% - 28px)); }
.account-password-dialog .operator-dialog-shell { padding: 20px; }
.account-password-dialog .wizard-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.account-password-dialog .wizard-header h2 { margin: 5px 0 0; color: #312c39; font: 700 19px "Manrope", sans-serif; }
.password-form-feedback:empty { display: none; }
.password-form-feedback:not(:empty) { padding: 7px 9px; border-radius: 6px; background: #f5f2fa; color: #51466c; }
.account-password-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.account-password-actions .primary-action { min-height: 34px; font-size: 11px; }
.guide-dialog-copy { margin: 15px 0 0; color: #5f5966; font-size: 12px; line-height: 1.65; }
.guide-dialog-copy code { color: #493a9c; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Dedicated branded event viewer */
.event-viewer-page { background: var(--canvas); color: var(--ink); }
.viewer-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(18px, 4vw, 54px); border-bottom: 1px solid #ffffff30; background: var(--purple); }
.viewer-header .sidebar-logo { padding: 3px; border: 1px solid #efedf2; }
.viewer-header .sidebar-logo img { width: 126px; }
.viewer-header-meta { display: inline-flex; align-items: center; gap: 7px; color: #e5e0f3; font-size: 11px; font-weight: 700; letter-spacing: .75px; }
.viewer-header-meta i { width: 6px; height: 6px; border-radius: 50%; background: #8276a8; }
.workspace-return { display: inline-flex; align-items: center; gap: 7px; color: #493a9c; font-size: 12px; font-weight: 700; }
.workspace-return:hover { color: #23146e; text-decoration: underline; }
.event-viewer-main { width: min(1210px, calc(100% - 44px)); margin: 0 auto; padding: 32px 0 12px; }
.event-viewer-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.event-viewer-heading .section-kicker { color: var(--muted); }
.event-heading-copy h1 { margin: 7px 0 5px; color: var(--ink); font: 700 clamp(22px, 3.5vw, 32px)/1.15 "Manrope", "Segoe UI", sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.event-heading-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 14px; }
.player-column { min-width: 0; }
.player-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #44366e; border-radius: 10px; background: radial-gradient(ellipse at center, #302552 0, #130e28 76%); box-shadow: 0 12px 30px #1b14301a; }
.player-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0c081b; }
.player-topline { position: absolute; z-index: 2; top: 11px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.player-label, .latency-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #ffffff20; border-radius: 5px; background: #17112cea; color: #f5f2fa; font-size: 11px; font-weight: 700; letter-spacing: .7px; backdrop-filter: blur(7px); }
.latency-label span { width: 5px; height: 5px; border-radius: 50%; background: #c7bde5; }
.player-overlay { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; background: radial-gradient(ellipse at center, #30264ae8, #100b24ee); text-align: center; }
.player-overlay[hidden] { display: none; }
.overlay-emblem { display: block; width: 60px; height: 60px; filter: drop-shadow(0 8px 15px #08051c66); }
.overlay-title { margin-top: 12px; color: #fff; font: 700 18px "Manrope", "Segoe UI", sans-serif; }
.player-overlay > p { max-width: 340px; margin: 7px 0 0; color: #e0dbea; font-size: 11px; line-height: 1.6; }
.overlay-local { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; color: #d0c9dd; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: #baaddf; }
.stream-caption { min-height: 53px; display: flex; align-items: center; gap: 9px; padding: 9px 3px; border-bottom: 1px solid #e4e1e9; }
.channel-avatar { display: block; width: 39px; height: 39px; flex: 0 0 auto; object-fit: contain; }
.caption-copy { min-width: 0; }
.caption-copy h2 { margin: 0; color: #37323f; font: 700 12px "Manrope", sans-serif; }
.caption-copy p { margin: 3px 0 0; color: #726c78; font-size: 11px; }
.caption-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 7px; border: 1px solid #e1dde7; border-radius: 5px; color: #615b69; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.caption-tag .secure-dot { width: 5px; height: 5px; background: #8175a3; }
.live-status { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 4px 8px; border: 1px solid #e1dee6; border-radius: 99px; background: #fff; color: #5e5964; font-size: 11px; font-weight: 700; letter-spacing: .45px; }
.live-status.is-live { border-color: var(--red); background: var(--red); color: #fff; }
.live-status.is-offline { border-color: #dedbe3; background: #f1eff3; color: #5e5966; }
.event-details-card { padding: 15px; border: 1px solid #e4e1e9; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px #21193607; }
.details-card-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; color: #383341; font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.details-heading-title { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.details-icon { color: #493a9c; font-size: 15px; }
.event-details-card .info-rule { height: 1px; margin: 11px 0; background: #ebe8ef; }
.event-details-card .live-status { min-height: 20px; flex: 0 0 auto; margin: 0; padding: 3px 7px; font-size: 10px; letter-spacing: .45px; }
.event-detail-row { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; font-size: 11px; }
.event-detail-row > span { flex: 0 0 30%; color: #706a77; }
.event-detail-row > strong { min-width: 0; flex: 1 1 auto; color: #3b3643; font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.event-detail-row .info-state { color: #706a77; }
.event-details-card .state-pill { min-height: 18px; padding: 2px 6px; font-size: 11px; }
.demo-access-note { padding: 9px; border: 1px solid #e7e3ee; border-radius: 6px; background: #f8f7fa; }
.demo-access-note strong { color: #453a64; font-size: 11px; }
.demo-access-note p { margin: 4px 0 0; color: #635d6b; font-size: 11px; line-height: 1.55; }
.viewer-sound-note { margin: 9px 0 0; color: #625c69; font-size: 11px; line-height: 1.5; }
.event-details-card .back-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #493a9c; font-size: 11px; font-weight: 700; }
.event-details-card .back-link:hover { color: #23146e; text-decoration: underline; }
.viewer-prototype-footnote { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #655f6c; font-size: 11px; }
.viewer-prototype-footnote .secure-dot { background: #8a7cad; }
.event-viewer-main > .portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.viewer-load-error { margin: 8px 0 0; color: #a62529; font-size: 13px; font-weight: 700; }
.event-viewer-main > .workspace-footer { margin-top: 18px; }

/* Dialog base */
.wizard-dialog, .operator-dialog, .guide-dialog { width: min(720px, calc(100% - 28px)); max-width: none; max-height: min(88vh, 760px); padding: 0; overflow: auto; border: 1px solid #dedbe4; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px #1c153380; }
.operator-dialog, .guide-dialog { width: min(520px, calc(100% - 28px)); }
.wizard-dialog::backdrop, .operator-dialog::backdrop, .guide-dialog::backdrop { background: #1b143080; backdrop-filter: blur(3px); }
.wizard-shell { padding: 20px 22px 0; }
.wizard-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.wizard-header h2 { margin: 5px 0 0; color: #312c39; font: 700 20px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.025em; }
.wizard-header .panel-kicker { color: #6c6673; }
.icon-close { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #e6e3ea; border-radius: 50%; background: #fff; color: #625c69; font-size: 20px; cursor: pointer; }
.icon-close:hover { background: #f5f3f8; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.wizard-steps li { position: relative; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0 5px 10px; color: #716b78; font-size: 11px; }
.wizard-steps li::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.wizard-steps li > span { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #d8d4de; border-radius: 50%; color: #625c69; font-size: 11px; }
.wizard-steps li.is-active { color: #392d6c; font-weight: 700; }
.wizard-steps li.is-active::after { background: #493a9c; }
.wizard-steps li.is-active > span, .wizard-steps li.is-complete > span { border-color: #493a9c; background: #493a9c; color: #fff; }
.wizard-steps li.is-complete::after { background: #cbc4de; }
.wizard-step { min-height: 315px; padding: 19px 1px 21px; }
.wizard-step-title { margin-bottom: 15px; }
.step-overline { color: #716b78; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.wizard-step-title h3 { margin: 6px 0 4px; color: #322d39; font: 700 17px "Manrope", "Segoe UI", sans-serif; }
.wizard-step-title p { margin: 0; color: #706a77; font-size: 11px; line-height: 1.5; }
.form-label { display: block; margin: 11px 0 5px; color: #47414f; font-size: 11px; font-weight: 700; }
.form-label > span { margin-left: 4px; color: #817b88; font-size: 11px; font-weight: 500; }
.form-control { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #dcd8e1; border-radius: 6px; background: #fff; color: #332e3b; font-size: 12px; }
.form-control::placeholder { color: #78727f; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin: 12px 0 0; color: #706a77; font-size: 11px; line-height: 1.5; }
.choice-list { display: grid; gap: 7px; }
.choice-card { position: relative; min-height: 49px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #e3e0e8; border-radius: 7px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #8d7ec0; background: #f8f6fb; }
.choice-card input, .method-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-card:focus-within, .method-card:focus-within { outline: 2px solid #7969b8; outline-offset: 2px; }
.choice-radio { width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid #b9b4c0; border-radius: 50%; }
.choice-card input:checked + .choice-radio { border: 4px solid #493a9c; }
.choice-copy { min-width: 0; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { color: #37323f; font-size: 11px; }
.choice-copy small { margin-top: 3px; color: #6e6875; font-size: 11px; }
.choice-tag { margin-left: auto; color: #6f6976; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.wizard-note { margin-top: 10px; padding: 9px 10px; border-radius: 6px; background: #f1eff5; color: #5e5866; font-size: 11px; line-height: 1.5; }
.wizard-note strong { color: #403761; }
.device-neutral-note { display: flex; align-items: start; gap: 8px; margin-bottom: 11px; padding: 9px; border: 1px solid #e3dfea; border-radius: 7px; background: #f8f7fa; color: #55505d; }
.device-neutral-note > span { color: #493a9c; font-size: 16px; }
.device-neutral-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.device-neutral-note strong { color: #372d58; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method-card { position: relative; min-height: 115px; display: flex; flex-direction: column; align-items: start; padding: 10px; border: 1px solid #e2dfe8; border-radius: 7px; cursor: pointer; }
.method-card.is-selected { border-color: #8473b6; background: #f7f5fb; box-shadow: 0 0 0 1px #8473b633; }
.method-acronym { margin-bottom: 7px; color: #493a9c; font-size: 11px; font-weight: 800; letter-spacing: .45px; }
.method-card strong { color: #38323f; font-size: 11px; }
.method-card small { margin-top: 5px; color: #716b78; font-size: 11px; line-height: 1.5; }
.method-check { position: absolute; top: 8px; right: 8px; display: grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; background: #493a9c; color: #fff; font-size: 11px; opacity: 0; }
.method-card.is-selected .method-check { opacity: 1; }
.viewer-preview-card { padding: 12px; border: 1px solid #e4e0e9; border-radius: 8px; background: #fbfafc; }
.preview-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-brand img { display: block; width: 94px; height: auto; border-radius: 4px; background: #fff; }
.preview-state { color: #6b6572; font-size: 11px; font-weight: 700; letter-spacing: .45px; }
.viewer-preview-card h4 { margin: 12px 0 4px; color: #332e3a; font: 700 15px "Manrope", sans-serif; }
.viewer-preview-card > p { margin: 0; color: #716b78; font-size: 11px; }
.preview-link-label { margin-top: 12px; color: #726c79; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.preview-url-row { margin-top: 5px; padding: 7px; border: 1px solid #e5e2e9; border-radius: 5px; background: #fff; }
.preview-url-row a { color: #493a9c; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.private-preview-note { display: flex; gap: 8px; margin-top: 9px; padding: 9px; border: 1px solid #e5e2eb; border-radius: 7px; background: #f2f0f6; }
.lock-glyph { color: #493a9c; font-size: 15px; }
.private-preview-note p, .private-preview-note span { display: block; margin: 0; color: #645e6c; font-size: 11px; line-height: 1.5; }
.private-preview-note strong { display: block; margin-bottom: 2px; color: #403761; font-size: 11px; }
.wizard-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -22px; padding: 11px 22px; border-top: 1px solid var(--line); background: #fff; }
.wizard-controls { display: flex; align-items: center; gap: 8px; }
.wizard-back, .wizard-cancel { min-height: 32px; padding: 0 10px; border: 1px solid #dedbe4; border-radius: 6px; background: #fff; color: #514b58; font-size: 11px; font-weight: 600; cursor: pointer; }
.wizard-back:hover, .wizard-cancel:hover { background: #f7f6f9; }
.wizard-controls .primary-action { min-height: 32px; font-size: 11px; }

/* Operator-only contribution setup */
.operator-dialog-shell { padding: 20px; }
.operator-dialog .wizard-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.operator-dialog .wizard-header h2, .guide-dialog .wizard-header h2 { margin: 5px 0 0; color: #312c39; font: 700 19px "Manrope", sans-serif; }
.operator-event-name { margin: 10px 0; color: #706a77; font-size: 11px; }
.private-callout { display: grid; gap: 5px; padding: 10px; border: 1px solid #e1ddea; border-radius: 7px; background: #f3f1f7; }
.private-callout strong { color: #403761; font-size: 11px; }
.private-callout span { color: #625c69; font-size: 11px; line-height: 1.55; }
.operator-protocol-row { display: flex; justify-content: space-between; margin: 13px 0; color: #67616e; font-size: 11px; }
.operator-protocol-row strong { color: #493a9c; }
.operator-field-label { display: block; margin: 11px 0 5px; color: #514b58; font-size: 11px; font-weight: 700; }
.operator-value-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid #e4e1e9; border-radius: 6px; background: #fbfafc; }
.operator-value-row code { color: #36313e; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.operator-endpoint-note { margin: 9px 0 0; color: #68626f; font-size: 11px; line-height: 1.55; }
.operator-dismiss { min-height: 31px; display: block; margin: 15px 0 0 auto; padding: 0 13px; border: 1px solid #ddd9e3; border-radius: 6px; background: #fff; color: #494350; font-size: 11px; font-weight: 700; cursor: pointer; }
.operator-dismiss:hover { background: #f6f4f8; }
.guide-dialog-copy { margin: 13px 0 0; color: #605a67; font-size: 11px; line-height: 1.65; }
.guide-dialog-copy code { color: #493a9c; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 1120px) {
  .workspace-page { --sidebar-width: 216px; }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .sidebar-logo img { width: 146px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-card:last-child { grid-column: 1 / -1; }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 820px) {
  .workspace-page { --sidebar-width: 184px; }
  .sidebar { padding-right: 10px; padding-left: 10px; }
  .sidebar-logo img { width: 132px; }
  .workspace-switcher { gap: 7px; padding: 8px 6px; }
  .workspace-content { padding-right: 18px; padding-left: 18px; }
  .topbar { padding-right: 18px; padding-left: 18px; }
  .dashboard-event-row { grid-template-columns: 27px minmax(0, 1fr) auto; }
  .row-viewer-link { grid-column: 2 / -1; justify-self: end; margin: -6px 0 8px; }
  .viewer-layout { grid-template-columns: 1fr; }
  .event-details-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .details-card-heading, .event-details-card > .info-rule, .demo-access-note, .viewer-sound-note, .event-details-card .back-link { grid-column: 1 / -1; }
  .event-details-card .event-detail-row { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .workspace-page { --sidebar-width: 0px; }
  .sidebar { position: static; width: auto; min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; padding: 10px 15px 0; }
  .sidebar-logo { align-self: center; padding: 3px; }
  .sidebar-logo img { width: 115px; }
  .workspace-account { min-width: 0; display: flex; align-items: center; gap: 7px; margin: 0; }
  .workspace-switcher { min-width: 0; flex: 1 1 auto; margin: 0; padding: 5px 6px; }
  .workspace-avatar { width: 27px; height: 27px; }
  .workspace-switcher strong { font-size: 11px; }
  .workspace-switcher small { font-size: 11px; }
  .workspace-switcher strong, .workspace-switcher small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .platform-admin-link { width: 100%; min-height: 36px; margin: 0 0 2px; padding: 5px 8px; }
  .platform-admin-link > span:first-child { width: 23px; height: 23px; }
  .platform-admin-link strong { font-size: 10px; }
  .platform-admin-link small { font-size: 9px; }
  .account-action-trigger { min-height: 40px; gap: 7px; padding-right: 7px; }
  .account-avatar { width: 29px; height: 29px; }
  .account-trigger-copy strong { max-width: 105px; }
  .account-trigger-copy [data-account-email] { display: none; }
  .account-role-label { max-width: 105px; }
  .account-action-panel { right: -2px; }
  .main-nav { grid-column: 1 / -1; display: flex; gap: 3px; overflow-x: auto; padding: 4px 0 8px; border-top: 1px solid #ffffff25; scrollbar-width: thin; }
  .nav-item { min-height: 33px; flex: 0 0 auto; gap: 6px; padding: 0 8px; font-size: 11px; }
  .nav-icon { width: 12px; font-size: 15px; }
  .nav-count { min-width: 17px; padding: 2px 4px; font-size: 11px; }
  .settings-nav-item { margin: 0; padding-top: 0; border: 0; border-left: 1px solid #ffffff35; border-radius: 0; }
  .workspace-main { margin-left: 0; }
  .topbar { min-height: 55px; }
  .prototype-chip { display: none; }
  .workspace-content { padding: 14px 14px 0; }
  .prototype-notice { align-items: start; padding: 8px; }
  .prototype-notice p { display: grid; gap: 2px; font-size: 11px; }
  .page-view { padding-top: 20px; }
  .dashboard-welcome, .view-title-row { align-items: start; }
  .dashboard-welcome { flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .dashboard-welcome h1, .view-title-row h1 { font-size: 26px; }
  .welcome-subtitle, .view-title-row > div > p:last-child { max-width: 470px; font-size: 12px; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 12px; }
  .metric-card > strong { font-size: 25px; }
  .upcoming-panel { padding: 13px 12px 6px; }
  .dashboard-event-row { min-height: 61px; gap: 8px; }
  .dashboard-event-name strong { max-width: 205px; }
  .guide-heading { align-items: start; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card:last-child { grid-column: auto; }
  .guide-card { min-height: 0; }
  .guide-card p { font-size: 11px; }
  .workspace-footer { font-size: 11px; }
  .viewer-link-grid, .audience-grid { grid-template-columns: 1fr; }
  .view-title-row { flex-direction: column; }
  .table-toolbar { align-items: start; flex-direction: column; justify-content: center; padding: 9px 12px; }
  .data-disclaimer { text-align: left; }
  .settings-row { font-size: 11px; }
  .event-viewer-main { width: calc(100% - 28px); padding-top: 22px; }
  .viewer-header { min-height: 57px; padding: 6px 14px; }
  .viewer-header .sidebar-logo img { width: 106px; }
  .viewer-header-meta { display: none; }
  .event-viewer-heading { align-items: start; }
  .event-viewer-heading h1 { font-size: 24px; }
  .event-viewer-heading p { font-size: 11px; }
  .viewer-layout { gap: 9px; }
  .event-details-card { display: block; padding: 12px; }
  .event-details-card > .info-rule { display: block; }
  .event-details-card .live-status { min-height: 19px; padding: 2px 6px; font-size: 10px; }
  .event-viewer-main > .portal-footer { flex-wrap: wrap; }
}

@media (max-width: 440px) {
  .sidebar { grid-template-columns: 1fr auto; padding-right: 10px; padding-left: 10px; }
  .sidebar-logo img { width: 104px; }
  .workspace-switcher { min-width: 133px; }
  .account-action-trigger { gap: 4px; padding-right: 6px; }
  .account-trigger-copy { display: grid; max-width: 76px; }
  .account-trigger-copy strong, .account-trigger-copy [data-account-email] { display: none; }
  .account-role-label { max-width: 76px; }
  .client-chip small { display: none; }
  .nav-item { font-size: 11px; }
  .dashboard-event-row { grid-template-columns: 25px minmax(0, 1fr) auto; }
  .dashboard-event-name strong { max-width: 175px; }
  .state-pill { padding: 3px 6px; font-size: 11px; }
  .state-pill small { font-size: 11px; }
  .form-grid, .method-grid { grid-template-columns: 1fr; }
  .wizard-step { min-height: auto; }
  .method-card { min-height: 76px; }
  .wizard-steps li { flex-direction: column; align-items: start; gap: 4px; font-size: 11px; }
  .wizard-steps li > span { width: 16px; height: 16px; }
  .wizard-shell { padding-right: 15px; padding-left: 15px; }
  .wizard-footer { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; }
  .viewer-preview-card h4 { font-size: 14px; }
  .event-viewer-heading { flex-direction: column; gap: 8px; }
  .event-viewer-heading h1 { margin-top: 6px; }
  .viewer-header { gap: 8px; }
  .workspace-return { font-size: 11px; white-space: nowrap; }
  .workspace-footer { align-items: start; flex-direction: column; justify-content: center; gap: 6px; padding: 9px 0; }
  .workspace-footer > span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dialog frame stays fixed; each shell is the only vertical scrollport. */
.wizard-dialog, .operator-dialog, .guide-dialog, .client-detail-dialog { overflow: hidden; }
.wizard-shell, .operator-dialog > .operator-dialog-shell:not(.staff-event-form), .guide-dialog > .operator-dialog-shell, .client-detail-shell,
.staff-event-form {
  box-sizing: border-box;
  max-height: calc(min(88dvh, 760px) - 2px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.wizard-shell > .wizard-header,
.operator-dialog-shell > .wizard-header,
.staff-event-form > .wizard-header,
.client-detail-shell > .detail-dialog-heading {
  position: sticky;
  z-index: 2;
  top: -1px;
  padding-top: 1px;
  background: #fff;
}
.wizard-footer, .operator-dialog-shell > .account-password-actions, .operator-dialog-shell > .operator-dismiss,
.staff-event-form > .account-password-actions {
  position: sticky;
  z-index: 2;
  bottom: -1px;
  background: #fff;
}
.staff-event-form > .account-password-actions { margin-top: 0; padding: 12px 0 1px; border-top: 1px solid var(--line); }
.account-password-actions { gap: 10px; }
.account-password-actions > button { box-sizing: border-box; height: 36px; min-height: 36px; margin: 0; align-self: center; }
.operator-dialog .account-password-actions > .admin-primary-button { margin-top: 0; }
html:has(dialog[open]) { overflow: hidden; }

/* Contribution Setup needs room for both event credentials and the browser publisher. */
#operator-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: min(90vh, 900px);
  overflow: hidden;
}
#operator-dialog > .operator-dialog-shell {
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: calc(min(90vh, 900px) - 2px);
  box-sizing: border-box;
  padding: 20px 24px;
  overflow-x: hidden;
  overflow-y: hidden;
}
#operator-dialog .operator-dialog-body {
  min-height: 0;
  flex: 1 1 auto;
  padding-top: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#operator-dialog > .operator-dialog-shell > .wizard-header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 1px 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
#operator-dialog .operator-dialog-footer { flex: 0 0 auto; }
#operator-dialog .operator-dialog-footer > .operator-dismiss { position: static; }
.operator-dialog .broadcaster-preview {
  width: min(100%, 720px);
  height: auto;
  max-height: min(52vh, 405px);
  aspect-ratio: 16 / 9;
}
@supports (height: 100dvh) {
  #operator-dialog { max-height: min(90dvh, 900px); }
  #operator-dialog > .operator-dialog-shell { max-height: calc(min(90dvh, 900px) - 2px); }
  .operator-dialog .broadcaster-preview { max-height: min(52dvh, 405px); }
}
@media (max-width: 640px) {
  #operator-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin: auto;
    border-radius: 10px;
  }
  #operator-dialog > .operator-dialog-shell {
    max-height: calc(100vh - 22px);
    padding: 16px;
  }
  #operator-dialog .operator-value-row { min-width: 0; align-items: flex-start; flex-wrap: wrap; }
  #operator-dialog .operator-value-row code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  #operator-dialog .broadcaster-preview { width: 100%; max-height: 42vh; }
}
@supports (height: 100dvh) {
  @media (max-width: 640px) {
    #operator-dialog { max-height: calc(100dvh - 20px); }
    #operator-dialog > .operator-dialog-shell { max-height: calc(100dvh - 22px); }
    #operator-dialog .broadcaster-preview { max-height: 42dvh; }
  }
}
