:root {
  --bg: #f2f5f0;
  --bg-strong: #fbfdf8;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.93);
  --ink-950: #122135;
  --ink-900: #1b324d;
  --ink-700: #41607d;
  --ink-500: #68809b;
  --line: rgba(20, 45, 70, 0.14);
  --line-strong: rgba(20, 45, 70, 0.22);
  --shadow: 0 22px 60px rgba(15, 43, 64, 0.14);
  --shadow-soft: 0 10px 30px rgba(15, 43, 64, 0.08);
  --focus: #f9aa59;
  --captured: #2f9e61;
  --missing: #db5959;
  --accent-a: #0f3f70;
  --accent-b: #168392;
  --accent-c: #ec7f35;
  --accent-d: #7e9e4d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  font-family: 'Chivo', sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(47, 125, 255, 0.2), transparent 26%),
    radial-gradient(circle at 86% 0%, rgba(236, 127, 53, 0.22), transparent 24%),
    radial-gradient(circle at 56% 24%, rgba(22, 131, 146, 0.12), transparent 30%),
    linear-gradient(180deg, #f8faf5 0%, #edf2eb 42%, #e8efe8 100%);
}

body.has-modal-open {
  overflow: hidden;
}

body.is-booting {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 45, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 45, 70, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), transparent 86%);
}

a {
  color: inherit;
}

code {
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.88em;
  background: rgba(20, 45, 70, 0.08);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink-950);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
}

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

.page-shell {
  position: relative;
  --page-shell-max-width: 1500px;
  width: min(var(--page-shell-max-width, 1500px), calc(100vw - 1.5rem));
  margin: 0 auto;
  min-height: 100vh;
  padding: 0.9rem 0 2rem;
}

.boot-loader {
  min-height: min(760px, calc(100vh - 2.5rem));
  display: grid;
  place-items: center;
}

.boot-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(249, 253, 246, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.boot-card h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.boot-status {
  margin: 0.65rem 0 0;
  color: rgba(18, 33, 53, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}

.boot-progress {
  margin-top: 0.8rem;
  width: 100%;
  height: 0.36rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 45, 70, 0.15);
}

.boot-progress-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f3f70, #168392);
  animation: boot-loading 1.15s ease-in-out infinite;
}

@keyframes boot-loading {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(290%);
  }
}

.landing-view {
  min-height: calc(100vh - 2rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.18rem, 0.7vw, 0.62rem) 0;
}

.landing-flow {
  width: min(1080px, 100%);
  display: grid;
  gap: clamp(0.48rem, 1vw, 0.8rem);
  justify-items: stretch;
}

.landing-hero-head {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 0;
  width: min(46rem, 100%);
  padding-inline: clamp(0.14rem, 0.4vw, 0.44rem);
}

#landing-title,
.upload-cta-title,
.landing-path-title,
.landing-benefit-title,
.section-head h3,
.kpi-value,
.aircraft-card-name {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.02em;
}

#landing-title {
  display: inline-block;
  margin-bottom: 0.82rem;
  padding-bottom: 0.16em;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: transparent;
  background:
    linear-gradient(135deg, #133659 0%, #1b6588 47%, #e58e44 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.landing-brand-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(18, 33, 53, 0.6);
}

.landing-hero-caption {
  margin: 0.44rem 0 0;
  max-width: none;
  font-size: clamp(0.68rem, 1.1vw, 0.88rem);
  line-height: 1.16;
  white-space: nowrap;
  color: rgba(18, 33, 53, 0.72);
}

.landing-subhead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.04rem, 2.05vw, 1.52rem);
  line-height: 1.3;
  color: rgba(18, 33, 53, 0.84);
}

.landing-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.82fr);
  grid-template-areas:
    'upload benefits'
    'explore explore';
  gap: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(0.92rem, 1.8vw, 1.28rem);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.92) 44%, rgba(254, 248, 239, 0.92)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(15, 43, 64, 0.14);
  backdrop-filter: blur(10px);
}

.landing-card::before,
.landing-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(14px);
}

.landing-card::before {
  top: -9rem;
  left: -3rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(47, 125, 255, 0.2), transparent 68%);
}

.landing-card::after {
  right: -4rem;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(236, 127, 53, 0.2), transparent 70%);
}

.landing-primary-grid {
  display: contents;
}

.landing-step {
  display: grid;
  gap: 0.58rem;
}

.landing-step + .landing-step {
  margin-top: 0;
}

.landing-step-upload {
  min-width: 0;
  grid-area: upload;
  align-self: start;
  justify-items: start;
  align-content: start;
  text-align: left;
}

.landing-step-benefits {
  min-width: 0;
  grid-area: benefits;
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  padding: 0.82rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  background:
    linear-gradient(180deg, rgba(242, 249, 255, 0.92), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.landing-step-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.landing-step-title,
.landing-section-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  line-height: 1.22;
  color: var(--ink-900);
}

.landing-step-copy {
  margin: -0.12rem 0 0;
  max-width: none;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.88rem;
  line-height: 1.42;
}

.landing-step-upload > :is(.persist-choice, .upload-cta, .landing-upload-actions, .landing-support) {
  width: 100%;
}

.upload-cta {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.68rem;
  min-height: clamp(196px, 24vh, 240px);
  margin-top: 0.02rem;
  padding: 1.28rem 1.36rem;
  border-radius: 24px;
  border: 3px dashed rgba(24, 93, 140, 0.5);
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 255, 0.14), transparent 42%),
    radial-gradient(circle at bottom right, rgba(236, 127, 53, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.98), rgba(250, 253, 255, 0.95)),
    rgba(255, 255, 255, 0.95);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(19, 54, 89, 0.08);
}

.upload-cta input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-cta:hover,
.upload-cta.is-dragging,
.upload-cta:focus-within {
  transform: translateY(-2px);
  border-color: rgba(15, 63, 112, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 38px rgba(15, 63, 112, 0.14);
}

.upload-cta-title {
  display: block;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 0.94;
  color: var(--ink-950);
}

.upload-cta-subtitle {
  display: block;
  font-size: 1rem;
  color: rgba(18, 33, 53, 0.7);
}

.landing-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.view-example-button {
  min-height: 2.34rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 112, 0.35);
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f3f70;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.view-example-button:hover,
.view-example-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.7);
  box-shadow: var(--shadow-soft);
}

.persist-choice {
  width: min(100%, 31rem);
  padding: 0.62rem 0.74rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.persist-choice input {
  margin-top: 0.14rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #0f3f70;
}

.persist-choice span {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(18, 33, 53, 0.84);
}

.landing-support {
  margin: 0;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}

.landing-inline-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f3f70;
  text-decoration-thickness: 1px;
}

.landing-benefit-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: stretch;
}

.landing-benefit-card {
  display: grid;
  align-content: start;
  gap: 0.22rem;
  min-height: 100%;
  padding: 0.92rem 0.94rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.landing-benefit-card:nth-child(1) {
  background:
    radial-gradient(circle at top left, rgba(47, 125, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.78);
}

.landing-benefit-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.78);
}

.landing-benefit-card:nth-child(3) {
  background:
    radial-gradient(circle at top left, rgba(22, 131, 146, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.78);
}

.landing-benefit-title {
  font-size: 0.98rem;
  line-height: 1.02;
  color: var(--ink-950);
}

.landing-benefit-copy,
.landing-benefit-note {
  margin: 0;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.82rem;
  line-height: 1.38;
}

.landing-benefit-note {
  align-self: end;
  margin-top: 0.14rem;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(20, 45, 70, 0.1);
}

.landing-step-explore {
  grid-area: explore;
  align-content: start;
  margin-top: 0;
  padding: 0.82rem 0 0;
  border-top: 1px solid rgba(20, 45, 70, 0.12);
  border-radius: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
}

.landing-section-head {
  display: grid;
  gap: 0.26rem;
  justify-items: center;
  text-align: center;
}

.landing-path-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.04rem;
}

.landing-path-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.22rem;
  align-items: start;
  min-height: 100%;
  padding: 0.66rem 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 63, 112, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(15, 43, 64, 0.06);
}

.landing-path-card.is-map {
  background:
    radial-gradient(circle at top left, rgba(22, 131, 146, 0.12), transparent 36%),
    linear-gradient(165deg, rgba(244, 249, 253, 0.94), rgba(238, 246, 252, 0.88));
}

.landing-path-card.is-navdle {
  background:
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.1), transparent 32%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 247, 0.9));
}

.landing-path-card.is-cardle {
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.08), transparent 28%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 240, 0.9));
}

.landing-path-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 50, 77, 0.62);
}

.landing-path-title {
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 0.98;
  color: var(--ink-950);
}

.landing-path-summary,
.landing-path-note {
  margin: 0;
  color: rgba(18, 33, 53, 0.76);
  font-size: 0.72rem;
  line-height: 1.3;
}

.landing-path-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing-path-note {
  display: none;
}

.landing-daily-stats {
  display: none;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.landing-daily-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.62rem;
  padding: 0.12rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  background: rgba(20, 45, 70, 0.06);
  color: rgba(18, 33, 53, 0.78);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-path-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
}

.daily-launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.28rem;
  border: 1px solid rgba(245, 198, 143, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.86rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10233a;
  background: linear-gradient(135deg, #f4c88d, #ffebc6);
  box-shadow: 0 10px 24px rgba(5, 18, 30, 0.14);
  cursor: pointer;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
  width: fit-content;
}

.daily-launch-button:hover,
.daily-launch-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(5, 18, 30, 0.24);
  border-color: rgba(255, 232, 194, 0.9);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}

@media (max-width: 980px) {
  .landing-hero-head {
    justify-items: start;
    text-align: left;
    gap: 0;
  }

  .landing-hero-caption {
    max-width: none;
  }

  .landing-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      'upload'
      'benefits'
      'explore';
  }

  .landing-step-benefits {
    padding: 0.88rem 0.92rem;
  }

  .landing-step-explore {
    padding: 0.88rem 0.92rem;
    border-top: 0;
    border-radius: 18px;
    border: 1px solid rgba(20, 45, 70, 0.12);
    background: rgba(255, 255, 255, 0.74);
  }

  .landing-path-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .landing-path-card > .landing-path-actions,
  .landing-path-card > .daily-launch-button {
    grid-column: 1 / 2;
    grid-row: auto;
    justify-self: start;
  }

  .landing-path-actions {
    flex-direction: row;
  }

  .landing-path-grid {
    grid-template-columns: 1fr;
  }

  .landing-daily-stats {
    display: flex;
  }
}

@media (max-width: 760px) {
  .landing-upload-actions,
  .landing-path-actions {
    align-items: stretch;
  }

  .landing-upload-actions .view-example-button,
  .landing-path-actions .daily-launch-button,
  .landing-path-card > .daily-launch-button,
  .landing-inline-link {
    width: 100%;
  }

  .landing-path-note {
    display: block;
  }

  .landing-inline-link {
    text-align: center;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .page-shell {
    padding-top: 0.55rem;
    padding-bottom: 1.2rem;
  }

  .landing-view {
    padding-top: 0.08rem;
  }

  .landing-flow {
    gap: 0.38rem;
  }

  #landing-title {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
  }

  .landing-hero-head {
    gap: 0;
  }

  .landing-hero-caption {
    margin-top: 0.42rem;
    font-size: 0.8rem;
  }

  .landing-card {
    padding: 0.78rem 0.9rem;
    gap: 0.76rem 0.9rem;
  }

  .landing-step {
    gap: 0.48rem;
  }

  .upload-cta {
    min-height: 164px;
  }

  .landing-step-explore {
    padding-top: 0.68rem;
  }

  .landing-path-card {
    padding: 0.56rem 0.62rem;
  }

  .landing-path-summary {
    -webkit-line-clamp: 1;
  }
}

.site-footer {
  margin-top: 1.35rem;
  padding: 1rem 0.25rem 0.25rem;
  border-top: 1px solid rgba(20, 45, 70, 0.16);
  background: transparent;
  box-shadow: none;
}

.site-footer-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer-block {
  min-width: 0;
}

.site-footer-brand,
.site-footer-heading {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.66);
}

.site-footer-brand {
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 1.05rem;
  color: rgba(18, 33, 53, 0.82);
}

.site-footer-copy {
  margin: 0.42rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(18, 33, 53, 0.68);
}

.site-footer-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.site-footer-links a {
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.84rem;
  text-decoration-thickness: 1px;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #0f3f70;
}

.site-footer-meta {
  margin-top: 0.8rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(20, 45, 70, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.7rem;
}

.site-footer-meta p {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(18, 33, 53, 0.58);
}

.status-line.is-quiet {
  color: rgba(18, 33, 53, 0.74);
}

.status-line.is-warning {
  color: #9f4302;
}

.status-line.is-ok {
  color: #0f7745;
}

.message-banner {
  position: absolute;
  top: 0.9rem;
  right: 0.2rem;
  width: min(440px, calc(100vw - 1.4rem));
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  z-index: 70;
}

.message-banner.is-hidden {
  display: none;
}

.message-banner.is-info {
  background: rgba(15, 63, 112, 0.09);
  border-color: rgba(15, 63, 112, 0.2);
}

.message-banner.is-success {
  background: rgba(47, 158, 97, 0.12);
  border-color: rgba(47, 158, 97, 0.3);
}

.message-banner.is-warning {
  background: rgba(236, 127, 53, 0.16);
  border-color: rgba(236, 127, 53, 0.28);
}

.message-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.message-banner-copy {
  line-height: 1.42;
  color: var(--ink-950);
}

.message-banner-close {
  border: 0;
  background: transparent;
  color: rgba(18, 33, 53, 0.72);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  min-width: 1.4rem;
  min-height: 1.4rem;
  padding: 0;
}

.message-banner-close:hover,
.message-banner-close:focus-visible {
  background: rgba(20, 45, 70, 0.1);
  color: var(--ink-950);
}

.message-banner-progress {
  display: none;
  margin-top: 0.55rem;
  width: 100%;
  height: 0.28rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 45, 70, 0.16);
}

.message-banner.has-countdown .message-banner-progress {
  display: block;
}

.message-banner-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0f3f70, #168392);
  transform-origin: left;
  animation: message-countdown var(--dismiss-ms, 10000ms) linear forwards;
}

@keyframes message-countdown {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.dashboard-app {
  display: grid;
  gap: 0.9rem;
  position: relative;
  isolation: isolate;
}

.dashboard-tabs-shell {
  position: relative;
  z-index: 900;
  display: grid;
  gap: 0.16rem;
  justify-items: start;
}

.dashboard-tabs-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.48rem;
  flex-wrap: wrap;
  width: 100%;
}

.dashboard-tabs {
  display: inline-flex;
  flex: 1 1 auto;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
}

.dashboard-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.dashboard-mode-shell {
  --dashboard-mode-offset: 0px;
  --dashboard-mode-origin: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0 var(--dashboard-mode-offset);
  padding: 0 0.3rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transform-origin: var(--dashboard-mode-origin) top;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.06), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.94));
  box-shadow: none;
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 880;
  transition:
    max-height 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    margin 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-mode-shell.is-open {
  max-height: 4rem;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  pointer-events: auto;
  padding-top: 0.14rem;
  padding-bottom: 0.14rem;
  border-color: rgba(18, 44, 70, 0.1);
  box-shadow: 0 8px 18px rgba(15, 43, 64, 0.08);
}

.dashboard-mode-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--dashboard-mode-origin);
  width: 0.72rem;
  height: 0.72rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.94));
  border-top: 1px solid rgba(18, 44, 70, 0.1);
  border-left: 1px solid rgba(18, 44, 70, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -38%) rotate(45deg);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-mode-shell.is-open::before {
  opacity: 1;
  transform: translate(-50%, -54%) rotate(45deg);
}

.dashboard-mode-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.22rem;
}

.dashboard-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.72rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 112, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.08), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-800);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.dashboard-mode-button:hover,
.dashboard-mode-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.28);
  box-shadow: 0 10px 18px rgba(18, 44, 70, 0.09);
}

.dashboard-mode-button.is-active {
  color: #eff4ff;
  border-color: transparent;
  background:
    linear-gradient(145deg, #123a64, #1f6482 72%, #e08b42 140%);
  box-shadow: 0 12px 24px rgba(18, 58, 100, 0.18);
}

.dashboard-mode-button[disabled],
.dashboard-mode-button.is-disabled {
  cursor: not-allowed;
  color: rgba(65, 96, 125, 0.54);
  background: rgba(247, 250, 252, 0.72);
  box-shadow: none;
  opacity: 0.76;
}

.dashboard-tab-button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-700);
  background: transparent;
}

.dashboard-tab-button.is-active {
  color: #eff4ff;
  background: linear-gradient(145deg, #123a64, #1e567b);
}

.dashboard-tab-button[disabled],
.dashboard-tab-button.is-disabled {
  cursor: not-allowed;
  color: rgba(65, 96, 125, 0.54);
  background: transparent;
  opacity: 0.78;
}

.dashboard-tab-button[disabled]:hover,
.dashboard-tab-button.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.data-tools {
  position: relative;
  z-index: 4;
}

.data-tools-trigger {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.78)),
    rgba(251, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink-900);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.data-tools-trigger:hover,
.data-tools-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.34);
  box-shadow: 0 14px 34px rgba(15, 43, 64, 0.14);
}

.data-tools-trigger[aria-expanded='true'] {
  border-color: rgba(15, 63, 112, 0.3);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.98), rgba(232, 242, 255, 0.88)),
    rgba(236, 243, 255, 0.92);
}

.data-tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(360px, calc(100vw - 1.4rem));
  border-radius: 20px;
  border: 1px solid rgba(18, 44, 70, 0.18);
  background:
    radial-gradient(circle at top right, rgba(15, 63, 112, 0.1), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 245, 0.95));
  box-shadow: 0 24px 68px rgba(9, 25, 40, 0.18);
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
  backdrop-filter: blur(12px);
  z-index: 24;
}

.data-tools-menu-head {
  display: grid;
  gap: 0.18rem;
  padding: 0.08rem 0.08rem 0;
}

.data-tools-menu-kicker,
.data-tools-section-kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.data-tools-menu-title,
.data-tools-section-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}

.data-tools-menu-title {
  font-size: 1.42rem;
}

.data-tools-menu-copy,
.data-tools-section-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(18, 33, 53, 0.74);
}

.data-tools-section {
  position: relative;
  display: grid;
  gap: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  padding: 0.78rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.data-tools-section::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.18);
}

.data-tools-section.is-storage {
  background:
    linear-gradient(160deg, rgba(233, 245, 250, 0.9), rgba(247, 251, 245, 0.92)),
    rgba(255, 255, 255, 0.78);
}

.data-tools-section.is-storage::before {
  background: linear-gradient(180deg, #168392, #0f3f70);
}

.data-tools-section.is-collection {
  background:
    linear-gradient(160deg, rgba(239, 245, 255, 0.92), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.78);
}

.data-tools-section.is-collection::before {
  background: linear-gradient(180deg, #0f3f70, #587b9f);
}

.data-tools-section.is-danger {
  background:
    linear-gradient(160deg, rgba(255, 241, 237, 0.96), rgba(255, 252, 249, 0.92)),
    rgba(255, 255, 255, 0.78);
}

.data-tools-section.is-danger::before {
  background: linear-gradient(180deg, #db5959, #ec7f35);
}

.data-tools-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.data-tools-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.16rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.14);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.72);
}

.data-tools-state-pill.is-enabled {
  border-color: rgba(20, 115, 72, 0.24);
  background: rgba(223, 248, 233, 0.92);
  color: #176242;
}

.data-tools-state-pill.is-disabled {
  border-color: rgba(127, 54, 54, 0.18);
  background: rgba(255, 237, 237, 0.88);
  color: #8b2f2f;
}

.data-tools-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  padding: 0.75rem 0.82rem;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.data-tools-toggle-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.data-tools-toggle-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-900);
}

.data-tools-toggle-note {
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(18, 33, 53, 0.68);
}

.data-tools-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.data-tools-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 3.1rem;
  height: 1.85rem;
  padding: 0.16rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.16);
  background: rgba(123, 138, 152, 0.24);
  box-shadow: inset 0 1px 4px rgba(12, 24, 35, 0.08);
  transition: background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.data-tools-toggle-knob {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 255, 0.94));
  box-shadow: 0 3px 10px rgba(12, 24, 35, 0.18);
  transition: transform 170ms ease;
}

.data-tools-toggle:hover,
.data-tools-toggle:focus-within {
  border-color: rgba(15, 63, 112, 0.26);
  box-shadow: 0 10px 24px rgba(15, 43, 64, 0.08);
}

.data-tools-toggle-input:focus-visible + .data-tools-toggle-switch {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.data-tools-toggle-input:checked + .data-tools-toggle-switch {
  border-color: rgba(21, 113, 76, 0.26);
  background: linear-gradient(90deg, rgba(22, 131, 146, 0.34), rgba(47, 158, 97, 0.42));
}

.data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
  transform: translateX(1.23rem);
}

.data-tools-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 63, 112, 0.18);
  padding: 0.58rem 0.8rem;
  text-align: center;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-900);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.data-tools-item:hover,
.data-tools-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.34);
  background: rgba(235, 243, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 43, 64, 0.1);
}

.data-tools-item.is-danger {
  border-color: rgba(160, 60, 60, 0.22);
  color: #8c2f2f;
  background: rgba(255, 249, 247, 0.96);
}

.data-tools-item.is-danger:hover,
.data-tools-item.is-danger:focus-visible {
  border-color: rgba(160, 60, 60, 0.34);
  background: rgba(255, 238, 233, 0.98);
}

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

.dashboard-tab-panel {
  display: block;
}

.dashboard-tab-panel[hidden] {
  display: none;
}

.map-workspace-panel {
  display: block;
}

.map-workspace-panel[hidden] {
  display: none !important;
}

#map-missions-shell {
  width: 100%;
  min-height: 0;
}

.map-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
}

.map-layout.is-completionist {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.map-side {
  display: grid;
  gap: 0.85rem;
  min-height: 0;
}

.map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-panel-head {
  align-items: flex-start;
}

.map-panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.72rem;
  margin-left: auto;
}

.map-fullscreen-toggle {
  white-space: nowrap;
}

.map-fullscreen-toggle[data-state='active'] {
  border-color: rgba(15, 63, 112, 0.34);
  background: rgba(225, 240, 255, 0.96);
  color: #0f3f70;
}

.map-mode-toggle {
  flex: 0 1 22rem;
  max-width: 22rem;
}

