:root {
  --ap-navy: #142640;
  --ap-navy-2: #1b3559;
  --ap-orange: #f2633a;
  --ap-blue: #287ce1;
  --ap-green: #16a36c;
  --ap-red: #ec524b;
  --ap-amber: #e5a62d;
  --ap-bg: #eef3f7;
  --ap-card: #ffffff;
  --ap-border: #dbe3ec;
  --ap-muted: #758297;
  --ap-shadow: 0 18px 50px rgba(27, 53, 89, .10);
  --bs-primary: #287ce1;
  --bs-primary-rgb: 40, 124, 225;
  --bs-success: #16a36c;
  --bs-success-rgb: 22, 163, 108;
  --bs-danger: #ec524b;
  --bs-danger-rgb: 236, 82, 75;
  --bs-body-font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--ap-bg); }
body.app-body { min-height: 100vh; background: radial-gradient(circle at 100% 0, #f9fbfd 0, transparent 36%), var(--ap-bg); color: var(--ap-navy); }
button, select, input { font: inherit; }

.app-navbar {
  min-height: 82px;
  border-bottom: 1px solid rgba(208, 218, 229, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(20, 38, 64, .035);
  backdrop-filter: blur(16px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 0; color: var(--ap-navy); text-decoration: none; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; background: linear-gradient(145deg, #ff7548, #ef5332); box-shadow: 0 10px 22px rgba(242, 99, 58, .22); display: grid; place-items: center; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border-radius: 50%; }
.brand-mark { position: relative; }
.brand-mark::before { width: 29px; height: 29px; border: 2px solid rgba(255,255,255,.96); }
.brand-mark::after { width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.68); }
.brand-mark span { width: 6px; height: 6px; background: #fff; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 21px; letter-spacing: -.03em; }
.brand-copy small { margin-top: 6px; color: #8a95a5; font-size: 9px; font-weight: 800; letter-spacing: .24em; }
.room-pill, .secure-pill, .session-role { min-height: 37px; padding: 0 13px; border: 1px solid #dbe3ec; border-radius: 11px; background: #f7f9fb; color: #4d5d72; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.secure-pill, .session-role { border-color: #d9eee5; background: #f0faf6; color: #168059; }
.secure-pill span, .session-role span { width: 7px; height: 7px; border-radius: 50%; background: var(--ap-green); box-shadow: 0 0 0 4px rgba(22,163,108,.10); }
.account-pill { min-height: 42px; padding: 4px 10px 4px 5px; border: 1px solid #dce4ec; border-radius: 13px; background: #f8fafc; color: var(--ap-navy); display: inline-flex; align-items: center; gap: 8px; }
.account-pill .account-dot { width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(145deg, #4285f4, #2569d1); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.account-pill > span:last-child { max-width: 165px; display: flex; flex-direction: column; line-height: 1.15; }
.account-pill strong, .account-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pill strong { font-size: 10px; }
.account-pill small { margin-top: 2px; color: #8490a0; font-size: 8px; }
.logout-button { min-height: 37px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.admin-nav-button { min-height: 37px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; }

.login-shell { padding: clamp(34px, 6vw, 76px) 0 64px; }
.login-hero, .login-card { min-height: 615px; border-radius: 26px; box-shadow: var(--ap-shadow); overflow: hidden; }
.login-hero { position: relative; padding: clamp(32px, 5vw, 62px); background: linear-gradient(145deg, rgba(20,38,64,.98), rgba(23,55,94,.97)), linear-gradient(120deg, #13243d, #1f4878); color: #fff; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.login-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; top: -180px; z-index: -1; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02); }
.login-hero::after { content: ""; position: absolute; width: 190px; height: 190px; left: -90px; bottom: 32px; z-index: -1; border-radius: 50%; background: rgba(242,99,58,.14); filter: blur(2px); }
.hero-kicker, .section-kicker { color: #8ea0b8; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.hero-kicker { color: #ffb59e; display: inline-flex; align-items: center; gap: 9px; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-orange); box-shadow: 0 0 0 5px rgba(242,99,58,.15); }
.login-hero h1 { max-width: 690px; margin: 24px 0 18px; font-size: clamp(36px, 4vw, 57px); font-weight: 780; line-height: 1.04; letter-spacing: -.048em; }
.login-hero > .hero-content > p { max-width: 630px; margin: 0; color: #bdcadd; font-size: 16px; line-height: 1.65; }
.feature-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.feature-item { min-height: 114px; padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.055); display: grid; grid-template-columns: 35px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; backdrop-filter: blur(6px); }
.feature-item > span { grid-row: 1 / 3; width: 35px; height: 35px; border-radius: 10px; background: rgba(242,99,58,.17); color: #ff9b7c; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.feature-item strong { align-self: end; font-size: 13px; }
.feature-item small { margin-top: 5px; color: #aebdd0; font-size: 10px; line-height: 1.45; }
.hero-footer { color: #b9c7d8; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #26ce8f; box-shadow: 0 0 0 5px rgba(38,206,143,.13); }

.login-card { background: var(--ap-card); }
.login-card .card-body { padding: clamp(31px, 4vw, 51px); display: flex; flex-direction: column; justify-content: center; }
.login-heading { margin-bottom: 25px; }
.login-heading h2 { margin: 9px 0 10px; font-size: clamp(30px, 4vw, 40px); font-weight: 780; letter-spacing: -.045em; }
.login-heading p { margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.6; }
.form-label { color: #4f5e72; font-size: 11px; font-weight: 800; }
.form-control, .form-select, .input-group-text { border-color: #d7e0e9; color: var(--ap-navy); }
.form-control:focus, .form-select:focus { border-color: #6ca6eb; box-shadow: 0 0 0 .24rem rgba(40,124,225,.12); }
.form-select-lg, .input-group-lg > .form-control, .input-group-lg > .input-group-text { min-height: 54px; font-size: 14px; }
.code-prefix { background: #f4f7fa; color: #8a96a5; font-size: 11px !important; letter-spacing: .12em; }
.form-text { color: #8a96a6; font-size: 10px; }
.login-submit { min-height: 55px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #2d84e8, #1e70d2); font-size: 14px; font-weight: 800; box-shadow: 0 12px 25px rgba(40,124,225,.22); display: flex; align-items: center; justify-content: center; gap: 12px; }
.login-submit:hover { background: linear-gradient(135deg, #2479df, #1766c5); transform: translateY(-1px); }
.google-signin { min-height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; }
.google-signin > div, .google-signin iframe { max-width: 100% !important; }
.login-status { min-height: 20px; margin: 10px 0 0; color: #6f7e91; font-size: 10px; text-align: center; }
.security-note { margin-top: 22px; padding: 14px 15px; border: 1px solid #dceee6; border-radius: 14px; background: #f3faf7; color: #285f4b; display: flex; align-items: center; gap: 12px; }
.shield-icon, .status-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 10px; background: #dff3ea; color: #16805a; display: grid; place-items: center; font-weight: 900; }
.security-note > span:last-child { display: flex; flex-direction: column; }
.security-note strong { font-size: 11px; }
.security-note small { margin-top: 2px; color: #668578; font-size: 9px; line-height: 1.4; }
.alert { border-radius: 13px; font-size: 12px; }

.lobby-shell { padding: clamp(34px, 6vw, 68px) 0 64px; }
.lobby-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lobby-heading h1 { margin: 7px 0 8px; font-size: clamp(31px, 5vw, 48px); font-weight: 790; letter-spacing: -.05em; }
.lobby-heading p { margin: 0; color: var(--ap-muted); font-size: 13px; }
.live-refresh { padding: 9px 13px; border-radius: 99px; background: #eaf8f2; color: #13815a; display: inline-flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.live-refresh i, .role-availability i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(22,163,108,.10); }
.role-lobby { border-radius: 25px; box-shadow: var(--ap-shadow); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.role-choice { min-width: 0; padding: 21px; border: 1px solid var(--ap-border); border-radius: 18px; background: #fbfcfd; transition: transform .18s, border-color .18s, box-shadow .18s; }
.role-choice.available:hover { border-color: #91bceb; box-shadow: 0 13px 30px rgba(40,124,225,.10); transform: translateY(-2px); }
.role-choice.occupied { background: #f3f5f7; opacity: .72; }
.role-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-avatar { width: 46px; height: 46px; border-radius: 13px; background: #26877f; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.role-choice.studio .role-avatar { background: linear-gradient(145deg, #203958, #172b45); }
.role-choice.reporter1 .role-avatar { background: linear-gradient(145deg, #f06e45, #d75330); }
.role-choice.reporter2 .role-avatar { background: linear-gradient(145deg, #2c998e, #207970); }
.role-availability { color: var(--ap-green); display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; }
.role-choice.occupied .role-availability { color: #7b8796; }
.role-choice h2 { margin: 20px 0 6px; font-size: 20px; font-weight: 780; letter-spacing: -.035em; }
.role-choice p { min-height: 38px; margin: 0 0 18px; color: #7b8899; font-size: 11px; line-height: 1.55; }
.role-choice .btn { min-height: 44px; border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; }
.role-choice.occupied .btn { background: #dce2e8; color: #758191; }
.lobby-options { margin-top: 25px; padding-top: 25px; border-top: 1px solid #e5ebf1; display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,1.25fr); gap: 24px; align-items: end; }
.multi-device-note { padding: 14px 16px; border: 1px solid #cfe2f7; border-radius: 15px; background: #edf6ff; display: flex; align-items: center; gap: 13px; }
.multi-device-note > span { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--ap-blue); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.multi-device-note p { margin: 0; display: flex; flex-direction: column; }
.multi-device-note strong { font-size: 11px; }
.multi-device-note small { margin-top: 3px; color: #68778a; font-size: 9px; line-height: 1.45; }

.admin-shell { padding: clamp(34px, 6vw, 68px) 0 64px; }
.admin-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.admin-heading h1 { margin: 7px 0 8px; font-size: clamp(31px, 5vw, 48px); font-weight: 790; letter-spacing: -.05em; }
.admin-heading p { margin: 0; color: var(--ap-muted); font-size: 13px; }
.admin-heading .btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; font-size: 11px; font-weight: 800; box-shadow: 0 10px 24px rgba(40,124,225,.17); }
.admin-card { overflow: hidden; border-radius: 24px; box-shadow: var(--ap-shadow); }
.admin-summary { padding: 25px 28px; border-bottom: 1px solid #e5ebf1; background: linear-gradient(135deg, #fbfcfe, #f4f8fb); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.admin-summary > div { padding: 17px 19px; border: 1px solid #dfe7ef; border-radius: 15px; background: #fff; display: flex; flex-direction: column; }
.admin-summary span { font-size: 25px; font-weight: 820; letter-spacing: -.04em; }
.admin-summary small { margin-top: 3px; color: #8290a1; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.admin-table { min-width: 880px; }
.admin-table thead th { padding: 15px 20px; border-bottom-color: #e1e8ef; background: #f7f9fb; color: #728095; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.admin-table tbody td { padding: 15px 20px; border-bottom-color: #ebf0f4; color: #536176; font-size: 10px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr.user-blocked { background: #faf7f7; opacity: .74; }
.admin-person { min-width: 225px; display: flex; align-items: center; gap: 11px; }
.admin-person > span:first-child { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: linear-gradient(145deg, #203958, #172b45); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.admin-person > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.admin-person strong, .admin-person small { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-person strong { color: var(--ap-navy); font-size: 11px; }
.admin-person small { margin-top: 2px; color: #7f8da0; font-size: 9px; }
.admin-person em { width: fit-content; margin-top: 4px; padding: 2px 6px; border-radius: 99px; background: #edf5ff; color: #2875cc; font-size: 7px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.access-badge, .user-status { padding: 6px 9px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 8px; font-weight: 850; white-space: nowrap; }
.access-badge.admin { background: #e9f2ff; color: #236bbb; }
.access-badge.user { background: #f0f3f6; color: #68778a; }
.user-status.active { background: #e6f7ef; color: #118159; }
.user-status.blocked { background: #fdeceb; color: #b83f39; }
.google-linked { color: #16805a !important; font-weight: 750; }
.google-pending, .last-login { color: #8794a5 !important; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin-left: 6px; border-radius: 9px; font-size: 8px; font-weight: 800; }
.admin-loading { height: 120px; color: #8491a2 !important; text-align: center; }
.admin-help { margin-top: 19px; padding: 15px 17px; border: 1px solid #cfe2f7; border-radius: 16px; background: #edf6ff; display: flex; align-items: center; gap: 13px; }
.admin-help > span { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; background: var(--ap-blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.admin-help p { margin: 0; display: flex; flex-direction: column; }
.admin-help strong { font-size: 11px; }
.admin-help small { margin-top: 3px; color: #68778a; font-size: 9px; }
.admin-modal { overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 28px 80px rgba(20,38,64,.20); }
.admin-modal .modal-header { padding: 23px 25px 17px; border-bottom: 1px solid #e7edf2; align-items: flex-start; }
.admin-modal .modal-title { margin-top: 6px; color: var(--ap-navy); font-size: 24px; font-weight: 790; letter-spacing: -.04em; }
.admin-modal .modal-body { padding: 23px 25px; }
.admin-modal .modal-footer { padding: 16px 25px 22px; border: 0; }
.admin-modal .modal-footer .btn { min-height: 42px; padding: 0 17px; border-radius: 10px; font-size: 10px; font-weight: 800; }
.recordings-heading { padding: 24px 28px; border-bottom: 1px solid #e5ebf1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.recordings-heading h2 { margin: 6px 0 5px; font-size: 25px; font-weight: 790; letter-spacing: -.035em; }
.recordings-heading p { max-width: 720px; margin: 0; color: var(--ap-muted); font-size: 10px; }
.recordings-heading > span { min-width: 90px; padding: 12px; border-radius: 13px; background: #edf6ff; text-align: center; display: flex; flex-direction: column; }
.recordings-heading > span strong { color: var(--ap-blue); font-size: 23px; }
.recordings-heading > span small { color: #718197; font-size: 8px; text-transform: uppercase; }
.recording-table { min-width: 1020px; }
.recording-table td:nth-child(2) { min-width: 175px; }
.recording-table td:nth-child(2) strong, .recording-table td:nth-child(2) small { display: block; }
.recording-table td:nth-child(2) small { margin-top: 3px; color: #8794a5; }
.recording-table audio { width: 230px; height: 34px; }
.recording-state { padding: 6px 9px; border-radius: 99px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.recording-state.complete { background: #e6f7ef; color: #118159; }
.recording-state.uploading { background: #fff4d8; color: #916b1f; }
.recording-actions { white-space: nowrap; }
.recording-actions .btn { margin-left: 6px; border-radius: 9px; font-size: 8px; font-weight: 800; }
.bridge-heading { padding: 24px 28px; border-bottom: 1px solid #e5ebf1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bridge-heading h2 { margin: 6px 0 5px; font-size: 25px; font-weight: 790; letter-spacing: -.035em; }
.bridge-heading p { max-width: 760px; margin: 0; color: var(--ap-muted); font-size: 10px; line-height: 1.55; }
.bridge-heading .btn { min-height: 42px; border: 0; border-radius: 11px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.bridge-pairing { margin: 20px 28px; padding: 20px; border: 1px solid #bfd9f4; border-radius: 17px; background: #edf6ff; display: grid; grid-template-columns: auto minmax(180px,auto) 1fr; align-items: center; gap: 8px 18px; }
.bridge-pairing[hidden] { display: none; }
.bridge-pairing > span { color: #718197; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bridge-pairing > strong { color: var(--ap-blue); font-size: 25px; font-weight: 900; letter-spacing: .1em; }
.bridge-pairing > small { color: #537498; font-size: 9px; font-weight: 750; }
.bridge-pairing > p { grid-column: 1 / -1; margin: 4px 0 0; color: #60758d; font-size: 9px; }
.bridge-pairing code { color: #234667; font-size: 9px; }
.bridge-table { min-width: 760px; }
.bridge-table td:first-child strong, .bridge-table td:first-child small { display: block; }
.bridge-table td:first-child small { margin-top: 3px; color: #8794a5; }
.bridge-table tr.bridge-revoked { opacity: .65; }
.bridge-state { padding: 6px 9px; border-radius: 99px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.bridge-state.active { background: #e6f7ef; color: #118159; }
.bridge-state.revoked { background: #f0f3f6; color: #68778a; }
.bridge-actions .btn { border-radius: 9px; font-size: 8px; font-weight: 800; }

.backup-status { margin-bottom: 17px; padding: 13px 15px; border: 1px solid #cfe2f7; border-radius: 14px; background: #edf6ff; color: #2367ac; display: flex; align-items: center; gap: 12px; }
.backup-status[hidden] { display: none; }
.backup-status > span:first-child { font-size: 17px; }
.backup-status > span:nth-child(2) { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.backup-status strong { font-size: 10px; }
.backup-status small { margin-top: 2px; color: #68778a; font-size: 9px; }
.backup-status .backup-retry { flex: 0 0 auto; margin-left: auto; border-radius: 9px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.backup-status[data-kind="recording"] { border-color: #cde8dc; background: #eaf8f2; color: #12805a; }
.backup-status[data-kind="uploading"], .backup-status[data-kind="finalizing"] { border-color: #ecd28f; background: #fff8e7; color: #916b1f; }
.backup-status[data-kind="saved"] { border-color: #bfe4d4; background: #e4f6ee; color: #118159; }
.backup-status[data-kind="pending"], .backup-status[data-kind="error"] { border-color: #f0c7c3; background: #fdeceb; color: #b83f39; }
@media (max-width: 575.98px) {
  .backup-status { align-items: flex-start; flex-wrap: wrap; }
  .backup-status .backup-retry { width: 100%; margin: 2px 0 0 29px; }
}

.console-shell { padding: 34px 0 56px; }
.console-topline { min-height: 71px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.console-topline h1 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 780; letter-spacing: -.045em; }
.connection-badge { color: #778498; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-align: right; }
.connection-badge span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(119,132,152,.10); }
.connection-badge.connecting { color: var(--ap-amber); }
.connection-badge.good { color: var(--ap-green); }
.connection-badge.bad { color: var(--ap-red); }
.preflight-card, .panel-card, .diagnostics-card { border-radius: 22px; box-shadow: var(--ap-shadow); }
.preflight-card h2 { margin: 8px 0 10px; font-size: 28px; font-weight: 760; letter-spacing: -.035em; }
.preflight-card p { max-width: 680px; margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.65; }
.recording-consent { background: #f2f7fd; border: 1px solid #cfe2f7; border-radius: 14px; padding: 14px 14px 14px 42px; }
.recording-consent .form-check-input { margin-left: -27px; margin-top: 3px; }
.recording-consent .form-check-label { color: #17314d; font-size: .83rem; line-height: 1.4; }
.recording-consent .form-check-label strong, .recording-consent .form-check-label span { display: block; }
.recording-consent .form-check-label span { color: #5c7188; font-size: .75rem; margin-top: 3px; }
.audio-start { min-height: 54px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #18aa71, #12875b); font-size: 13px; font-weight: 800; box-shadow: 0 12px 25px rgba(22,163,108,.20); }
.start-pulse { width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #fff; display: inline-block; box-shadow: 0 0 0 5px rgba(255,255,255,.16); }
.app-alert { margin-bottom: 18px; border: 1px solid #ecd28f; background: #fff8e7; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.app-alert strong { color: #5d4b24; font-size: 12px; }
.app-alert p { margin-top: 3px; color: #786739; font-size: 11px; }

.panel-card h2 { margin: 5px 0 0; font-size: 25px; font-weight: 760; letter-spacing: -.035em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.count-badge { padding: 7px 11px; border-radius: 99px; background: #edf3f7; color: #657589; font-size: 10px; font-weight: 800; }
.participant-list { margin-top: 20px; }
.participant { min-height: 92px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--ap-border); border-radius: 15px; background: #fff; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 7px 13px; align-items: center; transition: border-color .15s, transform .15s; }
.participant:hover { border-color: #bfd0e2; transform: translateY(-1px); }
.avatar { width: 46px; height: 46px; border-radius: 13px; background: #26877f; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.avatar.studio { background: linear-gradient(145deg, #203958, #172b45); }
.avatar.reporter1 { background: linear-gradient(145deg, #f06e45, #d75330); }
.avatar.reporter2 { background: linear-gradient(145deg, #2c998e, #207970); }
.participant-copy { min-width: 0; display: flex; flex-direction: column; }
.participant-copy strong { font-size: 14px; }
.participant-copy small { margin-top: 3px; color: #7c899b; font-size: 10px; }
.participant-status { padding: 6px 10px; border-radius: 99px; background: #eef2f6; color: #788697; font-size: 9px; font-style: normal; white-space: nowrap; }
.participant-status.live { background: #e4f6ee; color: #12805a; }
.participant-status.warn { background: #fff4d8; color: #916b1f; }
.participant-meter { grid-column: 2 / 4; height: 17px; margin: 0; gap: 2px; }
.participant-meter i { height: 8px; border-radius: 2px; }
.nminus, .return-path { margin-top: 20px; padding: 15px; border: 1px solid #cfe2f7; border-radius: 15px; background: #edf6ff; display: flex; align-items: center; gap: 13px; }
.nminus-icon, .return-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--ap-blue); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.nminus > span:last-child, .return-path > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.nminus strong, .return-path strong { font-size: 11px; }
.nminus small, .return-path small { margin-top: 3px; color: #68778a; font-size: 9px; line-height: 1.4; }
.studio-output { overflow: hidden; }
.on-air { height: 112px; margin: 19px 0 12px; border-radius: 15px; background: linear-gradient(145deg, #1a3152, #11233e); color: #ff645b; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.on-air span { font-size: 27px; font-weight: 950; letter-spacing: .15em; }
.on-air small { margin-top: 3px; color: #aeb8c7; font-size: 8px; letter-spacing: .25em; }

.meter { height: 34px; margin: 13px 0; display: flex; align-items: center; gap: 3px; }
.meter i { height: 18px; flex: 1; border-radius: 3px; background: #e7edf2; transition: background-color 70ms linear; }
.meter i.on { background: #22a46c; }
.meter i.warm { background: #edb03b; }
.meter i.hot { background: #e6534c; }

.reporter-card { width: min(720px,100%); margin: 0 auto; }
.reporter-badge { color: var(--ap-green); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.mic-orb { width: 146px; height: 146px; margin: 31px auto 24px; border-radius: 50%; background: #edf2f6; display: grid; place-items: center; font-size: 43px; transition: background .2s, box-shadow .2s, filter .2s; }
.mic-orb.active { background: var(--ap-green); box-shadow: 0 0 0 14px #eaf7f2, 0 0 0 15px #caecdf; }
.mic-orb.muted { filter: grayscale(1); opacity: .66; }
.reporter-card h2 { font-size: clamp(28px, 5vw, 38px); }
.reporter-meter { max-width: 590px; margin: 23px auto; }
.return-path { text-align: left; }
.return-path em { padding: 6px 9px; border-radius: 99px; background: #fff; color: #698096; font-size: 9px; font-style: normal; white-space: nowrap; }
.return-path em.live { background: #dff5eb; color: #118057; }
.reporter-buttons { margin-top: 13px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.reporter-connections { margin-top: 26px; padding-top: 23px; border-top: 1px solid #e4eaf0; }
.compact-roster { margin-top: 12px; }
.compact-roster .participant { min-height: 76px; }
.phone-hint { display: block; margin-top: 15px; color: #8996a7; font-size: 9px; }

.diagnostics-card { padding: 0 23px; }
.diagnostics-card summary { padding: 19px 0; cursor: pointer; color: #607086; font-size: 11px; font-weight: 800; }
.diagnostic-content { padding-bottom: 21px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.diagnostic-grid > div { min-width: 0; padding: 12px; border-radius: 12px; background: #f2f6f9; display: flex; flex-direction: column; }
.diagnostic-grid span { color: #8390a0; font-size: 9px; }
.diagnostic-grid strong { margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostic-detail { margin: 13px 0 0; padding: 12px; border-radius: 11px; background: #172d4c; color: #dbe6f2; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.remote-audios { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: .001; pointer-events: none; }
.busy-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(239,244,248,.90); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.busy-overlay strong { font-size: 13px; }

@media (max-width: 991.98px) {
  .login-hero, .login-card { min-height: auto; }
  .login-hero { min-height: 520px; }
  .feature-grid { margin-top: 35px; }
  .studio-output { order: -1; }
  .role-grid { grid-template-columns: 1fr; }
  .role-choice p { min-height: 0; }
  .admin-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
  .app-navbar { min-height: 70px; }
  .brand-mark { width: 43px; height: 43px; flex-basis: 43px; border-radius: 13px; }
  .brand-mark::before { width: 25px; height: 25px; }
  .brand-mark::after { width: 17px; height: 17px; }
  .brand-copy strong { font-size: 18px; }
  .room-pill { min-height: 34px; padding: 0 10px; font-size: 8px; }
  .login-shell { padding-top: 23px; }
  .login-hero { min-height: 450px; padding: 30px 24px; border-radius: 21px; }
  .login-hero h1 { font-size: 35px; }
  .feature-grid { grid-template-columns: 1fr; gap: 9px; }
  .feature-item { min-height: 88px; }
  .login-card { border-radius: 21px; }
  .lobby-shell { padding-top: 25px; }
  .lobby-heading { align-items: flex-start; flex-direction: column; }
  .role-lobby { border-radius: 21px; }
  .lobby-options { grid-template-columns: 1fr; }
  .admin-shell { padding-top: 25px; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-heading .btn { align-self: flex-start; }
  .admin-card { border-radius: 20px; }
  .admin-summary { padding: 18px; grid-template-columns: 1fr; }
  .recordings-heading { align-items: flex-start; flex-direction: column; }
  .bridge-heading { align-items: flex-start; flex-direction: column; }
  .bridge-pairing { grid-template-columns: 1fr; }
  .bridge-pairing > p { grid-column: 1; }
  .console-shell { padding-top: 23px; }
  .preflight-card, .panel-card, .diagnostics-card { border-radius: 18px; }
  .diagnostic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .brand-copy small { font-size: 7px; }
  .console-topline { align-items: flex-start; }
  .connection-badge { max-width: 145px; line-height: 1.35; }
  .participant { grid-template-columns: 43px minmax(0,1fr); }
  .participant-status { grid-column: 2; justify-self: start; margin-top: -4px; }
  .participant-meter { grid-column: 2; width: 100%; }
  .reporter-buttons { grid-template-columns: 1fr; }
  .app-alert { align-items: stretch; flex-direction: column; }
  .app-alert .btn { width: 100%; }
}

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