:root {
  --ink: #17241f;
  --forest: #183c2f;
  --forest-2: #245845;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --gold: #c98a32;
  --gold-pale: #f4e4c4;
  --rust: #9b4f36;
  --sage: #dce8df;
  --line: #d7d5cc;
  --muted: #66736c;
  --shadow: 0 18px 60px rgba(23, 36, 31, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top left, #fffaf0 0, var(--cream) 38rem); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.35; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 248, 0.93);
  border-bottom: 1px solid rgba(23, 36, 31, 0.12);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; }
.brand-mark { width: 46px; height: 38px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; letter-spacing: 0.12em; font-family: Georgia, serif; font-size: 1rem; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.03em; }
.top-nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #eeece4; }
.nav-button { border: 0; border-radius: 999px; padding: 10px 16px; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.nav-button.is-active { background: var(--paper); color: var(--forest); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; color: white; background: var(--forest); border-radius: 999px; font-size: 0.7rem; }

main { min-height: calc(100vh - 150px); }
.view { display: none; }
.view.is-active { display: block; }
.home-hero { width: min(1180px, 92vw); min-height: 650px; margin: 0 auto; padding: 72px 0; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 70px; align-items: center; }
.home-hero-copy h1 { max-width: 690px; font-size: clamp(3rem, 6.8vw, 6.2rem); }
.home-lede { max-width: 700px; color: #4f5c55; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 11px; }
.pilot-line { margin: 24px 0 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.pilot-line span { width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px var(--gold-pale); }
.home-visual { position: relative; min-height: 450px; display: grid; place-items: center; overflow: hidden; color: #f3ddad; background: var(--forest); border-radius: 50% 50% 24px 24px; box-shadow: 0 28px 70px rgba(24, 60, 47, 0.22); }
.home-visual::before { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 50%; }
.visual-steer { position: relative; z-index: 2; width: 55%; }
.visual-steer svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.visual-steer circle { fill: currentColor; stroke: none; }
.family-orbit { position: absolute; inset: 35px; }
.family-orbit span { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; color: var(--forest); background: #f3ddad; border: 3px solid rgba(255, 255, 255, 0.45); border-radius: 50%; font-size: 0.72rem; font-weight: 900; }
.family-orbit span:nth-child(1) { left: 10%; top: 8%; }.family-orbit span:nth-child(2) { left: 45%; top: 0; }.family-orbit span:nth-child(3) { right: 9%; top: 10%; }.family-orbit span:nth-child(4) { right: 0; top: 44%; }.family-orbit span:nth-child(5) { right: 10%; bottom: 8%; }.family-orbit span:nth-child(6) { left: 45%; bottom: 0; }.family-orbit span:nth-child(7) { left: 9%; bottom: 9%; }.family-orbit span:nth-child(8) { left: 0; top: 44%; }
.visual-caption { position: absolute; z-index: 2; bottom: 28px; text-align: center; }
.visual-caption strong, .visual-caption span { display: block; }
.visual-caption strong { font-family: Georgia, serif; font-size: 1.2rem; }
.visual-caption span { margin-top: 3px; color: #bcd0c4; font-size: 0.74rem; }
.home-how { padding: 74px max(4vw, calc((100vw - 1180px) / 2)); color: white; background: var(--forest); }
.home-section-heading { max-width: 800px; }
.home-section-heading .eyebrow { color: #eab96c; }
.home-section-heading h2, .pilot-section h2 { margin-bottom: 14px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }
.home-section-heading p:last-child { color: #c9d9cf; font-size: 1.05rem; line-height: 1.6; }
.home-steps { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-steps article { padding: 25px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 16px; background: rgba(255, 255, 255, 0.055); }
.home-steps article > span { color: #eab96c; font-weight: 900; }
.home-steps h3 { margin: 34px 0 8px; font-family: Georgia, serif; font-size: 1.3rem; }
.home-steps p { margin: 0; color: #c9d9cf; line-height: 1.55; }
.pilot-section { width: min(1080px, 92vw); margin: 0 auto; padding: 86px 0; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.pilot-section > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.pilot-section ul { margin: 24px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.pilot-section li { position: relative; padding-left: 26px; }
.pilot-section li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-2); font-weight: 900; }
.pilot-section aside { padding: 34px; color: white; background: #8b4a35; border-radius: 20px; box-shadow: var(--shadow); }
.pilot-section aside p { margin-bottom: 22px; color: #f2cfb9; font-size: 0.76rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.09em; }
.pilot-section aside h3 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 1.8rem; }
.pilot-section aside span { display: block; margin-bottom: 24px; color: #f2ddd4; line-height: 1.55; }
.pilot-section aside .primary-button { width: 100%; color: #713924; background: #fff1dc; border-color: #fff1dc; }
.hero { width: min(1180px, 92vw); margin: 0 auto; padding: 68px 0 36px; }
.compact-hero { max-width: 900px; }
.eyebrow { margin: 0 0 9px; color: var(--rust); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.72rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 16px; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero > p:not(.eyebrow), .hero > div > p:not(.eyebrow) { max-width: 760px; color: #4f5c55; font-size: 1.08rem; line-height: 1.65; }
.notice { margin-top: 26px; padding: 17px 20px; color: #65442c; background: var(--gold-pale); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; line-height: 1.55; }

.form-shell { width: min(900px, 92vw); margin: 0 auto 72px; background: var(--paper); border: 1px solid rgba(23, 36, 31, 0.12); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.form-section { padding: 34px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 5px; color: var(--forest); font-family: Georgia, serif; font-size: 1.45rem; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--forest); border-radius: 50%; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 760; font-size: 0.88rem; color: #34463d; }
.field em { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #c9cec9; border-radius: 10px; outline: none; transition: 0.15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 88, 69, 0.13); }
.field-error { color: #a1392b; font-size: 0.78rem; }
.full-field { max-width: 540px; }
.check-row { min-height: 47px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.check-row label { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--sage); border-radius: 9px; font-size: 0.82rem; font-weight: 650; }
.check-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--forest);
}

.profile-ranker { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.profile-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; min-height: 94px; padding: 15px; border: 1px solid #d4d8d4; border-radius: 14px; background: white; transition: 0.15s ease; }
.profile-card:first-child { border: 2px solid var(--forest-2); background: #f1f7f3; }
.rank-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--forest); font-weight: 850; }
.profile-card:not(:first-child) .rank-number { color: var(--forest); background: var(--sage); }
.profile-copy strong, .profile-copy span, .profile-copy small { display: block; }
.profile-copy strong { color: var(--forest); font-family: Georgia, serif; font-size: 1.08rem; }
.profile-copy span { margin: 3px 0; color: var(--rust); font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-copy small { color: var(--muted); line-height: 1.4; }
.rank-controls { display: flex; gap: 5px; }
.rank-controls button, .icon-button { width: 36px; height: 36px; border: 1px solid #ccd1cc; border-radius: 9px; color: var(--forest); background: white; font-weight: 800; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 34px; background: #f3f3ed; }
.form-actions p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.primary-button, .secondary-button, .text-button { border-radius: 10px; padding: 12px 17px; font-weight: 800; }
.primary-button { border: 1px solid var(--forest); color: white; background: var(--forest); box-shadow: 0 8px 20px rgba(24, 60, 47, 0.16); }
.primary-button:hover { background: var(--forest-2); }
.secondary-button { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.secondary-button:hover { background: var(--sage); }
.text-button { border: 0; color: var(--forest); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.small-button { padding: 9px 12px; font-size: 0.78rem; }
.result-card { width: min(900px, 92vw); margin: -40px auto 72px; padding: 28px; background: var(--forest); color: white; border-radius: 20px; box-shadow: var(--shadow); }
.result-card h2 { font-family: Georgia, serif; font-size: 1.8rem; }
.result-card p { color: #dce9e0; line-height: 1.55; }
.result-card .eyebrow { color: #efc67d; }
.response-code-field { margin: 22px 0; }
.response-code-field span { color: white; }
.response-code-field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.inline-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.result-card .secondary-button { color: white; border-color: rgba(255, 255, 255, 0.6); }
.result-card .primary-button { color: var(--forest); background: #f6e8c9; border-color: #f6e8c9; }
.result-instructions { margin: 18px 0; padding: 12px 14px; color: #f7ead0; background: rgba(255, 255, 255, 0.09); border-radius: 10px; line-height: 1.5; }

.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 28px; }
.dashboard-hero h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.progress-card { flex: 0 0 240px; padding: 20px; background: var(--forest); color: white; border-radius: 16px; }
.progress-card strong, .progress-card span { display: block; }
.progress-card strong { font-family: Georgia, serif; font-size: 2rem; }
.progress-card > span { color: #cfe0d5; font-size: 0.8rem; }
.progress-track { height: 7px; margin-top: 15px; overflow: hidden; background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
.progress-track span { width: 0; height: 100%; background: #efc67d; border-radius: inherit; transition: width 0.3s ease; }
.dashboard-grid { width: min(1480px, 96vw); margin: 0 auto 70px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--paper); border: 1px solid rgba(23, 36, 31, 0.12); border-radius: 18px; box-shadow: 0 10px 34px rgba(23, 36, 31, 0.06); overflow: hidden; }
.panel-heading { min-height: 94px; padding: 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel-heading h3 { margin: 0; color: var(--forest); font-family: Georgia, serif; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.collection-panel { position: sticky; top: 94px; }
.family-list { padding: 10px; display: grid; gap: 7px; max-height: calc(100vh - 230px); overflow: auto; }
.family-item { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; padding: 11px; border-radius: 10px; background: #f4f3ed; }
.family-number { display: grid; place-items: center; width: 30px; height: 30px; color: var(--forest); background: var(--sage); border-radius: 50%; font-weight: 800; font-size: 0.78rem; }
.family-item strong, .family-item span, .family-item small { display: block; }
.family-item strong { font-size: 0.88rem; }
.family-item span { color: var(--rust); font-size: 0.69rem; font-weight: 800; text-transform: uppercase; }
.family-item small { margin-top: 2px; color: var(--muted); }
.remove-family { width: 29px; height: 29px; border: 0; color: #8b4b3c; background: transparent; font-size: 1.2rem; }
.mini-empty { padding: 38px 18px; text-align: center; color: var(--muted); }
.mini-empty strong, .mini-empty span { display: block; }
.mini-empty strong { color: var(--forest); margin-bottom: 5px; }
.import-box { padding: 16px; background: #f4f3ed; border-bottom: 1px solid var(--line); }
.import-box .inline-actions { margin-top: 10px; }
.status-pill { padding: 8px 11px; color: #6d491e; background: var(--gold-pale); border-radius: 999px; font-size: 0.74rem; font-weight: 800; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; color: white; background: var(--forest); border-radius: 50%; font-family: Georgia, serif; font-size: 2rem; }
.empty-state h3 { margin-bottom: 6px; color: var(--forest); font-family: Georgia, serif; font-size: 1.5rem; }
.empty-state p { color: var(--muted); }
.conflict-summary { padding: 22px; background: #fbf3e6; border-bottom: 1px solid #ead9bc; }
.conflict-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.conflict-heading h3 { margin: 0; color: #6d3f2c; font-family: Georgia, serif; font-size: 1.4rem; }
.conflict-heading > span { padding: 6px 9px; background: white; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.conflict-list { margin-top: 15px; display: grid; gap: 9px; }
.conflict-item { display: grid; grid-template-columns: 9px 1fr; gap: 10px; }
.conflict-item > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--gold); }
.conflict-item.high > span { background: #b63b2b; }
.conflict-item.low > span { background: #3d815f; }
.conflict-item strong { font-size: 0.84rem; }
.conflict-item p { margin: 2px 0 0; color: #745b4a; font-size: 0.76rem; line-height: 1.45; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.summary-strip > div { padding: 16px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span, .summary-strip strong, .summary-strip small { display: block; }
.summary-strip span { min-height: 30px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.summary-strip strong { color: var(--forest); font-family: Georgia, serif; font-size: 1.9rem; }
.summary-strip small { color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; border-bottom: 1px solid var(--line); }
.allocation-table { width: 100%; min-width: 1030px; border-collapse: collapse; font-size: 0.75rem; }
.allocation-table th, .allocation-table td { padding: 12px 9px; text-align: right; border-bottom: 1px solid #e6e5df; }
.allocation-table thead th { position: sticky; top: 0; color: var(--muted); background: #f5f4ee; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.allocation-table thead small { font-weight: 500; text-transform: none; }
.allocation-table th:first-child, .allocation-table td:first-child, .allocation-table th:nth-child(2), .allocation-table td:nth-child(2) { text-align: left; }
.allocation-table tbody th { color: var(--forest); white-space: nowrap; }
.allocation-table tfoot th, .allocation-table tfoot td { background: var(--forest); color: white; border: 0; }
.profile-chip { display: inline-block; padding: 5px 7px; border-radius: 999px; background: var(--sage); color: var(--forest); white-space: nowrap; font-size: 0.65rem; font-weight: 800; }
.profile-chip.fire { background: #f3dbc9; color: #8b412c; }
.profile-chip.slow { background: #ddd6ee; color: #543f77; }
.profile-chip.family { background: #d9e8cf; color: #375b2c; }
.value-chip { display: inline-grid; place-items: center; min-width: 36px; height: 28px; border-radius: 8px; font-weight: 900; }
.balanced-value { color: #215d42; background: #dbeee3; }
.needs-review { color: #8c3f2e; background: #f3d8cf; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; padding: 24px; }
.detail-grid h3 { color: var(--forest); font-family: Georgia, serif; }
.muted { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.limited-list { display: grid; gap: 8px; }
.limited-list details { border: 1px solid var(--line); border-radius: 10px; background: white; }
.limited-list summary { padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.limited-list summary span { font-weight: 800; }
.limited-list summary small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.limited-list summary b { color: var(--rust); font-size: 0.7rem; }
.limited-list details > div { padding: 4px 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.limited-list details > div span { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.72rem; }
.limited-list em { color: var(--ink); font-style: normal; }
.inventory-editor { display: grid; gap: 8px; }
.inventory-editor label, .inventory-total { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 0.76rem; }
.inventory-editor input { width: 75px; padding: 8px; text-align: right; border: 1px solid #ccd1cc; border-radius: 8px; }
.inventory-total { margin-top: 5px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--forest); }
.guidance-footer { padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #e2ece5; background: var(--forest); }
.guidance-footer p { max-width: 720px; margin: 0; font-size: 0.78rem; line-height: 1.5; }
.guidance-footer .primary-button { color: var(--forest); background: #f2ddae; border-color: #f2ddae; white-space: nowrap; }

.method-hero { max-width: 940px; text-align: center; }
.method-hero h1, .method-hero p { margin-left: auto; margin-right: auto; }
.method-grid { width: min(1050px, 92vw); margin: 10px auto 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method-card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.method-card > span { display: inline-block; margin-bottom: 40px; color: var(--rust); font-weight: 900; }
.method-card h2 { color: var(--forest); font-family: Georgia, serif; }
.method-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.method-note { width: min(1050px, 92vw); margin: 0 auto 70px; padding: 28px; color: white; background: var(--forest); border-radius: 18px; }
.method-note h2 { font-family: Georgia, serif; }
.method-note p { margin-bottom: 0; color: #d7e6dc; line-height: 1.6; }

footer { min-height: 74px; padding: 20px 4vw; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #69726d; border-top: 1px solid rgba(23, 36, 31, 0.12); font-size: 0.72rem; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 38px; }
  .home-visual { min-height: 420px; }
  .dashboard-grid { grid-template-columns: 1fr; width: min(920px, 94vw); }
  .collection-panel { position: static; }
  .family-list { max-height: none; grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { position: static; padding: 14px 4vw; flex-direction: column; align-items: stretch; gap: 12px; }
  .brand { justify-content: center; }
  .top-nav { width: 100%; overflow-x: auto; }
  .nav-button { flex: 1; padding: 9px 10px; white-space: nowrap; font-size: 0.74rem; }
  .hero { padding-top: 45px; }
  .home-hero { min-height: 0; padding: 52px 0; }
  .home-hero-copy h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .home-visual { min-height: 350px; border-radius: 44% 44% 18px 18px; }
  .family-orbit { inset: 24px; }
  .family-orbit span { width: 29px; height: 29px; }
  .home-how { padding-top: 55px; padding-bottom: 55px; }
  .home-steps, .pilot-section { grid-template-columns: 1fr; }
  .home-steps h3 { margin-top: 18px; }
  .pilot-section { padding: 60px 0; gap: 30px; }
  .notice { font-size: 0.86rem; }
  .form-section { padding: 24px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 36px 1fr; }
  .rank-controls { grid-column: 2; }
  .form-actions, .guidance-footer, .dashboard-hero { flex-direction: column; align-items: stretch; }
  .form-actions .primary-button { width: 100%; }
  .progress-card { flex-basis: auto; }
  .family-list { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid { padding: 18px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card > span { margin-bottom: 18px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { background: white; }
  .site-header, .collection-panel, .dashboard-hero, .guidance-footer button, footer, .conflict-summary, .summary-strip, .inventory-editor input, #reset-inventory { display: none !important; }
  .view { display: none !important; }
  #dashboard-view { display: block !important; }
  .dashboard-grid { width: 100%; display: block; margin: 0; }
  .panel { border: 0; box-shadow: none; }
  .panel-heading { padding: 0 0 14px; }
  .allocation-table { min-width: 0; font-size: 8pt; }
  .detail-grid { padding: 18px 0; }
  .guidance-footer { display: block !important; color: black; background: white; padding: 12px 0; border-top: 2px solid black; }
}