.map-resize-shell {
  --map-resize-frame-top: 0rem;
  --map-resize-frame-right: 0rem;
  --map-resize-frame-bottom: 0rem;
  --map-resize-frame-left: 0rem;
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.map-resize-shell:has(.map-resize-overlay:not([hidden])),
.daily-missions-map-shell:has(.map-resize-overlay:not([hidden])) {
  --map-resize-frame-top: 2.78rem;
  --map-resize-frame-right: 1.52rem;
  --map-resize-frame-bottom: 1.52rem;
  --map-resize-frame-left: 0.46rem;
  padding: var(--map-resize-frame-top) var(--map-resize-frame-right) var(--map-resize-frame-bottom) var(--map-resize-frame-left);
  border: 1px solid rgba(15, 63, 112, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.94)),
    radial-gradient(circle at top right, rgba(15, 63, 112, 0.08), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(18, 44, 70, 0.06);
}

.map-resize-shell .leaflet-map {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.map-resize-overlay {
  position: absolute;
  inset: 0;
  z-index: 620;
  pointer-events: none;
}

.map-resize-overlay[hidden] {
  display: none !important;
}

.map-resize-toolbar {
  position: absolute;
  top: 0.42rem;
  right: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  max-width: none;
  pointer-events: none;
}

.map-resize-indicator {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 44, 70, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(18, 44, 70, 0.12);
  opacity: 0.88;
  pointer-events: none;
}

.map-resize-indicator[data-mode='size'] {
  border-color: rgba(15, 63, 112, 0.24);
  background: rgba(225, 240, 255, 0.96);
  color: #0f3f70;
}

.map-resize-reset {
  position: static;
  min-height: 2rem;
  padding-inline: 0.82rem;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 12px 24px rgba(18, 44, 70, 0.12);
}

.map-resize-handle {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.78;
  transition: opacity 160ms ease, transform 160ms ease;
}

.map-resize-handle::before,
.map-resize-handle::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.74);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.84),
    0 10px 20px rgba(18, 44, 70, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}

.map-resize-shell:hover .map-resize-handle,
.map-resize-shell:focus-within .map-resize-handle,
.daily-missions-map-shell:hover .map-resize-handle,
.daily-missions-map-shell:focus-within .map-resize-handle,
.map-resize-overlay[data-override='true'] .map-resize-handle,
.map-resize-overlay[data-dragging='true'] .map-resize-handle {
  opacity: 1;
}

.map-resize-overlay[data-dragging='true'] .map-resize-handle,
.map-resize-handle:hover,
.map-resize-handle:focus-visible {
  transform: scale(1.02);
}

.map-resize-handle:focus-visible {
  outline: 2px solid rgba(15, 63, 112, 0.72);
  outline-offset: 1px;
}

.map-resize-handle--east {
  top: calc(var(--map-resize-frame-top) + 0.44rem);
  right: 0.18rem;
  bottom: calc(var(--map-resize-frame-bottom) + 0.44rem);
  width: 0.82rem;
  cursor: ew-resize;
}

.map-resize-handle--east::before {
  top: 0.7rem;
  bottom: 0.7rem;
  left: 50%;
  width: 0.22rem;
  transform: translateX(-50%);
}

.map-resize-handle--south {
  left: calc(var(--map-resize-frame-left) + 0.92rem);
  right: calc(var(--map-resize-frame-right) + 1.5rem);
  bottom: 0.18rem;
  height: 0.82rem;
  cursor: ns-resize;
}

.map-resize-handle--south::before {
  left: 0.7rem;
  right: 0.7rem;
  top: 50%;
  height: 0.22rem;
  transform: translateY(-50%);
}

.map-resize-handle--corner {
  right: 0.18rem;
  bottom: 0.18rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 12px;
  cursor: nwse-resize;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(15, 63, 112, 0.16),
    0 12px 24px rgba(18, 44, 70, 0.12);
}

.map-resize-handle--corner::before,
.map-resize-handle--corner::after {
  top: 50%;
  left: 50%;
  height: 0.18rem;
  transform-origin: center;
}

.map-resize-handle--corner::before {
  width: 0.72rem;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-resize-handle--corner::after {
  width: 0.42rem;
  transform: translate(-10%, -10%) rotate(-45deg);
}

.map-fullscreen-surface:fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.12), transparent 26%),
    linear-gradient(160deg, rgba(245, 249, 253, 0.98), rgba(233, 240, 248, 0.96));
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.map-fullscreen-surface:fullscreen::backdrop {
  background:
    radial-gradient(circle at top, rgba(33, 92, 118, 0.24), transparent 28%),
    rgba(8, 19, 31, 0.94);
}

.map-panel.map-fullscreen-surface:fullscreen,
.daily-missions-map-panel.map-fullscreen-surface:fullscreen,
.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.map-panel.map-fullscreen-surface:fullscreen .map-resize-shell,
.daily-missions-map-panel.map-fullscreen-surface:fullscreen .daily-missions-map-shell,
.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-hotspot-shell,
.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-hotspot-map {
  flex: 1 1 auto;
  min-height: 0;
}

.map-fullscreen-surface:fullscreen .map-resize-overlay {
  display: none !important;
}

.map-panel.map-fullscreen-surface:fullscreen .map-resize-shell,
.daily-missions-map-panel.map-fullscreen-surface:fullscreen .daily-missions-map-shell {
  --map-resize-frame-top: 0rem;
  --map-resize-frame-right: 0rem;
  --map-resize-frame-bottom: 0rem;
  --map-resize-frame-left: 0rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.map-panel.map-fullscreen-surface:fullscreen .leaflet-map,
.daily-missions-map-panel.map-fullscreen-surface:fullscreen .daily-missions-map,
.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-hotspot-map-canvas,
.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-hotspot-map .leaflet-container {
  min-height: 0;
  height: 100%;
}

.map-panel.map-fullscreen-surface:fullscreen .map-legend {
  margin-top: 0;
  max-height: 5rem;
  overflow: auto;
}

.map-drill-panel,
.map-completionist-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-drill-head {
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.2rem;
}

.map-drill-helper {
  margin: 0 0 0.38rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(18, 33, 53, 0.74);
}

.map-completionist-head {
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.34rem;
}

.map-completionist-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.34rem;
}

.map-completionist-head-actions .region-action-button {
  min-height: 1.66rem;
  padding: 0.14rem 0.54rem;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.live-refresh-status-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 248, 253, 0.92)),
    radial-gradient(circle at top right, rgba(15, 63, 112, 0.08), transparent 46%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.live-refresh-status-card[data-tone='loading'] {
  border-color: rgba(15, 63, 112, 0.18);
}

.live-refresh-status-card[data-tone='warning'],
.live-refresh-status-card[data-tone='error'] {
  border-color: rgba(236, 127, 53, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(252, 244, 234, 0.94)),
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.16), transparent 48%);
}

.live-refresh-status {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.live-refresh-status-primary,
.live-refresh-status-secondary {
  margin: 0;
}

.battles-content {
  width: 100%;
}

.battles-shell {
  display: grid;
  gap: 0.85rem;
}

.battles-content.is-live-flash .battles-week-card,
.battles-content.is-live-flash .battles-feed-row:first-child {
  animation: battles-live-flash 900ms ease;
}

.battles-header {
  display: block;
}

.battles-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 252, 0.94)),
    linear-gradient(135deg, rgba(15, 63, 112, 0.03), rgba(22, 131, 146, 0.04));
  box-shadow: var(--shadow-soft);
}

.battles-week-card,
.battles-refresh-card,
.battles-board-surface,
.battles-feed-surface,
.battles-timeline-surface,
.battles-timeline-detail,
.battles-bucket-surface,
.battles-empty-state {
  padding: 0.95rem 1rem;
}

.battles-week-card-head,
.battles-surface-head,
.battles-timeline-detail-head,
.battles-bucket-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.battles-kicker,
.battles-section-label {
  margin: 0 0 0.22rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-b);
}

.battles-week-card h2,
.battles-surface-head h3,
.battles-timeline-detail h3,
.battles-bucket-player h4 {
  margin: 0;
  color: var(--ink-900);
}

.battles-week-range,
.battles-week-theme p,
.battles-week-note,
.battles-surface-meta,
.battles-player-meta,
.battles-feed-row-meta,
.battles-timeline-detail-copy,
.battles-bucket-player p,
.battles-bucket-player-meta,
.battles-empty-copy {
  margin: 0;
  color: var(--ink-700);
}

.battles-week-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, auto) auto;
  gap: 0.85rem 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.battles-week-card-title {
  min-width: 0;
}

.battles-refresh-button {
  min-height: 2rem;
  border-radius: 8px;
  white-space: nowrap;
}

.battles-live-inline-status {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  justify-self: end;
  text-align: right;
  padding-left: 0.95rem;
  border-left: 1px solid var(--line);
}

.battles-live-inline-status[data-tone='warning'] .live-refresh-status-primary,
.battles-live-inline-status[data-tone='warning'] .live-refresh-status-secondary,
.battles-live-inline-status[data-tone='error'] .live-refresh-status-primary,
.battles-live-inline-status[data-tone='error'] .live-refresh-status-secondary {
  color: #a95a1f;
}

.battles-week-summary {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.battles-week-theme {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  border: 0;
}

.battles-week-theme h3 {
  margin: 0;
  color: var(--ink-900);
}

.battles-week-summary-copy {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.battles-week-description {
  margin: 0;
  color: var(--ink-800);
}

.battles-chip,
.battles-inline-pill,
.battles-state-pill,
.battles-legend-chip,
.battles-feed-tier-badge {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 63, 112, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-800);
}

.battles-week-note {
  font-size: 0.76rem;
}

.battles-leaderboard-layout,
.battles-timeline-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  align-items: start;
}

.battles-surface-head {
  margin-bottom: 0.85rem;
}

.battles-board-surface,
.battles-feed-surface,
.battles-timeline-surface,
.battles-bucket-surface {
  min-width: 0;
}

.battles-feed-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: var(--battles-feed-max-height, none);
  overflow: hidden;
}

.battles-leaderboard-list,
.battles-bucket-grid {
  display: grid;
  gap: 0.65rem;
}

.battles-leaderboard-list {
  grid-template-columns: minmax(0, 1fr);
}

.battles-feed-list {
  display: grid;
  gap: 0.42rem;
  min-height: 0;
}

.battles-feed-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.78rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(15, 63, 112, 0.08);
}

.battles-feed-pagination-copy,
.battles-feed-pagination-page {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-700);
}

.battles-feed-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.battles-feed-pagination-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.battles-surface-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.battles-surface-toggle {
  min-height: 1.8rem;
  padding-block: 0.34rem;
}

.battles-collapsed-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-700);
}

.battles-leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.55fr) minmax(0, 1.75fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.78rem 0.8rem;
  border: 1px solid rgba(15, 63, 112, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.battles-leaderboard-row.is-active {
  border-color: rgba(22, 131, 146, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 248, 249, 0.93));
}

.battles-leaderboard-row.is-feed-selected {
  border-color: rgba(15, 63, 112, 0.24);
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.08);
}

.battles-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  min-height: 2rem;
  padding: 0.34rem 0.5rem;
  border-radius: 8px;
  background: rgba(15, 63, 112, 0.08);
  font-weight: 800;
  text-align: center;
  color: var(--ink-900);
}

.battles-rank-pill.is-podium {
  min-width: 2.55rem;
  padding: 0.32rem;
}

.battles-rank-pill.is-podium svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.battles-rank-pill.is-gold {
  background: linear-gradient(180deg, rgba(255, 249, 231, 0.98), rgba(248, 231, 177, 0.94));
  color: #a46a00;
}

.battles-rank-pill.is-silver {
  background: linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(226, 231, 238, 0.94));
  color: #687686;
}

.battles-rank-pill.is-bronze {
  background: linear-gradient(180deg, rgba(255, 244, 237, 0.98), rgba(243, 214, 194, 0.94));
  color: #9d5c33;
}

.battles-player-block,
.battles-leaderboard-summary,
.battles-leaderboard-stat-grid,
.battles-metric-block,
.battles-trend-block,
.battles-bucket-player {
  min-width: 0;
}

.battles-leaderboard-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.battles-leaderboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  align-items: start;
}

.battles-player-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.12rem;
}

.battles-state-pill {
  min-height: 1.4rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.battles-state-pill.is-active {
  color: var(--accent-b);
  border-color: rgba(22, 131, 146, 0.2);
  background: rgba(22, 131, 146, 0.08);
}

.battles-player-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.battles-compact-status-row {
  display: none;
}

.battles-compact-status-label,
.battles-compact-status-values {
  display: inline-flex;
  align-items: center;
}

.battles-compact-status-label {
  gap: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-600);
}

.battles-compact-status-label.is-sleeping {
  color: var(--ink-700);
}

.battles-compact-status-label.is-up {
  color: var(--captured);
}

.battles-compact-status-label.is-down {
  color: var(--missing);
}

.battles-compact-status-label.is-flat {
  color: var(--ink-600);
}

.battles-compact-status-values {
  gap: 0.22rem;
}

.battles-player-filter-button {
  border: 0;
  border-bottom: 1px solid rgba(15, 63, 112, 0.24);
  padding: 0;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-a);
  text-align: left;
  background: transparent;
  cursor: pointer;
  max-width: 100%;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color 150ms ease, border-color 150ms ease;
}

.battles-player-filter-button:hover,
.battles-player-filter-button:focus-visible,
.battles-player-filter-button.is-selected {
  color: var(--accent-a);
  border-bottom-color: currentColor;
}

.battles-inline-pill.is-mixed {
  color: #8d4d1f;
  border-color: rgba(236, 127, 53, 0.16);
  background: rgba(236, 127, 53, 0.09);
}

.battles-inline-pill--compact {
  min-height: 1.18rem;
  padding: 0.06rem 0.36rem;
  border-radius: 999px;
  font-size: 0.64rem;
  gap: 0.22rem;
}

.battles-inline-pill--compact .battles-trend-icon svg {
  width: 0.74rem;
  height: 0.74rem;
}

.battles-inline-pill--compact.is-overflow {
  color: var(--ink-600);
  background: rgba(15, 63, 112, 0.06);
}

.battles-metric-value-compact,
.battles-metric-caption-compact {
  display: none;
}

.battles-inline-note {
  font-size: 0.72rem;
  color: var(--ink-500);
}

.battles-metric-block {
  display: grid;
  gap: 0.12rem;
}

.battles-metric-block strong {
  font-size: 1rem;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.battles-metric-block.is-sleeping {
  gap: 0.2rem;
}

.battles-sleep-state {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.82rem;
  color: var(--ink-700);
}

.battles-sleep-state svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.battles-metric-block small {
  color: var(--ink-700);
}

.battles-metric-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.battles-trend-block {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  justify-content: flex-end;
  font-weight: 700;
  flex: none;
}

.battles-trend-block.is-up {
  color: var(--captured);
}

.battles-trend-block.is-down {
  color: var(--missing);
}

.battles-trend-block.is-flat {
  color: var(--ink-500);
}

.battles-trend-icon svg,
.battles-feed-tier-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.battles-feed-controls,
.battles-timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.battles-control-field {
  min-width: 0;
  flex: 1 1 180px;
}

.battles-feed-player-control-body {
  position: relative;
}

.battles-control-field input,
.battles-control-field select {
  border-radius: 8px;
}

.battles-feed-suggestion-list,
.battles-feed-value-filter-menu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  border: 1px solid rgba(15, 63, 112, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: 0 16px 28px rgba(15, 43, 64, 0.12);
}

.battles-feed-suggestion-list {
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.18rem;
  padding: 0.32rem;
}

.battles-feed-suggestion-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.42rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  color: var(--ink-900);
  background: transparent;
  cursor: pointer;
}

.battles-feed-suggestion-button:hover,
.battles-feed-suggestion-button:focus-visible,
.battles-feed-suggestion-button.is-active {
  background: rgba(15, 63, 112, 0.08);
}

.battles-feed-value-filter {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
}

.battles-feed-value-filter > summary {
  min-height: 1.96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid rgba(15, 63, 112, 0.16);
  border-radius: 8px;
  padding: 0.48rem 0.68rem;
  list-style: none;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.battles-feed-value-filter > summary::-webkit-details-marker {
  display: none;
}

.battles-feed-value-filter[open] > summary {
  border-color: rgba(15, 63, 112, 0.24);
  box-shadow: 0 12px 24px rgba(15, 43, 64, 0.08);
}

.battles-feed-value-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.battles-feed-value-filter-summary {
  min-width: 0;
  font-size: 0.8rem;
  color: var(--ink-900);
  text-align: right;
}

.battles-feed-value-filter-menu {
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.2rem;
  padding: 0.42rem;
}

.battles-feed-value-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.7rem;
  border-radius: 6px;
  padding: 0.22rem 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-900);
}

.battles-feed-value-option:hover {
  background: rgba(15, 63, 112, 0.05);
}

.battles-feed-value-option input {
  margin: 0;
}

.battles-feed-value-filter-empty {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-700);
}

.battles-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.28rem 0.8rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(15, 63, 112, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.battles-feed-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 43, 64, 0.06);
}

.battles-feed-row > time {
  justify-self: end;
  font-size: 0.74rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.battles-feed-row-badge,
.battles-feed-row-player {
  min-width: 0;
}

.battles-feed-row-player {
  display: grid;
  gap: 0.08rem;
}

.battles-feed-row-player h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-900);
}

.battles-feed-row-player p,
.battles-feed-row-meta {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.battles-feed-row-meta {
  text-align: right;
}

.battles-feed-tier-badge {
  min-height: 1.52rem;
  white-space: nowrap;
}

.battles-feed-tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.battles-feed-tier-icon .battles-tier-icon-core {
  fill: currentColor;
}

.battles-timeline-layout {
  grid-template-columns: minmax(0, 1fr);
}

.battles-timeline-toolbar {
  justify-content: space-between;
  align-items: center;
}

.battles-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.battles-timeline-marker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.battles-timeline-marker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.battles-timeline-marker-separator {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-500);
}

.battles-timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.3rem;
}

.battles-timeline-table {
  display: grid;
  gap: 0.5rem 0.85rem;
  grid-template-columns: 180px max-content;
  align-items: start;
}

.battles-timeline-label-spacer {
  min-height: 1.4rem;
}

.battles-timeline-scale,
.battles-timeline-row-track {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(var(--battles-columns), 14px);
  gap: 3px;
}

.battles-timeline-scale-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  border-radius: 6px;
  background: rgba(15, 63, 112, 0.06);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-700);
}

.battles-timeline-row-label {
  display: grid;
  gap: 0.14rem;
  padding-top: 0.1rem;
}

.battles-timeline-row-label strong {
  font-size: 0.82rem;
  color: var(--ink-900);
}

.battles-timeline-row-label span {
  font-size: 0.7rem;
  color: var(--ink-500);
}

.battles-timeline-cell {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(20, 45, 70, 0.08);
  border-radius: 4px;
  background: rgba(20, 45, 70, 0.06);
  cursor: pointer;
}

.battles-timeline-cell.is-selected {
  transform: scale(1.12);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.battles-timeline-cell.is-empty {
  border-style: dashed;
  cursor: default;
}

.battles-timeline-row-track--empty {
  display: block;
  width: 100%;
}

.battles-timeline-detail {
  display: grid;
  gap: 0.55rem;
}

.battles-timeline-detail-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.battles-timeline-detail-stats span {
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: rgba(15, 63, 112, 0.06);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-800);
}

.battles-timeline-layout {
  grid-template-columns: minmax(0, 1fr);
}

.battles-timeline-toolbar {
  justify-content: flex-start;
  align-items: end;
}

.battles-timeline-presets,
.battles-timeline-legend,
.battles-timeline-player-meta,
.battles-timeline-zoom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.battles-timeline-player-main {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  flex: 1 1 auto;
}

.battles-timeline-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.battles-timeline-range-button,
.battles-timeline-zoom-button,
.battles-marker-action-button {
  min-height: 1.95rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(15, 63, 112, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-900);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.battles-marker-action-button {
  min-height: 1.8rem;
  padding: 0.3rem 0.56rem;
  font-size: 0.72rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.battles-timeline-range-button.is-active {
  border-color: rgba(15, 63, 112, 0.24);
  background: rgba(15, 63, 112, 0.08);
  color: var(--accent-a);
}

.battles-timeline-timezone-badge {
  min-height: 1.95rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(15, 63, 112, 0.12);
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.94);
  color: var(--ink-700);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.battles-legend-chip.is-positive {
  border-color: rgba(47, 158, 97, 0.18);
  background: rgba(47, 158, 97, 0.1);
  color: #2f9e61;
}

.battles-legend-chip.is-negative {
  border-color: rgba(180, 76, 65, 0.18);
  background: rgba(180, 76, 65, 0.1);
  color: #b44c41;
}

.battles-legend-chip {
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 43, 64, 0.08);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.battles-legend-chip:hover,
.battles-legend-chip:focus-visible,
.battles-legend-chip.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.26);
  box-shadow: 0 10px 18px rgba(15, 43, 64, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.battles-timeline-range-button:hover,
.battles-timeline-range-button:focus-visible,
.battles-marker-action-button:hover,
.battles-marker-action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.24);
  box-shadow: 0 8px 16px rgba(15, 43, 64, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.battles-legend-chip:active,
.battles-marker-action-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 43, 64, 0.08);
}

.battles-legend-chip.is-inactive {
  opacity: 0.55;
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.04);
}

.battles-legend-chip.is-inactive:hover,
.battles-legend-chip.is-inactive:focus-visible {
  opacity: 0.9;
}

.battles-timeline-legend-copy {
  margin: 0.38rem 0 0.72rem;
  font-size: 0.76rem;
  color: var(--ink-700);
}

.battles-timeline-board {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: start;
}

.battles-timeline-board.is-stacked {
  grid-template-columns: minmax(0, 1fr);
}

.battles-timeline-column-head {
  min-height: 2rem;
  display: flex;
  align-items: center;
  padding: 0 0.15rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.battles-timeline-label-column,
.battles-timeline-track-rows {
  display: grid;
  gap: 0.35rem;
}

.battles-timeline-label-row {
  min-height: var(--timeline-row-height, 64px);
}

.battles-timeline-label-row--stacked {
  min-height: auto;
}

.battles-timeline-player-card {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.44rem 0.62rem;
  border: 1px solid rgba(15, 63, 112, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.battles-timeline-label-row.is-alternate .battles-timeline-player-card {
  background: rgba(248, 251, 254, 0.88);
}

.battles-timeline-player-card.is-active {
  border-color: rgba(22, 131, 146, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 249, 0.92));
}

.battles-timeline-player-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
}

.battles-timeline-player-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--ink-900);
}

.battles-timeline-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  justify-content: center;
  min-height: 1.28rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(15, 63, 112, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-800);
}

.battles-timeline-meta-chip svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
}

.battles-timeline-meta-chip.is-rank {
  min-width: 2rem;
  flex: 0 0 auto;
}

.battles-timeline-meta-chip.is-rank.is-gold {
  color: #a46a00;
  background: linear-gradient(180deg, rgba(255, 249, 231, 0.98), rgba(248, 231, 177, 0.94));
}

.battles-timeline-meta-chip.is-rank.is-silver {
  color: #687686;
  background: linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(226, 231, 238, 0.94));
}

.battles-timeline-meta-chip.is-rank.is-bronze {
  color: #9d5c33;
  background: linear-gradient(180deg, rgba(255, 244, 237, 0.98), rgba(243, 214, 194, 0.94));
}

.battles-timeline-meta-chip.is-muted {
  color: var(--ink-500);
}

