:root {
  color-scheme: dark;
  --bg: #141414;
  --card: #1e1e1e;
  --line: #333;
  --text: #eee;
  --muted: #9a9a9a;
  --accent: #c4a35a;
  --danger: #c45a5a;
  --ok: #6aa84f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
h1 { font-size: 1.25rem; margin: 0; }
.lede, .muted { color: var(--muted); }
.card {
  max-width: 26rem;
  margin: 12vh auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
}
label { display: block; margin: 0.8rem 0; }
input[type="email"], input[type="password"] {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem;
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
}
button {
  background: var(--accent);
  color: #111;
  border: 0;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}
button.linkish {
  background: none;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
}
button.btn-activity { position: relative; overflow: hidden; }
button.btn-activity:active:not(.is-busy) { transform: scale(0.97); }
button.btn-activity.is-busy,
button.btn-activity.is-busy:disabled,
#refresh-btn.btn-activity.is-busy:disabled {
  cursor: progress;
  pointer-events: none;
  opacity: 1;
  filter: none;
  background: var(--accent);
  color: #111;
}
button.btn-activity.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.55) 50%, transparent 85%);
  animation: activity-sheen 1.1s ease-in-out infinite;
}
@keyframes activity-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  button.btn-activity:active:not(.is-busy) { transform: none; }
  button.btn-activity.is-busy::after { animation: none; opacity: 0; }
  button.btn-activity.is-busy,
  button.btn-activity.is-busy:disabled,
  #refresh-btn.btn-activity.is-busy:disabled { filter: brightness(1.15); }
}
.error { color: var(--danger); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 0;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.28rem 0.5rem;
}
.brand-mark {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 21rem;
}
.brand-hero-wrap {
  display: inline-block;
  margin: 0;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.55rem 0.85rem;
  max-width: 100%;
}
.brand-hero {
  display: block;
  height: 3.4rem;
  width: auto;
  max-width: min(100%, 18rem);
}
.nav a, .bar-right .btn { white-space: nowrap; }
@media (max-width: 40rem) {
  .bar { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .brand-mark { height: 2.9rem; }
}
.nav { display: flex; gap: 1rem; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a.on, .nav a:hover { color: var(--accent); }
.nav-gear {
  display: inline-flex;
  align-items: center;
}
.nav-gear svg { display: block; }
.bar-right { display: flex; gap: 1rem; align-items: center; }
.hero { margin-bottom: 1.2rem; }
.hero h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.stat {
  min-width: 8rem;
  padding: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }
.home-page {
  max-width: 68rem;
  margin: 0 auto;
}
.home-page .hero,
.home-page .banner { text-align: center; }
.home-page .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem;
  width: 100%;
  justify-content: center;
}
.home-page .stat {
  min-width: 0;
  text-align: center;
}
.home-page .actions { justify-content: center; }
.home-jobs {
  display: grid;
  gap: 0.8rem;
  max-width: 36rem;
  margin: 1.2rem auto 1.4rem;
  text-align: left;
}
.home-jobs .settings-card { margin: 0; }
.home-jobs .settings-card p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn, a.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  border-radius: 999px;
}
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn[hidden] { display: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.offer {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
}
.offer h2 { margin: 0.2rem 0 0.4rem; font-size: 1.15rem; }
.offer.current { border-color: var(--accent); }
.offer.coming-soon { opacity: 0.92; }
.catalog-group { margin: 1.6rem 0 2rem; }
.catalog-group h2 { margin-bottom: 0.25rem; }
.catalog-shelf { margin: 1.1rem 0 0; }
.catalog-shelf h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pack-filter {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
  padding: 0.85rem 0 0.7rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}
.pack-filter-search input {
  width: 100%;
  max-width: 36rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
}
.pack-filter-search input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.filter-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}
.filter-label {
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 4.4rem;
}
.chip-set { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-chip, .chip {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
}
.filter-chip { cursor: pointer; }
.filter-chip.on {
  border-color: var(--accent);
  color: var(--accent);
}
.attr-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.35rem 0 0.45rem; }
.offer .attr-chips { margin-top: 0.45rem; }
.pack-filter-count { margin: 0.45rem 0 0; }
.promote-cell { min-width: 16rem; }
form.promote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
form.promote input[type="number"] {
  width: 4.2rem;
  padding: 0.2rem 0.35rem;
}
form.promote button { padding: 0.2rem 0.45rem; font-size: 0.78rem; }
.package-bar { margin: 0.6rem 0 1rem; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cards.packages { margin-bottom: 1.6rem; }
.pricing-page { max-width: 68rem; margin: 0 auto; }
.pricing-hero { text-align: center; margin: 1.8rem auto 2rem; }
.pricing-hero h1 { font-size: 2rem; }
.welcome-plan .pricing-hero .lede { max-width: 40rem; margin-left: auto; margin-right: auto; }
.welcome-plan-note { text-align: center; margin: 1.8rem 0 1rem; }
.plan-line { margin: 0.2rem 0 1rem; }
.pricing-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
  margin: 2rem 0 1.6rem;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.9rem 1.35rem 1.35rem;
}
.pricing-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 44px rgba(196, 163, 90, 0.14);
  transform: translateY(-0.45rem);
}
.pricing-card.is-current:not(.is-featured) { border-color: var(--ok); }
.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-badge.yours { background: var(--ok); }
.pricing-card h2 { margin: 0.15rem 0 0.75rem; font-size: 1.15rem; }
.pricing-price { margin: 0 0 0.7rem; }
.pricing-amount {
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}
.pricing-card.is-featured .pricing-amount { color: var(--accent); }
.pricing-amount.free { color: var(--ok); font-size: 2.2rem; }
.pricing-period { color: var(--muted); font-size: 0.95rem; }
.pricing-tokens {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.pricing-blurb { color: var(--muted); margin: 0 0 0.4rem; min-height: 3.4em; }
.pricing-highlight {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
}
.pricing-extras {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.pricing-extras h2 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.pricing-extras p { margin: 0.4rem 0; }
.pricing-card .benefits {
  list-style: none;
  flex: 1;
  padding: 0;
  margin: 0.5rem 0 1.2rem;
}
.pricing-card .benefits li {
  position: relative;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.55rem;
  border-top: 1px solid var(--line);
}
.pricing-card .benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card form { margin-top: auto; }
.pricing-card button, .pricing-yours {
  width: 100%;
  text-align: center;
  border-radius: 999px;
}
.pricing-card button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.pricing-switch-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.pricing-card.is-featured button { background: var(--accent); color: #111; }
.pricing-yours {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ok);
  color: var(--ok);
}
.pricing-foot { text-align: center; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.is-featured { transform: none; }
}
input[type="text"] { width: 100%; max-width: 28rem; }
.price { color: var(--accent); font-weight: 700; }
.price.free { color: var(--ok); }
main a { color: var(--accent); }
.pill.done, .pill.queued { border-color: var(--ok); }
.pill.running { border-color: var(--accent); }
.pill.error { border-color: var(--danger); color: var(--danger); }
.report { margin: 1.2rem 0; padding: 1rem; background: var(--card); border: 1px solid var(--line); }
.report h2 { margin-top: 0; }
.risk-index-page {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 2rem 20px 3rem;
  font-size: 1rem;
}
.risk-index-page h1 { font-size: 2rem; margin: 0 0 0.4rem; }
.risk-index-page .lede,
.risk-index-page p { font-size: 1rem; line-height: 1.5; }
.prep-watch { margin: 1.4rem 0 2rem; }
.prep-watch h2 { font-size: 1.25rem; }
.index-stale {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.risk-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.2rem 1.4rem;
  align-items: start;
}
.index-card {
  background: #f7f4ee;
  color: #1b2838;
  border-top: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
}
.index-card p { color: #1b2838; margin: 0.4rem 0; }
.index-kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}
.risk-index-page .index-number { font-size: 3rem; line-height: 1.1; font-weight: 700; margin: 0.2rem 0; }
.index-card.is-stale .index-number { opacity: 0.6; }
.index-quiet { font-size: 1rem; font-weight: 600; }
.index-method,
.index-current,
.index-sources { min-width: 0; }
.index-method { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.index-method summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.index-method-title { margin: 0 0 0.4rem; font-size: 1.1rem; }
.index-current { grid-column: 1 / -1; }
.index-sources { grid-column: 1 / -1; }
.index-risks { list-style: none; padding: 0; margin: 0; }
.index-risks li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.index-level {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  font-size: 1rem;
}
.index-more summary { cursor: pointer; min-height: 44px; }
.prep-watch a:focus,
.prep-watch summary:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 701px) {
  .index-method summary { display: none; }
}
@media (max-width: 700px) {
  .risk-index-page { padding: 1.2rem 16px 2rem; }
  .risk-index-grid { grid-template-columns: minmax(0, 1fr); }
  .index-card { order: 1; }
  .index-current { order: 2; }
  .index-method { order: 3; }
  .index-sources { order: 4; }
  .index-method-title { display: none; }
}
.risk-carousel {
  position: relative;
  width: min(50vw, 100%);
  margin: 1rem auto 1.6rem;
  outline: none;
}
.risk-viewport { overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.risk-track {
  display: flex;
  transition: transform 0.35s ease;
}
.risk-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.risk-card:hover { outline: 1px solid var(--accent); outline-offset: -1px; }
main a.risk-card { color: inherit; }
.risk-card-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.risk-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.mission-sound-btn {
  position: static;
  z-index: 4;
  transform: none;
  pointer-events: auto;
}
.film-sound {
  margin: 0.85rem 0 0;
  text-align: center;
}
.risk-card-body { display: block; padding: 0.9rem 1rem 1.1rem; }
.risk-card-body strong { display: block; margin-bottom: 0.35rem; font-size: 1.2rem; color: var(--text); }
.risk-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.risk-level-row strong { margin: 0; }
.risk-level {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.risk-level-quiet { color: var(--muted); }
.risk-level-in_news { color: var(--accent); border-color: var(--accent); }
.risk-level-elevated { color: var(--danger); border-color: var(--danger); }
.risk-hero-shade .risk-level { align-self: flex-start; margin-bottom: 0.6rem; }
.news-strip { margin: 0.4rem 0 1.4rem; }
.news-list { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.news-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.news-summary { color: var(--text); font-size: 0.95rem; }
.major-stories { max-width: 46rem; margin-left: auto; margin-right: auto; }
.major-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.risk-nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.75);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.risk-nav.prev { left: 0.4rem; }
.risk-nav.next { right: 0.4rem; }
.risk-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.risk-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
}
.risk-dot.on { background: var(--accent); }
.risk-hero, .mission-hero {
  width: min(50vw, 100%);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.risk-hero { margin: 0.6rem auto 0.4rem; }
.risk-hero-shade {
  position: absolute;
  inset: 0;
  padding: 2rem 1.2rem;
  background: linear-gradient(180deg, rgba(20,20,20,0.25), rgba(20,20,20,0.82));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.risk-hero-shade h1 { font-size: 2rem; }
.photo-credit { color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 1rem; }
.mission-tile {
  width: min(50vw, 100%);
  margin: 1.4rem auto 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mission-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.mission-body { padding: 0.9rem 1rem 1.1rem; }
.mission-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.mission-body p { margin: 0.45rem 0 0; }
.login-card { max-width: 26rem; margin: 1.2rem auto 2rem; }
@media (max-width: 700px) {
  .mission-tile { width: 100%; }
}
main { padding: 1.2rem; }
.banner {
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  margin-bottom: 1rem;
}
.banner.ok { border-color: var(--ok); }
.space-panel {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 1rem;
}
.space-panel.ok { border-color: var(--ok); }
.space-panel.short {
  border: 2px solid var(--danger);
  background: #2a1616;
}
.space-verdict { margin: 0.4rem 0 0; color: var(--muted); }
.space-panel.ok .space-verdict { color: var(--ok); }
.space-panel.short .space-verdict { color: #f0c4c4; font-weight: 650; }
.space-alert {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1.1rem;
  background: #4a1b1b;
  border: 2px solid var(--danger);
  color: #ffd6d6;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
}
.space-alert[hidden] { display: none; }
#refresh-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.size-stats { margin: 0 0 0.2rem; }
.size-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; flex-wrap: wrap; }
main section + section.drive-location,
main section.drive-location { margin-top: 0; margin-bottom: 1rem; }
.drive-location {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--card);
}
.drive-location-copy { min-width: 12rem; flex: 1; }
.drive-location.needs-pick {
  border-color: var(--danger);
  background: #2a1616;
}
.drive-hint { margin: 0.35rem 0 0; }
.host-dest-note { margin: 0.35rem 0 0; }
.drive-pick-alert { margin: 0 0 1rem; }
.drive-location-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.drive-path {
  margin: 0.25rem 0 0;
  font-family: Consolas, "Cascadia Mono", monospace;
  word-break: break-all;
}
.drive-location-actions { display: flex; gap: 0.6rem; align-items: center; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.icon-btn:hover:not(:disabled) { background: rgba(196, 163, 90, 0.12); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.open-cell,
.status-cell { text-align: center; }
.open-cell .icon-btn { width: 2rem; height: 2rem; }
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  text-decoration: none;
}
.status-icon svg { width: 1.15rem; height: 1.15rem; display: block; }
.status-icon .status-letter { font-weight: 700; font-size: 0.95rem; line-height: 1; }
.status-icon.up_to_date { color: var(--ok); }
.status-icon.error { color: var(--danger); }
.status-icon.leftover { color: var(--muted); }
.drive-status { min-height: 1.2rem; margin: 0.35rem 0 0; color: var(--accent); }
.boot-note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  background: var(--card);
  margin-bottom: 1rem;
}
.boot-note.ready { border-color: var(--ok); }
.boot-note p { margin: 0; }
main section + section.boot-note,
main section.boot-note { margin-top: 0; }
.settings-card .boot-note { margin: 0.8rem 0; padding: 0.7rem 0.85rem; }
.settings-page { max-width: 64rem; margin: 0 auto; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.2rem;
  align-items: start;
}
.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem 1.3rem;
}
.settings-card h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.settings-card h3 { margin: 1.2rem 0 0.4rem; font-size: 1rem; }
.settings-meta { margin: 0 0 1rem; }
.settings-meta div { margin: 0.45rem 0; }
.settings-meta dt { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.settings-meta dd { margin: 0.15rem 0 0; }
.settings-form label { margin: 0.55rem 0; }
.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="email"] { width: 100%; }
.settings-form.is-disabled { opacity: 0.55; }
.settings-form.is-disabled input,
.settings-form.is-disabled button { cursor: not-allowed; }
.settings-card .drive-location { margin: 0.6rem 0 1rem; padding: 0; border: 0; background: transparent; }
.boot-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}
.boot-path-card {
  text-align: left;
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  font-weight: 400;
}
.boot-path-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--accent); }
.boot-path-card p { margin: 0; color: var(--muted); }
.boot-path-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.boot-actions { margin: 0.4rem 0 0.6rem; }
.boot-result {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ok);
  background: rgba(106, 168, 79, 0.08);
}
.boot-result p { margin: 0; }
.boot-result code { word-break: break-all; }
.ubuntu-size-label { display: block; margin: 0.7rem 0 0.35rem; color: var(--muted); }
.ubuntu-size-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ubuntu-size-row input[type="number"] { width: 7rem; }
.drive-pack-list { display: flex; flex-direction: column; gap: 0.85rem; }
.drive-category {
  border: 1px solid var(--line);
  background: var(--card);
  scroll-margin-top: 8.5rem;
}
.drive-category > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: baseline;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
.drive-category > summary::-webkit-details-marker { display: none; }
.drive-category > summary::before {
  content: "▸";
  color: var(--accent);
  display: inline-block;
  width: 1rem;
  font-size: 0.85rem;
}
.drive-category[open] > summary::before { content: "▾"; }
.drive-cat-name { font-weight: 700; font-size: 1.1rem; }
.drive-cat-body {
  padding: 0 0.45rem 0.55rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.drive-os {
  border-top: 1px solid var(--line);
}
.drive-os > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
}
.drive-os > summary::-webkit-details-marker { display: none; }
.drive-os > summary::before {
  content: "▸";
  color: var(--accent);
  display: inline-block;
  width: 1rem;
  font-size: 0.85rem;
}
.drive-os[open] > summary::before { content: "▾"; }
.drive-os-name {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.drive-os-body { padding: 0 0 0.4rem; overflow-x: auto; }
.drive-os-body table { table-layout: fixed; width: 100%; }
.drive-os-body .col-check { width: 2.4rem; }
.drive-os-body .col-size { width: 5.6rem; }
.drive-os-body .col-open { width: 3.4rem; }
.drive-os-body .col-status { width: 4.2rem; }
.drive-os-body .col-progress { width: 8.5rem; }
.drive-os-body .col-version { width: 7.2rem; }
.drive-os-body .col-promote { width: 15rem; }
.drive-os-body .version-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drive-os-body .size-cell { white-space: nowrap; }
.drive-os-body .progress { width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { padding: 0.15rem 0.45rem; border: 1px solid var(--line); }
.pill.needs_download, .pill.needs_refresh, .pill.queued, .pill.downloading { border-color: var(--accent); }
.pill.up_to_date { border-color: var(--ok); color: var(--ok); }
.pill.leftover { border-color: var(--muted); color: var(--muted); }
.pill.upgrade { border-color: var(--accent); color: var(--accent); }
form.promote button.is-current { border-color: var(--ok); color: var(--ok); }
.pill.error { border-color: var(--danger); color: var(--danger); }
.job { min-height: 1.4rem; color: var(--muted); }
.check { display: flex; gap: 0.4rem; align-items: center; }
.progress {
  width: 10rem;
  height: 0.7rem;
  background: #111;
  border: 1px solid var(--line);
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}
.progress.done .progress-bar { background: var(--ok); }
.progress.error .progress-bar { background: var(--danger); }
.progress-label { margin-top: 0.25rem; font-size: 0.8rem; }
.notice { color: var(--ok); }
form.inline { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
textarea.ask-question {
  width: 100%;
  max-width: 36rem;
  min-height: 5rem;
  margin: 0.8rem auto 0;
  display: block;
  padding: 0.6rem;
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
}
.ask-thread { max-width: 36rem; margin: 1.2rem auto 0; text-align: left; }
.ask-turn { margin: 0 0 1.4rem; }
.ask-turn .ask-q { margin: 0 0 0.35rem; color: var(--accent); }
.ask-actions { display: flex; gap: 0.6rem; justify-content: center; align-items: center; margin-top: 0.7rem; }
.ask-actions button[name="clear"] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
pre.answer { white-space: pre-wrap; text-align: left; max-width: 36rem; margin: 0.4rem auto 0; }
.answer-from, .answer-sources { text-align: left; max-width: 36rem; margin: 0.6rem auto 0; }
.ask-home {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  text-decoration: none;
}
.ask-home:hover, .ask-home:focus { border-color: var(--accent); }
.ask-home svg { width: 1.15rem; height: 1.15rem; display: block; }
.ask-back {
  position: fixed;
  top: 1.15rem;
  left: 4rem;
  z-index: 5;
  color: var(--accent);
  text-decoration: none;
}
.ask-back:hover, .ask-back:focus { text-decoration: underline; }
.ask-hub { padding: 4.5rem 1.2rem 3rem; text-align: center; }
.ask-hub h1 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.ask-choices {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36rem;
  margin: 2.2rem auto 0;
}
.ask-choice {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1.1rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.ask-choice svg { width: 4.2rem; height: 4.2rem; color: var(--accent); }
.ask-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.2rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}
.ask-choice:hover span, .ask-choice:focus span { filter: brightness(1.08); }
.ask-wiki, .ask-library, .ask-guides { padding-top: 3.2rem; }
.ask-wiki { margin-top: 2.5rem; }
.ask-wiki h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.wiki-frame { width: min(100%, 68rem); height: 40rem; border: 1px solid var(--line); background: #111; }
.ask-library { margin-top: 2.5rem; }
.ask-library h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.shelf-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1rem 0 0.8rem; }
.shelf-nav a {
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
}
.shelf-nav a:hover, .shelf-nav a:focus { background: var(--accent); color: #111; }
.ask-library .library-find, .ask-guides .library-find {
  display: block;
  width: min(100%, 24rem);
  margin: 0 auto 1.2rem;
  padding: 0.55rem 0.9rem;
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.library-shelf { margin: 1.2rem 0 0; text-align: left; }
.library-shelf h3 { margin: 0 0 0.7rem; font-size: 1rem; }
.library-shelf:target h3 { color: var(--accent); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.library-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
  text-align: left;
}
.library-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.library-card .muted { margin: 0 0 0.75rem; }
.library-files { list-style: none; padding: 0; margin: 0; }
.library-files li { margin: 0.35rem 0; }
.library-files a { color: #e0b15a; }
.library-books { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.library-card[hidden], .library-shelf[hidden] { display: none; }
.answer-sources a { color: #e0b15a; }
input[type="number"], input[type="text"] {
  margin-top: 0;
  padding: 0.35rem 0.45rem;
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
  width: 7rem;
}
input[type="text"] { width: 12rem; }
main section + section { margin-top: 2rem; }
.ip-list { list-style: none; padding: 0; }
.ip-list li { display: flex; gap: 0.8rem; align-items: center; margin: 0.4rem 0; }
code { color: var(--accent); }
.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  margin: 1rem 0 1.6rem;
}
.landing-page .landing-split .mission-hero {
  width: 100%;
  margin: 0;
}
.landing-prepare { margin-bottom: 0; }
.landing-about { max-width: 40rem; }
.landing-pills,
.landing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0 1.6rem;
}
.landing-tab {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.landing-tab.on, .landing-tab:hover { color: var(--accent); border-color: var(--accent); }
.landing-page .login-card { margin: 0 auto 2rem; }
.landing-or { text-align: center; margin: 1rem 0 0.6rem; }
@media (max-width: 48rem) {
  .landing-split { grid-template-columns: 1fr; }
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.2rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  font-weight: 600;
}
.google-btn:hover { background: #f7f8f8; }
.film-page { margin: 0.4rem 0 1.4rem; }
.film-stage {
  width: min(100%, 72rem);
  margin: 0 auto;
}
.film-cta {
  max-width: 40rem;
  margin: 1.15rem auto 0;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.35;
}
.film-cta a { color: var(--text); }
.look-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin: 0.6rem 0 1.4rem;
}
.look-cta .muted { margin: 0; max-width: 36rem; }
.drive-guide { max-width: 40rem; }
.drive-guide li { margin: 0.35rem 0; }
.step-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}
.step-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}
.boot-log { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; }
.boot-log li { margin: 0.45rem 0; }
.boot-log li:last-child { font-weight: 600; }
.system-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0.55rem 0 0.25rem;
}
.step-tile {
  flex: 1;
  min-width: 0;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.step-tile h2 { font-size: 1.05rem; margin: 0 0 0.45rem; }
.step-bar {
  height: 0.35rem;
  margin: 0 0 0.7rem;
  background: #2a2a2a;
  overflow: hidden;
}
.step-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.step-tile.is-current .step-bar span { width: 35%; }
.step-tile.is-done .step-bar span { width: 100%; }
.step-tile.is-busy .step-bar span {
  width: 40%;
  animation: step-busy 1.1s ease-in-out infinite;
}
@keyframes step-busy {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
.step-tile.is-waiting { opacity: 0.4; pointer-events: none; }
.step-tile.is-done { opacity: 0.85; }
.step-arrow { align-self: center; color: var(--muted); font-size: 1.4rem; }
.drive-list { list-style: none; padding: 0; }
.drive-list button { width: 100%; text-align: left; margin: 0.35rem 0; }
.step-tile button, .step-tile .btn { margin-top: 0.4rem; }
.found-drive { font-weight: 600; }
.drive-pick { max-width: 40rem; margin: 0.6rem 0 1.6rem; }
.drive-pick .drive-list button { padding: 0.7rem 1rem; }
.drive-confirm {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.drive-confirm .warn { color: var(--danger); font-weight: 600; margin-top: 0; }
.drive-confirm ul { padding-left: 1.1rem; }
.drive-confirm .typed-confirm { display: block; margin: 0.8rem 0 0.4rem; }
.drive-confirm button, .drive-confirm .btn { margin-top: 0.5rem; margin-right: 0.5rem; }
@media (max-width: 52rem) {
  .step-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
}
.news-line { width: min(100%, 36rem); }
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--line);
}
.cookie-notice p { margin: 0; max-width: 46rem; }
.cookie-notice form { display: flex; gap: 0.5rem; flex: none; }
body:has(.cookie-notice) { padding-bottom: 6.5rem; }
body.has-chyron:has(.cookie-notice) { padding-bottom: 9.5rem; }
body.has-chyron:has(.cookie-notice) .cookie-notice { bottom: 3.4rem; }
.set-rows { margin: 0.8rem auto 0; max-width: 36rem; text-align: left; }
.set-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.set-status { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.set-list { margin: 1rem auto 0; max-width: 36rem; text-align: left; }
.set-list summary { cursor: pointer; color: var(--accent); }
.product-chyron {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.75rem 1.2rem;
  background: rgba(10, 10, 10, 0.92);
  border-top: 1px solid var(--line);
  text-align: center;
}
.product-chyron p { margin: 0; }
body.has-chyron { padding-bottom: 3.4rem; }
.admin-news { max-width: 40rem; }
.admin-news form { margin: 0.4rem 0 0.8rem; }

/* Home checklist and drive facts */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.steps-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.5rem; }
.steps-list li.is-next { border-color: var(--accent); }
.steps-list li.is-done { opacity: 0.8; }
.step-mark { flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 0.9rem; }
.is-done .step-mark { background: var(--ok); border-color: var(--ok); color: #111; }
.is-next .step-mark { border-color: var(--accent); color: var(--accent); }
.step-text { flex: 1; display: grid; gap: 0.15rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.8rem; margin: 0 0 0.8rem; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0.1rem 0 0; font-weight: 600; }

/* Account menu and My drive tabs */
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; color: var(--muted); list-style: none; padding: 0.2rem 0.4rem; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: " \25BE"; }
.account-menu.on summary, .account-menu[open] summary, .account-menu summary:hover { color: var(--accent); }
.account-menu-list { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 12rem; display: grid; gap: 0.2rem; padding: 0.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; }
.account-menu-list a, .account-menu-list button { color: var(--text); text-decoration: none; padding: 0.35rem 0.5rem; text-align: left; }
.account-menu-list a:hover { color: var(--accent); }
.tabs { display: flex; gap: 0.4rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); text-decoration: none; padding: 0.5rem 0.9rem; border-bottom: 2px solid transparent; }
.tabs a.on, .tabs a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Download summary and finished screen */
.download-summary h2 { margin-top: 0; }
.choose-details { margin-top: 1rem; }
.choose-details > summary { cursor: pointer; padding: 0.6rem 0; color: var(--accent); }
.next-steps { padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.ready-hero.is-good h1 { color: var(--ok); }

/* Catalogue planner, before you start, phone hand-off */
.planner select { background: #111; color: var(--text); border: 1px solid var(--line); padding: 0.35rem 0.5rem; margin-left: 0.4rem; }
.planner .chip-set { margin: 0.4rem 0 0.8rem; }
.planner-result { font-weight: 600; }
.planner-result.fits { color: var(--ok); }
.planner-result.over { color: var(--danger); }
.before-you-start { max-width: 40rem; margin: 1.2rem auto; padding: 1.2rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; }
.before-you-start h2 { margin-top: 0; font-size: 1.1rem; }
.before-you-start ul { padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.handoff.is-phone { border: 1px solid var(--accent); border-radius: 0.5rem; padding: 0.8rem 1rem; }
body:not(.landing-page) .before-you-start { max-width: none; margin-left: 0; margin-right: 0; }

/* Plan comparison table */
.plan-table-wrap { margin: 2rem 0; overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.plan-table th, .plan-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan-table thead th { color: var(--accent); }
.plan-table tbody th { font-weight: 600; width: 34%; }

/* The main download button, and the live line that shows what is being copied. */
.btn-action { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.7rem; font-size: 1.05rem; }
button.btn-action:disabled:not(.is-busy) { opacity: 0.45; cursor: not-allowed; }
.action-row { margin: 0.9rem 0 0.4rem; }
.action-reason { margin: 0.2rem 0 0.6rem; }
.job-live { margin: 0.8rem 0 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: rgba(255, 255, 255, 0.02); }
.job-live[hidden] { display: none; }
.job-live-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.job-live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); align-self: center; animation: live-pulse 1.3s ease-in-out infinite; }
.job-live-file { margin: 0.4rem 0 0.7rem; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; word-break: break-all; }
.job-live-file.tick { animation: live-tick 0.45s ease-out; }
.job-live .progress { width: 100%; height: 0.5rem; border-radius: 0.3rem; overflow: hidden; }
@keyframes live-pulse { 50% { opacity: 0.3; } }
@keyframes live-tick { from { opacity: 0.2; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .job-live-dot, .job-live-file.tick { animation: none; }
}

/* The install offer: the folder route stays, but quietly. */
.settings-card.quiet { opacity: 0.9; }
.inline-form { display: inline; margin: 0; }
.token-wall .token-choice { margin: 0 0 1rem; }
.token-wall .token-choice form:not(.inline-form) { margin-top: 0.8rem; }
.token-swap-list, .token-upgrades { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.token-swap-list li, .token-upgrades li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.token-swap-list li:first-child, .token-upgrades li:first-child { border-top: 0; }
.link-button { background: none; border: 0; padding: 0.4rem 0.2rem; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.step-optional { font-size: 0.8rem; color: var(--muted); margin-left: 0.4rem; }
.site-banner { padding: 0.6rem 1rem; text-align: center; background: var(--accent); color: #fff; font-weight: 600; }
.check-bad td { background: rgba(200, 40, 40, 0.10); }
.check-warn td { background: rgba(220, 160, 0, 0.12); }
.danger-zone { border: 1px solid #b33; padding: 0.8rem 1rem; margin-top: 1.5rem; }

/* Branded missing-page and generic error page. */
.lost {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 20px;
}
.lost h1 { font-size: 1.6rem; line-height: 1.3; }
.lost p { font-size: 1rem; line-height: 1.6; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lost .btn, .lost button.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lost a:focus, .lost button:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 767px) {
  .lost { padding: 20px; }
  .lost-actions { flex-direction: column; }
  .lost .btn, .lost button.btn { width: 100%; }
  body:has(.lost) .bar,
  body:has(.lost) .nav,
  body:has(.lost) .bar-right,
  body:has(.lost) .cookie-notice { min-width: 0; flex-wrap: wrap; }
  body:has(.lost) .cookie-notice { flex-direction: column; align-items: stretch; }
  body:has(.lost) .cookie-notice p { min-width: 0; }
}

body:has(> footer.site-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(> footer.site-footer) > main { flex: 1 0 auto; }
.site-footer {
  flex-shrink: 0;
  background: #1c1c1c;
  border-top: 1px solid rgba(196, 163, 90, 0.3);
  color: #eee;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-title { margin: 0 0 0.5rem; font-weight: 650; }
.site-footer p { margin: 0 0 0.75rem; line-height: 1.6; }
.site-footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #eee;
  text-decoration: none;
}
.site-footer a:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.placeholder {
  border: 1px dashed var(--accent);
  padding: 0.75rem 1rem;
  color: #eee;
}
.legal {
  width: min(720px, 100%);
  align-self: center;
  box-sizing: border-box;
  padding: 48px 20px 64px;
}
.legal h1 { font-size: 1.6rem; line-height: 1.3; }
.legal h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.legal p { font-size: 16px; line-height: 1.6; }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; padding: 20px; }
  .legal { padding: 20px; }
}
