:root {
  --navy-950: #071426;
  --navy-900: #0b1d33;
  --navy-800: #15314e;
  --navy-700: #244666;
  --ink: #14263b;
  --muted: #6b7a8b;
  --muted-2: #93a0ae;
  --line: #e7edf2;
  --line-strong: #d6e0e8;
  --page: #f6f8fb;
  --paper: #ffffff;
  --mint: #39b8a4;
  --mint-deep: #137f76;
  --mint-soft: #e5f6f3;
  --blue-soft: #eaf1ff;
  --blue: #4774e9;
  --yellow-soft: #fff6d9;
  --yellow: #d7a32a;
  --orange-soft: #fff0e6;
  --orange: #d86b2f;
  --rose-soft: #fff0f1;
  --rose: #c94556;
  --purple-soft: #f1efff;
  --purple: #7666d4;
  --shadow-sm: 0 3px 14px rgba(20, 38, 59, .04);
  --shadow-md: 0 12px 34px rgba(20, 38, 59, .07);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--page); scroll-behavior: smooth; }

body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid rgba(57, 184, 164, .42); outline-offset: 3px; }

.skip-link { position: fixed; top: -50px; left: 16px; z-index: 50; padding: 10px 14px; color: #fff; background: var(--navy-900); border-radius: 0 0 9px 9px; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 0; }

.app-loading { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 254px; flex: 0 0 254px; min-height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 20px; color: #d7e4f2; background: var(--navy-900); }
.main-column { width: calc(100% - 254px); min-width: 0; background: var(--page); }

.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 12px 24px; }
.brand-mark { width: 35px; height: 35px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px; border: 1px solid rgba(118, 229, 208, .22); border-radius: 11px; background: rgba(57, 184, 164, .13); }
.brand-mark span { display: block; width: 4px; border-radius: 5px 5px 2px 2px; background: #77e4d2; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .82; }
.brand-name { color: #fff; font-size: 18px; font-weight: 760; letter-spacing: -.04em; }
.brand-tagline { margin-top: 1px; color: #8ea6ba; font-size: 9px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }

.sidebar-mode { display: flex; align-items: center; gap: 8px; margin: 0 5px 22px; padding: 9px 11px; color: #a9bdcf; border: 1px solid rgba(178, 205, 224, .12); border-radius: 9px; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #62d6bb; box-shadow: 0 0 0 4px rgba(98,214,187,.13); }
.mode-lock { display: inline-flex; margin-left: auto; color: #71899e; }
.nav-groups { display: grid; gap: 21px; }
.nav-group-title { padding: 0 13px 8px; color: #6f889e; font-size: 9px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 10px 12px; color: #a8bbcc; border: 0; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 650; text-align: left; transition: color .15s ease, background .15s ease, transform .15s ease; }
.nav-item .icon { color: #6e8aa2; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(56, 184, 164, .23), rgba(56, 184, 164, .07)); box-shadow: inset 3px 0 0 #57ccb8; }
.nav-item.active .icon { color: #71ddcc; }
.nav-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #e5c45c; }
.sidebar-fallback { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: linear-gradient(145deg, rgba(216,107,47,.15), rgba(255,255,255,.03)); }
.fallback-kicker { display: flex; align-items: center; gap: 8px; color: #efb792; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.signal-icon { display: grid; width: 18px; height: 18px; place-items: center; color: #0e1d31; border-radius: 50%; background: #efb792; font-size: 12px; font-weight: 850; }
.fallback-number { margin: 10px 0 0; color: #fff; font-size: 26px; font-weight: 780; letter-spacing: -.045em; }
.fallback-copy { margin-top: 2px; color: #a4b7c9; font-size: 10px; line-height: 1.5; }
.fallback-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; color: #f6c5a5; font-size: 11px; font-weight: 750; text-decoration: none; }
.fallback-link:hover { color: #fff; }
.sidebar-footer { display: grid; gap: 4px; padding: 17px 10px 0; color: #70889e; font-size: 9px; line-height: 1.45; }
.sidebar-footer a { color: #95b1c5; text-decoration: none; }
.sidebar-footer a:hover { color: #fff; }

.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb-home { color: var(--muted-2); font-weight: 700; }
.breadcrumb-slash { color: #b8c3cd; }
.breadcrumb strong { color: var(--ink); font-weight: 760; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.connection-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: var(--mint-deep); border: 1px solid #c9eee7; border-radius: 99px; background: var(--mint-soft); font-size: 10px; font-weight: 740; }
.connection-pill.offline { color: var(--orange); border-color: #f6d4c1; background: var(--orange-soft); }
.language-toggle { padding: 4px 2px; color: var(--muted); border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.language-toggle:hover { color: var(--navy-800); }
.language-toggle span { margin: 0 4px; color: #bec7cf; }
.avatar-button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px 4px 4px; color: var(--muted); border: 0; background: transparent; }
.avatar-button span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--navy-900); border-radius: 50%; background: #d9f0ec; font-size: 10px; font-weight: 800; }

.demo-banner, .offline-banner { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 40px; color: #786222; border-bottom: 1px solid #f2e4b7; background: #fff9e7; font-size: 11px; line-height: 1.4; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 5px 8px; color: #7f661d; border: 1px solid #ecd98e; border-radius: 99px; background: #fff6d4; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.offline-banner { color: #8b4f24; border-color: #f6d4c1; background: var(--orange-soft); }
.offline-banner .icon { color: var(--orange); }

.main-content { max-width: 1480px; margin: 0 auto; padding: 36px 40px 48px; }
.view { animation: enter .25s ease both; }
@keyframes enter { from { opacity: .15; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 8px; color: var(--mint-deep); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-divider { padding: 0 3px; color: #a8c7c0; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 9px; color: var(--navy-900); font-size: clamp(25px, 3vw, 39px); font-weight: 760; letter-spacing: -.055em; line-height: 1.08; }
.page-intro p { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.page-intro-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.card-surface { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 760; line-height: 1.2; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14, 36, 58, .10); }
.button.primary { color: #fff; background: var(--navy-900); }
.button.primary:hover { background: #102945; }
.button.secondary { color: var(--navy-800); border-color: var(--line-strong); background: #fff; }
.button.secondary:hover { border-color: #b8d9d4; background: #f8fffd; }
.button.ghost { color: var(--muted); border-color: transparent; background: transparent; }
.button.ghost:hover { color: var(--navy-900); background: #f2f6f8; box-shadow: none; }
.button.danger { color: #fff; background: var(--rose); }
.button.danger:hover { background: #b6394b; }
.button.danger-outline { color: var(--rose); border-color: #f0c3ca; background: var(--rose-soft); }
.full-button { width: 100%; }
.text-button, .metric-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; color: var(--mint-deep); border: 0; background: transparent; font-size: 11px; font-weight: 760; text-decoration: none; }
.text-button:hover, .metric-link:hover { color: var(--navy-900); }
.danger-text { color: var(--rose); }
.small-muted { color: var(--muted-2); font-size: 10px; line-height: 1.4; }
.card-label, .metric-overline { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading h2, .card-surface h2 { margin-bottom: 0; color: var(--navy-900); font-size: 17px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr); gap: 18px; }
.hero-card { min-height: 240px; padding: 25px 27px 20px; background: linear-gradient(135deg, #fff 0%, #fbfefd 78%, #edf9f6 100%); }
.card-label-row, .hero-foot, .action-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.soft-status, .ack-status { display: inline-flex; align-items: center; gap: 5px; color: var(--mint-deep); font-size: 10px; font-weight: 700; }
.hero-reading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 20px; }
.reading-number { color: var(--navy-900); font-size: clamp(46px, 5vw, 65px); font-weight: 770; letter-spacing: -.09em; line-height: .9; }
.reading-number.secondary { color: var(--navy-700); }
.reading-separator { display: inline-block; margin: 0 8px; color: #b9c5cf; font-size: 34px; font-weight: 350; vertical-align: 9px; }
.reading-unit { margin-left: 10px; color: var(--muted); font-size: 10px; font-weight: 740; vertical-align: 5px; }
.pulse-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px; color: #527282; border: 1px solid #d5e9eb; border-radius: 8px; background: #f2fbfb; font-size: 10px; font-weight: 740; white-space: nowrap; }
.pulse-line { color: var(--mint-deep); font-size: 20px; line-height: 0; }
.hero-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.hero-meta span + span { position: relative; }
.hero-meta span + span::before { position: absolute; top: 2px; left: -10px; width: 3px; height: 3px; border-radius: 50%; background: #c7d2db; content: ''; }
.hero-divider { height: 1px; margin: 21px 0 13px; background: var(--line); }
.hero-foot { color: var(--muted-2); font-size: 10px; }

.action-card { min-height: 240px; padding: 22px 23px 17px; border-color: #cfece7; background: linear-gradient(145deg, #fbfffe, #f0faf8); }
.action-card.quality { border-color: #eadcae; background: linear-gradient(145deg, #fffef7, #fffaf0); }
.action-card.urgent { border-color: #f2d1bc; background: linear-gradient(145deg, #fffaf6, #fff2eb); }
.action-card.emergency { border-color: #f1c4c9; background: linear-gradient(145deg, #fffafb, #fff0f1); }
.action-card.special { border-color: #ded8f8; background: linear-gradient(145deg, #fcfbff, #f5f3ff); }
.action-card.action-priority { box-shadow: 0 11px 28px rgba(199, 69, 86, .09); }
.action-header, .result-top { display: flex; align-items: flex-start; gap: 11px; }
.action-header h2, .result-top h2 { margin-top: 4px; }
.action-icon, .result-symbol { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--mint-deep); border-radius: 10px; background: rgba(57,184,164,.13); font-size: 17px; font-weight: 850; }
.urgent .action-icon, .urgent .result-symbol { color: var(--orange); background: #ffe2ce; }
.emergency .action-icon, .emergency .result-symbol { color: var(--rose); background: #ffdadd; }
.special .action-icon, .special .result-symbol { color: var(--purple); background: #e5e0ff; }
.demo-status { margin-left: auto; padding: 4px 7px; color: #8c7023; border: 1px solid #eadcae; border-radius: 99px; background: rgba(255,255,255,.7); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.action-card p { max-width: 470px; margin: 22px 0 17px; color: var(--navy-800); font-size: 13px; line-height: 1.55; }
.action-buttons { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.action-foot { padding-top: 6px; color: var(--mint-deep); font-size: 10px; font-weight: 700; }
.action-source { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 10px; color: #8b9eaa; border-top: 1px solid rgba(134, 174, 166, .18); font-size: 9px; line-height: 1.35; }
.urgent .action-source, .emergency .action-source { color: #a67a62; border-color: rgba(216, 107, 47, .17); }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.metric-card { min-height: 172px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.metric-card.large { min-height: 144px; }
.metric-top { display: flex; align-items: center; gap: 8px; }
.metric-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; }
.metric-icon.mint { color: var(--mint-deep); background: var(--mint-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.yellow { color: #a57910; background: var(--yellow-soft); }
.metric-value { margin-top: 14px; color: var(--navy-900); font-size: 28px; font-weight: 770; letter-spacing: -.06em; line-height: 1; }
.metric-value span { color: var(--navy-700); font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.metric-value.compact { font-size: 22px; letter-spacing: -.055em; }
.metric-value.compact span { font-size: 15px; }
.metric-denom { color: var(--muted-2) !important; font-size: 13px !important; font-weight: 650 !important; letter-spacing: 0 !important; }
.metric-caption { min-height: 31px; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.42; }
.metric-sparkline { height: 28px; margin-top: 5px; }
.spark-bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.spark-bars span { width: 8px; min-height: 5px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#65d6c3, #b8ebe3); }
.spark-empty { color: var(--muted-2); }
.progress-track { height: 5px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: #edf2f5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.metric-link { margin-top: 5px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; margin-top: 18px; }
.trend-card, .target-card, .sessions-card, .next-card { padding: 22px; }
.trend-card h2, .target-card h2, .sessions-card h2, .next-card h2 { margin-top: 6px; }
.mini-chart { position: relative; min-height: 180px; margin-top: 22px; padding: 13px 4px 0 39px; }
.chart-grid-lines { position: absolute; inset: 15px 4px 39px 39px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid-lines::before, .chart-grid-lines::after { position: absolute; left: 0; right: 0; height: 1px; background: #edf1f3; content: ''; }
.chart-grid-lines::before { top: 33%; }
.chart-grid-lines::after { top: 66%; }
.chart-grid-lines span { z-index: 1; width: 28px; margin-left: -35px; color: var(--muted-2); font-size: 9px; text-align: right; }
.chart-bars { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-around; height: 134px; border-bottom: 1px solid #dfe7ec; }
.chart-column { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 7px; min-width: 25px; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 24px; height: 126px; }
.bar-pair span { display: block; width: 7px; min-height: 4px; border-radius: 4px 4px 0 0; }
.bar-sys { background: var(--mint); }
.bar-dia { background: #a9c8f5; }
.chart-column small { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.chart-legend { display: flex; align-items: center; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.legend-sys { background: var(--mint); }
.legend-dia { background: #a9c8f5; }
.chart-legend em { margin-left: auto; color: var(--muted-2); font-style: normal; }
.target-card { background: linear-gradient(145deg, #fff, #fbfbff); }
.target-card .icon { color: var(--purple); }
.target-values { display: flex; align-items: flex-end; gap: 13px; margin: 31px 0 25px; }
.target-values > div:not(.target-slash) { display: grid; gap: 3px; }
.target-values span { color: var(--muted-2); font-size: 9px; font-weight: 780; text-transform: uppercase; }
.target-values strong { color: var(--navy-900); font-size: 25px; font-weight: 750; letter-spacing: -.06em; }
.target-values small { color: var(--muted); font-size: 9px; }
.target-slash { padding-bottom: 2px; color: #b7c2cb; font-size: 25px; }
.target-meta { display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.callout-note { display: flex; align-items: flex-start; gap: 6px; margin: 17px 0 0; padding: 9px 10px; color: #6d7091; border-radius: 8px; background: var(--purple-soft); font-size: 9px; line-height: 1.45; }
.callout-note .icon { flex: 0 0 15px; color: var(--purple); }
.bottom-grid { align-items: stretch; }
.session-list { margin-top: 19px; }
.session-row { display: grid; grid-template-columns: 78px minmax(100px, 1fr) 115px 82px; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); }
.session-date, .session-bp { display: grid; gap: 2px; }
.session-date strong, .session-bp strong { color: var(--navy-900); font-size: 11px; }
.session-date span, .session-bp span { color: var(--muted-2); font-size: 9px; }
.session-quality { display: inline-flex; align-items: center; gap: 4px; color: var(--mint-deep); font-size: 9px; font-weight: 700; }
.session-quality.flagged { color: #9b7519; }
.session-source { color: var(--muted-2); font-size: 9px; text-align: right; }
.next-time { display: grid; gap: 1px; margin-top: 25px; }
.next-time strong { color: var(--navy-900); font-size: 34px; font-weight: 770; letter-spacing: -.07em; line-height: 1; }
.next-time span { color: var(--muted); font-size: 10px; }
.next-actions { display: flex; align-items: center; gap: 10px; margin-top: 19px; }
.boundary-strip { display: grid; gap: 3px; margin-top: 18px; padding: 10px 11px; color: #6f7f8a; border-left: 3px solid #e7c659; background: #fffaf0; font-size: 9px; line-height: 1.4; }
.boundary-strip strong { color: #80671e; font-size: 10px; }
.trust-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #dbeae8; border-radius: 13px; background: #f4fbfa; }
.trust-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: var(--mint-deep); border-radius: 9px; background: var(--mint-soft); }
.trust-strip div:nth-child(2) { display: grid; gap: 2px; }
.trust-strip strong { color: var(--navy-800); font-size: 11px; }
.trust-strip span { color: var(--muted); font-size: 10px; }
.trust-strip .text-button { margin-left: auto; }

.stepper { display: flex; align-items: center; max-width: 930px; margin: -3px 0 30px; }
.stepper-item { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; font-weight: 730; white-space: nowrap; }
.stepper-item i { width: clamp(20px, 5vw, 74px); height: 1px; margin: 0 8px; background: var(--line-strong); }
.step-number { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: 9px; }
.stepper-item.current { color: var(--navy-900); }
.stepper-item.current .step-number { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.stepper-item.complete { color: var(--mint-deep); }
.stepper-item.complete .step-number { color: var(--mint-deep); border-color: #a8ded6; background: var(--mint-soft); }
.measurement-layout, .review-layout, .action-result-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr); gap: 18px; align-items: start; }
.wide-card { padding: 28px; }
.side-note, .review-aside { padding: 17px 16px; border: 1px solid #e0eaee; border-radius: var(--radius-md); background: #f8fbfc; }
.side-note strong, .review-aside strong { display: block; margin-top: 11px; color: var(--navy-800); font-size: 12px; }
.side-note p, .review-aside p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.58; }
.side-note .text-button { margin-top: 13px; }
.note-icon { display: grid; width: 31px; height: 31px; place-items: center; color: var(--mint-deep); border-radius: 9px; background: var(--mint-soft); }
.setup-hero { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.setup-hero h2 { margin: 7px 0 4px; font-size: 21px; }
.setup-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.setup-illustration { position: relative; width: 115px; height: 92px; flex: 0 0 115px; overflow: hidden; border: 1px solid #ccece8; border-radius: 17px; background: #effbf9; }
.cuff-shape { position: absolute; top: 20px; left: 20px; width: 61px; height: 44px; border: 4px solid var(--navy-800); border-radius: 12px; background: #fff; box-shadow: 7px 9px 0 #d0eee9; transform: rotate(-8deg); }
.cuff-shape::after { position: absolute; right: -24px; top: 17px; width: 29px; height: 7px; border-radius: 7px; background: var(--navy-700); content: ''; transform: rotate(10deg); }
.arm-shape { position: absolute; right: -19px; bottom: -18px; width: 70px; height: 57px; border: 9px solid #f1c1a4; border-radius: 50%; transform: rotate(-29deg); }
.pulse-dot { position: absolute; top: 12px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(57,184,164,.15); }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 23px 0; border-bottom: 1px solid var(--line); }
.detail-cell { display: grid; gap: 5px; padding: 0 14px; border-left: 1px solid var(--line); }
.detail-cell:first-child { padding-left: 0; border-left: 0; }
.detail-cell span { color: var(--muted-2); font-size: 9px; font-weight: 740; text-transform: uppercase; }
.detail-cell strong { color: var(--navy-800); font-size: 11px; line-height: 1.3; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 22px; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.radio-card.selected { border-color: #a7ddd5; background: #f5fdfb; box-shadow: inset 0 0 0 1px #caeee9; }
.radio-card input { margin-top: 2px; accent-color: var(--mint-deep); }
.radio-card span { display: grid; gap: 3px; }
.radio-card strong { color: var(--navy-800); font-size: 10px; }
.radio-card small { color: var(--muted); font-size: 9px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.countdown-note { text-align: center; }
.countdown-ring { display: grid; width: 104px; height: 104px; place-items: center; margin: 3px auto 18px; border: 8px solid #dcf3ef; border-top-color: var(--mint); border-radius: 50%; background: #fff; }
.countdown-ring strong { color: var(--navy-900); font-size: 18px; letter-spacing: -.04em; }
.countdown-ring span { margin-top: -31px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.checklist { display: grid; gap: 2px; }
.check-row { display: flex; align-items: center; gap: 11px; min-height: 47px; padding: 8px 10px; color: var(--navy-800); border-bottom: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.check-row input, .option-card input { position: absolute; opacity: 0; }
.fake-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; color: transparent; border: 1px solid #ccd8df; border-radius: 6px; background: #fff; }
.check-row input:checked + .fake-check, .option-card input:checked + .fake-check { color: #fff; border-color: var(--mint); background: var(--mint); }
.check-row.caution .fake-check { color: #a37c16; border-color: #e2cf86; background: #fff9e7; }
.check-row.special-row { margin-top: 13px; padding-left: 0; border-bottom: 0; color: var(--purple); }
.field-label { display: block; margin: 19px 0 7px; color: var(--navy-800); font-size: 10px; font-weight: 750; }
.textarea, .text-input, .number-field input, .search-field input { width: 100%; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.textarea, .text-input { padding: 10px 11px; font-size: 11px; resize: vertical; }
.textarea:focus, .text-input:focus, .number-field input:focus, .search-field input:focus { border-color: #8ed3ca; box-shadow: 0 0 0 3px rgba(57,184,164,.11); }
.reading-entry-grid { display: grid; grid-template-columns: 1fr 28px 1fr .95fr; align-items: end; gap: 13px; }
.number-field { display: grid; gap: 6px; }
.number-field > span { color: var(--navy-800); font-size: 10px; font-weight: 760; }
.number-field > div { position: relative; }
.number-field input { height: 62px; padding: 0 43px 0 13px; font-size: 30px; font-weight: 770; letter-spacing: -.06em; }
.number-field b { position: absolute; right: 11px; bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 700; }
.number-field small { color: var(--muted-2); font-size: 9px; }
.slash-separator { padding-bottom: 29px; color: #b6c1c9; font-size: 24px; text-align: center; }
.saved-readings { margin-top: 31px; border-top: 1px solid var(--line); }
.saved-header { display: flex; justify-content: space-between; padding: 14px 0 8px; color: var(--navy-800); font-size: 10px; }
.saved-header span { color: var(--muted); }
.saved-reading { display: grid; grid-template-columns: 31px 1fr 72px 94px 100px; align-items: center; gap: 12px; min-height: 47px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.saved-reading strong { color: var(--navy-900); font-size: 13px; }
.saved-reading em { color: var(--muted-2); font-style: normal; text-align: right; }
.reading-index { display: grid; width: 24px; height: 24px; place-items: center; color: var(--mint-deep); border-radius: 7px; background: var(--mint-soft); font-size: 9px; font-weight: 780; }
.empty-inline { padding: 17px 0; color: var(--muted-2); font-size: 10px; }
.next-step-callout { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 13px 14px; border: 1px solid #d7e9e6; border-radius: 10px; background: #f4fbfa; }
.next-step-callout div { display: grid; gap: 2px; }
.next-step-callout strong { color: var(--navy-800); font-size: 11px; }
.next-step-callout span { color: var(--muted); font-size: 9px; }
.form-error { min-height: 0; margin-top: 11px; color: var(--rose); font-size: 10px; }
.form-error div { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.review-summary { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.review-bp { display: grid; gap: 4px; }
.review-bp span, .review-bp small { color: var(--muted-2); font-size: 9px; }
.review-bp strong { color: var(--navy-900); font-size: 28px; letter-spacing: -.06em; }
.review-bp i { color: #bdc7cf; font-style: normal; }
.review-line { width: 1px; height: 48px; background: var(--line); }
.review-meta { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.fieldset { margin: 25px 0 0; padding: 0; border: 0; }
.fieldset legend { margin-bottom: 8px; color: var(--navy-800); font-size: 11px; font-weight: 780; }
.fieldset-help { margin-bottom: 11px; color: var(--muted); font-size: 10px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option-card { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 10px; color: var(--navy-800); border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 10px; }
.option-card:has(input:checked) { border-color: #a7ddd5; background: #f5fdfb; }
.symptom-fieldset { padding-top: 22px; border-top: 1px solid var(--line); }
.option-card.symptom:has(input:checked) { border-color: #f0c0c6; background: var(--rose-soft); }
.option-card.symptom input:checked + .fake-check { border-color: var(--rose); background: var(--rose); }
.review-aside { display: grid; gap: 11px; }
.mini-summary { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mini-summary span, .mini-summary small { color: var(--muted-2); font-size: 9px; }
.mini-summary strong { color: var(--navy-800); font-size: 11px; }
.review-warning { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; padding: 10px; color: #80671e; border-radius: 8px; background: var(--yellow-soft); font-size: 9px; font-weight: 720; line-height: 1.4; }
.review-warning .icon { flex: 0 0 16px; }

.action-result-layout { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
.result-card { padding: 27px; }
.result-card.calm { border-color: #cfece7; background: linear-gradient(145deg, #fff, #f2fbf9); }
.result-card.quality { border-color: #eadcae; background: linear-gradient(145deg, #fff, #fffaf0); }
.result-card.urgent { border-color: #f2d1bc; background: linear-gradient(145deg, #fff, #fff2eb); }
.result-card.emergency { border-color: #f1c4c9; background: linear-gradient(145deg, #fff, #fff0f1); }
.result-card.special { border-color: #ded8f8; background: linear-gradient(145deg, #fff, #f5f3ff); }
.result-copy { max-width: 570px; margin: 25px 0 20px; color: var(--navy-800); font-size: 16px; line-height: 1.5; }
.result-reason { display: grid; gap: 5px; padding: 14px; border: 1px solid rgba(118, 148, 156, .17); border-radius: 10px; background: rgba(255,255,255,.62); }
.result-reason strong { color: var(--navy-800); font-size: 10px; }
.result-reason span { color: var(--muted); font-size: 11px; }
.result-reason small { color: var(--muted-2); font-size: 9px; }
.result-contacts { display: flex; align-items: center; gap: 11px; margin-top: 18px; flex-wrap: wrap; }
.result-contacts > span { color: var(--muted); font-size: 9px; }
.result-boundary { display: flex; align-items: center; gap: 6px; margin-top: 21px; padding-top: 14px; color: var(--muted); border-top: 1px solid rgba(130, 161, 166, .18); font-size: 9px; }
.result-data { padding: 23px; }
.result-data > .section-heading .icon { color: var(--mint-deep); }
.observation-table { margin-top: 20px; border-top: 1px solid var(--line); }
.observation-row { display: grid; grid-template-columns: 34px 1fr 80px 110px; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.observation-row.head { color: var(--muted-2); font-size: 8px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.observation-row strong { color: var(--navy-800); font-size: 12px; }
.result-actions { display: flex; gap: 8px; margin-top: 20px; }

.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.segmented-control button, .filter-tabs button { padding: 7px 10px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; font-size: 10px; font-weight: 740; }
.segmented-control button.active, .filter-tabs button.active { color: var(--navy-900); background: #edf6f5; box-shadow: 0 1px 2px rgba(20,38,59,.06); }
.insight-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #dbeae8; border-radius: 11px; background: #f5fbfa; }
.insight-icon { display: grid; width: 29px; height: 29px; place-items: center; color: var(--mint-deep); border-radius: 8px; background: var(--mint-soft); }
.insight-banner div:nth-child(2) { display: grid; gap: 2px; }
.insight-banner strong { color: var(--navy-800); font-size: 10px; }
.insight-banner span { color: var(--muted); font-size: 9px; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge.neutral { color: var(--muted); border: 1px solid var(--line); background: #fff; }
.badge.demo { color: #8c7023; border: 1px solid #eadcae; background: var(--yellow-soft); }
.badge.pending { color: #99711c; border: 1px solid #ecdca8; background: #fff9e7; }
.insight-banner .badge { margin-left: auto; }
.trend-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.full-chart-card { margin-top: 17px; padding: 22px; }
.full-chart-card .mini-chart { min-height: 230px; }
.full-chart-card .chart-bars { height: 178px; }
.full-chart-card .bar-pair { height: 166px; }
.empty-state { display: grid; place-items: center; gap: 7px; min-height: 220px; color: var(--muted); text-align: center; }
.empty-state .icon { color: var(--muted-2); }
.empty-state strong { color: var(--navy-800); font-size: 13px; }
.empty-state span { max-width: 330px; font-size: 10px; }
.trend-lower-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 17px; margin-top: 17px; }
.table-card { padding: 22px; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 18px; }
th { padding: 0 8px 9px; color: var(--muted-2); font-size: 8px; font-weight: 780; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 0; }
td strong { color: var(--navy-800); font-size: 11px; }
.table-flag { color: #9b7519; }
.compact-target { margin-top: 26px; }

.directory-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.search-field { position: relative; display: flex; align-items: center; flex: 1; max-width: 360px; color: var(--muted-2); }
.search-field > .icon { position: absolute; left: 11px; }
.search-field input { height: 36px; padding: 0 33px 0 34px; font-size: 10px; }
.search-field button { position: absolute; right: 7px; display: grid; width: 23px; height: 23px; place-items: center; color: var(--muted-2); border: 0; background: transparent; }
.filter-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.neutral-sort { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--muted); font-size: 9px; white-space: nowrap; }
.neutral-sort .icon { color: var(--mint-deep); }
.official-fallback-card { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 17px; border: 1px solid #cfe5ef; border-radius: 14px; background: linear-gradient(115deg, #f6fbff, #fff); }
.official-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; color: #3b72b9; border-radius: 11px; background: #e6f0ff; }
.official-fallback-card div:nth-child(2) { flex: 1; }
.official-fallback-card h2 { margin: 3px 0 3px; font-size: 15px; }
.official-fallback-card p { margin: 0; color: var(--muted); font-size: 10px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.directory-card { min-height: 285px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.directory-card-top { display: flex; align-items: center; justify-content: space-between; }
.directory-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-soft); }
.directory-icon.person { color: var(--purple); background: var(--purple-soft); }
.directory-card h2 { margin: 18px 0 8px; font-size: 15px; line-height: 1.25; }
.directory-location { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.directory-card > p { min-height: 32px; margin: 10px 0 15px; color: var(--muted); font-size: 10px; }
.directory-evidence { display: grid; gap: 3px; margin-top: auto; padding: 10px 0; border-top: 1px solid var(--line); }
.directory-evidence span { color: var(--muted-2); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.directory-evidence strong { color: #8e6c1c; font-size: 10px; }
.directory-evidence small { color: var(--muted-2); font-size: 8px; line-height: 1.35; }
.correction-note { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 2px; color: var(--muted); font-size: 9px; }
.correction-note > span { display: inline-flex; align-items: center; gap: 6px; }
.full-width { grid-column: 1 / -1; }

.report-status { display: flex; align-items: center; gap: 12px; margin: -9px 0 18px; color: var(--muted); font-size: 9px; }
.report-status span:nth-child(3) { margin-left: auto; color: var(--muted-2); }
.report-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.report-preview { padding: 29px; background: #fff; }
.report-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.report-sheet-header .brand-name { color: var(--navy-900); }
.report-sheet-header span { display: block; max-width: 290px; margin-top: 3px; color: var(--muted); font-size: 9px; }
.report-demo-stamp { padding: 5px 7px; color: #8c7023 !important; border: 1px solid #eadcae; border-radius: 4px; background: var(--yellow-soft); font-size: 8px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-person { display: flex; align-items: center; gap: 11px; padding: 21px 0; }
.avatar-large { display: grid; width: 39px; height: 39px; place-items: center; color: var(--navy-800); border-radius: 12px; background: var(--mint-soft); font-size: 11px; font-weight: 800; }
.report-person h2 { margin: 0 0 3px; font-size: 15px; }
.report-person span, .report-range span { color: var(--muted); font-size: 9px; }
.report-range { display: grid; gap: 3px; margin-left: auto; text-align: right; }
.report-range strong { color: var(--navy-800); font-size: 10px; }
.report-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-highlight > div { display: grid; gap: 3px; padding: 0 14px; border-left: 1px solid var(--line); }
.report-highlight > div:first-child { padding-left: 0; border-left: 0; }
.report-highlight span, .report-highlight small { color: var(--muted-2); font-size: 8px; }
.report-highlight strong { color: var(--navy-900); font-size: 18px; letter-spacing: -.055em; }
.report-section { margin-top: 22px; }
.report-section-title { display: flex; align-items: center; justify-content: space-between; color: var(--navy-800); font-size: 10px; font-weight: 780; }
.report-section-title span:last-child { color: var(--muted-2); font-size: 8px; font-weight: 650; }
.report-preview table { margin-top: 13px; }
.report-preview td, .report-preview th { font-size: 8px; }
.report-notes { padding: 13px; border-radius: 9px; background: #f8fbfc; }
.report-notes p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.report-footer-note { margin-top: 22px; padding-top: 14px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 8px; line-height: 1.55; }
.report-controls { display: grid; gap: 17px; }
.control-card { padding: 20px; }
.control-card h2 { margin-top: 7px; }
.control-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.control-row strong { max-width: 170px; color: var(--navy-800); font-size: 9px; text-align: right; }
.share-composer h2 { margin-bottom: 16px; }
.share-composer .field-label { margin-top: 0; }
.share-composer .small-muted { display: block; margin-top: 11px; }
.shares-card .section-heading { align-items: center; }
.shares-card .section-heading h2 { font-size: 25px; }
.share-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.share-row > div { display: grid; gap: 3px; min-width: 0; }
.share-row strong { color: var(--navy-800); font-size: 10px; }
.share-row span, .share-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.share-row small { color: var(--muted-2); }

.device-hero { display: flex; align-items: center; gap: 33px; padding: 31px; background: linear-gradient(120deg, #fff, #f2fbfa); }
.device-visual { position: relative; display: grid; width: 175px; height: 128px; flex: 0 0 175px; place-items: center; border-radius: 18px; background: #e6f7f4; }
.device-body { position: absolute; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; width: 128px; height: 58px; border: 3px solid var(--navy-800); border-radius: 13px 13px 18px 18px; background: #fff; box-shadow: 0 9px 0 #bfe8e1; }
.device-body i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #d7e6ed; }
.device-body i:nth-child(2) { background: var(--mint); }
.device-screen { position: absolute; top: 19px; z-index: 1; display: grid; width: 87px; height: 50px; padding: 5px 10px; color: #d8e7ea; border: 3px solid var(--navy-800); border-radius: 6px; background: #4f7e88; box-shadow: 0 4px 0 var(--navy-700); }
.device-screen span { font-size: 6px; letter-spacing: .09em; }
.device-screen strong { margin-top: -2px; color: #fff; font-size: 17px; line-height: .9; }
.device-hero-copy { min-width: 0; }
.device-hero-copy h2 { margin: 7px 0 7px; font-size: 24px; }
.device-hero-copy p { max-width: 600px; margin: 15px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.device-meta { display: flex; gap: 21px; color: var(--muted); font-size: 9px; }
.device-meta strong { color: var(--navy-800); }
.device-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.device-detail { min-height: 250px; padding: 22px; }
.device-detail .icon { color: var(--purple); }
dl { margin: 21px 0 0; }
dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted-2); font-size: 9px; }
dd { max-width: 230px; margin: 0; color: var(--navy-800); font-size: 10px; font-weight: 700; text-align: right; }
.clean-list { display: grid; gap: 12px; margin: 21px 0; padding-left: 17px; color: var(--muted); font-size: 10px; }
.device-history { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }
.device-history strong { color: var(--navy-800); font-size: 10px; }
.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 17px; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.steps-strip > div { display: grid; gap: 4px; padding: 0 20px; border-left: 1px solid var(--line); }
.steps-strip > div:first-child { padding-left: 0; border-left: 0; }
.steps-strip span { color: var(--mint-deep); font-size: 9px; font-weight: 800; }
.steps-strip strong { color: var(--navy-800); font-size: 10px; }
.steps-strip small { color: var(--muted); font-size: 9px; }

.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.lesson-card { min-height: 256px; display: flex; flex-direction: column; padding: 20px; }
.lesson-number { color: #c9d3da; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.lesson-icon { display: grid; width: 39px; height: 39px; margin: 27px 0 19px; place-items: center; color: var(--mint-deep); border-radius: 11px; background: var(--mint-soft); }
.lesson-card:nth-child(2) .lesson-icon { color: var(--blue); background: var(--blue-soft); }
.lesson-card:nth-child(3) .lesson-icon { color: var(--purple); background: var(--purple-soft); }
.lesson-card:nth-child(4) .lesson-icon { color: #a57c16; background: var(--yellow-soft); }
.lesson-card h2 { font-size: 14px; }
.lesson-card p { min-height: 72px; margin: 10px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.lesson-card .text-button { margin-top: auto; }
.learn-boundary { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px; background: linear-gradient(100deg, #fffdf4, #fff); }
.boundary-mark { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; color: #84691b; border-radius: 10px; background: var(--yellow-soft); font-weight: 850; }
.learn-boundary div:nth-child(2) { flex: 1; }
.learn-boundary h2 { margin: 4px 0 4px; font-size: 14px; }
.learn-boundary p { margin: 0; color: var(--muted); font-size: 10px; }

.privacy-grid, .privacy-lower-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; }
.consent-card, .share-centre, .audit-card { padding: 22px; }
.consent-card > .section-heading, .share-centre > .section-heading { margin-bottom: 15px; }
.consent-card > .section-heading .icon, .share-centre > .section-heading .icon { color: var(--mint-deep); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.consent-row > div { display: grid; gap: 3px; }
.consent-row strong { color: var(--navy-800); font-size: 11px; }
.consent-row span { color: var(--muted); font-size: 9px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--muted-2); border: 0; background: transparent; font-size: 9px; font-weight: 760; }
.toggle > span { position: relative; width: 31px; height: 18px; border-radius: 99px; background: #dce5ea; transition: background .15s ease; }
.toggle > span::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); content: ''; transition: transform .15s ease; }
.toggle.on { color: var(--mint-deep); }
.toggle.on > span { background: var(--mint); }
.toggle.on > span::after { transform: translateX(13px); }
.consent-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 17px; padding: 10px; color: var(--muted); border-radius: 8px; background: #f8fbfc; font-size: 9px; line-height: 1.45; }
.consent-note .icon { flex: 0 0 15px; color: var(--mint-deep); }
.share-centre > .section-heading h2 { font-size: 28px; }
.share-centre .full-button { margin-top: 12px; }
.privacy-lower-grid { margin-top: 18px; }
.audit-list { margin-top: 17px; }
.audit-row { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.audit-row > span { color: var(--muted-2); font-size: 9px; }
.audit-row > div { display: grid; gap: 3px; }
.audit-row strong { color: var(--navy-800); font-size: 10px; }
.audit-row small { color: var(--muted); font-size: 9px; }
.delete-card { display: flex; align-items: flex-start; gap: 13px; min-height: 135px; padding: 21px; }
.delete-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--rose); border-radius: 10px; background: var(--rose-soft); }
.delete-card > div:nth-child(2) { flex: 1; }
.delete-card h2 { margin: 5px 0 5px; font-size: 14px; }
.delete-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.delete-card .button { align-self: center; }

.ops-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding: 14px 16px; border: 1px solid #eadcae; border-radius: 12px; background: #fffaf0; }
.ops-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #96731b; border-radius: 9px; background: var(--yellow-soft); }
.ops-banner > div:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.ops-banner strong { color: #7b631e; font-size: 11px; }
.ops-banner span { color: var(--muted); font-size: 9px; }
.ops-table-card { padding: 22px; }
.ops-table { margin-top: 18px; overflow-x: auto; }
.ops-table-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.1fr; align-items: center; gap: 13px; min-width: 680px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.ops-table-row strong { color: var(--navy-800); font-size: 10px; }
.ops-table-head { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.status-text { display: inline-flex; align-items: center; gap: 5px; font-weight: 740; }
.status-text.ready { color: var(--mint-deep); }
.status-text.blocked { color: #9a761e; }
.ops-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.ops-lower-grid .card-surface { min-height: 175px; padding: 22px; }
.ops-lower-grid h2 { margin-top: 7px; }
.ops-lower-grid p { margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.rule-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; padding-top: 12px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 9px; }

.app-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 40px 27px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: 9px; }
.app-footer > div:first-child { display: grid; gap: 3px; }
.app-footer strong { color: var(--navy-800); font-size: 10px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--mint-deep); }
.mobile-nav { display: none; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: #fff; border-radius: 10px; background: var(--navy-900); box-shadow: var(--shadow-md); font-size: 10px; font-weight: 700; animation: toast-in .2s ease both; }
.toast .icon { color: #78e2cf; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1160px) {
  .sidebar { width: 226px; flex-basis: 226px; }
  .main-column { width: calc(100% - 226px); }
  .topbar, .demo-banner, .offline-banner { padding-left: 28px; padding-right: 28px; }
  .main-content { padding-right: 28px; padding-left: 28px; }
  .app-footer { padding-right: 28px; padding-left: 28px; }
  .hero-grid, .measurement-layout, .review-layout, .action-result-layout { grid-template-columns: 1fr; }
  .side-note, .review-aside { display: flex; align-items: center; gap: 12px; }
  .side-note strong, .side-note p, .review-aside strong, .review-aside p { margin: 0; }
  .side-note .text-button { margin: 0 0 0 auto; }
  .countdown-note { justify-content: flex-start; text-align: left; }
  .countdown-ring { width: 66px; height: 66px; flex: 0 0 66px; margin: 0; border-width: 5px; }
  .countdown-ring strong { font-size: 13px; }
  .countdown-ring span { display: none; }
  .trend-lower-grid, .report-layout, .privacy-grid, .privacy-lower-grid { grid-template-columns: 1fr; }
  .report-controls { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .report-controls .shares-card { grid-column: 1 / -1; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: 67px; }
  .sidebar { display: none; }
  .main-column { width: 100%; }
  .topbar { height: 61px; padding: 0 17px; }
  .breadcrumb-home, .breadcrumb-slash { display: none; }
  .topbar-actions { gap: 9px; }
  .connection-pill { padding: 5px 7px; font-size: 9px; }
  .language-toggle { font-size: 10px; }
  .avatar-button .icon { display: none; }
  .demo-banner, .offline-banner { align-items: flex-start; padding: 8px 17px; font-size: 10px; }
  .demo-banner .demo-pill { margin-top: 1px; }
  .main-content { padding: 26px 17px 38px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .page-intro-actions { justify-content: flex-start; width: 100%; }
  h1 { font-size: 29px; }
  .page-intro p { font-size: 12px; }
  .hero-card, .action-card { padding: 20px; }
  .hero-reading { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 24px; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .hero-meta span + span::before { display: none; }
  .metric-grid, .trend-summary-grid, .device-detail-grid, .ops-lower-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: auto; }
  .metric-sparkline { margin-top: 13px; }
  .lower-grid { grid-template-columns: 1fr; }
  .session-row { grid-template-columns: 70px 1fr 87px; gap: 8px; }
  .session-quality { justify-content: flex-end; text-align: right; }
  .session-source { display: none; }
  .next-actions { align-items: flex-start; flex-direction: column; }
  .trust-strip { align-items: flex-start; flex-wrap: wrap; }
  .trust-strip .text-button { margin-left: 44px; }
  .stepper { width: 100%; justify-content: space-between; }
  .stepper-item { flex-direction: column; gap: 4px; font-size: 8px; }
  .stepper-item i { width: 16px; margin: -15px 0 0 39px; transform: translateX(50%); }
  .stepper-item span:last-of-type { max-width: 58px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .setup-hero { align-items: flex-start; flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 17px 0; }
  .detail-cell { padding: 0 10px; }
  .detail-cell:nth-child(odd) { padding-left: 0; border-left: 0; }
  .detail-cell:nth-child(3) { padding-left: 0; }
  .choice-row, .option-grid { grid-template-columns: 1fr; }
  .reading-entry-grid { grid-template-columns: 1fr 21px 1fr; gap: 8px; }
  .pulse-field { grid-column: 1 / -1; margin-top: 7px; }
  .slash-separator { padding-bottom: 28px; }
  .saved-reading { grid-template-columns: 27px 1fr 52px; gap: 8px; }
  .saved-reading > span:nth-of-type(2), .saved-reading em { display: none; }
  .review-summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .review-line { width: 100%; height: 1px; }
  .review-meta { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .result-card, .result-data, .wide-card { padding: 20px; }
  .result-copy { font-size: 14px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .insight-banner { align-items: flex-start; flex-wrap: wrap; }
  .insight-banner .badge { margin-left: 40px; }
  .full-chart-card, .table-card { padding: 18px; }
  .chart-legend { flex-wrap: wrap; }
  .chart-legend em { width: 100%; margin-left: 0; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; }
  .filter-tabs { width: 100%; }
  .filter-tabs button { flex: 1; }
  .neutral-sort { margin-left: 0; }
  .official-fallback-card { align-items: flex-start; flex-wrap: wrap; }
  .official-fallback-card .button { margin-left: 50px; }
  .directory-grid, .lesson-grid { grid-template-columns: 1fr; }
  .report-controls { grid-template-columns: 1fr; }
  .report-controls .shares-card { grid-column: auto; }
  .report-preview { padding: 20px; }
  .report-person { align-items: flex-start; flex-wrap: wrap; }
  .report-range { width: 100%; margin-left: 50px; text-align: left; }
  .report-highlight { gap: 11px; grid-template-columns: 1fr; }
  .report-highlight > div, .report-highlight > div:first-child { padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .report-highlight > div:first-child { padding-top: 0; border-top: 0; }
  .device-hero { align-items: flex-start; flex-direction: column; gap: 22px; padding: 20px; }
  .device-visual { width: 100%; flex-basis: 128px; }
  .steps-strip { grid-template-columns: 1fr; gap: 15px; }
  .steps-strip > div, .steps-strip > div:first-child { padding: 0; border-left: 0; }
  .consent-row { align-items: flex-start; }
  .delete-card { align-items: flex-start; flex-wrap: wrap; }
  .delete-card .button { margin-left: 47px; }
  .app-footer { align-items: flex-start; flex-direction: column; padding: 18px 17px 24px; }
  .footer-links { justify-content: flex-start; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: rgba(255,255,255,.96); box-shadow: 0 -8px 25px rgba(20,38,59,.08); }
  .mobile-nav-item { display: grid; place-items: center; gap: 3px; padding: 3px; color: var(--muted-2); border: 0; background: transparent; font-size: 8px; font-weight: 740; }
  .mobile-nav-item.active { color: var(--mint-deep); }
  .toast-region { right: 13px; bottom: 80px; left: 13px; }
  .toast { justify-content: center; }
}

@media print {
  body { color: #000; background: #fff; }
  .sidebar, .topbar, .demo-banner, .offline-banner, .app-footer, .mobile-nav, .toast-region, .report-controls, .page-intro-actions, .report-status { display: none !important; }
  .main-column { width: 100%; }
  .main-content { max-width: none; padding: 0; }
  .reports-view { display: block; }
  .report-layout { display: block; }
  .report-preview { border: 0; box-shadow: none; }
  .card-surface { box-shadow: none; }
  .report-preview table { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Release hardening states */
.reading-limit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfc;
  font-size: 10px;
  line-height: 1.5;
}
.reading-limit-note .icon { flex: 0 0 16px; color: var(--mint-deep); }
.text-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
