:root {
  --paper: #f5f1e8;
  --paper-2: #ece6da;
  --white: #fffef9;
  --ink: #17211e;
  --muted: #65706b;
  --line: rgba(23, 33, 30, .14);
  --green: #174f45;
  --green-2: #2d7466;
  --green-soft: #dfece6;
  --rust: #a9492f;
  --rust-soft: #f4e4de;
  --amber: #9a6a24;
  --amber-soft: #f4ead7;
  --blue: #315f84;
  --blue-soft: #e0eaf1;
  --shadow: 0 18px 50px rgba(31, 45, 39, .08);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(45, 116, 102, .06), transparent 27rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-user-select: text;
  user-select: text;
}
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(49, 95, 132, .42);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  inset-inline-start: 1rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--green);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-icon {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  width: min(1520px, 100%);
  min-height: calc(100vh - 76px);
  margin-inline: auto;
}
.dashboard-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 1.5rem .85rem;
  border-inline-end: 1px solid var(--line);
}
.primary-nav { display: grid; gap: .4rem; }
.primary-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: .7rem .85rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--green);
  border-color: rgba(23, 79, 69, .12);
  background: var(--green-soft);
}
.primary-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dashboard-content { min-width: 0; -webkit-user-select: text; user-select: text; }
[data-dashboard-page][hidden] { display: none !important; }

/* The packaged Mac app supplies a real AppKit header and sidebar. Keep this
   document focused on the selected, readable report instead of rendering a
   second browser-shaped navigation system inside the native shell. */
html.native-dashboard body,
body.native-dashboard {
  min-height: 100%;
  background: var(--paper);
}
html.native-dashboard .topbar,
html.native-dashboard .dashboard-sidebar,
body.native-dashboard .topbar,
body.native-dashboard .dashboard-sidebar { display: none; }
html.native-dashboard .dashboard-shell,
body.native-dashboard .dashboard-shell {
  display: block;
  width: 100%;
  min-height: 0;
}
html.native-dashboard main,
html.native-dashboard footer,
body.native-dashboard main,
body.native-dashboard footer {
  width: min(1180px, calc(100% - 52px));
}
html.native-dashboard .page-heading,
body.native-dashboard .page-heading {
  gap: 32px;
  padding-top: 30px;
}
html.native-dashboard h1,
html.native-dashboard h2,
body.native-dashboard h1,
body.native-dashboard h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
html.native-dashboard h1,
body.native-dashboard h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
html.native-dashboard h2,
body.native-dashboard h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
/* The persistent AppKit control owns refresh in the installed app. Keep the
   report's setup card descriptive instead of offering a competing sync path. */
html.native-dashboard #setup-refresh,
html.native-dashboard #refresh-button,
html.native-dashboard #cancel-refresh,
body.native-dashboard #setup-refresh,
body.native-dashboard #refresh-button,
body.native-dashboard #cancel-refresh { display: none; }
/* Setup guidance belongs to the hosted fallback. If the report is already
   inside the native app, surfacing instructions to install/open that app is
   circular and misleading. */
html.native-dashboard #setup-card,
body.native-dashboard #setup-card { display: none !important; }
.top-actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: .55rem; }
.language-picker { display: inline-flex; align-items: center; }
.language-picker select {
  min-height: 37px;
  max-width: 10.5rem;
  padding: .38rem 1.7rem .38rem .58rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: rgba(255, 254, 249, .7);
  font-size: .7rem;
  font-weight: 700;
}
.state-pill, .evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  padding: .38rem .62rem;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(23, 79, 69, .18);
  border-radius: 99px;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-stale { color: var(--amber); background: var(--amber-soft); }
.state-setup { color: var(--amber); background: var(--amber-soft); }
.state-live, .state-local { color: var(--green); background: var(--green-soft); }
.state-updating { color: var(--amber); background: var(--amber-soft); }
.state-insufficient, .state-offline { color: var(--rust); background: var(--rust-soft); }
.state-demo { color: var(--blue); background: var(--blue-soft); }
.state-connecting { color: var(--muted); background: var(--paper-2); }

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: white; background: var(--green); }
.button-secondary, .button-quiet { color: var(--ink); border-color: var(--line); background: rgba(255, 254, 249, .7); }
.button.compact { min-height: 37px; padding: .5rem .7rem; font-size: .7rem; }
.top-actions .button { white-space: nowrap; }
.metric-name { display: inline-flex; align-items: center; gap: .35rem; }
.info-button {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  color: var(--green);
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.info-button:hover, .info-button:focus-visible, .info-button[aria-expanded="true"] {
  color: var(--blue);
}
.info-button:focus-visible {
  outline: 3px solid rgba(49, 95, 132, .35);
  outline-offset: 3px;
}
.info-popover {
  position: fixed;
  z-index: 40;
  width: min(19rem, calc(100vw - 2rem));
  padding: .7rem .8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(31, 45, 39, .18);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.55;
  text-align: start;
  text-transform: none;
}

main, footer { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  padding: 42px 0 30px;
}
.eyebrow, .panel-kicker {
  margin: 0;
  color: var(--green-2);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin: 10px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.1vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .95;
}
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.freshness-card {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 1rem 1.15rem;
  border-inline-start: 3px solid var(--green);
  background: rgba(255, 254, 249, .6);
}
.freshness-card span, .freshness-card small { color: var(--muted); font-size: .68rem; }
.freshness-card strong { margin: .15rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 28px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(154, 106, 36, .25);
  border-radius: .45rem;
  background: var(--amber-soft);
}
.notice strong { font-size: .86rem; }
.notice p { margin: .1rem 0 0; color: #735927; font-size: .78rem; }
.notice-demo { border-color: rgba(49, 95, 132, .25); background: var(--blue-soft); }
.notice-demo p { color: #31536d; }
.notice-error { border-color: rgba(169, 73, 47, .25); background: var(--rust-soft); }
.notice-info { border-color: rgba(49, 95, 132, .25); background: var(--blue-soft); }
.notice-info p { color: #31536d; }
.notice-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

.companion-setup {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.4fr);
  gap: 32px 48px;
  margin: 0 0 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(255, 254, 249, .82);
  box-shadow: var(--shadow);
}
.companion-setup h2 {
  margin: 7px 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.companion-setup-copy p:last-child,
.companion-setup-actions p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}
.companion-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: setup-step;
  list-style: none;
}
.companion-steps li {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 46px;
  padding-inline-start: 54px;
  counter-increment: setup-step;
}
.companion-steps li::before {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  content: counter(setup-step);
  font-weight: 850;
}
.companion-steps strong { font-size: .85rem; }
.companion-steps span { color: var(--muted); font-size: .76rem; }
.companion-steps .button {
  justify-self: start;
  margin-top: 4px;
}
.companion-steps .button-primary { color: white; }
.installer-details {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}
.installer-details span {
  overflow-wrap: anywhere;
}
.installer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 4px;
  font-size: .72rem;
}
.installer-links a {
  color: var(--green);
  font-weight: 750;
}
.installer-unavailable {
  display: block;
  padding: .65rem .8rem;
  border-inline-start: 3px solid var(--amber);
  color: #6f5011 !important;
  background: var(--amber-soft);
}
.companion-setup-actions {
  grid-column: 2;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.safe-close-guidance {
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--blue);
}

.setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr) minmax(220px, .65fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(255, 254, 249, .72);
}
.setup-card.needs-attention { border-color: rgba(154, 106, 36, .32); }
.setup-copy h2 {
  margin: 5px 0 9px;
  font-size: 1.65rem;
  letter-spacing: -.025em;
}
.setup-copy > p:last-child,
.setup-actions p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}
.setup-checks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: .76rem;
}
.setup-checks li::before {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  font-size: .65rem;
  font-weight: 850;
  line-height: 14px;
  text-align: center;
}
.setup-checks li.missing::before {
  border-color: rgba(154, 106, 36, .35);
  color: var(--amber);
  content: "!";
}
.setup-actions { display: grid; gap: 10px; justify-items: start; }

