/* Family Brief member app — Hallmark Wire treatment.
   Tokens come from the portal theme.css route (services/theme.py): change the
   active theme there and this whole app re-skins with the site.

   Built for readability first (members skew older): 17px+ base type,
   44px tap targets, strong contrast, visible focus rings. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 17px; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--paper-2) 0%, transparent 14rem),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(17,17,17,0.03) 28px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: 84px; /* room for the tab bar */
}

h1, h2, h3 {
  color: var(--ink);
  margin: 0 0 0.35em;
  line-height: 1.05;
}
h1 {
  font-family: var(--font-punch);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 2rem;
  font-weight: 400;
}
h2 {
  font-family: var(--font-punch);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  font-weight: 400;
}
h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; }

a { color: var(--link); text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Top bar — mirrors the site's black membership rail */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  background: var(--rail); color: #fff;
  padding: 10px 14px;
  border-bottom: 2px solid var(--red);
}
.brand { display: flex; align-items: baseline; gap: 7px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  font-family: var(--font-punch); font-size: 21px; letter-spacing: 0.01em;
  text-transform: uppercase; background: var(--red); color: #fff; padding: 1px 7px 2px;
}
.brand-word {
  font-family: var(--font-punch); font-size: 19px; letter-spacing: 0.01em;
  text-transform: uppercase; color: #fff;
}
.topnav { display: flex; gap: 14px; margin-left: auto; overflow-x: auto; }
.topnav a {
  color: #ddd; font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  text-decoration: none; padding: 6px 0;
}
.topnav a:hover { color: var(--gold); text-decoration: underline; }
.logout-form { margin-left: 8px; }
button.ghost {
  background: none; border: 1px solid #666; color: #fff;
  font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 12px; cursor: pointer;
}
button.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Page + cards */
.page { max-width: 880px; margin: 0 auto; padding: 18px 14px 30px; }
.card {
  background: #fff; border: 1px solid var(--gutter);
  border-top: 3px solid var(--ink);
  padding: 16px; margin-bottom: 16px;
}
.card.accent-gold { border-top-color: var(--gold); }
.card.accent-red { border-top-color: var(--red); }
.card.accent-blue { border-top-color: var(--link); }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 0.88rem; font-family: var(--font-ui); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--gutter); border-left: 4px solid var(--red); padding: 10px 12px; }
.stat .n { font-family: var(--font-punch); font-size: 28px; color: var(--ink); line-height: 1.1; }
.stat .l { font: 700 11px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Flash messages */
.flashes { margin-bottom: 12px; }
.flash {
  padding: 12px 14px; font: 600 15px var(--font-ui); margin-bottom: 6px;
  border-left: 4px solid; word-break: break-word; background: #fff;
}
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--red); color: #8f0d1a; }

