/* Report presentation only. Existing IDs and app.js own all interactions. */
.dashboard {
  --text: #172f36;
  --muted: #52676d;
  --border: #dce6e3;
  --surface-2: #f3f7f5;
  --accent: #176f65;
  --accent-2: #125c55;
  --success: #21816b;
  --warning: #986615;
  --danger: #ba414b;
  gap: 28px;
  padding-top: 22px;
  font-size: 16px;
  line-height: 1.6;
}
.dashboard[hidden] { display: none !important; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.dashboard-eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .1em; margin-bottom: 10px; }
.dashboard-heading h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
.dashboard-heading h2 > span { color: #288e7b; }
.dashboard-heading__intro { color: var(--muted); margin-top: 10px; font-size: 16px; }
.dashboard-heading__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dashboard .btn { font-size: 16px; line-height: 1.5; border-radius: 10px; padding: 12px 20px; min-height: 48px; transition: background .18s, box-shadow .18s, transform .18s; }
.dashboard .btn--primary { background: #176f65; color: #fff; box-shadow: 0 3px 7px #133c3412; }
.dashboard .btn--primary:hover:not(:disabled) { background: #125b53; box-shadow: 0 4px 12px #133c3426; }
.dashboard .btn--secondary { background: #fff; color: var(--text); border-color: #c4d2ce; }
.dashboard .btn--secondary:hover { background: #edf5f2; }
.dashboard :is(button, a, input):focus-visible { outline: 3px solid #176f65; outline-offset: 4px; }
.dashboard #new-analysis-btn { margin: 0; display: flex; gap: 14px; align-items: center; }
.report-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.report-status::before { content: ''; width: 7px; height: 7px; background: #267c67; border-radius: 50%; }
.report-status__full { display: none; }
.dashboard:has(#paywall[hidden]) .report-status__full { display: inline; }
.dashboard:has(#paywall[hidden]) .report-status__preview { display: none; }
.sample-note {
  padding: 16px 20px;
  border: 1px solid #d0e2da;
  border-radius: 14px;
  background: #edf5f2;
  color: #334f53;
  font-size: 15px;
  line-height: 1.5;
}
.sample-note[hidden] { display: none !important; }
.sample-note--warn {
  background: #fff7ed;
  border-color: #e8c9b7;
  color: #843a18;
}
.dashboard .unlock-banner { position: static; padding: 18px 22px; border: 1px solid #d0e2da; border-radius: 14px; background: #edf5f2; box-shadow: none; }
.dashboard .credits-meter {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid #cbded4;
  border-radius: 14px;
  background: #fff;
}
.dashboard .credits-meter[hidden] { display: none !important; }
.credits-meter__copy { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.credits-meter__copy strong { font-size: 16px; }
.credits-meter__copy span { color: var(--muted); font-size: 14px; }
.dashboard .credits-bar { height: 10px; background: #e6f0eb; border-radius: 999px; overflow: hidden; }
.dashboard .credits-bar__used { display: block; height: 100%; background: #176f65; border-radius: 999px; }
.dashboard .unlock-banner__copy strong { font-size: 16px; font-weight: 600; }
.dashboard .unlock-banner__copy span { font-size: 14px; }
.dashboard .hero-scores { gap: 18px; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard .hero-card { text-align: left; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: 0 4px 16px #203b4104; }
.dashboard .hero-card--health { background: #173e40; border-color: #173e40; color: #fff; }
.hero-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard .hero-card__label { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; margin: 0; }
.hero-card__icon { width: 26px; height: 26px; color: #52756f; flex-shrink: 0; }
.dashboard .hero-card--health .hero-card__label,
.dashboard .hero-card--health .hero-card__description { color: #d3e5df; }
.dashboard .hero-card--health .hero-card__icon { color: #9ccebb; }
.hero-card__reading { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; min-height: 58px; }
.dashboard .hero-card__value { font-family: var(--font); font-size: 52px; font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.hero-card__unit { color: var(--muted); font-size: 16px; }
.hero-card--health .hero-card__unit { color: #d3e5df; }
.dashboard .hero-card__value--text { font-size: 36px; letter-spacing: -.035em; }
.hero-card__description { color: var(--muted); font-size: 14px; line-height: 1.6; }
/* Give metrics the full canvas rather than squeezing them beside checkout. */
.dashboard-body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.dashboard .modules { gap: 24px; width: 100%; min-width: 0; }
.dashboard .module { border-radius: 16px; padding: 28px; box-shadow: 0 3px 14px #203b4103; }
.module-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.module-heading__number { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; background: #edf5f1; border: 1px solid #dce8e1; border-radius: 11px; color: #286653; font-size: 14px; font-weight: 600; }
.dashboard .module h3 { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -.025em; text-transform: none; margin: 0 0 5px; }
.module-heading p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.dashboard .score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard #communication-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard .score-item { text-align: left; padding: 20px; border: 1px solid #e0e8e4; background: #f6f9f7; border-radius: 12px; gap: 8px; }
.dashboard .score-item__label { font-size: 15px; color: #3f585f; padding-right: 0; min-height: 38px; margin: 0; line-height: 1.4; }
.dashboard .score-item__value { font-size: 32px; font-family: var(--font); letter-spacing: -.035em; font-weight: 600; }
.dashboard .score-item__sub { font-size: 14px; line-height: 1.5; margin: 0; }
.dashboard .score-item__bar { margin-top: auto; height: 5px; background: #dde7e1; border-radius: 4px; }
.dashboard .score-item__bar-fill { border-radius: 4px; }
.dashboard .score-item--processing { background: #fffaf1; }
.dashboard .score-item--processing .score-item__sub { color: #a86b16; }
.dashboard .score-item--locked { opacity: 1; filter: none; background: #fafcfb; }
.dashboard .score-item--locked .score-item__label { padding-right: 15px; }
.dashboard .score-item--locked .score-item__value { color: #647c75; letter-spacing: .12em; }
.dashboard .score-item--locked .score-item__sub { color: var(--muted); }
.dashboard .score-item--locked::after { content: ''; top: 22px; right: 17px; width: 10px; height: 8px; border: 1.5px solid #627c73; border-radius: 2px; }
.dashboard .score-item--locked::before { content: ''; position: absolute; top: 17px; right: 19px; width: 6px; height: 6px; border: 1.5px solid #627c73; border-radius: 5px 5px 0 0; }
.dashboard .score-item__bar-fill--locked { background: #dbe5df !important; }
.dashboard .transcript { font-size: 17px; line-height: 1.85; background: #f6f9f7; border: 1px solid #e0e8e4; padding: 24px; }
.dashboard .meta-row { gap: 10px; font-family: var(--font); font-size: 14px; margin-top: 18px; }
.dashboard .meta-row span { background: #edf3ef; border-radius: 6px; padding: 6px 10px; }
/* Checkout has its own roomy section; its controls keep their original IDs. */
.dashboard .paywall { grid-column: auto; margin: 0; position: static; width: 100%; min-width: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.dashboard .paywall__card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 36px; background: #fff; border: 1px solid #cbded4; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px #203b4106; }
.paywall__details, .paywall__checkout { min-width: 0; }
.dashboard .paywall__card h3 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 16px; }
.dashboard .paywall__details > p:not(.dashboard-eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.dashboard #unlock-price { color: var(--text); font-size: 20px; }
.dashboard .paywall__list { gap: 8px; padding: 20px 0 0; border-top: 1px solid var(--border); margin: 0; }
.dashboard .paywall__list li { color: #3f585f; font-size: 14px; line-height: 1.5; padding: 6px 10px; background: #edf5f0; border: 0; border-radius: 6px; }
.dashboard .paywall__checkout { padding-left: 32px; border-left: 1px solid var(--border); }
.dashboard .paywall__form { grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
.dashboard .paywall__form label { display: block; font-size: 15px; color: #3f585f; }
.dashboard .paywall__form input { display: block; width: 100%; margin-top: 8px; background: #fff; border-color: #b4c7be; font-size: 16px; min-height: 48px; }
.dashboard .paywall__form .muted, .dashboard #unlock-price-hint { font-size: 14px; color: var(--muted); }
.dashboard .req { color: #aa2634; }
.dashboard .paywall__currency-label { font-size: 15px; color: #3f585f; }
.dashboard .paywall__currency-opt span { font-size: 16px; padding: 10px 14px; }
.dashboard .paywall__currency-opt span small { font-size: 14px; }
.dashboard .paywall__currency-opt input:focus-visible + span { outline: 3px solid #176f65; outline-offset: 3px; }
.dashboard .paywall__currency-opt input:checked + span { border-color: #176f65; background: #edf5f2; }
.dashboard .paywall__currency-hint, .dashboard .paywall__note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.dashboard .paywall__note { margin-top: 14px; }
.dashboard .report-actions { background: #edf5f2; border: 1px solid #d0e2da; border-radius: 14px; margin: 0; padding: 20px 24px; animation: none; }
.dashboard .report-actions__copy strong { font-size: 16px; }
.dashboard .report-actions__copy span { font-size: 14px; }
.dashboard .btn--pdf { background: #176f65; color: #fff; box-shadow: none; }
.dashboard-footnote { color: var(--muted); font-size: 14px; text-align: center; margin: 0 12px 12px; line-height: 1.7; }
body:has(.dashboard:not([hidden])) { background: #f3f6f5; }
.app:has(.dashboard:not([hidden])) > .notice-banner { background: #edf1ed; border-color: #dce4dc; font-size: 14px; color: #4d6259; }
.app:has(.dashboard:not([hidden])) > .notice-banner > summary { padding: 10px 16px; }
@media (max-width: 1000px) {
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .dashboard-heading__actions { width: 100%; justify-content: space-between; }
  .dashboard .score-grid, .dashboard #communication-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard .hero-card { padding: 22px; }
}
@media (max-width: 760px) {
  .dashboard { padding-top: 10px; gap: 24px; }
  .dashboard .hero-scores { gap: 12px; }
  .dashboard .hero-card { padding: 20px; }
  .dashboard .hero-card__value { font-size: 44px; }
  .dashboard .hero-card__value--text { font-size: 30px; }
  .dashboard .score-grid, .dashboard #communication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard .module { padding: 22px; }
  .dashboard .paywall__card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px; }
  .dashboard .paywall__checkout { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
}
@media (max-width: 620px) {
  .dashboard .hero-scores { grid-template-columns: 1fr; }
  .dashboard .hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 22px; }
  .hero-card__top { grid-column: 1; }
  .hero-card__icon { display: none; }
  .hero-card__reading { grid-column: 2; grid-row: 1 / 3; margin: 0; min-height: 0; }
  .hero-card__description { grid-column: 1; margin-top: 6px; }
  .dashboard .hero-card--risk { grid-column: auto; }
  .dashboard .hero-card__label { font-size: 16px; }
  .dashboard .hero-card__value { font-size: 40px; }
  .dashboard .hero-card__value--text { font-size: 28px; }
  .hero-card__unit { font-size: 14px; }
  .dashboard .unlock-banner { align-items: stretch; }
  .dashboard .unlock-banner .btn { width: 100%; }
  .dashboard .module { padding: 20px; }
  .dashboard .score-item { padding: 16px; }
  .dashboard .module h3 { font-size: 21px; }
  .module-heading__number { width: 36px; height: 36px; }
  .dashboard .report-actions { align-items: stretch; flex-direction: column; padding: 20px; }
  .dashboard .btn--pdf { justify-content: center; }
  .app:has(.dashboard:not([hidden])) > .notice-banner { font-size: 14px; }
  .app:has(.dashboard:not([hidden])) > .notice-banner > summary { padding: 8px 14px; }
}
@media (max-width: 380px) {
  .dashboard .score-grid, .dashboard #communication-grid { grid-template-columns: 1fr; }
  .dashboard .score-item__label { min-height: 0; }
  .dashboard .hero-card { padding: 18px; }
  .hero-card__reading { flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 100px; }
  .dashboard-heading__actions { gap: 10px; }
  .dashboard #new-analysis-btn { gap: 8px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard, .dashboard * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.credit-confirm { position:fixed; inset:0; margin:auto; height:fit-content; width:min(440px, calc(100vw - 32px)); max-height:calc(100vh - 32px); border:1px solid #dce6e3; border-radius:18px; padding:28px 26px; background:#fff; color:#172f36; box-shadow:0 24px 60px #173e4030; }
.credit-confirm::backdrop { background:#173e4070; }
.credit-confirm .dashboard-eyebrow { color:#176f65; font-size:14px; font-weight:700; letter-spacing:.09em; margin:0 0 10px; }
.credit-confirm h3 { font-size:26px; font-weight:600; letter-spacing:-.035em; line-height:1.2; margin:0 0 12px; }
.credit-confirm p { color:#52676d; font-size:16px; line-height:1.6; margin:0; }
.credit-confirm__actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.credit-confirm .btn { min-height:48px; padding:12px 18px; border-radius:10px; font-size:16px; }
.credit-confirm .btn--primary { background:#176f65; color:#fff; }
.credit-confirm .btn--secondary { background:#fff; color:#172f36; border:1px solid #acbfb6; }
@media (max-width: 620px) {
  .credit-confirm { padding:24px 20px; }
  .credit-confirm__actions { flex-direction:column-reverse; }
  .credit-confirm .btn { width:100%; }
}
