:root {
  color-scheme: light;
  --so2-navy: #071c39;
  --so2-blue: #0e8ed8;
  --so2-cyan: #4cc9e8;
  --so2-mint: #19b6a3;
  --so2-surface: #ffffff;
  --so2-bg: #f2f8fc;
  --so2-copy: #28455f;
  --so2-muted: #6c8295;
  --so2-border: #dbeaf3;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--so2-bg); color: var(--so2-navy); }
body { padding: env(safe-area-inset-top) 0 calc(88px + env(safe-area-inset-bottom)); }
a { color: inherit; }
.so2-app { width: min(100%, 620px); min-height: 100vh; margin: 0 auto; padding: 24px 18px 42px; }
.so2-brand { color: var(--so2-navy); font-size: 21px; font-weight: 900; letter-spacing: .12em; }
.so2-brand sup { color: var(--so2-blue); font-size: .6em; }
.so2-eyebrow { margin: 30px 0 8px; color: var(--so2-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }

.so2-hero { padding: 18px 4px 6px; }
.so2-hero h1, .so2-placeholder h1 { margin: 10px 0; font-size: clamp(34px, 10vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.so2-lead { margin: 0; color: var(--so2-copy); font-size: 17px; line-height: 1.55; }
.so2-origin-notice { margin: 18px 0 4px; padding: 12px 14px; border: 1px solid #a6e3da; border-radius: 14px; background: #ebfbf8; color: #087b6e; font-size: 13px; font-weight: 700; }
.so2-benefits { display: grid; gap: 10px; margin: 24px 0; }
.so2-benefit { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--so2-border); border-radius: 18px; background: var(--so2-surface); box-shadow: 0 8px 24px rgba(7, 28, 57, .05); }
.so2-benefit > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: #eaf8fd; color: var(--so2-blue); font-size: 22px; font-weight: 700; }
.so2-benefit h2 { margin: 0 0 3px; font-size: 16px; }
.so2-benefit p { margin: 0; color: var(--so2-muted); font-size: 13px; line-height: 1.4; }
.so2-primary-cta { display: block; width: 100%; padding: 16px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--so2-blue), #096bb5); box-shadow: 0 12px 28px rgba(14, 142, 216, .28); color: #fff; font-size: 16px; font-weight: 800; text-align: center; text-decoration: none; }
.so2-fine-print { color: var(--so2-muted); font-size: 11px; line-height: 1.5; text-align: center; }

.so2-app-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 12px; }
.so2-app-header p { margin: 6px 0 0; color: var(--so2-copy); }
.so2-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--so2-navy); color: #fff; font-weight: 800; text-decoration: none; }
.so2-origin-line { margin: 2px 0 16px; color: var(--so2-muted); font-size: 12px; }
.so2-reward-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 20px; padding: 19px; border-radius: 20px; background: linear-gradient(135deg, var(--so2-navy), #123b69); box-shadow: 0 14px 32px rgba(7, 28, 57, .18); color: #fff; }
.so2-reward-card span { display: block; color: #b9d4e8; font-size: 12px; }
.so2-reward-card strong { display: block; margin-top: 5px; font-size: 18px; }
.so2-reward-card a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--so2-cyan); color: var(--so2-navy); font-size: 12px; font-weight: 900; text-decoration: none; }
.so2-screening-prompt { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0 14px; padding: 16px; border: 1px solid #a6e3da; border-radius: 18px; background: #ebfbf8; }
.so2-screening-prompt.so2-screening-missing { border-color: #ffd895; background: #fff8e9; }
.so2-screening-prompt span { display: block; color: var(--so2-muted); font-size: 11px; }
.so2-screening-prompt strong { display: block; margin-top: 4px; font-size: 15px; }
.so2-screening-prompt a { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: var(--so2-blue); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.so2-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.so2-app-card { position: relative; min-height: 166px; padding: 18px 16px; border: 1px solid var(--so2-border); border-radius: 20px; background: var(--so2-surface); box-shadow: 0 8px 24px rgba(7, 28, 57, .055); text-decoration: none; }
.so2-app-card > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #eaf8fd; color: var(--so2-blue); font-size: 21px; }
.so2-app-card h2 { margin: 16px 0 4px; font-size: 16px; }
.so2-app-card p { margin: 0; color: var(--so2-muted); font-size: 12px; line-height: 1.4; }
.so2-app-card b { position: absolute; right: 14px; bottom: 10px; color: var(--so2-blue); font-size: 24px; }

.so2-placeholder { display: flex; min-height: calc(100vh - 90px); flex-direction: column; align-items: flex-start; justify-content: center; }
.so2-placeholder-icon { display: grid; width: 74px; height: 74px; margin-top: 58px; place-items: center; border-radius: 24px; background: #e3f6fc; color: var(--so2-blue); font-size: 38px; }
.so2-placeholder > p:not(.so2-eyebrow) { margin: 0 0 30px; color: var(--so2-copy); font-size: 16px; line-height: 1.6; }

.so2-health-screening h1, .so2-qr-page h1, .so2-operator-screenings h1, .so2-profile h1 { margin: 8px 0 12px; font-size: clamp(32px, 9vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.so2-screening-form, .so2-repeat-card, .so2-qr-card, .so2-screening-records { margin: 24px 0; }
.so2-screening-form fieldset { margin: 0 0 12px; padding: 17px; border: 1px solid var(--so2-border); border-radius: 17px; background: var(--so2-surface); }
.so2-screening-form legend { padding: 0 5px; font-size: 14px; font-weight: 800; line-height: 1.4; }
.so2-screening-form fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 9px 24px 0 0; color: var(--so2-copy); font-weight: 700; }
.so2-screening-form input[type="radio"], .so2-screening-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--so2-blue); }
.so2-field { display: grid; gap: 8px; margin: 14px 0; color: var(--so2-copy); font-size: 13px; font-weight: 800; }
.so2-field textarea, .so2-field select, .so2-copy-source { width: 100%; padding: 13px; border: 1px solid var(--so2-border); border-radius: 12px; background: #fff; color: var(--so2-navy); font: inherit; }
.so2-consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin: 20px 0; color: var(--so2-copy); font-size: 12px; line-height: 1.55; }
.so2-form-message { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--so2-border); border-radius: 14px; background: #fff; color: var(--so2-copy); }
.so2-form-message.is-success { border-color: #a6e3da; background: #ebfbf8; color: #087b6e; }
.so2-form-message.is-error { border-color: #f4b5b5; background: #fff0f0; color: #9c2222; }
.so2-repeat-card { padding: 22px; border: 1px solid var(--so2-border); border-radius: 20px; background: var(--so2-surface); box-shadow: 0 10px 28px rgba(7,28,57,.07); }
.so2-repeat-card > span { color: var(--so2-muted); font-size: 11px; }
.so2-repeat-card h2 { margin: 8px 0; font-size: 24px; }
.so2-repeat-card p { color: var(--so2-copy); line-height: 1.55; }
.so2-repeat-card form { display: grid; gap: 10px; }
.so2-secondary-button { width: 100%; padding: 14px 18px; border: 1px solid var(--so2-blue); border-radius: 15px; background: #fff; color: var(--so2-blue); font-size: 14px; font-weight: 800; cursor: pointer; }
.so2-text-link { display: inline-block; margin: 16px 0; color: var(--so2-blue); font-size: 13px; font-weight: 800; }

.so2-qr-card { padding: 20px; border: 1px solid var(--so2-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(7,28,57,.08); text-align: center; }
.so2-qr-card h2 { margin: 0 0 16px; font-size: 20px; }
.so2-qr-expand { display: block; width: min(100%, 480px); margin: 0 auto 16px; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.so2-qr-expand .so2-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.so2-qr-expand.is-fullscreen { position: fixed; z-index: 100; inset: 0; display: grid; width: 100%; height: 100%; margin: 0; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); place-items: center; background: #fff; cursor: zoom-out; }
.so2-qr-expand.is-fullscreen .so2-qr { width: min(94vw, 94vh); }
.so2-download-qr.so2-text-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
.so2-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.so2-action-row .so2-primary-cta { border: 0; cursor: pointer; }
.so2-screenings-link { display: block; margin: 18px 0 4px; padding: 15px; border-radius: 15px; background: var(--so2-navy); color: #fff; font-weight: 800; text-align: center; text-decoration: none; }

.so2-operator-screenings > h2 { margin-top: 24px; }
.so2-screening-record { margin-bottom: 10px; border: 1px solid var(--so2-border); border-radius: 16px; background: #fff; overflow: hidden; }
.so2-screening-record summary { display: grid; gap: 3px; padding: 16px; cursor: pointer; }
.so2-screening-record summary span { color: var(--so2-muted); font-size: 11px; text-transform: capitalize; }
.so2-screening-record dl { margin: 0; padding: 0 16px 16px; }
.so2-screening-record dl div { padding: 12px 0; border-top: 1px solid var(--so2-border); }
.so2-screening-record dt { color: var(--so2-copy); font-size: 12px; line-height: 1.4; }
.so2-screening-record dd { margin: 5px 0 0; font-weight: 800; }

.so2-page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 2px 2px; }
.so2-back-link { color: var(--so2-blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.so2-profile-intro { margin: 0 0 22px; color: var(--so2-copy); font-size: 15px; line-height: 1.55; }
.so2-profile-form { display: grid; gap: 14px; }
.so2-profile-section { margin: 0 0 14px; padding: 19px; border: 1px solid var(--so2-border); border-radius: 20px; background: var(--so2-surface); box-shadow: 0 8px 24px rgba(7, 28, 57, .055); }
.so2-profile-section h2 { margin: 0 0 16px; font-size: 18px; }
.so2-profile-section .so2-field { margin: 0 0 14px; }
.so2-profile-section .so2-field:last-child { margin-bottom: 0; }
.so2-profile-section input, .so2-profile-section select { width: 100%; min-width: 0; padding: 13px; border: 1px solid var(--so2-border); border-radius: 12px; background: #fff; color: var(--so2-navy); font: inherit; }
.so2-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.so2-profile-save { border: 0; cursor: pointer; }
.so2-order-summary { margin-top: 28px; }
.so2-order-summary ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.so2-order-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--so2-border); }
.so2-order-summary li:first-child { border-top: 0; }
.so2-order-summary li > div { display: grid; gap: 4px; }
.so2-order-summary li > div:last-child { text-align: right; }
.so2-order-summary span, .so2-empty-state { color: var(--so2-muted); font-size: 12px; }
.so2-empty-state { margin: 0; }
.so2-account-controls { padding-top: 8px; padding-bottom: 8px; }
.so2-account-controls h2 { margin: 10px 8px; }
.so2-profile-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 8px; border-top: 1px solid var(--so2-border); color: var(--so2-copy); font-size: 14px; font-weight: 800; text-decoration: none; }
.so2-profile-row b { color: var(--so2-blue); font-size: 22px; }
.so2-logout-link { color: #9c2222; }

.so2-bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 620px); margin: 0 auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--so2-border); background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 30px rgba(7, 28, 57, .08); backdrop-filter: blur(14px); }
.so2-bottom-nav a { display: flex; min-height: 51px; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; color: var(--so2-muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.so2-bottom-nav span { margin-bottom: 2px; font-size: 19px; }
.so2-bottom-nav a.is-active { background: #eaf8fd; color: var(--so2-blue); }

@media (min-width: 621px) {
  body { background: #dcebf4; }
  .so2-app { background: var(--so2-bg); box-shadow: 0 0 45px rgba(7, 28, 57, .09); }
}

@media (max-width: 360px) {
  .so2-card-grid { grid-template-columns: 1fr; }
	.so2-app-card { min-height: 132px; }
	.so2-action-row { grid-template-columns: 1fr; }
	.so2-field-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .so2-app-card, .so2-primary-cta { transition: transform .18s ease, box-shadow .18s ease; }
  .so2-app-card:active, .so2-primary-cta:active { transform: scale(.985); }
}

/* Full screening, review, and treatment workflows (0.4.0). */
.so2-form-section,.so2-health-card,.so2-treatment-card,.so2-search-form{background:#fff;border:1px solid rgba(7,28,57,.12);border-radius:18px;padding:18px;margin:0 0 16px;box-shadow:0 8px 24px rgba(7,28,57,.06)}
.so2-form-section h2,.so2-health-card h2{margin-top:0}.so2-form-section h3{margin:22px 0 8px;color:#124d77;font-size:.92rem;text-transform:uppercase;letter-spacing:.05em}
.so2-field{display:flex;flex-direction:column;gap:7px;margin:13px 0;font-weight:650}.so2-field input,.so2-field textarea,.so2-field select,.so2-search-form input{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #bac8d6;border-radius:11px;padding:11px 12px;background:#fff;color:#071c39;font:inherit}.so2-field textarea{min-height:100px;resize:vertical}
.so2-field-help{font-size:.88rem;color:#536779}.so2-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.so2-choice-grid label,.so2-screening-form fieldset label{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 10px;border:1px solid #d8e1e9;border-radius:10px;background:#f8fbfd}
.so2-screening-form fieldset{min-width:0;border:0;border-top:1px solid #e0e7ed;padding:16px 0 0;margin:14px 0}.so2-screening-form legend{font-weight:700;padding:0 0 9px}.so2-screening-form fieldset label{display:inline-flex;margin:0 7px 7px 0;min-width:78px}
.so2-consent{display:flex;align-items:flex-start;gap:10px;padding:11px 0;line-height:1.45}.so2-consent input{margin-top:4px;flex:0 0 auto}.so2-info-card{background:#eff8fb;border-color:#a8d7df}.so2-info-card details{margin:12px 0}.so2-info-card summary{cursor:pointer;font-weight:700}
.so2-status-pill{display:inline-block;margin:0 0 14px;padding:6px 11px;border-radius:999px;background:#dff7e7;color:#145c2d;font-size:13px;font-weight:800}.so2-info-card .so2-status-pill{background:#fff3cd;color:#765500}.so2-success,.so2-error{margin:12px 0;padding:12px 14px;border-radius:12px;font-weight:700}.so2-success{background:#dff7e7;color:#145c2d}.so2-error{background:#fde8e8;color:#8a2020}
.so2-summary-list{margin:0}.so2-summary-list div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #e4e9ee}.so2-summary-list dt{color:#627181}.so2-summary-list dd{text-align:right;margin:0;font-weight:650}
.so2-inline-cta{display:inline-flex;width:auto;margin-bottom:14px}.so2-answer{display:grid;grid-template-columns:90px 1fr;gap:10px;padding:10px;border-radius:10px;margin:6px 0;background:#f4f7f9}.so2-answer.is-yes{background:#fff0e7;border-left:4px solid #dc5f19}.so2-answer span{font-size:.92rem}.so2-audit-event{border-left:3px solid #33a9b5;padding:9px 12px;margin:10px 0;background:#f4fafb}.so2-audit-event span{display:block;color:#647482;font-size:.82rem}.so2-review-form{border-top:1px solid #d9e2e9;margin-top:18px;padding-top:12px}
.so2-customer-results{display:grid;gap:8px;margin:12px 0 20px}.so2-customer-results a{display:flex;flex-direction:column;padding:12px;border:1px solid #dce5ec;border-radius:11px;background:#fff;color:#071c39;text-decoration:none}.so2-customer-results span{font-size:.85rem;color:#637486}.so2-treatment-card summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.so2-treatment-form{margin-top:15px}.so2-treatment-summary{border-top:1px solid #e1e7ec;padding:13px 0}.so2-treatment-summary>span{display:block;color:#5e7181}.so2-treatment-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0}.so2-treatment-summary dl div{background:#f4f7f9;border-radius:8px;padding:8px}.so2-treatment-summary dt{font-size:.74rem;color:#687989}.so2-treatment-summary dd{margin:2px 0 0;font-weight:700}
@media (max-width:480px){.so2-choice-grid{grid-template-columns:1fr}.so2-form-section,.so2-health-card,.so2-treatment-card{padding:15px}.so2-answer{grid-template-columns:72px 1fr}.so2-treatment-card summary{flex-direction:column}.so2-treatment-summary dl{grid-template-columns:1fr 1fr}}


/* BB6.4L — My O2 App QR presentation only. */
.so2-qr-page .so2-qr-role-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #bde9f1;
  border-radius: 14px;
  background: #f4fbff;
  color: var(--so2-copy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.so2-qr-page .so2-qr-card {
  max-width: 580px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 621px) {
  .so2-qr-page {
    padding: 42px 38px 86px;
  }
  .so2-qr-page .so2-field {
    max-width: 580px;
    margin-right: auto;
    margin-left: auto;
  }
}