.battles-timeline-player-meta {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.battles-timeline-viewport {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
}

.battles-timeline-viewport--stacked {
  padding-bottom: 0;
}

.battles-timeline-viewport.is-brushing {
  cursor: col-resize;
  user-select: none;
}

.battles-timeline-track-shell {
  position: relative;
  width: 100%;
  min-width: 100%;
}

.battles-timeline-ruler {
  position: relative;
  min-height: 2.15rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(15, 63, 112, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.battles-timeline-ruler-band {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  border: 0;
  padding-left: 0.6rem;
  border-right: 1px solid rgba(15, 63, 112, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-700);
  background: transparent;
}

.battles-timeline-ruler-band.is-alternate {
  background: rgba(15, 63, 112, 0.04);
}

.battles-timeline-ruler-band.is-clickable {
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.battles-timeline-ruler-band.is-clickable:hover,
.battles-timeline-ruler-band.is-clickable:focus-visible {
  background: rgba(15, 63, 112, 0.08);
  color: var(--accent-a);
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.12);
}

.battles-timeline-track-region {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.battles-timeline-stacked-rows {
  display: grid;
  gap: 0.52rem;
}

.battles-timeline-stacked-row {
  display: grid;
  gap: 0.32rem;
}

.battles-timeline-lane {
  position: relative;
  min-height: var(--timeline-row-height, 64px);
  border: 1px solid rgba(15, 63, 112, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 249, 253, 0.76));
  overflow: visible;
  z-index: 0;
}

.battles-timeline-lane.is-active {
  border-color: rgba(22, 131, 146, 0.22);
}

.battles-timeline-lane.is-alternate {
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(242, 247, 251, 0.9));
}

.battles-timeline-lane.is-selected-row {
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.08);
}

.battles-timeline-lane-baseline {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  top: calc(50% - 0.5px);
  border-top: 1px dashed rgba(15, 63, 112, 0.2);
}

.battles-timeline-lane-empty {
  position: absolute;
  right: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--ink-500);
}

.battles-timeline-event {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  overflow: visible;
}

.battles-timeline-event-bar,
.battles-timeline-event-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.battles-timeline-event-bar {
  width: 100%;
  min-width: 0.38rem;
  border: 1px solid var(--timeline-event-accent);
  background: var(--timeline-event-fill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.battles-timeline-event-pill {
  width: max-content;
  max-width: 8rem;
  padding: 0.12rem 0.36rem;
  border: 1px solid var(--timeline-event-track);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.97);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--timeline-event-accent);
  white-space: nowrap;
}

.battles-timeline-event[data-direction='up'] .battles-timeline-event-bar {
  top: 0.42rem;
  bottom: calc(50% + 0.16rem);
  border-radius: 2px 2px 0 0;
}

.battles-timeline-event[data-direction='up'] .battles-timeline-event-pill {
  top: 0.28rem;
}

.battles-timeline-event[data-direction='down'] .battles-timeline-event-bar {
  top: calc(50% + 0.16rem);
  bottom: 0.42rem;
  border-radius: 0 0 2px 2px;
}

.battles-timeline-event[data-direction='down'] .battles-timeline-event-pill,
.battles-timeline-event[data-direction='wins'] .battles-timeline-event-pill,
.battles-timeline-event[data-direction='flat'] .battles-timeline-event-pill {
  bottom: 0.46rem;
}

.battles-timeline-event[data-direction='wins'] .battles-timeline-event-bar,
.battles-timeline-event[data-direction='flat'] .battles-timeline-event-bar {
  top: 0.42rem;
  bottom: 0.42rem;
  border-radius: 2px;
}

.battles-timeline-event.is-selected .battles-timeline-event-bar,
.battles-timeline-event.is-selected .battles-timeline-event-pill {
  box-shadow: 0 0 0 2px rgba(249, 170, 89, 0.55);
}

.battles-timeline-event:hover .battles-timeline-event-bar,
.battles-timeline-event:focus-visible .battles-timeline-event-bar {
  box-shadow: 0 0 0 1px rgba(15, 63, 112, 0.12), 0 8px 14px rgba(15, 43, 64, 0.1);
}

.battles-timeline-hovercard {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: 0.18rem;
  width: min(18rem, calc(100% - 1rem));
  padding: 0.58rem 0.64rem;
  border: 1px solid rgba(15, 63, 112, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 30px rgba(15, 43, 64, 0.16);
  pointer-events: none;
}

.battles-timeline-hovercard p {
  margin: 0;
}

.battles-timeline-hovercard-time,
.battles-timeline-hovercard-total {
  font-size: 0.68rem;
  color: var(--ink-700);
}

.battles-timeline-hovercard-note {
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--ink-700);
}

.battles-timeline-hovercard-delta {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-900);
}

.battles-timeline-brush {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  border: 1px solid rgba(15, 124, 120, 0.34);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(15, 124, 120, 0.08), rgba(15, 124, 120, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.battles-timeline-empty-board {
  padding: 0.95rem 0.1rem 0;
}

.battles-buckets-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(var(--battles-bucket-columns, 7), minmax(0, 1fr));
  align-items: start;
}

.battles-bucket-toolbar {
  grid-column: 1 / -1;
  padding: 1.18rem 1.25rem 1.14rem;
}

.battles-bucket-toolbar-head,
.battles-bucket-toolbar-actions,
.battles-bucket-surface-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.battles-bucket-toolbar-actions,
.battles-bucket-surface-actions {
  justify-content: flex-end;
}

.battles-bucket-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.battles-bucket-filter {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.8rem;
  padding: 0.18rem 0.56rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 63, 112, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.battles-bucket-filter:hover,
.battles-bucket-filter:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.32);
  background: rgba(244, 249, 253, 0.98);
}

.battles-bucket-filter.is-hidden {
  opacity: 0.58;
  background: rgba(244, 247, 250, 0.78);
}

.battles-bucket-filter-label,
.battles-bucket-filter-count {
  font-size: 0.72rem;
  font-weight: 800;
}

.battles-bucket-filter-count {
  min-width: 1.35rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.08);
  text-align: center;
}

.battles-bucket-toolbar-button,
.battles-bucket-hide-button {
  min-height: 1.72rem;
  padding: 0.16rem 0.54rem;
  font-size: 0.66rem;
}

.battles-bucket-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
}

.battles-bucket-player {
  position: relative;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(15, 63, 112, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96)),
    radial-gradient(circle at top right, rgba(15, 63, 112, 0.05), transparent 54%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: visible;
}

.battles-bucket-player.is-active {
  border-color: rgba(38, 170, 101, 0.42);
  background:
    linear-gradient(180deg, rgba(244, 255, 248, 0.98), rgba(231, 252, 239, 0.96)),
    radial-gradient(circle at top right, rgba(38, 170, 101, 0.16), transparent 56%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 0 0 1px rgba(38, 170, 101, 0.1),
    0 0 18px rgba(38, 170, 101, 0.16);
}

.battles-bucket-player-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
}

.battles-bucket-player-summary::-webkit-details-marker {
  display: none;
}

.battles-bucket-player-summary:focus-visible {
  outline: none;
}

.battles-bucket-rank {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.48rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-900);
}

.battles-bucket-rank.is-muted {
  color: var(--ink-600);
}

.battles-bucket-rank.is-podium {
  min-width: 1.52rem;
  min-height: 1.52rem;
  padding-inline: 0.28rem;
  border: 1px solid transparent;
}

.battles-bucket-rank.is-podium svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.battles-bucket-rank.is-gold {
  color: #9b6a12;
  background: rgba(255, 238, 193, 0.92);
  border-color: rgba(206, 154, 54, 0.34);
}

.battles-bucket-rank.is-silver {
  color: #51617a;
  background: rgba(234, 239, 247, 0.96);
  border-color: rgba(141, 156, 176, 0.38);
}

.battles-bucket-rank.is-bronze {
  color: #8f5320;
  background: rgba(249, 230, 213, 0.96);
  border-color: rgba(188, 118, 59, 0.34);
}

.battles-bucket-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-900);
}

.battles-bucket-player-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  color: #118048;
  background: rgba(38, 170, 101, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(38, 170, 101, 0.16),
    0 0 10px rgba(38, 170, 101, 0.18);
}

.battles-bucket-player-status svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
}

.battles-bucket-player-affordance {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.08rem;
  border-radius: 999px;
  color: rgba(18, 52, 86, 0.74);
  background: rgba(15, 63, 112, 0.08);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.battles-bucket-player-affordance svg {
  width: 0.74rem;
  height: 0.74rem;
  fill: currentColor;
}

.battles-bucket-player:hover .battles-bucket-player-affordance,
.battles-bucket-player:focus-within .battles-bucket-player-affordance,
.battles-bucket-player[open] .battles-bucket-player-affordance {
  color: rgba(18, 52, 86, 0.92);
  background: rgba(15, 63, 112, 0.14);
  transform: translateY(-1px);
}

.battles-bucket-player-popover {
  position: absolute;
  inset: calc(100% + 0.42rem) auto auto 0;
  z-index: 16;
  display: grid;
  gap: 0.7rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(15, 63, 112, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 252, 0.98)),
    radial-gradient(circle at top right, rgba(15, 63, 112, 0.08), transparent 44%);
  box-shadow: 0 18px 32px rgba(18, 44, 70, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}

.battles-bucket-player:hover .battles-bucket-player-popover,
.battles-bucket-player:focus-within .battles-bucket-player-popover,
.battles-bucket-player[open] .battles-bucket-player-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.battles-bucket-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.battles-bucket-popover-kicker,
.battles-bucket-popover-section-label {
  margin: 0 0 0.16rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-b);
}

.battles-bucket-popover-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-950);
}

.battles-bucket-popover-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.5rem;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

.battles-bucket-popover-state.is-active {
  color: #11693f;
  background: rgba(38, 170, 101, 0.16);
}

.battles-bucket-popover-state.is-idle {
  color: var(--ink-700);
  background: rgba(15, 63, 112, 0.08);
}

.battles-bucket-popover-state svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
}

.battles-bucket-popover-section {
  display: grid;
  gap: 0.36rem;
}

.battles-bucket-popover-grid {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.battles-bucket-popover-stat {
  display: grid;
  gap: 0.14rem;
  padding: 0.38rem 0.44rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 63, 112, 0.08);
}

.battles-bucket-popover-stat dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-600);
}

.battles-bucket-popover-stat dd {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-900);
}

.battles-bucket-empty-copy {
  padding-top: 0.1rem;
  font-size: 0.78rem;
}

.battles-surface-meta {
  font-size: 0.63rem;
  line-height: 1.2;
}

.battles-empty-state {
  display: grid;
  gap: 0.35rem;
}

.is-tier-standard {
  border-color: rgba(15, 63, 112, 0.12);
  color: var(--accent-a);
}

.is-tier-50 {
  border-color: rgba(236, 127, 53, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 244, 235, 0.94));
  color: #b55e1c;
}

.is-tier-75 {
  border-color: rgba(203, 81, 98, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 246, 248, 0.98), rgba(255, 237, 241, 0.94));
  color: #b13d53;
}

.is-tier-100 {
  border-color: rgba(126, 158, 77, 0.28);
  background:
    linear-gradient(180deg, rgba(250, 255, 245, 0.98), rgba(240, 248, 227, 0.94));
  color: #5f7b2f;
  box-shadow: inset 0 0 0 1px rgba(126, 158, 77, 0.14);
}

.is-tier-mixed {
  border-color: rgba(104, 128, 155, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(238, 243, 248, 0.94));
  color: #51697f;
}

.is-tier-wins {
  border-color: rgba(104, 128, 155, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(238, 243, 248, 0.94));
  color: #51697f;
}

@keyframes battles-live-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 131, 146, 0.2);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(22, 131, 146, 0);
  }
}

@media (max-width: 1180px) {
  .battles-leaderboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .battles-buckets-layout {
    grid-template-columns: repeat(var(--battles-bucket-columns-1180, 4), minmax(0, 1fr));
  }

  .battles-feed-surface {
    max-height: none;
  }

  .battles-timeline-board {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .battles-week-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .battles-live-inline-status {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    padding-left: 0;
    border-left: 0;
  }

  .battles-week-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .battles-buckets-layout {
    grid-template-columns: repeat(var(--battles-bucket-columns-920, 3), minmax(0, 1fr));
  }

  .battles-leaderboard-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: start;
  }

  .battles-leaderboard-row {
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.28rem;
    padding: 0.58rem 0.6rem;
  }

  .battles-rank-pill {
    position: absolute;
    top: 0.58rem;
    left: 0.6rem;
    min-width: 2.15rem;
    min-height: 1.72rem;
    padding: 0.26rem 0.4rem;
    font-size: 0.82rem;
  }

  .battles-rank-pill.is-podium {
    min-width: 2.05rem;
    padding: 0.22rem;
  }

  .battles-rank-pill.is-podium svg {
    width: 0.84rem;
    height: 0.84rem;
  }

  .battles-leaderboard-summary {
    display: block;
    min-height: 1.58rem;
    padding-left: 2.48rem;
  }

  .battles-player-line {
    display: block;
    margin-bottom: 0;
  }

  .battles-player-line .battles-state-pill,
  .battles-player-values,
  .battles-trend-block {
    display: none;
  }

  .battles-player-filter-button {
    display: block;
    width: 100%;
    font-size: 0.84rem;
    line-height: 1.04;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .battles-compact-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    min-height: 0.96rem;
  }

  .battles-compact-status-label {
    min-width: 0;
    font-size: 0.62rem;
    gap: 0.16rem;
  }

  .battles-compact-status-label .battles-trend-icon svg {
    width: 0.72rem;
    height: 0.72rem;
  }

  .battles-compact-status-values {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.16rem;
    margin-left: auto;
  }

  .battles-inline-pill--compact {
    min-height: 0.92rem;
    padding: 0.04rem 0.24rem;
    font-size: 0.56rem;
    gap: 0.16rem;
  }

  .battles-leaderboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.04rem;
    padding-top: 0.22rem;
    border-top: 1px solid rgba(15, 63, 112, 0.08);
  }

  .battles-leaderboard-stat-grid .battles-metric-block {
    min-height: 2.24rem;
    padding: 0 0.2rem;
    border: 0;
    border-radius: 0;
    background: none;
    align-content: start;
  }

  .battles-leaderboard-stat-grid .battles-metric-block + .battles-metric-block {
    padding-left: 0.34rem;
    border-left: 1px solid rgba(15, 63, 112, 0.08);
  }

  .battles-metric-block {
    gap: 0.04rem;
  }

  .battles-metric-block strong {
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .battles-metric-block small,
  .battles-sleep-state {
    font-size: 0.62rem;
    line-height: 1.05;
  }

  .battles-metric-block small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .battles-metric-label {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .battles-sleep-state {
    gap: 0;
  }

  .battles-sleep-state svg {
    display: none;
  }

  .battles-metric-value-full,
  .battles-metric-caption-full {
    display: none;
  }

  .battles-metric-value-compact,
  .battles-metric-caption-compact {
    display: inline;
  }

  .battles-trend-icon svg,
  .battles-feed-tier-icon svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .battles-feed-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.18rem 0.55rem;
    padding: 0.48rem 0.58rem;
  }

  .battles-feed-row-badge {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .battles-feed-row-player {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .battles-feed-row > time {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: start;
  }

  .battles-feed-row-meta {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    text-align: left;
  }

  .battles-feed-row-player h3 {
    font-size: 0.82rem;
  }

  .battles-feed-row-player p,
  .battles-feed-row-meta,
  .battles-feed-row > time {
    font-size: 0.7rem;
    line-height: 1.24;
  }

  .battles-feed-tier-badge {
    min-height: 1.28rem;
    padding: 0.16rem 0.42rem;
  }

  .battles-timeline-board {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: 0.6rem;
  }

  .battles-timeline-player-card {
    padding: 0.4rem 0.54rem;
  }

  .battles-timeline-player-meta {
    gap: 0.35rem;
  }

  .battles-timeline-detail-head,
  .battles-bucket-toolbar-head {
    flex-direction: column;
  }

  .battles-timeline-detail-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .battles-buckets-layout {
    grid-template-columns: repeat(var(--battles-bucket-columns-640, 2), minmax(0, 1fr));
  }

  .battles-week-card,
  .battles-refresh-card,
  .battles-board-surface,
  .battles-feed-surface,
  .battles-timeline-surface,
  .battles-timeline-detail,
  .battles-bucket-surface,
  .battles-empty-state {
    padding: 0.85rem;
  }

  .battles-surface-head {
    flex-direction: column;
  }

  .battles-surface-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .battles-bucket-toolbar-actions,
  .battles-bucket-surface-actions {
    width: 100%;
    justify-content: space-between;
  }

  .battles-bucket-toolbar {
    padding: 0.98rem;
  }

  .battles-bucket-player-popover {
    width: min(17rem, calc(100vw - 2rem));
  }

  .battles-week-card-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .battles-timeline-board {
    grid-template-columns: minmax(170px, 190px) minmax(0, 1fr);
    gap: 0.55rem;
  }

  .battles-timeline-presets,
  .battles-timeline-marker-row,
  .battles-timeline-zoom-row,
  .battles-timeline-player-meta {
    gap: 0.32rem;
  }

  .battles-timeline-marker-separator {
    display: none;
  }

  .battles-timeline-range-button,
  .battles-timeline-zoom-button,
  .battles-timeline-timezone-badge {
    padding-inline: 0.58rem;
  }

  .battles-timeline-player-head strong {
    font-size: 0.84rem;
  }

  .battles-timeline-meta-chip {
    font-size: 0.68rem;
    padding-inline: 0.42rem;
  }

  .battles-leaderboard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    align-items: start;
  }

  .battles-leaderboard-row {
    gap: 0.22rem;
    padding: 0.5rem;
  }

  .battles-rank-pill {
    top: 0.5rem;
    left: 0.5rem;
    min-width: 1.98rem;
    min-height: 1.56rem;
    font-size: 0.78rem;
  }

  .battles-rank-pill.is-podium {
    min-width: 1.92rem;
  }

  .battles-player-filter-button {
    font-size: 0.77rem;
  }

  .battles-leaderboard-summary {
    min-height: 1.44rem;
    padding-left: 2.18rem;
  }

  .battles-compact-status-row {
    gap: 0.22rem;
    min-height: 0.9rem;
  }

  .battles-compact-status-label {
    font-size: 0.58rem;
  }

  .battles-compact-status-label .battles-trend-icon svg {
    width: 0.66rem;
    height: 0.66rem;
  }

  .battles-inline-pill--compact {
    min-height: 0.84rem;
    font-size: 0.52rem;
    padding-inline: 0.2rem;
  }

  .battles-leaderboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0.18rem;
  }

  .battles-leaderboard-stat-grid .battles-metric-block {
    min-height: 2.08rem;
    padding: 0 0.12rem;
  }

  .battles-leaderboard-stat-grid .battles-metric-block + .battles-metric-block {
    padding-left: 0.24rem;
  }

  .battles-metric-block strong {
    font-size: 0.72rem;
  }

  .battles-metric-block small,
  .battles-sleep-state {
    font-size: 0.56rem;
  }

  .battles-metric-label {
    font-size: 0.46rem;
  }

  .battles-collapsed-copy {
    font-size: 0.78rem;
  }
}

@media (max-width: 460px) {
  .battles-buckets-layout {
    grid-template-columns: repeat(var(--battles-bucket-columns-460, 1), minmax(0, 1fr));
  }

  .battles-bucket-popover-head {
    flex-direction: column;
  }

  .battles-bucket-popover-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.live-refresh-status-primary {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-950);
}

.live-refresh-status-secondary {
  font-size: 0.73rem;
  line-height: 1.45;
  color: rgba(18, 33, 53, 0.74);
}

.map-completionist-summary-strip {
  margin-bottom: 0.44rem;
  padding: 0.58rem 0.7rem;
}

.map-completionist-summary-strip .live-refresh-status-primary {
  font-size: 0.88rem;
}

.map-completionist-summary-strip .live-refresh-status-secondary {
  max-width: 32rem;
}

.completionist-dismiss-restore {
  flex: 0 0 auto;
  white-space: nowrap;
}

.map-completionist-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.75rem, 10.5rem);
  grid-template-areas:
    'search sort'
    'filters filters';
  align-items: end;
  gap: 0.44rem;
  margin-bottom: 0.48rem;
}

.completionist-search-control,
.completionist-sort-control {
  min-width: 0;
}

.completionist-search-control {
  grid-area: search;
}

.completionist-sort-control {
  grid-area: sort;
  width: min(100%, 10.5rem);
  justify-self: end;
}

.completionist-search-control input,
.custom-type-search-control input {
  min-height: 1.96rem;
  padding: 0.34rem 0.56rem;
  border-radius: 11px;
  font-size: 0.82rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.08), transparent 44%);
  border-color: rgba(20, 45, 70, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.completionist-sort-control select {
  min-height: 1.96rem;
  padding: 0.34rem 0.56rem;
  border-radius: 11px;
  font-size: 0.82rem;
}

.custom-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 13.5rem);
  grid-template-areas:
    'picker presets'
    'filters filters';
}

.custom-type-picker {
  grid-area: picker;
  display: grid;
  gap: 0.38rem;
  align-self: start;
  min-width: 0;
}

.custom-type-search-control {
  min-width: 0;
}

.custom-preset-control-group {
  grid-area: presets;
  display: grid;
  gap: 0.38rem;
  align-self: start;
  min-width: 0;
}

.custom-preset-control {
  min-width: 0;
}

.custom-preset-save-button {
  justify-self: stretch;
  min-height: 1.96rem;
}

.custom-type-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.custom-type-chip-row:empty,
.custom-type-suggestion-list:empty {
  display: none;
}

.custom-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.86rem;
  padding: 0.12rem 0.18rem 0.12rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 112, 0.16);
  background:
    linear-gradient(180deg, rgba(237, 246, 255, 0.98), rgba(227, 239, 251, 0.92)),
    radial-gradient(circle at top right, rgba(22, 131, 146, 0.1), transparent 52%);
  box-shadow: 0 10px 20px rgba(15, 43, 64, 0.08);
}

.custom-type-chip-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f3f70;
}

.custom-type-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.18rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.12);
  color: rgba(15, 63, 112, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
}

.custom-type-chip-remove {
  appearance: none;
  width: 1.42rem;
  height: 1.42rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.1);
  color: #0f3f70;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.custom-type-chip-remove:hover,
.custom-type-chip-remove:focus-visible {
  transform: translateY(-1px);
  background: rgba(15, 63, 112, 0.18);
  box-shadow: 0 8px 16px rgba(15, 43, 64, 0.12);
}

.custom-type-suggestion-list {
  display: grid;
  gap: 0.34rem;
}

.custom-type-suggestion-button,
.custom-type-suggestion-empty {
  width: 100%;
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(15, 43, 64, 0.08);
}

.custom-type-suggestion-button {
  padding: 0.72rem 0.84rem;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.custom-type-suggestion-button:hover,
.custom-type-suggestion-button:focus-visible,
.custom-type-suggestion-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.26);
  background: rgba(241, 248, 255, 0.96);
  box-shadow: 0 16px 30px rgba(15, 43, 64, 0.12);
}

.custom-type-suggestion-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f3f70;
}

.custom-type-suggestion-meta,
.custom-type-suggestion-empty {
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
}