/* Forms — 16px+ inputs (no mobile zoom), big targets, clear labels */
form.stack label {
  display: block; font: 700 14px var(--font-ui); margin: 12px 0 5px;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em;
}
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 12px; border: 1px solid #aaa; background: #fff;
  font: 400 16px var(--font-ui); color: var(--ink); border-radius: 0;
}
input::placeholder, textarea::placeholder { color: #888; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; font-family: var(--font-ui); }
.check input { margin-top: 3px; width: 20px; height: 20px; }
button.primary, a.button {
  display: inline-block; background: var(--gold); color: var(--ink); border: none; cursor: pointer;
  font: 700 15px var(--font-ui); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 13px 22px; margin-top: 12px; min-height: 44px; text-decoration: none;
}
button.primary:hover, a.button:hover { background: var(--ink); color: #fff; }
button.primary.blue { background: var(--red); color: #fff; }
button.primary.blue:hover { background: var(--ink); }
button.small, a.button.small { padding: 9px 14px; font-size: 13px; margin-top: 0; min-height: 38px; }
button.plain {
  background: #fff; border: 1px solid #aaa; color: var(--ink);
  font: 600 14px var(--font-ui); padding: 9px 13px; cursor: pointer; min-height: 38px;
}
button.plain:hover { border-color: var(--ink); }
.inline-form { display: inline; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { width: auto; flex: 1 1 130px; padding: 10px; font-size: 15px; }
.filters button { margin-top: 0; }

/* Lists / tables */
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li {
  background: #fff; border: 1px solid var(--gutter); border-left: 4px solid var(--ink);
  padding: 12px 14px; margin-bottom: 8px;
}
.rowlist li .title { font-weight: 700; font-size: 1.05rem; }
.rowlist li .sub { font-size: 0.85rem; color: var(--muted); font-family: var(--font-ui); }
.pill {
  display: inline-block; font: 700 11px var(--font-ui); text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 9px; background: var(--paper);
  border: 1px solid var(--gutter); color: var(--ink); vertical-align: middle;
}
.pill.red { background: var(--red); border-color: var(--red); color: #fff; }
.pill.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.pill.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pill.green { background: #e8f3ec; border-color: var(--ok); color: var(--ok); }

table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.data th {
  font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: 0.07em;
  text-align: left; color: #fff; background: var(--ink); padding: 9px 10px;
}
table.data td { border-bottom: 1px solid var(--gutter); padding: 9px 10px; vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* War Room feed */
.msg { background: #fff; border: 1px solid var(--gutter); padding: 12px 14px; margin-bottom: 10px; }
.msg.resolved { opacity: 0.62; }
.msg .meta { font-size: 13px; color: var(--muted); font-family: var(--font-ui); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.msg .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.msg.reply { margin-left: 22px; border-left: 3px solid var(--gold); }

/* Bottom tab bar — big, obvious, thumb-friendly */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: var(--rail); border-top: 2px solid var(--red);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-align: center; color: #ddd; padding: 15px 2px 13px;
  font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none;
}
.tabbar a.on { color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.tabbar a:hover { text-decoration: none; color: #fff; }

/* Member: electeds rating rows */
.rate-form { margin-top: 10px; }
.rate-form input[type=text] { margin-top: 8px; font-size: 15px; padding: 9px 11px; }
.rate-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-buttons button.rate-on { background: var(--ink); border-color: var(--ink); color: var(--gold); }
a.btn-link {
  display: inline-block; background: var(--gold); color: var(--ink);
  font: 700 14px var(--font-ui); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 11px 18px; margin-top: 10px; min-height: 40px; text-decoration: none;
}
a.btn-link:hover { text-decoration: none; background: var(--ink); color: #fff; }

/* Official portals */
.portal-hero {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; padding: 18px 16px;
  border-bottom: 4px solid var(--red); margin-bottom: 14px;
}
.portal-hero h1 { color: #fff; margin: 0; font-size: 1.7rem; }
.ph-photo {
  width: 80px; height: 80px; object-fit: cover;
  border: 2px solid var(--gold); background: #fff; flex-shrink: 0;
}
.ph-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-punch); font-size: 36px; color: var(--ink);
}
.ph-meta { min-width: 0; }
.ph-line { display: flex; gap: 8px; align-items: center; font-size: 14px; font-family: var(--font-ui); color: #ccc; }
.ph-district { color: var(--gold); font-family: var(--font-ui); font-weight: 700; font-size: 13px; }
.grade {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-punch); font-size: 36px; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.grade-sm { font-size: 17px; width: 30px; height: 30px; margin-left: 0; display: inline-flex; vertical-align: middle; }
.grade-A { background: var(--ok); }
.grade-B { background: #4c8a2f; }
.grade-C { background: #b58a00; }
.grade-D { background: #c25708; }
.grade-F { background: var(--red); }
.grade-none { background: var(--paper); color: var(--muted); border: 1px solid var(--gutter); }
.meter { height: 14px; background: var(--paper-2); border: 1px solid var(--gutter); overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.issue-row { border-top: 1px solid var(--gutter); padding: 12px 0; }
.issue-row:first-of-type { border-top: 0; }
.issue-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.issue-name { font-weight: 700; }
.news-item { border-top: 1px solid var(--gutter); padding: 12px 0 4px; }
.news-item:first-of-type { border-top: 0; }
.news-item h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 1.1rem; }

/* District banner */
.district-banner {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--ink); color: #fff; padding: 16px;
  border-left: 6px solid var(--red); margin-bottom: 14px; text-decoration: none;
}
.district-banner:hover { text-decoration: none; }
.db-kicker { font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: 0.12em; color: #ccc; }
.db-name { font-family: var(--font-punch); font-size: 28px; text-transform: uppercase; color: #fff; line-height: 1; }
.db-cta { font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); }

/* Power Rankings */
a.game-card { display: block; color: inherit; text-decoration: none; }
a.game-card:hover { text-decoration: none; border-color: var(--ink); }
.game-head { display: flex; align-items: baseline; justify-content: space-between; }
.mini-board { margin: 6px 0 0; padding-left: 22px; font-size: 15px; }
.podium { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.podium-spot { flex: 1; text-align: center; color: #fff; padding: 10px 6px; }
.spot-1 { background: var(--ink); order: 2; padding-top: 24px; border-top: 4px solid var(--gold); }
.spot-2 { background: #3d3d3d; order: 1; padding-top: 13px; }
.spot-3 { background: #6a6a6a; order: 3; padding-top: 8px; }
.podium-rank { font-family: var(--font-punch); font-size: 24px; color: var(--gold); }
.podium-name { font: 700 14px var(--font-ui); text-transform: uppercase; line-height: 1.2; }
.podium-sub { font-size: 11px; font-family: var(--font-ui); color: #ccc; }
.board { padding-left: 24px; font-size: 1.05rem; }
.board li { margin-bottom: 8px; }
.board.shame li::marker { color: var(--red); font-weight: 800; }
.ballot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ballot-cols label { display: block; font: 700 13px var(--font-ui); margin: 8px 0 3px; color: var(--ink); }
.ballot-cols select { font-size: 15px; padding: 9px; }
@media (max-width: 560px) { .ballot-cols { grid-template-columns: 1fr; } }

/* Local wire */
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.tip-card h3 { text-transform: none; letter-spacing: 0; margin: 0; font-family: var(--font-body); font-size: 1.15rem; }
.tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* Member: room threads */
.post-head { font-size: 14px; font-family: var(--font-ui); display: flex; gap: 8px; align-items: baseline; }
.post-body { white-space: pre-wrap; word-break: break-word; margin: 6px 0 10px; font-size: 1.05rem; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reply { margin: 10px 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--paper); }
.reply .post-body { margin-bottom: 4px; }
.reply-form { display: flex; gap: 8px; margin-top: 12px; }
.reply-form input[type=text] { flex: 1; padding: 10px 12px; font-size: 15px; }

/* Login / signup */
.login-wrap { max-width: 440px; margin: 7vh auto 0; }
.login-wrap .brandline { text-align: center; margin-bottom: 18px; }
.login-wrap .brandline h1 { font-size: 2.3rem; }
.login-wrap .brandline h1::first-line { color: inherit; }
.login-wrap form.stack > button.primary {
  width: 100%; min-height: 54px; text-align: center;
}
.returning-member {
  margin-top: 22px; padding-top: 20px; border-top: 3px double var(--ink);
}
.returning-member h2 {
  margin: 0 0 4px; font: 900 20px var(--font-ui); letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink);
}
.returning-member a.returning-signin {
  display: flex; width: 100%; min-height: 54px; margin-top: 10px;
  align-items: center; justify-content: center; text-align: center;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
}
.returning-member a.returning-signin:hover {
  background: var(--ink); color: #fff;
}
.returning-member .muted { margin: 10px 0 0; }

/* Member Action Center — high-contrast broadcast board, built to stay open. */
.war-room-page { max-width: none; margin: 0; padding: 0 0 30px; }
.war-room {
  --war-line: var(--gutter);
  background: var(--paper); color: var(--ink); border: 0; margin-bottom: 0; overflow: clip;
}
.war-room h1, .war-room h2, .war-room h3 { color: var(--ink); }
.war-hero {
  position: relative; min-height: calc(100svh - 54px); display: flex; flex-direction: column;
  isolation: isolate; overflow: hidden; background: var(--ink);
}
.war-video-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--ink); }
.broadcast-stage { overflow: hidden; background: #000; }
.war-video-bg .broadcast-stage { position: absolute; inset: 0; }
.war-video-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 74px 74px;
}
.war-video-bg .broadcast-stage iframe,
.war-video-bg .broadcast-stage video {
  position: absolute; left: 50%; top: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%); border: 0; pointer-events: none; opacity: .76;
}
.war-hero-scrim {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.75) 43%, rgba(0,0,0,.42) 68%, rgba(0,0,0,.7) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(245,245,242,.88) 3%, transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,.55), transparent 28%);
}
.war-room-head {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 26px; background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.16));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.war-kicker, .panel-kicker {
  font: 800 12px var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.panel-kicker.dark { color: var(--red); }
.war-room-name {
  color: #fff; font-family: var(--font-punch); font-size: 29px; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; margin: 4px 0;
}
.live-dot {
  display: inline-block; width: 10px; height: 10px; background: #ff3042;
  border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,48,66,0.18); margin-right: 6px;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse { 50% { box-shadow: 0 0 0 10px rgba(255,48,66,0); } }
.war-location { margin: 0; color: #c8c8c8; font: 600 14px var(--font-ui); }
.tv-button {
  flex: 0 0 auto; min-height: 50px; padding: 10px 17px; border: 2px solid var(--gold);
  color: var(--ink); background: var(--gold); cursor: pointer;
  font: 800 14px var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em;
}
.tv-button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.broadcast-controls { display: flex; gap: 8px; align-items: stretch; flex: 0 0 auto; }
.sound-button {
  min-height: 50px; padding: 9px 15px; border: 2px solid #fff; background: rgba(0,0,0,.72);
  color: #fff; cursor: pointer; font: 800 14px var(--font-ui); text-transform: uppercase;
  letter-spacing: .035em; display: flex; align-items: center; gap: 8px;
}
.sound-button:hover, .sound-button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sound-button [data-sound-icon] { font-size: 18px; }

.war-ticker {
  position: relative; z-index: 4;
  min-height: 68px; display: grid; grid-template-columns: auto 1fr auto;
  align-items: stretch; background: rgba(3,5,10,.94); border-bottom: 3px solid var(--red);
}
.ticker-label {
  display: flex; align-items: center; padding: 0 18px; background: var(--red); color: #fff;
  font: 800 13px var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase;
}
.ticker-track { position: relative; min-width: 0; display: flex; align-items: center; padding: 10px 18px; }
.ticker-item { display: none; align-items: baseline; gap: 10px; min-width: 0; font-family: var(--font-ui); }
.ticker-item.is-active { display: flex; }
.ticker-item strong { color: var(--gold); font-size: 12px; letter-spacing: 0.1em; }
.ticker-item span, .ticker-item a { color: #fff; font-size: 18px; font-weight: 700; }
.ticker-item a:visited { color: #fff; }
.ticker-item small { color: #9eabc0; white-space: nowrap; }
.ticker-controls { display: flex; align-items: center; padding: 8px; gap: 4px; }
.ticker-controls button {
  min-width: 44px; min-height: 44px; border: 1px solid #50596b; color: #fff;
  background: #151c29; cursor: pointer; font: 700 13px var(--font-ui);
}
.panel-heading, .power-grid-head, .card-heading-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
}
.power-grid-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 2px 0 0; }
.watch-confirm {
  min-height: 58px; padding: 11px 16px; background: #fff; color: var(--ink);
  border: 2px solid #fff; cursor: pointer; font: 800 14px var(--font-ui); text-transform: uppercase;
}
.mission-badge {
  align-self: flex-start; color: #fff; background: var(--red); padding: 6px 10px;
  font: 900 12px var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase;
}
.war-hero-inner {
  position: relative; z-index: 3; flex: 1; width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 50px 26px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 410px;
  gap: 46px; align-items: center;
}
.hero-mission { max-width: 780px; color: #fff; }
.location-onboarding {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(340px, 1.1fr);
  gap: 28px; align-items: center; margin: -22px 0 0; padding: 18px 20px;
  color: var(--ink); background: rgba(255,255,255,.96); border: 4px solid var(--gold);
  box-shadow: 0 20px 45px rgba(0,0,0,.4);
}
.location-onboarding h2 { margin: 3px 0 4px; font-size: 1.65rem; }
.location-onboarding p { margin: 0; color: #3f4650; font: 14px/1.4 var(--font-ui); }
.location-onboarding form { margin: 0; }
.location-onboarding label { display: block; margin-bottom: 5px; font: 900 11px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.location-onboarding form > div { display: grid; grid-template-columns: 1fr auto; }
.location-onboarding input { min-width: 0; min-height: 50px; border: 2px solid var(--ink); font-size: 18px; }
.location-onboarding button { min-height: 50px; border: 0; padding: 10px 18px; background: var(--red); color: #fff; cursor: pointer; font: 900 13px var(--font-ui); text-transform: uppercase; }
.hero-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
.hero-status > span:last-child {
  color: #ccc; font: 700 12px var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
}
.hero-mission h1 {
  color: #fff; font-size: clamp(3rem, 6vw, 5.25rem); line-height: .96; margin: 0 0 16px;
  max-width: 780px; text-shadow: 0 4px 24px rgba(0,0,0,.65);
}
.hero-mission .mission-copy {
  color: #eee; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.45;
  max-width: 650px; margin: 0 0 22px;
}
.hero-progress { max-width: 540px; margin-bottom: 18px; }
.mission-counter { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-ui); }
.mission-counter strong { font-family: var(--font-punch); font-size: 42px; color: var(--gold); }
.mission-counter > span:last-child { color: #ccc; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.mission-meter { background: rgba(255,255,255,.22); }
.mission-meter, .fuel-meter, .period-meter { height: 11px; overflow: hidden; }
.fuel-meter, .period-meter { background: var(--paper-2); }
.mission-meter span, .fuel-meter span, .period-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.hero-actions form { margin: 0; }
.mission-button {
  min-height: 58px; margin: 0; border: 0; background: var(--gold); display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink); cursor: pointer; font: 900 17px var(--font-ui); text-transform: uppercase;
  letter-spacing: 0.035em; text-align: left; padding: 13px 18px; text-decoration: none;
}
.mission-button span { float: right; font-size: 25px; line-height: 1; }
.mission-button:hover { background: var(--ink); color: #fff; }
.action-complete-button {
  min-height: 58px; margin: 0; padding: 12px 18px; border: 2px solid var(--gold);
  background: var(--red); color: #fff; cursor: pointer;
  font: 900 15px var(--font-ui); text-transform: uppercase;
}
.action-complete-button:hover { background: #fff; color: var(--red); }
.hero-watch {
  min-height: 58px; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 2px solid rgba(255,255,255,.7);
  color: #fff; background: rgba(0,0,0,.3); cursor: pointer;
  font: 800 15px var(--font-ui); text-transform: uppercase; text-decoration: none;
}
.hero-watch:hover { background: #fff; color: var(--ink); }
.mission-note { color: #bbb; font: 12px/1.45 var(--font-ui); margin: 10px 0 0; }

.hero-room {
  align-self: center; min-width: 0; height: min(570px, 62vh); display: flex; flex-direction: column;
  background: rgba(17,17,17,.82); color: #fff; border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 30px 65px -30px rgba(0,0,0,.9); backdrop-filter: blur(14px);
}
.hero-room-home { display: contents; }
.hero-room h2 { color: #fff; font-size: 1.65rem; margin: 2px 0 0; }
.hero-room-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 15px; border-bottom: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
}
.room-open {
  flex: 0 0 auto; background: var(--red); padding: 5px 8px; color: #fff;
  font: 800 10px var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
}
.hero-room-log {
  flex: 1; min-height: 0; overflow-y: auto; padding: 12px 15px; scrollbar-color: #666 transparent;
}
.hero-message { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-message:first-child { border-top: 0; }
.hero-message.is-pinned { margin: 0 -15px; padding: 11px 15px; background: rgba(255,204,0,.12); border-left: 3px solid var(--gold); }
.hero-message-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.hero-message-head strong { color: var(--gold); font: 800 13px var(--font-ui); }
.hero-message-head span { background: var(--gold); color: var(--ink); padding: 2px 5px; font: 800 9px var(--font-ui); text-transform: uppercase; }
.hero-message p { color: #eee; font-size: 16px; line-height: 1.38; margin: 0; }
.hero-message.is-sending { opacity: .68; }
.hero-message.is-sending::after { content: "Sending…"; color: #bbb; font: 10px var(--font-ui); text-transform: uppercase; }
.hero-message.is-failed { border-left: 3px solid var(--red); padding-left: 9px; }
.hero-room-empty { padding: 16px 2px; color: #ddd; }
.hero-room-empty strong { color: #fff; font: 800 18px var(--font-ui); }
.hero-room-empty p { margin: 5px 0 0; }
.hero-room-compose { padding: 12px 15px 8px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-room-compose label { display: block; color: #ccc; font: 800 11px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.hero-room-compose > div { display: flex; gap: 6px; }
.hero-room-compose input[type=text] {
  min-width: 0; flex: 1; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff;
}
.hero-room-compose input::placeholder { color: #aaa; }
.hero-room-compose button {
  min-width: 68px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer;
  font: 900 13px var(--font-ui); text-transform: uppercase;
}
.hero-room-compose button:disabled { opacity: .58; cursor: wait; }
.compose-status { min-height: 16px; margin: 4px 0 0; color: #bbb; font: 11px/1.3 var(--font-ui); }
.hero-room-link { color: var(--gold); padding: 0 15px 12px; font: 800 12px var(--font-ui); text-transform: uppercase; }
.hero-room-link:visited { color: var(--gold); }

.power-grid { padding: 22px; border-top: 1px solid var(--war-line); background: var(--paper-2); }
.power-grid .panel-kicker, .personal-energy .panel-kicker { color: var(--red); }
.power-grid-head { margin-bottom: 14px; }
.power-grid-head p { max-width: 460px; color: var(--muted); margin: 0; text-align: right; font: 14px var(--font-ui); }
.fuel-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fuel-cell { position: relative; min-width: 0; padding: 13px; background: #fff; border: 1px solid var(--gutter); }
.fuel-cell.is-mine { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--gold); }
.fuel-top { min-height: 40px; }
.fuel-top > span { font: 800 13px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.you-powered { display: block; color: var(--red); font: 800 9px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.fuel-number { display: flex; align-items: baseline; gap: 5px; margin: 4px 0 8px; font-family: var(--font-ui); }
.fuel-number strong { font-family: var(--font-punch); font-size: 34px; }
.fuel-number span { color: var(--muted); font-size: 12px; }
.fuel-cell p { color: var(--muted); font: 12px/1.35 var(--font-ui); margin: 9px 0 0; }
.fuel-news { padding: 0; border-color: var(--ink); }
.fuel-news a {
  min-height: 100%; display: flex; flex-direction: column; padding: 13px; color: var(--ink);
  background: #fff; text-decoration: none;
}
.fuel-news a:hover { background: var(--ink); color: #fff; }
.fuel-news .fuel-top { min-height: auto; color: var(--red); }
.fuel-news-title { display: block; font: 900 15px/1.2 var(--font-ui); margin: 8px 0; }
.fuel-news-open { margin-top: auto; color: var(--muted); font: 11px var(--font-ui); }
.fuel-news a:hover .fuel-news-open { color: var(--gold); }

.war-room-followthrough {
  max-width: 1680px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 0;
}
.war-room-main { min-width: 0; }

.fundraising-live {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr) auto;
  align-items: center; gap: 22px; padding: 20px 22px; color: #fff;
  background: linear-gradient(105deg, #8d0000, var(--red) 55%, #111 55%);
  border-top: 4px solid var(--gold); border-bottom: 1px solid #111;
}
.fundraising-live h2 { color: #fff; margin: 3px 0; font-size: 1.7rem; }
.fundraising-live p { margin: 4px 0 0; font: 15px var(--font-ui); }
.fundraising-live p strong { color: var(--gold); font: 36px var(--font-punch); }
.fundraising-live-progress > div { height: 17px; overflow: hidden; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); }
.fundraising-live-progress > div span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #fff36a); }
.fundraising-live-progress small { display: block; margin-top: 6px; color: #ddd; font: 11px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.fundraising-live > a { padding: 14px 16px; color: var(--ink); background: var(--gold); font: 900 13px var(--font-ui); text-decoration: none; text-transform: uppercase; white-space: nowrap; }

.news-river { padding: 28px 22px; background: #fff; border-top: 1px solid var(--gutter); }
.news-river-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  border-bottom: 4px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px;
}
.news-river-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 2px 0 0; }
.news-river-head p { margin: 0; color: var(--muted); font: 13px var(--font-ui); }
.news-river-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.news-river-card {
  min-width: 0; padding: 18px; border: 1px solid var(--gutter); border-top: 4px solid var(--ink);
  background: var(--paper); content-visibility: auto; contain-intrinsic-size: auto 260px;
  scroll-margin-top: 76px;
}
.news-river-card:target { border-color: var(--red); box-shadow: 0 0 0 4px rgba(211,0,0,.14); }
.news-river-card:nth-child(5n + 1) { grid-column: 1 / -1; border-top-color: var(--red); }
.news-river-card[hidden] { display: none; }
.news-river-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 800 10px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.news-river-meta span { color: var(--red); }
.news-river-card h3 { margin: 8px 0; font: 900 clamp(1.1rem, 2vw, 1.45rem)/1.1 var(--font-ui); }
.news-river-card h3 a { color: var(--ink); text-decoration: none; }
.news-river-card h3 a:hover { color: var(--red); text-decoration: underline; }
.news-river-card p { margin: 7px 0 14px; color: #3f4650; font-size: 1rem; line-height: 1.45; }
.news-river-open { color: var(--red); font: 800 11px var(--font-ui); text-transform: uppercase; }
.news-river-actions { display: flex; align-items: stretch; gap: 7px; margin-top: 14px; }
.news-river-actions > a,
.news-river-actions > button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  cursor: pointer;
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}
.news-river-actions > a { color: #fff; background: var(--ink); text-decoration: none; }
.news-river-actions > button { color: var(--ink); background: var(--gold); }
.news-river-actions > a:hover,
.news-river-actions > button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.news-river-sentinel { padding: 20px; text-align: center; color: var(--muted); font: 800 12px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.news-river-sentinel .live-dot { width: 8px; height: 8px; }

.travel-rail {
  position: sticky; top: 66px; height: calc(100vh - 82px); min-height: 600px;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px;
  background: #080a0f; color: #fff; border-left: 1px solid #303542; z-index: 12;
}
.travel-tv { min-width: 0; background: #11141b; border: 1px solid #3a4150; }
.travel-tv > header {
  min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-bottom: 2px solid var(--red); font: 800 11px var(--font-ui); text-transform: uppercase;
}
.travel-tv > header > div { display: flex; align-items: center; gap: 6px; }
.travel-tv > header > span { color: var(--gold); font-size: 9px; letter-spacing: .08em; }
.travel-tv-frame { aspect-ratio: 16 / 9; background: #000; }
.travel-tv-frame > [data-broadcast-dock],
.travel-tv-frame .broadcast-stage,
.travel-tv-frame iframe,
.travel-tv-frame video { width: 100%; height: 100%; display: block; border: 0; }
.travel-sound {
  width: 100%; min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 8px;
  border: 0; border-top: 1px solid #3a4150; background: var(--gold); color: var(--ink); cursor: pointer;
  font: 900 12px var(--font-ui); text-transform: uppercase;
}
.travel-sound[aria-pressed="true"] { background: #fff; }
.travel-chat-dock { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.travel-chat-dock .hero-room {
  align-self: stretch; width: 100%; height: 100%; min-height: 0; border-color: #3a4150;
  background: #11141b; box-shadow: none; backdrop-filter: none;
}
.travel-chat-dock .hero-room h2 { color: #fff; font-size: 1.35rem; }
.travel-chat-dock .hero-room-log { flex: 1; min-height: 120px; }
.travel-chat-dock .hero-room-compose { margin-top: auto; }

.personal-energy {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: center;
  padding: 20px 22px; border-top: 1px solid var(--war-line); background: #fff;
}
.personal-energy h2 { font-size: 1.65rem; margin: 3px 0; }
.personal-energy p { color: var(--muted); font: 14px/1.4 var(--font-ui); margin: 0; }
.period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.period-card { padding: 11px 12px; border: 1px solid var(--gutter); background: var(--paper); font-family: var(--font-ui); }
.period-card > span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.period-card > strong { display: block; font-family: var(--font-punch); font-size: 28px; margin: 2px 0 6px; }
.period-card small { color: var(--muted); font: 700 12px var(--font-ui); }
.period-card.is-complete { border-color: var(--ink); }
.period-card.is-complete .period-meter span { background: var(--red); }

.action-deck { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--war-line); }
.action-deck a, .action-deck button {
  min-height: 105px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 1fr 1fr;
  align-items: end; column-gap: 8px; padding: 17px; border: 0; border-right: 1px solid var(--war-line);
  color: var(--ink); background: var(--paper); text-decoration: none; cursor: pointer; text-align: left;
}
.action-deck > :last-child { border-right: 0; }
.action-deck a:hover, .action-deck button:hover { background: var(--red); color: #fff; }
.action-deck span { grid-row: 1 / 3; align-self: center; color: var(--red); font-size: 30px; text-align: center; }
.action-deck strong { align-self: end; font: 900 16px var(--font-ui); text-transform: uppercase; }
.action-deck small { align-self: start; color: var(--muted); font: 12px var(--font-ui); }
.action-deck a:hover small, .action-deck button:hover small { color: #fff; }

.war-room-page > .card {
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.member-desk { max-width: 1400px; margin: 0 auto; padding: 30px 26px 6px; }
.member-desk-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  border-bottom: 4px solid var(--ink); padding: 0 0 12px; margin-bottom: 14px;
}
.member-desk-head h2 { font-size: 2rem; margin: 2px 0 0; }
.member-desk-head p {
  max-width: 430px; margin: 0; color: var(--muted); text-align: right;
  font: 14px/1.45 var(--font-ui);
}
.depth-stack { perspective: 1400px; }
.depth-widget {
  position: relative; background: #fff; border: 1px solid var(--gutter);
  margin: 0 0 10px; box-shadow: 0 16px 32px -30px rgba(17,17,17,.65);
  transform-origin: 50% 0; transition: transform .28s ease, box-shadow .28s ease;
}
.depth-widget:not([open]):hover {
  transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(17,17,17,.72);
}
.depth-widget[open] {
  box-shadow: 0 24px 52px -34px rgba(17,17,17,.72); z-index: 2;
}
.depth-widget summary {
  min-height: 68px; display: grid; grid-template-columns: minmax(210px, .7fr) 1fr 48px;
  align-items: center; gap: 18px; padding: 12px 14px 12px 18px;
  border-left: 5px solid var(--red); cursor: pointer; list-style: none;
  transition: background .2s ease, color .2s ease;
}
.depth-widget summary::-webkit-details-marker { display: none; }
.depth-widget summary:hover { background: var(--paper-2); }
.depth-widget[open] summary {
  background: var(--ink); color: #fff; border-left-color: var(--red);
  border-bottom: 3px solid var(--red);
}
.depth-title {
  font-family: var(--font-punch); font-size: 1.4rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em;
}
.depth-meta {
  color: var(--muted); font: 700 13px/1.35 var(--font-ui); text-transform: uppercase;
  letter-spacing: .045em; text-align: right;
}
.depth-widget[open] .depth-meta { color: #ccc; }
.depth-control {
  width: 44px; height: 44px; border: 2px solid var(--gutter); position: relative;
  justify-self: end;
}
.depth-control::before, .depth-control::after {
  content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 2px;
  background: currentColor;
}
.depth-control::after { transform: rotate(90deg); transition: transform .2s ease; }
.depth-widget[open] .depth-control { border-color: #666; color: var(--gold); }
.depth-widget[open] .depth-control::after { transform: rotate(0); }
.depth-body { padding: 22px; animation: depth-in .3s ease both; }
@keyframes depth-in { from { opacity: 0; transform: translateY(-8px); } }
.depth-body > :first-child { margin-top: 0; }
.staff-command-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-bottom: 16px;
}
.staff-command-grid a {
  min-height: 92px; display: flex; flex-direction: column; justify-content: center;
  padding: 14px; border: 1px solid var(--gutter); border-top: 4px solid var(--red);
  background: var(--paper); color: var(--ink); text-decoration: none;
}
.staff-command-grid a:hover { background: var(--ink); color: #fff; }
.staff-command-grid strong { font: 900 15px var(--font-ui); text-transform: uppercase; }
.staff-command-grid small { color: var(--muted); font: 12px/1.35 var(--font-ui); margin-top: 3px; }
.staff-command-grid a:hover small { color: #ddd; }
.staff-command-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.staff-live-feed { border-top: 1px solid var(--gutter); padding-top: 16px; }
.staff-live-feed h3 { margin: 0; text-transform: uppercase; }
.depth-room { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: center; }
.depth-room .room-big-number { grid-row: 1 / 4; }
.depth-room .btn-link { grid-column: 3; grid-row: 1 / 4; }
.location-name { font-size: 18px !important; overflow-wrap: anywhere; }
.room-big-number { font-family: var(--font-punch); font-size: 58px; line-height: .9; color: var(--red); margin: 12px 0 2px; }
.card-heading-row { margin-bottom: 10px; }
.card-heading-row > a { font: 800 13px var(--font-ui); text-transform: uppercase; }
.elected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.elected-grid li { margin-bottom: 0; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.profile-address { grid-column: 1 / -1; }
.profile-connection {
  margin: -4px 0 16px;
  padding: 13px 14px;
  background: var(--paper);
  border-left: 5px solid var(--gold);
}
.profile-connection span { display: block; color: var(--red); font: 900 10px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.profile-connection strong { display: block; margin-top: 3px; font: 1.35rem var(--font-punch); text-transform: uppercase; }
.profile-connection p { margin: 5px 0 0; color: var(--muted); font: 13px/1.4 var(--font-ui); }
.profile-remove-location { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gutter); }

/* Member tools appear as timed lower-thirds and an on-demand field desk. */
.member-desk-entry {
  display: flex;
  justify-content: center;
  padding: 14px 18px;
  background: #0a0d12;
  border-top: 1px solid #2d333f;
}
.member-desk-entry > button {
  width: min(920px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid #4a5261;
  border-left: 5px solid var(--gold);
  color: #fff;
  background: #151a22;
  cursor: pointer;
  text-align: left;
}
.member-desk-entry > button:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.member-desk-entry > button:hover .panel-kicker { color: var(--red); }
.member-desk-entry strong { font: 800 15px var(--font-ui); }
.member-desk-entry > button > span:last-child { font: 900 12px var(--font-ui); text-transform: uppercase; white-space: nowrap; }

.member-desk.member-desk-dialog {
  width: min(1100px, calc(100vw - 40px));
  max-width: 1100px;
  height: min(780px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.56);
}
.member-desk.member-desk-dialog:not([open]) { display: none; }
.member-desk.member-desk-dialog[open] { display: flex; flex-direction: column; }
.member-desk-dialog::backdrop { background: rgba(3,5,10,.8); backdrop-filter: blur(8px); }
body.member-desk-open { overflow: hidden; }
body.member-desk-open::before {
  content: "";
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(3,5,10,.8);
  backdrop-filter: blur(8px);
}
.member-desk.member-desk-dialog.is-fallback-open { position: fixed; z-index: 100; inset: 20px; }
.member-desk-dialog .member-desk-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 15px 18px;
  color: #fff;
  border-bottom: 4px solid var(--red);
  background: var(--desk-black);
}
.member-desk-dialog .member-desk-head .panel-kicker { color: var(--gold); }
.member-desk-dialog .member-desk-head h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: .9;
}
.member-desk-location {
  margin: 5px 0 0;
  color: #cbd0d8;
  font: 800 11px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.member-desk-head-actions { display: flex; align-items: center; justify-content: flex-end; }
.member-desk-head-actions button {
  width: 64px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px;
  border: 1px solid #626a78;
  color: #fff;
  background: #181d26;
  cursor: pointer;
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
}
.member-desk-head-actions button span { color: var(--gold); font: 32px/.7 var(--font-ui); }
.member-desk-head-actions button strong { font: inherit; }
.member-desk-head-actions button:hover { color: var(--ink); background: var(--gold); }
.member-desk-head-actions button:hover span { color: var(--red); }
.command-center-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 24px;
  background: #eceeea;
  scrollbar-color: #7b818a transparent;
}
.command-situation {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -18px 18px;
  color: #fff;
  background: #181d25;
  border-bottom: 1px solid #353c48;
}
.command-situation > div {
  min-width: 0;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  border-right: 1px solid #353c48;
}
.command-situation > div:last-child { border-right: 0; }
.command-situation span {
  color: var(--gold);
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.command-situation strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font: 800 13px/1.2 var(--font-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-targets {
  padding: 18px;
  color: #fff;
  background: #0d1118;
  border-top: 6px solid var(--red);
  box-shadow: 0 18px 45px -34px rgba(0,0,0,.9);
}
.command-targets > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.command-targets > header h3 {
  margin: 3px 0 0;
  color: #fff;
  font: 2.35rem/.9 var(--font-punch);
  text-transform: uppercase;
}
.command-targets > header p { margin: 7px 0 0; color: #b9c0cb; font: 14px/1.4 var(--font-ui); }
.command-targets > header > a {
  flex: 0 0 auto;
  color: var(--gold);
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}
.command-official-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.command-official-grid li { min-width: 0; }
.command-official {
  min-height: 150px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  color: var(--ink);
  background: #fff;
  border: 1px solid #343b47;
  text-decoration: none;
  overflow: hidden;
}
.command-official:visited { color: var(--ink); }
.command-official:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.command-official-photo {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #d9dcd7;
  border-right: 4px solid var(--red);
}
.command-official-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.command-official-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #737a82;
  font: 5rem var(--font-punch);
}
.command-official-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
}
.command-official-copy small {
  color: var(--red);
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.command-official-copy > strong {
  margin-top: 4px;
  font: 1.65rem/.95 var(--font-punch);
  text-transform: uppercase;
}
.command-official-copy > span {
  margin-top: 6px;
  color: #555d67;
  font: 700 11px/1.25 var(--font-ui);
  text-transform: uppercase;
}
.command-official-copy b {
  margin-top: auto;
  padding-top: 10px;
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
}
.command-targets-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
}
.command-targets-empty button {
  min-height: 46px;
  padding: 9px 14px;
  border: 0;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}
.command-actions {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  gap: 12px;
  margin: 14px 0 20px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--desk-line);
}
.command-actions > header { display: flex; flex-direction: column; justify-content: center; }
.command-actions h3 { margin: 3px 0 0; font: 1.7rem/.95 var(--font-punch); text-transform: uppercase; }
.command-actions > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.command-action {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: end;
  gap: 0 8px;
  padding: 11px;
  color: #fff;
  background: #171c24;
  border: 0;
  border-left: 4px solid var(--gold);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.command-action:visited { color: #fff; }
.command-action:hover { color: #fff; background: var(--red); }
.command-action > span { grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 24px; text-align: center; }
.command-action strong { align-self: end; font: 900 12px/1.15 var(--font-ui); text-transform: uppercase; }
.command-action small { align-self: start; color: #bfc5ce; font: 10px/1.25 var(--font-ui); }
.command-action-primary { color: var(--ink); background: var(--gold); border-left-color: var(--red); }
.command-action-primary:visited { color: var(--ink); }
.command-action-primary > span { color: var(--red); }
.command-action-primary small { color: #474747; }
.command-action-primary:hover small { color: #fff; }
.command-tools-heading { margin: 0 0 10px; }
.command-tools-heading h3 { margin: 3px 0 0; font: 1.7rem/.95 var(--font-punch); text-transform: uppercase; }
.member-desk-dialog .depth-stack {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  perspective: none;
}
.staff-command-widget { order: 90; }
.member-desk-dialog .depth-widget:last-child { margin-bottom: 0; }

.member-moment {
  position: fixed;
  z-index: 80;
  left: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 48px));
  padding: 18px 56px 16px 18px;
  color: #fff;
  background: rgba(12,15,21,.97);
  border: 1px solid #5d6676;
  border-left: 7px solid var(--gold);
  box-shadow: 0 24px 70px rgba(0,0,0,.52);
  animation: member-moment-in .3s ease both;
}
.member-moment[hidden] { display: none; }
.member-moment.is-leaving { animation: member-moment-out .22s ease both; }
@keyframes member-moment-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes member-moment-out { to { opacity: 0; transform: translateY(12px); } }
.member-moment-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid #596171;
  color: #fff;
  background: #1c222c;
  cursor: pointer;
  font: 24px/1 var(--font-ui);
}
.member-moment-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.member-moment > strong {
  display: block;
  color: #fff;
  font: 2rem/.95 var(--font-punch);
  text-transform: uppercase;
}
.member-moment > p { margin: 7px 0 13px; color: #d3d6dc; font: 15px/1.35 var(--font-ui); }
.member-moment-open {
  min-height: 46px;
  padding: 9px 13px;
  border: 0;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  font: 900 12px var(--font-ui);
  text-transform: uppercase;
}
.member-moment-open:hover { color: #fff; background: var(--red); }
.member-moment button:focus-visible,
.member-desk-entry button:focus-visible,
.member-desk-head-actions button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Broadcast-first Action Center: the television is the stage; tools wait nearby. */
.war-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #05070b;
}
.hero-live-stage {
  order: 1;
  width: 100%;
  height: clamp(560px, calc(100svh - 150px), 760px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(400px, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #303642;
}
.hero-live-stage.has-video { grid-template-columns: minmax(0, 1.55fr) minmax(270px, .55fr) minmax(390px, .76fr); }
.hero-live-stage .war-video-bg { order: 0; height: 100%; min-height: 0; }
.live-news-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: #0c1017;
  border-left: 1px solid #303642;
}
.live-news-rail > header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-bottom: 3px solid var(--red);
  background: #151a22;
}
.live-news-rail h2 { margin: 3px 0 0; color: #fff; font-size: 1.35rem; line-height: 1; }
.live-news-rail > header > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--gold);
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
  white-space: nowrap;
}
.live-news-list { min-height: 0; flex: 1; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-color: #697084 transparent; }
.live-news-list li { border-bottom: 1px solid #303642; }
.live-news-list a {
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  color: #fff;
  text-decoration: none;
}
.live-news-list a:visited { color: #fff; }
.live-news-list a:hover { color: var(--ink); background: var(--gold); }
.live-news-rank {
  display: grid;
  place-items: center;
  color: var(--gold);
  border-right: 1px solid #303642;
  font: 20px var(--font-punch);
}
.live-news-list a:hover .live-news-rank { color: var(--red); border-right-color: rgba(17,17,17,.25); }
.live-news-copy { min-width: 0; display: block; padding: 10px 9px; }
.live-news-copy small { display: block; color: var(--gold); font: 900 9px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.live-news-copy strong { display: block; margin: 3px 0 6px; font: 800 14px/1.22 var(--font-ui); }
.live-news-copy em { color: #aeb5c3; font: normal 900 9px var(--font-ui); text-transform: uppercase; }
.live-news-list a:hover small,
.live-news-list a:hover em { color: var(--red); }
.live-news-all {
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--gold);
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
  text-decoration: none;
}
.live-news-all:visited { color: var(--ink); }
.live-news-all:hover { color: #fff; background: var(--red); }
.live-news-empty { padding: 18px 14px; color: #ccc; }
.live-news-empty strong { color: #fff; font: 800 17px var(--font-ui); }
.live-news-empty p { margin: 5px 0 0; font-size: 14px; }
.hero-live-stage .hero-room-home { min-width: 0; min-height: 0; height: 100%; }
.hero-live-stage .hero-room {
  height: 100%;
  border: 0;
  border-left: 1px solid #303642;
  background: #11151c;
}
.hero-live-stage .hero-room[open] > summary { display: none; }
.hero-live-stage .hero-room-panel { height: 100%; min-height: 0; }
.hero-live-stage .hero-room-log { padding-top: 4px; }
.hero-room-head-actions { display: flex; align-items: center; gap: 8px; }
.chat-minimize {
  display: none;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #697084;
  color: #fff;
  background: #171c27;
  cursor: pointer;
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
}
.travel-chat-dock .chat-minimize { display: block; }
.war-room-head {
  order: 0;
  padding: 12px 20px;
  background: #090b0f;
  border-bottom: 1px solid #242833;
}
.war-room-name { font-size: 26px; }
.war-location { font-size: 13px; }
.war-video-bg {
  position: relative;
  inset: auto;
  order: 1;
  z-index: 1;
  width: 100%;
  height: clamp(520px, calc(100svh - 170px), 820px);
  overflow: hidden;
  background: #000;
}
.war-video-bg .broadcast-stage { position: absolute; inset: 0; }
.war-video-bg .broadcast-stage iframe,
.war-video-bg .broadcast-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border: 0;
  pointer-events: auto;
  opacity: 1;
}
.war-video-bg::after {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.26), transparent 18%, transparent 78%, rgba(0,0,0,.4));
}
.broadcast-now {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 36px);
  padding: 8px 11px;
  color: #fff;
  background: rgba(5,7,11,.76);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  font: 800 12px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  pointer-events: none;
}
.broadcast-now span { color: var(--gold); white-space: nowrap; }
.broadcast-now strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-now i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: #ff3042;
}
.war-hero-scrim { display: none; }

.war-ticker {
  order: 2;
  min-height: 52px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: #080b11;
  border-bottom: 1px solid #2b303c;
  transition: min-height .22s ease, background .22s ease;
}
.ticker-label {
  border: 0;
  cursor: pointer;
  min-width: 102px;
  justify-content: center;
}
.ticker-label:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.ticker-track { padding: 8px 16px; }
.ticker-item span, .ticker-item a { font-size: 16px; }
.ticker-controls { padding: 4px 8px; }
.ticker-controls button { min-height: 40px; }
.war-ticker.is-idle {
  min-height: 38px;
  grid-template-columns: auto;
  justify-content: start;
  border-bottom-color: #171b23;
}
.war-ticker.is-idle .ticker-label {
  min-height: 38px;
  padding: 0 16px;
  background: #161a22;
  color: var(--gold);
}
.war-ticker.is-idle .ticker-label::after { content: " +"; }
.war-ticker.is-idle .ticker-track,
.war-ticker.is-idle .ticker-controls { display: none; }

.action-path {
  order: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  border-bottom: 1px solid #303642;
  background: #11151c;
}
.action-path.has-support { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.action-path a,
.action-path button {
  min-width: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid #303642;
  color: #fff;
  background: transparent;
  text-align: left;
  text-decoration: none;
}
.action-path a,
.action-path button { cursor: pointer; font: 900 12px/1.2 var(--font-ui); text-transform: uppercase; }
.action-path b {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 15px;
}
.action-path a:hover,
.action-path button:hover { background: var(--red); }
.action-path a:focus-visible,
.action-path button:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }

.war-hero-inner {
  order: 4;
  flex: none;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #0a0d12;
}
.location-onboarding {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--gold);
  box-shadow: none;
}
.location-onboarding > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 9px 13px;
  cursor: pointer;
  list-style: none;
}
.location-onboarding > summary::-webkit-details-marker { display: none; }
.location-onboarding > summary:focus-visible { outline: 3px solid var(--red); outline-offset: -5px; }
.location-onboarding > summary > strong {
  overflow: hidden;
  color: var(--ink);
  font: 900 18px var(--font-ui);
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-onboarding > summary > span:last-child {
  color: var(--red);
  font: 900 12px var(--font-ui);
  text-transform: uppercase;
}
.location-onboarding[open] > summary { border-bottom: 1px solid var(--gutter); }
.location-onboarding-body {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
  gap: 20px;
  align-items: end;
  padding: 14px;
}
.location-onboarding-body p { margin: 0; color: #3f4650; font: 14px/1.4 var(--font-ui); }
.location-onboarding form { margin: 0; }
.location-onboarding label { display: block; margin-bottom: 5px; font: 900 11px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.location-onboarding form > div { display: grid; grid-template-columns: 1fr auto; }
.location-onboarding input { min-width: 0; min-height: 50px; border: 2px solid var(--ink); font-size: 18px; }
.location-onboarding button { min-height: 50px; border: 0; padding: 10px 18px; background: var(--red); color: #fff; cursor: pointer; font: 900 13px var(--font-ui); text-transform: uppercase; }

.hero-mission {
  width: min(1120px, 100%);
  max-width: none;
  margin: 0 auto;
  min-width: 0;
  padding: 22px;
  color: #fff;
  background: #11151c;
  border: 1px solid #303642;
}
.hero-status { margin-bottom: 11px; }
.hero-mission h1 {
  max-width: 960px;
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 4.5vw, 4.25rem);
  line-height: .96;
  text-shadow: none;
}
.hero-mission .mission-copy {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 17px;
}
.hero-progress { max-width: none; margin-bottom: 14px; }
.mission-counter strong { font-size: 34px; }
.hero-actions { gap: 8px; }
.mission-button,
.action-complete-button,
.hero-watch,
.watch-confirm { min-height: 52px; padding: 10px 14px; font-size: 13px; }
.mission-button { font-size: 15px; }
.mission-note { margin-bottom: 0; }

.hero-room-home { display: block; min-width: 0; }
.hero-room {
  width: 100%;
  height: auto;
  min-width: 0;
  color: #fff;
  background: #11151c;
  border: 1px solid #303642;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-room > summary {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 13px;
  cursor: pointer;
  list-style: none;
}
.hero-room > summary::-webkit-details-marker { display: none; }
.hero-room > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.hero-room-peek-title { display: flex; flex-direction: column; }
.hero-room-peek-title > strong { color: #fff; font: 1.35rem var(--font-punch); text-transform: uppercase; }
.hero-room-peek-message {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-ui);
}
.hero-room-peek-message > strong { color: var(--gold); font-size: 11px; }
.hero-room-peek-message > span { overflow: hidden; color: #e7e7e7; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.hero-room > summary .room-open { white-space: nowrap; }
.hero-room[open] > summary { border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-room[open] > summary .room-open { background: #2a303b; }
.hero-room[open] > summary .room-open::after { content: " · Close"; }
.hero-room-panel { display: none; height: min(500px, 58vh); flex-direction: column; }
.hero-room[open] .hero-room-panel { display: flex; }
.hero-room-head { padding: 12px 13px; }
.hero-room-log { flex: 1; }
.hero-room-compose { margin-top: auto; }
.travel-chat-dock .hero-room:not([open]) { height: auto; flex: 0 0 auto; }
.travel-chat-dock .hero-room[open] > summary { display: none; }
.travel-chat-dock .hero-room[open] { height: 100%; }
.travel-chat-dock .hero-room[open] .hero-room-panel { height: auto; flex: 1; min-height: 0; }

body.war-room-tv { background: #000; padding: 0; overflow: auto; }
body.war-room-tv .topbar, body.war-room-tv .tabbar,
body.war-room-tv .war-room-page > :not(.war-room) { display: none; }
body.war-room-tv .war-room-page { max-width: none; padding: 0; }
body.war-room-tv .war-room { margin: 0; min-height: 100vh; border: 0; }
body.war-room-tv .war-hero { min-height: 100vh; height: 100vh; }
body.war-room-tv .hero-live-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.war-room-tv .hero-live-stage .hero-room-home { display: none; }
body.war-room-tv .hero-live-stage .live-news-rail { display: none; }
body.war-room-tv .war-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.war-room-tv .war-room-head { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, rgba(0,0,0,.8), transparent); }
body.war-room-tv .war-room-head > .war-title-block { visibility: hidden; }
body.war-room-tv .war-ticker, body.war-room-tv .war-hero-inner,
body.war-room-tv .power-grid, body.war-room-tv .personal-energy,
body.war-room-tv .action-deck, body.war-room-tv .action-path { display: none; }
body.war-room-tv .war-video-bg .broadcast-stage iframe,
body.war-room-tv .war-video-bg .broadcast-stage video { pointer-events: auto; opacity: 1; }
body.war-room-tv .war-video-bg::after { display: none; }
body.war-room-tv .war-hero-scrim { background: linear-gradient(180deg, rgba(0,0,0,.42), transparent 22%); }

/* One political briefing surface: Watch becomes the front page through scroll. */
.war-room { --watch-progress: 0; }
.war-hero { position: relative; overflow: visible; isolation: auto; }
.war-room-head { order: 0; z-index: 36; background: #090b0f; }
.war-hero > .war-ticker { display: none; }
.hero-live-stage,
.hero-live-stage.has-video {
  order: 1;
  position: relative;
  isolation: auto;
  display: block;
  width: 100%;
  height: clamp(610px, calc(100svh - 150px), 900px);
  overflow: visible;
  background: #000;
}
.hero-live-stage .war-video-bg {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
}
.hero-live-stage .war-video-bg.is-scroll-driven {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 24;
  transform-origin: top left;
  will-change: left, top, width, height;
  box-shadow: 0 18px 34px rgba(0,0,0,.58);
  pointer-events: none;
}
.hero-live-stage .war-video-bg::after { display: none; }
.hero-live-stage .war-video-bg .broadcast-stage,
.hero-live-stage .war-video-bg .broadcast-stage iframe,
.hero-live-stage .war-video-bg .broadcast-stage video { width: 100%; height: 100%; }
.hero-live-stage .war-video-bg .broadcast-stage iframe,
.hero-live-stage .war-video-bg .broadcast-stage video { opacity: 1; }
.hero-live-stage .broadcast-now { z-index: 2; }
.hero-live-stage .hero-room-home {
  position: absolute;
  z-index: 27;
  top: 14px;
  right: 14px;
  bottom: 70px;
  width: min(390px, calc(100% - 28px));
  height: auto;
}
.hero-live-stage .hero-room {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #4a5260;
  background: rgba(11,14,20,.94);
  box-shadow: 0 22px 54px rgba(0,0,0,.54);
  backdrop-filter: blur(12px);
}
.hero-live-stage .hero-room[open] > summary { display: none; }
.hero-live-stage .hero-room-panel {
  position: absolute;
  inset: 0;
  display: flex;
  height: auto;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
.watch-scroll-cue {
  position: absolute;
  z-index: 28;
  left: 50%;
  bottom: 19px;
  display: grid;
  justify-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 2px 8px #000;
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
  pointer-events: none;
  opacity: calc(1 - var(--watch-progress));
}
.watch-scroll-cue i {
  width: 16px;
  height: 16px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(45deg);
  animation: watch-scroll-cue 1.5s ease-in-out infinite;
}
@keyframes watch-scroll-cue {
  50% { transform: translateY(5px) rotate(45deg); }
}

.briefing-wire {
  order: 2;
  position: sticky;
  top: 52px;
  z-index: 30;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #0c1017;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid #303642;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transition: background .2s ease, box-shadow .2s ease;
}
.briefing-wire-head {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  border-bottom: 1px solid #303642;
  background: #151a22;
}
.briefing-wire-head h2 { margin: 2px 0 0; color: #fff; font-size: 1.45rem; line-height: 1; }
.briefing-wire-count {
  padding: 6px 8px;
  color: var(--ink);
  background: var(--gold);
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
  white-space: nowrap;
}
.surface-ladder { display: flex; align-items: center; gap: 4px; }
.surface-ladder button {
  position: relative;
  min-width: 128px;
  min-height: 38px;
  overflow: hidden;
  padding: 7px 10px 10px;
  border: 1px solid #454d5b;
  color: #fff;
  background: #090c12;
  cursor: pointer;
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
}
.surface-ladder button i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  transform-origin: left;
}
.surface-ladder button:first-child i { transform: scaleX(calc(1 - var(--watch-progress))); }
.surface-ladder button:last-child i { transform: scaleX(var(--watch-progress)); }
.briefing-wire-list {
  height: 124px;
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-color: #697084 transparent;
  transition: height .24s ease;
}
.briefing-wire-list li { flex: 0 0 310px; min-width: 0; border-right: 1px solid #303642; }
.briefing-wire-list a {
  height: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  color: #fff;
  text-decoration: none;
}
.briefing-wire-list a:visited { color: #fff; }
.briefing-wire-list a:hover { color: var(--ink); background: var(--gold); }
.briefing-wire-rank {
  display: grid;
  place-items: center;
  color: var(--gold);
  border-right: 1px solid #303642;
  font: 22px var(--font-punch);
}
.briefing-wire-copy { min-width: 0; display: block; padding: 13px 11px; }
.briefing-wire-copy small { display: block; color: var(--gold); font: 900 9px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.briefing-wire-copy strong { display: block; margin: 5px 0 8px; font: 800 15px/1.2 var(--font-ui); }
.briefing-wire-copy em { color: #aeb5c3; font: normal 900 9px var(--font-ui); text-transform: uppercase; }
.briefing-wire-list a:hover small,
.briefing-wire-list a:hover em,
.briefing-wire-list a:hover .briefing-wire-rank { color: var(--red); }
.briefing-wire-empty { min-height: 92px; padding: 18px; }
.briefing-wire-empty strong { color: #fff; font: 800 17px var(--font-ui); }
.briefing-wire-empty p { margin: 5px 0 0; color: #c2c8d2; }
.briefing-wire.is-compact {
  background: rgba(8,11,16,.97);
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
}
.briefing-wire.is-compact .briefing-wire-head { display: none; }
.briefing-wire.is-compact .briefing-wire-list { height: 52px; }
.briefing-wire.is-compact .briefing-wire-list li { flex: 0 0 auto; max-width: 390px; }
.briefing-wire.is-compact .briefing-wire-list a { display: flex; align-items: center; }
.briefing-wire.is-compact .briefing-wire-rank { display: none; }
.briefing-wire.is-compact .briefing-wire-copy { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
.briefing-wire.is-compact .briefing-wire-copy small { flex: 0 0 auto; }
.briefing-wire.is-compact .briefing-wire-copy strong {
  max-width: 250px;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.briefing-wire.is-compact .briefing-wire-copy em { display: none; }

.frontpage-action-context {
  padding: 24px 22px;
  color: #fff;
  background: #0b0d12;
  border-top: 4px solid var(--red);
}
.frontpage-action-context .location-onboarding { margin: 0 0 18px; }
.frontpage-action-context .hero-mission { max-width: 1000px; }
.frontpage-action-context .hero-mission h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.news-river-card.is-just-read { border-left: 7px solid var(--red); }

.story-reader-layer {
  position: fixed;
  z-index: 42;
  inset: 52px 390px 0 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  background: #f5f5f2;
  border: 0;
  box-shadow: 20px 0 55px rgba(0,0,0,.38);
  transform: translateX(104%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}
.story-reader-layer[hidden] { display: none; }
.story-reader-layer.is-open { transform: translateX(0); opacity: 1; }
.story-reader-bar {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #c8c8c2;
  background: #fff;
}
.story-reader-bar button,
.story-reader-bar > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: 900 11px var(--font-ui);
  text-decoration: none;
  text-transform: uppercase;
}
.story-reader-bar button:hover,
.story-reader-bar > a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.story-reader-bar .story-reader-discuss { color: var(--ink); background: var(--gold); border-color: var(--ink); }
.story-reader-bar strong { display: block; overflow: hidden; font: 900 15px var(--font-ui); text-overflow: ellipsis; white-space: nowrap; }
.story-reader-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--red); }
.story-reader-pull { height: 3px; flex: 0 0 auto; background: #d7d7d2; }
.story-reader-pull span { display: block; height: 100%; width: 0; background: var(--gold); }
.story-reader-layer iframe { min-height: 0; flex: 1; width: 100%; border: 0; background: #fff; }
body.story-reader-open { overflow: hidden; }
body.story-reader-open .hero-live-stage .war-video-bg.is-scroll-driven { z-index: 48; }

@media (max-width: 1050px) {
  .hero-live-stage,
  .hero-live-stage.has-video { height: clamp(520px, calc(100svh - 120px), 760px); }
  .hero-live-stage .hero-room-home { width: min(360px, 42vw); }
  .briefing-wire-head { grid-template-columns: 1fr auto; }
  .surface-ladder { grid-column: 1 / -1; grid-row: 2; }
  .briefing-wire-count { grid-column: 2; grid-row: 1; }
  .story-reader-layer { right: 0; }
  body.story-reader-open .travel-rail { z-index: 46; }
  .travel-tv { display: none; }
  .travel-rail {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 6px;
    border-left: 0;
    background: #080a0f;
  }
  .travel-rail:has(.travel-chat-dock:empty) { display: none; }
  .travel-chat-dock { height: auto; min-height: 0; }

  /* Mobile/tablet reading is one viewport-wide column. The earlier flex
     fallback inherits align-items:start from the desktop grid, which lets the
     main column keep a 600px intrinsic width and clips it on phones. */
  .war-room-followthrough {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }
  .war-room-main,
  .news-river,
  .news-river-list,
  .news-river-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .hero-live-stage,
  .hero-live-stage.has-video { height: clamp(440px, 72svh, 620px); aspect-ratio: auto; }
  .hero-live-stage .hero-room-home {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 54px;
    width: auto;
    height: auto;
  }
  .hero-live-stage .hero-room { height: auto; }
  .hero-live-stage .hero-room[open] > summary { display: grid; }
  .hero-live-stage .hero-room[open] > summary .room-open::after { content: ""; }
  .hero-live-stage .hero-room[open] .hero-room-panel { display: none; }
  .hero-live-stage .hero-room-peek-message { display: none; }
  .watch-scroll-cue { bottom: 13px; font-size: 9px; }
  .briefing-wire { top: 52px; }
  .briefing-wire-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
  .briefing-wire-head > div { min-width: 0; }
  .briefing-wire-head h2 { font-size: 1.15rem; }
  .surface-ladder { display: none; }
  .briefing-wire-count { margin-left: auto; }
  .briefing-wire-list { height: 114px; }
  .briefing-wire-list li { flex-basis: 86vw; }
  .briefing-wire.is-compact .briefing-wire-list li { max-width: 88vw; }
  .briefing-wire.is-compact .briefing-wire-copy strong { max-width: 56vw; }
  .frontpage-action-context { padding: 20px 12px; }
  .frontpage-action-context .hero-mission h1 { font-size: 2.55rem; }
  .story-reader-layer { inset: 52px 0 62px; }
  .story-reader-bar { min-height: 62px; grid-template-columns: auto minmax(0, 1fr); padding: 8px; }
  .story-reader-bar > a { display: none; }
  .story-reader-bar strong { font-size: 12px; }
  .travel-rail {
    top: calc(104px + min(176px, 48vw) * .5625);
    z-index: 23;
  }
  .travel-chat-dock .hero-room-peek-message { display: none; }
  .travel-chat-dock .hero-room > summary { min-height: 64px; }
  body.story-reader-open .travel-rail {
    position: fixed;
    inset: auto 0 62px;
    top: auto;
    z-index: 46;
    padding: 0;
  }
  body.story-reader-open .travel-chat-dock .hero-room > summary { min-height: 48px; padding: 6px 9px; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title { flex-direction: row; align-items: center; gap: 8px; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title .panel-kicker { display: none; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title > strong { font-size: 1rem; }
}

/* My Area — an election-night jurisdiction board for a member's home base. */
.page.area-command-page { max-width: 1180px; padding-top: 0; }
.area-command { margin: 0 -14px; }
.area-masthead {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 34px 38px 30px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(7,10,15,.98), rgba(7,10,15,.82)),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.04) 75px 76px),
    var(--rail);
  border-bottom: 7px solid var(--red);
}
.area-kicker,
.area-section-label {
  color: var(--red);
  font: 900 11px var(--font-ui);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.area-kicker { color: var(--gold); }
.area-kicker i,
.area-section-label i,
.area-room-head > div > span i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(218,0,0,.18);
}
.area-masthead h1 { max-width: 850px; margin: 7px 0 8px; color: #fff; font-size: clamp(3rem, 7vw, 5.7rem); line-height: .84; }
.area-masthead p { max-width: 680px; margin: 0; color: #d5d9df; font: 17px/1.45 var(--font-ui); }
.area-masthead-status { min-width: 180px; padding: 14px 16px; border: 1px solid #59616e; border-top: 5px solid var(--gold); background: rgba(7,10,15,.78); }
.area-masthead-status span,
.area-masthead-status strong { display: block; font-family: var(--font-ui); text-transform: uppercase; }
.area-masthead-status span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.area-masthead-status strong { margin-top: 5px; color: #fff; font-size: 14px; }
.area-location-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin: 18px 22px; padding: 22px; background: #fff; border: 2px solid var(--ink); border-left: 9px solid var(--gold); }
.area-location-callout span { color: var(--red); font: 900 10px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.area-location-callout h2 { margin: 3px 0 5px; font-size: 1.8rem; }
.area-location-callout p { margin: 0; color: var(--muted); font: 15px/1.45 var(--font-ui); }
.area-location-callout a { min-height: 52px; display: inline-flex; align-items: center; padding: 10px 17px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); font: 900 13px var(--font-ui); text-transform: uppercase; text-decoration: none; }

.area-boundaries,
.area-officials,
.area-live-grid { margin: 22px; }
.area-boundaries > header,
.area-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.area-boundaries > header h2,
.area-section-head h2 { max-width: 760px; margin: 4px 0 0; font-size: 2rem; }
.area-boundaries > header > small { color: var(--muted); font: 800 11px var(--font-ui); text-transform: uppercase; }
.area-section-head > a { color: var(--ink); font: 900 12px var(--font-ui); text-transform: uppercase; }
.area-boundary-spine { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; background: #fff; border: 2px solid var(--ink); }
.area-boundary-spine::before { position: absolute; top: 29px; right: 12.5%; left: 12.5%; height: 5px; content: ""; background: var(--red); }
.area-boundary { position: relative; min-width: 0; padding: 17px 15px 16px; border-right: 1px solid var(--gutter); }
.area-boundary:last-child { border-right: 0; }
.area-boundary-node { position: relative; z-index: 1; width: 16px; height: 16px; display: block; margin: 4px 0 14px; background: var(--gold); border: 4px solid var(--ink); transform: rotate(45deg); }
.area-boundary small,
.area-boundary strong,
.area-boundary a { display: block; }
.area-boundary small { color: var(--red); font: 900 10px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.area-boundary strong { min-height: 2.2em; margin-top: 5px; font: 1.35rem/1.05 var(--font-punch); text-transform: uppercase; }
.area-boundary a { margin-top: 11px; color: var(--ink); font: 900 10px var(--font-ui); text-transform: uppercase; }

.area-officials { padding-top: 5px; }
.area-official-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-official-card { min-height: 166px; display: grid; grid-template-columns: 126px minmax(0, 1fr); overflow: hidden; color: var(--ink); background: #fff; border: 1px solid #353c47; text-decoration: none; }
.area-official-card:visited { color: var(--ink); }
.area-official-card:hover { color: var(--ink); background: var(--gold); text-decoration: none; }
.area-official-photo { position: relative; min-height: 166px; overflow: hidden; background: #d7dad6; border-right: 5px solid var(--red); }
.area-official-photo > b { position: absolute; inset: 0; display: grid; place-items: center; color: #777e87; font: 5rem var(--font-punch); }
.area-official-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.area-official-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 13px; }
.area-official-copy > small { color: var(--red); font: 900 9px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.area-official-copy > strong { margin-top: 4px; font: 1.55rem/.96 var(--font-punch); text-transform: uppercase; }
.area-official-copy > span { margin-top: 7px; color: #555d67; font: 800 10px/1.25 var(--font-ui); text-transform: uppercase; }
.area-official-copy > b { margin-top: auto; font: 900 10px var(--font-ui); text-transform: uppercase; }
.area-empty { padding: 22px; background: #fff; border: 1px solid var(--gutter); border-left: 7px solid var(--gold); }
.area-empty strong { font: 1.5rem var(--font-punch); text-transform: uppercase; }
.area-empty p { margin: 5px 0; font: 16px/1.45 var(--font-ui); }

.area-live-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: start; gap: 16px; }
.area-news { min-width: 0; }
.area-news-list { display: grid; gap: 8px; }
.area-news-card { padding: 16px 17px; background: #fff; border: 1px solid var(--gutter); border-left: 7px solid var(--ink); }
.area-news-card.is-local { border-left-color: var(--red); }
.area-news-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.area-news-meta span { padding: 4px 7px; color: #fff; background: var(--ink); font: 900 9px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.area-news-card.is-local .area-news-meta span { background: var(--red); }
.area-news-meta small { color: var(--muted); font: 800 9px var(--font-ui); text-transform: uppercase; }
.area-news-card h3 { margin: 10px 0 6px; font: 1.45rem/1.03 var(--font-punch); text-transform: uppercase; }
.area-news-card h3 a { color: var(--ink); text-decoration: none; }
.area-news-card h3 a:hover { text-decoration: underline; }
.area-news-card p { display: -webkit-box; overflow: hidden; margin: 0 0 12px; font: 16px/1.42 var(--font-body); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.area-news-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--gutter); }
.area-news-card footer span { color: var(--muted); font: 800 10px var(--font-ui); text-transform: uppercase; }
.area-news-card footer a { color: var(--ink); font: 900 10px var(--font-ui); text-align: right; text-transform: uppercase; }

.area-room { position: sticky; top: calc(var(--desk-top) + 102px); min-width: 0; overflow: hidden; color: #fff; background: #11151c; border: 2px solid #3e4653; border-top: 7px solid var(--red); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.area-room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid #3e4653; }
.area-room-head > div > span { color: var(--gold); font: 900 9px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.area-room-head h2 { margin: 4px 0 0; color: #fff; font-size: 1.8rem; }
.area-room-head > strong { padding: 7px 9px; color: #fff; background: var(--red); font: 900 10px var(--font-ui); text-transform: uppercase; white-space: nowrap; }
.area-room-log { height: 410px; overflow-y: auto; padding: 8px 14px 14px; }
.area-room .hero-room-compose { padding: 13px 14px 10px; background: #090c11; border-top: 4px solid var(--gold); }
.area-room .hero-room-compose textarea { min-height: 84px; font-size: 18px; }
.area-room .room-discussion-shelf > div { grid-auto-columns: minmax(230px, 82%); }
.area-room-link { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; color: var(--ink); background: var(--gold); font: 900 11px var(--font-ui); text-transform: uppercase; }
.area-room-link:visited { color: var(--ink); }

@media (max-width: 960px) {
  .area-boundary-spine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-boundary-spine::before { display: none; }
  .area-boundary:nth-child(2n) { border-right: 0; }
  .area-boundary { border-bottom: 1px solid var(--gutter); }
  .area-official-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-live-grid { grid-template-columns: 1fr; }
  .area-room { position: static; }
}

@media (max-width: 700px) {
  .page.area-command-page { padding-right: 0; padding-left: 0; }
  .area-command { margin: 0; }
  .area-masthead { min-height: 230px; display: block; padding: 25px 17px 22px; }
  .area-masthead h1 { margin-top: 15px; font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .area-masthead p { font-size: 16px; }
  .area-masthead-status { min-width: 0; display: inline-block; margin-top: 18px; padding: 8px 10px; }
  .area-location-callout { grid-template-columns: 1fr; margin: 12px 10px; padding: 16px; }
  .area-location-callout h2 { font-size: 1.55rem; }
  .area-location-callout a { justify-content: center; }
  .area-boundaries,
  .area-officials,
  .area-live-grid { margin: 18px 10px; }
  .area-boundaries > header,
  .area-section-head { display: block; }
  .area-boundaries > header h2,
  .area-section-head h2 { font-size: 1.7rem; }
  .area-boundaries > header > small,
  .area-section-head > a { display: inline-block; margin-top: 8px; }
  .area-boundary-spine { grid-template-columns: 1fr; }
  .area-boundary { min-height: 112px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 13px; border-right: 0; }
  .area-boundary-node { margin-top: 5px; }
  .area-boundary strong { min-height: 0; font-size: 1.45rem; }
  .area-boundary a { min-height: 38px; display: flex; align-items: center; }
  .area-official-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .area-official-card { min-height: 0; display: flex; flex-direction: column; }
  .area-official-photo { height: 126px; min-height: 126px; border-right: 0; border-bottom: 5px solid var(--red); }
  .area-official-copy { min-height: 142px; padding: 10px; }
  .area-official-copy > strong { font-size: 1.32rem; }
  .area-news-card { padding: 14px; }
  .area-news-card h3 { font-size: 1.35rem; }
  .area-news-card p { font-size: 17px; }
  .area-news-card footer { align-items: flex-start; flex-direction: column; }
  .area-news-card footer a { min-height: 40px; display: flex; align-items: center; text-align: left; }
  .area-room { margin-bottom: 80px; }
  .area-room-head { align-items: flex-start; }
  .area-room-head h2 { font-size: 1.55rem; }
  .area-room-log { height: min(52svh, 440px); padding-right: 10px; padding-left: 10px; }
}

/* Live Room: the standalone National Room and Today use one chat language. */
.story-discussion-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.story-discussion-dialog:not([open]) { display: none; }
.story-discussion-dialog[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5,8,12,.58);
  -webkit-backdrop-filter: grayscale(1) saturate(.12) brightness(.52);
  backdrop-filter: grayscale(1) saturate(.12) brightness(.52);
}
.story-discussion-dialog::backdrop {
  background: rgba(5,8,12,.58);
  -webkit-backdrop-filter: grayscale(1) saturate(.12) brightness(.52);
  backdrop-filter: grayscale(1) saturate(.12) brightness(.52);
}
body.story-discussion-open { overflow: hidden; }
body.story-discussion-open .travel-tv,
body.story-discussion-open .travel-chat-dock .hero-room > summary,
body.story-discussion-open .travel-chat-dock .hero-room > .hero-room-panel {
  visibility: hidden;
  pointer-events: none;
}
.story-discussion-tray {
  width: min(1040px, 100%);
  max-height: min(92svh, 860px);
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
  color: #fff;
  background: #11151c;
  border: 1px solid #596273;
  border-bottom: 0;
  box-shadow: 0 -22px 70px rgba(0,0,0,.58);
  animation: story-tray-rise .24s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes story-tray-rise {
  from { transform: translateY(34px); opacity: .45; }
  to { transform: translateY(0); opacity: 1; }
}
.story-discussion-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px 68px 11px 18px;
  background: #171c24;
  border-top: 5px solid var(--red);
  border-bottom: 1px solid #3f4754;
}
.story-discussion-head > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 11px;
}
.story-discussion-kicker,
.story-discussion-head > div > p {
  display: block;
  color: var(--gold);
  font: 900 10px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.story-discussion-kicker i,
.story-discussion-compose-foot i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(218,0,0,.16);
}
.story-discussion-head > div > p { margin: 0; color: #aeb6c3; letter-spacing: .06em; }
.story-discussion-head h2 {
  grid-column: 1 / -1;
  max-width: 880px;
  display: -webkit-box;
  margin: 1px 0 0;
  overflow: hidden;
  color: #fff;
  font: clamp(1.45rem, 2.7vw, 2.25rem)/.98 var(--font-punch);
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.story-discussion-source {
  grid-column: 1 / -1;
  display: inline-block;
  width: max-content;
  margin-top: 3px;
  color: var(--gold);
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}
.story-discussion-source:visited { color: var(--gold); }
.story-discussion-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: #252c37;
  border: 2px solid #778191;
  cursor: pointer;
  font: 900 28px/1 var(--font-ui);
}
.story-discussion-close:hover,
.story-discussion-close:focus-visible { color: var(--ink); background: var(--gold); border-color: var(--gold); outline: 0; }
.story-discussion-route {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  color: #fff;
  background: #252c37;
  border-left: 5px solid var(--gold);
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}
.story-discussion-route span { color: var(--gold); }
.story-discussion-route b { color: var(--red); font-size: 18px; }
.story-discussion-thread {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  overflow: hidden;
}
.story-discussion-thread > header {
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0 7px;
  border-bottom: 1px solid #38404c;
}
.story-discussion-thread > header span { color: var(--gold); font: 900 9px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.story-discussion-thread > header h3 { margin: 2px 0 0; color: #fff; font: 900 18px var(--font-ui); text-transform: uppercase; }
.story-discussion-thread > header > strong { color: #c6ccd5; font: 800 11px var(--font-ui); text-transform: uppercase; }
.story-discussion-log {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px 9px 0;
  scrollbar-color: var(--gold) #242a34;
}
.story-discussion-log[aria-busy="true"] { opacity: .62; }
.story-discussion-log .hero-message {
  width: 100%;
  max-width: none;
  margin: 6px 0;
  padding: 10px 12px;
  background: #171c24;
  border: 1px solid #303844;
  border-left: 4px solid #596273;
}
.story-discussion-log .hero-message:focus-within { border-left-color: var(--gold); }
.story-discussion-log .room-story-reference { display: none; }
.story-discussion-empty { margin: auto 0; padding: 20px 0; }
.story-discussion-empty[hidden] { display: none; }
.story-discussion-empty strong { display: block; color: #fff; font: 900 24px var(--font-ui); text-transform: uppercase; }
.story-discussion-empty p { max-width: 650px; margin: 5px 0 0; color: #c8cdd5; font: 17px/1.42 var(--font-body); }
.story-discussion-compose {
  position: relative;
  padding: 14px 20px 12px;
  background: #090c11;
  border-top: 5px solid var(--gold);
}
.story-discussion-prompt { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.story-discussion-prompt .room-member-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 12px; }
.story-discussion-prompt label { min-width: 0; margin: 0; color: #fff; text-transform: none; letter-spacing: 0; }
.story-discussion-prompt label > strong { display: block; color: #fff; font: 900 18px var(--font-ui); text-transform: uppercase; }
.story-discussion-prompt label small { display: block; margin-top: 2px; color: #c8ced8; font: 14px var(--font-ui); }
.story-discussion-prompt label b { color: var(--gold); }
.story-discussion-compose-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 9px; }
.story-discussion-compose textarea {
  min-width: 0;
  min-height: 86px;
  resize: vertical;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  font: 19px/1.35 var(--font-body);
}
.story-discussion-compose textarea:focus { outline: 4px solid var(--gold); outline-offset: 2px; }
.story-discussion-compose-row > button {
  min-height: 86px;
  padding: 12px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  cursor: pointer;
  font: 900 15px/1.15 var(--font-ui);
  text-transform: uppercase;
}
.story-discussion-compose-row > button:hover { color: #fff; background: var(--red); }
.story-discussion-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
}
.story-discussion-compose-foot p { margin: 0; color: #c8ced8; font: 800 11px var(--font-ui); }
.story-discussion-compose-foot a { color: var(--gold); font: 900 11px var(--font-ui); text-transform: uppercase; }
.story-discussion-compose .compose-status { min-height: 17px; margin: 5px 0 0; color: #fff; font: 800 12px var(--font-ui); }

.room-story-focus {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--gold);
  border-bottom: 3px solid var(--red);
}
.room-story-focus span,
.room-story-focus strong { display: block; font-family: var(--font-ui); text-transform: uppercase; }
.room-story-focus span { font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.room-story-focus strong { margin-top: 2px; font-size: 13px; }
.room-story-focus button { min-height: 38px; padding: 8px 10px; color: #fff; background: var(--ink); border: 0; cursor: pointer; font: 900 10px var(--font-ui); text-transform: uppercase; }
.hero-message.is-story-muted { opacity: .18; filter: grayscale(1); }
.hero-message.is-story-focus { padding-right: 9px; padding-left: 9px; background: #1b212b; border-left: 5px solid var(--gold); }
.hero-message.is-target-reply {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(252,204,0,.14);
}

.hero-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}
.room-member-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 var(--red);
  font: 900 14px var(--font-ui);
  letter-spacing: .04em;
}
.room-message-copy { min-width: 0; }
.hero-message-head { flex-wrap: wrap; gap: 5px 8px; }
.hero-message-head strong { font-size: 14px; }
.hero-message-head .room-member-location {
  padding: 0;
  color: #b9c0cd;
  background: transparent;
  font: 800 11px var(--font-ui);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-message-head .room-member-location::before { content: "• "; color: var(--red); }
.hero-message-head .room-pinned-label {
  padding: 2px 5px;
  color: var(--ink);
  background: var(--gold);
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
}
.hero-message time {
  display: block;
  margin: 0;
  color: #8d96a5;
  font: 700 10px var(--font-ui);
  text-transform: uppercase;
}
.room-message-foot {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}
.room-message-reply {
  min-width: 76px;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--gold);
  background: #202631;
  border: 1px solid #657084;
  cursor: pointer;
  font: 900 11px var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.room-message-reply:hover,
.room-message-reply:focus-visible { color: var(--ink); background: var(--gold); border-color: var(--gold); outline: 0; }
.room-reply-reference {
  width: 100%;
  display: block;
  margin: 7px 0 8px;
  padding: 7px 10px;
  overflow: hidden;
  color: #dfe3e9;
  background: #0d1117;
  border: 0;
  border-left: 4px solid var(--gold);
  cursor: pointer;
  text-align: left;
}
.room-reply-reference span {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font: 900 9px var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.room-reply-reference q {
  display: block;
  overflow: hidden;
  font: 14px/1.3 var(--font-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-reply-reference q::before,
.room-reply-reference q::after { content: none; }
.room-reply-reference:hover,
.room-reply-reference:focus-visible { background: #242b36; outline: 2px solid var(--gold); outline-offset: 1px; }
.room-story-reference {
  display: block;
  margin: 6px 0 8px;
  padding: 9px 10px;
  color: #fff;
  background: #1b202a;
  border-left: 4px solid var(--red);
  text-decoration: none;
}
.room-story-reference:visited { color: #fff; }
.room-story-reference:hover { background: #252c38; }
.room-story-reference small {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font: 900 9px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.room-story-reference small i,
.room-discussion-shelf > header i,
.room-live-kicker i,
.room-compose-story > span i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(218,0,0,.15);
}
.room-story-reference > strong { display: block; font: 900 14px/1.2 var(--font-ui); }

.room-discussion-shelf {
  flex: 0 0 auto;
  padding: 9px 12px 11px;
  color: #fff;
  background: #090c11;
  border-bottom: 1px solid #343b48;
}
.room-discussion-shelf[hidden] { display: none; }
.room-discussion-shelf > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-family: var(--font-ui);
  text-transform: uppercase;
}
.room-discussion-shelf > header span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.room-discussion-shelf > header small { color: #aeb5c1; font-size: 9px; font-weight: 800; }
.room-discussion-shelf > div {
  display: grid;
  grid-auto-columns: minmax(220px, 78%);
  grid-auto-flow: column;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-color: #535d6e transparent;
}
.room-discussion-card {
  min-width: 0;
  min-height: 78px;
  padding: 9px 10px;
  text-align: left;
  color: #fff;
  background: #181e28;
  border: 1px solid #444d5d;
  border-left: 4px solid var(--red);
  cursor: pointer;
}
.room-discussion-card:hover,
.room-discussion-card:focus-visible { border-color: var(--gold); outline: 0; }
.room-discussion-card:disabled { cursor: default; opacity: .82; }
.room-discussion-card span,
.room-discussion-card small { display: block; color: var(--gold); font: 900 9px var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.room-discussion-card strong { display: -webkit-box; margin: 4px 0 6px; overflow: hidden; font: 900 13px/1.18 var(--font-ui); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.hero-room-compose {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 14px 10px;
  background: #171c24;
  border-top: 4px solid var(--gold);
}
.room-compose-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.hero-room-compose .room-compose-heading label { margin: 0; color: #fff; text-transform: none; letter-spacing: 0; }
.room-compose-heading label strong { display: block; color: #fff; font: 900 17px var(--font-ui); text-transform: uppercase; }
.room-compose-heading label small { display: block; margin-top: 2px; color: #c2c7d0; font: 13px var(--font-ui); }
.room-compose-heading .room-member-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.room-compose-story {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  margin: 0 0 8px;
  padding: 8px 42px 8px 10px;
  background: rgba(255,204,0,.12);
  border-left: 4px solid var(--red);
}
.room-compose-story[hidden] { display: none; }
.room-compose-story > span { grid-column: 1; color: var(--gold); font: 900 9px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.room-compose-story > strong { grid-column: 1; color: #fff; font: 900 13px/1.2 var(--font-ui); }
.room-compose-story > button {
  position: absolute;
  top: 50%;
  right: 5px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  transform: translateY(-50%);
  color: #fff;
  background: transparent;
  border: 1px solid #707887;
  font: 900 20px var(--font-ui);
}
.hero-room-compose > .room-compose-row { display: flex; align-items: stretch; gap: 8px; }
.hero-room-compose textarea {
  min-width: 0;
  min-height: 72px;
  flex: 1;
  resize: vertical;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  font: 18px/1.3 var(--font-body);
}
.hero-room-compose textarea::placeholder { color: #656971; opacity: 1; }
.hero-room-compose textarea:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.hero-room-compose .room-compose-row > button {
  min-width: 136px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  cursor: pointer;
  font: 900 13px/1.15 var(--font-ui);
  text-transform: uppercase;
}
.hero-room-compose .room-compose-row > button:hover { color: #fff; background: var(--red); }
.room-new-messages {
  align-self: center;
  z-index: 3;
  margin: -44px auto 8px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid #fff;
  cursor: pointer;
  font: 900 11px var(--font-ui);
  text-transform: uppercase;
}

.room-live-page { max-width: 1180px; }
.room-live-command { margin: 0 auto; }
.room-live-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 26px 20px;
  color: #fff;
  background: #0d1118;
  border-bottom: 5px solid var(--red);
}
.room-live-kicker { color: var(--gold); font: 900 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.room-live-masthead h1 { margin: 5px 0 2px; color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .9; }
.room-live-masthead p { margin: 9px 0 0; color: #d2d5da; font: 16px var(--font-ui); }
.room-live-status { min-width: 158px; padding: 13px; color: #fff; background: var(--red); text-align: center; text-transform: uppercase; }
.room-live-status strong,
.room-live-status span { display: block; font-family: var(--font-ui); }
.room-live-status strong { font-size: 14px; }
.room-live-status span { margin-top: 4px; font-size: 10px; font-weight: 800; }
.room-live-switcher { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #ececea; border: 1px solid var(--gutter); border-top: 0; }
.room-live-switcher span { margin-right: 3px; color: var(--muted); font: 900 10px var(--font-ui); text-transform: uppercase; }
.room-live-switcher a { padding: 6px 8px; color: var(--ink); background: #fff; border: 1px solid #c8c8c5; font: 900 11px var(--font-ui); text-transform: uppercase; text-decoration: none; }
.room-live-panel { width: 100%; height: min(760px, calc(100svh - 155px)); min-height: 620px; margin: 0; border: 0; border-left: 1px solid #303642; border-right: 1px solid #303642; background: #11151c; }
.room-live-panel .hero-room-log { padding: 8px 22px 14px; }
.room-live-panel .hero-message { max-width: 780px; }
.room-live-panel .room-discussion-shelf > div { grid-auto-columns: minmax(250px, 380px); }
.room-live-panel .hero-room-compose { padding-right: 22px; padding-left: 22px; }
.room-live-staff-note { padding: 18px; color: #fff; background: #171c24; border-top: 4px solid var(--gold); font: 800 14px var(--font-ui); }
.room-talk-now { display: none; }

/* One dependable writing surface follows the member through the Action Center. */
.persistent-room-compose-home,
.story-discussion-compose-slot { display: contents; }
.persistent-room-compose {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 125;
  width: min(1040px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-areas:
    "context context"
    "reply reply"
    "message submit";
  gap: 0 8px;
  padding: 0 8px 8px;
  color: #fff;
  background: #090c11;
  border: 2px solid #4e5663;
  border-bottom: 0;
  border-top: 5px solid var(--gold);
  box-shadow: 0 -14px 42px rgba(0,0,0,.52);
  transform: translateX(-50%);
}
.persistent-compose-context {
  grid-area: context;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 4px 4px;
}
.persistent-compose-context label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.persistent-compose-context label span {
  flex: 0 0 auto;
  color: var(--gold);
  font: 900 10px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.persistent-compose-context label i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(218,0,0,.16);
}
.persistent-compose-context label strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font: 900 13px var(--font-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.persistent-compose-context > button {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #fff;
  background: #252c37;
  border: 1px solid #778191;
  cursor: pointer;
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
}
.persistent-compose-context > button[hidden] { display: none; }
.persistent-compose-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.persistent-compose-actions > button {
  padding: 4px 7px;
  color: #fff;
  background: #252c37;
  border: 1px solid #778191;
  cursor: pointer;
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
}
.persistent-compose-actions > button[hidden] { display: none; }
.compose-reply-context {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  padding: 7px 9px;
  color: #fff;
  background: #202631;
  border-left: 5px solid var(--gold);
}
.compose-reply-context[hidden] { display: none; }
.compose-reply-context > span {
  color: var(--gold);
  font: 900 10px var(--font-ui);
  text-transform: uppercase;
}
.compose-reply-context q {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font: 14px/1.25 var(--font-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-reply-context q::before,
.compose-reply-context q::after { content: none; }
.compose-reply-context > button {
  min-height: 32px;
  padding: 5px 8px;
  color: #fff;
  background: transparent;
  border: 1px solid #7c8799;
  cursor: pointer;
  font: 900 9px var(--font-ui);
  text-transform: uppercase;
}
.persistent-room-compose .compose-reply-context { grid-area: reply; margin-right: -1px; margin-left: -1px; }
.hero-room-compose .compose-reply-context,
.story-discussion-compose .compose-reply-context { margin-bottom: 9px; }
.persistent-room-compose textarea {
  grid-area: message;
  width: 100%;
  min-width: 0;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  resize: none;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  font: 19px/1.35 var(--font-body);
}
.persistent-room-compose textarea:focus { outline: 4px solid var(--gold); outline-offset: -4px; }
.persistent-room-compose > button[type="submit"] {
  grid-area: submit;
  min-height: 58px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  cursor: pointer;
  font: 900 16px var(--font-ui);
  text-transform: uppercase;
}
.persistent-room-compose > button[type="submit"]:hover,
.persistent-room-compose > button[type="submit"]:focus-visible { color: #fff; background: var(--red); outline: 0; }
.persistent-room-compose .compose-status {
  position: absolute;
  right: 166px;
  top: 8px;
  max-width: 45%;
  margin: 0;
  color: #fff;
  font: 800 10px var(--font-ui);
  text-align: right;
}
.persistent-room-compose.is-story-context { border-top-color: var(--red); }
.persistent-room-compose.is-story-context .persistent-compose-context { background: #171c24; }
.persistent-room-compose.is-replying { border-top-color: var(--gold); }
.persistent-room-compose.reply-attention { animation: reply-bar-attention .58s ease-out; }
@keyframes reply-bar-attention {
  0%, 100% { box-shadow: 0 -14px 42px rgba(0,0,0,.52); }
  38% { box-shadow: 0 0 0 5px rgba(252,204,0,.42), 0 -18px 48px rgba(0,0,0,.62); }
}
.persistent-post-flight {
  position: absolute;
  right: 166px;
  bottom: 14px;
  z-index: 3;
  max-width: min(520px, 58vw);
  overflow: hidden;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.42);
  font: 800 15px var(--font-body);
  opacity: 1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform .65s cubic-bezier(.18,.84,.26,1), opacity .55s ease;
}
.persistent-post-flight.is-flying { transform: translate(calc(50vw + 180px), -70px) rotate(-3deg) scale(.72); opacity: 0; }
.story-discussion-tray:has(.persistent-room-compose) { padding-bottom: 112px; }
.war-room-page:has(.persistent-room-compose) { padding-bottom: 112px; }
.story-discussion-tray:has(.persistent-room-compose.is-replying) { padding-bottom: 157px; }
.war-room-page:has(.persistent-room-compose.is-replying) { padding-bottom: 157px; }

@media (max-width: 700px) {
  .persistent-room-compose {
    width: calc(100vw - 8px);
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 0 6px 6px;
  }
  body > .persistent-room-compose { bottom: 58px; }
  .story-discussion-compose-slot .persistent-room-compose { bottom: 0; }
  .persistent-compose-context { min-height: 31px; gap: 6px; padding: 4px 2px 3px; }
  .persistent-compose-context label { gap: 6px; }
  .persistent-compose-context label span { font-size: 9px; }
  .persistent-compose-context label strong { font-size: 11px; }
  .persistent-compose-actions { gap: 3px; }
  .persistent-compose-actions > button { max-width: 110px; overflow: hidden; padding: 4px 5px; text-overflow: ellipsis; white-space: nowrap; }
  .compose-reply-context { grid-template-columns: auto minmax(0, 1fr); gap: 3px 7px; margin-bottom: 5px; padding: 5px 7px; }
  .compose-reply-context > span { font-size: 9px; }
  .compose-reply-context q { font-size: 13px; }
  .compose-reply-context > button { grid-column: 1 / -1; width: 100%; min-height: 30px; }
  .persistent-room-compose .compose-reply-context { grid-template-columns: auto minmax(0, 1fr); }
  .persistent-room-compose .compose-reply-context > button { display: none; }
  .persistent-room-compose textarea { height: 56px; min-height: 56px !important; max-height: 56px; padding: 12px; resize: none; font-size: 18px; }
  .persistent-room-compose > button[type="submit"] { min-height: 56px; padding: 8px; font-size: 14px; }
  .persistent-room-compose .compose-status { right: 98px; top: 7px; max-width: 42%; font-size: 9px; }
  .persistent-post-flight { right: 98px; bottom: 10px; max-width: 62vw; font-size: 14px; }
  .persistent-post-flight.is-flying { transform: translate(calc(50vw + 80px), -58px) rotate(-3deg) scale(.7); }
  .story-discussion-tray:has(.persistent-room-compose) { padding-bottom: 101px; }
  .war-room-page:has(.persistent-room-compose) { padding-bottom: 158px; }
  .story-discussion-tray:has(.persistent-room-compose.is-replying) { padding-bottom: 137px; }
  .war-room-page:has(.persistent-room-compose.is-replying) { padding-bottom: 194px; }
  .story-reader-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .story-reader-bar .story-reader-discuss {
    position: fixed;
    right: 8px;
    bottom: 66px;
    left: 8px;
    z-index: 56;
    min-height: 58px;
    justify-content: center;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    font-size: 15px;
  }
  .story-discussion-tray { width: 100%; max-height: 94svh; border-right: 0; border-left: 0; }
  .story-discussion-head { padding: 13px 58px 11px 12px; }
  .story-discussion-head > div { grid-template-columns: 1fr; gap: 2px; }
  .story-discussion-head h2,
  .story-discussion-source { grid-column: 1; }
  .story-discussion-head h2 { font-size: 1.5rem; }
  .story-discussion-source { margin-top: 6px; }
  .story-discussion-close { top: 10px; right: 8px; }
  .story-discussion-route { min-height: 48px; padding: 8px 11px; gap: 7px; font-size: 9px; }
  .story-discussion-thread { padding: 0 11px; }
  .story-discussion-thread > header { align-items: start; }
  .story-discussion-thread > header > strong { max-width: 100px; text-align: right; }
  .story-discussion-empty strong { font-size: 21px; }
  .story-discussion-empty p { font-size: 16px; }
  .story-discussion-compose { padding: 10px 11px 8px; }
  .story-discussion-prompt label > strong { font-size: 16px; }
  .story-discussion-prompt label small { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .story-discussion-compose-row { grid-template-columns: 1fr; }
  .story-discussion-compose textarea { min-height: 82px; font-size: 18px; }
  .story-discussion-compose-row > button { min-height: 54px; }
  .story-discussion-compose-foot { align-items: start; flex-direction: column; gap: 5px; }
  .story-discussion-compose-foot p { font-size: 10px; }
  .room-story-focus { align-items: stretch; flex-direction: column; gap: 8px; }
  .room-story-focus button { width: 100%; }
  .hero-message { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .room-member-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 12px; }
  .hero-message p { font-size: 17px; }
  .room-message-reply { min-width: 86px; min-height: 40px; font-size: 12px; }
  .room-reply-reference q { font-size: 15px; }
  .room-discussion-shelf { padding: 8px; }
  .room-discussion-shelf > header small { display: none; }
  .room-discussion-shelf > div { grid-auto-columns: 86%; }
  .hero-room-compose { padding: 11px 10px 8px; }
  .room-compose-heading label strong { font-size: 16px; }
  .room-compose-heading label small { font-size: 12px; }
  .hero-room-compose > .room-compose-row { display: grid; grid-template-columns: 1fr; }
  .hero-room-compose textarea { min-height: 78px; font-size: 18px; }
  .hero-room-compose .room-compose-row > button { min-height: 54px; width: 100%; font-size: 15px; }
  .hero-live-stage .hero-room-panel { height: 100%; }
  .hero-live-stage .hero-room[open] .hero-room-log { min-height: 112px; }
  .room-live-page { padding: 0; }
  .room-live-masthead { position: relative; display: block; padding: 16px 108px 14px 14px; }
  .room-live-masthead h1 { font-size: 2.7rem; }
  .room-live-masthead p { max-width: 250px; font-size: 14px; }
  .room-live-status { position: absolute; top: 16px; right: 0; min-width: 94px; padding: 10px 7px; }
  .room-live-panel { height: calc(100svh - 160px); min-height: 560px; }
  .room-live-panel .hero-room-log,
  .room-live-panel .hero-room-compose { padding-right: 11px; padding-left: 11px; }
  .room-talk-now {
    position: fixed;
    right: 8px;
    bottom: 58px;
    left: 8px;
    z-index: 44;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--gold);
    border: 3px solid var(--ink);
    box-shadow: 0 8px 24px rgba(0,0,0,.42);
    cursor: pointer;
    text-align: left;
    text-transform: uppercase;
  }
  .room-talk-now strong { font: 900 15px var(--font-ui); }
  .room-talk-now span { font: 900 10px var(--font-ui); white-space: nowrap; }
  .room-talk-now.is-composer-visible { opacity: 0; pointer-events: none; }
  .war-room:has(.travel-chat-dock.is-discussing, .travel-chat-dock [data-chat-unit][open]) .room-talk-now-main { opacity: 0; pointer-events: none; }
  .war-room:has(.travel-chat-dock.is-discussing, .travel-chat-dock [data-chat-unit][open]) .war-video-bg.is-scroll-driven { z-index: 97; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room-head {
    min-height: 112px;
    align-items: flex-end;
    padding-right: min(198px, 51vw);
  }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room-head h2 { font-size: 1.2rem; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room-head-actions { position: absolute; top: 8px; left: 8px; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .story-discussion-tray { animation: none; }
  .persistent-post-flight { transition: none; }
  .persistent-room-compose.reply-attention { animation: none; }
}

/* Staff broadcast library: one deliberate upload surface, then the live shelf. */
.video-library { max-width: 1320px; margin: 0 auto; }
.video-library-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin: 4px 0 20px; padding: 22px 24px; color: #fff;
  border-bottom: 5px solid var(--red);
  background: linear-gradient(125deg, #090b0f 0%, #171b24 68%, #451014 100%);
}
.video-library-head h1 { margin: 3px 0 6px; color: #fff; font: 900 clamp(2rem, 5vw, 3.8rem)/.9 var(--font-punch); text-transform: uppercase; }
.video-library-head p { max-width: 46rem; margin: 0; color: #d8d9dd; font: 15px/1.45 var(--font-ui); }
.video-library-grid { display: grid; grid-template-columns: minmax(20rem, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.video-upload-card { position: sticky; top: 72px; margin: 0; border-top: 5px solid var(--gold); }
.video-upload-card h2, .video-library-list h2 { margin: 4px 0 8px; font: 900 1.8rem/1 var(--font-punch); text-transform: uppercase; }
.video-upload-card label:not(.video-file-picker) { display: grid; gap: 6px; margin-top: 13px; font: 800 12px var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.video-upload-card input[type="text"],
.video-upload-card input[type="date"] { width: 100%; min-height: 48px; border: 1px solid #a9a9a9; background: #fff; padding: 10px 12px; color: var(--ink); font: 16px var(--font-ui); }
.video-upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.video-file-picker {
  display: grid; gap: 4px; margin: 16px 0 4px; padding: 22px 18px; cursor: pointer;
  border: 2px dashed #777; background: var(--paper-2); text-align: center;
}
.video-file-picker:hover { border-color: var(--red); background: #fff8e2; }
.video-file-picker strong { font: 900 17px var(--font-ui); text-transform: uppercase; }
.video-file-picker span { color: var(--muted); font: 13px/1.35 var(--font-ui); overflow-wrap: anywhere; }
.video-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.video-upload-progress { margin: 17px 0 8px; }
.video-upload-progress > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font: 800 12px var(--font-ui); text-transform: uppercase; }
.video-upload-progress progress { display: block; width: 100%; height: 16px; accent-color: var(--red); }
.video-upload-status { min-height: 22px; margin: 9px 0; color: var(--ok); font: 800 13px/1.4 var(--font-ui); }
.video-upload-status.is-error { color: var(--red); }
.video-upload-card [data-video-submit] { width: 100%; min-height: 52px; margin-top: 2px; background: var(--gold); color: var(--ink); }
.video-upload-card [data-video-submit]:disabled { opacity: .55; cursor: wait; }
.video-library-list { margin: 0; border-top: 5px solid var(--red); }
.video-assets { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.video-asset { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 11px; border: 1px solid var(--gutter); background: #fff; }
.video-asset.is-archived { opacity: .58; }
.video-asset-preview { display: grid; min-height: 6.2rem; place-items: center; overflow: hidden; background: #090b0f; color: var(--gold); font: 900 2rem var(--font-ui); }
.video-asset-preview video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-asset-copy { min-width: 0; }
.video-asset-copy > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.video-status { padding: 3px 6px; background: var(--ink); color: #fff; font: 900 9px var(--font-ui); letter-spacing: .09em; text-transform: uppercase; }
.is-ready .video-status { background: var(--ok); }
.is-uploading .video-status { background: #8a6400; }
.video-asset-copy strong { display: block; margin: 6px 0 3px; font: 900 18px/1.1 var(--font-punch); text-transform: uppercase; }
.video-asset-copy p, .video-asset-copy small { margin: 0; color: var(--muted); font: 12px/1.4 var(--font-ui); overflow-wrap: anywhere; }
.video-asset > form { align-self: center; }
.video-asset > form .button { min-height: 42px; }
.small { font-size: 11px !important; }

@media (max-width: 900px) {
  .video-library-grid { grid-template-columns: 1fr; }
  .video-upload-card { position: static; }
}
@media (max-width: 620px) {
  .video-library-head { align-items: stretch; flex-direction: column; padding: 18px 16px; }
  .video-library-head .button { text-align: center; }
  .video-upload-fields { grid-template-columns: 1fr; }
  .video-asset { grid-template-columns: 7rem minmax(0, 1fr); }
  .video-asset > form { grid-column: 1 / -1; }
  .video-asset > form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .depth-body { animation: none; }
  .war-ticker { transition: none; }
  .member-moment, .member-moment.is-leaving { animation: none; }
  .watch-scroll-cue i { animation: none; }
  .story-reader-layer { transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (max-width: 1250px) and (min-width: 1051px) {
  .hero-live-stage,
  .hero-live-stage.has-video { height: auto; grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); }
  .hero-live-stage .war-video-bg { grid-column: 1 / -1; height: clamp(440px, 54vw, 650px); }
  .hero-live-stage .live-news-rail,
  .hero-live-stage .hero-room-home { height: 460px; }
}

@media (max-width: 1050px) {
  .war-hero { min-height: auto; }
  .hero-live-stage, .hero-live-stage.has-video { height: auto; grid-template-columns: 1fr; }
  .hero-live-stage .war-video-bg { height: clamp(430px, calc(100svh - 170px), 680px); }
  .hero-live-stage .live-news-rail { height: 420px; }
  .hero-live-stage .hero-room-home { height: 480px; }
  .action-path { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; }
  .action-path.has-support { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
  .war-hero-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero-mission { padding-top: 22px; }
  .location-onboarding { margin-top: 0; }
  .location-onboarding-body { grid-template-columns: 1fr; }
  .hero-room { width: 100%; height: auto; }
  .fuel-grid { grid-template-columns: repeat(3, 1fr); }
  .fundraising-live { grid-template-columns: 1fr 1fr; }
  .fundraising-live > a { grid-column: 1 / -1; text-align: center; }
  .war-room-followthrough { display: flex; flex-direction: column; }
  .travel-rail {
    order: -1; width: 100%; height: auto; min-height: 0; position: sticky; top: 54px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); padding: 8px; border-left: 0;
  }
  .travel-chat-dock { height: 330px; flex: 0 0 330px; }
}

@media (max-width: 700px) {
  .war-room-page { padding-left: 0; padding-right: 0; }
  .war-room { border-left: 0; border-right: 0; }
  .war-room-head { align-items: flex-start; padding: 14px 12px; }
  .war-room-name { font-size: 22px; }
  .war-location { max-width: 250px; font-size: 12px; line-height: 1.35; }
  .war-kicker { font-size: 10px; }
  .tv-button { min-height: 46px; padding: 8px 10px; font-size: 11px; }
  .broadcast-controls { flex-direction: column; }
  .sound-button { min-height: 44px; padding: 7px 9px; font-size: 11px; }
  .sound-button [data-sound-label] { display: none; }
  .hero-live-stage .war-video-bg { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-live-stage .live-news-rail { height: 350px; }
  .hero-live-stage .hero-room-home { height: 440px; }
  .hero-live-stage .hero-room-head { padding: 11px 12px; }
  .hero-room-head-actions .room-open { display: none; }
  .action-path { grid-template-columns: repeat(4, 150px); }
  .action-path.has-support { grid-template-columns: repeat(5, 150px); }
  .action-path a,
  .action-path button { min-height: 62px; padding: 8px 10px; }
  .action-path b { flex-basis: 30px; width: 30px; height: 30px; }
  .broadcast-now { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 6px 8px; font-size: 10px; }
  .broadcast-now strong { display: none; }
  .war-ticker { grid-template-columns: auto minmax(0, 1fr); }
  .ticker-label { grid-column: auto; min-height: 46px; justify-content: center; padding: 4px 10px; }
  .ticker-track { min-height: 62px; padding: 8px 10px; }
  .ticker-item.is-active { align-items: flex-start; flex-direction: column; gap: 1px; }
  .ticker-item span, .ticker-item a { font-size: 14px; line-height: 1.22; }
  .ticker-item small { white-space: normal; }
  .ticker-controls { display: none; }
  .war-hero-inner { padding: 12px 10px 22px; gap: 10px; }
  .hero-mission { padding: 16px 13px; }
  .location-onboarding > summary { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .location-onboarding > summary .panel-kicker { grid-column: 1 / -1; }
  .location-onboarding > summary > strong { font-size: 16px; }
  .location-onboarding > summary > span:last-child { font-size: 10px; }
  .location-onboarding-body { padding: 12px; gap: 12px; }
  .location-onboarding form > div { grid-template-columns: 1fr; }
  .hero-mission h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero-mission .mission-copy { font-size: 1rem; }
  .hero-progress { max-width: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions > form:first-child { grid-column: 1 / -1; }
  .hero-actions > form, .mission-button, .action-complete-button, .hero-watch, .watch-confirm { width: 100%; }
  .mission-button, .action-complete-button, .hero-watch, .watch-confirm { min-height: 54px; font-size: 13px; }
  .hero-room { height: auto; background: #11151c; }
  .hero-room > summary { grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; }
  .hero-room-peek-message { grid-column: 1 / -1; grid-row: 2; padding: 6px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .hero-room-peek-title { grid-row: 1; }
  .hero-room > summary .room-open { grid-column: 2; grid-row: 1; }
  .hero-room-panel { height: min(470px, 68vh); }
  .news-river-actions { flex-direction: column; }
  .news-river-actions > a,
  .news-river-actions > button { width: 100%; }
  .travel-rail {
    position: sticky;
    top: 52px;
    z-index: 30;
    display: block;
    padding: 6px;
    background: #080a0f;
  }
  .travel-tv > header { min-height: 36px; padding: 6px 8px; }
  .travel-sound { min-height: 40px; }
  .travel-chat-dock { height: auto; min-height: 0; flex: none; }
  .travel-chat-dock .hero-room { height: auto; min-height: 0; }
  .travel-chat-dock .hero-room[open] > summary { display: grid; }
  .travel-chat-dock .hero-room[open] > summary .room-open::after { content: ""; }
  .travel-chat-dock .hero-room[open] .hero-room-panel { display: none; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) {
    position: fixed;
    z-index: 95;
    inset: 52px 0 62px;
    width: auto;
    height: auto;
    padding: 8px;
    background: #080a0f;
  }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room,
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room-panel { height: 100%; min-height: 0; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room[open] > summary { display: none; }
  .travel-chat-dock:is(.is-discussing, :has([data-chat-unit][open])) .hero-room[open] .hero-room-panel { display: flex; }
  .news-river { padding: 22px 12px; }
  .news-river-card { scroll-margin-top: 430px; }
  .news-river-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .news-river-list { grid-template-columns: 1fr; }
  .news-river-card:nth-child(5n + 1) { grid-column: auto; }
  .hero-room-log { padding-top: 4px; }
  .hero-message:nth-last-child(n+3):not(.is-pinned) { display: none; }
  .story-discussion-log .hero-message,
  .room-live-log .hero-message { display: grid; }
  .hero-message p { font-size: 15px; }
  .hero-room-compose { padding-top: 8px; }
  .power-grid { padding: 16px 14px; }
  .power-grid-head { align-items: flex-start; flex-direction: column; }
  .power-grid-head p { text-align: left; }
  .fuel-grid { grid-template-columns: repeat(2, 1fr); }
  .fuel-cell { padding: 11px; }
  .fundraising-live { grid-template-columns: 1fr; padding: 18px 14px; background: linear-gradient(150deg, #8d0000, var(--red) 52%, #111 52%); }
  .fundraising-live > a { grid-column: auto; }
  .personal-energy { grid-template-columns: 1fr; padding: 17px 14px; }
  .action-deck { grid-template-columns: 1fr 1fr; }
  .action-deck a, .action-deck button { border-bottom: 1px solid var(--war-line); min-height: 95px; }
  .member-desk { padding: 24px 10px 4px; }
  .member-desk-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .member-desk-head p { text-align: left; }
  .member-desk-entry { padding: 10px; }
  .member-desk-entry > button { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .member-desk-entry .panel-kicker { grid-column: 1 / -1; }
  .member-desk-entry strong { font-size: 13px; }
  .member-desk-entry > button > span:last-child { font-size: 10px; }
  .member-desk.member-desk-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
  }
  .member-desk.member-desk-dialog.is-fallback-open { inset: 0; }
  .member-desk-dialog .member-desk-head {
    grid-template-columns: minmax(0, 1fr) 56px;
    align-items: center;
    gap: 9px;
    padding: 11px 10px;
  }
  .member-desk-dialog .member-desk-head h2 { font-size: 1.8rem; }
  .member-desk-location { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .member-desk-head-actions { width: auto; }
  .member-desk-head-actions button { width: 56px; min-height: 52px; }
  .member-desk-head-actions button span { font-size: 28px; }
  .command-center-scroll { padding: 0 10px 18px; }
  .command-situation {
    grid-template-columns: 1fr 1fr;
    margin: 0 -10px 10px;
  }
  .command-situation > div { min-height: 52px; padding: 8px 10px; border-bottom: 1px solid #353c48; }
  .command-situation > div:nth-child(2n) { border-right: 0; }
  .command-situation strong { font-size: 11px; }
  .command-targets { padding: 12px 10px 10px; border-top-width: 5px; }
  .command-targets > header { display: block; margin-bottom: 11px; }
  .command-targets > header h3 { font-size: 2rem; }
  .command-targets > header p { margin-top: 5px; font-size: 12px; }
  .command-targets > header > a { display: inline-block; margin-top: 9px; }
  .command-official-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .command-official { min-height: 0; display: flex; flex-direction: column; }
  .command-official-photo { min-height: 112px; height: 112px; border: 0; border-bottom: 4px solid var(--red); }
  .command-official-copy { min-height: 118px; padding: 10px 9px; }
  .command-official-copy > strong { font-size: 1.3rem; }
  .command-official-copy > span { font-size: 9px; }
  .command-official-copy b { font-size: 9px; }
  .command-targets-empty { align-items: flex-start; flex-direction: column; padding: 13px; }
  .command-actions { display: block; margin: 10px 0 16px; padding: 10px; }
  .command-actions > header { margin-bottom: 9px; }
  .command-actions h3 { font-size: 1.45rem; }
  .command-actions > div { grid-template-columns: 1fr 1fr; }
  .command-action { min-height: 84px; }
  .command-action-primary { grid-column: 1 / -1; min-height: 72px; }
  .command-tools-heading h3 { font-size: 1.45rem; }
  .member-moment {
    left: 10px;
    right: 10px;
    bottom: 76px;
    width: auto;
    padding: 15px 52px 14px 14px;
  }
  .member-moment > strong { font-size: 1.65rem; }
  .member-moment > p { font-size: 14px; }
  .depth-widget summary { grid-template-columns: 1fr 44px; gap: 6px 10px; padding-left: 12px; }
  .depth-title { font-size: 1.15rem; }
  .depth-meta { grid-column: 1; grid-row: 2; text-align: left; font-size: 11px; }
  .depth-control { grid-column: 2; grid-row: 1 / 3; }
  .depth-body { padding: 15px 12px; }
  .staff-command-grid, .staff-command-stats { grid-template-columns: 1fr 1fr; }
  .depth-room { display: block; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-address { grid-column: auto; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .story-discussion-tray { max-height: 96svh; }
  .story-discussion-head { padding-top: 9px; padding-bottom: 8px; }
  .story-discussion-head h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
  .story-discussion-source { margin-top: 1px; }
  .story-discussion-thread > header { padding-top: 7px; }
  .story-discussion-log .hero-message { margin: 4px 0; padding-top: 8px; padding-bottom: 8px; }
}

@media (min-width: 720px) {
  body { padding-bottom: 20px; }
  .tabbar { position: static; max-width: 880px; margin: 0 auto; border: 1px solid var(--gutter); border-top: 2px solid var(--red); }
  .page { padding-top: 24px; }
  .page.war-room-page { padding-top: 0; }
  h1 { font-size: 2.4rem; }
}

/* ---------------------------------------------------------------------------
   The game layer — celebrations out front, scoreboard in the back office.
   Goals never render on member-facing pages; the moment one is beaten a
   one-time celebration pops. Full status lives at /members/achievements.
--------------------------------------------------------------------------- */

/* Achieved-only stamps (temporal: they exist only after the win) */
.mission-done {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 8px 14px;
  background: var(--gold); color: var(--ink);
  font: 700 14px var(--font-ui); letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.today-wins { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.today-win {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,.5);
  color: #f4f4f0; font: 600 12.5px var(--font-ui);
  background: rgba(0,0,0,.35);
}
.today-win span { color: var(--gold); }

/* @mentions in the rooms */
.at-mention {
  color: var(--red); font-weight: 700;
  background: rgba(252, 204, 0, .28); padding: 0 3px;
  border-radius: 2px;
}

/* Achievement unlocked — the celebration overlay */
.badge-celebration {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(12, 12, 10, .78);
}
.badge-celebration-card {
  position: relative; overflow: hidden;
  width: min(30rem, 100%); max-height: 88vh; overflow-y: auto;
  padding: 30px 26px 24px; text-align: center;
  background: var(--paper); border: 2px solid var(--ink);
  border-top: 6px solid var(--gold); box-shadow: 8px 8px 0 rgba(0,0,0,.5);
}
.badge-kicker {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px;
  background: var(--ink); color: var(--gold);
  font: 700 12px var(--font-ui); letter-spacing: .18em; text-transform: uppercase;
}
.badge-unlock { padding: 10px 0 4px; }
.badge-unlock + .badge-unlock { border-top: 1px dashed var(--gutter); margin-top: 8px; }
.badge-icon { display: block; font-size: 52px; line-height: 1.1; }
.badge-unlock h2 {
  margin: 6px 0 4px; font-family: var(--font-punch);
  font-size: clamp(1.7rem, 5vw, 2.3rem); letter-spacing: .01em; text-transform: uppercase;
}
.badge-unlock p { margin: 0 auto; max-width: 24rem; color: var(--muted); font: 15px/1.5 var(--font-body); }
.badge-celebration-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px;
}
.badge-continue {
  min-height: 48px; padding: 12px 30px;
  background: var(--gold); color: var(--ink); border: 1px solid var(--ink);
  font: 700 16px var(--font-ui); cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.badge-continue:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.badge-celebration-actions a { color: var(--ink); font: 600 14px var(--font-ui); }

/* Confetti — pure CSS, silenced for reduced motion */
.badge-confetti { position: absolute; inset: 0; pointer-events: none; }
.badge-confetti i {
  position: absolute; top: -12px; width: 8px; height: 14px; opacity: .9;
  background: var(--gold);
  animation: badge-confetti-fall 2.6s linear infinite;
}
.badge-confetti i:nth-child(3n) { background: var(--red); }
.badge-confetti i:nth-child(4n) { background: var(--ink); }
.badge-confetti i:nth-child(1) { left: 6%; animation-delay: 0s; }
.badge-confetti i:nth-child(2) { left: 14%; animation-delay: .5s; }
.badge-confetti i:nth-child(3) { left: 23%; animation-delay: 1.2s; }
.badge-confetti i:nth-child(4) { left: 31%; animation-delay: .2s; }
.badge-confetti i:nth-child(5) { left: 40%; animation-delay: 1.6s; }
.badge-confetti i:nth-child(6) { left: 49%; animation-delay: .8s; }
.badge-confetti i:nth-child(7) { left: 57%; animation-delay: 1.9s; }
.badge-confetti i:nth-child(8) { left: 66%; animation-delay: .4s; }
.badge-confetti i:nth-child(9) { left: 74%; animation-delay: 1.4s; }
.badge-confetti i:nth-child(10) { left: 82%; animation-delay: .9s; }
.badge-confetti i:nth-child(11) { left: 90%; animation-delay: 1.8s; }
.badge-confetti i:nth-child(12) { left: 96%; animation-delay: .6s; }
@keyframes badge-confetti-fall {
  0% { transform: translateY(-16px) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-confetti { display: none; }
}

/* The trophy case (buried panel) */
.trophy-room { max-width: 880px; margin: 0 auto; }
.trophy-head { margin-bottom: 22px; border-bottom: 3px double var(--rule); padding-bottom: 16px; }
.trophy-head h1 {
  margin: 4px 0 8px; font-family: var(--font-punch);
  font-size: clamp(2.1rem, 6vw, 3rem); text-transform: uppercase;
}
.trophy-standing { margin: 0; color: var(--muted); font: 16px/1.55 var(--font-body); max-width: 40rem; }
.trophy-standing strong { color: var(--ink); font-size: 1.2em; }

.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 12px; }
.trophy-card { padding: 16px; border: 1px solid var(--gutter); background: #fff; }
.trophy-card h2 { margin: 8px 0 4px; font-family: var(--font-punch); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .01em; }
.trophy-card p { margin: 0; color: var(--muted); font: 13.5px/1.5 var(--font-body); }
.trophy-icon { font-size: 34px; line-height: 1; display: block; }
.trophy-card.is-unlocked { border-color: var(--ink); border-top: 5px solid var(--gold); box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
.trophy-card.is-locked { background: var(--paper-2); }
.trophy-card.is-locked h2 { color: var(--muted); }
.trophy-date { margin-top: 8px !important; font: 700 12px var(--font-ui) !important; color: var(--ok) !important; text-transform: uppercase; letter-spacing: .05em; }
.trophy-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.trophy-progress > span { font: 700 12.5px var(--font-ui); color: var(--muted); white-space: nowrap; }
.trophy-meter { flex: 1; height: 9px; background: var(--gutter); overflow: hidden; }
.trophy-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }

/* Status board inside the trophy case */
.trophy-status { margin-top: 30px; padding: 20px; border: 1px solid var(--gutter); background: var(--paper-2); }
.trophy-status > header h2 { margin: 3px 0 6px; font-family: var(--font-punch); font-size: 1.6rem; text-transform: uppercase; }
.trophy-status > header p { margin: 0 0 16px; color: var(--muted); font: 14px/1.5 var(--font-ui); max-width: 44rem; }
.status-fuel { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 10px; }
.status-cell { padding: 13px; background: #fff; border: 1px solid var(--gutter); }
.status-cell.is-mine { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--gold); }
.status-cell-top { display: flex; justify-content: space-between; gap: 8px; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.status-cell-top strong { color: var(--ok); }
.status-number { font-family: var(--font-punch); font-size: 26px; margin: 4px 0 6px; }
.status-number span { color: var(--muted); font: 700 13px var(--font-ui); margin-left: 4px; }
.status-meter { height: 9px; background: var(--gutter); overflow: hidden; }
.status-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.status-cell p { margin: 8px 0 0; color: var(--muted); font: 12px/1.4 var(--font-ui); }
.status-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 10px; margin-top: 14px; }
.status-fundraising { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--gutter); }
.status-fundraising h3 { margin: 3px 0 4px; font-family: var(--font-punch); font-size: 1.25rem; text-transform: uppercase; }
.status-fundraising p { margin: 0 0 10px; font: 14px var(--font-ui); color: var(--muted); }
.status-fundraising .period-meter { margin-bottom: 10px; }
.status-fundraising a { font: 700 14px var(--font-ui); color: var(--ink); }

.trophy-back { margin: 24px 0 8px; }
.trophy-back a { font: 600 15px var(--font-ui); color: var(--ink); }

/* Responsive continuity overrides live last so legacy dashboard breakpoints cannot
   turn the unified watch/front-page surface back into stacked widgets. */
@media (max-width: 1250px) and (min-width: 1051px) {
  .hero-live-stage,
  .hero-live-stage.has-video {
    display: block;
    height: clamp(580px, calc(100svh - 150px), 820px);
  }
  .hero-live-stage .war-video-bg { width: 100%; height: 100%; grid-column: auto; }
  .hero-live-stage .hero-room-home { height: auto; }
}

@media (max-width: 1050px) {
  .hero-live-stage,
  .hero-live-stage.has-video {
    display: block;
    height: clamp(520px, calc(100svh - 120px), 760px);
    grid-template-columns: none;
  }
  .hero-live-stage .war-video-bg { width: 100%; height: 100%; grid-column: auto; aspect-ratio: auto; }
  .hero-live-stage .hero-room-home { height: auto; }
  .travel-tv { display: none; }
  .travel-rail {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 6px;
    border-left: 0;
    background: #080a0f;
  }
  .travel-rail:has(.travel-chat-dock:empty) { display: none; }
  .travel-chat-dock { height: auto; min-height: 0; }
}

@media (max-width: 700px) {
  .hero-live-stage,
  .hero-live-stage.has-video { height: clamp(440px, 72svh, 620px); }
  .hero-live-stage .war-video-bg { height: 100%; aspect-ratio: auto; }
  .hero-live-stage .hero-room-home { height: auto; }
  /* While reading, video and conversation become one compact corner stack.
     They must never create two full-width barriers across the story column. */
  .travel-rail {
    position: fixed;
    top: calc(104px + min(160px, 44vw) * .5625);
    right: 8px;
    bottom: auto;
    left: auto;
    z-index: 23;
    width: min(160px, 44vw);
    max-width: min(160px, 44vw);
    padding: 0;
    border: 1px solid #4a5260;
    border-top: 0;
    box-shadow: 0 14px 30px rgba(0,0,0,.5);
  }
  .travel-chat-dock .hero-room-peek-message { display: none; }
  .travel-chat-dock .hero-room > summary {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 6px 7px;
  }
  .travel-chat-dock .hero-room-peek-title .panel-kicker { display: none; }
  .travel-chat-dock .hero-room-peek-title > strong { font-size: .9rem; line-height: 1; }
  .travel-chat-dock .hero-room > summary .room-open { padding: 5px 6px; font-size: 0; }
  .travel-chat-dock .hero-room > summary .room-open > span,
  .travel-chat-dock .hero-room > summary .room-open > strong { font-size: 8px; }
  .travel-chat-dock .hero-room > summary .room-open::after { content: " OPEN"; font-size: 8px; }
  body.story-reader-open .travel-rail { position: fixed; inset: auto 0 62px; top: auto; z-index: 46; padding: 0; }
  body.story-reader-open .travel-chat-dock .hero-room > summary { min-height: 48px; padding: 6px 9px; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title { flex-direction: row; align-items: center; gap: 8px; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title .panel-kicker { display: none; }
  body.story-reader-open .travel-chat-dock .hero-room-peek-title > strong { font-size: 1rem; }
}
.stripe-entity-panel { margin-bottom: 1rem; border-top: 6px solid var(--red); }
.stripe-entity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stripe-entity-head span { color: var(--red); font: 900 .68rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.stripe-entity-head h2 { margin: .35rem 0 0; }
.stripe-platform-state { flex: 0 0 auto; padding: .55rem .7rem; background: #111; color: #fff; font: 900 .68rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.stripe-platform-state.ready { border-left: 5px solid #2b9b50; }
.stripe-platform-state.waiting { border-left: 5px solid var(--gold); }
.stripe-entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.stripe-entity-card { display: flex; min-width: 0; flex-direction: column; padding: 1rem; border: 1px solid var(--rule); border-left: 5px solid #777; background: #fff; }
.stripe-entity-card.status-connected { border-left-color: #2b9b50; }
.stripe-entity-card.status-pending, .stripe-entity-card.status-restricted { border-left-color: var(--gold); }
.stripe-entity-card > span { color: var(--red); font: 900 .65rem/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.stripe-entity-card h3 { margin: .35rem 0 .25rem; font-size: 1.15rem; }
.stripe-entity-card p { min-height: 2.6rem; margin: 0 0 .75rem; color: var(--muted); }
.stripe-entity-card dl { display: grid; gap: .25rem; margin: 0 0 1rem; }
.stripe-entity-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--rule); }
.stripe-entity-card dt { color: var(--muted); }
.stripe-entity-card dd { margin: 0; font-weight: 800; text-align: right; }
.stripe-not-connected { display: block; margin: .35rem 0 1rem; color: var(--muted); text-transform: uppercase; }
.stripe-entity-card form { margin-top: auto; }
.stripe-entity-card button { width: 100%; min-height: 48px; }
.stripe-account-form { display: grid; gap: .4rem; }
.stripe-account-form label { font: 900 .66rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.stripe-account-form input { width: 100%; min-height: 46px; padding: .7rem; border: 2px solid var(--ink); font: 800 .9rem/1.2 var(--font-ui); }
@media (max-width: 850px) {
  .stripe-entity-grid { grid-template-columns: 1fr; }
  .stripe-entity-card p { min-height: 0; }
}
@media (max-width: 620px) {
  .stripe-entity-head { display: grid; }
  .stripe-platform-state { justify-self: start; }
}