.journey-disclosure {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(255, 254, 249, .55);
}
.journey-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.journey-disclosure > summary::-webkit-details-marker { display: none; }
.journey-disclosure > summary::after {
  color: var(--green);
  content: "Show";
  font-size: .72rem;
  font-weight: 800;
}
.journey-disclosure[open] > summary::after { content: "Hide"; }
.journey-disclosure > summary strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
/*
 * In-panel variant of the same disclosure. It holds the service plumbing a
 * result panel used to print by default: contract versions, publication
 * policy, readiness internals and lifecycle stages. The result and its
 * plain-language caveat stay above it, in the open.
 */
.service-detail-disclosure {
  margin-top: 16px;
  border-radius: .45rem;
  background: rgba(255, 254, 249, .4);
}
.service-detail-disclosure > summary { padding: 11px 15px; }
.service-detail-disclosure > summary::after { font-size: .66rem; }
.service-detail-disclosure > summary strong {
  margin-top: 0;
  color: var(--green);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 800;
}
.service-detail-disclosure > .service-detail-body {
  display: grid;
  gap: 12px;
  padding: 0 15px 15px;
}

.contribution-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin: 8px 0 56px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(23, 79, 69, .28);
  border-top: 5px solid var(--green);
  border-radius: .65rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(223, 236, 230, .9), transparent 52%),
    rgba(255, 254, 249, .86);
  box-shadow: 0 18px 46px rgba(21, 40, 35, .07);
}
.contribution-cta h2 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
.contribution-cta-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 18px 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.contribution-categories {
  max-width: 58ch;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.contribution-categories summary {
  color: var(--green);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
}
.contribution-categories div {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.contribution-categories p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}
.contribution-cta-action {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: rgba(255, 254, 249, .9);
}
.identity-signin {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.identity-signin .control-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
/*
  Vendor sign-in buttons. Google and Apple both publish binding guidance for
  their mark, label, minimum height, and permitted button colours, so the four
  literal brand values here (Google's white face, its #747775 rule and #1f1f1f
  label, and Apple's black pill) are deliberate: no palette custom property may
  stand in for them. Everything else — focus ring, spacing, disabled state —
  comes from the shared tokens. Roboto is not shipped because the release build
  loads no external font, so the site sans stack renders both labels at the
  14px size the guidance specifies.
*/
.provider-mark-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.provider-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.provider-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
}
.provider-button:hover:not(:disabled) { transform: translateY(-1px); }
.provider-button:disabled { opacity: .45; cursor: not-allowed; }
.provider-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.provider-button-google { color: #1f1f1f; background: #fff; border-color: #747775; }
.provider-button-apple { color: #fff; background: #000; border-color: #000; }
.provider-mark { flex: none; width: 18px; height: 18px; }
.provider-button-apple .provider-mark { width: 17px; height: 17px; margin-top: -2px; }
.identity-signin-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.identity-account {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--white);
}
.identity-account-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.identity-account-copy { flex: 1 1 14rem; min-width: 0; }
.identity-account-copy strong { display: block; font-size: .78rem; }
.identity-account-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
}
.identity-account .button { flex: none; margin-inline-start: auto; }
.contribution-primary-consent {
  margin-top: 16px;
  border-color: rgba(23, 79, 69, .3);
  background: var(--green-soft);
}
.contribution-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
body.first-run [data-requires-evidence],
body.needs-local-setup [data-requires-evidence],
body.first-run .journey-progressive,
body.needs-local-setup .journey-progressive {
  display: none !important;
}

.dashboard-section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading.split { grid-template-columns: 1fr auto; }
h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.2vw, 3.05rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.section-heading > p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(255, 254, 249, .72);
  box-shadow: 0 12px 34px rgba(31, 45, 39, .045);
}
.panel-heading, .chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.panel h3, .chart-heading h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.annotation { color: var(--muted); font-size: .76rem; }
.info-button {
  flex: 0 0 1.15rem;
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(255, 254, 249, .76);
}
.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  content: "";
}
.metric-card.stale::before { background: var(--amber); }
.metric-card.insufficient::before { background: var(--rust); }
.metric-card.quota-card-spark {
  border-color: rgba(49, 95, 132, .24);
  background: linear-gradient(145deg, rgba(224, 234, 241, .72), rgba(255, 254, 249, .9));
}
.metric-card.quota-card-spark::before { background: var(--blue); }
.metric-card-header { display: flex; justify-content: space-between; gap: 1rem; }
.metric-card .metric-name { color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.metric-card .metric-value { display: block; margin: 22px 0 8px; font-family: var(--serif); font-size: 3.2rem; font-weight: 400; line-height: .9; }
.metric-card .metric-value small { font-family: var(--sans); font-size: .9rem; }
.metric-card p { margin-bottom: 0; color: var(--muted); font-size: .75rem; }
.mini-progress { height: 6px; margin: 22px 0 11px; overflow: hidden; border-radius: 9px; background: var(--paper-2); }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.metric-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .67rem; }
.skeleton-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: linear-gradient(100deg, rgba(255,255,255,.25) 35%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.25) 65%);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position-x: -150%; } }

