:root {
  --portal-paper: #f4faf8;
  --portal-ink: #07303b;
  --portal-soft: #5d7880;
  --portal-line: #c8dfdc;
  --portal-mint: #18aa8b;
  --portal-mint-dark: #08745f;
  --portal-warn: #b77913;
  --portal-risk: #b8433d;
}

.mobile-page { background: var(--portal-paper); color: var(--portal-ink); }
.portal-shell { width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 28px 112px; }
.portal-topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--portal-line); }
.portal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--portal-ink); text-decoration: none; font-weight: 800; }
.portal-brand > span:last-child { display: grid; gap: 2px; }
.portal-brand small, .portal-user small { color: var(--portal-soft); font-size: 11px; font-weight: 500; }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: #093541; color: #d9fff5; letter-spacing: 0; font-size: 12px; }
.brand-mark.large { width: 58px; height: 58px; border-radius: 16px; font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.portal-user { display: grid; text-align: right; color: var(--portal-ink); font-size: 14px; font-weight: 700; }
.portal-topbar .icon-button, .plain-icon { width: 38px; height: 38px; border-radius: 9px; color: var(--portal-mint-dark); background: #fff; border: 1px solid var(--portal-line); }
.plain-icon { display: inline-grid; place-items: center; padding: 0; }
.portal-main { padding-top: 30px; }
.portal-nav { position: fixed; z-index: 20; left: 50%; bottom: 18px; width: min(472px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(4, 1fr); transform: translateX(-50%); overflow: hidden; border: 1px solid #b7d8d0; border-radius: 8px; background: rgba(255, 255, 255, .97); box-shadow: 0 10px 28px rgba(8, 59, 67, .15); }
.portal-nav button { min-height: 58px; display: grid; place-items: center; gap: 3px; border: 0; color: var(--portal-soft); background: transparent; font-size: 11px; }
.portal-nav button svg { width: 18px; height: 18px; }
.portal-nav button.active { color: var(--portal-mint-dark); background: #eaf8f3; font-weight: 800; }
.portal-notice { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid #a9d9cd; border-radius: 8px; color: #075c4b; background: #e7f7f1; }
.portal-notice > span { display: inline-flex; }
.portal-notice p { flex: 1; margin: 0; font-size: 13px; }
.portal-notice .plain-icon { margin-left: auto; width: 28px; height: 28px; border: 0; background: transparent; }
.eyebrow { margin: 0 0 7px; color: var(--portal-mint-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.portal-hero h1, .page-heading h1, .profile-hero h1, .questionnaire-content h1, .login-intro h1 { margin: 0; color: var(--portal-ink); font-size: 32px; line-height: 1.2; }
.portal-hero p:not(.eyebrow), .page-heading > p:not(.eyebrow), .login-intro > p, .question-intro > p { margin: 10px 0 0; color: var(--portal-soft); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.primary-button, .secondary-button, .danger-button, .text-button, .logout-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; padding: 8px 14px; font-weight: 750; font-size: 14px; }
.primary-button { border: 1px solid var(--portal-mint-dark); color: #fff; background: var(--portal-mint-dark); }
.primary-button:hover { background: #065a4a; }
.secondary-button { border: 1px solid var(--portal-line); color: var(--portal-ink); background: #fff; }
.secondary-button:hover { border-color: var(--portal-mint); background: #eefbf7; }
.text-button { min-height: auto; border: 0; padding: 5px 0; color: var(--portal-mint-dark); background: transparent; }
.score-band { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 26px 28px; border: 1px solid #a9d8cc; border-radius: 8px; background: #eaf8f3; }
.score-band > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.score-band > div:first-child span { align-self: flex-start; color: var(--portal-soft); font-size: 13px; }
.score-band > div:first-child b { color: var(--portal-mint-dark); font-size: 58px; line-height: .85; }
.score-band > div:first-child small { color: var(--portal-soft); font-size: 13px; }
.score-state { display: grid; justify-items: end; gap: 7px; }
.score-state b { font-size: 16px; }
.score-state small { color: var(--portal-soft); font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--portal-mint); box-shadow: none; }
.status-dot.warn { background: #e4a52d; }
.status-dot.alert { background: #d65b52; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 36px; margin-bottom: 14px; }
.section-heading h2, .panel-heading h2, .report-actions h2 { margin: 0; color: var(--portal-ink); font-size: 20px; }
.portal-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portal-metric { position: relative; min-height: 178px; overflow: hidden; padding: 15px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.portal-metric.wide { grid-column: span 2; }
.metric-head { display: flex; align-items: center; gap: 8px; }
.metric-code { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 7px; background: #e8f8f2; color: var(--portal-mint-dark); font-size: 11px; font-weight: 800; }
.metric-code.cyan, .metric-code.blue { background: #e6f4fa; color: #1d6c88; }
.metric-code.yellow, .metric-code.orange { background: #fff5dc; color: #9a680d; }
.metric-code.purple { background: #f0ebfb; color: #70529e; }
.metric-label { color: var(--portal-soft); font-size: 12px; }
.metric-reading { display: flex; align-items: baseline; gap: 5px; margin-top: 16px; }
.metric-reading b { color: var(--portal-ink); font-size: 29px; }
.metric-reading span { color: var(--portal-soft); font-size: 12px; }
.portal-metric p { margin: 9px 0 0; color: var(--portal-soft); font-size: 12px; line-height: 1.45; }
.metric-mini-bars { position: absolute; right: 14px; bottom: 12px; height: 34px; display: flex; align-items: end; gap: 3px; }
.metric-mini-bars span { display: block; width: 5px; border-radius: 3px 3px 0 0; background: var(--portal-mint); }
.record-list, .alert-list, .report-list, .managed-workers { display: grid; gap: 8px; }
.record-row, .report-row, .managed-worker { width: 100%; display: flex; align-items: center; gap: 14px; border: 1px solid var(--portal-line); border-radius: 7px; padding: 13px 15px; color: var(--portal-ink); background: #fff; text-align: left; }
.record-row:hover, .report-row:hover, .managed-worker:hover { border-color: var(--portal-mint); background: #f5fcf9; }
.record-day { width: 44px; color: var(--portal-mint-dark); font-size: 15px; font-weight: 800; }
.record-summary { flex: 1; min-width: 0; display: grid; gap: 5px; }
.record-summary b, .report-row b, .managed-worker b { font-size: 14px; }
.record-summary small, .report-row small, .managed-worker small { color: var(--portal-soft); font-size: 12px; }
.record-side { display: grid; justify-items: end; gap: 5px; color: var(--portal-soft); font-size: 12px; }
.record-side small { display: inline-flex; align-items: center; gap: 3px; }
.state-pill { display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--portal-line); border-radius: 999px; padding: 4px 8px; color: var(--portal-soft); background: #fff; font-size: 12px; font-style: normal; white-space: nowrap; }
.state-pill.ok { border-color: #9fd5c5; color: var(--portal-mint-dark); background: #eaf8f3; }
.state-pill.warn { border-color: #ead194; color: var(--portal-warn); background: #fff8e8; }
.state-pill.alert { border-color: #e8b0ab; color: var(--portal-risk); background: #fff0ef; }
.page-heading { max-width: 710px; }
.page-heading .back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 24px; border: 0; padding: 0; color: var(--portal-mint-dark); background: transparent; }
.trend-panel, .report-actions, .report-reading, .privacy-panel { margin-top: 26px; padding: 22px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.panel-heading small { color: var(--portal-soft); font-size: 12px; }
.score-chart { height: 242px; display: flex; align-items: end; gap: 12px; margin-top: 28px; padding: 0 6px 22px; border-bottom: 1px solid var(--portal-line); }
.score-bar { flex: 1; height: 100%; min-width: 34px; display: grid; grid-template-rows: 18px 1fr 26px; align-items: end; justify-items: center; gap: 6px; }
.score-bar i { width: min(100%, 34px); min-height: 8px; border-radius: 5px 5px 0 0; background: var(--portal-mint); }
.score-bar small { color: var(--portal-soft); font-size: 11px; white-space: nowrap; }
.score-value { color: var(--portal-ink); font-weight: 800; font-size: 12px; }
.detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disclaimer-panel { display: flex; gap: 10px; margin-top: 24px; padding: 14px; border-left: 3px solid var(--portal-mint); background: #eaf8f3; color: #32615a; }
.disclaimer-panel p { margin: 0; font-size: 13px; line-height: 1.6; }
.alert-row { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.alert-row.warn { border-left: 4px solid #e4a52d; }
.alert-row.alert { border-left: 4px solid #d65b52; }
.alert-row > span { color: var(--portal-warn); }
.alert-row.alert > span { color: var(--portal-risk); }
.alert-row b { font-size: 15px; }
.alert-row p, .alert-row small { display: block; margin: 5px 0 0; color: var(--portal-soft); font-size: 13px; line-height: 1.45; }
.report-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.report-actions p { margin: 8px 0 0; color: var(--portal-soft); font-size: 13px; }
.period-buttons { display: flex; gap: 8px; }
.report-reading { background: #f9fffc; }
.report-summary { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; margin-top: 22px; }
.report-score { padding-right: 20px; border-right: 1px solid var(--portal-line); }
.report-score span, .report-score small { color: var(--portal-soft); font-size: 12px; }
.report-score b { display: inline-block; margin-top: 7px; color: var(--portal-mint-dark); font-size: 48px; line-height: .9; }
.report-summary p { margin: 12px 0 0; color: var(--portal-soft); line-height: 1.7; font-size: 14px; }
.report-content { margin-top: 24px; border-top: 1px solid var(--portal-line); padding-top: 20px; }
.report-content h2 { margin: 0 0 12px; font-size: 16px; }
.report-content article { padding: 12px 0; border-bottom: 1px solid #e5efed; }
.report-content article p { margin: 5px 0 0; color: var(--portal-soft); font-size: 13px; line-height: 1.55; }
.report-row { justify-content: start; }
.report-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--portal-mint-dark); background: #eaf8f3; border-radius: 7px; }
.report-row > span:nth-child(2) { flex: 1; display: grid; gap: 5px; }
.report-row > span:last-child { display: inline-flex; align-items: center; gap: 7px; color: var(--portal-soft); }
.report-row em { color: var(--portal-risk); font-size: 11px; font-style: normal; }
.profile-hero { display: flex; align-items: center; gap: 16px; }
.profile-monogram { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 8px; color: #dffdf5; background: #0b4351; font-size: 30px; font-weight: 800; }
.profile-hero p { margin: 8px 0 0; color: var(--portal-soft); }
.profile-grid, .management-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.profile-grid article, .management-kpis article { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.profile-grid span, .management-kpis span { color: var(--portal-soft); font-size: 12px; }
.profile-grid b { font-size: 17px; }
.profile-grid small { color: var(--portal-soft); font-size: 11px; }
.settings-list { overflow: hidden; margin-top: 28px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.settings-list button, .settings-list a { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #e5efed; padding: 16px; color: var(--portal-ink); background: transparent; text-align: left; text-decoration: none; font-size: 14px; }
.settings-list > :last-child { border-bottom: 0; }
.settings-list button > span, .settings-list a > span { display: inline-flex; align-items: center; gap: 10px; }
.settings-list small { display: inline-flex; color: var(--portal-soft); }
.face-capture-panel { display: grid; gap: 18px; max-width: 720px; margin-top: 26px; padding: 22px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; }
.face-consent { display: grid; gap: 7px; color: var(--portal-ink); font-size: 14px; line-height: 1.6; }
.face-consent label { display: flex; align-items: start; gap: 9px; font-weight: 700; }
.face-consent input { margin-top: 4px; accent-color: var(--portal-mint-dark); }
.face-consent small { color: var(--portal-soft); font-size: 12px; }
.face-video-frame { position: relative; display: grid; min-height: 260px; overflow: hidden; place-items: center; border: 1px dashed #a9cbc4; border-radius: 7px; background: #edf4f2; aspect-ratio: 4 / 3; }
.face-video-frame.active { border-style: solid; border-color: #5bbca6; background: #061f27; }
.face-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-video-placeholder { display: grid; justify-items: center; gap: 9px; color: var(--portal-soft); font-size: 13px; }
.face-guide { position: absolute; width: min(42%, 235px); height: min(62%, 310px); border: 2px solid rgba(224, 255, 246, .92); border-radius: 48%; box-shadow: 0 0 0 999px rgba(3, 22, 28, .16); pointer-events: none; }
.face-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 10px; }
.face-result { display: flex; align-items: start; gap: 11px; max-width: 720px; margin-top: 16px; padding: 16px; border: 1px solid #aadbcf; border-radius: 7px; color: var(--portal-mint-dark); background: #eaf8f3; }
.face-result.warn { border-color: #e3cd9a; color: #8b5c0b; background: #fff8e8; }
.face-result b { font-size: 14px; }
.face-result p { margin: 5px 0 0; color: var(--portal-soft); font-size: 13px; line-height: 1.55; }
.privacy-panel { display: grid; gap: 16px; background: #fffaf0; border-color: #edddae; }
.privacy-panel > div { display: flex; gap: 10px; }
.privacy-panel > div > span { color: var(--portal-warn); }
.privacy-panel b { font-size: 14px; }
.privacy-panel p { margin: 5px 0 0; color: #735f36; font-size: 12px; line-height: 1.6; }
.danger-button, .logout-button { width: max-content; border: 1px solid #e4b1ac; color: var(--portal-risk); background: #fff; }
.logout-button { width: 100%; margin-top: 18px; }
.management-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.management-kpis b { color: var(--portal-mint-dark); font-size: 26px; }
.department-list { display: grid; gap: 8px; margin-top: 18px; }
.department-list article { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px; border-left: 3px solid var(--portal-mint); background: #eaf8f3; }
.department-list span { color: var(--portal-soft); font-size: 12px; }
.managed-worker { justify-content: space-between; }
.managed-worker > span:first-child { display: grid; gap: 5px; }
.managed-detail { margin-top: 28px; padding: 22px; border: 1px solid #a9d8cc; border-radius: 8px; background: #fbfffd; }
.managed-detail h2 { margin: 0; color: var(--portal-ink); font-size: 20px; }
.managed-detail h2 small { color: var(--portal-soft); font-size: 12px; font-weight: 500; }
.managed-latest { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: 18px; padding: 16px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.managed-latest > div:first-child { display: flex; align-items: baseline; gap: 6px; }
.managed-latest > div:first-child span, .managed-latest small, .managed-latest p { color: var(--portal-soft); font-size: 12px; }
.managed-latest b { color: var(--portal-mint-dark); font-size: 34px; }
.managed-latest > div:last-child { display: grid; justify-items: end; gap: 7px; }
.managed-latest p { margin: 0; }
.managed-issues { margin: 12px 0 0; color: var(--portal-soft); font-size: 13px; line-height: 1.55; }
.section-heading.compact { margin-top: 24px; }
.managed-chart { height: 176px; margin-top: 14px; }
.managed-metric-trends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.managed-metric-trends article { min-height: 106px; position: relative; padding: 13px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.managed-metric-trends article > div:first-child { display: grid; gap: 4px; }
.managed-metric-trends b { font-size: 13px; }
.managed-metric-trends small, .managed-metric-trends em { color: var(--portal-soft); font-size: 11px; font-style: normal; }
.metric-mini-bars.large { left: 13px; right: 13px; bottom: 12px; height: 42px; }
.empty-panel { display: grid; justify-items: center; gap: 8px; margin-top: 28px; padding: 48px 20px; border: 1px dashed #b7d2cd; border-radius: 8px; color: var(--portal-mint-dark); background: #fbfffd; text-align: center; }
.empty-panel h2 { margin: 4px 0; color: var(--portal-ink); font-size: 17px; }
.empty-panel p { max-width: 360px; margin: 0; color: var(--portal-soft); font-size: 13px; line-height: 1.6; }
.empty-panel.compact { margin: 18px 0 0; padding: 28px 18px; }
.portal-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .55fr); align-items: center; gap: min(9vw, 130px); padding: 56px max(24px, calc((100vw - 1060px) / 2)); background: linear-gradient(135deg, #eff9f5 0%, #f8fbfa 48%, #e8f5f1 100%); }
.login-intro { max-width: 540px; }
.login-intro .large { margin-bottom: 24px; }
.login-panel { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(8, 59, 67, .12); }
.login-panel .panel-heading { color: var(--portal-mint-dark); }
.login-panel h2 { margin: 0; color: var(--portal-ink); font-size: 20px; }
.login-panel label { display: grid; gap: 7px; color: var(--portal-ink); font-size: 13px; font-weight: 700; }
.login-panel input { min-height: 43px; border: 1px solid var(--portal-line); border-radius: 6px; padding: 9px 11px; color: var(--portal-ink); background: #fff; }
.login-panel input:focus { outline: 2px solid #b6e5d7; border-color: var(--portal-mint); }
.full { width: 100%; }
.form-hint { margin: 0; color: var(--portal-soft); font-size: 12px; line-height: 1.6; }
.portal-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--portal-soft); background: var(--portal-paper); }
.questionnaire-shell { width: min(840px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 28px 48px; }
.questionnaire-shell > header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--portal-line); }
.question-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 28px 0; }
.question-progress span { display: flex; align-items: center; gap: 8px; color: #77908e; font-size: 12px; }
.question-progress i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--portal-line); border-radius: 50%; background: #fff; font-style: normal; }
.question-progress .active, .question-progress .done { color: var(--portal-mint-dark); font-weight: 800; }
.question-progress .active i, .question-progress .done i { border-color: var(--portal-mint); background: #eaf8f3; }
.questionnaire-content { max-width: 700px; margin: 0 auto; }
.question-intro, .question-fields { padding: 28px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; }
.question-intro article { margin-top: 22px; padding: 16px; border: 1px solid #b9ddd3; border-radius: 7px; background: #eaf8f3; }
.question-intro h2 { margin: 0; color: var(--portal-ink); font-size: 16px; }
.question-intro article p { margin: 8px 0 0; color: #32615a; font-size: 13px; line-height: 1.65; }
.consent-row { display: flex; align-items: start; gap: 9px; margin-top: 23px; color: var(--portal-ink); font-size: 14px; line-height: 1.5; }
.consent-row input { margin-top: 3px; accent-color: var(--portal-mint-dark); }
.question-fields > h1 { margin-top: 0; }
.question-note { margin: 10px 0 0; color: var(--portal-soft); font-size: 13px; }
.question-fields fieldset { margin: 26px 0 0; border: 0; padding: 0; }
.question-fields legend { margin-bottom: 11px; color: var(--portal-ink); font-size: 15px; font-weight: 800; }
.question-fields legend small { margin-left: 7px; color: var(--portal-soft); font-size: 11px; font-weight: 500; }
.radio-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-grid label { position: relative; }
.radio-grid input { position: absolute; opacity: 0; }
.radio-grid span { display: block; min-width: 100px; border: 1px solid var(--portal-line); border-radius: 6px; padding: 9px 11px; color: var(--portal-soft); background: #fff; font-size: 13px; text-align: center; }
.radio-grid input:checked + span { border-color: var(--portal-mint); color: var(--portal-mint-dark); background: #eaf8f3; font-weight: 800; }
.questionnaire-content footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.questionnaire-content button:disabled { cursor: not-allowed; opacity: .4; }

@media (max-width: 840px) {
  .portal-shell { padding: 0 16px 96px; }
  .portal-topbar { min-height: 64px; }
  .portal-user { display: none; }
  .portal-hero h1, .page-heading h1, .profile-hero h1 { font-size: 27px; }
  .portal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .managed-metric-trends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-login { grid-template-columns: 1fr; gap: 32px; padding: 42px 22px; }
  .login-intro { max-width: 480px; }
  .questionnaire-shell { padding: 0 16px 36px; }
  .face-capture-panel { padding: 17px; }
}

@media (max-width: 520px) {
  .portal-hero, .report-actions { display: grid; }
  .hero-actions { justify-content: space-between; }
  .score-band { padding: 20px; align-items: start; }
  .score-band > div:first-child { display: grid; gap: 3px; }
  .score-band > div:first-child b { font-size: 48px; }
  .score-state { padding-top: 7px; }
  .portal-metric, .portal-metric.wide { grid-column: auto; min-height: 165px; }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; }
  .period-buttons { display: grid; grid-template-columns: repeat(3, 1fr); }
  .period-buttons .secondary-button { padding-inline: 9px; }
  .report-summary { grid-template-columns: 1fr; gap: 18px; }
  .report-score { border-right: 0; border-bottom: 1px solid var(--portal-line); padding: 0 0 14px; }
  .record-row { padding: 12px; gap: 10px; }
  .record-day { width: 36px; font-size: 12px; }
  .record-summary small { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .record-side { display: none; }
  .portal-nav { left: 12px; right: 12px; }
  .question-progress span { font-size: 0; }
  .question-progress span i { font-size: 12px; }
  .question-intro, .question-fields { padding: 21px; }
  .radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-grid span { min-width: 0; }
  .managed-metric-trends { grid-template-columns: 1fr; }
  .face-video-frame { min-height: 220px; }
  .face-actions { display: grid; grid-template-columns: 1fr; }
}
