﻿:root {
  --bg: #08090b;
  --panel: #12141a;
  --panel-2: #1a1d24;
  --gold: #d7a93f;
  --gold-bright: #f3d37a;
  --text: #f4f0e8;
  --muted: #b8b0a1;
  --line: #4b3b1a;
  --danger: #d45b4f;
  --success: #62d98f;
  --focus-ring: #6dffda;
  --radius-control: 8px;
  --motion-fast: 140ms;
}

.api-hub-summary {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(220, 177, 74, 0.42);
  background: rgba(5, 18, 12, 0.72);
}

.api-hub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.api-connection {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid #2c3c2e;
  color: inherit;
  text-decoration: none;
  background: rgba(6, 14, 10, 0.76);
}

.api-connection span { color: #a9b8ac; font-size: 0.82rem; }
.api-connection em { color: #dcb14a; font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.api-live { border-color: rgba(70, 200, 124, 0.48); }
.api-live em { color: #62d98f; }
.api-degraded, .api-checking, .api-not-configured { border-color: rgba(220, 177, 74, 0.58); }
.api-offline, .api-unavailable { border-color: rgba(239, 68, 68, 0.52); opacity: 0.78; }
.api-offline em, .api-unavailable em { color: #ef7777; }

.discovery-grid { display: grid; gap: 1rem; }
.discovery-card { border: 1px solid rgba(146, 165, 150, .28); background: rgba(8, 16, 14, .72); border-radius: 12px; padding: 1rem; display: grid; gap: .75rem; }
.discovery-card > header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.discovery-card h3 { margin: .2rem 0; }
.discovery-badges, .discovery-actions, .discovery-evidence { display: flex; flex-wrap: wrap; gap: .45rem; }
.discovery-badges span, .discovery-score { border: 1px solid rgba(220, 177, 74, .42); border-radius: 999px; padding: .25rem .55rem; font-size: .75rem; }
.discovery-score { color: #f1c85e; white-space: nowrap; }
.discovery-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .4rem; }
.discovery-score-grid div { background: rgba(255,255,255,.035); padding: .45rem; border-radius: 6px; font-size: .75rem; }
.discovery-evidence a { font-size: .78rem; }
.discovery-submission { margin-top: 1rem; }
.discovery-card[data-verification="VERIFIED"] { border-color: rgba(70, 200, 124, .48); }
.discovery-card[data-review="REJECTED"] { opacity: .66; }

.site-menu,
.gate-menu {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 15, 0.72);
  border-radius: 12px;
  padding: 0;
}

.site-menu summary,
.gate-menu summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  list-style-position: inside;
}

.site-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.site-menu-grid a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
}

.site-menu-grid a:hover {
  border-color: var(--gold-bright);
  background: rgba(207, 163, 74, 0.08);
}

.site-menu-grid strong {
  display: block;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.resource-directory { border-color: #315d70; background: linear-gradient(180deg, rgba(12, 29, 38, .96), rgba(8, 17, 23, .98)); }
.directory-toolbar { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr auto; gap: 10px; align-items: end; margin: 18px 0; }
.directory-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.directory-toolbar select, .directory-toolbar input { width: 100%; box-sizing: border-box; border: 1px solid #2c4b59; background: #09151c; color: #eff9fd; border-radius: 7px; padding: 10px; }
.directory-toolbar button { border: 1px solid #34738b; background: #12394a; color: #eaf8ff; border-radius: 7px; padding: 10px 13px; cursor: pointer; }
.directory-status { color: #a9bec8; margin: 10px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 11px; }
.resource-card { display: grid; gap: 7px; border: 1px solid #294451; background: #0a171e; border-radius: 9px; padding: 14px; }
.resource-card h3, .resource-card p, .resource-card small { margin: 0; }
.resource-card h3 { color: #f0f8fb; }
.resource-card p { color: #c7d5dc; line-height: 1.4; }
.resource-card small { color: #f1ce7a; }
.resource-card a { color: #7dd3fc; }
.spending-live-status{display:grid;gap:10px;margin:0 0 14px}.spending-live-state{justify-self:start;border:1px solid #5c6770;border-radius:999px;padding:5px 9px;color:#c7d5dc;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.spending-live-state.connected{border-color:#27775d;background:rgba(39,119,93,.16);color:#86efac}.spending-live-state.error{border-color:#8b4b4b;background:rgba(139,75,75,.14);color:#fca5a5}.spending-live-status dl{display:grid;gap:6px;margin:0}.spending-live-status dl div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.07);padding:6px 0}.spending-live-status dt{color:var(--muted)}.spending-live-status dd{margin:0;color:var(--gold-bright);font-weight:800;text-align:right}
.directory-boundary { border-left: 3px solid #2a7994; padding: 10px 12px; color: #a9bec8; margin-top: 16px; }

@media (max-width: 760px) { .directory-toolbar { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .site-menu-grid {
    grid-template-columns: 1fr;
  }
}

.network-workspace{border-color:#285166;background:linear-gradient(180deg,rgba(12,35,47,.96),rgba(8,18,25,.98))}.network-heading,.network-title{display:flex;align-items:center;justify-content:space-between;gap:14px}.network-workspace button{border:1px solid #34738b;background:#12394a;color:#eaf8ff;border-radius:7px;padding:9px 12px;cursor:pointer}.network-workspace button:hover{background:#19516a}.network-workspace button:disabled{opacity:.55;cursor:wait}.network-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:18px 0}.network-metrics div{border:1px solid #294451;background:#0d1c24;border-radius:8px;padding:12px}.network-metrics strong{display:block;font-size:24px;color:#7dd3fc}.network-metrics span{font-size:12px;color:#afc3cf}.lifecycle-track{display:grid;grid-template-columns:repeat(8,minmax(105px,1fr));gap:7px;overflow:auto;padding-bottom:8px}.lifecycle-track span{display:flex;align-items:center;gap:7px;border:1px solid #28424f;background:#0d1c24;border-radius:7px;padding:8px;min-width:105px}.lifecycle-track b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1e6077;color:#fff}.lifecycle-track em{font-style:normal;font-size:11px;color:#c8d9e2}.network-filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:10px;margin:14px 0}.network-filters input,.network-filters select,.network-form input,.network-form select,.network-form textarea{width:100%;box-sizing:border-box;border:1px solid #2c4b59;background:#09151c;color:#eff9fd;border-radius:7px;padding:10px}.network-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.network-column{border:1px solid #294451;background:#0a171e;border-radius:9px;padding:13px;min-width:0}.network-column h3{margin:0 0 10px}.network-title span,.case-state{font-size:11px;border:1px solid #2a687e;color:#8de3ff;border-radius:999px;padding:4px 8px}.network-list{display:grid;gap:9px;max-height:590px;overflow:auto}.network-item{display:grid;gap:7px;border:1px solid #203946;background:#101f27;border-radius:8px;padding:11px}.network-item strong{color:#f0f8fb}.network-item p,.network-item small{margin:0;color:#a9bec8;line-height:1.4}.network-item a{color:#7dd3fc}.network-item button{justify-self:start;font-size:12px;padding:7px 9px}.network-actions{display:flex;flex-wrap:wrap;gap:6px}.network-forms{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:12px;margin:14px 0}.network-form{display:grid;gap:9px;border:1px solid #294451;background:#0a171e;border-radius:9px;padding:14px}.network-form h3,.network-form p{margin:0}.network-form>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.network-form textarea{min-height:86px;resize:vertical}.form-status{font-size:12px;color:#86efac}.compact-network .network-list{max-height:300px}.network-policy{border-left:3px solid #2a7994;padding:10px 12px;color:#a9bec8}.funding-match{border-color:#625629}.network-empty{color:#8fa5b0;font-style:italic}

.invention-portfolio{background:linear-gradient(180deg,#101c24,#0a1218);border-color:#385264}.portfolio-heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-start}.portfolio-legend{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.portfolio-legend span{border:1px solid #36576a;border-radius:999px;color:#acd7e8;font-size:11px;padding:6px 9px;white-space:nowrap}.portfolio-controls{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.portfolio-filter{border:1px solid #34566a;background:#0a171e;color:#c9dbe4;border-radius:999px;padding:8px 12px;cursor:pointer}.portfolio-filter.active,.portfolio-filter:hover{background:#1c607a;color:#fff}.portfolio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.portfolio-grid>article{display:grid;align-content:start;gap:8px;border:1px solid #2a414e;background:#0b171e;border-radius:9px;padding:14px;min-height:260px}.portfolio-grid>article[hidden]{display:none}.portfolio-grid>article.priority-invention{border-color:#35718a;background:linear-gradient(150deg,#0e2631,#0b171e)}.portfolio-grid>article>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.portfolio-grid em{font-size:10px;font-style:normal;text-transform:uppercase;letter-spacing:.06em;color:#86efac}.portfolio-rank{font-size:12px;color:#7dd3fc}.portfolio-grid h3,.portfolio-grid p{margin:0}.portfolio-grid h3{color:#f1f8fb}.portfolio-grid p{color:#adc0ca;line-height:1.5}.portfolio-grid dl{display:grid;gap:5px;margin:5px 0 0}.portfolio-grid dt{color:#7dd3fc;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.portfolio-grid dd{margin:0;color:#c7d5dc;font-size:12px;line-height:1.35}.build-order{border-color:#4d5e34;background:linear-gradient(180deg,#171f14,#0c130c)}.build-sequence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.build-sequence>article{display:flex;gap:12px;border:1px solid #394c31;background:#10180f;border-radius:9px;padding:14px}.build-sequence b{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#3d6b35;color:#fff}.build-sequence h3,.build-sequence p{margin:0 0 6px}.build-sequence p{color:#b8c9b4}.build-sequence span{color:#86efac;font-size:11px}.readiness-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:14px}.readiness-grid>article{display:grid;align-content:start;gap:8px;border:1px solid #354b33;background:#0e170d;border-radius:9px;padding:15px}.readiness-grid h3,.readiness-grid p,.readiness-grid ol{margin:0}.readiness-grid ol{padding-left:20px;color:#c3d0bf;line-height:1.65}.readiness-grid a{color:#8fe4ff}.readiness-grid p{color:#b8c9b4;line-height:1.45}

@media(max-width:1180px){.portfolio-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.network-grid,.network-forms,.readiness-grid{grid-template-columns:1fr}.network-filters{grid-template-columns:1fr 1fr}.lifecycle-track{grid-template-columns:repeat(8,130px)}.portfolio-grid,.build-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.network-filters,.network-form>div,.portfolio-grid,.build-sequence{grid-template-columns:1fr}.network-heading,.portfolio-heading{align-items:flex-start;flex-direction:column}.portfolio-legend{justify-content:flex-start}}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(3, 6, 9, 0.12), rgba(3, 6, 9, 0.72) 23%, rgba(3, 6, 9, 0.9) 50%, rgba(3, 6, 9, 0.72) 77%, rgba(3, 6, 9, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(2, 6, 9, 0.56)),
    url('/assets/pmo-robotics-hangar-background-v2.webp');
  background-position: center top, center top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-attachment: fixed;
}

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
.public-home { display: grid; gap: 18px; }
.public-program-card { color: inherit; display: block; text-decoration: none; }
.public-program-card:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.public-program-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.public-program-card strong { color: #80dfb0; display: block; font-size: .78rem; margin-top: .7rem; }
.portfolio-missions a { color: inherit; text-decoration: none; }
.portfolio-missions a:hover strong { color: var(--focus-ring); }
.portfolio-section-title { margin-top: 2rem; scroll-margin-top: 1rem; }
.public-featured-projects { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 1.5rem; }
.public-contact-panel { margin-top: 2rem; }
.public-contact-panel form { display: grid; gap: 1rem; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.public-contact-panel label { color: #dce7ea; display: grid; gap: .45rem; font-weight: 700; }
.public-contact-panel input, .public-contact-panel select, .public-contact-panel textarea { background: #080d0f; border: 1px solid #52646a; border-radius: 8px; color: #f5fbfc; font: inherit; min-height: 44px; padding: .75rem; }
.public-contact-panel textarea { resize: vertical; }
.contact-consent { align-items: start; grid-template-columns: 24px 1fr; font-weight: 400 !important; }
.contact-consent input { min-height: 20px; width: 20px; }
.contact-honeypot { left: -10000px; position: absolute; }
.contact-form-status { min-height: 1.5rem; }
.contact-form-status[data-state="success"] { color: #80dfb0; }
.contact-form-status[data-state="error"] { color: #ffaaaa; }
@media(max-width:680px){.contact-form-grid{grid-template-columns:1fr}}
.public-hero { margin-top: 0; }
.public-principles div { min-height: 120px; }
.public-projects { margin-top: 18px; }
.public-support { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-support .primary-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; padding: 0 22px; text-decoration: none; }
.public-nav{width:min(1380px,calc(100% - 40px));margin:16px auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.public-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.public-brand img{width:46px;height:46px;object-fit:contain}.public-brand span{display:grid}.public-brand strong{text-transform:uppercase;letter-spacing:.08em}.public-brand small{color:#76a49d}.public-nav nav{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.public-nav nav a{color:#b8d0cb;text-decoration:none;font-size:.78rem}.public-nav .nav-login{border:1px solid rgba(109,255,218,.38);border-radius:999px;padding:8px 13px;color:#6dffda}.new-world-lab{width:min(1380px,calc(100% - 40px))}.lab-hero{grid-template-columns:minmax(0,1.04fr) minmax(380px,.96fr);align-items:center;min-height:610px}.lab-hero h1{max-width:780px;font-size:clamp(2.8rem,6.2vw,6.4rem);line-height:.92;letter-spacing:-.055em}.lab-hero figure{overflow:hidden;border-radius:14px}.lab-hero figure img{width:100%;aspect-ratio:3/2;object-fit:cover}.lab-hero figcaption{padding:9px 12px;color:#8fabaa;font-size:.66rem}.public-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:28px;background:#24413c}.public-trust-row span{display:grid;gap:3px;padding:12px;background:#081519;color:#8fa8a4;font-size:.67rem}.public-trust-row strong{color:#dceae7;font-size:.74rem}.flagship-layout{display:grid;grid-template-columns:.78fr 1.22fr;gap:28px;margin-top:24px}.flagship-statement{border-left:3px solid #6dffda;padding:12px 18px}.flagship-statement>strong{color:#6dffda;text-transform:uppercase;font-size:.68rem;letter-spacing:.1em}.flagship-statement p{font-size:1.1rem;line-height:1.65}.flagship-statement a{color:#6dffda}.evidence-ladder{list-style:none;margin:0;padding:0;display:grid;gap:7px}.evidence-ladder li{display:grid;grid-template-columns:52px 1fr;gap:14px;padding:15px;border:1px solid #29433f;background:#071216}.evidence-ladder li>span{color:#6dffda;font-weight:900}.evidence-ladder p{margin:5px 0 0;color:#9cb3ae}.evidence-status-grid,.public-program-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.evidence-status-grid article{padding:20px;border:1px solid #29433f;background:#071216}.evidence-status-grid em,.public-program-grid small{color:#6dffda;font-size:.65rem;font-style:normal;font-weight:900;letter-spacing:.08em}.evidence-status-grid h3{margin:8px 0}.public-evidence-note{margin:14px 0 0;padding:14px;border:1px solid rgba(255,209,102,.28);color:#b9c9c5}.public-program-grid article{overflow:hidden;border:1px solid #29433f;background:#071216}.public-program-grid img{width:100%;aspect-ratio:3/2;object-fit:cover}.public-program-grid article div{padding:16px}.public-program-grid h3{margin:7px 0}.partner-paths{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:20px}.partner-paths a{display:grid;gap:8px;min-height:130px;padding:16px;border:1px solid #31544d;background:#08171a;color:inherit;text-decoration:none}.partner-paths a:hover,.partner-paths a:focus-visible{border-color:#6dffda;transform:translateY(-2px)}.partner-paths strong{color:#e2efec}.partner-paths span{color:#8fa9a4;font-size:.75rem;line-height:1.5}
@media (max-width: 760px) { .public-support { align-items: stretch; flex-direction: column; } }
@media(max-width:980px){.public-nav{align-items:flex-start}.public-nav nav{justify-content:flex-end}.lab-hero,.flagship-layout{grid-template-columns:1fr}.partner-paths{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.public-nav{width:min(100% - 24px,1380px);display:grid}.public-nav nav{justify-content:flex-start}.new-world-lab{width:min(100% - 20px,1380px)}.lab-hero{min-height:0}.lab-hero h1{font-size:clamp(2.6rem,14vw,4.2rem)}.public-trust-row,.evidence-status-grid,.public-program-grid,.partner-paths{grid-template-columns:1fr}}

.funding-command {
  position: relative;
}

.independence-disclosure {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 13px 16px;
  border: 1px solid #e2b957;
  border-left: 5px solid var(--gold-bright);
  border-radius: 7px;
  background: rgba(39, 29, 8, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #f5ead0;
  font-size: 13px;
  line-height: 1.5;
}

.independence-disclosure strong,
.independence-disclosure span {
  display: block;
}

.independence-disclosure strong {
  margin-bottom: 3px;
  color: #fff2bd;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.command-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.command-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c0d11;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.command-nav a:hover {
  border-color: var(--gold-bright);
  background: #171209;
}

.command-nav .nav-project {
  border-color: #937434;
  background: linear-gradient(135deg, #2d220d, #151007);
}

.project-dropdown{position:relative;z-index:40}.project-dropdown summary{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 13px;border:1px solid #937434;border-radius:6px;background:linear-gradient(135deg,#2d220d,#151007);color:var(--gold-bright);font-size:12px;font-weight:900;text-transform:uppercase;cursor:pointer;list-style:none}.project-dropdown summary::-webkit-details-marker{display:none}.project-dropdown summary:after{content:"▾";font-size:10px}.project-dropdown[open] summary{border-color:var(--gold-bright);background:#171209}.project-dropdown-menu{position:absolute;top:calc(100% + 8px);right:0;width:min(390px,calc(100vw - 32px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;border:1px solid #937434;border-radius:9px;background:rgba(8,9,11,.98);box-shadow:0 24px 60px rgba(0,0,0,.6);backdrop-filter:blur(18px)}.command-nav .project-dropdown-menu a{min-height:0;display:block;padding:10px;text-align:left;text-transform:none}.project-dropdown-menu strong,.project-dropdown-menu span{display:block}.project-dropdown-menu strong{color:var(--gold-bright);font-size:12px}.project-dropdown-menu span{margin-top:3px;color:#8e9b9e;font-size:10px;font-weight:600;line-height:1.3}@media(max-width:620px){.command-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.command-nav>a,.project-dropdown summary{width:100%}.project-dropdown-menu{position:fixed;left:16px;right:16px;top:90px;width:auto;grid-template-columns:1fr;max-height:70vh;overflow:auto}}

.command-subnav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 12px;
}

.command-subnav span {
  color: #7f8b8e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-subnav a {
  color: #aeb9bb;
  font-size: 12px;
  text-decoration: none;
}

.command-subnav a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6px 0 28px;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.site-footer p {
  margin: 2px 0;
}

.site-footer strong {
  color: var(--gold-bright);
}

.site-footer .footer-disclosure {
  max-width: 880px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(215, 169, 63, 0.35);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.legal-links a {
  color: var(--gold-bright);
}

.legal-page {
  max-width: 860px;
  margin: 24px auto;
  line-height: 1.65;
}

.legal-page h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.legal-page h2 {
  margin-top: 1.5rem;
}

.legal-page a:not(:where(.primary-button, .secondary-button, .project-action)),
.public-home .panel > p > a:not(:where(.primary-button, .secondary-button, .project-action)),
p.note > a:not(:where(.primary-button, .secondary-button, .project-action)) {
  color: var(--gold-bright);
}

.legal-page a:not(:where(.primary-button, .secondary-button, .project-action)):hover,
.public-home .panel > p > a:not(:where(.primary-button, .secondary-button, .project-action)):hover,
p.note > a:not(:where(.primary-button, .secondary-button, .project-action)):hover {
  color: var(--text);
}

.legal-page a:not(:where(.primary-button, .secondary-button, .project-action)):focus-visible,
.public-home .panel > p > a:not(:where(.primary-button, .secondary-button, .project-action)):focus-visible,
p.note > a:not(:where(.primary-button, .secondary-button, .project-action)):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.skip-link{position:fixed;left:1rem;top:1rem;z-index:9999;transform:translateY(-180%);padding:.75rem 1rem;background:#fff;color:#071216;border:3px solid #7dd3fc;border-radius:.4rem;font-weight:800}.skip-link:focus{transform:none}.contact-paths{display:flex;flex-wrap:wrap;gap:.65rem;margin:1.25rem 0}.contact-paths a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .75rem;border:1px solid #547489;border-radius:.45rem}.legal-page section{scroll-margin-top:1rem}.legal-page section:focus{outline:none}

@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

body[data-access-role="guest"] #fieldProblemForm,
body[data-access-role="guest"] #networkProblemForm,
body[data-access-role="guest"] #networkPartnerForm,
body[data-access-role="guest"] #networkAlertForm,
body[data-access-role="guest"] .discovery-actions {
  display: none;
}

body[data-access-role="guest"] #nextSteps,
body[data-access-role="anonymous"] #nextSteps { display: none; }

.workspace-hub { margin: 28px 0; border: 1px solid #33414c; border-radius: 10px; background: linear-gradient(145deg, rgba(18, 25, 31, 0.97), rgba(8, 12, 16, 0.97)); overflow: hidden; }
.workspace-hub > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; color: #eef8ff; cursor: pointer; list-style: none; }
.workspace-hub > summary::-webkit-details-marker { display: none; }
.workspace-hub > summary::after { content: "Open"; color: var(--gold-bright); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.workspace-hub[open] > summary::after { content: "Close"; }
.workspace-hub-summary-title { display: grid; gap: 4px; }
.workspace-hub-summary-title strong { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.workspace-hub-summary-title span { color: #9caebc; line-height: 1.45; }
.workspace-hub-content { display: grid; gap: 28px; padding: 0 18px 18px; }

.portfolio-grid .priority-invention:nth-child(n + 7), .portfolio-grid > article:nth-child(n + 7) { display: none; }
.portfolio-grid.show-all .priority-invention:nth-child(n + 7), .portfolio-grid.show-all > article:nth-child(n + 7) { display: block; }
.portfolio-expand { margin-top: 18px; }
.command-overview .metric-grid > div:nth-child(n + 5) { display: none; }

@media (max-width: 760px) { .workspace-hub > summary { padding: 18px; align-items: flex-start; } .workspace-hub-content { padding: 0 10px 10px; gap: 18px; } }

body[data-access-role="guest"] {
  background-color: #292309;
  background-image: linear-gradient(rgba(245, 190, 45, 0.12), rgba(245, 190, 45, 0.12));
}

.hero {
  position: relative;
}

.access-identity-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #68727d;
  border-radius: 999px;
  background: #14191f;
  color: #dce4ec;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body[data-access-role="guest"] .access-identity-badge {
  border-color: #f2c94c;
  background: #392e08;
  color: #ffe89a;
}

body[data-access-role="admin"] .access-identity-badge {
  border-color: #49a76f;
  background: #092417;
  color: #bff2ce;
}

.access-login-panel[hidden] { display: none; }
.access-login-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 8, 0.82);
}

.access-login-card {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid #596573;
  border-radius: 10px;
  background: #10151b;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.access-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #dce4ec;
  font-size: 26px;
  cursor: pointer;
}

.access-admin-login { display: inline-flex; margin: 8px 0 18px; text-decoration: none; }
.guest-login-form { display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid #39434e; }
.guest-login-form input { min-height: 44px; }

@media (max-width: 760px) {
  .access-identity-badge { position: static; margin: 0 0 14px auto; display: block; }
}

.panel {
  border: 1px solid var(--line);
  background: rgba(18, 20, 26, 0.94);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  min-height: 300px;
}

.hero-visual-column { display: flex; flex-direction: column; gap: 18px; }
.pmo-funding-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; align-items: stretch; }
.pmo-funding-widget { width: 100%; padding: 16px; border: 1px solid #3b321f; border-radius: 8px; background: rgba(14,14,14,.96); box-shadow: 0 8px 32px rgba(0,0,0,.55); }
.pmo-widget-header, .pmo-widget-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pmo-widget-header { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pmo-live-indicator { display: flex; align-items: center; gap: 7px; }
.pmo-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 9px var(--gold-bright); animation: pmoPulse 2s infinite; }
.pmo-live-text, .pmo-widget-id, .pmo-metric-label, .pmo-percentage, .pmo-metric-value, .pmo-donate-button { font-family: Consolas, "Courier New", monospace; }
.pmo-live-text, .pmo-widget-id { font-size: 10px; letter-spacing: .08em; }
.pmo-live-text { color: var(--gold-bright); font-weight: 800; } .pmo-widget-id { color: var(--muted); }
.pmo-funding-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 12px; }
.pmo-metric-block { display: flex; flex-direction: column; } .pmo-text-right { text-align: right; }
.pmo-metric-label { margin: 0 0 2px; color: var(--gold); font-size: 9px; letter-spacing: .05em; }
.pmo-metric-value { color: #fff; font-size: 20px; line-height: 1.2; }
.pmo-progress-track { width: 100%; height: 7px; margin-bottom: 14px; overflow: hidden; border: 1px solid #3b321f; background: #1a1a1a; }
.pmo-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 10px rgba(215,169,63,.5); transition: width .4s ease; }
.pmo-percentage { color: var(--muted); font-size: 11px; font-weight: 800; }
.pmo-donate-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 3px; background: var(--gold); color: #100e08; font-size: 11px; font-weight: 900; text-decoration: none; }
.pmo-donate-button:hover { background: var(--gold-bright); }
@keyframes pmoPulse { 0%,100% { transform: scale(.95); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
.pmo-qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 7px; border: 1px solid #3b321f; border-radius: 8px; background: #fff; color: #17130a; text-decoration: none; }
.pmo-qr-card img { display: block; width: 100%; max-width: 96px; height: auto; }
.pmo-qr-card span { font-family: Consolas, "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-align: center; }
.pmo-qr-card:hover { border-color: var(--gold-bright); box-shadow: 0 0 14px rgba(243,211,122,.3); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 700px;
  font-size: 48px;
  line-height: 1.02;
}

h2 {
  color: var(--gold-bright);
  font-size: 25px;
}

.note,
.hint {
  color: var(--muted);
  line-height: 1.5;
}

.founder-kicker {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.lead-copy {
  max-width: 760px;
  font-size: 17px;
}

.mission-block,
.founder-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mission-statement,
.mission-close,
.founder-title {
  color: var(--gold-bright);
  font-weight: 800;
  line-height: 1.35;
}

.mission-statement {
  max-width: 700px;
  margin: 0 0 12px;
  font-size: 22px;
}

.mission-close {
  margin: 0;
  font-size: 17px;
}

.founder-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.status-strip span {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c0d11;
  color: var(--muted);
}

.status-strip strong {
  display: block;
  color: var(--gold-bright);
  font-size: 17px;
}

.command-flow {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.command-flow a {
  align-items: center;
  background: linear-gradient(145deg, #0b171c, #0a0f12);
  border: 1px solid #30464e;
  border-radius: 8px;
  color: #c7d2d5;
  display: flex;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  text-decoration: none;
}

.command-flow a:hover {
  border-color: #d7a93f;
  transform: translateY(-1px);
}

.command-flow b {
  background: #72571d;
  border-radius: 50%;
  color: #fff1c7;
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
}

.command-flow strong,
.command-flow span {
  display: block;
}

.command-flow strong {
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.command-flow span {
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-actions a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.admin-session-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #38594a;
  border-radius: 6px;
  background: #08120d;
}

.admin-session-control span {
  color: #a6ddb1;
  font-size: 12px;
  font-weight: 800;
}

.admin-session-control button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #5d7a66;
  border-radius: 5px;
  background: transparent;
  color: #d6ecdc;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-session-control button:hover {
  background: #12231a;
}

.halo-visual {
  margin: 0;
}

.photo-hero {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.photo-hero img,
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(215, 169, 63, 0.32);
  background: #0b0c10;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.hero-logo img {
  width: min(100%, 390px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5), 0 0 34px rgba(215, 169, 63, 0.12);
}

.photoreal-panel {
  margin-top: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.photo-card.wide {
  grid-column: 1 / -1;
}

.gallery-hub-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.gallery-project-card {
  background: linear-gradient(145deg, #10171a, #080d0f);
  border: 1px solid #344348;
  border-radius: 10px;
  color: inherit;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  text-decoration: none;
}

.gallery-project-card:not(.gallery-ready)::before {
  align-self: end;
  color: #45575d;
  content: "PMO";
  font-size: 44px;
  font-weight: 900;
  justify-self: center;
  letter-spacing: .16em;
}

.gallery-project-card:hover { border-color: var(--gold-bright); }
.gallery-project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gallery-project-card span { display: grid; gap: 5px; padding: 14px; }
.gallery-project-card em { color: #80dfb0; font-size: 11px; font-style: normal; text-transform: uppercase; }
.gallery-project-card strong { color: var(--gold-bright); font-size: 18px; }
.gallery-project-card small { color: #9fafb3; line-height: 1.4; }

.project-image-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.project-image-gallery figure { background: #080d0f; border: 1px solid #344348; border-radius: 10px; margin: 0; overflow: hidden; }
.project-image-gallery figure:first-child { grid-column: 1 / -1; }
.project-image-gallery img { display: block; width: 100%; }
.project-image-gallery figcaption { display: grid; gap: 5px; padding: 14px; }
.project-image-gallery figcaption strong { color: var(--gold-bright); }
.project-image-gallery figcaption span { color: #9fafb3; }

.planned-shots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.planned-shots span { border: 1px dashed #536268; border-radius: 10px; color: #9fafb3; min-height: 120px; padding: 18px; }
.gallery-plan-title { margin-top: 28px; }
.build-sequence a { color: inherit; }
.bridge-hero { display:grid; gap:24px; grid-template-columns:1fr 1fr; }
.bridge-hero-image { align-self:center; margin:0; }
.bridge-hero-image img { border:1px solid #665328; border-radius:10px; display:block; width:100%; }
.bridge-hero-image figcaption { color:#8f9da1; font-size:11px; padding-top:8px; text-align:right; }
.requirements-table { display:grid; gap:8px; margin-top:18px; }
.requirements-table div { align-items:center; background:#091216; border:1px solid #2c3d42; border-radius:8px; display:grid; gap:12px; grid-template-columns:150px 1fr 110px; padding:13px; }
.requirements-table strong,.use-case-grid strong,.funding-opportunity-grid strong { color:var(--gold-bright); }
.requirements-table span,.use-case-grid span,.funding-opportunity-grid span { color:#aebdc1; line-height:1.45; }
.requirements-table b { color:#80dfb0; font-size:11px; text-align:right; text-transform:uppercase; }
.compact-sequence { grid-template-columns:1fr; }
.budget-list,.test-gates { display:grid; gap:6px; margin-top:14px; }
.budget-list span { border-bottom:1px solid #29363a; display:flex; gap:12px; justify-content:space-between; padding:9px 0; }
.budget-list b { color:#aebdc1; }.budget-list strong { color:#e9ca7d; }.budget-list .budget-total { border-top:2px solid #7b632e; font-size:17px; margin-top:5px; }
.use-case-grid,.funding-opportunity-grid { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:18px; }
.use-case-grid article,.funding-opportunity-grid a { background:#091216; border:1px solid #304146; border-radius:9px; color:inherit; display:grid; gap:8px; padding:15px; text-decoration:none; }
.funding-opportunity-grid a:hover { border-color:var(--gold-bright); }.funding-opportunity-grid em { color:#80dfb0; font-size:11px; font-style:normal; }
.test-gates span { align-items:center; border:1px solid #2c3d42; border-radius:8px; color:#aebdc1; display:flex; gap:10px; padding:11px; }
.test-gates b { background:#715719; border-radius:5px; color:#fff1c7; padding:5px; }.source-note { border-color:#36596a; }.source-note .dashboard-actions a { color:#8ed9ee; }
.rig-diagram { align-items:center; display:grid; gap:10px; grid-template-columns:repeat(4,minmax(0,1fr) auto) minmax(0,1fr); margin:20px 0; }
.rig-diagram span { background:#091216; border:1px solid #40545b; border-radius:9px; color:var(--gold-bright); padding:16px; text-align:center; }
.rig-diagram small { color:#9fafb3; }.rig-diagram b { color:#80dfb0; text-align:center; }

.photo-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.photo-card.wide img {
  aspect-ratio: 16 / 8.6;
}

.photo-card figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 15px 15px;
  border-top: 1px solid var(--line);
}

.photo-card figcaption strong {
  color: var(--gold-bright);
  font-size: 15px;
}

.photo-card figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.funding-board,
.action-center,
.prototype-divider,
.command-overview,
.opportunity-match-panel,
.submission-panel,
.pipeline-panel,
.ops-system-panel {
  margin-top: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid div {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.metric-grid strong {
  color: var(--gold-bright);
  font-size: 30px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ops-grid article,
.feed-column,
.action-columns > div {
  position: relative;
}

.ops-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.ops-grid h3,
.map-panel h3 {
  margin: 0 0 12px;
  color: var(--gold-bright);
}

.ops-list,
.intelligence-list,
.proposal-list {
  display: grid;
  gap: 9px;
}

.ops-list span,
.intelligence-list span {
  padding: 10px;
  border: 1px solid #302713;
  border-radius: 6px;
  background: #08090b;
  color: var(--muted);
  line-height: 1.4;
}

.ops-list strong {
  color: var(--gold-bright);
}

.pitch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pitch-columns article,
#pitchFundingWorkflow > article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

#pitchFundingWorkflow h3 {
  margin: 0 0 12px;
  color: var(--gold-bright);
}

#pitchFundingWorkflow > article {
  margin-top: 16px;
}

#pitchMarkdownPreview {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
}

.pitch-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 800px) {
  .pitch-columns { grid-template-columns: 1fr; }
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.funding-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 211, 122, 0.08), transparent 42%),
    #0b0c10;
}

.rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
}

.funding-grid h3,
.action-columns h3 {
  margin: 14px 0 0;
  color: var(--gold-bright);
  font-size: 18px;
}

.funding-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.funding-grid strong {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #302713;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.uspto-panel { border-color:#345a68; background:linear-gradient(180deg,rgba(8,27,36,.98),rgba(7,12,16,.99)); }
.uspto-toolbar { display:grid; gap:8px; margin:18px 0 10px; }
.uspto-toolbar label { color:var(--muted); font-size:12px; font-weight:800; }
.uspto-toolbar div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.uspto-toolbar input { min-width:0; border:1px solid #356173; border-radius:7px; background:#07141a; color:#f2fbff; padding:11px 12px; }
.uspto-status,.uspto-summary { color:#a9bec8; margin:10px 0; }
.uspto-summary { color:#f1ce7a; font-size:13px; font-weight:800; }
.uspto-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.uspto-card { display:grid; gap:10px; padding:15px; border:1px solid #294b59; border-radius:9px; background:#09171d; }
.uspto-card small { color:#7dd3fc; font-weight:800; }
.uspto-card h3 { margin:0; color:#f5d77f; font-size:16px; line-height:1.35; }
.uspto-card dl { display:grid; gap:6px; margin:0; }
.uspto-card dl div { display:grid; grid-template-columns:92px minmax(0,1fr); gap:8px; }
.uspto-card dt { color:#829ca8; font-size:11px; font-weight:800; text-transform:uppercase; }
.uspto-card dd { margin:0; color:#d5e3e8; font-size:12px; overflow-wrap:anywhere; }
.uspto-card a { color:#7dd3fc; font-size:12px; font-weight:800; }
@media(max-width:620px){.uspto-toolbar div{grid-template-columns:1fr}.uspto-toolbar button{width:100%}}
.public-news-panel { border-color:#493e24; background:linear-gradient(180deg,rgba(24,21,14,.98),rgba(8,13,16,.99)); }
.public-news-sources { display:flex; flex-wrap:wrap; gap:9px; margin:14px 0; }
.news-source { display:grid; gap:3px; min-width:210px; padding:10px 12px; border:1px solid #3a5d68; border-radius:8px; background:#0b1920; text-decoration:none; }
.news-source strong { color:#f5d77f; font-size:13px; }.news-source span { color:#a9bec8; font-size:11px; }
.news-source-unavailable { border-color:#6c3838; }.news-source-unavailable span { color:#fca5a5; }
.public-news-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:12px; }
.public-news-card { display:grid; gap:9px; padding:15px; border:1px solid #3d3928; border-radius:9px; background:#0b1114; }
.public-news-card small { color:#7dd3fc; font-weight:800; }.public-news-card h3 { margin:0; color:#f5d77f; font-size:16px; line-height:1.35; }
.public-news-card p { margin:0; color:#b9c8ce; font-size:13px; line-height:1.5; }.public-news-card a { color:#7dd3fc; font-size:12px; font-weight:800; }
.openfema-panel { border-color:#31586b; background:linear-gradient(180deg,rgba(8,28,38,.98),rgba(7,13,17,.99)); }
.openfema-toolbar { display:grid; grid-template-columns:auto minmax(180px,280px) auto; gap:10px; align-items:center; margin:16px 0; }
.openfema-toolbar label { color:#a9bec8; font-size:12px; font-weight:800; }.openfema-toolbar select { border:1px solid #356173; border-radius:7px; background:#07141a; color:#f2fbff; padding:10px; }
.openfema-status { color:#a9bec8; margin:10px 0; }.openfema-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:12px; }
.openfema-card { display:grid; gap:9px; padding:15px; border:1px solid #294b59; border-radius:9px; background:#09171d; }.openfema-card small { color:#7dd3fc; font-weight:800; }.openfema-card h3 { margin:0; color:#f5d77f; font-size:16px; }.openfema-card p { margin:0; color:#b9c8ce; font-size:13px; line-height:1.45; }
.openfema-programs { display:flex; flex-wrap:wrap; gap:5px; }.openfema-programs span { padding:4px 7px; border:1px solid #33454d; border-radius:999px; color:#82949c; font-size:10px; }.openfema-programs .active { border-color:#287755; color:#86efac; }.openfema-card a { color:#7dd3fc; font-size:12px; font-weight:800; }
@media(max-width:620px){.openfema-toolbar{grid-template-columns:1fr}.openfema-toolbar button{width:100%}}

.command-grid {
  align-items: stretch;
}

.problem-list {
  display: grid;
  gap: 9px;
}

.problem-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0c10;
}

.problem-list strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.problem-list span {
  color: var(--text);
  line-height: 1.35;
}

.problem-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.action-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-columns > div {
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.action-columns h3 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #302713;
}

.action-columns label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.prototype-divider {
  background:
    linear-gradient(90deg, rgba(215, 169, 63, 0.16), transparent),
    rgba(18, 20, 26, 0.94);
}

.match-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #090a0d;
}

.match-table th,
.match-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #302713;
  text-align: left;
  color: var(--muted);
  line-height: 1.4;
}

.match-table th {
  background: #17191f;
  color: var(--gold-bright);
  font-size: 12px;
  text-transform: uppercase;
}

.match-table td:first-child,
.match-table td:nth-child(2),
.match-table strong {
  color: var(--text);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.map-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #08090b;
  color: var(--gold-bright);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.us-map {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 52%, rgba(215, 169, 63, 0.2), transparent 2%, transparent 100%),
    linear-gradient(rgba(215, 169, 63, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 169, 63, 0.07) 1px, transparent 1px),
    #08090b;
  background-size: auto, 28px 28px, 28px 28px;
}

.us-map::before {
  content: "UNITED STATES NEEDS MAP";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(243, 211, 122, 0.16);
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(215, 169, 63, 0.12);
}

.map-dot.nc { left: 70%; top: 55%; }
.map-dot.gulf { left: 56%; top: 72%; }
.map-dot.west { left: 17%; top: 44%; }
.map-dot.northeast { left: 82%; top: 32%; }
.map-dot.midwest { left: 48%; top: 42%; }
.map-dot.pacific { left: 88%; top: 66%; }
/* Keep the problem-solving workspace and visual build records visible on the command dashboard. */
#problemLab,
#operatingSystem,
#engineeringBuild,
#photorealBuild,
#haloCoreVisuals,
#bridgeCrawlerVisuals,
#roamSarVisuals,
#haloMeshVisuals,
#aquaLiftVisuals,
#liftReliefVisuals,
#emberRoamVisuals,
#medCoolPodVisuals,
#rapidShelterNodeVisuals,
#vectorSentinelVisuals,
#cleanAirScoutVisuals,
#clinicInACaseVisuals,
#nutriScanVisuals,
#learningHubVisuals,
#safeVoiceVisuals,
#floodEyeVisuals,
#makerArmVisuals,
#engineeringBuild { display: block; }

#problemLab,
#operatingSystem,
#photorealBuild,
#engineeringBuild { margin-top: 2rem; }

#photorealBuild,
#engineeringBuild { border-top: 2px solid rgba(215, 169, 63, .45); }

.aqua-lift-visual-section { border-color: rgba(95, 240, 212, .24); }
.aqua-lift-visual-section + .aqua-lift-visual-section { margin-top: 1rem; }
.gallery-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:.6rem;margin:1rem 0}.gallery-strip a{display:block;overflow:hidden;border:1px solid rgba(95,240,212,.2);border-radius:10px}.gallery-strip img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .25s ease}.gallery-strip a:hover img{transform:scale(1.06)}
.usaspending-summary{display:flex;gap:.35rem;align-items:baseline;flex-wrap:wrap;margin:1rem 0;color:var(--muted)}.usaspending-summary strong{color:var(--gold)}.usaspending-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.usaspending-card{border:1px solid rgba(95,240,212,.2);border-radius:12px;padding:1rem;background:rgba(5,14,20,.72)}.usaspending-card .award-category{display:inline-block;color:var(--gold);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.usaspending-card h3{font-size:1rem;line-height:1.35;margin:.55rem 0}.usaspending-card p{color:var(--muted)}.usaspending-card dl{display:grid;gap:.35rem;margin:.8rem 0}.usaspending-card dl div{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid rgba(255,255,255,.07);padding-top:.35rem}.usaspending-card dt{color:var(--muted)}.usaspending-card dd{margin:0;text-align:right}.usaspending-card a{color:var(--cyan);font-weight:700}
.hotspot-console { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(220px,.7fr); gap:1rem; align-items:stretch; }
.radar-map { position:relative; min-height:360px; overflow:hidden; background:radial-gradient(circle at center,rgba(45,238,195,.13),transparent 58%),linear-gradient(145deg,#07151d,#0c202b 55%,#09151e); border:1px solid rgba(95,240,212,.28); }
.radar-ring { position:absolute; inset:12%; border:1px solid rgba(95,240,212,.22); border-radius:50%; pointer-events:none; }.ring-two{inset:28%;}
.radar-sweep { position:absolute; width:50%; height:2px; left:50%; top:50%; transform-origin:left center; background:linear-gradient(90deg,rgba(109,255,218,.8),transparent); animation:radarSweep 5s linear infinite; box-shadow:0 0 16px #6dffda; pointer-events:none; }.radar-sweep:after{content:"";position:absolute;right:0;top:-100px;width:200px;height:200px;background:conic-gradient(from 270deg,rgba(109,255,218,.2),transparent 28deg);transform:rotate(90deg);transform-origin:100% 50%;}
.map-axis{position:absolute;background:rgba(95,240,212,.12);pointer-events:none}.axis-x{height:1px;left:5%;right:5%;top:50%}.axis-y{width:1px;top:5%;bottom:5%;left:50%}
.map-dot{z-index:2; width:18px;height:18px;border:2px solid #a7ffe8;border-radius:50%;background:#0a3941;box-shadow:0 0 0 5px rgba(94,255,213,.1),0 0 18px #4fffd2;cursor:pointer;position:absolute;padding:0}.map-dot i{display:block;width:5px;height:5px;background:#fff;border-radius:50%;margin:4px auto}.map-dot.selected{background:#ffca67;box-shadow:0 0 0 8px rgba(255,202,103,.16),0 0 22px #ffca67}.map-legend{position:absolute;bottom:12px;left:14px;right:14px;display:flex;gap:1rem;flex-wrap:wrap;font-size:.7rem;color:#a8c8c3}.map-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#6dffda;margin-right:4px}.map-legend .legend-sweep{border-radius:0;width:14px;height:2px;vertical-align:middle}.hotspot-readout{border:1px solid rgba(95,240,212,.2);padding:1.2rem;background:rgba(7,20,28,.7);display:flex;flex-direction:column}.hotspot-readout h3{margin:.25rem 0 .65rem}.hotspot-readout dl{display:grid;gap:.65rem;margin-top:auto}.hotspot-readout dt{font-size:.7rem;color:#8fb5ae;text-transform:uppercase;letter-spacing:.08em}.hotspot-readout dd{margin:.1rem 0 0}.readout-reset{margin-top:1rem;align-self:flex-start}.map-filter.active{background:#b4ffe8;color:#06232a}@keyframes radarSweep{to{transform:rotate(360deg)}}
@media(max-width:760px){.hotspot-console{grid-template-columns:1fr}.radar-map{min-height:300px}}
.terrain-command-section{grid-template-columns:1fr}.terrain-command-panel{grid-column:1/-1}.terrain-command-shell{display:grid;grid-template-columns:minmax(180px,.42fr) minmax(0,2fr) minmax(220px,.55fr);gap:10px;min-height:720px;padding:10px;border:1px solid rgba(95,240,212,.22);background:#040b10;box-shadow:0 28px 80px rgba(0,0,0,.5)}.terrain-metrics,.terrain-readout{position:relative;z-index:5;padding:1rem;background:linear-gradient(180deg,rgba(7,23,31,.94),rgba(5,15,22,.88));border:1px solid rgba(95,240,212,.18)}.terrain-label{margin:0 0 .8rem;color:#8fb5ae;font-size:.68rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.terrain-stat{padding:.85rem 0;border-top:1px solid rgba(95,240,212,.12)}.terrain-stat span,.terrain-stat small{display:block;color:#8fb5ae;font-size:.72rem}.terrain-stat strong{display:block;margin:.12rem 0;color:#ecfff9;font-family:"Chakra Petch",sans-serif;font-size:1.65rem}.terrain-stat small{color:#6dffda}.layer-heading{margin-top:1.4rem}.terrain-layer{display:flex;justify-content:space-between;width:100%;margin:.35rem 0;padding:.7rem;border:1px solid transparent;background:rgba(255,255,255,.025);color:#8fb5ae;text-align:left;cursor:pointer}.terrain-layer b{font-size:.62rem;letter-spacing:.1em}.terrain-layer.active{border-color:rgba(95,240,212,.35);background:rgba(95,240,212,.08);color:#ecfff9}.terrain-map{position:relative;min-width:0;min-height:700px;overflow:hidden;border:1px solid rgba(95,240,212,.25);background:#07131c;touch-action:none;cursor:grab}.terrain-map.dragging{cursor:grabbing}.terrain-world{position:absolute;inset:-10%;transform-origin:center;will-change:transform}.terrain-art{position:absolute;inset:0;background:linear-gradient(rgba(3,12,18,.02),rgba(2,7,11,.25)),url('/assets/global-problem-hotspot-concept.webp') center/cover no-repeat;filter:saturate(1.15) contrast(1.07)}.terrain-grid{position:absolute;inset:0;opacity:.22;background-image:linear-gradient(rgba(116,216,255,.24) 1px,transparent 1px),linear-gradient(90deg,rgba(116,216,255,.24) 1px,transparent 1px);background-size:52px 52px;mix-blend-mode:screen}.terrain-map:not(.show-boundaries) .terrain-grid,.terrain-map:not(.show-weather) .terrain-weather,.terrain-map:not(.show-routes) .terrain-route,.terrain-map:not(.show-scan) .terrain-scan{display:none}.terrain-weather{position:absolute;inset:0;opacity:.72;pointer-events:none;background:radial-gradient(ellipse at 20% 32%,rgba(255,255,255,.23),transparent 13%),radial-gradient(ellipse at 68% 20%,rgba(255,255,255,.18),transparent 16%),radial-gradient(ellipse at 48% 65%,rgba(134,207,230,.15),transparent 20%);filter:blur(10px);animation:terrainClouds 16s ease-in-out infinite alternate}.terrain-scan{position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(95,240,212,.08) 49%,rgba(95,240,212,.42) 50%,transparent 51%);background-size:100% 220%;animation:terrainScan 7s linear infinite;mix-blend-mode:screen}.terrain-route{position:absolute;height:1px;transform-origin:left;background:linear-gradient(90deg,transparent,#6dffda,transparent);filter:drop-shadow(0 0 5px #6dffda)}.route-one{left:21%;top:57%;width:39%;transform:rotate(-14deg)}.route-two{left:50%;top:49%;width:30%;transform:rotate(-9deg)}.route-three{left:51%;top:50%;width:22%;transform:rotate(39deg)}.terrain-map .map-dot{width:28px;height:28px;margin:-14px;border:0;background:transparent;--signal:#57dcff;box-shadow:none}.terrain-map .map-dot.critical{--signal:#ff6076}.terrain-map .map-dot.high{--signal:#ffbd59}.terrain-map .map-dot:before{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--signal);box-shadow:0 0 8px 2px var(--signal),0 0 24px 8px color-mix(in srgb,var(--signal) 30%,transparent)}.terrain-map .map-dot:after{content:"";position:absolute;inset:2px;border:1px solid var(--signal);border-radius:50%;animation:terrainPulse 2.6s ease-out infinite}.terrain-map .map-dot i{display:none}.terrain-map .map-dot.selected:after,.terrain-map .map-dot:hover:after{inset:-5px;border-width:2px}.terrain-map .map-dot.west{left:21%;top:58%}.terrain-map .map-dot.midwest{left:52%;top:46%}.terrain-map .map-dot.gulf{left:67%;top:73%}.terrain-map .map-dot.northeast{left:78%;top:43%}.terrain-map .map-dot.nc{left:55%;top:66%}.terrain-map .map-dot.pacific{left:13%;top:68%}.terrain-legend{position:absolute;left:12px;top:12px;display:flex;gap:12px;padding:8px 10px;background:rgba(2,8,13,.76);font-size:.62rem;font-weight:900;text-transform:uppercase}.terrain-legend span:before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#57dcff}.terrain-legend .critical{color:#ff6076}.terrain-legend .critical:before{background:#ff6076}.terrain-legend .high{color:#ffbd59}.terrain-legend .high:before{background:#ffbd59}.terrain-map-tools{position:absolute;right:12px;top:12px;display:grid;gap:5px}.terrain-map-tools button{width:38px;height:38px;border:1px solid rgba(95,240,212,.25);background:rgba(2,8,13,.84);color:#ecfff9;cursor:pointer}.terrain-coordinates,.terrain-altitude{position:absolute;bottom:12px;padding:7px 9px;background:rgba(2,8,13,.76);font:700 .62rem ui-monospace,monospace}.terrain-coordinates{left:12px;border-left:2px solid #6dffda}.terrain-altitude{right:12px;color:#8fb5ae}.terrain-readout h3{font-size:1.4rem}.terrain-readout dl{margin-top:1.2rem}.terrain-boundary{margin:.8rem 0 0}.terrain-command-section>article:last-child{grid-column:1/-1}.terrain-command-section>article:last-child .intelligence-list{grid-template-columns:repeat(5,minmax(0,1fr))}@keyframes terrainPulse{0%{transform:scale(.45);opacity:.9}80%,100%{transform:scale(1.25);opacity:0}}@keyframes terrainClouds{to{transform:translate(5%,-2%) scale(1.08)}}@keyframes terrainScan{to{background-position:0 -220%}}@media(max-width:1100px){.terrain-command-shell{grid-template-columns:190px minmax(0,1fr)}.terrain-readout{grid-column:1/-1;min-height:180px}.terrain-map{min-height:620px}.terrain-command-section>article:last-child .intelligence-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.terrain-command-shell{grid-template-columns:1fr}.terrain-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.terrain-label{grid-column:1/-1}.terrain-map{min-height:520px}.terrain-legend{display:none}.terrain-command-section>article:last-child .intelligence-list{grid-template-columns:1fr}}
@media(max-width:900px){.gallery-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.usaspending-grid{grid-template-columns:1fr}.usaspending-card dl div{display:block}.usaspending-card dd{text-align:left;margin-top:.15rem}}

.source-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 13px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 900;
}

.problem-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.problem-form label {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
}

.problem-form label:nth-child(3),
.problem-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.problem-form input,
.problem-form textarea {
  margin-top: 7px;
}

.problem-form button {
  grid-column: 1 / -1;
}

.pipeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pipeline button {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0c10;
  color: var(--text);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
}

.pipeline button small { color: var(--muted); }
.pipeline button span { text-align: left; }
.pipeline button em { grid-column: 2; color: var(--muted); font-size: 9px; font-style: normal; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.pipeline li.current button { border-color: #6dffda; box-shadow: 0 0 0 1px rgba(109,255,218,.22); }
.pipeline li.complete button { border-color: rgba(109,255,218,.38); background: rgba(15,73,61,.34); }
.pipeline li.complete button em, .pipeline li.current button em { color: #6dffda; }
.pipeline button[aria-pressed="true"] { outline: 2px solid #f5cf55; outline-offset: 2px; }

.pipeline-review {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,9,11,.9);
}
.pipeline-review small, .pipeline-review-actions strong { color: #6dffda; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-review h3 { margin: 4px 0; }
.pipeline-review p { margin: 0; color: var(--muted); }
.pipeline-review-actions { display: grid; gap: 7px; min-width: 170px; }
.pipeline-review-actions button { padding: 8px 10px; }
.pipeline-review-actions button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 720px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-review { grid-template-columns: 1fr; }
}

.proposal-list label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid #302713;
  border-radius: 6px;
  background: #08090b;
  color: var(--muted);
  line-height: 1.4;
}

.solution-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.solution-library article {
  min-height: 118px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.solution-library strong {
  display: block;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.solution-library span {
  color: var(--muted);
  line-height: 1.45;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.module-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 169, 63, 0.1), transparent 44%),
    #0b0c10;
}

.module-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
}

.module-grid h3 {
  margin: 13px 0 0;
  color: var(--gold-bright);
  font-size: 16px;
  line-height: 1.25;
}

.module-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.module-grid strong {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #302713;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.faq-panel {
  border-color: #5c4a24;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.faq-list details {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.faq-list summary {
  padding: 15px 42px 15px 15px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
}

.faq-list details[open] summary {
  color: var(--gold-bright);
  border-bottom: 1px solid #302713;
}

.faq-list p {
  margin: 0;
  padding: 14px 15px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.live-feed-panel {
  margin-top: 18px;
  border-color: #5c4a24;
}

.feed-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.feed-toolbar .compact-button {
  margin-top: 0;
}

#feedStatus {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08090b;
  color: var(--muted);
  line-height: 1.35;
}

.live-feed-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr;
  gap: 14px;
}

.source-directory {
  margin-top: 18px;
  border-color: #5c4a24;
}

.source-status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.source-group {
  margin-top: 22px;
}

.source-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.source-group-heading h3 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 18px;
}

.source-group-heading span {
  color: var(--muted);
  font-size: 12px;
}

.source-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.source-catalog > a {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
  color: var(--text);
  text-decoration: none;
}

.source-catalog > a:hover,
.source-catalog > a:focus-visible {
  border-color: var(--gold);
  background: #11100c;
}

.source-catalog strong {
  color: var(--gold-bright);
  line-height: 1.25;
}

.source-catalog > a > span:not(.source-status) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.source-status {
  width: fit-content;
  margin-top: auto;
  padding: 4px 7px;
  border: 1px solid #4a4437;
  border-radius: 4px;
  color: #d8d0bf;
  background: #171713;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.source-status.connected { border-color: #416d50; color: #a9dfb4; background: #0b1a10; }
.source-status.api-ready { border-color: #536a78; color: #b5dbea; background: #0a151a; }
.source-status.visual { border-color: #665724; color: #f0d477; background: #191507; }
.source-status.monitor { border-color: #514c43; color: #cec6b8; background: #141311; }
.source-status.licensed { border-color: #744943; color: #efb4aa; background: #1b0d0b; }

.feed-column {
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.feed-column h3 {
  margin: 0 0 13px;
  color: var(--gold-bright);
  font-size: 18px;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #302713;
  border-radius: 6px;
  background: #08090b;
}

.feed-item a {
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.feed-item a:hover,
.satellite-stack a:hover,
.anchor-list a:hover {
  color: var(--gold-bright);
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.feed-item p,
.feed-skeleton {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.satellite-stack,
.anchor-list {
  display: grid;
  gap: 9px;
}

.satellite-stack a,
.anchor-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08090b;
  color: var(--text);
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.section-title {
  margin-bottom: 18px;
}

.commands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.command {
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.command.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  background: var(--gold);
  color: #120f08;
}

.secondary-button {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

.meter {
  height: 18px;
  background: #06070a;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

#confidenceBar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 240ms ease;
}

.result {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 18px;
}

#decodedCommand {
  color: var(--gold-bright);
  font-size: 34px;
  font-weight: 900;
}

.flow-panel {
  margin-top: 18px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.flow span {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  text-align: center;
  font-weight: 700;
}

.flow span.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(243, 211, 122, 0.25);
}

.receiver {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0d;
}

.receiver strong {
  display: block;
  color: var(--gold-bright);
  font-size: 32px;
}

.receiver.alert {
  border-color: var(--danger);
}

.channels {
  display: grid;
  gap: 9px;
}

.channel {
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-weight: 700;
}

.channel-track {
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #07080a;
  overflow: hidden;
}

.channel-fill {
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, #8a6822, var(--gold-bright));
  transition: width 220ms ease;
}

.log {
  display: grid;
  gap: 8px;
  max-height: 248px;
  overflow: auto;
}

.log-entry,
.check-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0c10;
  color: var(--muted);
  line-height: 1.35;
}

.log-entry strong,
.check-item.done {
  color: var(--gold-bright);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.roadmap span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
}

.roadmap span.done {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.connector-grid div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0c10;
}

.connector-grid strong {
  display: block;
  color: var(--gold-bright);
  margin-bottom: 7px;
}

.connector-grid span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-shell {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0d;
  padding: 14px;
}

.chat-toolbar {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 110px 86px;
  gap: 10px;
  align-items: end;
}

.chat-toolbar label,
.advanced-grid label {
  display: block;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07080a;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.chat-toolbar input,
.chat-toolbar select,
.advanced-grid input,
.advanced-grid select {
  margin-top: 7px;
  min-height: 44px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.compact-button {
  margin-top: 0;
  min-height: 46px;
}

.advanced-chat-settings {
  color: var(--muted);
}

.advanced-chat-settings summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-weight: 800;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.connection-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #07080a;
}

.connection-status.ready {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.connection-status.error {
  border-color: var(--danger);
  color: #ffb8b1;
}

.halo-diagnostics {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090a0d;
}

.halo-diagnostics summary {
  cursor: pointer;
  padding: 9px 11px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
}

#haloDiagnosticLog {
  max-height: 150px;
  margin: 0;
  overflow: auto;
  padding: 10px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.chat-log {
  display: grid;
  gap: 14px;
  min-height: 360px;
  max-height: 540px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #221b10;
  border-radius: 8px;
  background: #06070a;
}

.chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message .avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
}

.chat-message .bubble {
  max-width: 820px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101217;
  line-height: 1.5;
}

.chat-message strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
}

.user-message {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.user-message .avatar {
  grid-column: 2;
  grid-row: 1;
  background: #21190d;
}

.user-message .bubble {
  justify-self: end;
  grid-column: 1;
  grid-row: 1;
  border-color: #5b4720;
  background: #15120c;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  align-items: end;
}

.switch-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: var(--text);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.engineering-panel {
  margin-top: 18px;
  overflow: hidden;
}

.engineering-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.engineering-heading .section-title {
  max-width: 780px;
}

.spec-badge {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 9px 11px;
  border: 1px solid #78443d;
  border-radius: 4px;
  color: #ffb8b1;
  background: #1b0e0d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.engineering-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0c10;
}

.engineering-summary div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
}

.engineering-summary div:last-child {
  border-right: 0;
}

.engineering-summary strong {
  color: var(--gold-bright);
  font-size: 25px;
}

.engineering-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.engineering-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 18px 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08090b;
}

.engineering-tab,
.part-filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.engineering-tab:hover,
.part-filter:hover,
.engineering-tab.active,
.part-filter.active {
  background: #211a0e;
  color: var(--gold-bright);
}

.engineering-tab:focus-visible,
.part-filter:focus-visible,
.part-ready:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.engineering-view[hidden] {
  display: none;
}

.device-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.placement-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(215, 169, 63, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 169, 63, 0.055) 1px, transparent 1px),
    #08090b;
  background-size: 24px 24px;
}

.orientation-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #796b51;
  font-size: 10px;
  font-weight: 900;
}

.orientation-front { top: 13px; }
.orientation-rear { bottom: 13px; }

.head-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72%, 390px);
  aspect-ratio: 0.82;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gold);
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset 0 0 46px rgba(215, 169, 63, 0.08), 0 0 28px rgba(215, 169, 63, 0.08);
}

.head-map::before,
.head-map::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(215, 169, 63, 0.24);
}

.head-map::before {
  left: 50%;
  top: 8%;
  bottom: 16%;
}

.head-map::after {
  left: 12%;
  right: 12%;
  top: 48%;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  background: #171209;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(243, 211, 122, 0.22);
}

.map-node.reference {
  border-color: #46c7d8;
  color: #8be6ef;
  background: #07171a;
}

.map-node.bias {
  border-color: #78b887;
  color: #a6ddb1;
  background: #09170d;
}

.fp1 { left: 23%; top: 10%; }
.fp2 { right: 23%; top: 10%; }
.c3 { left: 12%; top: 38%; }
.c4 { right: 12%; top: 38%; }
.t7 { left: -5%; top: 56%; }
.t8 { right: -5%; top: 56%; }
.p3 { left: 23%; bottom: 16%; }
.p4 { right: 23%; bottom: 16%; }
.ref { right: -10%; bottom: 6%; }
.bias { left: calc(50% - 21px); top: 28%; }

.electronics-pack {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -10px;
  width: 68%;
  min-height: 46px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: #17191f;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
}

.placement-legend {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.placement-legend div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #302713;
}

.placement-legend strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.placement-legend span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hardware-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 22px;
}

.hardware-chain span {
  position: relative;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #0b0c10;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hardware-chain small {
  color: var(--gold);
  font-size: 10px;
}

.power-layout {
  display: grid;
  grid-template-columns: 150px repeat(5, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid #2c3c2e;
  background: #08100a;
}

.power-layout strong,
.power-layout span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-right: 1px solid #2c3c2e;
  text-align: center;
  font-size: 12px;
}

.power-layout strong {
  color: #a6ddb1;
}

.power-layout span {
  color: var(--muted);
}

.safety-callout,
.reality-note {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #78443d;
  border-radius: 6px;
  background: #150c0b;
}

.safety-callout strong {
  color: #ffb8b1;
}

.safety-callout span,
.reality-note span {
  color: var(--muted);
  line-height: 1.5;
}

.parts-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.part-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.part-filter {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
}

.parts-progress {
  flex: 0 0 auto;
  text-align: right;
}

.parts-progress strong {
  display: block;
  color: var(--gold-bright);
  font-size: 19px;
}

.parts-progress span {
  color: var(--muted);
  font-size: 12px;
}

.parts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.parts-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #090a0d;
}

.parts-table th,
.parts-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #2f2718;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.4;
}

.parts-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #17191f;
  color: var(--gold-bright);
  font-size: 11px;
  text-transform: uppercase;
}

.parts-table td {
  color: var(--muted);
}

.parts-table td:nth-child(3) {
  color: var(--text);
  font-weight: 800;
}

.parts-table tr:last-child td {
  border-bottom: 0;
}

.parts-table tr.ready td {
  background: rgba(120, 184, 135, 0.06);
}

.part-ready {
  width: 19px;
  height: 19px;
  accent-color: var(--gold);
  cursor: pointer;
}

.gate-label {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold-bright);
  white-space: nowrap;
}

.phase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phase-list article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c10;
}

.phase-number {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
}

.phase-list h3 {
  margin: 8px 0 0;
  color: var(--gold-bright);
  font-size: 18px;
}

.phase-list p {
  color: var(--muted);
  line-height: 1.5;
}

.phase-list strong {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #302713;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.reality-note {
  border-color: #38596a;
  background: #081016;
}

.reality-note strong {
  color: #8ed9ee;
}

.command-overview a,
.solution-library a {
  color: inherit;
}

.text-link {
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
  text-decoration: none;
}

.project-page {
  background: radial-gradient(circle at 50% 0, #241b0d 0, #071014 34%, #030607 78%);
}

.project-shell {
  max-width: 1240px;
}

.project-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-breadcrumb a,
.project-action {
  border: 1px solid #755f32;
  border-radius: 999px;
  color: #f1ce7a;
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
}

.project-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.45fr 0.55fr;
}

.project-lead {
  color: #d4dde0;
  font-size: 20px;
  line-height: 1.55;
  max-width: 760px;
}

.project-logo {
  border-radius: 50%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.65));
  max-width: 330px;
  width: 100%;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.project-tags span,
.project-status-list b {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 10px;
}

.state-current { color: #80dfb0; }
.state-planned { color: #f1ce7a; }
.state-evidence { color: #f39c9c; }

.reality-statement {
  border-left: 3px solid #d2a84d;
  color: #aebdc1;
  line-height: 1.6;
  padding-left: 15px;
}

.project-metrics,
.record-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0;
}

.project-metrics article,
.record-grid span {
  background: #091216;
  border: 1px solid #2f3d40;
  border-radius: 14px;
  padding: 18px;
}

.project-metrics strong,
.record-grid strong {
  color: #f1ce7a;
  display: block;
  font-size: 21px;
  margin-bottom: 6px;
}

.project-metrics span,
.record-grid span {
  color: #9eafb4;
}

.record-grid a {
  background: #091216;
  border: 1px solid #2f3d40;
  border-radius: 14px;
  color: #9eafb4;
  padding: 18px;
  text-decoration: none;
}

.record-grid a:hover { border-color: var(--gold-bright); }
.record-grid a strong { color: #f1ce7a; display: block; font-size: 21px; margin-bottom: 6px; }
.project-build-sequence a { color: inherit; }

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-list,
.project-build-sequence {
  color: #afbdc1;
  line-height: 1.65;
  padding-left: 22px;
}

.project-list li { margin: 10px 0; }

.project-status-list {
  display: grid;
  gap: 12px;
}

.project-status-list span {
  align-items: center;
  border-bottom: 1px solid #233035;
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
}

.project-build-sequence {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style-position: inside;
  padding: 0;
}

.project-build-sequence li {
  background: #081115;
  border: 1px solid #293a3e;
  border-radius: 14px;
  padding: 16px;
}

.project-build-sequence strong,
.project-build-sequence span { display: block; }
.project-build-sequence strong { color: #f1ce7a; margin: 5px 0; }

.record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-action {
  display: inline-block;
  margin-top: 10px;
}

.project-footer {
  color: #8d9da2;
  display: flex;
  justify-content: space-between;
  padding: 22px 4px;
}

@media (max-width: 860px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .commands,
  .flow,
  .roadmap,
  .checklist,
  .connector-grid,
  .funding-grid,
  .feed-toolbar,
  .live-feed-grid,
  .metric-grid,
  .ops-grid,
  .problem-form,
  .pipeline,
  .solution-library,
  .module-grid,
  .faq-list,
  .source-catalog,
  .problem-list div,
  .action-columns,
  .chat-toolbar,
  .advanced-grid,
  .chat-input-row,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .command-flow {
    grid-template-columns: 1fr;
  }

  .command-flow a {
    min-height: 62px;
  }

  .project-hero,
  .project-grid,
  .project-metrics,
  .record-grid,
  .project-build-sequence {
    grid-template-columns: 1fr;
  }

  .project-logo {
    margin: auto;
    max-width: 260px;
  }

  .project-footer {
    display: block;
  }

  .gallery-hub-grid,
  .project-image-gallery,
  .planned-shots,
  .bridge-hero,
  .use-case-grid,
  .funding-opportunity-grid {
    grid-template-columns: 1fr;
  }

  .requirements-table div { grid-template-columns:1fr; }
  .requirements-table b { text-align:left; }
  .rig-diagram { grid-template-columns:1fr; }
  .rig-diagram b { transform:rotate(90deg); }

  .project-image-gallery figure:first-child {
    grid-column: auto;
  }

  .source-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .problem-list em {
    text-align: left;
  }

  .problem-form label:nth-child(3),
  .problem-form label:nth-child(4),
  .problem-form button {
    grid-column: auto;
  }

  .us-map::before {
    font-size: 18px;
  }

  .engineering-heading,
  .parts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .spec-badge {
    max-width: none;
  }

  .engineering-summary,
  .device-layout,
  .hardware-chain,
  .power-layout,
  .phase-list {
    grid-template-columns: 1fr;
  }

  .engineering-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .engineering-summary div:last-child {
    border-bottom: 0;
  }

  .placement-map {
    min-height: 400px;
  }

  .placement-legend div,
  .safety-callout,
  .reality-note {
    grid-template-columns: 1fr;
  }

  .power-layout strong,
  .power-layout span {
    border-right: 0;
    border-bottom: 1px solid #2c3c2e;
  }

  .parts-progress {
    text-align: left;
  }

  .halo-visual {
    transform: scale(0.82);
    transform-origin: center;
  }
}

.real-gis-map { background: #07131c; cursor: grab; }
.real-gis-map:active { cursor: grabbing; }
.terrain-map > .terrain-map-canvas.maplibregl-map { position: absolute; inset: 0; }
.terrain-map-status { position: absolute; z-index: 6; left: 50%; top: 50%; width: min(82%, 460px); transform: translate(-50%, -50%); padding: 14px 16px; border: 1px solid rgba(109, 231, 255, .42); background: rgba(2, 10, 16, .92); color: #d9f8ff; box-shadow: 0 18px 48px rgba(0, 0, 0, .48); text-align: center; font: 700 .78rem/1.45 ui-monospace, monospace; }
.terrain-map-status[hidden] { display: none; }
.terrain-map-status[data-state="degraded"] { top: auto; bottom: 54px; transform: translateX(-50%); border-color: rgba(255, 189, 89, .58); color: #ffe2a5; }
.terrain-map-status[data-state="error"] { border-color: rgba(255, 96, 118, .68); color: #ffd1d8; }
.terrain-map-canvas .maplibregl-canvas { outline: none; }
.terrain-map-canvas .maplibregl-ctrl-bottom-right { right: 8px; bottom: 42px; }
.terrain-map-canvas .maplibregl-ctrl-attrib { color: #b8d3d8; background: rgba(2, 8, 13, 0.78); font-size: 10px; }
.terrain-map-canvas .maplibregl-ctrl-attrib a { color: #6de7ff; }
.terrain-gis-marker { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; --signal: #57dcff; }
.terrain-gis-marker.critical { --signal: #ff6076; }
.terrain-gis-marker.high { --signal: #ffbd59; }
.terrain-gis-marker::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px 2px var(--signal), 0 0 24px 8px color-mix(in srgb, var(--signal) 30%, transparent); }
.terrain-gis-marker::after { content: ""; position: absolute; inset: 2px; border: 1px solid var(--signal); border-radius: 50%; animation: terrainPulse 2.6s ease-out infinite; }
.terrain-gis-marker.selected::after { inset: -5px; border-width: 2px; }
.terrain-gis-marker[hidden] { display: none; }
.real-gis-map:not(.show-weather) .terrain-weather, .real-gis-map:not(.show-scan) .terrain-scan { display: none; }
.real-gis-map .terrain-weather, .real-gis-map .terrain-scan, .real-gis-map .terrain-legend, .real-gis-map .terrain-map-tools, .real-gis-map .terrain-coordinates, .real-gis-map .terrain-altitude { z-index: 3; pointer-events: none; }
.real-gis-map .terrain-map-tools { pointer-events: auto; }
.halo-dashboard-only { display: none !important; }
.terrain-map-canvas .leaflet-container { width: 100%; height: 100%; background: #07131c; font-family: inherit; }
.terrain-map-canvas .leaflet-tile-pane { filter: saturate(0.82) contrast(1.08) brightness(0.8); }
.terrain-map-canvas .leaflet-control-attribution { color: #b8d3d8; background: rgba(2, 8, 13, 0.82); }
.terrain-map-canvas .leaflet-control-attribution a { color: #6de7ff; }
.terrain-map-canvas .leaflet-control-zoom { display: none; }
.active-signal-dot { border: 1px solid #d7f9ff; background: #39c9ef; box-shadow: 0 0 7px #39c9ef; }
.active-signal-dot.critical { background: #ff6076; box-shadow: 0 0 8px #ff6076; }
.active-signal-dot.national { background: #ffbd59; box-shadow: 0 0 8px #ffbd59; }
.active-signal-popup strong, .active-signal-popup small { display: block; }
.active-signal-popup small { margin-top: 4px; color: #51656a; }
.terrain-readout dd { overflow-wrap: anywhere; }
.terrain-readout a { display: inline-block; margin-top: .75rem; color: #6dffda; font-weight: 800; }
.terrain-readout dl { display: grid; gap: .55rem; }
.terrain-readout dl > div { padding-bottom: .5rem; border-bottom: 1px solid rgba(95,240,212,.1); }
.terrain-readout dt { color: #71958f; font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.terrain-readout dd { margin: .15rem 0 0; color: #e8f8f4; font-size: .82rem; line-height: 1.35; }
.map-system-bar { display: flex; align-items: center; gap: .35rem; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: auto; margin-bottom: .75rem; padding: .45rem .55rem; border: 1px solid rgba(95,240,212,.18); background: rgba(3,13,19,.92); font: 800 .66rem "Chakra Petch", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.map-system-bar strong { margin-right: auto; color: #e8fff8; }
.map-system-bar a, .map-system-bar span { padding: .42rem .55rem; color: #82aaa4; text-decoration: none; }
.map-system-bar a:hover, .map-system-bar a.active { background: rgba(95,240,212,.1); color: #6dffda; }
.map-system-bar b { color: #d8b55a; }
.map-system-bar b[data-state="operational"] { color: #6dffda; }
.map-system-bar b[data-state="degraded"] { color: #ffbd59; }
.map-system-bar b[data-state="error"] { color: #ff6076; }
.map-alert-heading { margin-top: 1.3rem; }
.map-alert-feed { display: grid; gap: .4rem; max-height: 280px; overflow: auto; }
.map-alert-item { display: grid; gap: .18rem; width: 100%; padding: .55rem; border: 1px solid rgba(95,240,212,.16); border-left: 3px solid #42d9bb; background: rgba(255,255,255,.025); color: #dcefeb; text-align: left; cursor: pointer; }
.map-alert-item.severity-4 { border-left-color: #ff6076; }
.map-alert-item.severity-3 { border-left-color: #ffbd59; }
.map-alert-item.severity-2 { border-left-color: #67d7ff; }
.map-alert-item:hover { background: rgba(95,240,212,.08); }
.map-alert-item span { color: #75aca4; font-size: .55rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.map-alert-item strong { font-size: .7rem; line-height: 1.25; }
.map-alert-item small, .map-alert-status, .map-alert-empty { color: #83a39e; font-size: .58rem; line-height: 1.35; }
.map-alert-empty { margin: 0; padding: .6rem; border: 1px dashed rgba(95,240,212,.14); }
.map-timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; margin-bottom: .75rem; padding: .55rem .65rem; border: 1px solid rgba(95,240,212,.15); background: linear-gradient(90deg,rgba(4,17,24,.96),rgba(7,28,35,.8)); }
.map-timeline > div:first-child { display: grid; gap: .08rem; }
.map-timeline strong { color: #e8fff8; font: 800 .67rem "Chakra Petch",sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.map-timeline span, .map-timeline small { color: #779c97; font-size: .58rem; }
.map-timeline-controls { display: flex; justify-content: center; gap: .3rem; }
.map-timeline-controls button { padding: .38rem .55rem; border: 1px solid rgba(95,240,212,.17); background: rgba(255,255,255,.025); color: #8aaca7; font: 800 .58rem "Chakra Petch",sans-serif; text-transform: uppercase; cursor: pointer; }
.map-timeline-controls button:hover, .map-timeline-controls button.active { border-color: rgba(109,255,218,.55); background: rgba(95,240,212,.11); color: #6dffda; }
.map-timeline > small { max-width: 260px; text-align: right; line-height: 1.3; }
@media (max-width: 720px) { .terrain-command-panel { min-width: 0; } .map-system-bar strong, .map-system-bar a, .map-system-bar span { flex: 0 0 auto; white-space: nowrap; } .map-timeline { grid-template-columns: 1fr; } .map-timeline-controls { justify-content: flex-start; overflow-x: auto; } .map-timeline-controls button { flex: 0 0 auto; } .map-timeline > small { max-width: none; text-align: left; } .map-alert-feed { max-height: 220px; } }
@media (prefers-reduced-motion: reduce) { .terrain-map .map-dot:after, .terrain-weather, .terrain-scan { animation: none !important; } }
@media (max-width: 720px) {
  .terrain-command-section {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .terrain-command-panel {
    padding-inline: 8px;
  }

  .terrain-command-shell {
    gap: 6px;
    padding: 6px;
  }

  .terrain-map {
    min-height: 560px;
  }
}

.terrain-layer:disabled,
.terrain-layer.unavailable {
  cursor: not-allowed;
  opacity: 0.48;
}

.official-layer-heading {
  margin-bottom: 0.45rem;
}

.official-layer-note {
  display: block;
  margin: 0.45rem 0 1rem;
  color: #789b98;
  font-size: 0.62rem;
  line-height: 1.45;
}

.terrain-stat .camera-coordinate-value {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.map-location-search {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 0.35rem;
  min-width: min(100%, 390px);
  margin-right: auto;
}

.map-location-search input,
.map-location-search button {
  min-height: 38px;
  border: 1px solid rgba(95, 240, 212, 0.25);
  background: rgba(3, 14, 20, 0.9);
  color: #e8fff8;
}

.map-location-search input { padding: 0.55rem 0.7rem; }
.map-location-search button { padding: 0.55rem 0.75rem; cursor: pointer; }
.map-location-search small { grid-column: 1 / -1; min-height: 1em; color: #7ea7a1; font-size: 0.62rem; }

@media (max-width: 720px) {
  .map-location-search { flex: 1 0 100%; min-width: 100%; }
  .terrain-command-shell .terrain-map { order: -1; min-height: min(68vh, 620px); }
  .official-layer-note { grid-column: 1 / -1; }
}

.inventor-mode{background:#0b151a;border-color:#37645e}.inventor-heading{display:flex;justify-content:space-between;gap:24px;align-items:start}.inventor-rule{max-width:390px;border-left:3px solid #6dffda;padding:4px 0 4px 14px}.inventor-rule strong,.inventor-rule span{display:block}.inventor-rule strong{color:#6dffda;font-size:10px}.inventor-rule span{color:#d8e7e3;line-height:1.45}.inventor-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.5fr);gap:14px;margin-top:20px}.inventor-controls,.inventor-output{border:1px solid #29433f;background:#071014;padding:16px;border-radius:8px}.inventor-controls{display:grid;gap:13px}.inventor-controls fieldset{border:0;padding:0;margin:0}.inventor-controls legend,.inventor-controls label>span{display:block;margin-bottom:6px;color:#95bbb4;font-size:11px;text-transform:uppercase}.inventor-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.inventor-modes label{position:relative}.inventor-modes input{position:absolute;opacity:0}.inventor-modes span{display:grid;align-content:start;min-height:78px;border:1px solid #2d4b46;padding:10px;background:#0a171b;color:#8ba8a3;cursor:pointer}.inventor-modes strong{color:#e8f3f0;font-size:12px}.inventor-modes input:checked+span{border-color:#6dffda;background:#102824;color:#b8d5cf}.inventor-controls textarea,.inventor-controls input,.inventor-controls select{width:100%;box-sizing:border-box;border:1px solid #2d4b46;background:#061015;color:#e8f3f0;padding:10px}.inventor-controls textarea{min-height:116px;resize:vertical}.inventor-input-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.inventor-generate{min-height:42px;border:1px solid #6dffda;background:#145746;color:#fff;font-weight:800;cursor:pointer}.inventor-output{min-height:480px}.inventor-empty{display:grid;place-items:start;align-content:center;height:100%;max-width:470px;margin:auto;color:#89a7a2}.inventor-output header{border-bottom:1px solid #29433f;padding-bottom:14px}.inventor-output h3{margin:8px 0 5px;font-size:22px}.inventor-output header p{margin:0;color:#b8cbc6;line-height:1.5}.inventor-state{color:#ffd166;font-size:10px;font-weight:800}.inventor-output dl{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#223733;margin:14px 0}.inventor-output dl>div{background:#091418;padding:11px}.inventor-output dt{color:#6dffda;font-size:9px;text-transform:uppercase}.inventor-output dd{margin:4px 0 0;color:#c5d4d0;font-size:12px;line-height:1.45}.inventor-actions{display:flex;gap:8px}.inventor-actions button,.inventor-library-heading button,.inventor-library button{border:1px solid #3e665f;background:#0d2421;color:#d8ebe6;padding:8px 11px;cursor:pointer}.inventor-library-heading{display:flex;justify-content:space-between;align-items:end;margin:22px 0 10px}.inventor-library-heading h3,.inventor-library-heading p{margin:0}.inventor-library-heading p{color:#8fa9a4;font-size:12px}.inventor-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.inventor-library article{display:grid;gap:5px;border:1px solid #29433f;background:#081318;padding:11px}.inventor-library small{color:#ffd166;font-size:9px}.inventor-library span{color:#89a7a2;font-size:11px}.inventor-library button{justify-self:start}.inventor-library-empty{color:#78938e}.inventor-library-heading button:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:900px){.inventor-layout{grid-template-columns:1fr}.inventor-library{grid-template-columns:1fr 1fr}.inventor-output{min-height:0}.inventor-empty{min-height:220px}}
@media (max-width:620px){.inventor-heading{display:block}.inventor-rule{margin-top:14px}.inventor-modes,.inventor-input-row,.inventor-output dl,.inventor-library{grid-template-columns:1fr}.inventor-modes span{min-height:0}.inventor-actions{flex-wrap:wrap}}

/* Desktop layout repair: preserve image proportions and use the available canvas. */
.aqua-lift-visual-section {
  display: none !important;
}

.project-image-gallery img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (min-width: 861px) {
  .app.funding-command {
    width: min(1800px, calc(100% - 48px));
  }

  .project-shell {
    width: min(1600px, calc(100% - 48px));
    max-width: none;
  }

  .project-image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-image-gallery figure:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1101px) {
  .terrain-command-shell {
    align-items: start;
    grid-template-columns: minmax(210px, .42fr) minmax(700px, 2.4fr) minmax(260px, .58fr);
  }

  .terrain-map {
    width: 100%;
    height: clamp(620px, 52vw, 760px);
    min-height: 0;
  }

  .terrain-metrics,
  .terrain-readout {
    max-height: 760px;
    overflow: auto;
  }
}

.ai-boundary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.ai-boundary-strip span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(109, 255, 218, 0.2);
  border-radius: 7px;
  background: rgba(6, 23, 27, 0.82);
}

.ai-boundary-strip small {
  color: #6dffda;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ai-boundary-strip strong {
  overflow-wrap: anywhere;
  color: #dcefeb;
  font-size: 0.72rem;
}

.chat-citations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-citations small { flex-basis: 100%; color: #9dbbb5; font-weight: 800; text-transform: uppercase; }
.chat-citations a { color: #6dffda; font-size: .75rem; text-decoration: underline; }
.chat-trace { display: block; margin-top: 8px; color: #78948f; font-family: ui-monospace, monospace; }

@media (max-width: 620px) {
  .ai-boundary-strip { grid-template-columns: 1fr; }
}


.image-studio-grid{display:grid;grid-template-columns:minmax(18rem,.85fr) minmax(20rem,1.15fr);gap:1.25rem;align-items:start}.image-studio-controls{display:grid;gap:.8rem}.image-studio-controls textarea{min-height:9rem;resize:vertical}.image-options{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.image-options label{display:grid;gap:.35rem}.image-options .image-checkbox{grid-column:1/-1;display:flex;align-items:center;gap:.55rem}.image-options .image-checkbox input{width:auto}.image-preview{min-height:24rem;border:1px dashed rgba(130,190,255,.4);border-radius:1rem;display:grid;place-items:center;overflow:hidden;background:rgba(3,12,24,.55);color:var(--muted,#a9b8c8);text-align:center;padding:1rem}.image-preview img{display:block;width:100%;height:auto;max-height:38rem;object-fit:contain;border-radius:.65rem}@media(max-width:820px){.image-studio-grid{grid-template-columns:1fr}.image-preview{min-height:18rem}}
.nih-search-form{display:grid;gap:.5rem;margin-bottom:.8rem}.nih-search-form .chat-input-row{grid-template-columns:1fr auto}.nih-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:.85rem}.nih-results article{padding:1rem;border:1px solid rgba(130,190,255,.22);border-radius:.8rem;background:rgba(3,12,24,.4)}.nih-results h3{font-size:1rem;margin:0 0 .55rem}.nih-results p{margin:.35rem 0}
.department-search{display:grid;gap:.5rem;margin-top:1.25rem}.department-search>div{display:grid;grid-template-columns:1fr auto;gap:.55rem}.department-search input{min-width:0}.department-results{display:grid;gap:1rem;margin-top:1rem}.department-source{border:1px solid rgba(130,190,255,.22);border-radius:.8rem;padding:1rem;background:rgba(3,12,24,.4)}.department-source header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.department-source header h3{margin:0}.department-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:.65rem;margin-top:.75rem}.department-records article{padding:.8rem;border:1px solid rgba(130,190,255,.16);border-radius:.55rem}.department-records h4{margin:0 0 .4rem}.department-records p{margin:.25rem 0}.department-access-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.department-access-links a{border:1px solid rgba(109,255,218,.25);border-radius:999px;padding:.35rem .65rem}@media(max-width:620px){.department-search>div{grid-template-columns:1fr}.department-source header{align-items:flex-start;flex-direction:column}}
.prompt-studio-grid{display:grid;grid-template-columns:minmax(20rem,1fr) minmax(20rem,1fr);gap:1rem}.prompt-builder-form{display:grid;gap:.75rem}.prompt-builder-form label{display:grid;gap:.35rem;color:#9dbbb5;font-size:.72rem;font-weight:800}.prompt-builder-form textarea{box-sizing:border-box;width:100%;min-height:5.5rem;resize:vertical;border:1px solid #31544d;background:#061015;color:#e8f3f0;padding:.75rem}.prompt-builder-pair{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.prompt-builder-output{min-width:0;border:1px solid #29433f;border-radius:.65rem;background:#071014;padding:1rem}.prompt-builder-output>strong{color:#6dffda}.prompt-builder-output pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#c5d4d0;font:400 .76rem/1.55 ui-monospace,monospace}.operations-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.65rem;margin:1rem 0}.operations-health-grid article{display:grid;gap:.3rem;border:1px solid #29433f;border-radius:.6rem;background:#071014;padding:1rem}.operations-health-grid small{color:#6dffda;font-weight:900;text-transform:uppercase}.operations-health-grid strong{color:#e8f3f0}.operations-health-grid span{color:#89a7a2;font-size:.7rem}@media(max-width:760px){.prompt-studio-grid,.prompt-builder-pair{grid-template-columns:1fr}}
.component-reference{margin-top:1rem;border-top:1px solid #29433f;padding-top:.8rem}.component-reference summary{cursor:pointer;color:#6dffda;font-weight:800}.component-reference>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.5rem;margin-top:.75rem}.component-reference span{display:grid;gap:.25rem;padding:.7rem;border:1px solid #29433f;background:#071014;color:#89a7a2;font-size:.72rem}.component-reference strong{color:#e8f3f0}.pmo-toast-region{position:fixed;right:1rem;bottom:1rem;z-index:1000;max-width:min(26rem,calc(100vw - 2rem))}.pmo-toast{border:1px solid #37645e;border-radius:var(--radius-control);background:#071014;color:#e8f3f0;padding:.8rem 1rem;box-shadow:0 12px 40px rgba(0,0,0,.4)}.pmo-toast-success{border-color:var(--success)}.pmo-toast-error{border-color:var(--danger)}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.intelligence-tools{display:grid;grid-template-columns:auto minmax(10rem,.7fr) auto minmax(14rem,1fr) auto;gap:.5rem;align-items:center;margin-top:1rem;padding:1rem;border:1px solid #29433f;background:#071014}.intelligence-tools label{color:#9dbbb5;font-size:.7rem;font-weight:800}.intelligence-tools input,.intelligence-tools select{min-width:0}.intelligence-tools span{grid-column:1/-1;color:#89a7a2;font-size:.7rem}.diagnostic-runbook{margin-top:1rem}.diagnostic-runbook summary{cursor:pointer;color:#6dffda;font-weight:800}.diagnostic-runbook ol{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;padding:0;list-style:none;counter-reset:runbook}.diagnostic-runbook li{counter-increment:runbook;display:grid;gap:.25rem;padding:.8rem;border:1px solid #29433f;background:#071014}.diagnostic-runbook li strong::before{content:counter(runbook,decimal-leading-zero) " · ";color:#6dffda}.diagnostic-runbook li span{color:#89a7a2;font-size:.72rem}@media(max-width:900px){.intelligence-tools{grid-template-columns:1fr}.intelligence-tools span{grid-column:auto}.diagnostic-runbook ol{grid-template-columns:1fr 1fr}}@media(max-width:600px){.diagnostic-runbook ol{grid-template-columns:1fr}}

/* Playbook refinement: preserve the command-center artwork and existing content. */
:root{--space-control:.75rem;--space-section:clamp(1rem,2.5vw,2rem)}
.app :is(.panel,.card,.record-grid>*,.metric-grid>*,.ops-grid>*){min-width:0}
.app :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.app :is(h1,h2,h3){overflow-wrap:break-word;text-wrap:balance}
.app :is(button,.primary-button,.secondary-button){white-space:normal;overflow-wrap:anywhere}
.nih-results{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.department-records{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.app :is(section[id],h2[id]){scroll-margin-top:1.5rem}
.workspace-skip{position:fixed;left:1rem;top:1rem;z-index:2000;transform:translateY(-200%);padding:.8rem 1rem;border:2px solid var(--focus-ring);background:var(--bg);color:var(--text);font-weight:700}
.workspace-skip:focus{transform:none}
@media(max-width:620px){.app :is(button,.primary-button,.secondary-button,summary){min-height:44px}.app :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:1rem}.image-options{grid-template-columns:minmax(0,1fr)}.command-nav,.command-subnav{flex-wrap:wrap}.app pre{white-space:pre-wrap;overflow-wrap:anywhere}.app .panel{max-width:100%}}

/* Keep the public access buttons inside tablet-width panels. */
@media (min-width:761px) and (max-width:900px){.public-support{align-items:stretch;flex-direction:column}.public-support>div{min-width:0}.public-support .dashboard-actions{width:100%}}

/* Gallery aspect safety: show each photograph without stretching or cropping. */
.gallery-project-card img {
  width: 100%;
  height: clamp(190px, 20vw, 260px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #05090b;
}

.project-image-gallery figure {
  align-self: start;
}

.project-image-gallery img,
.photo-card img,
.photo-card.wide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #05090b;
}

.gallery-strip img {
  object-fit: contain;
  background: #05090b;
}