.cost-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.cost-total span { color: var(--muted); font-size: .75rem; }
.cost-total strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; }
.cost-total small { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.coverage-line, .coverage-warning { display: block; }
.coverage-warning { margin-top: 3px; color: var(--amber); font-weight: 700; }
.component-list { display: grid; gap: 10px; }
.component-row { display: grid; grid-template-columns: 145px 1fr auto; gap: 12px; align-items: center; font-size: .73rem; }
.component-row > span { color: var(--muted); }
.component-row > strong { min-width: 66px; text-align: end; }
.component-track { height: 7px; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.component-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.component-row:nth-child(2) i { background: var(--green-2); }
.component-row:nth-child(3) i { background: var(--rust); }
.component-row:nth-child(4) i { background: var(--amber); }

.comparison-visual { display: grid; gap: 20px; margin: 35px 0 28px; }
.comparison-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 12px; align-items: center; font-size: .73rem; }
.comparison-row span { color: var(--muted); }
.comparison-row strong { text-align: end; }
.bar-track { height: 13px; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.comparison-row.calculated .bar-track i { background: var(--rust); }
.plain-result { margin: 0; padding: 15px 17px; color: #31536d; background: var(--blue-soft); border-radius: .35rem; font-size: .8rem; }
.calibration-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: rgba(255,255,255,.38);
}
.calibration-facts div { min-width: 0; padding: 14px 15px; border-inline-end: 1px solid var(--line); }
.calibration-facts div:last-child { border-inline-end: 0; }
.calibration-facts dt { color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.calibration-facts dd { margin: 7px 0 0; font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }
.calibration-explanation { margin: 12px 0 0; }

.share-panel { margin-top: 22px; }
.share-preview {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper-2);
}
.share-preview canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: .3rem;
  box-shadow: 0 10px 28px rgba(31, 45, 39, .13);
}
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 16px; }
.share-panel .participant-action-status { margin-bottom: 0; }
.share-card-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: rgba(255, 255, 255, .38);
}
.share-card-readout > div {
  min-width: 0;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}