.custom-type-suggestion-meta {
  margin-top: 0.22rem;
  color: rgba(65, 96, 125, 0.8);
}

.custom-type-suggestion-empty {
  padding: 0.74rem 0.84rem;
  color: rgba(65, 96, 125, 0.82);
}

.custom-map-panel .leaflet-map {
  min-height: 360px;
  height: min(58vh, 720px);
}

.completionist-filter-bar {
  display: flex;
  flex-wrap: wrap;
  grid-area: filters;
  align-items: center;
  justify-content: flex-start;
  gap: 0.34rem;
}

.completionist-filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.72rem;
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(18, 33, 53, 0.82);
  font: inherit;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.completionist-filter-chip:hover,
.completionist-filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.24);
  box-shadow: 0 10px 20px rgba(15, 43, 64, 0.08);
}

.completionist-filter-chip.is-active {
  border-color: rgba(15, 63, 112, 0.28);
  background: linear-gradient(180deg, rgba(15, 63, 112, 0.16), rgba(15, 63, 112, 0.08));
  color: #0f3f70;
}

.completionist-filter-chip[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.completionist-filter-chip-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.completionist-filter-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  min-height: 1.18rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font-size: 0.63rem;
  font-weight: 800;
}

.coverage-mode-filter {
  display: flex;
  flex: 1 1 16.5rem;
  flex-direction: column;
  gap: 0.34rem;
  min-width: min(100%, 16.5rem);
  max-width: 19rem;
  padding: 0.42rem 0.46rem 0.46rem;
  border: 1px solid rgba(20, 45, 70, 0.12);
  border-radius: 0.98rem;
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.9), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.coverage-mode-filter-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.coverage-mode-filter-title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 34, 59, 0.76);
}

.coverage-mode-filter-caption {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(46, 79, 112, 0.74);
}

.coverage-mode-filter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.coverage-mode-filter-option {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-height: 2.44rem;
  padding: 0.28rem 0.32rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(20, 45, 70, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(19, 39, 63, 0.78);
  font: inherit;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.coverage-mode-filter-option:hover,
.coverage-mode-filter-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 63, 112, 0.24);
  box-shadow: 0 10px 20px rgba(15, 43, 64, 0.08);
}

.coverage-mode-filter-option.is-active {
  border-color: rgba(15, 63, 112, 0.3);
  background: linear-gradient(180deg, rgba(15, 63, 112, 0.18), rgba(15, 63, 112, 0.08));
  color: #0f3f70;
}

.coverage-mode-filter-option[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.coverage-mode-filter-option-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.coverage-mode-filter-option-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
}

.map-drill-nav-shell {
  margin-bottom: 0.52rem;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0.14rem 0;
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 60%, rgba(245, 250, 255, 0) 100%);
}

.map-drill-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.map-drill-nav-crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.map-drill-nav-button {
  border: 1px solid rgba(20, 45, 70, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-900);
  border-radius: 999px;
  min-height: 1.9rem;
  padding: 0.2rem 0.62rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.map-drill-nav-button.is-back {
  border-color: rgba(15, 63, 112, 0.35);
  background: rgba(230, 241, 255, 0.9);
}

.map-drill-nav-button:hover,
.map-drill-nav-button:focus-visible {
  border-color: rgba(15, 63, 112, 0.56);
  background: rgba(236, 243, 255, 0.9);
}

.map-drill-nav-button.is-current {
  border-color: rgba(15, 63, 112, 0.48);
  background: rgba(234, 242, 254, 0.95);
  color: #0d3f6d;
  cursor: default;
}

.map-drill-nav-divider {
  color: rgba(18, 33, 53, 0.54);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.completion-progress-list {
  min-height: 0;
  will-change: transform, opacity;
}

.completion-progress-list.is-drill-anim-forward {
  animation: map-drill-slide-forward 220ms ease;
}

.completion-progress-list.is-drill-anim-backward {
  animation: map-drill-slide-backward 220ms ease;
}

@keyframes map-drill-slide-forward {
  from {
    opacity: 0.3;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes map-drill-slide-backward {
  from {
    opacity: 0.3;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.section-head h3 {
  font-size: 1.5rem;
}

.panel-kpi-line {
  margin: 0 0 0.7rem;
  color: rgba(18, 33, 53, 0.76);
  font-size: 0.92rem;
}

.leaflet-map {
  min-height: 360px;
  height: min(70vh, 560px);
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  overflow: hidden;
}

.map-legend {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.2rem 0.7rem 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.map-legend-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.map-code-label-marker,
.map-code-label {
  pointer-events: none;
}

.map-code-label {
  display: inline-block;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  border-radius: 5px;
  border: 1px solid rgba(20, 45, 70, 0.2);
  padding: 0.1rem 0.28rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: rgba(18, 33, 53, 0.6);
  background: rgba(255, 255, 255, 0.74);
}

.completionist-flight-list {
  flex: 1 1 auto;
  min-height: 0;
  border-top: 1px solid rgba(20, 45, 70, 0.11);
  padding-top: 0.28rem;
}

.completionist-flight-row {
  position: relative;
  overflow: hidden;
  --completionist-card-accent: rgba(15, 63, 112, 0.82);
  --completionist-card-surface: rgba(234, 241, 251, 0.6);
  --completionist-card-border: rgba(15, 63, 112, 0.12);
  --completionist-card-shadow: rgba(15, 43, 64, 0.08);
  border: 1px solid var(--completionist-card-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92)),
    var(--completionist-card-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px var(--completionist-card-shadow);
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.completionist-flight-row + .completionist-flight-row {
  margin-top: 0.24rem;
}

.completionist-flight-row--airport {
  --completionist-card-accent: rgba(201, 106, 40, 0.92);
  --completionist-card-surface: rgba(236, 127, 53, 0.14);
  --completionist-card-border: rgba(201, 106, 40, 0.18);
}

.completionist-flight-row--card {
  --completionist-card-accent: rgba(22, 131, 146, 0.94);
  --completionist-card-surface: rgba(22, 131, 146, 0.13);
  --completionist-card-border: rgba(22, 131, 146, 0.18);
}

.completionist-flight-row--both {
  --completionist-card-accent: rgba(15, 63, 112, 0.9);
  --completionist-card-surface: rgba(15, 63, 112, 0.12);
  --completionist-card-border: rgba(15, 63, 112, 0.18);
}

.completionist-flight-button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.62rem 0.72rem 0.34rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transition:
    color 150ms ease;
  scroll-margin-top: 1rem;
}

.completionist-flight-button::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--completionist-card-accent), rgba(22, 131, 146, 0.78));
  opacity: 0.9;
}

.completionist-flight-row:hover,
.completionist-flight-row:focus-within {
  border-color: rgba(15, 63, 112, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 30px rgba(15, 43, 64, 0.12);
  transform: translateX(2px) translateY(-1px);
}

.completionist-flight-row.is-selected {
  border-color: rgba(15, 63, 112, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    linear-gradient(180deg, rgba(15, 63, 112, 0.1), rgba(15, 63, 112, 0.04));
  box-shadow:
    inset 0 0 0 1px rgba(15, 63, 112, 0.08),
    0 18px 32px rgba(15, 43, 64, 0.14);
}

.completionist-flight-row.is-selected::before {
  content: '';
  position: absolute;
  top: 0.74rem;
  bottom: 0.74rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--completionist-card-accent), rgba(22, 131, 146, 0.82));
}

.completionist-flight-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.48rem;
  margin-bottom: 0.12rem;
}

.completionist-flight-topline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  flex: 0 0 auto;
}

.completionist-flight-selection-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.22rem;
  padding: 0.06rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.12);
  color: #0f3f70;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.completionist-flight-selection-tag.is-muted {
  background: rgba(18, 33, 53, 0.06);
  color: rgba(18, 33, 53, 0.56);
}

.completionist-flight-selection-tag.is-airport {
  background: rgba(236, 127, 53, 0.16);
  color: #9d4e1f;
}

.completionist-flight-selection-tag.is-card {
  background: rgba(22, 131, 146, 0.16);
  color: #0f6872;
}

.completionist-flight-selection-tag.is-both {
  background: rgba(15, 63, 112, 0.14);
  color: #0f3f70;
}

.completionist-flight-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.completionist-flight-registration,
.completionist-flight-age {
  color: rgba(18, 33, 53, 0.66);
}

.completionist-flight-registration {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.26;
}

.completionist-flight-age {
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.completionist-flight-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0.54rem 0 0.5rem;
}

.completionist-flight-chip-row:empty {
  display: none;
}

.completionist-flight-chip-row--inline {
  margin: 0;
}

.completionist-flight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.54rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.14);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.completionist-flight-chip.is-airport {
  background: rgba(236, 127, 53, 0.14);
  color: #9d4e1f;
}

.completionist-flight-chip.is-card {
  background: rgba(22, 131, 146, 0.13);
  color: #0f6872;
}

.completionist-route {
  display: grid;
  gap: 0.24rem;
  margin-top: 0.34rem;
  padding: 0.4rem 0.48rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 45, 70, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.completionist-route.is-compact {
  margin-top: 0.18rem;
  padding: 0.42rem 0.48rem;
  gap: 0.24rem;
}

.completionist-route-codes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.28rem;
}

.completionist-route-code {
  font-size: 0.79rem;
  color: rgba(18, 33, 53, 0.92);
}

.completionist-route-code--destination {
  text-align: right;
}

.completionist-route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  color: rgba(15, 63, 112, 0.72);
}

.completionist-route-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(15, 43, 64, 0.18));
}

.completionist-route-icon-fallback {
  display: none;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.completionist-route-icon.is-fallback .completionist-route-icon-fallback {
  display: inline;
}

.completionist-route-icon.is-fallback .completionist-route-icon-image {
  display: none;
}

.completionist-route-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
}

.completionist-route-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.68rem;
  line-height: 1.22;
  color: rgba(18, 33, 53, 0.66);
}

.completionist-route-name--destination {
  text-align: right;
}

.completionist-flight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  justify-content: flex-start;
  margin-top: 0;
  padding: 0 0.72rem 0.66rem;
}

.completionist-flight-link,
.completionist-flight-dismiss,
.completionist-popup-link,
.completionist-popup-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.54rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.completionist-flight-link {
  background: rgba(15, 63, 112, 0.08);
  color: #0f3f70;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.completionist-flight-link:hover,
.completionist-flight-link:focus-visible {
  background: rgba(15, 63, 112, 0.14);
  color: #0c345b;
  transform: translateY(-1px);
}

.completionist-flight-dismiss {
  border: 1px solid rgba(20, 45, 70, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(18, 33, 53, 0.86);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.completionist-flight-dismiss:hover,
.completionist-flight-dismiss:focus-visible {
  transform: translateY(-1px);
}

.completionist-flight-dismiss--airport {
  border-color: rgba(201, 106, 40, 0.18);
  background: rgba(236, 127, 53, 0.12);
  color: #9d4e1f;
}

.completionist-flight-dismiss--airport:hover,
.completionist-flight-dismiss--airport:focus-visible {
  border-color: rgba(201, 106, 40, 0.32);
  background: rgba(236, 127, 53, 0.18);
}

.completionist-flight-dismiss--card {
  border-color: rgba(22, 131, 146, 0.18);
  background: rgba(22, 131, 146, 0.12);
  color: #0f6872;
}

.completionist-flight-dismiss--card:hover,
.completionist-flight-dismiss--card:focus-visible {
  border-color: rgba(22, 131, 146, 0.32);
  background: rgba(22, 131, 146, 0.18);
}

.completionist-flight-dismiss--snooze {
  border-color: rgba(128, 86, 196, 0.18);
  background: rgba(128, 86, 196, 0.12);
  color: #5d3a95;
}

.completionist-flight-dismiss--snooze:hover,
.completionist-flight-dismiss--snooze:focus-visible {
  border-color: rgba(128, 86, 196, 0.34);
  background: rgba(128, 86, 196, 0.18);
}

.completionist-flight-marker-shell {
  background: transparent;
  border: 0;
}

.completionist-flight-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--completionist-marker-size, 24px);
  height: var(--completionist-marker-size, 24px);
  overflow: visible;
  transition: transform 150ms ease;
}

.completionist-flight-marker::before {
  content: '';
  position: absolute;
  inset: var(--completionist-marker-ring-inset, 5px);
  border-radius: 999px;
  border: 2px solid rgba(15, 63, 112, 0.24);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 20px rgba(15, 43, 64, 0.16);
  opacity: 0;
  transition: opacity 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.completionist-flight-marker.is-selected {
  transform: translateY(-1px) scale(1.06);
}

.completionist-flight-marker.is-selected::before {
  opacity: 1;
  border-color: rgba(15, 63, 112, 0.58);
  box-shadow: 0 14px 24px rgba(15, 43, 64, 0.22);
}

.completionist-flight-marker img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(15, 43, 64, 0.22));
  transition: transform 150ms ease, filter 150ms ease;
}

.completionist-flight-marker.is-selected img {
  filter: drop-shadow(0 12px 16px rgba(15, 43, 64, 0.28));
}

.completionist-flight-marker-fallback {
  display: none;
  position: absolute;
  inset: var(--completionist-marker-fallback-inset, 5px);
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.18);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(225, 236, 248, 0.92));
  font-size: max(0.44rem, calc(var(--completionist-marker-size, 24px) * 0.16));
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(18, 33, 53, 0.72);
}

.completionist-flight-marker.is-fallback .completionist-flight-marker-fallback {
  display: grid;
}

.completionist-destination-marker-shell {
  background: transparent;
  border: 0;
}

.completionist-destination-marker {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(236, 127, 53, 0.16);
  border: 2px solid rgba(201, 106, 40, 0.92);
  box-shadow: 0 10px 18px rgba(15, 43, 64, 0.18);
}

.completionist-destination-marker::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #ec7f35;
}

.completionist-destination-marker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(201, 106, 40, 0.24);
}

.completionist-popup {
  display: grid;
  gap: 0.42rem;
  min-width: 240px;
}

.completionist-popup-shell .leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(15, 43, 64, 0.18);
}

.completionist-popup-shell .leaflet-popup-content {
  margin: 0;
  padding: 0.76rem 0.82rem 0.82rem;
}

.completionist-popup-shell .leaflet-popup-tip-container {
  margin-top: -1px;
}

.completionist-popup-shell .leaflet-popup-close-button {
  color: rgba(18, 33, 53, 0.58);
  padding: 0.38rem 0.42rem 0 0;
}

.completionist-popup-shell .leaflet-popup-close-button:hover,
.completionist-popup-shell .leaflet-popup-close-button:focus-visible {
  color: var(--ink-900);
}

.completionist-popup-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.completionist-popup-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.completionist-popup-registration {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(18, 33, 53, 0.66);
}

.completionist-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.completionist-popup-link {
  background: rgba(15, 63, 112, 0.08);
  color: #0f3f70;
  text-decoration: none;
}

.kpi-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.75);
}

.kpi-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.kpi-value {
  display: block;
  margin-top: 0.32rem;
  font-size: 1.5rem;
}

.kpi-note {
  display: block;
  margin-top: 0.2rem;
  color: rgba(18, 33, 53, 0.66);
  font-size: 0.82rem;
}

.aircraft-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.aircraft-side {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.aircraft-side > .panel {
  min-height: 0;
}

.daily-layout {
  display: block;
}

.daily-unified-panel {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.daily-hero-summary,
.daily-feedback {
  margin: 0;
  color: rgba(18, 33, 53, 0.78);
  line-height: 1.35;
}

.daily-hero-summary {
  max-width: 64ch;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(223, 238, 251, 0.8);
}

.daily-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.24rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 232, 247, 0.18);
  background: rgba(239, 247, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(234, 244, 255, 0.86);
}

.daily-feedback::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  opacity: 0.82;
}

.daily-feedback.is-success {
  color: #c7f7dd;
}

.daily-feedback.is-warning {
  color: #ffd5a3;
}

.daily-feedback.is-muted {
  color: rgba(229, 239, 250, 0.72);
}

.daily-meta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
  align-content: start;
}

.daily-meta-stack {
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.daily-meta-disclosure {
  margin: 0;
  padding-inline: 0.14rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(223, 238, 251, 0.68);
}

.daily-meta-chip {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.14rem;
  min-height: 4.2rem;
  padding: 0.62rem 0.76rem 0.68rem;
  border: 1px solid rgba(210, 232, 247, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(245, 251, 255, 0.12), rgba(217, 235, 247, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
}

.daily-meta-chip.is-celebrating {
  border-color: rgba(255, 231, 176, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 225, 172, 0.26), transparent 54%),
    rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(5, 18, 30, 0.2);
  animation: daily-stat-burst 880ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.daily-meta-chip.is-celebrating::before {
  content: '';
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(255, 231, 176, 0), rgba(255, 231, 176, 0.34), rgba(255, 231, 176, 0));
  animation: daily-stat-ring 960ms ease-out both;
  pointer-events: none;
}

.daily-meta-chip-label {
  display: block;
  width: 100%;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 238, 251, 0.62);
}

.daily-meta-chip-value {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: #f5fbff;
}

.daily-meta-chip.is-celebrating .daily-meta-chip-value {
  animation: daily-stat-value-bloom 820ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.daily-meta-chip-note {
  display: block;
  width: 100%;
  min-height: 1.05rem;
  font-size: 0.64rem;
  line-height: 1.24;
  color: rgba(223, 238, 251, 0.7);
}

.daily-meta-chip-note.is-empty {
  opacity: 0;
}

.daily-meta-chip.is-live {
  border-color: rgba(139, 212, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(139, 212, 255, 0.18), rgba(217, 235, 247, 0.04)),
    rgba(255, 255, 255, 0.08);
}

.daily-meta-chip.is-reset {
  border-color: rgba(248, 208, 150, 0.28);
  background:
    linear-gradient(160deg, rgba(248, 208, 150, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
}

.daily-meta-chip.is-hit {
  border-color: rgba(148, 255, 210, 0.3);
  background:
    linear-gradient(160deg, rgba(148, 255, 210, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
}

.daily-meta-chip.is-miss {
  border-color: rgba(255, 189, 189, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 189, 189, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
}

.daily-meta-chip.is-ready {
  border-color: rgba(255, 226, 166, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 226, 166, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
}

.daily-command-deck {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.86rem;
  padding: clamp(1rem, 1.9vw, 1.28rem);
  border: 1px solid rgba(13, 47, 76, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(129, 228, 214, 0.22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(247, 192, 128, 0.22), transparent 20%),
    linear-gradient(135deg, rgba(8, 35, 58, 0.98), rgba(16, 62, 93, 0.96));
  box-shadow: 0 26px 56px rgba(8, 27, 44, 0.2);
}

.daily-command-deck.is-victorious {
  border-color: rgba(255, 223, 176, 0.38);
  box-shadow:
    0 30px 70px rgba(8, 27, 44, 0.24),
    0 0 0 1px rgba(255, 223, 176, 0.18);
  animation: daily-deck-victory 1.2s cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.daily-command-deck::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.daily-command-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 23rem);
  gap: 0.62rem 0.9rem;
  align-items: start;
}

.daily-command-title-row {
  display: grid;
  gap: 0.68rem;
  align-content: start;
  justify-items: start;
}

.daily-command-title-copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.daily-command-title-copy h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #f7fbff;
  text-shadow: 0 10px 22px rgba(7, 25, 41, 0.28);
}

.daily-copy-button {
  display: inline-grid;
  justify-items: center;
  align-items: center;
  gap: 0.22rem;
  min-width: 10.8rem;
  min-height: 3.35rem;
  width: fit-content;
  padding: 0.62rem 0.94rem 0.68rem;
  border-radius: 16px;
  border-color: rgba(210, 232, 247, 0.18);
  color: #f5fbff;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.daily-copy-button:hover,
.daily-copy-button:focus-visible {
  border-color: rgba(173, 220, 248, 0.52);
  background: rgba(255, 255, 255, 0.16);
}

.daily-copy-button-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-copy-button-note {
  display: block;
  font-size: 0.66rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: rgba(223, 238, 251, 0.78);
}

.daily-copy-button.is-victory {
  border-color: rgba(255, 222, 166, 0.52);
  background:
    linear-gradient(145deg, rgba(255, 190, 109, 0.32), rgba(255, 123, 74, 0.16)),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(255, 131, 86, 0.14);
}

.daily-copy-button.is-victory .daily-copy-button-note {
  color: rgba(255, 245, 227, 0.84);
}

.daily-copy-button.is-victory.is-celebrating {
  animation: daily-copy-bloom 920ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.daily-copy-button.is-copied {
  border-color: rgba(173, 255, 208, 0.48);
  background:
    linear-gradient(145deg, rgba(100, 208, 156, 0.3), rgba(54, 139, 111, 0.14)),
    rgba(255, 255, 255, 0.12);
}

.daily-copy-button.is-error {
  border-color: rgba(255, 214, 160, 0.52);
  background:
    linear-gradient(145deg, rgba(255, 194, 129, 0.28), rgba(184, 88, 58, 0.16)),
    rgba(255, 255, 255, 0.1);
}

.daily-copy-button.is-loss {
  border-color: rgba(198, 225, 245, 0.24);
  background:
    linear-gradient(145deg, rgba(117, 163, 198, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.daily-command-deck::before {
  background-image:
    linear-gradient(rgba(226, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.4));
}

.daily-command-deck.is-victorious::before {
  background-image:
    radial-gradient(circle at 18% 26%, rgba(255, 225, 175, 0.2), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(255, 132, 88, 0.18), transparent 20%),
    linear-gradient(rgba(255, 243, 219, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 219, 0.09) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px, 26px 26px;
  animation: daily-victory-shimmer 1.1s ease-out both;
}

.daily-command-deck::after {
  content: '';
  position: absolute;
  inset: -42% auto -42% 68%;
  width: 42%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(168, 255, 236, 0), rgba(168, 255, 236, 0.28), rgba(168, 255, 236, 0));
  opacity: 0.45;
  animation: daily-radar-sweep 8s linear infinite;
  pointer-events: none;
}

.daily-command-surface,
.daily-command-strip {
  position: relative;
  z-index: 1;
}

.daily-command-surface {
  display: grid;
  gap: 0.72rem;
}

.daily-command-strip {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.daily-command-strip > * {
  min-width: 0;
}

.daily-guess-form {
  --daily-command-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.56rem;
  align-items: end;
}

.daily-guess-field {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
}

.daily-guess-field-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 237, 251, 0.78);
}

.daily-guess-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-radius: var(--daily-command-radius);
}

.daily-guess-input-wrap:focus-within {
  box-shadow:
    0 0 0 2px rgba(248, 208, 150, 0.92),
    0 0 0 5px rgba(248, 208, 150, 0.22);
}

.daily-guess-field-icon {
  position: absolute;
  right: 1.24rem;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 1.12rem;
  height: 1.12rem;
  color: rgba(15, 63, 112, 0.84);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.daily-guess-field-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-guess-field input {
  appearance: none;
  -webkit-appearance: none;
  height: 3.9rem;
  width: 100%;
  border-radius: var(--daily-command-radius);
  border: 1px solid rgba(198, 225, 245, 0.56);
  padding: 0 3.55rem 0 1.22rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-950);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 36px rgba(8, 27, 44, 0.18);
}

.daily-guess-field input:focus-visible {
  outline: none;
}

.daily-guess-field input::-webkit-search-decoration,
.daily-guess-field input::-webkit-search-cancel-button,
.daily-guess-field input::-webkit-search-results-button,
.daily-guess-field input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.daily-guess-field input::placeholder {
  color: rgba(65, 96, 125, 0.72);
}

.daily-suggestion-list {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: 1fr;
}

.daily-suggestion-list:empty {
  display: none;
}

.daily-suggestion-button {
  width: 100%;
  border: 1px solid rgba(211, 232, 247, 0.2);
  border-radius: 18px;
  padding: 0.84rem 0.92rem;
  background: rgba(250, 253, 255, 0.14);
  color: #f2f8ff;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.daily-suggestion-button:hover,
.daily-suggestion-button:focus-visible,
.daily-suggestion-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(173, 220, 248, 0.52);
  background: rgba(252, 254, 255, 0.22);
  box-shadow: 0 16px 30px rgba(8, 27, 44, 0.18);
}

.daily-suggestion-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f2f8ff;
}

.daily-suggestion-meta {
  display: block;
  margin-top: 0.26rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(223, 238, 251, 0.76);
}

.daily-briefing-deck {
  display: grid;
  gap: 0.68rem;
}

.daily-briefing-card,
.daily-radar-card,
.daily-hint-card,
.daily-answer-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.daily-briefing-card {
  display: grid;
  gap: 0.54rem;
  padding: 0.76rem 0.88rem;
  border: 1px solid rgba(210, 232, 247, 0.18);
  background:
    linear-gradient(145deg, rgba(245, 251, 255, 0.14), rgba(217, 235, 247, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.daily-briefing-card::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.45;
}

.daily-briefing-card.is-warning {
  border-color: rgba(248, 208, 150, 0.26);
  background:
    radial-gradient(circle at right top, rgba(248, 208, 150, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.08);
}

.daily-briefing-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.daily-briefing-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.daily-briefing-note,
.daily-hint-note,
.daily-source-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.42;
  color: rgba(223, 238, 251, 0.78);
}

.daily-widget-head {
  flex-wrap: wrap;
  display: flex;
  align-items: baseline;
  gap: 0.32rem;
}

.daily-widget-kicker,
.daily-radar-label,
.daily-micro-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 238, 251, 0.72);
}

.daily-widget-value,
.daily-radar-value,
.daily-micro-value {
  color: #f5fbff;
}

.daily-widget-value {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.daily-widget-note {
  font-size: 0.72rem;
  color: rgba(223, 238, 251, 0.72);
}

.daily-runway-lights {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.28rem;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.daily-runway-light {
  box-sizing: border-box;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(217, 233, 247, 0.18);
  box-shadow: inset 0 0 0 1px rgba(217, 233, 247, 0.08);
}

.daily-runway-light.is-spent {
  background: rgba(248, 208, 150, 0.62);
  box-shadow:
    0 0 14px rgba(248, 208, 150, 0.34),
    inset 0 0 0 1px rgba(255, 243, 223, 0.34);
}

.daily-runway-light.is-active {
  background: rgba(148, 255, 210, 0.08);
  box-shadow:
    0 0 0 2px rgba(148, 255, 210, 0.88),
    0 0 16px rgba(129, 255, 206, 0.28);
}

.daily-briefing-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.32rem 0.8rem;
}

.daily-source-note {
  color: rgba(223, 238, 251, 0.66);
}

.daily-briefing-foot .daily-hint-note {
  color: #f4fbff;
}

.daily-source-note a {
  color: #f5c68f;
  text-decoration-thickness: 1px;
}

.daily-intel-card {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 1.85rem;
  padding: 0.14rem 0.62rem;
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.daily-intel-card-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.daily-intel-card-value {
  color: var(--ink-900);
  font-size: 0.78rem;
  line-height: 1.35;
}

.daily-radar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  min-height: 100%;
  padding: 0.86rem 0.9rem;
  border: 1px solid rgba(210, 232, 247, 0.18);
  background:
    radial-gradient(circle at center, rgba(148, 255, 210, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.08);
}

.daily-radar-scope {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(210, 232, 247, 0.22);
  background:
    radial-gradient(circle at center, rgba(148, 255, 210, 0.16), transparent 46%),
    rgba(3, 20, 35, 0.2);
}

.daily-radar-scope::before,
.daily-radar-scope::after {
  content: '';
  position: absolute;
  inset: 0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(210, 232, 247, 0.16);
}

.daily-radar-scope::after {
  inset: 1.5rem;
}

.daily-radar-sweep {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(168, 255, 236, 0), rgba(168, 255, 236, 0.28), rgba(168, 255, 236, 0));
  opacity: 0.78;
  animation: daily-radar-sweep 6.4s linear infinite;
}

.daily-radar-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.daily-radar-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.daily-radar-note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(223, 238, 251, 0.76);
}

.daily-answer-facts {
  display: grid;
  gap: 0.55rem;
}

.daily-answer-fact {
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 15px;
  padding: 0.68rem 0.72rem;
  background: rgba(255, 255, 255, 0.8);
}

.daily-answer-fact.is-hints {
  display: grid;
  gap: 0.12rem;
}

.daily-answer-fact-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.daily-answer-fact-value {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink-900);
  font-size: 0.88rem;
  line-height: 1.45;
}

.daily-intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.daily-context-section .daily-intel-actions .region-action-button,
.daily-context-section .daily-intel-actions {
  align-items: center;
}

.daily-board {
  display: grid;
  gap: 0.86rem;
}

.daily-board-section {
  display: grid;
  gap: 0.58rem;
}

.daily-board-anchor {
  position: static;
}

.daily-board-meta {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.08);
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.58);
}

.daily-board-empty {
  padding: 0.94rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(15, 63, 112, 0.2);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  color: rgba(18, 33, 53, 0.68);
  font-weight: 700;
  line-height: 1.45;
}

.daily-board-stack {
  display: grid;
  gap: 0.74rem;
}

.daily-board-step {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.76rem;
  align-items: start;
}

.daily-board-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 0.3rem;
  padding-top: 0.08rem;
}

.daily-board-step-node {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.16);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 248, 0.9));
  box-shadow: 0 10px 24px rgba(15, 43, 64, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-900);
}

.daily-board-step.is-solved .daily-board-step-node {
  border-color: rgba(35, 131, 82, 0.28);
  background:
    linear-gradient(150deg, rgba(234, 252, 242, 0.96), rgba(220, 248, 231, 0.92));
  color: #145f3b;
}

.daily-board-step-line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 131, 146, 0.34), rgba(15, 63, 112, 0.12));
}

