:root {
  --ink: #172231;
  --muted: #637286;
  --line: #dfe5eb;
  --line-strong: #cbd4dd;
  --surface: #ffffff;
  --canvas: #f7f9fb;
  --navy: #10283f;
  --accent: #0b7d78;
  --accent-dark: #075f5b;
  --accent-soft: #eaf6f4;
  --danger: #a43636;
  --success: #11734b;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(25, 43, 60, .07);
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); line-height: 1.55; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { overflow-wrap: anywhere; }
pre { margin: 1rem 0; padding: 1rem 1.1rem; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #f4f7f9; color: #243649; font-size: .86rem; line-height: 1.55; }

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.kicker { margin: 0 0 .42rem; color: var(--accent-dark); font-size: .71rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .42rem; color: var(--accent-dark); font-size: .71rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-copy { max-width: 760px; color: #526477; font-size: 1.02rem; line-height: 1.7; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 40, 63, .98); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.48); border-radius: 9px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.05; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: #b9c9d8; font-size: .66rem; }
.primary-nav { min-width: 0; display: flex; align-self: stretch; justify-content: center; gap: 2px; }
.primary-nav a { display: flex; align-items: center; padding: 0 15px; border-bottom: 3px solid transparent; color: #c8d4df; font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active { color: #fff; border-bottom-color: #67d0c7; }
.header-meta { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.header-meta > a { color: #d9e5ee; font-size: .8rem; font-weight: 700; text-decoration: none; }
.identity-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 9px; border-radius: 999px; color: #d8e4ed; background: rgba(255,255,255,.1); font-size: .71rem; font-weight: 800; }
.identity-pill.active { color: #dffcf3; background: rgba(30, 155, 114, .3); }

h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.14; }
h1 { margin-bottom: 1rem; font-size: clamp(2.1rem, 5vw, 4.1rem); letter-spacing: -.045em; }
h2 { margin-bottom: .72rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -.025em; }
h3 { margin-bottom: .5rem; font-size: 1.05rem; }
p { margin-top: 0; }

.hero { padding: 70px 0 62px; background: linear-gradient(135deg, #f5f8fb 0%, #edf6f4 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); align-items: center; gap: 72px; }
.hero-text { max-width: 760px; color: #526477; font-size: 1.08rem; line-height: 1.72; }
.formula-panel { min-width: 0; padding: 26px 28px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
.formula-panel span { display: block; margin-bottom: 13px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.formula-panel strong { display: block; margin-bottom: 13px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; overflow-wrap: anywhere; }
.formula-panel p { margin: 0; color: var(--muted); font-size: .87rem; }
.page-hero { padding: 48px 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .7rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero p:last-child { max-width: 820px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }

.page-stack { display: grid; gap: 34px; padding-top: 34px; padding-bottom: 72px; }
.home-stack { gap: 38px; }
.section-title { min-width: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.section-title h2 { margin-bottom: 0; }
.section-title > a { white-space: nowrap; font-size: .83rem; font-weight: 750; }
.content-section { min-width: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 18px rgba(25,43,60,.035); }
.content-section.featured { border-top: 4px solid var(--accent); }
.plain-section { padding: 4px 0; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 760; text-decoration: none; }
.button.primary, button[type="submit"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover, button[type="submit"]:hover { background: var(--accent-dark); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button.secondary:hover { background: #f8fafb; border-color: #91a3b4; }
.button.compact { min-height: 34px; padding: 6px 11px; font-size: .78rem; }
.button.wide { width: 100%; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: var(--accent-dark); font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: var(--danger); }
button:disabled { opacity: .55; cursor: not-allowed; }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.stat-card { min-width: 0; min-height: 92px; padding: 20px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: 0; }
.stat-card strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 1.58rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card span { color: var(--muted); font-size: .75rem; font-weight: 680; }

.search-section { min-width: 0; display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: end; gap: 28px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-section h2 { margin-bottom: 0; }
.search-form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.search-form input { border-radius: 8px 0 0 8px; }
.search-form button { min-width: 100px; border-radius: 0 8px 8px 0; }

.home-columns { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); align-items: start; gap: 28px; }
.home-aside { min-width: 0; display: grid; gap: 24px; }
.start-panel { min-width: 0; padding: 25px; border-radius: var(--radius); color: #eaf3f8; background: var(--navy); }
.start-panel h2 { color: #fff; }
.start-panel pre { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; }
.start-panel .button.secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }

.result-feed { display: grid; }
.recent-item { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.recent-item:first-child { padding-top: 2px; }
.recent-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.recent-top { display: flex; justify-content: space-between; gap: 15px; }
.method-badge { flex: none; padding: 2px 8px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: .7rem; font-weight: 800; }
.factor-text { margin: 7px 0 4px; color: #26394c; font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.recent-meta { color: var(--muted); font-size: .77rem; }
.record-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.record-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.record-type { display: block; margin-bottom: 15px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.record-number { margin-bottom: 8px; color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.record-card code { display: block; min-height: 44px; font-size: .76rem; }
.record-card footer { margin-top: 14px; color: var(--muted); font-size: .72rem; }

.availability-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.availability-card { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.availability-card strong, .availability-card span, .availability-card small { display: block; }
.availability-card strong { color: var(--navy); font-size: .95rem; }
.availability-card span { color: var(--accent-dark); font-size: .79rem; font-weight: 750; }
.availability-card small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.work-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: start; gap: 24px; }
.command-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.command-notes code { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafb; font-size: .72rem; }
.policy-section { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr); gap: 34px; padding: 28px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.policy-section ol { margin: 0; padding-left: 1.25rem; color: #405468; }
.policy-section li { margin: .45rem 0; }
.scheduler-detail { grid-column: 2; color: var(--muted); font-size: .85rem; }
.assignment-output, .key-output { display: grid; gap: 9px; margin-top: 18px; padding: 16px; border: 1px solid #b7ddd7; border-radius: 9px; background: var(--accent-soft); }
.assignment-output > code, .key-output > code { display: block; padding: 8px; background: rgba(255,255,255,.76); }

.results-grid { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 8px; background: #edf2f5; }
.tab { padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 750; }
.tab.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.inline-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.inline-filter select { width: auto; min-width: 110px; }
.reference-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: .82rem; }

.submit-grid { grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr); align-items: start; }
.form-stack { display: grid; gap: 12px; }
.form-stack label, .two-fields label { display: grid; gap: 5px; color: #354a5d; font-size: .78rem; font-weight: 760; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); outline: 0; }
input, select { min-height: 42px; padding: 8px 11px; }
textarea { padding: 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,125,120,.13); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 7px 0; color: var(--muted); font-size: .74rem; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.check-line { display: flex !important; align-items: center; gap: 8px; }
.check-line input { width: auto; min-height: auto; }
.account-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.turnstile-slot { min-height: 65px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .75rem; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.message { margin-top: 15px; padding: 13px 14px; border-radius: 8px; }
.message.success { color: var(--success); background: #e9f6ef; border: 1px solid #b9dec9; }
.message.error { color: var(--danger); background: #fbefef; border: 1px solid #e8c0c0; }
.message.info { color: #2d5d80; background: #edf4fa; border: 1px solid #c8dae8; }

.table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { padding: 10px 9px; border-bottom: 2px solid var(--line-strong); color: #536679; font-size: .67rem; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { max-width: 440px; padding: 11px 9px; border-bottom: 1px solid #e7ecf0; vertical-align: top; overflow-wrap: anywhere; }
tbody tr:hover { background: #f8fafb; }
.factor-cell { font-family: "SFMono-Regular", Consolas, monospace; font-size: .74rem; }
.known-expression { min-width: 250px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .74rem; }
.empty-state { padding: 18px 0; color: var(--muted); text-align: center; }
.search-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-group:last-child { border-bottom: 0; }

.article-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; align-items: start; padding-top: 42px; padding-bottom: 76px; }
.article-nav { position: sticky; top: 92px; display: grid; border-left: 2px solid var(--line); }
.article-nav a { padding: 8px 14px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.article-nav a:hover { color: var(--accent-dark); }
.article-content { min-width: 0; display: grid; gap: 0; }
.article-content section { padding: 10px 0 34px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-content section:last-child { border-bottom: 0; }
.article-content p, .article-content li { color: #43576a; }
.math-line { margin: 20px 0; padding: 22px; border-left: 4px solid var(--accent); background: #fff; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.85rem); }
.method-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method-list > div { padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.method-list p { margin: 5px 0 0; font-size: .88rem; }
.reference-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reference-list a { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.reference-list strong { color: var(--ink); }
.reference-list span { color: var(--muted); font-size: .78rem; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(420px, calc(100vw - 44px)); padding: 13px 16px; border-radius: 9px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .77rem; }

/* Existing long-form quick-start document */
.docs-page { background: var(--canvas); }
.docs-main { padding-top: 46px; padding-bottom: 70px; }
.docs-hero { max-width: 850px; margin-bottom: 34px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-nav { position: sticky; top: 90px; display: grid; padding: 10px 0; border-left: 2px solid var(--line); }
.docs-nav a { padding: 7px 14px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.docs-content { display: grid; gap: 22px; }
.docs-card { min-width: 0; padding: 27px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.docs-card p, .docs-card li { color: #465b6d; }
.docs-note, .docs-good { margin: 16px 0; padding: 14px 16px; border-left: 3px solid #4f86ae; background: #f0f6fa; }
.docs-good { border-left-color: var(--success); background: #edf8f2; }
.command-label { margin-bottom: -8px; color: var(--ink) !important; font-weight: 800; }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-meta { display: none; }
  .primary-nav { justify-content: flex-end; }
  .hero-grid, .home-columns, .work-grid, .submit-grid, .policy-section { grid-template-columns: 1fr; }
  .scheduler-detail { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card:nth-child(3n) { border-right: 0; }
  .stat-card:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .availability-grid { grid-template-columns: repeat(3, 1fr); }
  .record-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1120px); }
  .site-header { position: static; }
  .header-inner { grid-template-columns: 1fr; gap: 8px; padding: 12px 0 0; }
  .brand { justify-content: center; }
  .primary-nav { justify-content: flex-start; overflow-x: auto; }
  .primary-nav a { min-height: 44px; padding: 0 11px; white-space: nowrap; }
  .hero { padding: 42px 0; }
  h1 { font-size: 2.25rem; }
  .page-hero { padding: 34px 0; }
  .page-stack { gap: 25px; padding-top: 24px; }
  .content-section { padding: 21px 18px; }
  .section-title { display: grid; align-items: start; gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2n) { border-right: 0; }
  .search-section { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .search-form { grid-template-columns: 1fr; gap: 7px; }
  .search-form input, .search-form button { border-radius: 8px; }
  .availability-grid, .record-grid, .method-list, .reference-list, .two-fields { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  .article-nav { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .article-nav a { white-space: nowrap; }
  .footer-inner { min-height: 0; padding: 18px 0; display: grid; }
}

.campaign-options {
  border: 1px solid var(--line, #d8dee8);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: var(--surface-soft, #f7f9fc);
}
.campaign-options summary { cursor: pointer; font-weight: 700; }
.parameter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
  margin-top: .9rem;
}
.parameter-grid label { min-width: 0; }


/* Entity detail pages and deep links */
.entity-link { color: var(--accent-dark); text-decoration: none; }
.entity-link:hover { text-decoration: underline; }
.factor-link { font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.detail-stack { padding-bottom: 72px; }
.detail-stack #detailContent { display: grid; gap: 26px; }
.detail-stats { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.detail-section { min-width: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.detail-notes { display: grid; gap: 10px; }
.detail-notes p { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.worktodo-linked { font-family: "SFMono-Regular", Consolas, monospace; font-size: .74rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
}

/* GMNet 2.2: family status, profiles and progress atlas */
.contributor-link { font-weight: 750; }
.family-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.family-status-card { padding: 20px; border: 1px solid var(--line); border-top: 4px solid #8ba0b3; border-radius: var(--radius); background: #fff; }
.family-status-card.status-known-prime, .family-status-card.status-verified-prime { border-top-color: var(--success); background: #f3fbf7; }
.family-status-card.status-composite { border-top-color: #c76d35; background: #fff8f3; }
.family-status-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.family-status-card code { display: block; overflow-wrap: anywhere; color: var(--ink); }
.family-status-card p { margin: 13px 0 0; color: var(--muted); }
.status-pill { padding: 5px 9px; border-radius: 999px; background: #e8eef3; color: #31475a; font-size: .72rem; font-weight: 800; }
.status-known-prime .status-pill, .status-verified-prime .status-pill { background: #d8f1e4; color: #17603e; }
.status-composite .status-pill { background: #f8e2d3; color: #813d18; }
.profile-stack { padding-bottom: 72px; }
.profile-stack .record-grid:has(.empty-state) { display: block; }
.progress-controls { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; }
.progress-controls label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.progress-controls input, .progress-controls select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.progress-controls button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: .78rem; }
.progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; background: #cbd5de; }
.legend-dot.gm, .progress-bar.gm { background: #2e7ca4; }
.legend-dot.gq, .progress-bar.gq { background: #8b58a8; }
.legend-dot.prime { background: #2f9463; }
.legend-dot.empty { background: #e7ebef; border: 1px solid #cbd3da; }
.progress-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.progress-bin { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.progress-bin.prime { box-shadow: inset 0 3px 0 #2f9463; }
.progress-bin.empty { background: #f4f6f8; color: #71808e; }
.progress-bin strong, .progress-bin small { display: block; }
.progress-bin strong { font-size: .78rem; }
.progress-bin small { margin-top: 8px; color: var(--muted); line-height: 1.35; }
.progress-bars { display: grid; gap: 3px; height: 13px; margin-top: 9px; }
.progress-bar { display: block; min-width: 0; height: 5px; border-radius: 99px; transition: width .2s ease; }
.message.info { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) {
  .family-status-grid { grid-template-columns: 1fr; }
  .progress-controls { grid-template-columns: 1fr; }
  .progress-map { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .progress-map { grid-template-columns: 1fr; } }