.share-card-readout > div:nth-child(-n+2) { border-top: 0; }
.share-card-readout > div:nth-child(even) { border-inline-end: 0; }
.share-card-readout > div.share-card-readout-wide { grid-column: 1 / -1; border-inline-end: 0; }
.share-card-readout dt {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.share-card-readout dd { margin: 6px 0 0; font-size: .78rem; overflow-wrap: anywhere; }
.share-card-readout dd.share-card-figure { font-weight: 750; }

.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: .4rem; background: rgba(255,255,255,.5); }
.segmented-control button { padding: .5rem .7rem; border: 0; border-radius: .25rem; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 750; cursor: pointer; }
.segmented-control button.active { color: white; background: var(--green); }
.timeline-controls,
.chart-control-stack,
.calibration-controls { display: grid; justify-items: end; gap: 7px; }
.control-label {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.chart-navigation { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.chart-navigation .button { min-height: 30px; }
.chart-panel { padding: 30px; }
.chart-heading p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.legend { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: .68rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 20px; height: 3px; background: var(--green); }
.legend-dot.expected { background: var(--rust); }
.chart-empty { display: grid; place-items: center; min-height: 310px; color: var(--muted); background: rgba(236, 230, 218, .35); border: 1px dashed var(--line); border-radius: .4rem; text-align: center; }
.chart-empty p { margin: 0; font-size: .78rem; }
.chart-empty.small { min-height: 215px; font-size: .8rem; }
.chart-shell {
  width: 100%;
  overflow: hidden;
  /* Text outside an active pointer gesture remains selectable. The chart
     only suppresses selection while its own pan gesture is armed. */
  user-select: text;
  -webkit-user-select: text;
}
.chart-shell.interactive-chart { cursor: grab; touch-action: pan-y; outline: none; }
.chart-shell.interactive-chart:focus-visible { outline: 3px solid rgba(38, 107, 91, .36); outline-offset: 4px; }
.chart-shell.interactive-chart.is-pointer-active,
.chart-shell.interactive-chart.is-pointer-active *,
.chart-shell.interactive-chart.is-panning,
.chart-shell.interactive-chart.is-panning * {
  user-select: none;
  -webkit-user-select: none;
}
.chart-shell.interactive-chart.is-panning { cursor: grabbing; }
.chart-shell svg { display: block; width: 100%; min-width: 0; height: 300px; overflow: visible; }
.chart-shell.compact-chart svg { min-width: 0; height: 248px; }
.chart-hover-tooltip { pointer-events: none; }
.chart-hover-tooltip rect {
  fill: rgba(23, 33, 30, .96);
  stroke: rgba(255, 255, 255, .18);
  stroke-width: 1;
}
.chart-tooltip-heading,
.chart-tooltip-detail {
  fill: var(--white);
  font-family: var(--sans);
}
.chart-tooltip-heading { font-size: 11px; font-weight: 750; }
.chart-tooltip-detail { font-size: 10px; opacity: .82; }
.chart-grid { stroke: rgba(23, 33, 30, .1); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-family: var(--sans); font-size: 10px; }
.chart-line-observed { fill: none; stroke: var(--green); stroke-width: 2.7; vector-effect: non-scaling-stroke; }
.chart-line-expected { fill: none; stroke: var(--rust); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.chart-line-value { fill: none; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart-point { vector-effect: non-scaling-stroke; }
.chart-point.chart-line-value { fill: var(--white); stroke: var(--blue); }
.chart-point:focus-visible { outline: 3px solid rgba(38, 107, 91, .55); outline-offset: 3px; }
.chart-point-hit-target {
  fill: transparent !important;
  stroke: transparent !important;
  opacity: 0 !important;
  pointer-events: all;
}
.chart-point-hit-target:focus-visible {
  opacity: 1 !important;
  outline: 3px solid rgba(38, 107, 91, .55);
  outline-offset: 3px;
}
.chart-error-bar-line, .chart-error-bar-cap { vector-effect: non-scaling-stroke; }
.chart-error-bar-weekly .chart-error-bar-line { stroke: rgba(49, 95, 132, .78); stroke-width: 1.8; }
.chart-error-bar-weekly .chart-error-bar-cap { stroke: rgba(49, 95, 132, .78); stroke-width: 1.8; }
.chart-line-weekly-center {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-point-weekly-mature {
  fill: var(--blue);
  stroke: var(--white);
  stroke-width: 2;
}
.chart-point-weekly-partial {
  fill: var(--white);
  stroke: var(--rust);
  stroke-width: 2.4;
}
.chart-line-allowance {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.3;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
}
.legend-dot.cost { background: var(--blue); }
.legend-dot.allowance { background: var(--green); }
.compact-legend { justify-content: flex-end; margin-top: 8px; }
.chart-area-confidence { fill: rgba(49, 95, 132, .14); }
.chart-status-missing { fill: rgba(101, 112, 107, .08); }
.chart-status-reset { fill: rgba(49, 95, 132, .08); }
.chart-status-ambiguous { fill: rgba(101, 112, 107, .06); }
.legend-dot.chart-status-missing { background: rgba(101, 112, 107, .54); }
.legend-dot.chart-status-reset { background: rgba(49, 95, 132, .54); }
.legend-dot.chart-status-ambiguous { background: rgba(101, 112, 107, .54); }
.chart-zero { stroke: var(--muted); stroke-dasharray: 5 5; }
.chart-point-observed { fill: var(--green); }
.chart-point-expected { fill: var(--rust); }
.chart-point-value { fill: var(--blue); }
.chart-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.chart-summary-grid > div { padding: 13px 15px; background: var(--white); }
.chart-summary-grid span { display: block; color: var(--muted); font-size: .64rem; text-transform: uppercase; }
.chart-summary-grid span .info-button { margin-inline-start: .25rem; vertical-align: middle; }
.chart-summary-grid strong { font-size: .84rem; }
.timeline-confidence { margin: 13px 0 0; padding: 10px 12px; color: var(--muted); border-inline-start: 3px solid var(--line); background: rgba(236, 230, 218, .34); font-size: .75rem; }
.timeline-confidence.low { color: #784d25; border-inline-start-color: var(--rust); background: var(--rust-soft); }
.lower-charts { grid-template-columns: 1fr; margin-top: 18px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .35rem; }
table { width: 100%; border-collapse: collapse; font-size: .73rem; }
th { color: var(--muted); background: rgba(236, 230, 218, .45); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
th, td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell { padding: 30px; color: var(--muted); text-align: center; }
.positive { color: var(--rust); font-weight: 750; }
.negative { color: var(--green); font-weight: 750; }

.weekly-hero {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
  padding: 34px;
  color: white;
  background: var(--green);
  border-radius: .55rem;
}
.weekly-hero > div:first-child { display: flex; flex-direction: column; }
.weekly-hero span, .weekly-hero small { color: rgba(255,255,255,.7); font-size: .72rem; }
.weekly-hero > div:first-child strong { margin: .2rem 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400; line-height: 1; }
.weekly-hero > p { max-width: 55ch; margin: 0; color: rgba(255,255,255,.8); font-size: .86rem; line-height: 1.5; }
.weekly-pace-forecast {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(310px, .95fr);
  gap: 15px 24px;
  align-items: start;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(38, 107, 91, .26);
  border-inline-start: 4px solid var(--green);
  border-radius: .5rem;
  background: linear-gradient(100deg, rgba(221, 239, 233, .75), rgba(255, 253, 247, .94));
}
.weekly-pace-forecast[hidden] { display: none; }
.weekly-pace-forecast.is-reset-first {
  border-inline-start-color: var(--blue);
  border-color: rgba(49, 95, 132, .24);
  background: linear-gradient(100deg, rgba(226, 235, 243, .76), rgba(255, 253, 247, .94));
}
.weekly-pace-forecast.is-insufficient {
  border-inline-start-color: var(--blue);
  border-color: rgba(49, 95, 132, .24);
  background: linear-gradient(100deg, rgba(226, 235, 243, .76), rgba(255, 253, 247, .94));
}
.weekly-pace-forecast-collecting-chip {
  color: var(--blue);
  border-color: rgba(49, 95, 132, .18);
  background: var(--blue-soft);
}
.weekly-pace-forecast-early-chip {
  color: var(--amber);
  border-color: rgba(154, 106, 36, .2);
  background: var(--amber-soft);
}
.weekly-pace-forecast-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  grid-column: 1 / -1;
}
.weekly-pace-forecast-heading .panel-kicker { margin: 0; }
.weekly-pace-forecast-title {
  grid-column: 1;
  margin: 0;
  max-width: 31ch;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.2;
}
.weekly-pace-forecast-copy {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: .76rem;
  line-height: 1.55;
}
.weekly-pace-forecast-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 2;
  grid-row: 2 / span 2;
  gap: 8px;
  align-self: stretch;
}
.weekly-pace-forecast-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .72);
}
.weekly-pace-forecast-metric span {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.weekly-pace-forecast-metric strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.weekly-pace-forecast-evidence {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: .67rem;
}
.weekly-table-panel { margin-top: 18px; }
.weekly-history-panel { margin-top: 18px; }
.weekly-history-panel .panel-heading { align-items: flex-start; }
.weekly-chart-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.weekly-span-control {
  display: grid;
  grid-template-columns: auto minmax(110px, 150px) auto;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: .38rem .55rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--muted);
  background: rgba(255, 254, 249, .7);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}
.weekly-span-control input {
  width: 100%;
  min-width: 0;
  accent-color: var(--green);
}
.weekly-span-control output {
  min-width: 4.1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.weekly-legend { margin: 4px 0 10px; }
.weekly-history-chart { overflow: visible; }
.weekly-history-chart svg { min-width: 0; height: clamp(270px, 30vw, 330px); }
.legend-dot.weekly-center { background: var(--green); }
.legend-dot.weekly-range { height: 9px; background: rgba(49, 95, 132, .2); }
.legend-dot.weekly-mature {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
.legend-dot.weekly-partial {
  width: 9px;
  height: 9px;
  border: 2px solid var(--rust);
  border-radius: 50%;
  background: var(--white);
}

/* The weekly allowance chart is the lead chart of the dashboard, so its
   section and panel carry more weight than the sections that support it.
   Both selectors are doubled so the later shared .panel and .dashboard-section
   overrides in this file cannot flatten the lead treatment back out. */
.dashboard-section.lead-section { padding-top: 40px; border-top: 0; }
.lead-section .section-heading > p { color: var(--text); font-size: .95rem; }
.panel.lead-chart-panel {
  border-color: var(--green-2, var(--line));
  box-shadow: 0 18px 46px rgba(31, 45, 39, .09);
}
.lead-chart-panel .weekly-history-chart svg { height: clamp(270px, 30vw, 330px); }

.accounting-disclosure { margin-top: -12px; }
.accounting-summary { grid-template-columns: repeat(3, 1fr); }
.compact-metric { min-height: 150px; }
.compact-metric .metric-value { margin: 16px 0 8px; font-size: 2rem; }
.accounting-component-grid { margin-bottom: 18px; }
.accounting-models-panel table { table-layout: fixed; }
.accounting-models-panel th:first-child,
.accounting-models-panel td:first-child {
  width: 36%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.accounting-models-panel th:not(:first-child),
.accounting-models-panel td:not(:first-child) { text-align: end; }
.accounting-bars { display: grid; gap: 10px; }
.accounting-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.accounting-dimensions .panel h3 { margin-bottom: 18px; font-size: 1.25rem; }
.dimension-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dimension-row:last-child { border-bottom: 0; }
.dimension-row strong, .dimension-row span { display: block; }
.dimension-row strong { font-size: .75rem; }
.dimension-row span { color: var(--muted); font-size: .65rem; }
.dimension-row .dimension-share { flex: 0 0 auto; color: var(--green); font-weight: 800; }

.coverage-total { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.coverage-list { display: grid; gap: 17px; }
.coverage-row { display: grid; grid-template-columns: 145px 1fr 52px; gap: 12px; align-items: center; font-size: .73rem; }
.coverage-row span { color: var(--muted); }
.coverage-row strong { text-align: end; }
.coverage-track { height: 8px; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.coverage-track i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.issue-list { display: grid; gap: 10px; }
.issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: .35rem;
}
.issue-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--amber); background: var(--amber-soft); border-radius: 50%; font-size: .7rem; font-weight: 850; }
.issue strong { display: block; font-size: .78rem; }
.issue p { margin: 2px 0 0; color: var(--muted); font-size: .69rem; }
.issue-priority { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.issue p.issue-detail { margin-top: 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.coverage-inventory { margin-top: 18px; }
.coverage-inventory .coverage-list { margin-bottom: 20px; }
.coverage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.coverage-heading .annotation { margin: 0; }
.inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.inventory-row:last-child { border-bottom: 0; }
.inventory-row strong { font-size: .76rem; }
.inventory-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .69rem; }
.fast-mode-preference .segmented-control { margin-top: 10px; }
.fast-mode-preference .annotation { margin-top: 8px; }
.empty-inline { color: var(--muted); font-size: .76rem; }
.advanced-calibration,
.advanced-diagnostics,
.manual-contribution {
  margin-top: 18px;
}
.advanced-calibration > summary,
.advanced-diagnostics > summary,
.manual-contribution > summary,
.evidence-disclosure > summary {
  cursor: pointer;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
}
.advanced-calibration[open] > summary,
.advanced-diagnostics[open] > summary,
.manual-contribution[open] > summary,
.evidence-disclosure[open] > summary {
  margin-bottom: 16px;
}
.advanced-calibration > .panel + .lower-charts { margin-top: 18px; }
.primary-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manual-contribution {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.manual-contribution code { font-family: var(--mono, ui-monospace, monospace); }
.evidence-disclosure { display: block; }
.evidence-disclosure .report-links { justify-content: flex-start; }

/* Consumer hierarchy: the default journey is allowance, one trend, and one
   weekly estimate. Technical evidence remains available through disclosure. */
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.page-heading { padding: 52px 0 38px; }
.dashboard-section { padding: 50px 0; }
.section-heading { margin-bottom: 26px; }
.panel { padding: 24px; box-shadow: 0 8px 24px rgba(31, 45, 39, .035); }
.metric-card { min-height: 165px; padding: 21px; }
.metric-card .metric-value { margin: 16px 0 7px; font-size: 2.7rem; }
.skeleton-card { min-height: 165px; }
.weekly-hero { padding: 28px; }
.weekly-hero > div:first-child strong {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
}

.evidence-chip.neutral { color: var(--muted); background: var(--paper-2); }
.evidence-chip.error { color: var(--rust); background: var(--rust-soft); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 13px; border: 1px solid var(--line); border-radius: .35rem; cursor: pointer; }
.consent-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green); }
.consent-row span { display: flex; flex-direction: column; font-size: .73rem; }
.consent-row small { color: var(--muted); }
.sync-next-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: .4rem; background: rgba(255, 254, 249, .6); }
.preparation-readiness { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .72rem; }
.preparation-window {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.compact-heading h4 { margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.sync-next-facts { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.sync-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-actions .button { min-height: 38px; }
.community-connect,
.local-preparation {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: rgba(255, 254, 249, .6);
}
.community-connect .control-label,
.local-preparation > .control-label {
  display: block;
  margin-bottom: 12px;
  color: var(--green-2);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.community-connect .participant-action-status,
.local-preparation .participant-action-status { margin-bottom: 0; }
.summary-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.sync-facts { grid-template-columns: repeat(3, 1fr); }
.summary-facts > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: .35rem; background: rgba(255, 254, 249, .6); }
.summary-facts dt { color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.summary-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 750; }
.calibration-reasons { margin: 10px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.calibration-reasons li + li { margin-top: 4px; }
.snapshot-heading { display: grid; gap: 4px; margin-bottom: 12px; }
.snapshot-heading strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.snapshot-heading span, .snapshot-disclosure, .snapshot-partial { color: var(--muted); font-size: .68rem; }
.snapshot-partial { color: var(--rust); }
.snapshot-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.snapshot-quality-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: .3rem;
}
.snapshot-quality-grid dt {
  color: var(--muted);
  font-size: .56rem;
  text-transform: uppercase;
}
.snapshot-quality-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: .69rem;
  font-weight: 750;
}
.snapshot-table { margin-top: 14px; }
.snapshot-table table { min-width: 920px; }
.snapshot-table th, .snapshot-table td { white-space: nowrap; }
.snapshot-table .suppressed-value { color: var(--muted); font-style: italic; }
.participant-action-status.error { color: var(--rust); }

/* Public landing hierarchy. Keep the community surface intentionally small;
   the broader rules above remain shared with the loopback dashboard. */
.community-site .community-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-bottom: 28px;
}
.community-site .topbar { grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 12px; }
.community-site .topbar .primary-nav { justify-self: end; }
.community-site .community-hero .lede { max-width: 760px; }
.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.community-site .community-section {
  padding-top: 20px;
  border-top: 0;
}
.community-site .community-section > .lede {
  max-width: 850px;
  margin-bottom: 24px;
}
.community-site .community-result-panel { background: rgba(255, 254, 249, .86); }
.community-site .community-download { margin-top: 18px; }
.community-site .community-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.community-site .community-trust-grid .panel { height: 100%; }
.community-site .community-trust-grid .panel h3 { margin-bottom: 10px; }
.community-site .community-trust-grid .panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .8rem;
}
.community-faq-list { display: grid; gap: 12px; }
.community-faq-item { margin-top: 0; }
.community-faq-item > summary { padding: 17px 20px; }
.community-faq-item > summary strong {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 750;
}
.community-faq-answer { padding: 0 20px 17px; }
.community-faq-answer p { margin: 0; color: var(--muted); font-size: .78rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
}
.noscript { position: fixed; inset: auto 0 0; padding: 1rem; color: white; background: var(--rust); text-align: center; }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: auto 1fr; padding-inline: 24px; }
  .top-actions { justify-self: end; }
  .dashboard-shell { display: block; min-height: 0; }
  .dashboard-sidebar {
    position: static;
    min-height: 0;
    padding: .65rem 24px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .primary-nav a { flex: 0 0 auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  main, footer { width: min(100% - 28px, 1240px); }
  .topbar { padding-inline: 14px; }
  /* Keep the public header's localized controls reachable on a second row. */
  .community-site .topbar {
    grid-template-areas:
      "brand language download"
      "navigation navigation navigation";
    grid-template-columns: minmax(0, 1fr) auto auto;
    row-gap: .2rem;
    min-height: 0;
    padding-block: .45rem;
  }
  .community-site .topbar .brand { grid-area: brand; min-width: 0; }
  .community-site .topbar .primary-nav {
    grid-area: navigation;
    justify-self: stretch;
    min-width: 0;
  }
  .community-site .topbar .language-picker {
    grid-area: language;
    justify-self: end;
  }
  .community-site .topbar .header-download {
    grid-area: download;
  }
  .state-pill { max-width: 118px; overflow: hidden; white-space: nowrap; }
  /* Only the crowded top toolbar sheds its compact buttons on narrow screens. */
  .topbar .button.compact { display: none; }
  .dashboard-sidebar { padding-inline: 14px; }
  .page-heading, .section-heading, .section-heading.split, .weekly-hero, .weekly-pace-forecast, .setup-card, .companion-setup, .contribution-cta { grid-template-columns: 1fr; gap: 24px; }
  .companion-setup-actions { grid-column: 1; }
  .journey-disclosure > summary { align-items: flex-start; flex-direction: column; }
  .journey-disclosure > .sync-next-card {
    margin-inline: 14px;
  }
  #cancel-refresh.button.compact { display: inline-flex; }
  .page-heading { padding-top: 38px; }
  .community-site .community-trust-grid { grid-template-columns: 1fr; }
  .community-hero-actions .button { flex: 1 1 12rem; }
  .freshness-card { min-width: 0; }
  .dashboard-section { padding: 44px 0; }
  .metric-grid, .two-column, .summary-facts, .snapshot-quality-grid { grid-template-columns: 1fr; }
  .metric-grid > :last-child { grid-column: auto; }
  .panel { padding: 21px; }
  .panel-heading, .chart-heading, .report-panel, .notice { align-items: flex-start; flex-direction: column; }
  .sync-panel-summary { align-items: flex-start; flex-wrap: wrap; }
  .component-row { grid-template-columns: 110px 1fr auto; }
  .comparison-row { grid-template-columns: 1fr auto; }
  .comparison-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .chart-summary-grid { grid-template-columns: 1fr 1fr; }
  .weekly-pace-forecast-metrics { grid-column: 1; grid-row: auto; }
  .weekly-span-control { grid-template-columns: 1fr auto; }
  .weekly-span-control input { grid-column: 1 / -1; grid-row: 2; }
  .calibration-facts { grid-template-columns: 1fr; }
  .calibration-facts div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .calibration-facts div:last-child { border-bottom: 0; }
  .share-card-readout { grid-template-columns: 1fr; }
  .share-card-readout > div { border-inline-end: 0; }
  .share-card-readout > div:nth-child(2) { border-top: 1px solid var(--line); }
  .share-actions .button { flex: 1 1 auto; }
  .timeline-controls,
  .chart-control-stack,
  .calibration-controls { justify-items: start; }
  .chart-navigation { justify-content: flex-start; }
  .identity-account .button { margin-inline-start: 0; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2.25rem; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .state-pill {
    justify-content: center;
    width: 28px;
    height: 28px;
    max-width: none;
    padding: 0;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }
  .primary-nav a {
    flex: 0 0 auto;
    min-width: 62px;
    padding-inline: .25rem;
    font-size: .62rem;
    line-height: 1.2;
    text-align: center;
  }
  .chart-navigation {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .chart-navigation .button.compact {
    min-width: 0;
    min-height: 48px;
    padding-inline: .35rem;
    font-size: .62rem;
  }
}

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

/*
 * Public landing surface. Everything here is scoped so the installed app's
 * local dashboard keeps its existing layout and controls.
 */
.community-site {
  --site-green: #0c4038;
  --site-green-deep: #082f2a;
  --site-green-bright: #65c3aa;
  --site-cream: #f5f0e5;
  --site-paper: #fffdf7;
  background: var(--site-cream);
}
.community-site .skip-link {
  color: var(--site-green-deep);
  background: var(--site-paper);
}
.community-site .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 64px;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  border-color: rgba(255, 253, 247, .14);
  background: rgba(8, 47, 42, .92);
  backdrop-filter: blur(18px);
}
.community-site .brand {
  gap: .72rem;
  color: var(--site-paper);
  font-size: .94rem;
  letter-spacing: -.02em;
}
.community-site .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.community-site .primary-nav {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  gap: 4px;
  margin-inline-end: 12px;
}
.community-site .primary-nav a {
  padding: .45rem .68rem;
  color: rgba(255, 253, 247, .7);
  font-size: .72rem;
  letter-spacing: .01em;
}
.community-site .primary-nav a:hover,
.community-site .primary-nav a:focus-visible {
  color: var(--site-paper);
  background: rgba(255, 255, 255, .09);
}
.community-site .header-download {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  justify-self: end;
  min-height: 34px;
  padding: .45rem .82rem;
  border-radius: .42rem;
  color: var(--site-green-deep);
  background: var(--site-paper);
  font-size: .72rem;
  font-weight: 820;
  text-decoration: none;
}
.community-site .language-picker {
  justify-self: end;
}
.community-site .language-picker select {
  min-height: 34px;
  max-width: 8rem;
  padding-block: .34rem;
  color: var(--site-green-deep);
  background: var(--site-paper);
  border-color: rgba(255, 253, 247, .34);
  font-size: .68rem;
}
@media (max-width: 760px) {
  .community-site .topbar {
    grid-template-areas:
      "brand language download"
      "navigation navigation navigation";
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}
.community-site main {
  width: 100%;
  margin: 0;
}
.community-site .product-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 4.5vw, 68px);
  align-items: center;
  min-height: min(790px, calc(100vh - 74px));
  padding:
    clamp(62px, 8vw, 104px)
    max(24px, calc((100vw - 1180px) / 2))
    clamp(66px, 8vw, 102px);
  overflow: hidden;
  color: var(--site-paper);
  background:
    radial-gradient(circle at 82% 14%, rgba(101, 195, 170, .16), transparent 31rem),
    radial-gradient(circle at 12% 100%, rgba(101, 195, 170, .08), transparent 29rem),
    var(--site-green-deep);
}
.community-site .hero-copy {
  position: relative;
  z-index: 1;
}
.community-site .product-hero h1 {
  max-width: 690px;
  margin: 0 0 22px;
  color: var(--site-paper);
  font-size: clamp(3.7rem, 6.4vw, 6.3rem);
  line-height: .88;
  text-wrap: balance;
}
.community-site .hero-lede {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 253, 247, .7);
  font-size: clamp(.98rem, 1.3vw, 1.13rem);
  line-height: 1.62;
}
.community-site .install-cluster {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.community-site .install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.community-site .mac-download-button {
  gap: .65rem;
  min-height: 54px;
  padding: .8rem 1.15rem;
  border-radius: .55rem;
  color: var(--site-green-deep);
  background: var(--site-paper);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
  font-size: .84rem;
  text-decoration: none;
}
.community-site .mac-download-button:hover:not(:disabled) {
  color: var(--site-green-deep);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .25);
}
.community-site .mac-download-button:disabled {
  border: 0;
  opacity: .78;
  cursor: default;
}
.community-site .download-platform-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.community-site .installer-unavailable {
  flex-basis: 100%;
  width: fit-content;
  padding: 0;
  border: 0;
  color: rgba(255, 253, 247, .58) !important;
  background: transparent;
  font-size: .68rem;
}
.community-site .open-installed-copy {
  color: rgba(255, 253, 247, .56);
  font-size: .72rem;
}
.community-site .open-installed-copy a {
  margin-inline-start: .2rem;
  color: var(--site-paper);
  font-weight: 780;
  text-underline-offset: 3px;
}
.community-site .open-installed-copy a[aria-disabled="true"] {
  opacity: .48;
  cursor: not-allowed;
}
.community-site .installer-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 590px;
  gap: 3px 14px;
  margin-top: 2px;
  color: rgba(255, 253, 247, .56);
  font-size: .67rem;
}
.community-site .installer-links {
  margin-top: 0;
  font-size: .69rem;
}
.community-site .installer-links a {
  color: rgba(255, 253, 247, .78);
}
.community-site #open-installed-app-status {
  margin: 0;
  color: rgba(255, 253, 247, .7);
  font-size: .7rem;
}
.community-site .community-inline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 620px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 253, 247, .16);
  color: rgba(255, 253, 247, .58);
  font-size: .69rem;
  text-decoration: none;
}
.community-site .community-inline:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.community-site .community-inline strong {
  min-width: 0;
  overflow: hidden;
  color: var(--site-paper);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-site .community-inline .evidence-chip {
  color: rgba(255, 253, 247, .72);
  border: 1px solid rgba(255, 253, 247, .14);
  background: rgba(255, 255, 255, .08);
  font-size: .55rem;
}
.community-site .community-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 253, 247, .5);
  box-shadow: 0 0 0 4px rgba(255, 253, 247, .08);
}
.community-site .product-window {
  position: relative;
  width: min(100%, 670px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, .26);
  border-radius: 18px;
  color: var(--ink);
  background: var(--site-paper);
  box-shadow: 0 38px 80px rgba(0, 0, 0, .32);
  transform: rotate(.35deg);
}
.community-site .product-window::before {
  position: absolute;
  z-index: -1;
  inset: 12% -12% -18% 14%;
  border-radius: 50%;
  background: rgba(101, 195, 170, .18);
  filter: blur(45px);
  content: "";
}
.community-site .product-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f0ebdf;
}
.community-site .preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
}
.community-site .preview-brand img {
  border-radius: 8px;
}
.community-site .preview-demo {
  padding: .28rem .48rem;
  border: 1px solid rgba(49, 95, 132, .16);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: .55rem;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.community-site .product-window-content {
  padding: clamp(21px, 3.2vw, 34px);
}
.community-site .preview-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.community-site .preview-value {
  display: flex;
  gap: 17px;
  align-items: center;
}
.community-site .preview-value strong {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .9;
}
.community-site .preview-value span {
  max-width: 11rem;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 750;
  line-height: 1.35;
}
.community-site .preview-qualification {
  margin: 8px 0 17px;
  color: var(--blue);
  font-size: .63rem;
  font-weight: 720;
}
.community-site .preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
}
.community-site .preview-stats > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf7ef;
}
.community-site .preview-stats dt {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.community-site .preview-stats dd {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.community-site .preview-chart {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.community-site .product-window figcaption {
  padding: 0 34px 20px;
  color: var(--muted);
  font-size: .61rem;
}
.community-site .feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(58px, 8vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.community-site .feature-strip article {
  min-width: 0;
  padding: 0 clamp(24px, 4vw, 50px);
  border-inline-start: 1px solid var(--line);
}
.community-site .feature-strip article:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.community-site .feature-strip article:last-child {
  padding-inline-end: 0;
}
.community-site .feature-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(23, 79, 69, .18);
  border-radius: 999px;
  color: var(--site-green);
  background: rgba(101, 195, 170, .14);
  font-size: .66rem;
  font-weight: 850;
}
.community-site .feature-strip h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.community-site .feature-strip p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}
.community-site .community-proof {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 96px) 0;
}
.community-site .community-proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 52px;
  align-items: center;
}
.community-site .community-proof h2 {
  max-width: 720px;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
  text-wrap: balance;
}
.community-site .community-proof-heading > div > p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: .81rem;
}
.community-site .community-estimate-summary {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(23, 79, 69, .18);
  border-radius: 12px;
  background: rgba(255, 253, 247, .74);
}
.community-site .community-estimate-summary .evidence-chip {
  margin: 0;
}
.community-site .community-estimate-summary p {
  margin: 0;
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.6;
}
.community-site .community-method {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 247, .54);
}
.community-site .community-method > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--green);
  cursor: pointer;
  font-size: .75rem;
  font-weight: 800;
  list-style: none;
}
.community-site .community-method > summary::-webkit-details-marker {
  display: none;
}
.community-site .community-method > summary::after {
  color: var(--muted);
  content: "Show";
  font-size: .65rem;
}
.community-site .community-method[open] > summary::after {
  content: "Hide";
}
.community-site .community-method-body {
  padding: 2px 18px 20px;
}
.community-site .community-proof:is(
  [data-community-state="checking"],
  [data-community-state="service_unavailable"],
  [data-community-state="development_unsafe"],
  [data-community-state="unsupported_schema"],
  [data-community-state="not_yet_published"],
  [data-community-state="withdrawn"],
  [data-community-state="suppressed"]
) {
  padding: clamp(44px, 6vw, 68px) 0;
}
.community-site .community-proof:is(
  [data-community-state="checking"],
  [data-community-state="service_unavailable"],
  [data-community-state="development_unsafe"],
  [data-community-state="unsupported_schema"],
  [data-community-state="not_yet_published"],
  [data-community-state="withdrawn"],
  [data-community-state="suppressed"]
) .community-proof-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 36px;
}
.community-site .community-proof:is(
  [data-community-state="checking"],
  [data-community-state="service_unavailable"],
  [data-community-state="development_unsafe"],
  [data-community-state="unsupported_schema"],
  [data-community-state="not_yet_published"],
  [data-community-state="withdrawn"],
  [data-community-state="suppressed"]
) h2 {
  max-width: 620px;
  font-size: clamp(2.35rem, 3.7vw, 3.6rem);
}
.community-site .community-proof:is(
  [data-community-state="checking"],
  [data-community-state="service_unavailable"],
  [data-community-state="development_unsafe"],
  [data-community-state="unsupported_schema"],
  [data-community-state="not_yet_published"],
  [data-community-state="withdrawn"],
  [data-community-state="suppressed"]
) .community-estimate-summary {
  gap: 10px;
  padding: 18px;
}
.community-site .community-proof:is(
  [data-community-state="checking"],
  [data-community-state="service_unavailable"],
  [data-community-state="development_unsafe"],
  [data-community-state="unsupported_schema"],
  [data-community-state="not_yet_published"],
  [data-community-state="withdrawn"],
  [data-community-state="suppressed"]
) .community-method {
  margin-top: 18px;
}
.community-site .activity-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.community-site .activity-heading h3 {
  margin: 0 0 4px;
  font-size: .86rem;
}
.community-site .activity-heading p,
.community-site .annotation {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}
.community-site .result-summary {
  margin-top: 15px;
}
.community-site .result-summary > p {
  font-size: .74rem;
}
.community-site .snapshot-heading {
  margin-bottom: 8px;
}
.community-site .snapshot-disclosure,
.community-site .snapshot-partial {
  color: var(--muted);
  font-size: .72rem;
}
.community-site .snapshot-quality-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.community-site .table-wrap {
  margin-top: 16px;
}
.community-site .service-detail-disclosure {
  margin-top: 15px;
}
.community-site .resource-main {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) 0 clamp(68px, 9vw, 108px);
}
.community-site .resource-heading {
  max-width: 760px;
}
.community-site .resource-heading h1 {
  max-width: 760px;
  margin: 10px 0 20px;
  font-size: clamp(3.35rem, 6vw, 5.5rem);
}
.community-site .resource-lede {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}
.community-site .resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}
.community-site .resource-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .68);
}
.community-site .resource-card.wide {
  grid-column: 1 / -1;
}
.community-site .resource-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -.035em;
}
.community-site .resource-card p,
.community-site .resource-card li {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}
.community-site .resource-card p:last-child,
.community-site .resource-card ul:last-child {
  margin-bottom: 0;
}
.community-site .resource-card ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}
.community-site .resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.community-site .resource-actions a {
  min-height: 38px;
}
.community-site footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 22px;
}
.community-site .footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.community-site .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.community-site .footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}
.community-site footer p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
}
.community-site .footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.community-site .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: .35rem .58rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  color: var(--ink);
  background: rgba(255, 253, 247, .6);
  font-size: .69rem;
  font-weight: 760;
  text-decoration: none;
}
.community-site .footer-links a:hover {
  color: var(--green);
  background: var(--site-paper);
}
.community-site .footer-links a.footer-resource {
  padding-inline: .22rem;
  border-color: transparent;
  background: transparent;
}
.community-site .footer-links img {
  flex: 0 0 auto;
}

