:root {
  color-scheme: light;
  --navy: #18324b;
  --blue: #2b628a;
  --blue-soft: #eaf2f7;
  --ink: #202a33;
  --muted: #5d6a75;
  --canvas: #f5f7f8;
  --panel: #ffffff;
  --line: #cfd8df;
  --line-dark: #aebcc7;
  --safe: #20735d;
  --safe-soft: #e6f3ef;
  --warning: #795d14;
  --warning-soft: #fff7dd;
  --danger: #aa3e3e;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
.shell { width: min(1100px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 3.5rem; }
.hero, .intro, .actions { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hero { padding: 0 0 1.25rem; border-bottom: 3px solid var(--navy); }
.eyebrow { margin: 0 0 0.35rem; color: var(--blue); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0.1rem; color: var(--navy); font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; }
h2 { margin-bottom: 0.6rem; color: var(--navy); font-size: 1.45rem; line-height: 1.25; }
h3 { margin-bottom: 0.4rem; color: var(--navy); font-size: 1rem; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; }
.intro p, .field small, .card-note, .review-copy, .hardware-summary p, .processing-panel p, .data-contract p { color: var(--muted); line-height: 1.5; }

.safe-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; color: var(--safe); border: 1px solid #a8d2c5; background: var(--safe-soft); border-radius: 3px; font-size: 0.82rem; font-weight: 600; }
.status-dot { display: inline-block; width: 0.52rem; height: 0.52rem; border-radius: 50%; background: var(--safe); flex: 0 0 auto; }
.status-dot.amber { background: #b28217; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: 0.7rem; }
.site-link, .page-footer a { color: var(--blue); font-size: 0.82rem; font-weight: 700; text-decoration: none; }.site-link { padding: 0.55rem 0.7rem; border: 1px solid var(--line-dark); background: #fff; border-radius: 3px; }.site-link:hover, .page-footer a:hover { color: var(--navy); text-decoration: underline; }

.intro { margin-top: 1.4rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.intro > div:first-child { max-width: 44rem; }.intro h2 { margin-bottom: 0.45rem; }.intro p:last-child { margin-bottom: 0; }
.progress { display: grid; grid-template-columns: auto 1.7rem auto 1.7rem auto; align-items: center; min-width: 13rem; color: var(--muted); text-align: center; }
.progress span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid var(--line-dark); border-radius: 50%; font-size: 0.78rem; font-weight: 700; }
.progress span.active { color: #fff; border-color: var(--navy); background: var(--navy); }.progress i { height: 1px; background: var(--line-dark); }
.progress small { grid-column: 1 / -1; padding-top: 0.45rem; font-size: 0.67rem; }

.section-tabs { display: flex; gap: 0; margin: 1.6rem 0 0; overflow-x: auto; border-bottom: 1px solid var(--line-dark); }
.tab { padding: 0.8rem 1rem; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; font-size: 0.86rem; }
.tab:hover { color: var(--navy); background: #eef3f6; }.tab.active { color: var(--navy); border-bottom-color: var(--blue); font-weight: 700; }.tab span { margin-left: 0.45rem; }

.setup-section { min-height: 25rem; padding: 1.75rem; border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.section-heading { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.55rem; }
.section-number { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; color: var(--navy); border: 1px solid var(--line-dark); background: #f5f8fa; border-radius: 3px; font-size: 0.82rem; font-weight: 700; }
.section-heading h2 { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 0.42rem; color: var(--ink); font-size: 0.84rem; font-weight: 700; }.field small { font-size: 0.74rem; font-weight: 400; }
.field input, .field select { width: 100%; padding: 0.65rem 0.7rem; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 3px; outline: none; background: #fff; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(43, 98, 138, 0.14); }.field input:invalid { border-color: var(--danger); }

.capability-card { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 1.25rem; margin-top: 1.5rem; padding: 1.15rem; border: 1px solid var(--line); background: #f8fafb; }
.capability-card h3 { margin-bottom: 0; }.capability-list { display: flex; flex-wrap: wrap; gap: 0.45rem; align-content: start; margin: 0; padding: 0; list-style: none; }
.capability-list li { padding: 0.38rem 0.6rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #fff; font-size: 0.78rem; }
.capability-list li.available { color: #155847; border-color: #9ac9bb; background: var(--safe-soft); font-weight: 700; }.card-note { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; }
.hardware-summary { display: flex; align-items: start; gap: 0.7rem; margin-bottom: 1.25rem; padding: 0.8rem 0.9rem; border: 1px solid #e5d29a; border-radius: 3px; background: var(--warning-soft); }
.hardware-summary p { margin: 0; color: #67541b; font-size: 0.84rem; }
.processing-panel { margin-top: 1.5rem; padding: 1.15rem; border: 1px solid var(--line); background: #f8fafb; }.processing-panel > div:first-child { margin-bottom: 1rem; }.processing-panel p { margin-bottom: 0; }.compact { gap: 0.85rem; }
.safety-callout { margin-top: 1.5rem; padding: 0.9rem 1rem; color: #66521b; border-left: 4px solid #c99a2e; background: var(--warning-soft); line-height: 1.5; }.safety-callout strong { color: #5d4916; }
.data-contract { display: flex; gap: 0.9rem; margin-top: 1.5rem; padding: 1.1rem; border: 1px solid var(--line); background: #f8fafb; }.data-contract h3, .data-contract p { margin-bottom: 0.3rem; }
.contract-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; color: var(--navy); border: 1px solid var(--line-dark); border-radius: 3px; background: #eef3f6; font-size: 1rem; }
.config-preview { min-height: 20rem; margin: 1.25rem 0 0; padding: 1rem; overflow: auto; color: #203d55; border: 1px solid var(--line-dark); border-radius: 3px; background: #f8fafb; font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.actions { margin-top: 1rem; padding: 0.9rem 0 0; }.form-status { margin-bottom: 0; color: var(--muted); font-size: 0.82rem; }.actions > div { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.55rem; }
.button { padding: 0.65rem 0.85rem; border: 1px solid transparent; border-radius: 3px; font-size: 0.84rem; font-weight: 700; cursor: pointer; }.button.primary { color: #fff; background: var(--navy); }.button.secondary { color: #fff; background: var(--blue); }.button.ghost { color: var(--navy); border-color: var(--line-dark); background: #fff; }.button:hover { filter: brightness(0.96); }

.intro-page { margin-top: 1.4rem; padding: 1.75rem; border: 1px solid var(--line); background: var(--panel); }.intro-page > h2 { max-width: 42rem; margin-top: 1.7rem; }.lead-copy { max-width: 48rem; color: var(--muted); line-height: 1.55; }
.intro-title-block { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: 0.9rem; align-items: center; min-height: 5.25rem; }.brand-logo { grid-row: span 3; display: block; width: 5.25rem; height: 5.25rem; object-fit: contain; border: 1px solid #28496b; border-radius: 3px; background: #061a36; }.intro-title-block .eyebrow, .intro-title-block h1, .intro-title-block .subtitle { grid-column: 2; }
.under-construction { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; border: 1px solid #e5d29a; border-left: 4px solid #c99a2e; background: var(--warning-soft); }.under-construction strong { color: #5d4916; font-size: 0.9rem; }.under-construction p { margin: 0.25rem 0 0; color: #67541b; font-size: 0.84rem; line-height: 1.5; }
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }.topic-card { padding: 1.1rem; border: 1px solid var(--line); background: #f8fafb; }.topic-card h3 { min-height: 2.4rem; }.topic-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.project-status { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 1.5rem; margin-top: 1.5rem; padding: 1.15rem; border: 1px solid #b9cfdd; background: var(--blue-soft); }.project-status h3 { margin-bottom: 0; }.project-status ul { margin: 0; padding-left: 1.2rem; color: var(--ink); font-size: 0.88rem; line-height: 1.6; }.project-status p:last-child { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.discovery-panel { margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--line); background: #f8fafb; }.discovery-panel h3 { margin-bottom: 0.65rem; }.discovery-panel ul { margin: 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.6; }.discovery-panel li + li { margin-top: 0.4rem; }
.public-invitation { margin-top: 1rem; padding: 1.15rem; border-left: 4px solid var(--blue); background: #f8fafb; }.public-invitation h3 { margin-bottom: 0.45rem; }.public-invitation p { max-width: 45rem; margin-bottom: 1rem; color: var(--muted); line-height: 1.55; }.public-invitation .button { display: inline-block; text-decoration: none; }
.concept-hero { margin-top: 1.25rem; padding: 1.35rem; color: #fff; background: #16345a; }.concept-hero .eyebrow { color: #b9d7ee; }.concept-hero h2 { max-width: 46rem; margin-bottom: 0.55rem; color: #fff; font-size: 1.65rem; }.concept-hero > p { max-width: 48rem; margin-bottom: 0; color: #e2ebf2; line-height: 1.55; }.adaptive-loop { display: flex; align-items: center; gap: 0.7rem; margin: 1.25rem 0 0.6rem; padding: 0; list-style: none; }.adaptive-loop li { display: flex; align-items: center; gap: 0.7rem; color: #18324b; font-size: 0.86rem; font-weight: 700; }.adaptive-loop li:not(:last-child)::after { color: #9fb2c6; content: "→"; font-size: 1.25rem; }.adaptive-loop li { padding: 0.6rem 0.75rem; background: #eaf2f7; }.adaptive-loop li:not(:last-child) { padding-right: 0.15rem; }.adaptive-loop li:not(:last-child)::after { margin-left: 0.3rem; }.loop-note { color: #b9d7ee !important; font-size: 0.8rem; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }.concept-card { padding: 1.15rem; border: 1px solid var(--line); border-top: 4px solid #e56422; background: #fff; }.concept-card h3 { min-height: 2.45rem; margin-bottom: 0.7rem; }.concept-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }.concept-card li + li { margin-top: 0.45rem; }.public-setup-link { display: inline-block; margin-top: 1rem; text-decoration: none; }
.page-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 0; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 760px) {
  .shell { width: min(100% - 1rem, 1100px); padding-top: 1rem; }.hero, .intro, .actions { align-items: flex-start; flex-direction: column; }.header-actions { align-items: flex-start; flex-wrap: wrap; justify-content: start; }.safe-status { font-size: 0.75rem; }.progress { width: 100%; }.intro-title-block { grid-template-columns: 1fr; min-height: 0; }.brand-logo { grid-row: auto; width: 5rem; height: 5rem; margin-bottom: 0.6rem; }.intro-title-block .eyebrow, .intro-title-block h1, .intro-title-block .subtitle { grid-column: auto; }
  .two-column, .three-column, .capability-card, .intro-grid, .project-status, .concept-grid { grid-template-columns: 1fr; }.capability-card .card-note, .project-status p:last-child { grid-column: auto; }.setup-section, .intro-page { min-height: auto; padding: 1.2rem; }.actions > div { justify-content: start; }.section-tabs { margin-top: 1rem; }.adaptive-loop { align-items: stretch; flex-direction: column; }.adaptive-loop li { justify-content: space-between; }.adaptive-loop li:not(:last-child) { padding-right: 0.75rem; }.adaptive-loop li:not(:last-child)::after { content: "↓"; }.page-footer { align-items: flex-start; flex-direction: column; }
}