.daily-board-step-body {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0.46rem;
  overflow: visible;
}

.daily-guess-row {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 20px;
  padding: 0.92rem;
  background:
    radial-gradient(circle at right top, rgba(236, 127, 53, 0.09), transparent 30%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 252, 0.9));
  box-shadow: 0 12px 28px rgba(15, 43, 64, 0.08);
}

.daily-guess-row.is-solved {
  border-color: rgba(35, 131, 82, 0.26);
  box-shadow: 0 16px 34px rgba(28, 112, 71, 0.12);
}

.daily-guess-row.is-tracker {
  border-color: rgba(15, 63, 112, 0.2);
  background:
    radial-gradient(circle at right top, rgba(22, 131, 146, 0.13), transparent 32%),
    linear-gradient(155deg, rgba(251, 254, 255, 0.97), rgba(238, 245, 251, 0.94));
  box-shadow:
    0 20px 42px rgba(15, 43, 64, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
}

.daily-board-step.is-fresh .daily-guess-row {
  animation: daily-row-drop 520ms cubic-bezier(0.2, 0.84, 0.24, 1) both;
}

.daily-guess-transition {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.38rem 0.52rem;
  align-items: start;
  padding: 0 0.1rem 0 0.1rem;
}

.daily-guess-transition::before {
  display: none;
}

.daily-transition-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.46);
}

.daily-transition-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
}

.daily-transition-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.8rem;
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(18, 33, 53, 0.72);
}

.daily-transition-chip-label {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  background: rgba(18, 33, 53, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.daily-transition-chip-value {
  font-weight: 700;
  line-height: 1.2;
}

.daily-transition-chip.is-better {
  border-color: rgba(35, 131, 82, 0.28);
  background: rgba(220, 248, 231, 0.92);
  color: #145f3b;
}

.daily-transition-chip.is-better .daily-transition-chip-label {
  background: rgba(20, 95, 59, 0.12);
}

.daily-transition-chip.is-worse {
  border-color: rgba(156, 75, 75, 0.24);
  background: rgba(255, 232, 232, 0.9);
  color: #8b2f2f;
}

.daily-transition-chip.is-worse .daily-transition-chip-label {
  background: rgba(139, 47, 47, 0.12);
}

.daily-transition-chip.is-flat {
  border-color: rgba(20, 45, 70, 0.12);
  background: rgba(241, 245, 249, 0.9);
  color: rgba(18, 33, 53, 0.68);
}

.daily-transition-chip.is-flat .daily-transition-chip-label {
  background: rgba(18, 33, 53, 0.08);
}

.daily-guess-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.daily-guess-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.16rem;
  line-height: 0.98;
  color: var(--ink-950);
}

.daily-guess-subtitle,
.daily-guess-meta {
  margin: 0.16rem 0 0;
  color: rgba(18, 33, 53, 0.68);
  font-size: 0.76rem;
  line-height: 1.38;
}

.daily-guess-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.16rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.14);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.72);
}

.daily-guess-badge.is-solved {
  border-color: rgba(35, 131, 82, 0.32);
  background: rgba(220, 248, 231, 0.94);
  color: #145f3b;
}

.daily-guess-badge.is-tracker {
  border-color: rgba(15, 63, 112, 0.24);
  background: rgba(227, 239, 249, 0.94);
  color: #0f3f70;
}

.daily-guess-grid {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.44rem;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.daily-guess-tile {
  position: relative;
  overflow: visible;
  min-height: 102px;
  border-radius: 16px;
  padding: 0.68rem;
  border: 1px solid rgba(20, 45, 70, 0.12);
  display: grid;
  align-content: start;
  gap: 0.24rem;
  transform-origin: center;
  z-index: 0;
}

.daily-board-step.is-help-open {
  z-index: 12;
}

.daily-guess-tile:hover,
.daily-guess-tile:focus-within,
.daily-guess-tile.is-help-open {
  z-index: 16;
}

.daily-board-step.is-fresh .daily-guess-tile {
  animation: daily-tile-flip 420ms ease both;
  animation-delay: calc(var(--tile-index, 0) * 42ms + 110ms);
}

.daily-guess-tile.is-hit {
  border-color: rgba(35, 131, 82, 0.35);
  background: rgba(218, 249, 232, 0.92);
}

.daily-guess-tile.is-near {
  border-color: rgba(206, 126, 45, 0.34);
  background: rgba(255, 239, 214, 0.94);
}

.daily-guess-tile.is-miss {
  border-color: rgba(20, 45, 70, 0.14);
  background: rgba(241, 245, 249, 0.92);
}

.daily-guess-tile.is-pending {
  border-style: dashed;
  border-color: rgba(20, 45, 70, 0.18);
  background: rgba(245, 248, 251, 0.86);
}

.daily-guess-tile.is-tracker-tile {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.daily-tile-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.58);
}

.daily-tile-head {
  display: block;
  padding-right: 1.8rem;
}

.daily-tile-value {
  display: block;
  font-size: clamp(1.08rem, 0.5vw + 0.98rem, 1.42rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-950);
}

.daily-tile-value.is-pending {
  color: rgba(18, 33, 53, 0.42);
}

.daily-tile-value-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.34rem;
  padding-right: 1.4rem;
}

.daily-tile-meta {
  margin-top: auto;
  font-size: 0.7rem;
  line-height: 1.3;
  color: rgba(18, 33, 53, 0.64);
}

.daily-tile-indicator {
  margin-top: 0.04rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(18, 33, 53, 0.6);
}

.daily-tile-help {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 4;
  --daily-help-panel-shift: -4px;
}

.daily-tile-help[data-vertical-placement='up'] {
  --daily-help-panel-shift: 4px;
}

.daily-tile-help[open] {
  z-index: 18;
}

.daily-tile-help-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.28rem;
  height: 1.28rem;
  border: 1px solid rgba(20, 45, 70, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.daily-tile-help-toggle::-webkit-details-marker {
  display: none;
}

.daily-tile-help-toggle:hover,
.daily-tile-help-toggle:focus-visible {
  border-color: rgba(15, 63, 112, 0.36);
  background: rgba(255, 255, 255, 0.92);
}

.daily-tile-help-panel {
  position: absolute;
  top: calc(100% + 0.38rem);
  right: 0;
  width: min(220px, calc(100vw - 3rem));
  padding: 0.68rem 0.74rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.16);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 252, 0.96));
  box-shadow: 0 16px 36px rgba(15, 43, 64, 0.14);
  opacity: 0;
  transform: translateY(var(--daily-help-panel-shift));
  pointer-events: none;
  z-index: 24;
  transition: opacity 160ms ease, transform 160ms ease;
}

.daily-tile-help:hover .daily-tile-help-panel,
.daily-tile-help:focus-within .daily-tile-help-panel,
.daily-tile-help[open] .daily-tile-help-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.daily-tile-help-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.daily-tile-help-copy {
  margin: 0.36rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(18, 33, 53, 0.76);
}

.daily-tile-help-copy.is-example {
  color: rgba(18, 33, 53, 0.64);
}

.daily-hint-card {
  display: grid;
  gap: 0.56rem;
  border: 1px solid rgba(22, 131, 146, 0.24);
  border-radius: 18px;
  padding: 0.84rem;
  background:
    radial-gradient(circle at right top, rgba(22, 131, 146, 0.14), transparent 34%),
    rgba(245, 252, 251, 0.94);
}

.daily-hint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.daily-hint-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.42rem;
  line-height: 1;
  color: var(--ink-950);
}

.daily-hint-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.16rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 131, 146, 0.16);
  background: rgba(230, 246, 245, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5d66;
}

.daily-hint-copy {
  margin: 0.62rem 0 0;
  color: rgba(18, 33, 53, 0.76);
  font-size: 0.9rem;
  line-height: 1.6;
}

.daily-hint-list {
  display: grid;
  gap: 0.56rem;
}

.daily-hint-list.is-answer {
  margin-top: 0.42rem;
}

.daily-hint-entry {
  border: 1px solid rgba(20, 45, 70, 0.12);
  border-radius: 14px;
  padding: 0.7rem 0.74rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.daily-hint-entry.is-answer {
  background: rgba(255, 255, 255, 0.78);
}

.daily-hint-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.daily-hint-entry-index {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f5d66;
}

.daily-hint-entry-title {
  margin: 0.14rem 0 0;
  font-size: 0.94rem;
  line-height: 1.2;
  color: var(--ink-950);
}

.daily-hint-entry-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 131, 146, 0.16);
  background: rgba(230, 246, 245, 0.92);
  color: #0f5d66;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.daily-hint-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.38rem;
  margin: 0.54rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(20, 45, 70, 0.1);
  color: rgba(18, 33, 53, 0.6);
  font-size: 0.72rem;
  line-height: 1.45;
}

.daily-redaction {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.08em;
  padding: 0.06em 0.34em 0.1em;
  border-radius: 0.48em;
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.96), rgba(31, 43, 58, 0.9)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0.22em 0.48em rgba(7, 16, 25, 0.18);
  vertical-align: 0.02em;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
}

.daily-redaction::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.14) 0 2px,
    transparent 2px 8px
  );
  opacity: 0.22;
  pointer-events: none;
}

.daily-redaction::after {
  content: '';
  position: absolute;
  inset: 18% 7%;
  border-radius: 0.32em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.6;
  pointer-events: none;
}

.daily-redaction-ink {
  position: relative;
  z-index: 1;
  color: rgba(242, 248, 253, 0.5);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  filter: blur(0.24em);
  transform: scaleX(1.05);
  text-shadow: 0 0 0.8em rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.daily-hint-meta {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.42rem;
  margin: 0;
  padding: 0.58rem 0.68rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.74rem;
  line-height: 1.5;
}

.daily-hint-meta-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: rgba(20, 45, 70, 0.12);
  color: var(--ink-900);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.daily-answer-card {
  border: 1px solid rgba(35, 131, 82, 0.24);
  border-radius: 18px;
  padding: 0.84rem;
  background:
    radial-gradient(circle at right top, rgba(35, 131, 82, 0.14), transparent 34%),
    rgba(247, 253, 249, 0.94);
}

.daily-answer-card.is-victory {
  border-color: rgba(255, 186, 117, 0.3);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 224, 160, 0.2), transparent 18%),
    radial-gradient(circle at 86% 22%, rgba(255, 138, 91, 0.18), transparent 20%),
    radial-gradient(circle at right top, rgba(35, 131, 82, 0.14), transparent 34%),
    rgba(250, 252, 247, 0.96);
}

.daily-answer-card.is-celebrating {
  animation: daily-answer-celebration 1.1s cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.daily-answer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.92rem;
}

.daily-answer-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.62rem;
  line-height: 1;
  color: var(--ink-950);
}

.daily-answer-copy {
  margin: 0.26rem 0 0;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.84rem;
  line-height: 1.45;
}

.daily-answer-status {
  margin: 0.28rem 0 0;
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.daily-answer-copy-action {
  align-self: flex-start;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 0.34rem;
  width: min(13rem, 100%);
  min-width: 12rem;
  min-height: 5.35rem;
  padding: 1rem 1.12rem 1.06rem;
  border-radius: 14px;
  border-width: 1px;
  border-style: solid;
  text-align: center;
  line-height: 1.1;
  color: #48210f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 40px rgba(255, 132, 88, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.daily-answer-copy-action .daily-copy-button-label,
.daily-answer-copy-action .daily-copy-button-note {
  width: 100%;
  text-align: center;
}

.daily-answer-copy-action .daily-copy-button-label {
  font-size: 0.88rem;
  line-height: 1.05;
}

.daily-answer-copy-action .daily-copy-button-note {
  font-size: 0.69rem;
  line-height: 1.22;
  color: rgba(72, 33, 15, 0.74);
}

.daily-answer-copy-action.is-victory {
  border-color: rgba(239, 173, 88, 0.6);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 240, 0.92), transparent 54%),
    linear-gradient(180deg, rgba(255, 244, 219, 0.98), rgba(255, 214, 150, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 20px 42px rgba(255, 132, 88, 0.22);
}

.daily-answer-copy-action.is-victory .daily-copy-button-note {
  color: rgba(72, 33, 15, 0.74);
}

.daily-answer-copy-action.is-copied {
  border-color: rgba(154, 218, 182, 0.42);
  background:
    linear-gradient(180deg, rgba(229, 251, 239, 0.98), rgba(198, 239, 219, 0.9));
  color: #145f3b;
}

.daily-answer-copy-action.is-copied .daily-copy-button-note {
  color: rgba(20, 95, 59, 0.72);
}

.daily-answer-copy-action.is-error {
  border-color: rgba(242, 182, 135, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 243, 226, 0.98), rgba(255, 220, 200, 0.92));
  color: #8b4a1b;
}

.daily-answer-copy-action.is-error .daily-copy-button-note {
  color: rgba(139, 74, 27, 0.72);
}

.daily-answer-copy-action.is-loss {
  border-color: rgba(173, 200, 225, 0.36);
  background:
    linear-gradient(180deg, rgba(242, 248, 253, 0.98), rgba(223, 235, 248, 0.92));
  color: var(--ink-900);
}

.daily-answer-copy-action.is-loss .daily-copy-button-note {
  color: rgba(27, 50, 77, 0.68);
}

.daily-answer-copy-action:hover,
.daily-answer-copy-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(224, 154, 66, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 244, 0.96), transparent 54%),
    linear-gradient(180deg, rgba(255, 246, 226, 0.99), rgba(255, 223, 173, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 48px rgba(255, 132, 88, 0.26);
}

.daily-victory-banner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.12rem;
  min-width: 11rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 213, 154, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 236, 205, 0.96), rgba(255, 220, 172, 0.82));
  box-shadow: 0 16px 34px rgba(255, 132, 88, 0.16);
}

.daily-victory-banner.is-celebrating {
  animation: daily-victory-banner-pop 980ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.daily-victory-banner-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(133, 69, 18, 0.78);
}

.daily-victory-banner-value {
  font-size: 1.24rem;
  line-height: 1;
  color: #48210f;
}

.daily-victory-banner-note {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(72, 33, 15, 0.76);
}

.daily-answer-facts {
  margin-top: 0.62rem;
  position: relative;
  z-index: 1;
}

.daily-answer-fact-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.38rem;
  margin: 0.54rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(20, 45, 70, 0.1);
  color: rgba(18, 33, 53, 0.6);
  font-size: 0.72rem;
  line-height: 1.45;
}

.daily-answer-fact-note-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: rgba(20, 45, 70, 0.12);
  color: var(--ink-900);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.daily-victory-overlay {
  position: absolute;
  inset: -8% -4% auto -4%;
  height: 72%;
  pointer-events: none;
  z-index: 0;
}

.daily-victory-flash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%);
  opacity: 0;
  animation: daily-victory-flash 860ms ease-out both;
}

.daily-firework {
  position: absolute;
  left: var(--firework-left);
  top: var(--firework-top);
  width: 8rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.12);
  opacity: 0;
  filter: hue-rotate(var(--firework-hue));
  animation: daily-firework-bloom 1.2s var(--firework-delay) cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.daily-firework::before,
.daily-firework::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.daily-firework::before {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 5%, transparent 5%),
    repeating-conic-gradient(from 0deg, rgba(255, 200, 118, 0.92) 0deg 7deg, transparent 7deg 22deg);
}

.daily-firework::after {
  inset: 24%;
  border: 2px solid rgba(255, 255, 255, 0.74);
  animation: daily-firework-ring 1.1s var(--firework-delay) ease-out both;
}

.daily-victory-ribbon {
  position: absolute;
  top: -24%;
  left: var(--ribbon-left);
  width: 0.28rem;
  height: 128%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 235, 196, 0), rgba(255, 235, 196, 0.92) 18%, rgba(255, 150, 104, 0.78) 72%, rgba(255, 235, 196, 0));
  transform: translateX(-50%) rotate(var(--ribbon-rotate));
  opacity: 0;
  animation: daily-ribbon-fall 1.2s var(--ribbon-delay) ease-out both;
}

