:root {
  /* Connection Center: navy #122559 · gold #edae26 · blue #244d9f · paper #f7f6f2 */
  --navy: #122559;
  --navy-2: #244d9f;
  --navy-deep: #122559;
  --navy-card: #ffffff;
  --navy-elevated: #ffffff;
  --night: #ffffff;
  --gold: #edae26;
  --gold-bright: #f5c040;
  --gold-deep: #c49212;
  --gold-dim: #fff4d2;
  --blue: #244d9f;
  --blue-soft: #244d9f;
  --paper: #f7f6f2;
  --ink: #1a1f36;
  --white: #ffffff;
  --muted: #5c6578;
  --muted-2: #5c6578;
  --line: rgba(18, 37, 89, 0.12);
  --line-soft: rgba(18, 37, 89, 0.12);
  --on-accent: #122559;
  --danger: #9b2226;
  --shadow: 0 10px 28px rgba(18, 37, 89, 0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 100% -8%, rgba(237, 174, 38, 0.26), transparent 52%),
    radial-gradient(ellipse 45% 35% at 0% 8%, rgba(18, 37, 89, 0.07), transparent 48%),
    var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
h1, h2, h3 { color: var(--navy); font-weight: 800; letter-spacing: -0.03em; }
img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--gold);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  border-bottom: 0;
}
.site-header::before {
  content: none;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}
.logo img {
  height: auto;
  width: auto;
  max-height: 38px;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.header-tagline {
  margin: 0 0 0 auto;
  max-width: none;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.header-donate {
  margin-left: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--gold);
  box-shadow: none;
  white-space: nowrap;
}
.header-donate:hover,
.header-donate:focus-visible {
  filter: none;
  color: var(--gold-deep);
  background: #fff;
  box-shadow: none;
}
.header-donate-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-partner { position: relative; }

.header-partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 11rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.header-partner-btn:hover,
.header-partner-btn:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}
.header-partner-btn.is-house { color: var(--gold); border-color: var(--gold); }

.header-partner-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 18.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.95rem 1rem 1rem;
  background: #fff;
  color: var(--navy);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(10, 20, 44, 0.28);
  z-index: 50;
}
.header-partner-panel[hidden] { display: none; }
.header-partner-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.header-partner-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.header-partner-panel .field { margin: 0.65rem 0; }
.header-partner-panel .field input { width: 100%; }
.header-partner-panel .btn-gold { width: 100%; margin-top: 0.15rem; }
.header-partner-error {
  margin: 0;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 700;
}

.header-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-link:hover { color: var(--gold); }
.nav-quiet { color: var(--muted); font-weight: 500; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 2.4rem 0 0.35rem;
  overflow: hidden;
  background: transparent;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.9) contrast(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 37, 89, 0.42) 0%, rgba(18, 37, 89, 0.16) 48%, rgba(18, 37, 89, 0.05) 72%, rgba(247, 246, 242, 0.72) 90%, var(--paper) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  background: none;
  border: 0;
  padding: 0.6rem 0 0.2rem;
  box-shadow: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 0.7rem;
}
.eyebrow.gold { color: var(--gold-deep); }

@media (min-width: 721px) {
  .hero .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(10, 20, 44, 0.55); }
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
  max-width: none;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(10, 20, 44, 0.55);
}
.lead {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
}
.hero .lead,
.hero .search-hint {
  max-width: none;
  color: #fff;
  text-shadow: 0 1px 10px rgba(10, 20, 44, 0.55);
}
.hero .lead {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 0.35rem;
}
.hero .lead-step { margin-bottom: 1.5rem; color: #fff; }
.hero-copy h1 .go-gold,
.hero .lead.go-gold { color: var(--gold); }
.lead strong { color: var(--navy); font-weight: 800; }
.hero .lead strong { color: var(--gold); }
.lead-tail { white-space: nowrap; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  box-shadow: var(--shadow);
}
.search-icon { color: var(--navy); flex: 0 0 auto; }
.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  padding: 0.7rem 0.2rem;
  outline: none;
}
.search-bar input::placeholder { color: var(--muted-2); }
.btn-gold {
  background: var(--gold);
  color: var(--on-accent);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(196, 146, 18, 0.28);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--on-accent); }