@media (max-width: 1120px) {
  .community-site .product-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    gap: 36px;
    padding: 52px 24px 64px;
  }
  .community-site .hero-copy {
    width: min(100%, 760px);
  }
  .community-site .product-window {
    width: min(100%, 620px);
    justify-self: center;
    transform: none;
  }
  .community-site .community-proof-heading,
  .community-site .community-proof[data-community-state] .community-proof-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .community-site .snapshot-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .community-site .topbar {
    min-height: 56px;
    padding-inline: 14px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .community-site .brand {
    font-size: .82rem;
  }
  .community-site .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .community-site .primary-nav {
    display: none;
  }
  .community-site .header-download {
    min-height: 32px;
    padding-inline: .65rem;
  }
  .community-site .language-picker select {
    max-width: 6.6rem;
  }
  .community-site .product-hero {
    gap: 32px;
    padding: 48px 18px 56px;
  }
  .community-site .product-hero h1 {
    max-width: 560px;
    margin-bottom: 18px;
  }
  .community-site .hero-lede {
    font-size: .92rem;
  }
  .community-site .install-cluster {
    margin-top: 24px;
  }
  .community-site .community-inline {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
    margin-top: 22px;
    padding-top: 14px;
  }
  .community-site .community-inline strong {
    grid-column: 2;
    white-space: normal;
  }
  .community-site .preview-value strong {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
  .community-site .product-window-content {
    padding: 20px;
  }
  .community-site .product-window figcaption {
    padding: 0 20px 16px;
  }
  .community-site .feature-strip {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 1180px);
    padding: 44px 0;
  }
  .community-site .feature-strip article,
  .community-site .feature-strip article:first-child,
  .community-site .feature-strip article:last-child {
    padding: 23px 0;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }
  .community-site .feature-strip article:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .community-site .feature-strip article:last-child {
    padding-bottom: 0;
  }
  .community-site .community-proof {
    width: min(100% - 36px, 1180px);
    padding: 54px 0;
  }
  .community-site .community-proof h2 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }
  .community-site .community-estimate-summary {
    padding: 19px;
  }
  .community-site .community-proof:is(
    [data-community-state="checking"],
    [data-community-state="service_unavailable"],
    [data-community-state="development_unsafe"],
    [data-community-state="unsupported_schema"],
    [data-community-state="not_yet_published"],
    [data-community-state="withdrawn"],
    [data-community-state="suppressed"]
  ) {
    padding: 38px 0;
  }
  .community-site .community-proof:is(
    [data-community-state="checking"],
    [data-community-state="service_unavailable"],
    [data-community-state="development_unsafe"],
    [data-community-state="unsupported_schema"],
    [data-community-state="not_yet_published"],
    [data-community-state="withdrawn"],
    [data-community-state="suppressed"]
  ) .community-proof-heading {
    gap: 18px;
  }
  .community-site .community-proof:is(
    [data-community-state="checking"],
    [data-community-state="service_unavailable"],
    [data-community-state="development_unsafe"],
    [data-community-state="unsupported_schema"],
    [data-community-state="not_yet_published"],
    [data-community-state="withdrawn"],
    [data-community-state="suppressed"]
  ) h2 {
    margin-bottom: 10px;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .community-site .community-proof:is(
    [data-community-state="checking"],
    [data-community-state="service_unavailable"],
    [data-community-state="development_unsafe"],
    [data-community-state="unsupported_schema"],
    [data-community-state="not_yet_published"],
    [data-community-state="withdrawn"],
    [data-community-state="suppressed"]
  ) .community-estimate-summary {
    padding: 16px;
  }
  .community-site .community-proof:is(
    [data-community-state="checking"],
    [data-community-state="service_unavailable"],
    [data-community-state="development_unsafe"],
    [data-community-state="unsupported_schema"],
    [data-community-state="not_yet_published"],
    [data-community-state="withdrawn"],
    [data-community-state="suppressed"]
  ) .community-method {
    margin-top: 14px;
  }
  .community-site .activity-heading {
    display: grid;
  }
  .community-site .resource-main {
    width: min(100% - 36px, 960px);
    padding: 46px 0 64px;
  }
  .community-site .resource-heading h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }
  .community-site .resource-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .community-site .resource-card.wide {
    grid-column: auto;
  }
  .community-site footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    width: min(100% - 36px, 1180px);
    padding: 16px 0 18px;
  }
  .community-site .footer-copy {
    display: contents;
  }
  .community-site .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .community-site .footer-links {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }
  .community-site .footer-links a.footer-social {
    justify-content: center;
    width: 32px;
    padding: 0;
  }
  .community-site .footer-social-label {
    display: none;
  }
  .community-site footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  .community-site .brand span {
    display: none;
  }
  .community-site .install-actions {
    align-items: flex-start;
  }
  .community-site .mac-download-button,
  .community-site .installer-unavailable {
    width: 100%;
  }
  .community-site .open-installed-copy {
    width: 100%;
  }
  .community-site .preview-stats {
    grid-template-columns: 1fr 1fr;
  }
  .community-site .product-window-bar {
    padding: 10px 12px;
  }
  .community-site .preview-demo {
    font-size: .5rem;
  }
  .community-site .snapshot-quality-grid {
    grid-template-columns: 1fr;
  }
}
[data-dashboard-page].dashboard-page-inactive {
  display: none !important;
}