@keyframes daily-radar-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes daily-row-drop {
  from {
    opacity: 0;
    transform: translateY(-56px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes daily-tile-flip {
  from {
    opacity: 0;
    transform: rotateX(-20deg) translateY(8px);
  }
  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes daily-deck-victory {
  0% {
    transform: scale(0.992);
  }
  28% {
    transform: scale(1.008);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes daily-victory-shimmer {
  0% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes daily-answer-celebration {
  0% {
    transform: translateY(10px) scale(0.98);
    box-shadow: 0 0 0 rgba(255, 169, 102, 0);
  }
  36% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 48px rgba(255, 169, 102, 0.18);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes daily-victory-banner-pop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.92);
  }
  42% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes daily-victory-flash {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
  }
}

@keyframes daily-firework-bloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes daily-firework-ring {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  28% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes daily-ribbon-fall {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-32px) rotate(var(--ribbon-rotate));
  }
  28% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(26px) rotate(calc(var(--ribbon-rotate) * -1));
  }
}

@keyframes daily-stat-burst {
  0% {
    transform: translateY(10px) scale(0.94);
  }
  40% {
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes daily-stat-ring {
  0% {
    opacity: 0;
    transform: scale(0.24);
  }
  30% {
    opacity: 0.84;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes daily-stat-value-bloom {
  0% {
    transform: translateY(12px) scale(0.88);
  }
  34% {
    transform: translateY(-4px) scale(1.12);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes daily-copy-bloom {
  0% {
    transform: translateY(-8px) scale(0.92);
    box-shadow: 0 0 0 rgba(255, 169, 102, 0);
  }
  40% {
    transform: translateY(0) scale(1.04);
    box-shadow: 0 18px 42px rgba(255, 132, 88, 0.22);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes cardle-reveal-rise {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.placeholder-panel {
  background:
    linear-gradient(150deg, rgba(15, 63, 112, 0.08), rgba(236, 127, 53, 0.12)),
    var(--panel);
}

.placeholder-panel p {
  margin: 0.35rem 0 0;
  color: rgba(18, 33, 53, 0.72);
  line-height: 1.5;
}

.aircraft-list-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aircraft-list-head {
  align-items: flex-start;
}

.aircraft-list-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.aircraft-caution-button {
  width: 1.58rem;
  height: 1.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid rgba(205, 102, 18, 0.45);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 240, 216, 0.95), rgba(255, 218, 169, 0.92)),
    rgba(255, 228, 187, 0.92);
  color: #9a4100;
  box-shadow: 0 5px 13px rgba(183, 87, 13, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.aircraft-caution-button:hover,
.aircraft-caution-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(190, 86, 9, 0.72);
  box-shadow: 0 10px 26px rgba(183, 87, 13, 0.3);
}

.aircraft-caution-button:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.aircraft-caution-button.is-attention {
  border-color: rgba(190, 86, 9, 0.72);
  box-shadow:
    0 0 0 4px rgba(241, 136, 57, 0.12),
    0 8px 24px rgba(183, 87, 13, 0.34);
}

.aircraft-caution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 0.84rem;
  line-height: 1;
}

.aircraft-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.completion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.completion-control {
  flex: 1 1 170px;
}

.completion-sort-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.control-field {
  display: grid;
  gap: 0.3rem;
  min-width: 170px;
}

.control-field:not(.daily-guess-field) span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.control-field:not(.daily-guess-field) input,
.control-field:not(.daily-guess-field) select {
  width: 100%;
  min-height: 2.2rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 70, 0.22);
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-950);
}

.completion-direction-button {
  width: 2.2rem;
  min-height: 2.2rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 70, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-900);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.completion-direction-button:hover,
.completion-direction-button:focus-visible {
  border-color: rgba(15, 63, 112, 0.55);
  background: rgba(236, 243, 255, 0.95);
}

.aircraft-list-meta {
  margin: 0 0 0.65rem;
  color: rgba(18, 33, 53, 0.7);
  font-size: 0.9rem;
}

.aircraft-deck-metrics {
  margin: 0 0 0.5rem;
  padding: 0.34rem 0;
  border-top: 1px solid rgba(20, 45, 70, 0.12);
  border-bottom: 1px solid rgba(20, 45, 70, 0.12);
  display: grid;
  gap: 0.32rem 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aircraft-deck-metric {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.aircraft-deck-metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(18, 33, 53, 0.62);
}

.aircraft-deck-metric-value {
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--ink-900);
}

.aircraft-deck-metric-value-row {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.aircraft-deck-metric-value-row .aircraft-caution-button {
  flex: 0 0 auto;
}

.completion-meta {
  margin: 0 0 0.65rem;
  color: rgba(18, 33, 53, 0.68);
  font-size: 0.84rem;
}

@media (min-width: 1025px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: clamp(620px, calc(100dvh - 9.2rem), 1200px);
    min-height: 620px;
  }

  .map-layout.is-completionist {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .map-panel {
    height: 100%;
  }

  .map-side {
    height: 100%;
    min-height: 0;
  }

  .map-drill-panel,
  .map-completionist-panel {
    height: 100%;
  }

  .leaflet-map {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .map-drill-panel .completion-progress-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.16rem;
  }

  .map-completionist-panel .completionist-flight-list {
    overflow-y: auto;
    padding-right: 0.16rem;
  }

  .aircraft-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: clamp(620px, calc(100dvh - 9.2rem), 1200px);
    min-height: 620px;
  }

  .aircraft-list-panel {
    height: 100%;
  }

  .aircraft-list-panel .virtualized-list {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .aircraft-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .aircraft-side > .panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .aircraft-side .bar-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.16rem;
  }
}

.virtualized-list {
  position: relative;
  min-height: 420px;
  height: min(70vh, 640px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.18);
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.12), transparent 26%),
    rgba(250, 252, 247, 0.84);
}

.virtualized-list-spacer {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.aircraft-card {
  position: absolute;
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(20, 45, 70, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.aircraft-card:hover,
.aircraft-card:focus-visible {
  border-color: rgba(15, 63, 112, 0.42);
  box-shadow:
    0 14px 32px rgba(15, 43, 64, 0.18),
    0 0 0 2px rgba(15, 63, 112, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.aircraft-card.has-glow {
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(128deg, #ff59d0, #a96cff, #59caff, #6bffb3, #ff59d0) border-box;
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, 0% 50%;
  box-shadow:
    0 0 16px rgba(169, 108, 255, 0.34),
    0 0 22px rgba(89, 202, 255, 0.28),
    0 12px 28px rgba(15, 43, 64, 0.18);
  animation: aircraft-glow-border 5.8s linear infinite;
}

@keyframes aircraft-glow-border {
  0% {
    background-position: 0 0, 0% 50%;
  }
  100% {
    background-position: 0 0, 220% 50%;
  }
}

.aircraft-card-media {
  position: relative;
  width: 100%;
  flex: 0 0 38%;
  min-height: 138px;
  border-bottom: 1px solid rgba(20, 45, 70, 0.1);
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 127, 53, 0.23), transparent 46%),
    linear-gradient(145deg, rgba(17, 43, 70, 0.08), rgba(22, 131, 146, 0.18));
  overflow: hidden;
}

.aircraft-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.aircraft-card-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.aircraft-card-media.is-fallback .aircraft-card-image-fallback {
  display: flex;
}

.aircraft-card-glow-count {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  min-width: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 223, 208, 0.78);
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(8, 57, 66, 0.95);
  background: rgba(219, 255, 251, 0.94);
  box-shadow: 0 0 10px rgba(50, 214, 194, 0.45);
  z-index: 4;
  letter-spacing: 0.02em;
}

.aircraft-card-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.82rem 0.84rem 0.94rem;
  display: grid;
  gap: 0.46rem;
}

.aircraft-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
}

.aircraft-card-title-block {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.aircraft-card-name {
  margin: 0;
  font-size: clamp(1.06rem, 1.95vw, 1.3rem);
  line-height: 1.05;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-card-inline-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem 0.58rem;
  margin-top: 0.2rem;
}

.aircraft-card-inline-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(18, 33, 53, 0.72);
}

.aircraft-card-inline-metric-value {
  white-space: nowrap;
}

.aircraft-card-inline-separator {
  color: rgba(18, 33, 53, 0.42);
  font-size: 0.66rem;
  font-weight: 700;
}

.aircraft-card-inline-icon {
  width: 0.8rem;
  height: 0.8rem;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.9;
}

.aircraft-card-inline-metric.is-framing {
  color: rgba(18, 76, 128, 0.9);
}

.aircraft-card-inline-metric.is-cloud {
  color: rgba(58, 90, 117, 0.88);
}

.aircraft-card-inline-metric.is-cloud .aircraft-card-inline-icon {
  fill: currentColor;
  stroke: none;
}

.aircraft-card-xp {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 112, 0.24);
  padding: 0.14rem 0.48rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f3f70;
  background: rgba(236, 243, 255, 0.84);
  white-space: nowrap;
}

.aircraft-card-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.32rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.2);
  padding: 0.1rem 0.46rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.aircraft-card-tier-badge.is-paper {
  border-color: rgba(20, 45, 70, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #394c5e;
}

.aircraft-card-tier-badge.is-bronze {
  border-color: rgba(148, 91, 48, 0.45);
  background: rgba(225, 189, 157, 0.9);
  color: #6d3a16;
}

.aircraft-card-tier-badge.is-silver {
  border-color: rgba(111, 128, 146, 0.46);
  background: rgba(223, 230, 237, 0.92);
  color: #3a5168;
}

.aircraft-card-tier-badge.is-gold {
  border-color: rgba(177, 131, 44, 0.5);
  background: rgba(248, 226, 157, 0.92);
  color: #7b5205;
}

.aircraft-card-tier-badge.is-platinum {
  border-color: rgba(109, 145, 158, 0.5);
  background: rgba(217, 236, 241, 0.92);
  color: #195f6d;
}

.aircraft-card-tier-badge.is-cyber {
  border-color: rgba(156, 72, 168, 0.58);
  background:
    linear-gradient(130deg, rgba(255, 182, 215, 0.96), rgba(203, 162, 255, 0.94), rgba(164, 120, 255, 0.94));
  color: #4b1f6b;
}

.aircraft-card-tier-badge.is-unknown {
  border-color: rgba(20, 45, 70, 0.22);
  background: rgba(226, 233, 240, 0.9);
  color: #324a61;
}

.aircraft-card-badges {
  display: inline-grid;
  justify-items: end;
  gap: 0.24rem;
}

.aircraft-card-regs {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 158, 97, 0.28);
  padding: 0.14rem 0.48rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #16663f;
  background: rgba(217, 248, 231, 0.78);
  white-space: nowrap;
}

.aircraft-card-regs-button {
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.aircraft-card-regs-button:hover,
.aircraft-card-regs-button:focus-visible {
  border-color: rgba(30, 132, 80, 0.5);
  background: rgba(204, 244, 222, 0.9);
  box-shadow: 0 0 0 2px rgba(47, 158, 97, 0.14);
}

.aircraft-card-manufacturer {
  margin: 0;
  color: rgba(18, 33, 53, 0.68);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-card-model {
  margin: 0;
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-card-stats-block {
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.aircraft-card-stats {
  margin: 0;
  display: grid;
  gap: 0.48rem 0.62rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
}

.aircraft-card-stat {
  margin: 0;
  border-top: 1px solid rgba(20, 45, 70, 0.11);
  padding: 0.26rem 0.02rem 0 0;
}

.aircraft-card-stat dt {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}

.aircraft-card-stat dd {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.14;
  color: var(--ink-900);
  white-space: nowrap;
}

.cardle-layout {
  display: grid;
  gap: 0.9rem;
}

.cardle-unified-panel {
  display: grid;
  gap: 0.88rem;
}

.cardle-hero-grid {
  display: grid;
  gap: 0.88rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.cardle-command-deck {
  min-height: auto;
}

.cardle-command-strip {
  margin-top: 0.08rem;
}

.cardle-intel-section {
  min-width: 0;
}

.cardle-intel-panel {
  position: relative;
  display: grid;
  gap: 0.92rem;
  padding: 0.95rem 1rem 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.14), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(22, 131, 146, 0.08), transparent 28%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 245, 0.94));
}

.cardle-intel-panel > :not(.daily-victory-overlay) {
  position: relative;
  z-index: 1;
}

.cardle-intel-panel.is-victory {
  border-color: rgba(255, 191, 126, 0.34);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 224, 160, 0.22), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 91, 0.16), transparent 20%),
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.12), transparent 32%),
    linear-gradient(162deg, rgba(255, 252, 245, 0.98), rgba(248, 251, 244, 0.96));
  box-shadow:
    0 20px 46px rgba(15, 43, 64, 0.12),
    0 0 0 1px rgba(255, 223, 176, 0.18);
}

.cardle-intel-panel.is-celebrating {
  animation: daily-answer-celebration 1.1s cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.cardle-intel-panel.is-victory::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 241, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 241, 214, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.cardle-intel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.cardle-intel-title-block {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  max-width: 44rem;
}

.cardle-intel-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink-950);
}

.cardle-intel-subtitle {
  margin: 0;
  max-width: 56ch;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.82rem;
  line-height: 1.48;
}

.cardle-intel-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  align-content: start;
}

.cardle-intel-actions .daily-answer-copy-action {
  align-self: start;
}

.cardle-intel-layout {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.cardle-intel-primary {
  min-width: 0;
  display: grid;
  gap: 0.74rem;
}

.cardle-intel-note {
  margin: 0;
  max-width: 62ch;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cardle-intel-primary .daily-victory-banner {
  width: fit-content;
  max-width: min(100%, 34rem);
}

.cardle-support-grid {
  display: grid;
  gap: 0.46rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cardle-support-pill {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
  border: 1px solid rgba(20, 45, 70, 0.1);
  border-radius: 14px;
  padding: 0.58rem 0.68rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.cardle-support-pill.is-hit {
  border-color: rgba(47, 158, 97, 0.26);
  background: rgba(220, 248, 232, 0.9);
}

.cardle-support-pill.is-near {
  border-color: rgba(244, 185, 77, 0.34);
  background: rgba(255, 243, 207, 0.94);
}

.cardle-support-pill.is-miss {
  border-color: rgba(107, 128, 150, 0.18);
  background: rgba(236, 241, 247, 0.92);
}

.cardle-support-pill.is-pending {
  border-color: rgba(20, 45, 70, 0.12);
  background: rgba(246, 248, 251, 0.92);
}

.cardle-support-pill.is-compact {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.24rem 0.42rem;
  background: rgba(243, 247, 252, 0.9);
}

.cardle-support-pill-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.cardle-support-pill-label {
  color: var(--ink-500);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.1;
}

.cardle-support-pill-value {
  min-width: 0;
  color: var(--ink-900);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cardle-support-pill-value.is-pending {
  color: rgba(18, 33, 53, 0.56);
}

.cardle-support-pill-indicator {
  flex: 0 0 auto;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.78rem;
  line-height: 1;
}

.cardle-support-pill.is-compact .cardle-support-pill-main {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
}

.cardle-support-pill.is-compact .cardle-support-pill-label {
  font-size: 0.52rem;
}

.cardle-support-pill.is-compact .cardle-support-pill-value {
  font-size: 0.66rem;
}

.cardle-intel-panel.is-celebrating .cardle-support-pill,
.cardle-intel-panel.is-celebrating .aircraft-card-stats-block,
.cardle-intel-panel.is-celebrating .cardle-reveal-panel {
  animation: cardle-reveal-rise 880ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.cardle-intel-panel.is-celebrating .cardle-support-pill:nth-child(2),
.cardle-intel-panel.is-celebrating .cardle-reveal-panel:nth-child(2) {
  animation-delay: 90ms;
}

.cardle-intel-panel.is-celebrating .cardle-support-pill:nth-child(3),
.cardle-intel-panel.is-celebrating .cardle-reveal-panel:nth-child(3) {
  animation-delay: 160ms;
}

.cardle-intel-panel.is-celebrating .cardle-support-pill:nth-child(4),
.cardle-intel-panel.is-celebrating .cardle-reveal-panel:nth-child(4) {
  animation-delay: 220ms;
}

.cardle-intel-primary .aircraft-card-stats-block {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(20, 45, 70, 0.12);
  border-radius: 18px;
  padding: 0.74rem 0.76rem 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.cardle-intel-primary .aircraft-card-model {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.cardle-intel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.9rem;
}

.cardle-intel-footnote {
  margin: 0;
  color: rgba(18, 33, 53, 0.6);
  font-size: 0.72rem;
  line-height: 1.45;
}

.cardle-intel-visuals {
  min-width: 0;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: minmax(0, 1.34fr) minmax(260px, 0.66fr);
}

.cardle-reveal-panel {
  min-width: 0;
  display: grid;
  gap: 0;
  align-content: start;
  border: 1px solid rgba(20, 45, 70, 0.12);
  border-radius: 18px;
  padding: 0.62rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 245, 0.92)),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cardle-reveal-panel.is-map-stage,
.cardle-reveal-panel.is-model-stage {
  align-content: stretch;
}

.cardle-reveal-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.58rem;
}

.cardle-reveal-toolbar .map-fullscreen-toggle {
  margin-left: auto;
}

.cardle-intel-panel.is-victory .cardle-reveal-panel,
.cardle-intel-panel.is-victory .cardle-intel-primary .aircraft-card-stats-block {
  border-color: rgba(239, 173, 88, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 236, 0.94)),
    rgba(255, 255, 255, 0.86);
}

.cardle-stage-chip,
.cardle-guess-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.44rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.18);
  padding: 0.12rem 0.52rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(18, 33, 53, 0.82);
  white-space: nowrap;
}

.cardle-model-shell .cardle-stage-chip,
.cardle-hotspot-shell .cardle-stage-chip {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 36, 0.7);
  color: rgba(246, 250, 255, 0.94);
  backdrop-filter: blur(10px);
}

.cardle-stage-chip.is-live,
.cardle-guess-badge.is-solved {
  border-color: rgba(47, 158, 97, 0.28);
  background: rgba(217, 248, 231, 0.85);
  color: #16663f;
}

.cardle-model-shell .cardle-stage-chip.is-live,
.cardle-hotspot-shell .cardle-stage-chip.is-live {
  border-color: rgba(164, 225, 191, 0.32);
  background: rgba(28, 114, 70, 0.84);
  color: #effaf3;
}

.cardle-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.62rem;
  pointer-events: none;
}

.cardle-stage-overlay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.48rem;
}

.cardle-stage-overlay-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.44rem;
  border-radius: 999px;
  padding: 0.14rem 0.54rem;
  background: rgba(15, 23, 36, 0.72);
  color: rgba(246, 250, 255, 0.92);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cardle-stage-overlay-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  align-items: flex-end;
}

.cardle-stage-overlay-pill {
  max-width: min(100%, 15rem);
  display: inline-flex;
  align-items: center;
  min-height: 1.44rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.16rem 0.56rem;
  background: rgba(15, 23, 36, 0.72);
  color: rgba(239, 244, 250, 0.94);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.cardle-stage-overlay-pill.is-live {
  border-color: rgba(164, 225, 191, 0.32);
  background: rgba(28, 114, 70, 0.84);
  color: #effaf3;
}

.cardle-stage-overlay-pill.is-warning {
  border-color: rgba(255, 217, 137, 0.32);
  background: rgba(122, 78, 18, 0.84);
  color: #fff4d5;
}

.cardle-stage-overlay-pill.is-muted {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 36, 0.72);
  color: rgba(239, 244, 250, 0.94);
}

.cardle-model-shell,
.cardle-hotspot-shell {
  position: relative;
  min-height: 248px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 45, 70, 0.14);
}

.cardle-reveal-panel.is-map-stage .cardle-hotspot-shell {
  min-height: 260px;
}

.cardle-model-shell {
  background:
    radial-gradient(circle at 74% 16%, rgba(236, 127, 53, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(18, 48, 77, 0.1), rgba(236, 243, 255, 0.84));
}

.cardle-model-shell .aircraft-card-image-fallback {
  display: flex;
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 127, 53, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(18, 48, 77, 0.1), rgba(236, 243, 255, 0.84));
}

.cardle-target-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  --progress-bar-color: rgba(15, 63, 112, 0.88);
  --poster-color: transparent;
  background: transparent;
}

.cardle-target-model:not(:defined) {
  display: none;
}

.cardle-model-shell.is-concealed .cardle-target-model {
  filter: blur(18px) saturate(0) brightness(0.42);
  transform: scale(1.1);
}

.cardle-stage-redaction {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(9, 22, 35, 0.5), rgba(9, 22, 35, 0.7)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
  backdrop-filter: blur(4px);
}

.cardle-stage-redaction-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 200, 141, 0.36);
  padding: 0.34rem 0.8rem;
  color: #ffebc6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 36, 0.62);
}

.cardle-hotspot-shell {
  background:
    radial-gradient(circle at 80% 10%, rgba(22, 131, 146, 0.14), transparent 32%),
    linear-gradient(160deg, rgba(18, 48, 77, 0.08), rgba(244, 200, 141, 0.12));
}

.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen {
  padding: 1rem;
}

.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-reveal-toolbar {
  margin-bottom: 0.72rem;
}

.cardle-hotspot-fullscreen-panel.map-fullscreen-surface:fullscreen .cardle-hotspot-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 20px;
}

.cardle-hotspot-map {
  position: relative;
  display: flex;
  min-height: inherit;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(22, 131, 146, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(18, 48, 77, 0.08), rgba(244, 200, 141, 0.12));
}

.cardle-hotspot-shell.is-concealed .cardle-hotspot-map {
  filter: blur(14px) saturate(0) brightness(0.58);
  transform: scale(1.04);
}

.cardle-hotspot-map-canvas {
  flex: 1 1 auto;
  width: 100%;
  min-height: inherit;
  height: 100%;
}

.cardle-hotspot-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #dfe7ef;
}

.cardle-hotspot-map .leaflet-control-zoom {
  margin: 0.55rem 0 0 0.55rem;
  box-shadow: 0 10px 24px rgba(15, 43, 64, 0.12);
}

.cardle-hotspot-map .leaflet-control-attribution {
  margin: 0 0.4rem 0.4rem 0;
  border-radius: 999px;
  padding: 0.08rem 0.36rem;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(18, 33, 53, 0.66);
  font-size: 0.52rem;
}

.cardle-hotspot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.82rem;
  line-height: 1.5;
  pointer-events: none;
}

.cardle-board-section {
  display: grid;
  gap: 0.64rem;
}

.cardle-board {
  display: grid;
  gap: 0.72rem;
}

.cardle-board-stack {
  display: grid;
  gap: 0.62rem;
}

.cardle-guess-card {
  position: static;
  width: 100%;
  height: auto;
  transform: none !important;
  cursor: default;
  display: grid;
  grid-template-columns: clamp(176px, 20vw, 220px) minmax(0, 1fr);
  align-items: stretch;
  box-shadow: 0 8px 22px rgba(15, 43, 64, 0.1);
}

.cardle-guess-card:hover,
.cardle-guess-card:focus-visible {
  border-color: rgba(20, 45, 70, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 43, 64, 0.1);
}

.cardle-guess-card.is-solved {
  border-color: rgba(47, 158, 97, 0.26);
}

.cardle-guess-card.is-fresh {
  box-shadow:
    0 18px 38px rgba(15, 43, 64, 0.16),
    0 0 0 2px rgba(15, 63, 112, 0.08);
}

.cardle-guess-card .aircraft-card-media {
  min-height: 100%;
  border-right: 1px solid rgba(20, 45, 70, 0.1);
  border-bottom: 0;
  flex: none;
}

.cardle-guess-card .aircraft-card-image {
  height: 100%;
  object-position: center 56%;
}

.cardle-guess-card .aircraft-card-image-fallback {
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 127, 53, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(18, 48, 77, 0.08), rgba(236, 243, 255, 0.88));
}