.search-hint { color: var(--muted-2); font-size: 0.88rem; margin: 0.7rem 0 0 1rem; }

.need-filter {
  position: relative;
  margin-top: 1.1rem;
}
.need-filter-trigger {
  display: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--gold);
  color: var(--on-accent);
  border-color: var(--gold);
}

.inn-section {
  position: relative;
  z-index: 0;
  padding: 0 0 2.5rem;
}

.inn-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.inn-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.inn-sub { color: var(--muted); margin: 0.35rem 0 0; }

.lantern-meter {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.7rem 1.1rem;
  min-width: 220px;
}
.lantern-count {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.lantern-count span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  text-shadow: none;
}
.lantern-count small {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.lantern-meta { color: var(--muted); font-size: 0.88rem; }
.lantern-meta .dot { margin: 0 0.35rem; opacity: 0.5; }

.street-sky {
  position: relative;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 148, 240, 0.22), transparent 55%),
    linear-gradient(180deg, #0d1c3c 0%, #0a142c 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  min-height: 340px;
  overflow: hidden;
  padding: 2.2rem 1.2rem 1.2rem;
}
.street-sky .house-name,
.street-sky .house-hours { color: #f4f7fb; }
.street-sky .house-beds,
.street-sky .house-hours:not(.is-missing) { color: #f5c040; }
.street-sky .house-updated,
.street-sky .house-hours.is-missing,
.street-sky .street-empty { color: #c5cbd8; }
.street-sky .house-updated.is-stale { color: #e6c56a; }
.street-sky .house-updated.is-missing,
.street-sky .house-hours.is-missing { color: #8b95aa; }
.stars {
  display: block;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 63% 14%, rgba(245,192,64,0.7), transparent),
    radial-gradient(1px 1px at 81% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 47% 6%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 91% 10%, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}

.street {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  column-gap: 1.4rem;
  row-gap: 2.4rem;
  flex-wrap: wrap;
  min-height: 280px;
  padding-bottom: 1.4rem;
}

.street-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.6rem;
  max-width: 42rem;
  line-height: 1.55;
}
.street-sky.has-houses .street-empty { display: none; }

.house {
  --w: 132px;
  --cols: 4;
  width: var(--w);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: center;
  transform-origin: 50% 100%;
  animation: rise 0.7s ease both;
  isolation: isolate;
  flex: 0 0 auto;
}
.house p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.house-caption {
  position: relative;
  flex: 0 0 8.9rem;
  height: 8.9rem;
  margin-top: 0.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.house-waitlist {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  margin: 0.2rem 0 0.2rem;
  padding: 0.28rem 0.4rem;
  max-width: 100%;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-accent);
  box-shadow: 0 8px 18px rgba(196, 146, 18, 0.28);
}
.house-waitlist-phone {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0;
}
.house-waitlist:hover,
.house-waitlist:focus-visible {
  color: var(--on-accent);
  filter: brightness(1.06);
}
.house:nth-child(odd) { --w: 118px; }
.house.is-chosen {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 8px;
}
.house:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.building {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.roof {
  height: 28px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #244d9f, #122559);
  filter: drop-shadow(0 -4px 8px rgba(18, 37, 89, 0.16));
}
.facade {
  background: linear-gradient(180deg, #1d4a96, #122559);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 0;
  padding: 7px 7px 5px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  grid-auto-rows: 18px;
  align-content: start;
  gap: 3px;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.pane {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: #0b1832;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.pane.open {
  background: var(--gold-bright);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.55);
}
.pane.stale {
  background: var(--gold-bright);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.55);
  opacity: 0.88;
}
.pane.unknown {
  background: repeating-linear-gradient(135deg, #122559, #122559 3px, #244d9f 3px, #244d9f 6px);
}
.pane.taken { background: #0c1a38; }

.door {
  width: 22%;
  height: 22px;
  margin: -2px auto 0;
  background: #0a152c;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  position: relative;
}
.door.ajar {
  background: linear-gradient(180deg, #ffe7a3, var(--gold));
  box-shadow: 0 0 16px rgba(237, 174, 38, 0.7);
}
.sill {
  height: 10px;
  background: linear-gradient(180deg, #244d9f, #122559);
  border-top: 1px solid rgba(237, 174, 38, 0.55);
  box-shadow: 0 2px 0 rgba(18, 37, 89, 0.2);
}
.house-sash {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  width: 96%;
  transform: translate(-50%, -50%) rotate(-18deg);
  margin: 0;
  background: #edae26;
  color: #122559;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  padding: 3px 2px 2px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(18, 37, 89, 0.28);
}
.house-sash span {
  display: block;
  white-space: nowrap;
}
.house-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
.house-beds {
  margin: 0.1rem 0 0.15rem;
  font-size: 0.7rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.house-updated {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted-2);
}
.house-updated.is-stale { color: var(--danger); }
.house-updated.is-missing { color: var(--muted); font-style: italic; }
.house-hours {
  margin: 0.12rem 0 0;
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}
.house-hours.is-missing { color: var(--muted); font-style: italic; font-weight: 500; }
.card-hours {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.house.is-dim { opacity: 0.38; filter: grayscale(0.4); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}
.swatch.open { background: var(--gold); box-shadow: none; }
.swatch.taken { background: #122559; box-shadow: inset 0 0 0 1px rgba(18, 37, 89, 0.2); }
.swatch.stale { background: var(--gold-deep); }
.swatch.unknown { background: repeating-linear-gradient(135deg, #122559, #244d9f 4px); }

.matches {
  position: relative;
  z-index: 2;
  padding: 1rem 0 3rem;
}
.matches[hidden] { display: none; }
.list-title { font-size: 1.25rem; margin: 0 0 1rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
  align-items: start;
}
.card {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card .partner { color: var(--gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--navy);
}
.pill.warn { background: #fff4d2; color: var(--gold-deep); }
.avail {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid var(--line-soft);
  font-weight: 700;
}
.avail strong { color: var(--navy); font-size: 1.15rem; }
.avail small { color: var(--muted-2); font-weight: 500; }
.card-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.card-actions a {
  color: var(--on-accent);
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.card-actions a.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.notes { padding-bottom: 3rem; }
.notes h2 { margin-bottom: 0.6rem; }
.how { color: var(--muted); padding-left: 1.15rem; }
.how li { margin: 0.45rem 0; }
.crisis {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 6px solid var(--gold);
  background: #fff;
  border-radius: 12px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.site-footer {
  background: #244d9f;
  border-top: 0;
  padding: 1.6rem 0 2rem;
  color: #fff;
  font-size: 0.88rem;
}
.site-footer a:not(.header-donate) { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:not(.header-donate):hover { color: var(--gold-dim); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Partner + admin pages */
.page { padding: 2.2rem 0 3.5rem; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  margin-top: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.8rem 0; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 37, 89, 0.2);
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: #fff !important;
  color: var(--navy) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}

.gate-card {
  max-width: 32rem;
  margin-top: 2rem;
}
.gate-error {
  color: var(--danger);
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.admin-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}
.hub-card:hover {
  border-color: var(--gold);
  color: inherit;
}
.hub-card h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.2rem;
}
.hub-card p {
  color: var(--muted);
  margin: 0;
}
.hub-go {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.88rem;
}
.bed-stepper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.bed-stepper button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}
.bed-stepper input {
  width: 88px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.status { color: var(--muted); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.flash { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--gold-dim); color: var(--navy); margin: 0.8rem 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 1rem;
}
.field-wide { grid-column: 1 / -1; }
.checks {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.5rem;
  margin: 0.8rem 0;
}
.checks legend {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0 0.35rem;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 1rem 0.45rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.manual-title { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.manual-ul { list-style: none; padding: 0; margin: 0; }
.manual-ul li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.manual-ul .btn-ghost { width: auto; padding: 0.35rem 0.7rem; font-size: 0.8rem; }

.btn-delete {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-delete:hover {
  background: var(--danger);
  color: #fff;
}
.table .btn-delete { width: auto; }
.table .btn-ghost { width: auto; padding: 0.32rem 0.65rem; font-size: 0.78rem; margin-top: 0.35rem; }
.table input[data-k="newpass"] { margin-top: 0.35rem; width: 100%; min-width: 9rem; }
.house-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}
.house-head h1 { margin: 0; }

.program-block {
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.program-block:last-of-type { border-bottom: 0; }
.program-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.program-head h3 { margin: 0; font-size: 1.05rem; }
.program-head .btn-delete { width: auto; }
.add-program {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.add-program h3 { margin: 0 0 0.35rem; }
.program-details {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.program-details h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.waitlist-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.prospect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.prospect-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.prospect-card.is-approved { border-color: var(--gold); }
.prospect-card h3 { margin: 0; font-size: 1.05rem; }
.prospect-card .field { margin: 0.35rem 0 0; }
.prospect-card .field input,
.prospect-card .field select { padding: 0.45rem 0.55rem; }
.prospect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.prospect-actions .btn-gold,
.prospect-actions .btn-delete { width: auto; }
.copy-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.copy-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 37, 89, 0.2);
  background: #fff;
  color: var(--ink);
}
.copy-row button { width: auto; padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.table .copy-link { width: auto; padding: 0.32rem 0.65rem; font-size: 0.78rem; margin-top: 0.35rem; }

.prospect-file {
  margin-top: 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.prospect-file summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  font-weight: 800;
  font-size: 0.92rem;
}
.prospect-file summary::-webkit-details-marker { display: none; }
.prospect-file summary::before {
  content: "▸";
  color: var(--gold);
  margin-right: 0.35rem;
}
.prospect-file[open] summary::before { content: "▾"; }
.prospect-file .file-label { flex: 1; }
.prospect-file .file-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--gold);
  border-radius: 999px;
  min-width: 1.6rem;
  text-align: center;
  padding: 0.12rem 0.45rem;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0 0.55rem 0.55rem;
  border-top: 1px solid var(--line-soft);
}
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}
.file-row:last-child { border-bottom: 0; }
.file-row.is-fresh {
  background: var(--gold-dim);
  border-radius: 8px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
.file-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}
.prospect-file .btn-gold,
.prospect-file .btn-ghost,
.prospect-file .btn-delete {
  width: auto;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
}
.prospect-file .hub-go { margin-top: 0; font-size: 0.78rem; }

/* Partner house dashboard */
.partner-page [hidden] { display: none !important; }
.partner-page .page { padding-top: 1.4rem; }
.partner-page.desk-on {
  background:
    radial-gradient(ellipse 70% 45% at 100% -8%, rgba(237, 174, 38, 0.26), transparent 52%),
    radial-gradient(ellipse 45% 35% at 0% 8%, rgba(18, 37, 89, 0.07), transparent 48%),
    var(--paper);
}
.desk-wrap { width: min(100% - 2rem, 1180px); }
.desk-flash:empty { display: none; }
.desk-flash { position: sticky; top: 76px; z-index: 30; }
.desk-flash .flash {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.desk-flash .flash.is-ok {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--navy);
}

.desk-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}
.desk-login-art h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  max-width: 16ch;
}
.desk-login-art p { color: var(--muted); max-width: 38ch; }
.desk-login-sky {
  margin-top: 1.6rem;
  width: min(180px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}
.desk-login-sky .facade { min-height: 72px; grid-auto-rows: 22px; }
.desk-login-card { margin-top: 0; width: 100%; max-width: none; }
.desk-login-card .btn-gold { width: 100%; }

.desk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr);
  gap: 1.4rem 2rem;
  align-items: end;
  margin-bottom: 1.2rem;
}
.desk-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
}
.desk-title-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0 0 0.55rem;
}
.desk-title-form input {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
}
.desk-title-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.desk-title-form .btn-gold {
  width: auto;
  flex: 0 0 auto;
}
.desk-lead {
  color: var(--muted);
  margin: 0 0 0.45rem;
  max-width: 48ch;
}
.desk-meta {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 700;
}
.desk-hero-side { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-end; }
.desk-hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.desk-hero-actions .btn-gold { width: auto; }
.desk-sky {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 0.85rem 0.9rem 0.7rem;
  min-height: 132px;
  min-width: min(100%, 280px);
}
.desk-mini-house {
  width: 72px;
  text-align: center;
}
.desk-mini-house .facade {
  padding: 4px;
  gap: 2px;
  grid-auto-rows: 10px;
  min-height: 0;
}
.desk-mini-house .roof { height: 16px; }
.desk-mini-house .door { height: 12px; width: 28%; }
.desk-mini-house .sill { height: 6px; }
.desk-mini-house p {
  margin: 0.28rem 0 0;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.desk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.desk-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem 0.95rem;
  min-width: 0;
}
.desk-kpi.is-fresh { border-color: var(--gold); }
.desk-kpi.is-stale { border-color: var(--danger); }
.desk-kpi-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted-2);
}
.desk-kpi-value {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
}
.desk-kpi-value.gold {
  color: var(--navy);
  text-shadow: none;
}
.desk-kpi-when { font-size: 1.02rem; line-height: 1.25; }
.desk-kpi-hint { margin: 0; color: var(--muted); font-size: 0.8rem; }

.desk-section { margin-top: 1.7rem; }
.desk-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.desk-section-head h2 { margin: 0; font-size: 1.25rem; }
.desk-section-head p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 52ch; }

.desk-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
  align-items: start;
}
.desk-program,
.desk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem 1.15rem;
  min-width: 0;
}
.desk-program { display: flex; flex-direction: column; gap: 0.15rem; }
.desk-card-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.desk-card h3 { margin: 0 0 0.25rem; font-size: 1.12rem; }
.desk-card .btn-gold,
.desk-program .btn-gold { width: auto; }
.desk-program-top {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}
.desk-program-house .facade {
  padding: 5px;
  gap: 2px;
  grid-auto-rows: 11px;
}
.desk-program-house .roof { height: 18px; }
.desk-program-house .door { height: 14px; }
.desk-program-house .sill { height: 7px; }
.desk-program-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.desk-program-head h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.desk-chip {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-dim);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.desk-program-stat {
  margin: 0.25rem 0 0;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.desk-program-stat strong {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}
.desk-program-stat span { color: var(--muted); font-size: 0.86rem; }
.desk-fresh {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-2);
}
.desk-fresh.is-fresh { color: var(--navy); }
.desk-fresh.is-stale { color: var(--danger); }
.desk-fresh.is-missing { color: var(--muted); font-style: italic; font-weight: 500; }
.desk-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.desk-hours { margin: 0.35rem 0 0; }
.desk-hint { margin: 0 0 0.35rem; font-size: 0.82rem; }
.desk-details {
  margin-top: 0.45rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--paper);
  overflow: visible;
}
.desk-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.9rem;
  font-weight: 800;
  font-size: 0.88rem;
}
.desk-details summary::-webkit-details-marker { display: none; }
.desk-details summary::before {
  content: "▸";
  color: var(--gold);
  margin-right: 0.4rem;
}
.desk-details[open] summary::before { content: "▾"; }
.desk-program:has(> .desk-details[open]) {
  grid-column: 1 / -1;
}
.desk-details[open] .program-details {
  margin: 0;
  padding: 0.85rem 1.1rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  overflow: visible;
}
.desk-details[open] .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.1rem;
}
.desk-details[open] .field input,
.desk-details[open] .field textarea,
.desk-details[open] .field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.desk-details[open] .program-details > .field {
  max-width: none;
}
.desk-details[open] .checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.15rem 0.6rem;
  overflow: visible;
}
.desk-details[open] .checks label {
  margin: 0.15rem 0;
  white-space: normal;
}
.desk-program-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7rem;
}
.desk-grow {
  align-self: start;
}
.desk-grow summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  width: auto;
}
.desk-grow summary::-webkit-details-marker { display: none; }
.desk-grow[open] {
  grid-column: 1 / -1;
}
.desk-grow[open] > summary {
  margin-bottom: 0.75rem;
}
.desk-add {
  border-style: dashed;
  border-color: var(--line);
  background: var(--gold-dim);
  margin-top: 0;
}
.desk-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .desk-login,
  .desk-hero,
  .desk-kpis,
  .desk-settings-grid {
    grid-template-columns: 1fr;
  }
  .desk-hero-side,
  .desk-sky { align-items: stretch; justify-content: flex-start; }
  .desk-kpis { grid-template-columns: 1fr 1fr; }
  .desk-details[open] .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 52px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  .hero { padding-top: 0.55rem; }
  .hero-copy { padding-top: 0.05rem; }
  .page { padding-top: 0.75rem; }
  .header-nav { display: none; }
  .logo img {
    max-height: 34px;
    max-width: min(170px, 48vw);
  }
  .hero {
    overflow: visible;
    z-index: 3;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
  }
  .hero .lead-step { margin-bottom: 0.55rem; }
  .search { order: 4; width: 100%; }
  .need-filter {
    order: 3;
    align-self: flex-end;
    margin: 0 0 0.75rem;
    z-index: 5;
  }
  .need-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: min(16rem, 62vw);
    border: 1px solid rgba(237, 174, 38, 0.72);
    background: rgba(18, 37, 89, 0.92);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.7rem 0.4rem 0.85rem;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(10, 20, 44, 0.28);
  }
  .need-filter-trigger:hover,
  .need-filter.open .need-filter-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(237, 174, 38, 0.22);
  }
  .need-filter-trigger-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
  }
  .need-filter-trigger-title {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .need-filter-trigger-value {
    display: block;
    max-width: 10.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
  }
  .need-filter-chevron {
    flex-shrink: 0;
    color: var(--gold-bright);
    transition: transform 0.15s ease;
  }
  .need-filter.open .need-filter-chevron { transform: rotate(180deg); }
  .need-filter .chips {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.15rem;
    width: max-content;
    min-width: 12.5rem;
    max-width: min(280px, calc(100vw - 2rem));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    background: var(--navy);
    border: 1px solid rgba(237, 174, 38, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    z-index: 6;
  }
  .need-filter.open .chips { display: flex; }
  .need-filter .chip {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .need-filter .chip:hover {
    background: rgba(36, 77, 159, 0.45);
    color: var(--gold-bright);
  }
  .need-filter .chip[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--on-accent);
  }
  .hero .search-hint { display: none; }
  .search-bar { flex-wrap: wrap; border-radius: 18px; padding: 0.55rem; }
  .search-bar input { width: 100%; padding-left: 0.4rem; }
  .btn-gold { width: 100%; }
  .header-donate { width: auto; }
  .header-partner-btn { width: auto; padding: 0.45rem 0.75rem; font-size: 0.78rem; }
  .header-partner-panel {
    position: fixed;
    top: 58px;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }
  .header-tagline {
    display: none;
  }
  .hero-copy h1 { max-width: none; }
  .house { --w: 104px; }
  .file-row { flex-direction: column; align-items: stretch; }
  .file-row-actions { justify-content: flex-start; }
  .desk-hero-actions .btn-gold,
  .desk-title-form .btn-gold,
  .desk-program .btn-gold,
  .desk-card .btn-gold { width: auto; }
  .desk-save { width: 100%; }
  .desk-count { flex-direction: column; align-items: stretch; }
  .desk-kpis { grid-template-columns: 1fr; }
  .desk-program-top { grid-template-columns: 64px minmax(0, 1fr); }
  .desk-details[open] .form-grid { grid-template-columns: 1fr; }
}

/* Partner Demo: same desk, locked controls */
.demo-banner {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.demo-banner h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.demo-banner p { margin: 0.35rem 0 0; color: var(--muted); max-width: 68ch; }
.partner-demo input:disabled,
.partner-demo select:disabled,
.partner-demo textarea:disabled {
  opacity: 1;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--paper);
  cursor: default;
}
.partner-demo button:disabled { cursor: not-allowed; }