.cardle-guess-card .aircraft-card-body {
  padding: 0.56rem 0.62rem 0.62rem;
  gap: 0.34rem;
}

.cardle-guess-card .aircraft-card-head {
  gap: 0.45rem;
}

.cardle-guess-card .aircraft-card-title-block {
  gap: 0.14rem;
}

.cardle-guess-card .aircraft-card-manufacturer {
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.cardle-guess-card .aircraft-card-name {
  font-size: 0.92rem;
  line-height: 1.04;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cardle-guess-card .aircraft-card-model {
  font-size: 0.56rem;
}

.cardle-guess-inline-metrics {
  margin-top: 0.16rem;
}

.cardle-inline-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.1rem;
  border-radius: 999px;
  padding: 0.06rem 0.38rem;
  background: rgba(15, 63, 112, 0.09);
  color: #0f3f70;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cardle-guess-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-top: 0.18rem;
}

.cardle-guess-card .aircraft-card-badges {
  gap: 0.28rem;
}

.cardle-guess-card .aircraft-card-stats-block {
  gap: 0.3rem;
}

.cardle-card-stats {
  gap: 0.3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cardle-card-stats .aircraft-card-stat {
  border: 1px solid rgba(20, 45, 70, 0.1);
  border-top-width: 1px;
  border-radius: 12px;
  padding: 0.34rem 0.42rem 0.36rem;
  background: rgba(250, 252, 247, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.cardle-card-stats .aircraft-card-stat dt {
  white-space: normal;
  font-size: 0.5rem;
  line-height: 1.18;
}

.cardle-card-stats .aircraft-card-stat dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.24rem;
  margin-top: 0.14rem;
  color: var(--ink-900);
  font-size: 0.7rem;
  line-height: 1.12;
  white-space: normal;
}

.cardle-card-stats .aircraft-card-stat dd > span:first-child {
  min-width: 0;
}

.cardle-card-stats .aircraft-card-stat.is-hit {
  border-color: rgba(47, 158, 97, 0.3);
  background: rgba(220, 248, 232, 0.95);
}

.cardle-card-stats .aircraft-card-stat.is-near {
  border-color: rgba(244, 185, 77, 0.34);
  background: rgba(255, 243, 207, 0.96);
}

.cardle-card-stats .aircraft-card-stat.is-miss {
  border-color: rgba(107, 128, 150, 0.2);
  background: rgba(236, 241, 247, 0.96);
}

.cardle-card-stats .aircraft-card-stat.is-pending {
  border-color: rgba(20, 45, 70, 0.12);
  background: rgba(246, 248, 251, 0.92);
}

.cardle-stat-indicator {
  flex: 0 0 auto;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.82rem;
  line-height: 1;
}

.bar-list {
  display: grid;
  gap: 0.68rem;
}

.bar-row-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.45rem 0.5rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.completion-progress-list .bar-row-button:hover,
.completion-progress-list .bar-row-button:focus-visible,
.aircraft-focus-list .bar-row-button:hover,
.aircraft-focus-list .bar-row-button:focus-visible {
  border-color: rgba(15, 63, 112, 0.35);
  background: rgba(236, 243, 255, 0.72);
}

.completion-progress-list .bar-row-button.is-selected,
.aircraft-focus-list .bar-row-button.is-selected {
  border-color: rgba(15, 63, 112, 0.58);
  background: rgba(22, 131, 146, 0.14);
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.15);
}

.completion-region-row {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 0.06rem 0;
  background: transparent;
}

.completion-region-list {
  gap: 0;
  border-top: 1px solid rgba(20, 45, 70, 0.11);
}

.completion-region-row + .completion-region-row {
  border-top: 1px solid rgba(20, 45, 70, 0.1);
}

.completion-region-list .bar-row-button {
  border: 0;
  border-radius: 8px;
  padding: 0.48rem 0.36rem;
  background: transparent;
}

.completion-region-list .bar-row-button:hover,
.completion-region-list .bar-row-button:focus-visible {
  border-color: transparent;
  background: rgba(18, 33, 53, 0.05);
  box-shadow: none;
}

.completion-region-list .bar-row-button.is-selected {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.completion-region-row.is-selected {
  border-radius: 10px;
  background: rgba(230, 238, 246, 0.68);
}

.completion-region-row.is-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  bottom: 0.52rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(34, 57, 82, 0.62);
}

.completion-region-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-items: flex-start;
}

.completion-focus-button {
  padding: 0.42rem 0.32rem 0.42rem 0.38rem;
}

.region-expand-button {
  min-height: 2rem;
  height: 100%;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(18, 33, 53, 0.76);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.24rem 0.45rem;
  cursor: pointer;
}

.region-expand-button:hover,
.region-expand-button:focus-visible {
  background: rgba(18, 33, 53, 0.07);
  color: rgba(18, 33, 53, 0.9);
}

.completion-region-detail {
  margin-top: 0.52rem;
  border-top: 1px solid rgba(20, 45, 70, 0.13);
  padding-top: 0.52rem;
  display: grid;
  gap: 0.55rem;
}

.completion-region-summary {
  margin: 0;
  color: rgba(18, 33, 53, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.region-code-group {
  display: grid;
  gap: 0.35rem;
}

.region-code-group.is-aircraft-copy-group {
  gap: 0.5rem;
}

.region-code-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.region-code-group-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.region-code-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.region-action-button {
  min-height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-900);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.62rem;
  cursor: pointer;
}

.region-action-button:hover,
.region-action-button:focus-visible {
  border-color: rgba(15, 63, 112, 0.56);
  background: rgba(236, 243, 255, 0.94);
}

.region-action-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.region-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-height: 7.9rem;
  overflow-y: auto;
  padding-right: 0.14rem;
}

.region-code-list code {
  border-radius: 8px;
  font-size: 0.75rem;
}

.region-code-empty {
  margin: 0;
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.8rem;
}

.region-code-overflow {
  margin: 0;
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.77rem;
}

.aircraft-copy-group-note {
  margin: 0;
  color: rgba(18, 33, 53, 0.68);
  font-size: 0.79rem;
  line-height: 1.42;
}

.aircraft-copy-group-note.is-subtle {
  color: rgba(18, 33, 53, 0.58);
}

.aircraft-copy-section-list {
  display: grid;
  gap: 0.55rem;
}

.aircraft-copy-section {
  display: grid;
  gap: 0.45rem;
  padding: 0.72rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 45, 70, 0.14);
  background: rgba(247, 250, 255, 0.95);
}

.aircraft-copy-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aircraft-copy-section-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.aircraft-copy-section-meta {
  margin: 0.16rem 0 0;
  color: rgba(18, 33, 53, 0.62);
  font-size: 0.76rem;
}

.aircraft-copy-section-field {
  width: 100%;
  min-height: 4.8rem;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 70, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  padding: 0.68rem 0.74rem;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  resize: vertical;
  cursor: text;
}

.aircraft-copy-section-field:focus-visible {
  outline: 2px solid rgba(15, 63, 112, 0.3);
  outline-offset: 1px;
}

.bar-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.34rem;
}

.completion-row-label-stack {
  display: grid;
  gap: 0.1rem;
}

.bar-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.completion-drill-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 112, 0.28);
  background: rgba(226, 241, 255, 0.92);
  color: #0f4a7f;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.08rem 0.34rem;
}

.bar-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: rgba(18, 33, 53, 0.64);
}

.completion-row-value-stack {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
  min-width: 2.35rem;
}

.completion-drill-arrow {
  color: rgba(18, 33, 53, 0.46);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.03rem);
}

.bar-track {
  height: 0.64rem;
  border-radius: 999px;
  background: rgba(18, 33, 53, 0.11);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.empty-copy {
  padding: 0.8rem 0;
  color: rgba(18, 33, 53, 0.68);
}

.aircraft-reg-modal {
  position: fixed;
  inset: 0;
  z-index: 1220;
  display: grid;
  place-items: center;
  padding: 0.9rem;
}

.aircraft-reg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 26, 0.58);
  backdrop-filter: blur(3px);
}

.aircraft-reg-modal-card {
  position: relative;
  width: min(1260px, calc(100vw - 1.2rem));
  max-height: calc(100dvh - 1.2rem);
  border-radius: 18px;
  border: 1px solid rgba(20, 45, 70, 0.24);
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.2), transparent 44%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 246, 0.94));
  box-shadow: 0 34px 90px rgba(3, 14, 23, 0.4);
  padding: 0.66rem;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr) auto;
  gap: 0.42rem;
  overflow: hidden;
}

.aircraft-reg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.aircraft-reg-modal-copy {
  margin: 0;
  color: rgba(18, 33, 53, 0.78);
  font-size: 0.8rem;
  line-height: 1.32;
}

.aircraft-reg-modal-copy.is-warning {
  color: #974507;
  font-weight: 700;
}

.aircraft-reg-manual-storage {
  border: 1px solid rgba(20, 45, 70, 0.2);
  border-radius: 12px;
  background: rgba(236, 243, 255, 0.75);
  padding: 0.4rem 0.5rem;
  display: grid;
  gap: 0.28rem;
}

.aircraft-reg-manual-copy {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.28;
  color: rgba(18, 33, 53, 0.8);
}

.aircraft-reg-manual-meta {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(18, 33, 53, 0.76);
}

.aircraft-reg-manual-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.aircraft-reg-modal-close {
  border: 1px solid rgba(20, 45, 70, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.72rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.aircraft-reg-modal-close:hover,
.aircraft-reg-modal-close:focus-visible {
  border-color: rgba(15, 63, 112, 0.58);
  background: rgba(236, 243, 255, 0.94);
}

.aircraft-reg-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.aircraft-reg-modal-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  border: 1px solid rgba(20, 45, 70, 0.18);
  border-radius: 10px;
  background: rgba(236, 243, 255, 0.74);
  padding: 0.42rem 0.5rem;
}

.aircraft-reg-modal-scope-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(18, 33, 53, 0.78);
}

.registration-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.2);
  padding: 0.14rem 0.54rem;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.84);
}

button.registration-summary-chip {
  cursor: pointer;
  margin: 0;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.registration-summary-chip.is-filter:hover,
.registration-summary-chip.is-filter:focus-visible {
  border-color: rgba(15, 63, 112, 0.55);
  background: rgba(236, 243, 255, 0.95);
}

.registration-summary-chip.is-filter.is-active {
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.38);
}

.registration-summary-chip.is-high {
  border-color: rgba(35, 131, 82, 0.36);
  background: rgba(217, 247, 230, 0.85);
  color: #14653d;
}

.registration-summary-chip.is-manual {
  border-color: rgba(18, 78, 126, 0.35);
  background: rgba(216, 236, 255, 0.86);
  color: #155384;
}

.registration-summary-chip.is-medium {
  border-color: rgba(204, 121, 34, 0.35);
  background: rgba(255, 236, 210, 0.85);
  color: #9a5007;
}

.registration-summary-chip.is-low {
  border-color: rgba(155, 72, 72, 0.34);
  background: rgba(255, 223, 223, 0.86);
  color: #8a2f2f;
}

.registration-summary-chip.is-ambiguous {
  border-color: rgba(111, 78, 165, 0.34);
  background: rgba(236, 224, 255, 0.85);
  color: #54318b;
}

.aircraft-reg-modal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.aircraft-reg-modal-controls .control-field {
  min-width: 240px;
  flex: 1 1 250px;
}

.aircraft-reg-modal-meta {
  margin: 0;
  padding: 0.04rem 0 0.18rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(18, 33, 53, 0.74);
}

.aircraft-reg-modal-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(20, 45, 70, 0.2);
  background: rgba(255, 255, 255, 0.9);
  min-height: 0;
  overflow: auto;
}

.aircraft-reg-modal-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.aircraft-reg-modal-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(240, 246, 251, 0.97);
  border-bottom: 1px solid rgba(20, 45, 70, 0.22);
  color: var(--ink-900);
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aircraft-reg-modal-table th,
.aircraft-reg-modal-table td {
  padding: 0.5rem 0.56rem;
  border-bottom: 1px solid rgba(20, 45, 70, 0.12);
  vertical-align: top;
}

.aircraft-reg-modal-table tbody tr:nth-child(2n) {
  background: rgba(244, 248, 252, 0.6);
}

.aircraft-reg-modal-table .aircraft-reg-empty {
  color: rgba(18, 33, 53, 0.65);
  text-align: center;
  padding: 1.1rem 0.7rem;
}

.aircraft-reg-subtle {
  display: block;
  margin-top: 0.2rem;
  color: rgba(18, 33, 53, 0.66);
  font-size: 0.72rem;
  line-height: 1.35;
}

.aircraft-reg-muted {
  color: rgba(18, 33, 53, 0.66);
  font-weight: 600;
}

.aircraft-reg-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 45, 70, 0.18);
  padding: 0.12rem 0.48rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
}

.aircraft-reg-confidence.is-high {
  border-color: rgba(35, 131, 82, 0.35);
  background: rgba(218, 249, 232, 0.84);
  color: #145f3b;
}

.aircraft-reg-confidence.is-manual {
  border-color: rgba(21, 88, 142, 0.34);
  background: rgba(217, 236, 255, 0.9);
  color: #155485;
}

.aircraft-reg-confidence.is-medium {
  border-color: rgba(206, 126, 45, 0.36);
  background: rgba(255, 236, 212, 0.88);
  color: #944c08;
}

.aircraft-reg-confidence.is-low {
  border-color: rgba(156, 75, 75, 0.34);
  background: rgba(255, 228, 228, 0.9);
  color: #8b2f2f;
}

.aircraft-reg-confidence.is-ambiguous {
  border-color: rgba(111, 78, 165, 0.34);
  background: rgba(236, 224, 255, 0.9);
  color: #55308d;
}

.aircraft-reg-method {
  font-weight: 700;
  color: var(--ink-900);
}

.aircraft-reg-note {
  margin: 0.2rem 0 0;
  color: rgba(18, 33, 53, 0.7);
  line-height: 1.4;
}

.aircraft-reg-manual-actions {
  display: grid;
  gap: 0.28rem;
}

.aircraft-reg-manual-action-row {
  display: flex;
  gap: 0.28rem;
}

.aircraft-reg-manual-input {
  width: 100%;
  min-height: 1.8rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 45, 70, 0.26);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
}

.aircraft-reg-manual-input:focus-visible {
  outline: none;
  border-color: rgba(15, 63, 112, 0.65);
  box-shadow: 0 0 0 2px rgba(15, 63, 112, 0.14);
}

.aircraft-reg-manual-actions .region-action-button {
  min-height: 1.6rem;
  font-size: 0.69rem;
  padding: 0.14rem 0.46rem;
}

.aircraft-reg-manual-cell {
  min-width: 212px;
}

.aircraft-reg-manual-static {
  display: inline-block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(18, 33, 53, 0.82);
  font-weight: 600;
}

.aircraft-reg-modal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.aircraft-reg-page-label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(18, 33, 53, 0.72);
}

.aircraft-model-modal {
  position: fixed;
  inset: 0;
  z-index: 1222;
  display: grid;
  place-items: center;
  padding: 0.9rem;
}

.aircraft-model-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 26, 0.58);
  backdrop-filter: blur(3px);
}

.aircraft-model-modal-card {
  position: relative;
  width: min(1040px, calc(100vw - 1.2rem));
  max-height: calc(100dvh - 1.2rem);
  border-radius: 18px;
  border: 1px solid rgba(18, 44, 70, 0.22);
  background:
    radial-gradient(circle at top right, rgba(79, 154, 217, 0.18), transparent 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.95));
  box-shadow: 0 32px 88px rgba(3, 14, 23, 0.36);
  padding: 0.9rem;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
  gap: 0.62rem;
  overflow: hidden;
}

.aircraft-model-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.aircraft-model-modal-copy {
  margin: 0;
  color: rgba(18, 33, 53, 0.78);
  font-size: 0.9rem;
  line-height: 1.42;
}

.aircraft-model-modal-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(18, 33, 53, 0.76);
}

.aircraft-model-modal-disclaimer.is-warning {
  color: #974507;
  font-weight: 700;
}

.aircraft-model-modal-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.aircraft-model-modal-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(18, 33, 53, 0.74);
}

.aircraft-model-modal-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(20, 45, 70, 0.2);
  background: rgba(255, 255, 255, 0.9);
  min-height: 0;
  overflow: auto;
}

.aircraft-model-modal-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.aircraft-model-modal-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(240, 246, 251, 0.97);
  border-bottom: 1px solid rgba(20, 45, 70, 0.22);
  color: var(--ink-900);
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aircraft-model-modal-table th,
.aircraft-model-modal-table td {
  padding: 0.5rem 0.56rem;
  border-bottom: 1px solid rgba(20, 45, 70, 0.12);
  vertical-align: top;
}

.aircraft-model-modal-table tbody tr:nth-child(2n) {
  background: rgba(244, 248, 252, 0.6);
}

.aircraft-model-modal-table .aircraft-reg-empty {
  color: rgba(18, 33, 53, 0.65);
  text-align: center;
  padding: 1.1rem 0.7rem;
}

.aircraft-model-modal-close {
  border: 1px solid rgba(20, 45, 70, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.72rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.aircraft-model-modal-close:hover,
.aircraft-model-modal-close:focus-visible {
  border-color: rgba(15, 63, 112, 0.58);
  background: rgba(236, 243, 255, 0.94);
}

.aircraft-model-modal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.aircraft-model-page-label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(18, 33, 53, 0.72);
}

.aircraft-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1224;
  display: grid;
  place-items: center;
  padding: 0.9rem;
}

.aircraft-detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 15, 26, 0.74), rgba(8, 23, 37, 0.58));
  backdrop-filter: blur(4px);
}

.aircraft-detail-modal-card {
  position: relative;
  width: min(1440px, calc(100vw - 1rem));
  max-height: calc(100dvh - 1.2rem);
  border-radius: 24px;
  border: 1px solid rgba(20, 45, 70, 0.24);
  background:
    radial-gradient(circle at top right, rgba(236, 127, 53, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(22, 131, 146, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 245, 0.95));
  box-shadow: 0 28px 80px rgba(5, 18, 30, 0.28);
  padding: clamp(0.82rem, 1vw, 1.08rem);
  overflow: auto;
  display: grid;
  gap: clamp(0.7rem, 1vw, 0.98rem);
}

.aircraft-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.aircraft-detail-head-copy {
  min-width: 0;
}

.aircraft-detail-subtitle {
  margin: 0.2rem 0 0;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.9rem;
  line-height: 1.42;
}

.aircraft-detail-close {
  border: 1px solid rgba(20, 45, 70, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.72rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.aircraft-detail-close:hover,
.aircraft-detail-close:focus-visible {
  border-color: rgba(15, 63, 112, 0.58);
  background: rgba(236, 243, 255, 0.94);
}

.aircraft-detail-layout {
  display: grid;
  gap: clamp(0.75rem, 0.9vw, 0.98rem);
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.84fr);
  align-items: stretch;
}

.aircraft-detail-media-panel,
.aircraft-detail-summary-panel {
  border: 1px solid rgba(20, 45, 70, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.76rem, 0.9vw, 0.98rem);
  display: grid;
  gap: 0.72rem;
}

.aircraft-detail-media-panel {
  height: 100%;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.aircraft-detail-media-head,
.aircraft-detail-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
}

.aircraft-detail-summary-head .region-action-button {
  white-space: nowrap;
}

.aircraft-detail-media-head h4,
.aircraft-detail-summary-head h4 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.34rem, 1.8vw, 1.72rem);
  letter-spacing: -0.02em;
}

.aircraft-detail-media-note {
  margin: 0;
  max-width: 22ch;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(18, 33, 53, 0.66);
}

.aircraft-detail-media-stage {
  display: grid;
  min-height: 0;
}

.aircraft-detail-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(20, 45, 70, 0.16);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 127, 53, 0.2), transparent 48%),
    linear-gradient(155deg, rgba(17, 43, 70, 0.1), rgba(22, 131, 146, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 20px 46px rgba(15, 43, 64, 0.12);
}

.aircraft-detail-media-frame.is-model::before,
.aircraft-detail-media-frame.is-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.aircraft-detail-media-image,
.aircraft-detail-model-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.aircraft-detail-media-image {
  object-fit: cover;
}

.aircraft-detail-model-viewer {
  --progress-bar-color: rgba(15, 63, 112, 0.88);
  --poster-color: transparent;
  background: transparent;
}

.aircraft-detail-model-viewer:not(:defined) {
  display: none;
}

.aircraft-detail-media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: rgba(18, 33, 53, 0.74);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.aircraft-detail-media-frame.is-fallback .aircraft-detail-media-fallback,
.aircraft-detail-media-frame.is-empty .aircraft-detail-media-fallback,
.aircraft-detail-media-fallback.is-visible {
  display: flex;
}

.aircraft-detail-media-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.42rem;
  overflow-x: auto;
  padding-bottom: 0.06rem;
}

.aircraft-detail-media-options[hidden] {
  display: none;
}

.aircraft-detail-media-option {
  border: 1px solid rgba(20, 45, 70, 0.16);
  border-radius: 999px;
  min-height: 2.1rem;
  padding: 0.2rem 0.66rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.aircraft-detail-media-option:hover,
.aircraft-detail-media-option:focus-visible {
  border-color: rgba(15, 63, 112, 0.42);
  background: rgba(236, 243, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(15, 63, 112, 0.08);
}

.aircraft-detail-media-option.is-active {
  border-color: rgba(15, 63, 112, 0.55);
  background: rgba(226, 241, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(15, 63, 112, 0.14);
}

.aircraft-detail-media-option-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.26rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  background: rgba(15, 63, 112, 0.1);
  color: #0f3f70;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aircraft-detail-media-option-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.aircraft-detail-kpis {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aircraft-detail-kpi {
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 14px;
  padding: 0.65rem 0.68rem;
  background:
    linear-gradient(150deg, rgba(15, 63, 112, 0.05), rgba(236, 127, 53, 0.08)),
    rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 0.16rem;
}

.aircraft-detail-kpi-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.aircraft-detail-kpi-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.34rem;
  line-height: 1;
  color: var(--ink-950);
}

.aircraft-detail-kpi-note {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(18, 33, 53, 0.68);
}

.aircraft-detail-meta-sections {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.aircraft-detail-section {
  border: 1px solid rgba(20, 45, 70, 0.14);
  border-radius: 16px;
  padding: 0.7rem;
  background: rgba(250, 252, 247, 0.88);
}

.aircraft-detail-section-head .eyebrow {
  margin-bottom: 0.1rem;
}

.aircraft-detail-facts {
  margin: 0;
  display: grid;
  gap: 0.5rem 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aircraft-detail-fact {
  margin: 0;
  border-top: 1px solid rgba(20, 45, 70, 0.1);
  padding-top: 0.35rem;
}

.aircraft-detail-fact dt {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.aircraft-detail-fact dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
}

@media (max-width: 1024px) {
  .boot-loader {
    min-height: min(740px, calc(100vh - 2.1rem));
  }

  .landing-view {
    min-height: min(740px, calc(100vh - 2.1rem));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-layout.is-completionist {
    grid-template-columns: 1fr;
  }

  .map-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .map-mode-toggle {
    width: auto;
    max-width: min(100%, 18rem);
    justify-self: end;
  }

  .map-mode-toggle .data-tools-toggle-note {
    display: none;
  }

  .map-layout.is-completionist .leaflet-map {
    height: min(48vh, 420px);
  }

  .map-panel-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .map-completionist-summary-strip {
    grid-template-columns: 1fr;
  }

  .map-completionist-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .completionist-filter-bar {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .completionist-filter-chip {
    flex: 0 1 auto;
    justify-content: space-between;
  }

  .coverage-mode-filter {
    flex: 1 1 100%;
    max-width: none;
  }

  .daily-context-grid {
    grid-template-columns: 1fr;
  }

  .cardle-intel-layout {
    grid-template-columns: 1fr;
  }

  .cardle-intel-actions {
    width: 100%;
    justify-items: start;
  }

}

@media (min-width: 761px) and (max-width: 1024px) {
  .page-shell {
    padding-top: 0.72rem;
    padding-bottom: 1.2rem;
  }

  .dashboard-app {
    gap: 0.72rem;
  }

  .dashboard-tabs-tools {
    gap: 0.55rem;
  }

  .dashboard-tabs {
    gap: 0.24rem;
    padding: 0.22rem;
  }

  .dashboard-tab-button {
    padding: 0.44rem 0.78rem;
    font-size: 0.78rem;
  }

  .dashboard-header-actions {
    gap: 0.38rem;
  }

  .dashboard-mode-shell {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding-inline: 0.46rem;
    border-radius: 18px;
  }

  .dashboard-mode-bar {
    gap: 0.28rem;
    justify-content: flex-start;
  }

  .dashboard-mode-button {
    min-height: 1.9rem;
    padding: 0.36rem 0.72rem;
    font-size: 0.72rem;
  }

  .data-tools-trigger {
    width: 2rem;
    height: 2rem;
  }

  .map-panel {
    padding: 0.82rem;
  }

  .map-panel-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.42rem;
  }

  .map-panel-head .eyebrow {
    margin-bottom: 0.02rem;
  }

  .map-panel-head h3 {
    font-size: 1.34rem;
    line-height: 0.96;
  }

  .map-panel-head-actions {
    margin-left: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 0.4rem 0.55rem;
  }

  .map-mode-toggle {
    max-width: 11.4rem;
    padding: 0.44rem 0.52rem;
    border-radius: 12px;
    gap: 0.42rem;
  }

  .map-mode-toggle .data-tools-toggle-title {
    font-size: 0.74rem;
    line-height: 1.08;
  }

  .map-mode-toggle .data-tools-toggle-switch {
    width: 2.6rem;
    height: 1.58rem;
    padding: 0.14rem;
  }

  .map-mode-toggle .data-tools-toggle-knob {
    width: 1.2rem;
    height: 1.2rem;
  }

  .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(0.98rem);
  }

  .map-resize-reset {
    min-height: 1.72rem;
    padding: 0.08rem 0.54rem;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .panel-kpi-line {
    margin-bottom: 0.42rem;
    font-size: 0.82rem;
  }

  .map-legend {
    margin-top: 0.42rem;
    gap: 0.4rem;
  }

  .map-legend-chip {
    min-height: 1.72rem;
    padding: 0.12rem 0.56rem 0.12rem 0.42rem;
    font-size: 0.74rem;
    gap: 0.32rem;
  }

  .map-layout.is-completionist .map-panel-head {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0.28rem 0.42rem;
  }

  .map-layout.is-completionist .map-panel-head > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    width: max-content;
    max-width: 100%;
  }

  .map-layout.is-completionist .map-panel-head .eyebrow {
    margin: 0;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .map-layout.is-completionist .map-panel-head h3 {
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
  }

  .map-layout.is-completionist .map-panel-head-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.22rem 0.34rem;
  }

  .map-layout.is-completionist .map-mode-toggle {
    flex: 0 0 8.1rem;
    max-width: 8.1rem;
    padding: 0.26rem 0.34rem;
    border-radius: 11px;
    gap: 0.24rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-note {
    display: none;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-title {
    font-size: 0.6rem;
    line-height: 1.02;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-switch {
    width: 2.3rem;
    height: 1.4rem;
    padding: 0.11rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-knob {
    width: 1.04rem;
    height: 1.04rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(0.86rem);
  }

  .map-layout.is-completionist .map-resize-reset {
    min-height: 1.48rem;
    padding: 0.04rem 0.34rem;
    font-size: 0.52rem;
  }
}

@media (min-width: 761px) and (max-width: 840px) {
  .map-layout.is-completionist .map-panel-head {
    gap: 0.22rem 0.32rem;
  }

  .map-layout.is-completionist .map-panel-head > div:first-child {
    gap: 0.16rem;
  }

  .map-layout.is-completionist .map-panel-head .eyebrow {
    font-size: 0.54rem;
  }

  .map-layout.is-completionist .map-panel-head h3 {
    font-size: 0.92rem;
  }

  .map-layout.is-completionist .map-panel-head-actions {
    gap: 0.16rem 0.24rem;
  }

  .map-layout.is-completionist .map-mode-toggle {
    flex: 0 0 7rem;
    max-width: 7rem;
    padding: 0.2rem 0.24rem;
    gap: 0.18rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-title {
    font-size: 0.54rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-switch {
    width: 2.16rem;
    height: 1.3rem;
    padding: 0.1rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-knob {
    width: 0.96rem;
    height: 0.96rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(0.82rem);
  }

  .map-layout.is-completionist .map-resize-reset {
    min-height: 1.34rem;
    padding: 0.02rem 0.24rem;
    font-size: 0.48rem;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (max-height: 820px) {
  .page-shell {
    padding-top: 0.6rem;
    padding-bottom: 0.96rem;
  }

  .dashboard-app {
    gap: 0.62rem;
  }

  .dashboard-tabs-tools {
    gap: 0.46rem;
  }

  .dashboard-mode-shell {
    padding-inline: 0.38rem;
  }

  .dashboard-mode-button {
    min-height: 1.78rem;
    padding-inline: 0.66rem;
  }

  .map-panel {
    padding: 0.72rem;
  }

  .map-panel-head {
    gap: 0.34rem;
    margin-bottom: 0.36rem;
  }

  .map-layout.is-completionist .map-panel-head h3 {
    font-size: 1.16rem;
    line-height: 0.94;
  }

  .map-layout.is-completionist .map-mode-toggle {
    max-width: 9.6rem;
    padding: 0.32rem 0.42rem;
    border-radius: 11px;
    gap: 0.32rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-switch {
    width: 2.36rem;
    height: 1.44rem;
    padding: 0.12rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-knob {
    width: 1.08rem;
    height: 1.08rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(0.88rem);
  }

  .map-layout.is-completionist .map-resize-reset {
    min-height: 1.56rem;
    padding: 0.06rem 0.42rem;
    font-size: 0.56rem;
  }

  .map-panel .leaflet-map {
    height: min(58vh, 452px);
  }

  .map-layout.is-completionist .leaflet-map {
    height: min(55vh, 420px);
  }

  .map-legend {
    margin-top: 0.34rem;
  }
}

@media (min-width: 1025px) {
  .map-layout.is-completionist .map-panel {
    padding: 0.78rem;
  }

  .custom-map-panel .leaflet-map {
    height: auto;
  }

  .map-layout.is-completionist .map-panel-head {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0.28rem 0.46rem;
    margin-bottom: 0.36rem;
  }

  .map-layout.is-completionist .map-panel-head > div:first-child {
    width: max-content;
    max-width: 100%;
  }

  .map-layout.is-completionist .map-panel-head .eyebrow {
    margin-bottom: 0.02rem;
  }

  .map-layout.is-completionist .map-panel-head h3 {
    font-size: 1.16rem;
    line-height: 0.94;
  }

  .map-layout.is-completionist .map-panel-head-actions {
    margin-left: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.34rem;
    min-width: 0;
  }

  .map-layout.is-completionist .map-mode-toggle {
    flex: 0 0 9.6rem;
    max-width: 9.6rem;
    padding: 0.32rem 0.42rem;
    border-radius: 11px;
    gap: 0.32rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-note {
    display: none;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-title {
    font-size: 0.66rem;
    line-height: 1.04;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-switch {
    width: 2.36rem;
    height: 1.44rem;
    padding: 0.12rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-knob {
    width: 1.08rem;
    height: 1.08rem;
  }

  .map-layout.is-completionist .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(0.88rem);
  }

  .map-layout.is-completionist .map-resize-reset {
    min-height: 1.56rem;
    padding: 0.06rem 0.42rem;
    font-size: 0.56rem;
  }
}

@media (max-width: 900px) {
  .aircraft-detail-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aircraft-detail-media-panel {
    height: auto;
    align-content: start;
    grid-template-rows: auto auto auto;
  }

  .aircraft-detail-media-stage {
    display: block;
  }

  .aircraft-detail-media-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .map-panel-head {
    gap: 0.58rem;
  }

  .map-panel-head h3 {
    font-size: 1.28rem;
  }

  .map-mode-toggle {
    max-width: 12.4rem;
    padding: 0.52rem 0.58rem;
    border-radius: 12px;
    gap: 0.48rem;
  }

  .map-mode-toggle .data-tools-toggle-title {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .map-mode-toggle .data-tools-toggle-switch {
    width: 2.74rem;
    height: 1.68rem;
  }

  .map-mode-toggle .data-tools-toggle-knob {
    width: 1.24rem;
    height: 1.24rem;
  }

  .map-mode-toggle .data-tools-toggle-input:checked + .data-tools-toggle-switch .data-tools-toggle-knob {
    transform: translateX(1.02rem);
  }

  .map-layout.is-completionist .leaflet-map {
    min-height: 290px;
    height: min(44vh, 340px);
  }

  .map-completionist-head {
    align-items: flex-start;
  }

  .map-completionist-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .map-completionist-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      'search'
      'sort'
      'filters';
  }

  .custom-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      'picker'
      'presets'
      'filters';
  }

  .completionist-filter-bar {
    justify-content: flex-start;
  }

  .completionist-filter-chip {
    flex: 1 1 calc(50% - 0.34rem);
  }

  .coverage-mode-filter {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: none;
  }

  .completionist-flight-button {
    padding: 0.72rem 0.76rem 0.34rem;
  }

  .completionist-flight-topline {
    flex-direction: column;
    gap: 0.26rem;
  }

  .completionist-flight-topline-meta {
    justify-content: flex-start;
  }

  .completionist-route-names {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .completionist-route-name--destination {
    text-align: left;
  }

  .completionist-flight-actions > * {
    flex: 1 1 calc(50% - 0.38rem);
  }

  .completionist-popup-actions > * {
    flex: 1 1 calc(50% - 0.28rem);
  }

  .page-shell {
    width: min(100vw - 1.35rem, 100%);
    padding-top: 0.85rem;
    padding-bottom: 1.5rem;
  }

  .boot-card,
  .landing-card,
  .panel {
    border-radius: 16px;
  }

  .boot-loader {
    min-height: calc(100vh - 1.7rem);
  }

  #landing-title {
    font-size: clamp(2.6rem, 16vw, 4.1rem);
  }

  .landing-subhead {
    max-width: none;
    font-size: 1rem;
  }

  .landing-view {
    min-height: calc(100vh - 1.7rem);
    align-items: flex-start;
    padding-top: 0.45rem;
    padding-bottom: 1.1rem;
  }

  .landing-card {
    padding: 1rem;
  }

  .landing-hero-caption {
    font-size: 0.68rem;
  }

  .landing-daily-chip {
    min-height: 1.88rem;
    padding-inline: 0.68rem;
    font-size: 0.67rem;
  }

  .landing-primary-grid,
  .landing-path-grid {
    grid-template-columns: 1fr;
  }

  .landing-step-benefits {
    padding: 0.84rem 0.88rem;
  }

  .landing-benefit-grid {
    gap: 0.48rem;
  }

  .landing-path-card {
    padding: 0.92rem;
  }

  .landing-path-title,
  .landing-step-title,
  .landing-section-title {
    font-size: clamp(1.04rem, 6vw, 1.28rem);
  }

  .landing-upload-actions,
  .landing-path-actions,
  .landing-path-actions .daily-launch-button,
  .landing-upload-actions .view-example-button,
  .landing-inline-link {
    width: 100%;
  }

  .landing-upload-actions {
    align-items: stretch;
    gap: 0.55rem;
  }

  .landing-path-actions {
    gap: 0.55rem;
  }

  .landing-inline-link {
    text-align: center;
  }

  .upload-cta {
    min-height: 188px;
    border-radius: 16px;
  }

  .persist-choice {
    padding: 0.65rem 0.7rem;
  }

  .site-footer {
    margin-top: 0.9rem;
    padding: 0.72rem 0.1rem 0.2rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .site-footer-meta {
    margin-top: 0.68rem;
    padding-top: 0.5rem;
    justify-content: flex-start;
  }

  .message-banner {
    top: 0.6rem;
    right: 0.1rem;
    width: calc(100vw - 0.9rem);
  }

  .dashboard-tab-button {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .dashboard-tabs {
    flex-wrap: wrap;
  }

  .dashboard-tabs-tools {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.42rem;
  }

  .dashboard-header-actions {
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    align-self: flex-start;
    flex: 0 0 auto;
  }

  .dashboard-mode-shell {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-inline: 0.24rem;
    border-radius: 16px;
  }

  .dashboard-mode-shell.is-open {
    max-height: 5.4rem;
  }

  .dashboard-mode-shell::before {
    display: none;
  }

  .dashboard-mode-bar {
    gap: 0.22rem;
  }

  .dashboard-mode-button {
    min-height: 1.84rem;
    padding: 0.34rem 0.64rem;
    font-size: 0.68rem;
  }

  .data-tools-trigger {
    width: 2.15rem;
    height: 2.15rem;
  }

  .data-tools-menu {
    width: min(100vw - 1rem, 340px);
    right: -0.1rem;
    padding: 0.62rem;
  }

  .data-tools-menu-title {
    font-size: 1.22rem;
  }

  .data-tools-section {
    padding: 0.68rem;
  }

  .data-tools-toggle {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .data-tools-toggle-switch {
    justify-self: start;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .aircraft-side {
    grid-template-columns: 1fr;
  }

  .daily-guess-form {
    grid-template-columns: 1fr;
  }

  .cardle-intel-panel {
    padding: 0.82rem 0.84rem 0.88rem;
  }

  .cardle-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cardle-intel-visuals {
    grid-template-columns: 1fr;
  }

  .cardle-guess-card {
    grid-template-columns: 1fr;
  }

  .cardle-guess-card .aircraft-card-media {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 45, 70, 0.1);
  }

  .cardle-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-command-deck {
    padding: 0.82rem;
    border-radius: 20px;
  }

  .daily-command-top {
    grid-template-columns: 1fr;
  }

  .daily-command-strip {
    grid-template-columns: 1fr;
  }

  .daily-command-title-row {
    gap: 0.56rem;
  }

  .daily-guess-field input {
    min-height: 3.55rem;
  }

  .daily-suggestion-list {
    grid-template-columns: 1fr;
  }

  .daily-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .daily-meta-chip {
    min-height: 3.5rem;
    padding: 0.5rem 0.56rem 0.56rem;
    border-radius: 16px;
  }

  .daily-meta-chip-label {
    font-size: 0.5rem;
    letter-spacing: 0.11em;
  }

  .daily-meta-chip-value {
    font-size: 0.9rem;
  }

  .daily-meta-chip-note {
    min-height: 0.9rem;
    font-size: 0.55rem;
    line-height: 1.12;
  }

  .daily-hero-summary {
    max-width: none;
  }

  .daily-feedback {
    width: 100%;
  }

  .daily-copy-button,
  .daily-briefing-head,
  .daily-briefing-foot {
    width: 100%;
  }

  .daily-briefing-head,
  .daily-briefing-foot,
  .daily-hint-head,
  .daily-answer-head {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-answer-copy-action {
    width: 100%;
    min-width: 0;
  }

  .daily-hint-entry-head {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-hint-entry-chip {
    align-self: flex-start;
  }

  .daily-radar-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .daily-board-step {
    grid-template-columns: 1fr;
  }

  .daily-board-step-rail {
    flex-direction: row;
    align-self: auto;
    gap: 0.45rem;
    padding-top: 0;
  }

  .daily-board-step-line {
    width: auto;
    min-width: 2.8rem;
    min-height: 2px;
    height: 2px;
  }

  .daily-transition-chip {
    max-width: 100%;
  }

  .daily-guess-head {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-guess-badge {
    width: fit-content;
  }

  .aircraft-list-head {
    flex-direction: column;
  }

  .aircraft-list-title-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .aircraft-list-controls {
    width: 100%;
  }

  .aircraft-deck-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.26rem 0.44rem;
  }

  .aircraft-deck-metric-label {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .aircraft-deck-metric-value {
    font-size: 0.9rem;
  }

  .aircraft-deck-metric-value-row {
    gap: 0.22rem;
  }

  .aircraft-deck-metric-value-row .aircraft-caution-button {
    width: 1.34rem;
    height: 1.34rem;
  }

  .aircraft-deck-metric-value-row .aircraft-caution-icon {
    font-size: 0.74rem;
  }

  .aircraft-reg-modal {
    padding: 0.45rem;
  }

  .aircraft-model-modal {
    padding: 0.45rem;
  }

  .aircraft-detail-modal {
    padding: 0.45rem;
  }

  .aircraft-reg-modal-card {
    width: calc(100vw - 0.9rem);
    max-height: calc(100dvh - 0.9rem);
    border-radius: 14px;
    padding: 0.68rem;
  }

  .aircraft-model-modal-card {
    width: calc(100vw - 0.9rem);
    max-height: calc(100dvh - 0.9rem);
    border-radius: 14px;
    padding: 0.68rem;
  }

  .aircraft-detail-modal-card {
    width: calc(100vw - 0.9rem);
    max-height: calc(100dvh - 0.9rem);
    border-radius: 16px;
    padding: 0.64rem;
  }

  .aircraft-reg-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .aircraft-model-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .aircraft-detail-head,
  .aircraft-detail-media-head,
  .aircraft-detail-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  .aircraft-reg-modal-close {
    width: 100%;
  }

  .aircraft-model-modal-close {
    width: 100%;
  }

  .aircraft-detail-close,
  .aircraft-detail-summary-head .region-action-button {
    width: 100%;
  }

  .aircraft-reg-modal-scope .region-action-button {
    width: 100%;
  }

  .aircraft-reg-modal-table {
    min-width: 700px;
  }

  .aircraft-model-modal-table {
    min-width: 620px;
  }

  .aircraft-reg-modal-pagination {
    flex-wrap: wrap;
  }

  .aircraft-model-modal-pagination {
    flex-wrap: wrap;
  }

  .aircraft-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-detail-media-frame {
    aspect-ratio: 6 / 5;
  }

  .aircraft-detail-media-panel,
  .aircraft-detail-summary-panel {
    padding: 0.72rem;
    gap: 0.62rem;
  }

  .aircraft-detail-media-note {
    max-width: none;
    text-align: left;
  }

  .control-field {
    min-width: 0;
    width: 100%;
  }

  .completion-region-row-top {
    grid-template-columns: 1fr;
  }

  .region-expand-button {
    width: 100%;
  }

  .virtualized-list {
    height: min(72vh, 620px);
  }
}

@media (max-width: 540px) {
  .daily-board {
    gap: 0.68rem;
  }

  .daily-board-stack {
    gap: 0.56rem;
  }

  .daily-board-step {
    gap: 0.42rem;
  }

  .daily-board-step-rail {
    gap: 0.34rem;
  }

  .daily-board-step-node {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .daily-board-step-line {
    min-width: 1.9rem;
  }

  .daily-board-step-body {
    gap: 0.34rem;
  }

  .daily-board-empty {
    padding: 0.74rem 0.82rem;
    border-radius: 14px;
    font-size: 0.84rem;
  }

  .daily-guess-row {
    border-radius: 16px;
    padding: 0.64rem;
    box-shadow: 0 10px 22px rgba(15, 43, 64, 0.07);
  }

  .daily-guess-row.is-tracker {
    box-shadow:
      0 14px 28px rgba(15, 43, 64, 0.09),
      0 0 0 1px rgba(255, 255, 255, 0.44);
    backdrop-filter: none;
  }

  .daily-guess-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.5rem;
    align-items: start;
  }

  .daily-guess-title {
    font-size: 1rem;
    line-height: 1.02;
  }

  .daily-guess-row:not(.is-tracker) .daily-guess-subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .daily-guess-subtitle,
  .daily-guess-meta {
    margin-top: 0.12rem;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .daily-guess-badge {
    align-self: start;
    min-height: 1.56rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .daily-guess-grid {
    margin-top: 0.45rem;
    gap: 0.3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-guess-tile {
    min-height: 72px;
    border-radius: 12px;
    padding: 0.52rem 0.5rem 0.46rem;
    gap: 0.16rem;
  }

  .daily-tile-head {
    padding-right: 1.18rem;
  }

  .daily-tile-label {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .daily-tile-value {
    font-size: clamp(0.92rem, 2.7vw + 0.5rem, 1.04rem);
    line-height: 1.02;
  }

  .daily-tile-value-row {
    gap: 0.22rem;
    padding-right: 1rem;
  }

  .daily-tile-meta {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .daily-tile-indicator {
    margin-top: 0.02rem;
    font-size: 0.82rem;
  }

  .daily-tile-help {
    top: 0.36rem;
    right: 0.36rem;
  }

  .daily-tile-help-toggle {
    width: 1.02rem;
    height: 1.02rem;
    font-size: 0.58rem;
  }

  .daily-tile-help-panel {
    width: min(200px, calc(100vw - 1.5rem));
    padding: 0.58rem 0.62rem;
  }

  .daily-tile-help-title {
    font-size: 0.62rem;
  }

  .daily-tile-help-copy {
    font-size: 0.68rem;
    line-height: 1.38;
  }

  .daily-guess-transition {
    grid-template-columns: 1fr;
    gap: 0.22rem;
    padding: 0;
  }

  .daily-transition-label {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .daily-transition-rail {
    flex-wrap: nowrap;
    gap: 0.24rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.14rem;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .daily-transition-rail::-webkit-scrollbar {
    display: none;
  }

  .daily-transition-chip {
    flex: 0 0 auto;
    min-height: 1.5rem;
    padding: 0.12rem 0.44rem;
    font-size: 0.63rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .daily-transition-chip-label {
    padding: 0.1rem 0.28rem;
    font-size: 0.54rem;
  }
}

@media (max-width: 360px) {
  .aircraft-deck-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .daily-guess-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-guess-row {
    padding: 0.56rem;
  }

  .daily-guess-tile {
    min-height: 68px;
    padding: 0.46rem 0.44rem 0.4rem;
  }

  .daily-tile-value {
    font-size: 0.9rem;
  }

  .daily-transition-chip {
    padding-inline: 0.38rem;
  }

  .aircraft-detail-kpis,
  .aircraft-detail-facts {
    grid-template-columns: 1fr;
  }

  .aircraft-detail-media-frame {
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
