:root {
  --bg: #08111f;
  --bg-soft: rgba(10, 24, 43, 0.84);
  --panel: rgba(8, 18, 34, 0.82);
  --panel-border: rgba(143, 192, 255, 0.16);
  --text: #f5efe4;
  --muted: #b8c6da;
  --gold: #f6b64b;
  --gold-soft: rgba(246, 182, 75, 0.12);
  --button-primary-start: #d8931f;
  --button-primary-end: #f6b64b;
  --button-primary-text: #fff8ec;
  --cyan: #62d9f8;
  --cyan-soft: rgba(98, 217, 248, 0.14);
  --red: #ff7f72;
  --red-soft: rgba(255, 127, 114, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --type-eyebrow: 0.68rem;
  --type-body-sm: 0.82rem;
  --type-body-md: 0.92rem;
  --type-body-lg: 1rem;
  --type-subsection: 0.98rem;
  --type-card-title: 1.06rem;
  --type-detail-title: clamp(1.45rem, 2.4vw, 1.95rem);
  --type-result-title: clamp(1.24rem, 2.1vw, 1.58rem);
  --type-section-title: clamp(1.6rem, 3vw, 2.25rem);
  --type-hero-title: clamp(2.35rem, 5vw, 4.25rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(246, 182, 75, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(98, 217, 248, 0.18), transparent 24%),
    linear-gradient(180deg, #0c1730 0%, #08111f 44%, #050a14 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body::before {
  top: 12%;
  right: 5%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(98, 217, 248, 0.12);
}

body::after {
  bottom: 8%;
  left: 4%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(246, 182, 75, 0.11);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 0 2.2rem;
}

.app-header {
  position: sticky;
  top: 0.75rem;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding: 0.62rem 0.75rem;
  overflow: visible;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.app-brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.app-brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.app-brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.app-brand-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.app-view-nav {
  justify-self: center;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(5.6rem, 1fr));
  gap: 0.35rem;
  width: min(100%, 24rem);
  padding: 0.3rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 12, 23, 0.46);
}

.app-view-tab {
  cursor: pointer;
  min-height: 2.35rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--type-body-sm);
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.app-view-tab:hover {
  border-color: rgba(98, 217, 248, 0.22);
  background: rgba(98, 217, 248, 0.08);
  color: var(--text);
}

.app-view-tab.is-active {
  border-color: rgba(246, 182, 75, 0.28);
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.22), rgba(98, 217, 248, 0.1));
  color: #fff5dc;
}

.app-header-tools {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.55rem;
  min-width: 0;
}

.language-switcher {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.52rem;
}

.language-switcher label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 236, 255, 0.72);
}

.language-switcher select {
  border: 1px solid rgba(173, 212, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 19, 34, 0.88);
  color: var(--text);
  padding: 0.35rem 0.75rem;
}

.auth-language-switcher {
  justify-self: end;
}

.app-header-action {
  min-height: 2.35rem;
  white-space: nowrap;
}

#draft-panel,
#draft-results-panel,
#atlas-grid {
  scroll-margin-top: 5.6rem;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 100vh;
  padding: 1rem 0 3.25rem;
}

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

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.92rem;
}

.landing-nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.landing-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.landing-nav-link:hover {
  color: var(--text);
  border-color: rgba(245, 239, 228, 0.36);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  grid-template-areas:
    "copy visual"
    "auth auth";
  align-items: start;
  gap: 1rem;
}

.landing-hero-copy,
.landing-hero-visual,
.auth-card {
  position: relative;
}

.landing-hero-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  max-width: 35rem;
  padding: 0.95rem 0.15rem 0.2rem;
}

.landing-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.landing-hero-copy h1,
.auth-card h2,
.landing-section-head h2,
.landing-showcase-copy h3,
.landing-support-card h3,
.landing-final h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  letter-spacing: 0.01em;
}

.landing-hero-copy h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.45rem);
  line-height: 0.94;
  max-width: 8.8ch;
  text-wrap: balance;
}

.landing-hero-text {
  margin: 0;
  max-width: 37ch;
  color: rgba(220, 236, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.55;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.landing-secondary-link {
  margin-left: 0;
  text-decoration: none;
}

.landing-proof-list {
  display: grid;
  gap: 0.55rem;
}

.landing-proof-list p {
  margin: 0;
  padding: 0.78rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(143, 192, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 17, 31, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(220, 236, 255, 0.8);
  line-height: 1.5;
}

.landing-hero-visual {
  grid-area: visual;
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 0.95rem;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(143, 192, 255, 0.16);
  background:
    radial-gradient(circle at 16% 18%, rgba(246, 182, 75, 0.16), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(98, 217, 248, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(12, 23, 41, 0.98), rgba(7, 14, 26, 0.94));
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-visual-main {
  margin-top: 1.35rem;
  width: min(100%, 42rem);
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(143, 192, 255, 0.16);
  background: rgba(8, 17, 31, 0.82);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: perspective(1600px) rotateX(5deg) rotateY(-4deg);
  transform-origin: center top;
}

.landing-visual-main img,
.landing-showcase-media img,
.landing-support-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-floating-card {
  position: absolute;
  display: grid;
  gap: 0.42rem;
  max-width: 15.5rem;
  padding: 0.78rem 0.86rem;
  border-radius: 22px;
  border: 1px solid rgba(173, 212, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 14, 26, 0.78);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.landing-floating-card strong {
  line-height: 1.28;
}

.landing-floating-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.5;
}

.landing-floating-card.is-primary {
  top: 0.82rem;
  right: 0.82rem;
}

.landing-floating-card.is-secondary {
  bottom: 0.82rem;
  left: 0.82rem;
}

.auth-card {
  grid-area: auth;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.82fr) minmax(14rem, 0.72fr);
  grid-template-areas:
    "eyebrow status legal"
    "title status legal"
    "copy status legal";
  gap: 0.55rem 1rem;
  align-items: start;
  width: 100%;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(246, 182, 75, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 22, 39, 0.95), rgba(7, 15, 28, 0.88));
}

.auth-card > .eyebrow {
  grid-area: eyebrow;
  align-self: end;
}

.auth-card h2 {
  grid-area: title;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 0.98;
  max-width: 12ch;
  text-wrap: balance;
}

#auth-copy {
  grid-area: copy;
  max-width: 44ch;
}

.auth-status-stack {
  grid-area: status;
  display: grid;
  gap: 0.65rem;
  padding: 0.78rem 0.86rem;
  border-radius: 22px;
  border: 1px solid rgba(143, 192, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(8, 17, 31, 0.76);
}

.auth-status-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legal-disclaimer {
  grid-area: legal;
  align-self: end;
  margin: 0;
  max-width: 27ch;
  color: rgba(220, 236, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  transition:
    opacity 680ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 860ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.landing-nav {
  --reveal-delay: 40ms;
}

.landing-hero-copy {
  --reveal-delay: 130ms;
}

.landing-hero-visual {
  --reveal-delay: 220ms;
}

.auth-card {
  --reveal-delay: 290ms;
}

.landing-section {
  display: grid;
  gap: 0.9rem;
}

.landing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(18rem, 20rem);
  grid-template-areas:
    "eyebrow eyebrow"
    "title copy";
  align-items: end;
  gap: 0.45rem 1rem;
  max-width: 56rem;
  padding: 0.2rem 0.2rem 0;
}

.landing-section-head > .eyebrow {
  grid-area: eyebrow;
}

.landing-section-head h2 {
  grid-area: title;
  font-size: clamp(1.95rem, 3.35vw, 2.95rem);
  line-height: 0.96;
  max-width: 12.5ch;
  text-wrap: balance;
}

.landing-section-head .section-text {
  grid-area: copy;
  justify-self: start;
  max-width: 29ch;
  padding-bottom: 0.22rem;
}

.landing-story-grid,
.landing-support-grid {
  display: grid;
  gap: 1rem;
}

.landing-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-showcase-card,
.landing-support-card,
.landing-support-media {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem;
}

.landing-showcase-copy,
.landing-support-card {
  align-content: start;
}

.landing-showcase-copy h3,
.landing-support-card h3 {
  font-size: clamp(1.42rem, 2vw, 1.92rem);
  line-height: 1.04;
  max-width: 14ch;
}

.landing-showcase-copy p:last-child,
.landing-support-card > p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-showcase-media,
.landing-support-shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(143, 192, 255, 0.16);
  background: rgba(8, 17, 31, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.landing-support-points {
  display: grid;
  gap: 0.55rem;
}

.landing-support-points span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.74rem 0.84rem;
  border-radius: 17px;
  border: 1px solid rgba(143, 192, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(220, 236, 255, 0.82);
  line-height: 1.4;
}

.landing-support-points span::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  flex: 0 0 0.44rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(246, 182, 75, 0.36);
}

.landing-support-media {
  background:
    radial-gradient(circle at top right, rgba(98, 217, 248, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 24, 43, 0.95), rgba(8, 17, 31, 0.9));
}

.landing-support-shot {
  align-self: stretch;
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  background:
    radial-gradient(circle at top right, rgba(246, 182, 75, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(12, 24, 43, 0.95), rgba(7, 14, 26, 0.92));
}

.landing-final h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 0.94;
  max-width: 16ch;
}

.landing-final-link {
  text-decoration: none;
  white-space: nowrap;
}

.google-sign-in-button {
  gap: 0.78rem;
  min-width: min(100%, 320px);
  justify-content: flex-start;
  padding: 0.72rem 1.15rem;
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff, #f3f6fb);
  color: #132238;
  box-shadow:
    0 16px 34px rgba(7, 15, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.google-sign-in-button:hover {
  border-color: rgba(66, 133, 244, 0.32);
  background: linear-gradient(180deg, #ffffff, #eef4ff);
}

.google-sign-in-button:focus-visible {
  outline: 2px solid rgba(98, 217, 248, 0.82);
  outline-offset: 3px;
}

.google-sign-in-mark {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.google-sign-in-mark svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

body[data-reduce-motion="true"] [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-reduce-motion="true"] .landing-visual-main {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-visual-main {
    transform: none;
  }
}

@media (max-width: 1260px) {
  .auth-shell {
    width: min(1320px, calc(100% - 1.25rem));
  }

  .landing-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .auth-card {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
    grid-template-areas:
      "eyebrow status"
      "title status"
      "copy legal";
  }

  .landing-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
    max-width: 52rem;
  }

  .landing-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-story-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .landing-nav {
    align-items: start;
    flex-direction: column;
  }

  .landing-nav-tools {
    width: 100%;
    justify-content: space-between;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "auth";
  }

  .landing-hero-copy {
    max-width: none;
    padding-top: 0.75rem;
  }

  .landing-hero-visual {
    min-height: 0;
    gap: 0.8rem;
  }

  .landing-visual-main {
    transform: none;
  }

  .landing-floating-card {
    position: static;
    max-width: none;
  }

  .landing-story-grid,
  .landing-support-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 1rem;
    padding: 1.1rem;
  }

  .auth-card > .eyebrow,
  .auth-card h2,
  #auth-copy,
  .auth-status-stack,
  .legal-disclaimer {
    grid-area: auto;
    justify-self: start;
    max-width: none;
  }

  .landing-section-head {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    align-items: start;
    gap: 0.42rem;
  }

  .landing-section-head > .eyebrow,
  .landing-section-head h2,
  .landing-section-head .section-text {
    grid-area: auto;
    justify-self: start;
    max-width: none;
    padding-bottom: 0;
  }

  .landing-story-grid > :last-child {
    grid-column: auto;
  }

  .landing-final {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 0.5rem 0 6rem;
  }

  .landing-nav,
  .landing-hero-visual,
  .auth-card,
  .landing-showcase-card,
  .landing-support-card,
  .landing-support-media,
  .landing-final {
    border-radius: 24px;
  }

  .landing-nav-tools {
    gap: 0.65rem;
    justify-content: flex-start;
  }

  .auth-language-switcher {
    justify-self: start;
  }

  .landing-hero-copy {
    padding: 0.6rem 0 0;
  }

  .landing-hero-copy h1 {
    max-width: 10.5ch;
  }

  .landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .google-sign-in-button,
  .landing-final-link {
    width: 100%;
    justify-content: center;
  }

  .landing-proof-list p,
  .landing-showcase-card,
  .landing-support-card,
  .landing-support-media {
    padding: 0.95rem;
  }

  .landing-section-head {
    padding-left: 0;
    padding-right: 0;
  }
}

.app-auth-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.2rem 1.25rem;
  margin-bottom: 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(98, 217, 248, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 22, 39, 0.96), rgba(6, 15, 28, 0.94));
}

.app-auth-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.02;
}

.app-auth-copy .section-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(220, 236, 255, 0.78);
}

.app-auth-side {
  display: grid;
  gap: 0.8rem;
  justify-items: stretch;
}

.app-auth-status-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(173, 212, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 20, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.app-auth-status-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 236, 255, 0.56);
}

.app-auth-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(173, 212, 255, 0.18);
  background: rgba(173, 212, 255, 0.08);
  color: #e8f4ff;
  font-size: 0.95rem;
  line-height: 1;
}

.app-auth-status-badge[data-tone="success"] {
  border-color: rgba(114, 255, 205, 0.28);
  background: rgba(114, 255, 205, 0.11);
  color: #d5fff1;
}

.app-auth-status-badge[data-tone="trial"] {
  border-color: rgba(246, 182, 75, 0.28);
  background: rgba(246, 182, 75, 0.12);
  color: #fff0cd;
}

.app-auth-status-badge[data-tone="warning"] {
  border-color: rgba(255, 184, 107, 0.3);
  background: rgba(255, 184, 107, 0.12);
  color: #ffe4b6;
}

.app-auth-status-badge[data-tone="danger"] {
  border-color: rgba(255, 127, 127, 0.28);
  background: rgba(255, 127, 127, 0.12);
  color: #ffd9d9;
}

.app-auth-status-badge[data-tone="info"] {
  border-color: rgba(132, 187, 255, 0.28);
  background: rgba(132, 187, 255, 0.12);
  color: #e2f0ff;
}

.app-auth-status-detail {
  margin: 0;
  color: rgba(220, 236, 255, 0.86);
  line-height: 1.45;
}

.app-auth-stats,
.app-auth-meta,
.app-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-auth-meta {
  justify-content: flex-start;
}

.app-auth-actions {
  align-items: center;
}

.subscriber-shell {
  display: grid;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(98, 217, 248, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 24, 43, 0.95), rgba(8, 17, 31, 0.9));
}

.subscriber-shell-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.subscriber-shell-head h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.subscriber-status {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: end;
}

.subscriber-page-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
  padding: 0.35rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 22px;
  background: rgba(5, 12, 23, 0.42);
}

.subscriber-page-tab {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: rgba(143, 192, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.subscriber-page-tab-icon {
  display: none;
}

.subscriber-page-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(98, 217, 248, 0.22);
  background: rgba(98, 217, 248, 0.08);
}

.subscriber-page-tab.is-active {
  border-color: rgba(246, 182, 75, 0.3);
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.16), rgba(98, 217, 248, 0.08)),
    rgba(8, 18, 34, 0.76);
}

.subscriber-page-tab strong {
  font-size: 0.95rem;
}

.subscriber-page-tab span {
  color: var(--muted);
  font-size: 0.78rem;
}

.subscriber-page-body {
  display: grid;
  gap: 1rem;
}

.subscriber-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 0.85rem;
  align-items: start;
}

.subscriber-focus-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.subscriber-flow-actions,
.subscriber-results-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subscriber-flow-actions {
  grid-template-columns: repeat(3, max-content);
  align-items: center;
}

.subscriber-step-list,
.subscriber-highlight-card,
.subscriber-result-column,
.subscriber-result-card {
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(8, 18, 34, 0.54);
}

.subscriber-highlight-card,
.subscriber-result-card,
.subscriber-result-column {
  display: grid;
  gap: 0.75rem;
}

.subscriber-step-list {
  display: grid;
  gap: 0.6rem;
}

.subscriber-step-list ol {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.subscriber-step-row {
  display: grid;
  gap: 0.18rem;
  padding: 0.58rem 0 0;
}

.subscriber-step-row:first-child {
  padding-top: 0;
}

.subscriber-step-row + .subscriber-step-row {
  border-top: 1px solid rgba(143, 192, 255, 0.12);
}

.subscriber-result-column {
  align-content: start;
  grid-template-rows: auto 1fr;
}

.subscriber-step-row strong,
.subscriber-highlight-card h3,
.subscriber-result-title strong,
.subscriber-result-column h3 {
  display: block;
  margin: 0 0 0.35rem;
}

.subscriber-step-row p,
.subscriber-highlight-card p,
.subscriber-result-copy,
.subscriber-result-column p {
  margin: 0;
  color: var(--muted);
}

.subscriber-highlight-card h3,
.subscriber-result-title strong {
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.2rem;
}

.subscriber-highlight-card {
  background: linear-gradient(180deg, rgba(246, 182, 75, 0.12), rgba(8, 18, 34, 0.78));
  border-color: rgba(246, 182, 75, 0.28);
}

.subscriber-legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

body[data-experience="user"] .subscriber-shell,
body[data-experience="user"] .subscriber-results-shell {
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

body[data-experience="user"] .subscriber-shell {
  gap: 0.85rem;
  background: rgba(8, 18, 34, 0.78);
}

body[data-experience="user"] .subscriber-shell-head {
  align-items: center;
}

body[data-experience="user"] .subscriber-shell-head h2 {
  font-size: 1.45rem;
}

body[data-experience="user"] .subscriber-shell-head .section-text {
  max-width: 68ch;
}

body[data-experience="user"] .subscriber-status {
  flex: 0 0 auto;
}

body[data-experience="user"] .subscriber-page-nav {
  display: flex;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  padding: 0.25rem;
}

body[data-experience="user"] .subscriber-page-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  white-space: nowrap;
  border-radius: 6px;
  padding: 0.5rem 0.72rem;
}

body[data-experience="user"] .subscriber-page-tab span {
  display: none;
}

body[data-experience="user"] .subscriber-highlight-card,
body[data-experience="user"] .subscriber-step-list,
body[data-experience="user"] .subscriber-result-column,
body[data-experience="user"] .subscriber-result-card,
body[data-experience="user"] .subscriber-paywall-card,
body[data-experience="user"] .subscriber-plan-card,
body[data-experience="user"] .subscriber-account-card,
body[data-experience="user"] .draft-storage-save-card,
body[data-experience="user"] .draft-storage-table,
body[data-experience="user"] .draft-storage-row,
body[data-experience="user"] .custom-rule-table,
body[data-experience="user"] .custom-rule-row,
body[data-experience="user"] .custom-rule-default-card {
  border-radius: 8px;
}

body[data-experience="user"] .app-header-action {
  display: none !important;
}

body[data-experience="user"] .app-header {
  grid-template-columns: minmax(160px, auto) 1fr auto;
}

body[data-experience="user"] .app-header-tools {
  min-width: 0;
}

body[data-experience="user"] .subscriber-flow-actions {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

body[data-experience="user"] .subscriber-results-shell .section-head .section-text {
  display: none;
}

body[data-experience="user"] .subscriber-results-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

body[data-experience="user"] .subscriber-result-column:first-child {
  grid-row: span 2;
}

.subscriber-paywall-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(246, 182, 75, 0.24);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.14), rgba(8, 18, 34, 0.86));
}

.subscriber-plan-grid {
  display: grid;
  gap: 0.85rem;
}

.subscriber-payment-history {
  display: grid;
  gap: 0.85rem;
}

.subscriber-plan-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.subscriber-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(8, 18, 34, 0.42);
}

.subscriber-plan-card.is-featured {
  border-color: rgba(246, 182, 75, 0.24);
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.14), rgba(8, 18, 34, 0.86));
}

.subscriber-plan-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.subscriber-paywall-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.2rem;
}

.subscriber-plan-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.2rem;
}

.subscriber-paywall-card p {
  margin: 0;
  color: var(--muted);
}

.subscriber-plan-card p {
  margin: 0;
  color: var(--muted);
}

.subscriber-paywall-card.is-muted {
  border-color: rgba(143, 192, 255, 0.14);
  background: rgba(8, 18, 34, 0.42);
}

.subscriber-support-note {
  align-items: start;
}

.subscriber-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  background: rgba(8, 18, 34, 0.34);
}

.subscriber-account-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.subscriber-account-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.app-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  max-width: 14rem;
  border: 1px solid rgba(173, 212, 255, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.72rem 0.28rem 0.32rem;
  background: rgba(9, 19, 34, 0.72);
  color: var(--text);
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: rgba(98, 217, 248, 0.32);
  background: rgba(98, 217, 248, 0.1);
}

.account-menu-name {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--type-body-sm);
  font-weight: 800;
}

.account-avatar {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.18), rgba(98, 217, 248, 0.12));
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.account-avatar.is-large {
  width: 3rem;
  height: 3rem;
  flex-basis: 3rem;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 140;
  width: min(24rem, calc(100vw - 1rem));
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(7, 16, 30, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.account-menu-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.account-menu-head h3,
.account-menu-head p {
  margin: 0;
}

.account-menu-head h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.account-menu-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
}

.account-menu-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.5rem;
}

.account-menu-note {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.account-avatar-picker {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid rgba(143, 192, 255, 0.12);
  padding-top: 0.8rem;
}

.account-avatar-picker label {
  display: grid;
  gap: 0.35rem;
  color: rgba(220, 236, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-avatar-picker input {
  width: 100%;
  border: 1px solid rgba(173, 212, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 19, 34, 0.88);
  color: var(--text);
  padding: 0.54rem 0.65rem;
}

.account-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: 0.42rem;
  max-height: 17rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.account-avatar-option {
  cursor: pointer;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  border: 1px solid rgba(143, 192, 255, 0.12);
  border-radius: 8px;
  padding: 0.48rem 0.35rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.account-avatar-option:hover,
.account-avatar-option.is-selected {
  border-color: rgba(246, 182, 75, 0.34);
  background: rgba(246, 182, 75, 0.12);
}

.account-avatar-option span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.account-avatar-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.subscriber-paywall-actions {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.subscriber-payment-history-shell {
  overflow: auto;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 18, 34, 0.42);
}

.subscriber-payment-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.subscriber-payment-history-table th,
.subscriber-payment-history-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(143, 192, 255, 0.1);
  vertical-align: top;
  text-align: left;
}

.subscriber-payment-history-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  background: rgba(8, 18, 34, 0.92);
}

.subscriber-payment-history-table tr:last-child td {
  border-bottom: 0;
}

.subscriber-payment-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.draft-storage-page {
  display: grid;
  gap: 0.85rem;
}

.draft-storage-list {
  display: grid;
}

.draft-storage-save-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(8, 18, 34, 0.5);
}

.draft-storage-save-card {
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: start;
  border-color: rgba(246, 182, 75, 0.24);
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.12), rgba(8, 18, 34, 0.78));
}

.draft-storage-save-card h3,
.draft-storage-history-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.2rem;
}

.draft-storage-draft-cell h3 {
  margin: 0 0 0.32rem;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
}

.draft-storage-save-card p,
.draft-storage-history-card p {
  margin: 0;
  color: var(--muted);
}

.draft-storage-save-controls {
  display: grid;
  gap: 0.75rem;
}

.draft-storage-field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.draft-storage-field select,
.draft-storage-field textarea {
  width: 100%;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 14, 26, 0.82);
  color: var(--text);
  font: inherit;
}

.draft-storage-field select {
  min-height: 2.6rem;
  padding: 0 0.75rem;
}

.draft-storage-field textarea {
  min-height: 4.4rem;
  padding: 0.75rem;
  resize: vertical;
}

.draft-storage-table {
  overflow: auto;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 18, 34, 0.42);
}

.draft-storage-table-head,
.draft-storage-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.05fr)
    minmax(145px, 0.85fr)
    minmax(145px, 0.85fr)
    minmax(145px, 0.85fr)
    minmax(230px, 1.15fr)
    minmax(190px, 0.9fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 1080px;
}

.draft-storage-table-head {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(143, 192, 255, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-storage-row {
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid rgba(143, 192, 255, 0.1);
}

.draft-storage-row:last-child {
  border-bottom: 0;
}

.draft-storage-row > * {
  min-width: 0;
}

.draft-storage-draft-cell,
.draft-storage-hero-cell {
  display: grid;
  gap: 0.38rem;
}

.draft-storage-draft-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.draft-storage-cell-label {
  display: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-storage-avatar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 2rem;
}

.draft-storage-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(8, 18, 34, 0.78);
}

.draft-storage-avatar + .draft-storage-avatar {
  margin-left: -0.38rem;
}

.draft-storage-avatar-row.is-empty {
  align-items: center;
}

.draft-storage-empty-avatar {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.draft-storage-hero-cell strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-storage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.draft-storage-actions .action-link {
  margin-left: 0;
}

.draft-storage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.draft-storage-summary-grid div {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(143, 192, 255, 0.12);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(7, 14, 26, 0.42);
}

.draft-storage-summary-grid span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.draft-storage-summary-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.custom-rules-panel,
.custom-rules-page {
  display: grid;
  gap: 0.85rem;
}

.custom-rule-editor-card {
  display: block;
}

.custom-rule-form {
  display: grid;
  gap: 0.85rem;
}

.custom-rule-form h3,
.custom-rule-default-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.custom-rule-form p,
.custom-rule-default-card p {
  margin: 0;
  color: var(--muted);
}

.custom-rule-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.draft-storage-field input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 14, 26, 0.82);
  color: var(--text);
  font: inherit;
}

.custom-rule-inline-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.custom-rule-enabled-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  margin-top: 1.32rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.custom-rule-enabled-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.custom-rule-form-actions,
.custom-rule-default-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.custom-rule-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-rule-library {
  display: grid;
  gap: 0.85rem;
}

.custom-rule-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.custom-rule-library-head h3 {
  margin: 0 0 0.35rem;
}

.custom-rule-library-head p {
  margin: 0;
  color: var(--muted);
}

.custom-rule-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(140px, 0.72fr)
    minmax(140px, 0.72fr)
    minmax(160px, 0.8fr)
    minmax(86px, 0.36fr);
  gap: 0.7rem;
  align-items: end;
}

.custom-rule-toolbar .draft-storage-field {
  min-width: 0;
}

.custom-rule-toolbar input,
.custom-rule-toolbar select {
  min-width: 0;
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 14, 26, 0.82);
  color: var(--text);
  font: inherit;
  padding: 0 0.72rem;
}

.custom-rule-toolbar select {
  appearance: auto;
}

.custom-rule-toolbar option {
  color: #08111f;
  background: #f5efe4;
}

.custom-rule-table {
  overflow: auto;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 18, 34, 0.42);
}

.custom-rule-table-head,
.custom-rule-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.2fr)
    minmax(160px, 0.8fr)
    minmax(80px, 0.38fr)
    minmax(220px, 1fr)
    minmax(190px, 0.8fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 920px;
}

.custom-rule-table-head {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(143, 192, 255, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-rule-row {
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid rgba(143, 192, 255, 0.1);
}

.custom-rule-row:last-child {
  border-bottom: 0;
}

.custom-rule-row.is-disabled,
.custom-rule-default-card.is-disabled {
  opacity: 0.68;
}

.custom-rule-main {
  display: grid;
  gap: 0.28rem;
}

.custom-rule-pill-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.custom-rule-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.custom-rule-pagination {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.65rem;
}

.custom-rule-pagination p {
  margin: 0;
}

.custom-rule-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.custom-rule-pagination-controls span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.custom-rule-editor-backdrop,
.custom-rule-editor-dialog {
  position: fixed;
}

.custom-rule-editor-backdrop {
  inset: 0;
  z-index: 70;
  background: rgba(3, 8, 15, 0.68);
  backdrop-filter: blur(12px);
}

.custom-rule-editor-dialog {
  z-index: 71;
  top: 50%;
  left: 50%;
  width: min(880px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 8px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.98), rgba(7, 15, 28, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.custom-rule-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.custom-rule-editor-head .eyebrow {
  margin: 0;
}

.modal-close-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 192, 255, 0.16);
  background: rgba(7, 14, 26, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.modal-close-button:hover:not(:disabled),
.modal-close-button:focus-visible {
  outline: none;
  border-color: rgba(246, 182, 75, 0.34);
  background: rgba(246, 182, 75, 0.13);
  color: var(--text);
}

.modal-close-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.custom-rule-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.custom-rule-default-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  border: 1px solid rgba(143, 192, 255, 0.14);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(8, 18, 34, 0.5);
}

.hero-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 1rem;
}

.hero-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.74);
  backdrop-filter: blur(14px);
}

.hero-picker-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 8px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.98), rgba(7, 15, 28, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.hero-picker-head,
.hero-picker-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-picker-head h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 1.3rem;
}

.hero-picker-search-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.8rem;
  border: 1px solid rgba(143, 192, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 14, 26, 0.86);
  color: var(--text);
  font: inherit;
  padding: 0 0.82rem;
}

.hero-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.hero-picker-option {
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-width: 0;
  padding: 0.58rem;
  border-radius: 8px;
  border: 1px solid rgba(143, 192, 255, 0.12);
  background: rgba(8, 18, 34, 0.58);
  color: var(--text);
  text-align: left;
}

.hero-picker-option:hover,
.hero-picker-option:focus-visible,
.hero-picker-option.is-selected {
  outline: none;
  border-color: rgba(246, 182, 75, 0.36);
  background: rgba(246, 182, 75, 0.11);
}

.hero-picker-option span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.hero-picker-option strong,
.hero-picker-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-picker-option small {
  color: var(--muted);
  font-size: 0.74rem;
}

.subscriber-highlight-actions,
.subscriber-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subscriber-results-shell {
  margin-bottom: 0.9rem;
  padding: 1.05rem 1.1rem;
  overflow: visible;
}

.subscriber-side-switch {
  justify-content: center;
  align-items: center;
  margin: 1.15rem 0 1.25rem;
}

.panel.subscriber-results-shell {
  overflow: visible;
}

.subscriber-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subscriber-result-column {
  padding: 0.85rem;
  background: rgba(7, 14, 26, 0.38);
}

.subscriber-simple-list {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.subscriber-side-result-group {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.subscriber-side-result-group + .subscriber-side-result-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.subscriber-side-result-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscriber-result-card {
  position: relative;
  overflow: visible;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 100%;
}

.subscriber-result-hero {
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.subscriber-team-lead {
  display: grid;
  gap: 0.2rem;
}

.subscriber-result-title {
  display: grid;
  gap: 0.16rem;
}

.subscriber-result-title span,
.subscriber-result-kicker {
  color: var(--muted);
}

.subscriber-result-kicker {
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscriber-result-copy {
  line-height: 1.5;
}

.subscriber-result-actions {
  margin-top: auto;
  align-items: end;
}

.subscriber-lineup-block {
  display: grid;
  gap: 0.55rem;
}

.subscriber-lineup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.subscriber-lineup-label {
  margin: 0;
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.subscriber-lineup-hint {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.subscriber-lineup-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subscriber-lineup-card {
  position: relative;
  display: grid;
  gap: 0;
}

.subscriber-lineup-card.is-open {
  z-index: 30;
}

.subscriber-lineup-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 26, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--type-body-sm);
}

.subscriber-lineup-chip .hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.subscriber-lineup-chip .hero-avatar.is-inline {
  flex: 0 0 auto;
}

.subscriber-lineup-meta {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  text-align: left;
}

.subscriber-lineup-lane {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subscriber-lineup-name {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.15;
}

.subscriber-lineup-chip.is-button {
  position: relative;
  z-index: 2;
  cursor: pointer;
  border: 1px solid rgba(143, 192, 255, 0.22);
  text-align: left;
  font: inherit;
}

.subscriber-lineup-chip.is-button:hover,
.subscriber-lineup-chip.is-button:focus-visible,
.subscriber-lineup-card.is-open .subscriber-lineup-chip.is-button {
  border-color: rgba(143, 192, 255, 0.5);
  background: rgba(26, 50, 84, 0.7);
  outline: none;
}

.subscriber-lineup-actions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.48rem);
  left: 0;
  right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  width: max-content;
  min-width: min(16rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 0.55rem;
  border: 1px solid rgba(143, 192, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(11, 27, 47, 0.98), rgba(7, 14, 26, 0.96)),
    rgba(8, 18, 34, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.28rem) scale(0.96);
  transform-origin: top center;
  transition:
    visibility 0ms linear 180ms,
    opacity 160ms ease,
    transform 180ms ease;
}

.subscriber-lineup-card:nth-child(even) .subscriber-lineup-actions {
  right: 0;
  left: auto;
}

.subscriber-lineup-actions::before {
  content: "";
  position: absolute;
  top: -0.38rem;
  left: 1.1rem;
  width: 0.72rem;
  height: 0.72rem;
  border-left: 1px solid rgba(143, 192, 255, 0.2);
  border-top: 1px solid rgba(143, 192, 255, 0.2);
  background: rgba(11, 27, 47, 0.98);
  transform: rotate(45deg);
}

.subscriber-lineup-card:nth-child(even) .subscriber-lineup-actions::before {
  right: 1.1rem;
  left: auto;
}

.subscriber-lineup-card.is-open .subscriber-lineup-actions {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.subscriber-lineup-actions .action-link {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.62rem 0.78rem;
  justify-content: center;
  white-space: nowrap;
}

.subscriber-lineup-action {
  border-radius: 12px;
  font-weight: 800;
}

.subscriber-lineup-action.is-pick {
  border-color: rgba(87, 220, 163, 0.34);
  background: linear-gradient(135deg, rgba(87, 220, 163, 0.28), rgba(56, 145, 112, 0.18));
  color: #eafff7;
}

.subscriber-lineup-action.is-pick:hover {
  border-color: rgba(87, 220, 163, 0.52);
  background: linear-gradient(135deg, rgba(87, 220, 163, 0.36), rgba(56, 145, 112, 0.24));
}

.subscriber-lineup-action.is-unavailable {
  border-color: rgba(246, 182, 75, 0.34);
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.24), rgba(150, 105, 43, 0.16));
  color: #fff5dc;
}

.subscriber-lineup-action.is-unavailable:hover {
  border-color: rgba(246, 182, 75, 0.52);
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.32), rgba(150, 105, 43, 0.22));
}

.subscriber-lineup-action.is-ban {
  border-color: rgba(255, 127, 114, 0.34);
  background: linear-gradient(135deg, rgba(255, 127, 114, 0.24), rgba(139, 50, 58, 0.2));
  color: #ffe8e5;
}

.subscriber-lineup-action.is-ban:hover {
  border-color: rgba(255, 127, 114, 0.54);
  background: linear-gradient(135deg, rgba(255, 127, 114, 0.34), rgba(139, 50, 58, 0.26));
}

.subscriber-toggle {
  justify-self: start;
}

.panel {
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.92), rgba(7, 15, 28, 0.84));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.draft-panel,
.atlas-panel,
.intel-panel {
  overflow: clip;
}

[hidden] {
  display: none !important;
}

body[data-experience="user"] .admin-only,
body[data-experience="user"] .admin-advanced {
  display: none !important;
}

body[data-experience="user"] {
  background: linear-gradient(180deg, #0b1424 0%, #08111f 48%, #060b14 100%);
}

body[data-experience="user"]::before,
body[data-experience="user"]::after {
  display: none;
}

body[data-experience="user"] .page-shell {
  width: min(1400px, calc(100% - 2rem));
}

body[data-experience="user"] .app-auth-banner,
body[data-experience="user"] .page-hero {
  display: none !important;
}

body[data-experience="user"] .page-hero .hero-copy .eyebrow::after {
  content: " Subscriber";
}

.page-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.6fr auto;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.9rem;
}

.hero-copy h1,
.section-head h2,
.detail-title-block h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: var(--type-hero-title);
  line-height: 0.96;
  max-width: 12ch;
}

.detail-title-block h2 {
  font-size: var(--type-detail-title);
  line-height: 1.02;
}

.hero-text,
.section-text,
.load-status,
.detail-muted,
.metric-card span,
.team-slot-copy small,
.tiny-metric,
.meta-pill,
.warning-pill {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: end;
  flex-wrap: wrap;
}

.page-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0 0.4rem;
}

.footer-link,
.footer-version {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 140ms ease,
    border-color 140ms ease;
}

.footer-link:hover {
  color: var(--text);
  border-color: rgba(245, 239, 228, 0.36);
}

.footer-version {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(173, 212, 255, 0.18);
}

.action-button,
.upload-button,
.team-slot,
.hero-card,
.compare-hero-chip,
.filter-chip,
.relation-chip,
.official-matchup-card,
.lock-field select {
  border: 1px solid transparent;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.action-button,
.upload-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--button-primary-text);
  -webkit-text-fill-color: var(--button-primary-text);
  background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  box-shadow:
    0 12px 28px rgba(246, 182, 75, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.action-button:disabled,
.upload-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.action-button:hover,
.upload-button:hover,
.team-slot:hover,
.hero-card:hover,
.compare-hero-chip:hover,
.official-matchup-card:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.load-status {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.2rem;
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .app-view-nav {
    display: none;
  }

  .subscriber-shell-head,
  .subscriber-focus-layout,
  .subscriber-flow-actions,
  .subscriber-results-grid {
    grid-template-columns: 1fr;
  }

  .subscriber-shell-head {
    display: grid;
  }

  .subscriber-status {
    justify-content: start;
  }

  .subscriber-paywall-card {
    display: grid;
  }

  .draft-storage-save-card,
  .draft-storage-summary-grid,
  .custom-rule-form-grid,
  .custom-rule-summary,
  .custom-rule-library-head,
  .custom-rule-toolbar {
    grid-template-columns: 1fr;
  }

  .custom-rule-enabled-toggle {
    margin-top: 0;
  }

  .draft-storage-table,
  .custom-rule-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .draft-storage-table-head,
  .custom-rule-table-head {
    display: none;
  }

  .draft-storage-list,
  .custom-rule-list {
    display: grid;
    gap: 0.75rem;
  }

  .draft-storage-row,
  .custom-rule-row {
    min-width: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
    border: 1px solid rgba(143, 192, 255, 0.14);
    border-radius: 14px;
    background: rgba(8, 18, 34, 0.42);
  }

  .draft-storage-cell-label {
    display: block;
  }

  .custom-rule-pagination {
    display: grid;
  }

  .custom-rule-pagination-controls {
    justify-content: start;
  }

  .draft-storage-hero-cell strong {
    white-space: normal;
  }

  .draft-storage-actions {
    justify-content: stretch;
  }

  .draft-storage-actions .action-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .subscriber-page-nav {
    grid-template-columns: 1fr;
  }

  .hero-picker-overlay {
    align-items: end;
    padding: 0.55rem;
  }

  .hero-picker-dialog {
    max-height: calc(100vh - 1.1rem);
  }

  .hero-picker-head,
  .hero-picker-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-picker-grid {
    grid-template-columns: 1fr;
  }

  .custom-rule-editor-dialog {
    top: auto;
    bottom: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    width: auto;
    max-height: calc(100vh - 1.1rem);
    transform: none;
  }

  body[data-experience="user"] .subscriber-page-nav {
    width: 100%;
  }

  body[data-experience="user"] .subscriber-page-tab {
    flex: 1 0 auto;
    justify-content: center;
  }

  body[data-experience="user"] .subscriber-results-grid,
  body[data-experience="user"] .subscriber-result-column:first-child {
    grid-template-columns: 1fr;
    grid-row: auto;
  }

  .subscriber-plan-choices {
    grid-template-columns: 1fr;
  }

  .subscriber-plan-card,
  .subscriber-account-card {
    display: grid;
  }

  .subscriber-paywall-actions {
    justify-items: stretch;
  }

  .subscriber-payment-history-table {
    min-width: 640px;
  }

  .subscriber-flow-actions {
    justify-items: stretch;
  }

  .subscriber-lineup-list {
    grid-template-columns: 1fr;
  }

}

.load-status[data-state="error"] {
  color: #ffd1cb;
}

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

.overview-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.metric-card {
  grid-column: span 3;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 0.85rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-family: "Iowan Old Style", "Georgia", serif;
  line-height: 1;
}

.metric-card.is-wide {
  grid-column: span 6;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.55rem;
}

.micro-stat {
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.micro-stat span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--type-body-sm);
}

.micro-stat strong {
  margin: 0;
  font-size: 1.04rem;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head > div,
.subsection-head > div,
.result-section-head > div {
  display: grid;
  gap: 0.12rem;
}

.section-head h2 {
  font-size: var(--type-section-title);
  line-height: 1.02;
}

.section-text {
  max-width: 44ch;
  margin: 0;
  font-size: var(--type-body-md);
  line-height: 1.45;
}

.intel-panel {
  margin-bottom: 0.9rem;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
}

.intel-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.74);
}

.intel-card > .subsection-head:first-child {
  margin-top: 0;
  padding: 0.95rem 1rem 0.15rem;
  border-top: 0;
}

.decision-delta,
.compare-tray,
.session-status,
.draft-history {
  padding: 0 1rem 1rem;
}

.decision-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(98, 217, 248, 0.16);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.08), transparent 58%),
    rgba(7, 14, 26, 0.58);
}

.decision-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.15;
}

.decision-card p:last-of-type {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.decision-time {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.compare-tray-grid,
.history-list {
  display: grid;
  gap: 0.75rem;
}

.compare-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(7, 14, 26, 0.62);
}

.compare-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.compare-card-title strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  line-height: 1.12;
}

.compare-card-title p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.4;
}

.compare-metric-row,
.compare-action-row,
.compare-hero-row,
.card-utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.compare-hero-chip {
  cursor: pointer;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.session-actions {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 0.2rem;
}

.session-actions .action-link {
  margin-left: 0;
  justify-self: start;
}

.mode-toggle-compact {
  margin: 0;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 14, 26, 0.56);
}

.history-item.is-latest {
  border-color: rgba(246, 182, 75, 0.18);
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.08), transparent 56%),
    rgba(7, 14, 26, 0.6);
}

.history-rank {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 800;
}

.history-copy strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.history-copy p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.session-status .detail-muted {
  margin: 0.55rem 0 0;
}

.draft-settings {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.3rem;
}

.subsection-head,
.result-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.1rem;
}

.subsection-head {
  margin-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.subsection-head h3 {
  margin: 0;
  font-size: var(--type-subsection);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.result-section-head {
  position: relative;
  margin-top: 0.55rem;
  padding-top: 1.25rem;
}

.result-section-head::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.7rem;
  width: 3rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.result-section-head h3 {
  margin: 0;
  font-size: var(--type-result-title);
  font-family: "Iowan Old Style", "Georgia", serif;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.result-section-head.is-next-pick::before {
  background: rgba(98, 217, 248, 0.8);
}

.result-section-head.is-ban-suggestion::before {
  background: rgba(255, 127, 114, 0.8);
}

.result-section-head.is-team-results::before {
  background: rgba(246, 182, 75, 0.9);
}

.subsection-head p:last-child,
.result-section-head p:last-child {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.45;
}

.lock-grid,
.enemy-grid,
.ban-grid,
.pool-chip-row,
.slider-grid,
.mode-strip,
.composer-meta,
.next-pick-grid,
.ban-suggestion-grid,
.team-result-grid,
.atlas-toolbar,
.filter-row,
.hero-grid {
  padding-inline: 1.1rem;
}

.lock-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 0.7rem;
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.7rem;
}

.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mode-pill {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.58rem 0.9rem;
  font-size: var(--type-body-sm);
  font-weight: 700;
}

.mode-pill.is-active,
.mode-pill:hover {
  border-color: rgba(246, 182, 75, 0.28);
  background: rgba(246, 182, 75, 0.14);
  color: var(--text);
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.84rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mode-toggle input {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.mode-copy {
  display: grid;
  gap: 0.1rem;
}

.mode-copy strong {
  font-size: var(--type-body-md);
}

.mode-copy small {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.draft-mode-description {
  max-width: 72ch;
}

.draft-quick-actions,
.section-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.draft-quick-actions {
  padding: 0.2rem 1.1rem 0.95rem;
}

.share-launcher {
  padding: 0 1.1rem 1rem;
}

.share-launcher-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.08), rgba(246, 182, 75, 0.04) 58%, transparent 100%),
    rgba(7, 14, 26, 0.54);
}

.share-launcher-card.is-ready {
  border-color: rgba(98, 217, 248, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.share-launcher-copy {
  display: grid;
  gap: 0.3rem;
}

.share-launcher-side {
  display: grid;
  justify-items: end;
  gap: 0.8rem;
}

.share-launcher-copy strong {
  font-size: 0.98rem;
  line-height: 1.14;
}

.share-launcher-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.5;
}

.share-launcher-focus {
  color: var(--text) !important;
}

.share-launcher-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 0.45rem;
  max-width: 22rem;
}

.share-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.share-action-wrap {
  display: inline-flex;
}

.section-action-row {
  padding: 0 1.1rem 0.15rem;
}

.draft-quick-actions .action-link,
.section-action-row .action-link {
  margin-left: 0;
}

.enemy-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 0.7rem;
}

.ban-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 0.7rem;
}

.lock-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field-subrow {
  display: grid;
  gap: 0.35rem;
}

.field-subcopy {
  color: var(--muted);
  font-size: var(--type-body-sm);
  font-weight: 600;
}

.lock-field span,
.slider-field span {
  font-weight: 600;
}

.field-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45rem;
  min-width: 0;
}

.field-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  min-width: 0;
}

.field-label em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.field-icon {
  min-width: 2.8rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 217, 248, 0.22);
  background: rgba(98, 217, 248, 0.1);
  color: var(--cyan);
  text-align: center;
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
}

.field-icon.is-enemy {
  border-color: rgba(255, 127, 114, 0.2);
  background: rgba(255, 127, 114, 0.12);
  color: #ffd2ca;
}

.field-icon.is-ban {
  border-color: rgba(246, 182, 75, 0.24);
  background: rgba(246, 182, 75, 0.12);
  color: #ffe3ad;
}

.field-clear {
  cursor: pointer;
  justify-self: end;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.26rem 0.56rem;
  font-size: var(--type-eyebrow);
  line-height: 1;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.field-clear:hover:not(:disabled) {
  border-color: rgba(246, 182, 75, 0.26);
  background: rgba(246, 182, 75, 0.12);
  color: var(--text);
}

.field-clear:disabled {
  cursor: default;
  opacity: 0.42;
}

.hero-picker-trigger {
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0.5rem 0.62rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.hero-picker-trigger:hover,
.hero-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(246, 182, 75, 0.35);
  background: rgba(246, 182, 75, 0.09);
}

.hero-picker-trigger-avatar,
.hero-picker-option-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.hero-picker-empty-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(143, 192, 255, 0.18);
  background: rgba(143, 192, 255, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-picker-trigger-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.hero-picker-trigger-copy strong,
.hero-picker-trigger-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-picker-trigger-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.lock-field select,
.atlas-toolbar input,
.atlas-toolbar select {
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.68rem 0.78rem;
}

.lock-field select,
.atlas-toolbar select {
  appearance: auto;
}

.lock-field select option,
.lock-field select optgroup,
.atlas-toolbar select option,
.atlas-toolbar select optgroup {
  color: #08111f;
  background: #f5efe4;
}

.slider-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.8rem;
}

.slider-field {
  display: grid;
  gap: 0.55rem;
}

.slider-field strong {
  color: var(--gold);
}

.composer-meta {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
}

.recommendation-columns {
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
}

.recommendation-column {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.recommendation-column .composer-meta,
.recommendation-column .next-pick-grid,
.recommendation-column .ban-suggestion-grid,
.recommendation-column .team-result-grid,
.recommendation-column .result-section-head {
  padding-inline: 1rem;
}

.recommendation-column .composer-meta {
  padding-top: 1rem;
}

.recommendation-column .result-section-head::before {
  left: 1rem;
}

.meta-row,
.warning-stack,
.filter-row,
.badge-row,
.relation-summary,
.detail-chip-row,
.relation-strip,
.team-side-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-pill,
.warning-pill,
.filter-chip,
.badge,
.tiny-metric,
.relation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.76rem;
  line-height: 1;
}

.meta-pill,
.tiny-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.warning-pill {
  color: #ffd2ca;
  background: rgba(255, 127, 114, 0.12);
  border: 1px solid rgba(255, 127, 114, 0.18);
}

.meta-pill.is-enemy {
  background: rgba(255, 127, 114, 0.12);
  border: 1px solid rgba(255, 127, 114, 0.18);
  color: #ffd6cf;
}

.meta-pill.is-open {
  background: rgba(98, 217, 248, 0.12);
  border: 1px solid rgba(98, 217, 248, 0.16);
}

.meta-pill.is-ban {
  background: rgba(246, 182, 75, 0.12);
  border: 1px solid rgba(246, 182, 75, 0.24);
  color: #ffe3ad;
}

.meta-pill.is-not-owned,
.tiny-metric.is-not-owned {
  background: rgba(173, 212, 255, 0.12);
  border: 1px solid rgba(173, 212, 255, 0.2);
  color: #dcecff;
}

.meta-pill.is-off-meta,
.tiny-metric.is-off-meta {
  background: rgba(181, 138, 255, 0.14);
  border: 1px solid rgba(181, 138, 255, 0.24);
  color: #e4d0ff;
}

.pool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.7rem;
}

.empty-inline {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.52rem 0.72rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.34rem 0.34rem 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(173, 212, 255, 0.2);
  background: rgba(173, 212, 255, 0.09);
  color: #dcecff;
  font-size: var(--type-body-sm);
}

.pool-chip-clear {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  background: rgba(8, 17, 31, 0.4);
  color: var(--text);
  font-size: var(--type-eyebrow);
  line-height: 1;
}

.pool-chip-clear:hover {
  background: rgba(8, 17, 31, 0.6);
}

.next-pick-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 320px);
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1.1rem;
  padding-block: 0.9rem 1.1rem;
}

.ban-suggestion-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 320px);
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1.1rem;
  padding-block: 0.9rem 1.1rem;
}

.next-pick-grid::-webkit-scrollbar {
  height: 10px;
}

.next-pick-grid::-webkit-scrollbar-thumb,
.ban-suggestion-grid::-webkit-scrollbar-thumb {
  background: rgba(246, 182, 75, 0.22);
  border-radius: 999px;
}

.team-result-grid {
  display: grid;
  gap: 0.8rem;
  padding-block: 0.9rem 1.1rem;
}

.next-pick-grid,
.ban-suggestion-grid,
.team-result-grid {
  transition: opacity 140ms ease;
}

.next-pick-grid[data-busy="true"],
.ban-suggestion-grid[data-busy="true"],
.team-result-grid[data-busy="true"] {
  opacity: 0.92;
  pointer-events: none;
}

.next-pick-card,
.ban-suggestion-card,
.team-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.82rem;
}

.next-pick-card,
.ban-suggestion-card {
  height: 100%;
  scroll-snap-align: start;
}

.next-pick-card {
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(98, 217, 248, 0.14);
}

.ban-suggestion-card {
  background:
    linear-gradient(135deg, rgba(255, 127, 114, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 127, 114, 0.14);
}

.team-card {
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 182, 75, 0.14);
}

.pick-hero-button,
.team-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-card-head {
  margin-bottom: 0.7rem;
}

.pick-hero-button {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.7rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rank-pill,
.pick-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
}

.rank-pill {
  min-width: 1.7rem;
  background: rgba(246, 182, 75, 0.14);
  border: 1px solid rgba(246, 182, 75, 0.24);
  color: var(--gold);
  font-weight: 700;
}

.next-pick-card .rank-pill {
  background: rgba(98, 217, 248, 0.14);
  border-color: rgba(98, 217, 248, 0.24);
  color: var(--cyan);
}

.ban-suggestion-card .rank-pill {
  background: rgba(255, 127, 114, 0.14);
  border-color: rgba(255, 127, 114, 0.22);
  color: #ffd2ca;
}

.pick-meta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.team-score {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--gold);
  line-height: 1;
}

.team-rate {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.pick-title-wrap {
  display: grid;
  gap: 0.12rem;
}

.pick-title-wrap strong {
  font-size: var(--type-card-title);
  line-height: 1.1;
}

.pick-title-wrap span {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.soft-detail {
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1;
  padding: 0.16rem 0;
}

.team-slots {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-slot,
.hero-card {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.team-slot.is-off-meta {
  border-color: rgba(181, 138, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(181, 138, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.team-slot {
  display: grid;
  gap: 0.45rem;
  padding: 0.72rem 0.55rem;
  text-align: center;
  justify-items: center;
}

.team-slot-copy {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
}

.team-slot-copy small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.2;
}

.pick-action-row,
.pick-score-row,
.team-breakdown,
.pick-insight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.pick-action-row {
  margin-top: 0;
}

.lane-label {
  color: var(--cyan);
  font-size: var(--type-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: rgba(98, 217, 248, 0.12);
  border: 1px solid rgba(98, 217, 248, 0.16);
}

.hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(246, 182, 75, 0.18), rgba(98, 217, 248, 0.12));
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
}

.detail-head .hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-link {
  margin-left: auto;
  cursor: pointer;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 182, 75, 0.24);
  background: rgba(246, 182, 75, 0.12);
  color: var(--text);
  font-size: var(--type-body-sm);
}

.action-link:hover {
  border-color: rgba(246, 182, 75, 0.38);
  background: rgba(246, 182, 75, 0.2);
}

.action-link.is-share {
  border-color: rgba(98, 217, 248, 0.2);
  background: rgba(98, 217, 248, 0.13);
  color: #e2fbff;
}

.action-link.is-share:hover {
  border-color: rgba(98, 217, 248, 0.34);
  background: rgba(98, 217, 248, 0.2);
}

.action-link.is-secondary {
  margin-left: 0;
  border-color: rgba(173, 212, 255, 0.22);
  background: rgba(173, 212, 255, 0.09);
  color: #dcecff;
}

.action-link.is-secondary:hover {
  border-color: rgba(173, 212, 255, 0.34);
  background: rgba(173, 212, 255, 0.15);
}

.action-link:disabled {
  cursor: default;
  opacity: 0.45;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.compare-hero-chip:focus-visible {
  outline: none;
  border-color: rgba(98, 217, 248, 0.44);
  box-shadow:
    0 0 0 2px rgba(8, 17, 31, 0.95),
    0 0 0 4px rgba(98, 217, 248, 0.32);
}

.hero-avatar.is-fallback {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.relation-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.relation-chip.is-assist,
.badge-role {
  background: var(--cyan-soft);
  border-color: rgba(98, 217, 248, 0.2);
}

.relation-chip.is-weak {
  background: var(--red-soft);
  border-color: rgba(255, 127, 114, 0.2);
}

.relation-chip.is-strong,
.badge-lane {
  background: var(--gold-soft);
  border-color: rgba(246, 182, 75, 0.22);
}

.official-matchup-list {
  display: grid;
  gap: 0.6rem;
}

.official-matchup-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  font: inherit;
}

button.official-matchup-card {
  cursor: pointer;
}

.official-matchup-card .hero-avatar {
  width: 48px;
  height: 48px;
}

.official-matchup-card.is-strong {
  border-color: rgba(246, 182, 75, 0.18);
  background: rgba(246, 182, 75, 0.1);
}

.official-matchup-card.is-weak {
  border-color: rgba(255, 127, 114, 0.18);
  background: rgba(255, 127, 114, 0.1);
}

.official-matchup-rank {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: var(--type-body-sm);
  font-weight: 700;
}

.official-matchup-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.official-matchup-copy strong {
  line-height: 1.2;
}

.official-matchup-copy span,
.official-matchup-meta {
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.25;
}

.official-matchup-metrics {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  white-space: nowrap;
}

.official-matchup-score {
  font-size: 1.02rem;
  line-height: 1;
}

.matchup-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0.75rem;
}

.matchup-card {
  border-radius: 16px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.matchup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.matchup-lines {
  display: grid;
  gap: 0.42rem;
}

.matchup-line {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.matchup-line span {
  color: var(--muted);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.matchup-line strong {
  font-size: var(--type-body-sm);
  line-height: 1.28;
}

.matchup-line.is-strong {
  border-color: rgba(246, 182, 75, 0.18);
  background: rgba(246, 182, 75, 0.08);
}

.matchup-line.is-weak {
  border-color: rgba(255, 127, 114, 0.18);
  background: rgba(255, 127, 114, 0.08);
}

.atlas-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  margin-top: 1rem;
}

.atlas-toolbar {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1.4fr minmax(190px, 0.6fr);
  padding-top: 0.8rem;
}

.filter-row {
  padding-top: 0.8rem;
}

.filter-chip {
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.filter-chip.is-active,
.hero-card.is-active,
.team-slot:hover,
.hero-card:hover,
.filter-chip:hover,
.lock-field select:focus,
.atlas-toolbar input:focus,
.atlas-toolbar select:focus {
  outline: none;
  border-color: rgba(246, 182, 75, 0.35);
  background: rgba(246, 182, 75, 0.09);
}

.hero-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  padding-block: 0.8rem 1.1rem;
}

.hero-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.72rem;
  text-align: left;
}

.hero-card.is-not-owned {
  border-color: rgba(173, 212, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(173, 212, 255, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.04);
}

.hero-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-card-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
}

.hero-card-head span {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.team-slot-copy strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.team-slot-shell {
  display: grid;
  gap: 0.38rem;
}

.team-slot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.team-slot-actions .action-link {
  margin-left: 0;
  padding-inline: 0.6rem;
}

.detail-panel {
  min-height: 480px;
  position: sticky;
  top: 1rem;
}

.detail-shell,
.empty-state {
  padding: 1.1rem;
}

.detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.detail-title-block p:last-child {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: var(--type-body-md);
}

.detail-section {
  margin-top: 0.95rem;
}

.detail-section h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  line-height: 1.2;
}

.empty-state {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .metric-card,
  .metric-card.is-wide {
    grid-column: span 6;
  }

  .lock-grid,
  .enemy-grid,
  .ban-grid,
  .team-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .recommendation-columns {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) {
  .recommendation-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auth-shell {
    width: min(100% - 1rem, 100%);
  }

  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .app-header {
    top: 0.45rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.72rem;
  }

  .app-header-tools {
    justify-content: space-between;
    width: 100%;
  }

  .language-switcher {
    flex: 1 1 auto;
  }

  .language-switcher select {
    min-width: 0;
    width: 100%;
  }

  .app-auth-banner,
  .page-hero,
  .section-head,
  .subsection-head,
  .result-section-head,
  .team-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .overview-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .metric-card,
  .metric-card.is-wide {
    grid-column: span 1;
  }

  .lock-grid,
  .enemy-grid,
  .ban-grid,
  .slider-grid,
  .mode-strip,
  .draft-settings,
  .team-slots,
  .atlas-toolbar {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    width: 100%;
  }

  .app-auth-side {
    justify-items: stretch;
  }

  .app-auth-banner {
    gap: 0.95rem;
    padding: 1rem;
  }

  .app-auth-actions {
    justify-content: flex-start;
  }

  .mode-pill {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .next-pick-grid {
    grid-auto-columns: minmax(84vw, 84vw);
  }

  .ban-suggestion-grid {
    grid-auto-columns: minmax(84vw, 84vw);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .official-matchup-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .official-matchup-rank {
    display: none;
  }
}

/* First-pass draft console refresh */

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 182, 75, 0.22), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(98, 217, 248, 0.2), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #091120 0%, #07111f 36%, #040811 100%);
  background-size: auto, auto, 28px 28px, auto;
}

body::before {
  top: 8%;
  right: 4%;
  width: 22rem;
  height: 22rem;
  background: rgba(98, 217, 248, 0.13);
}

body::after {
  bottom: 4%;
  left: 2%;
  width: 18rem;
  height: 18rem;
  background: rgba(246, 182, 75, 0.12);
}

.page-shell {
  width: min(1480px, calc(100% - 2rem));
  padding: 1rem 0 2.8rem;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 22, 39, 0.95), rgba(7, 14, 26, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 48%);
  border-color: rgba(143, 192, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel.app-header {
  overflow: visible;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.045), transparent 28%);
}

.page-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  padding: 1.35rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at top left, rgba(246, 182, 75, 0.1), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(98, 217, 248, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(11, 21, 38, 0.98), rgba(7, 14, 26, 0.94));
}

.hero-copy h1 {
  max-width: 11ch;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-aside {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.hero-flare {
  display: grid;
  gap: 0.38rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(98, 217, 248, 0.18);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.03);
}

.hero-flare-kicker {
  color: var(--cyan);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-flare strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-flare p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.5;
}

.hero-actions {
  justify-content: flex-start;
  align-items: center;
}

.action-button,
.upload-button {
  box-shadow: 0 12px 28px rgba(246, 182, 75, 0.18);
}

.load-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  padding-top: 0.15rem;
  font-size: var(--type-body-sm);
}

.load-status::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 182, 75, 0.55);
}

.load-status[data-state="error"]::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 127, 114, 0.5);
}

.draft-hud {
  margin-bottom: 1rem;
}

.overview-grid {
  gap: 1rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 15, 28, 0.86);
  border-color: rgba(255, 255, 255, 0.06);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 34%);
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-card strong {
  margin-bottom: 0;
}

.metric-card-headline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.metric-card-headline strong {
  display: block;
  font-size: clamp(1.56rem, 2.6vw, 2.05rem);
  line-height: 0.98;
}

.metric-detail {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: var(--type-body-md);
  line-height: 1.5;
}

.hud-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 217, 248, 0.2);
  background: rgba(98, 217, 248, 0.12);
  color: #dff8ff;
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud-status-pill.is-gold {
  border-color: rgba(246, 182, 75, 0.24);
  background: rgba(246, 182, 75, 0.14);
  color: #ffe3ad;
}

.hud-status-pill.is-cyan {
  border-color: rgba(98, 217, 248, 0.2);
  background: rgba(98, 217, 248, 0.14);
  color: #dff8ff;
}

.metric-card.is-command {
  border-color: rgba(98, 217, 248, 0.16);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.1), transparent 52%),
    rgba(7, 15, 28, 0.88);
}

.metric-card.is-ally {
  border-color: rgba(98, 217, 248, 0.14);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.09), transparent 55%),
    rgba(7, 15, 28, 0.86);
}

.metric-card.is-opponent {
  border-color: rgba(255, 127, 114, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 127, 114, 0.08), transparent 55%),
    rgba(7, 15, 28, 0.86);
}

.metric-card.is-projection {
  border-color: rgba(246, 182, 75, 0.16);
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.1), transparent 54%),
    rgba(7, 15, 28, 0.88);
}

.metric-card.is-pool {
  border-color: rgba(143, 192, 255, 0.16);
}

.role-grid {
  margin-top: 0.6rem;
}

.draft-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 1rem;
  padding: 1rem 1.1rem 0.2rem;
}

.command-card,
.battle-side,
.battle-bans {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.78);
}

.command-card::before,
.battle-side::before,
.battle-bans::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.command-card.draft-settings {
  padding: 0 0 0.65rem;
}

.command-card.draft-settings::before {
  background: radial-gradient(circle at top left, rgba(246, 182, 75, 0.1), transparent 36%);
}

.command-card.draft-tuning {
  padding: 0 0 0.8rem;
  border-color: rgba(246, 182, 75, 0.12);
}

.command-card.draft-tuning::before {
  background: radial-gradient(circle at top right, rgba(246, 182, 75, 0.12), transparent 34%);
}

.command-card .subsection-head,
.battle-side > .subsection-head:first-child,
.battle-bans > .subsection-head:first-child {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 0;
}

.subsection-head.is-compact {
  padding-bottom: 0.3rem;
}

.draft-mode-description {
  max-width: none;
  padding-inline: 1.1rem;
}

.mode-switch {
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.mode-pill {
  min-width: 118px;
}

.mode-pill.is-active,
.mode-pill:hover {
  color: #08111f;
  background: linear-gradient(135deg, #f6b64b, #ffd87d);
  border-color: rgba(246, 182, 75, 0.34);
  box-shadow: 0 10px 22px rgba(246, 182, 75, 0.16);
}

.mode-toggle {
  min-height: 58px;
}

.draft-battlefield {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.1rem 0.35rem;
  align-items: start;
}

.battle-side-primary {
  border-color: rgba(98, 217, 248, 0.16);
}

.battle-side-primary::before {
  background: radial-gradient(circle at top left, rgba(98, 217, 248, 0.12), transparent 34%);
}

.battle-side-opponent {
  border-color: rgba(255, 127, 114, 0.16);
}

.battle-side-opponent::before {
  background: radial-gradient(circle at top right, rgba(255, 127, 114, 0.11), transparent 34%);
}

.battle-side-secondary {
  border-color: rgba(246, 182, 75, 0.16);
}

.battle-side-secondary::before,
.battle-bans::before {
  background: radial-gradient(circle at top left, rgba(246, 182, 75, 0.12), transparent 34%);
}

.battle-side .lock-grid,
.battle-side .enemy-grid,
.battle-side .pool-chip-row,
.battle-bans .ban-grid {
  padding-bottom: 1rem;
}

.battle-side .lock-grid,
.battle-side .enemy-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
}

.battle-side .lock-field {
  padding: 0.76rem;
}

.battle-side .field-label {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.32rem;
}

.battle-side .field-title {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
}

.battle-side .field-icon {
  justify-self: start;
}

.battle-side .field-label em {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.battle-side .field-clear {
  justify-self: end;
}

body[data-draft-mode="tournament"] .battle-side .lock-grid {
  gap: 0.55rem;
}

body[data-draft-mode="tournament"] .battle-side .lock-field {
  gap: 0.32rem;
  padding: 0.68rem;
}

body[data-draft-mode="tournament"] .battle-side .field-title {
  gap: 0.35rem;
}

body[data-draft-mode="tournament"] .battle-side .field-icon {
  min-width: 2.4rem;
  padding: 0.26rem 0.42rem;
}

body[data-draft-mode="tournament"] .battle-side .field-label em,
body[data-draft-mode="tournament"] .battle-side .field-subcopy {
  font-size: 0.74rem;
}

body[data-draft-mode="tournament"] .battle-side .field-clear {
  padding: 0.18rem 0.42rem;
  font-size: 0.6rem;
}

body[data-draft-mode="tournament"] .battle-side .lock-field select {
  min-height: 42px;
  padding: 0.58rem 0.62rem;
  font-size: 0.8rem;
}

.battle-bans {
  margin: 0.65rem 1.1rem 0.25rem;
}

.lock-field,
.slider-field {
  padding: 0.88rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.78);
}

.lock-field select,
.atlas-toolbar input,
.atlas-toolbar select {
  min-height: 46px;
  background: rgba(7, 14, 26, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.recommendation-columns {
  gap: 1rem;
  padding: 0.85rem 1.1rem 1.2rem;
}

.recommendation-column {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.recommendation-column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%);
}

body.has-desktop-dock .page-shell {
  padding-bottom: clamp(7.5rem, 16vh, 12rem);
}

body.has-desktop-dock[data-desktop-dock-expanded="true"] .page-shell {
  padding-bottom: clamp(15rem, 34vh, 24rem);
}

.desktop-dock {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 6;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 1rem 1.1rem 1.05rem;
  max-height: min(58vh, 30rem);
  overflow: hidden;
  border-color: rgba(246, 182, 75, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 30, 50, 0.96), rgba(8, 16, 30, 0.94)),
    rgba(8, 16, 30, 0.94);
}

.desktop-dock .action-link {
  margin-left: 0;
}

.desktop-dock-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.desktop-dock-title {
  display: grid;
  gap: 0.25rem;
}

.desktop-dock-title h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.05;
  font-family: "Iowan Old Style", "Georgia", serif;
}

.desktop-dock-summary {
  max-width: 68ch;
}

.desktop-dock-controls,
.dock-pill-row,
.desktop-dock-peek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.desktop-dock-controls {
  justify-content: end;
  align-items: center;
}

.dock-pill {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.5rem 0.82rem;
  font-size: var(--type-body-sm);
  font-weight: 700;
}

.dock-pill.is-active,
.dock-pill:hover {
  color: #08111f;
  border-color: rgba(246, 182, 75, 0.34);
  background: linear-gradient(135deg, #f6b64b, #ffd87d);
}

.desktop-dock-peek {
  padding-top: 0.8rem;
}

.desktop-dock-peek-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.desktop-dock-peek-card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.78rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.desktop-dock-peek-card.is-next {
  border-color: rgba(98, 217, 248, 0.18);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.desktop-dock-peek-card.is-team {
  border-color: rgba(246, 182, 75, 0.18);
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.11), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.desktop-dock-peek-card.is-ban {
  border-color: rgba(255, 127, 114, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 127, 114, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.desktop-dock-peek-title {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.desktop-dock-peek-title.is-static {
  cursor: default;
}

.desktop-dock-peek-title strong {
  display: block;
  font-size: 1rem;
  line-height: 1.12;
}

.desktop-dock-peek-title span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.35;
}

.desktop-dock-peek-card .hero-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.desktop-dock-body {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-dock-content {
  margin-top: 0.75rem;
  min-height: 0;
  overflow: auto;
}

.desktop-dock-results {
  padding-inline: 0;
}

.desktop-dock-results.next-pick-grid,
.desktop-dock-results.ban-suggestion-grid {
  padding-block: 0.1rem 0.25rem;
  grid-auto-columns: minmax(300px, 340px);
}

.desktop-dock-results.team-result-grid {
  padding-block: 0.2rem 0.1rem;
}

.recommendation-column > * {
  position: relative;
  z-index: 1;
}

.result-section-head {
  margin-top: 0.7rem;
  padding-top: 1.35rem;
}

.result-section-head::before {
  width: 4rem;
  height: 3px;
}

.next-pick-card,
.ban-suggestion-card,
.team-card,
.hero-card,
.hero-profile-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.next-pick-card::before,
.ban-suggestion-card::before,
.team-card::before,
.hero-card::before,
.hero-profile-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 32% 0;
  pointer-events: none;
  background-image: var(--hero-banner-image);
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  transform: scale(1.08);
  filter: saturate(1.08);
}

.next-pick-card::after,
.ban-suggestion-card::after,
.team-card::after,
.hero-profile-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.2), rgba(7, 14, 26, 0.72) 42%, rgba(7, 14, 26, 0.96));
}

.next-pick-card > *,
.ban-suggestion-card > *,
.team-card > *,
.hero-card > *,
.hero-profile-shell > * {
  position: relative;
  z-index: 1;
}

.next-pick-card,
.ban-suggestion-card,
.team-card {
  padding: 0.95rem;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pick-hero-button {
  align-items: center;
  gap: 0.9rem;
}

.pick-hero-button .hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
}

.pick-title-wrap strong {
  font-size: 1.12rem;
}

.hero-avatar {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-card {
  min-height: 260px;
  align-content: end;
  gap: 0.7rem;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(7, 14, 26, 0.05), rgba(7, 14, 26, 0.96) 62%),
    rgba(8, 16, 30, 0.82);
  border-color: rgba(255, 255, 255, 0.07);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 74%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 26, 0.32) 18%, rgba(7, 14, 26, 0.94) 62%);
}

.hero-card .hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.hero-card-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  right: 0.95rem;
  z-index: 2;
}

.hero-card-head span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-card.is-active {
  border-color: rgba(98, 217, 248, 0.34);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(98, 217, 248, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-card.is-not-owned {
  border-color: rgba(173, 212, 255, 0.24);
}

.team-card-head {
  align-items: center;
}

.team-side-metrics {
  justify-content: flex-end;
}

.team-slot {
  min-height: 158px;
  padding: 0.85rem 0.62rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(7, 14, 26, 0.74);
}

.team-slot .hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.action-link {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pick-score-row .meta-pill,
.team-breakdown .tiny-metric {
  background: rgba(7, 14, 26, 0.62);
}

.relation-chip {
  backdrop-filter: blur(10px);
}

.detail-panel {
  border-radius: 26px;
}

.hero-profile-shell {
  padding: 1.1rem;
}

.detail-head {
  align-items: end;
}

.detail-head .hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
}

@media (max-width: 1180px) {
  .page-hero,
  .draft-command-grid,
  .draft-battlefield {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metric-card.is-wide {
    grid-column: span 6;
  }

  .battle-bans {
    margin-inline: 1.1rem;
  }

  .desktop-dock {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.6rem;
  }

  .desktop-dock-peek-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-height: 900px) {
  body.has-desktop-dock .page-shell {
    padding-bottom: 8rem;
  }

  body.has-desktop-dock[data-desktop-dock-expanded="true"] .page-shell {
    padding-bottom: 18rem;
  }

  .desktop-dock {
    padding: 0.75rem 0.9rem 0.8rem;
    max-height: min(72vh, 26rem);
  }

  .desktop-dock-head {
    align-items: center;
    gap: 0.8rem;
  }

  .desktop-dock-title {
    gap: 0.15rem;
  }

  .desktop-dock-title .eyebrow {
    margin-bottom: 0.12rem;
  }

  .desktop-dock-title h2 {
    font-size: 1.04rem;
  }

  .desktop-dock-summary {
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .desktop-dock-peek {
    padding-top: 0.55rem;
  }

  .desktop-dock-peek-grid {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
  }

  .desktop-dock-peek-grid.is-compact .desktop-dock-peek-card {
    min-width: min(360px, calc(100vw - 4rem));
  }

  .desktop-dock-peek-card {
    min-width: 260px;
    padding: 0.62rem;
    gap: 0.55rem;
  }

  .desktop-dock-peek-card .hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .desktop-dock-peek-title {
    gap: 0.55rem;
  }

  .desktop-dock-peek-title strong {
    font-size: 0.93rem;
  }

  .desktop-dock-peek-title span {
    font-size: 0.74rem;
    line-height: 1.24;
  }

  .desktop-dock-peek-actions .action-link,
  .desktop-dock-controls .action-link,
  .dock-pill {
    padding: 0.38rem 0.62rem;
    font-size: 0.76rem;
  }

  .desktop-dock-body {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  .desktop-dock-content {
    max-height: 33vh;
  }

  .desktop-dock-results.next-pick-grid,
  .desktop-dock-results.ban-suggestion-grid {
    grid-auto-columns: minmax(280px, 310px);
  }

  body[data-desktop-dock-viewport="compact"][data-desktop-dock-expanded="true"] .desktop-dock-peek {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 0.9rem, 100%);
  }

  .page-hero {
    padding: 1rem;
  }

  .metric-card,
  .metric-card.is-wide {
    grid-column: span 12;
    min-height: 0;
  }

  .metric-card-headline {
    display: grid;
    gap: 0.65rem;
  }

  .draft-command-grid,
  .draft-battlefield {
    padding-inline: 0.85rem;
  }

  .battle-bans {
    margin-inline: 0.85rem;
  }

  .recommendation-columns {
    padding-inline: 0.85rem;
  }

  body.has-desktop-dock .page-shell,
  body.has-desktop-dock[data-desktop-dock-expanded="true"] .page-shell {
    padding-bottom: 2.2rem;
  }

  .desktop-dock {
    display: none !important;
  }

  .hero-card {
    min-height: 236px;
  }

  .hero-card .hero-avatar {
    width: 74px;
    height: 74px;
  }

  .team-side-metrics {
    justify-content: flex-start;
  }

  .pick-hero-button {
    align-items: start;
  }
}

.rhythm-panel {
  margin-bottom: 1rem;
}

.changelog-page .page-shell {
  max-width: 1500px;
}

.changelog-summary-grid,
.changelog-movers-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.changelog-card {
  padding: 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.94), rgba(8, 14, 26, 0.98)),
    radial-gradient(circle at top right, rgba(246, 182, 75, 0.12), transparent 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.changelog-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.changelog-card p {
  margin: 0;
}

.changelog-card-body {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.changelog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.status-chip,
.delta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-chip.is-changed,
.delta-pill.is-positive {
  background: rgba(74, 212, 160, 0.14);
  color: #8cffcb;
  border: 1px solid rgba(74, 212, 160, 0.25);
}

.status-chip.is-stable,
.delta-pill.is-neutral {
  background: rgba(143, 192, 255, 0.12);
  color: #b9d5ff;
  border: 1px solid rgba(143, 192, 255, 0.2);
}

.delta-pill.is-negative {
  background: rgba(255, 117, 103, 0.14);
  color: #ffb1a6;
  border: 1px solid rgba(255, 117, 103, 0.24);
}

.changelog-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.changelog-list strong,
.matchup-block strong {
  display: block;
}

.changelog-list span,
.table-muted,
.matchup-block {
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.changelog-table-panel {
  overflow: hidden;
}

.changelog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.changelog-search {
  display: grid;
  gap: 0.45rem;
  min-width: 240px;
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.changelog-search input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--panel-border);
  background: rgba(10, 18, 32, 0.88);
  color: var(--text);
}

.changelog-table-shell {
  overflow: auto;
  margin-top: 1rem;
}

.changelog-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.changelog-table th,
.changelog-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  vertical-align: top;
  text-align: left;
}

.changelog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(7, 13, 24, 0.96);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.change-details {
  display: grid;
  gap: 0.65rem;
}

.change-details summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}

.change-details summary::-webkit-details-marker {
  display: none;
}

.change-lists {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.matchup-block {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(143, 192, 255, 0.14);
  background: rgba(10, 18, 32, 0.7);
}

.matchup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.matchup-tag {
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(143, 192, 255, 0.11);
  border: 1px solid rgba(143, 192, 255, 0.16);
  color: var(--text);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .changelog-toolbar {
    align-items: stretch;
  }

  .changelog-search {
    min-width: 100%;
  }
}

.draft-status-banner,
.draft-timeline {
  padding-inline: 1.1rem;
}

.draft-status-banner {
  padding-top: 0.95rem;
}

.draft-timeline {
  padding-top: 0.95rem;
  padding-bottom: 1.15rem;
}

.status-callout {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.09), transparent 52%),
    rgba(8, 16, 30, 0.8);
}

.status-callout-copy h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  line-height: 1.02;
}

.status-callout-copy p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-callout-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.5rem;
}

.phase-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.phase-step {
  display: grid;
  gap: 0.35rem;
  min-height: 128px;
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.74);
}

.phase-step strong {
  font-size: 1rem;
  line-height: 1.15;
}

.phase-step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.45;
}

.phase-step-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-step-active {
  border-color: rgba(98, 217, 248, 0.18);
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.1), transparent 56%),
    rgba(8, 16, 30, 0.78);
}

.phase-step-active .phase-step-state {
  color: #dff8ff;
  border-color: rgba(98, 217, 248, 0.22);
  background: rgba(98, 217, 248, 0.12);
}

.phase-step-done {
  border-color: rgba(246, 182, 75, 0.18);
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.1), transparent 56%),
    rgba(8, 16, 30, 0.78);
}

.phase-step-done .phase-step-state {
  color: #ffe3ad;
  border-color: rgba(246, 182, 75, 0.22);
  background: rgba(246, 182, 75, 0.12);
}

.timeline-intel-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.timeline-strip {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 16, 30, 0.62);
}

.timeline-label {
  color: var(--muted);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mobile-view-nav,
.mobile-app-screens,
.mobile-root-shell {
  display: none;
}

.pick-primary-metrics,
.card-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.score-meter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.score-meter {
  display: grid;
  gap: 0.42rem;
  padding: 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 14, 26, 0.55);
}

.score-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.score-meter-head span {
  color: var(--muted);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-meter-head strong {
  font-size: 0.94rem;
  line-height: 1;
}

.score-meter-track {
  position: relative;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.score-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
}

.score-meter.is-good .score-meter-fill {
  background: linear-gradient(90deg, #62d9f8, #9ff2ff);
}

.score-meter.is-cyan .score-meter-fill {
  background: linear-gradient(90deg, #52c8ea, #9ff2ff);
}

.score-meter.is-gold .score-meter-fill,
.score-meter.is-warning .score-meter-fill {
  background: linear-gradient(90deg, #f6b64b, #ffe18f);
}

.score-meter.is-danger .score-meter-fill {
  background: linear-gradient(90deg, #ff7f72, #ffb1a8);
}

.card-reason {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 14, 26, 0.55);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--type-body-sm);
  line-height: 1.2;
}

.card-detail-drawer {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.card-detail-drawer summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: var(--type-body-sm);
  font-weight: 700;
}

.card-detail-drawer summary::-webkit-details-marker {
  display: none;
}

.card-detail-drawer summary::after {
  content: "+";
  margin-left: 0.5rem;
  color: var(--gold);
}

.card-detail-drawer[open] summary::after {
  content: "-";
}

.card-detail-drawer > :not(summary) {
  margin-top: 0.7rem;
}

.detail-close {
  display: none;
  margin-left: auto;
  align-self: start;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: rgba(4, 8, 17, 0.58);
  backdrop-filter: blur(8px);
}

.interaction-toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 120;
  transform: translate(-50%, 20px);
  min-width: min(92vw, 320px);
  max-width: min(92vw, 560px);
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 26, 0.92);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  color: var(--text);
  text-align: center;
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.interaction-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.interaction-toast[data-tone="success"] {
  border-color: rgba(98, 217, 248, 0.22);
}

.interaction-toast[data-tone="danger"] {
  border-color: rgba(255, 127, 114, 0.22);
}

.interaction-toast[data-tone="warning"] {
  border-color: rgba(246, 182, 75, 0.24);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.15;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lane-exp {
  border-color: rgba(114, 228, 209, 0.28) !important;
  background: rgba(114, 228, 209, 0.12) !important;
  color: #dffefa !important;
}

.lane-jungle {
  border-color: rgba(131, 239, 141, 0.28) !important;
  background: rgba(131, 239, 141, 0.12) !important;
  color: #e6ffe8 !important;
}

.lane-mid {
  border-color: rgba(173, 140, 255, 0.28) !important;
  background: rgba(173, 140, 255, 0.14) !important;
  color: #eadcff !important;
}

.lane-gold {
  border-color: rgba(255, 211, 107, 0.3) !important;
  background: rgba(255, 211, 107, 0.14) !important;
  color: #fff1b8 !important;
}

.lane-roam {
  border-color: rgba(255, 156, 113, 0.28) !important;
  background: rgba(255, 156, 113, 0.14) !important;
  color: #ffe3d3 !important;
}

.badge-lane,
.lane-label,
.field-icon,
.meta-pill.is-open {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.next-pick-card,
.ban-suggestion-card,
.team-card,
.hero-card,
.phase-step {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

@media (max-width: 1180px) {
  .subscriber-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intel-grid,
  .status-callout,
  .timeline-intel-grid {
    grid-template-columns: 1fr;
  }

  .share-launcher-card {
    grid-template-columns: 1fr;
  }

  .share-launcher-side,
  .share-launcher-meta {
    justify-items: start;
    justify-content: flex-start;
    max-width: none;
  }

  .share-launcher-actions {
    justify-content: flex-start;
  }

  .phase-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-meter-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-view-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
    margin-bottom: 0;
    padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0;
    border: 0;
    border-top: 1px solid rgba(220, 236, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(20, 31, 48, 0.82), rgba(10, 18, 31, 0.94)),
      rgba(8, 14, 24, 0.92);
    box-shadow:
      0 -10px 34px rgba(0, 0, 0, 0.22),
      0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(1.15);
  }

  .mobile-view-nav::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
  }

  .mobile-view-pill {
    cursor: pointer;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.22rem;
    min-height: 3.5rem;
    padding: 0.42rem 0.3rem 0.34rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(220, 236, 255, 0.56);
    font-weight: 600;
    transition:
      transform 160ms ease,
      border-color 160ms ease,
      background-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease;
  }

  .mobile-view-pill-icon {
    position: relative;
    width: 1.48rem;
    height: 1.48rem;
    border-radius: 0.48rem;
    border: 1px solid rgba(173, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-view-pill[data-mobile-view="workspace"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="home"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="coach"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="atlas"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="home"] .mobile-view-pill-icon::after,
  .mobile-view-pill[data-mobile-view="workspace"] .mobile-view-pill-icon::after,
  .mobile-view-pill[data-mobile-view="coach"] .mobile-view-pill-icon::after,
  .mobile-view-pill[data-mobile-view="atlas"] .mobile-view-pill-icon::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.92;
  }

  .mobile-view-pill[data-mobile-view="home"] .mobile-view-pill-icon::before {
    inset: 0.26rem;
    border-radius: 0.26rem;
    background: transparent;
    border: 0.12rem solid currentColor;
  }

  .mobile-view-pill[data-mobile-view="home"] .mobile-view-pill-icon::after {
    left: 0.48rem;
    right: 0.48rem;
    top: 0.22rem;
    height: 0.12rem;
  }

  .mobile-view-pill[data-mobile-view="workspace"] .mobile-view-pill-icon::before {
    inset: 0.24rem 0.48rem;
  }

  .mobile-view-pill[data-mobile-view="workspace"] .mobile-view-pill-icon::after {
    inset: 0.48rem 0.24rem;
  }

  .mobile-view-pill[data-mobile-view="coach"] .mobile-view-pill-icon::before {
    left: 0.24rem;
    right: 0.24rem;
    bottom: 0.24rem;
    height: 0.24rem;
  }

  .mobile-view-pill[data-mobile-view="coach"] .mobile-view-pill-icon::after {
    left: 0.32rem;
    right: 0.32rem;
    top: 0.28rem;
    height: 0.58rem;
    border-radius: 0.2rem;
    box-shadow:
      -0.34rem 0.22rem 0 currentColor,
      0.34rem -0.12rem 0 currentColor;
  }

  .mobile-view-pill[data-mobile-view="atlas"] .mobile-view-pill-icon::before {
    inset: 0.3rem;
    border-radius: 50%;
    border: 0.12rem solid currentColor;
    background: transparent;
  }

  .mobile-view-pill[data-mobile-view="atlas"] .mobile-view-pill-icon::after {
    width: 0.42rem;
    height: 0.12rem;
    right: 0.18rem;
    bottom: 0.2rem;
    transform: rotate(45deg);
    transform-origin: center;
  }

  .mobile-view-pill[data-mobile-view="notifications"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="notifications"] .mobile-view-pill-icon::after,
  .mobile-view-pill[data-mobile-view="profile"] .mobile-view-pill-icon::before,
  .mobile-view-pill[data-mobile-view="profile"] .mobile-view-pill-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 999px;
  }

  .mobile-view-pill[data-mobile-view="notifications"] .mobile-view-pill-icon::before {
    inset: 0.24rem 0.24rem auto;
    height: 0.72rem;
    border-radius: 0.36rem 0.36rem 0.12rem 0.12rem;
  }

  .mobile-view-pill[data-mobile-view="notifications"] .mobile-view-pill-icon::after {
    width: 0.18rem;
    height: 0.18rem;
    top: 0.18rem;
    right: 0.22rem;
    border-radius: 50%;
  }

  .mobile-view-pill[data-mobile-view="profile"] .mobile-view-pill-icon::before {
    width: 0.62rem;
    height: 0.62rem;
    top: 0.22rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: transparent;
    border: 0.12rem solid currentColor;
  }

  .mobile-view-pill[data-mobile-view="profile"] .mobile-view-pill-icon::after {
    left: 0.28rem;
    right: 0.28rem;
    bottom: 0.2rem;
    height: 0.34rem;
    border-radius: 0.2rem 0.2rem 0.08rem 0.08rem;
  }

  .mobile-view-pill-label {
    font-size: 0.69rem;
    letter-spacing: 0.01em;
  }

  .mobile-view-pill.is-active {
    transform: translateY(-1px) scale(1.01);
    color: #eef7ff;
    border-color: rgba(151, 215, 255, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(98, 217, 248, 0.04)),
      rgba(255, 255, 255, 0.03);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 8px 20px rgba(0, 0, 0, 0.16);
  }

  .mobile-view-pill.is-active .mobile-view-pill-icon {
    color: #effaff;
    border-color: rgba(98, 217, 248, 0.2);
    background: linear-gradient(180deg, rgba(98, 217, 248, 0.3), rgba(98, 217, 248, 0.16));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 16px rgba(98, 217, 248, 0.12);
  }

  body[data-experience="user"] .mobile-tab-admin {
    display: none;
  }

  body:not([data-experience="user"]) .mobile-tab-user {
    display: none;
  }

  body:not([data-experience="user"]) .mobile-view-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .interaction-toast {
    top: 0.9rem;
    bottom: auto;
    transform: translate(-50%, -16px);
  }

  .interaction-toast.is-visible {
    transform: translate(-50%, 0);
  }

  body[data-mobile-view="workspace"] .draft-panel-results,
  body[data-mobile-view="workspace"] .intel-panel,
  body[data-mobile-view="workspace"] .atlas-grid {
    display: none;
  }

  body[data-mobile-view="coach"] .draft-panel-controls,
  body[data-mobile-view="coach"] .atlas-grid {
    display: none;
  }

  body[data-mobile-view="atlas"] .rhythm-panel,
  body[data-mobile-view="atlas"] .intel-panel,
  body[data-mobile-view="atlas"] .draft-panel {
    display: none;
  }

  body[data-experience="user"] .page-hero {
    display: none;
  }

  body[data-experience="user"] .subscriber-page-nav {
    display: none;
  }

  body[data-experience="user"] .mobile-app-screens {
    display: none;
  }

  body[data-experience="user"] .mobile-root-shell {
    display: none;
    padding: 1rem 0.95rem 1.2rem;
  }

  body[data-experience="user"][data-mobile-view="home"] .draft-panel,
  body[data-experience="user"][data-mobile-view="home"] .subscriber-results-shell,
  body[data-experience="user"][data-mobile-view="home"] .atlas-grid {
    display: none;
  }

  body[data-experience="user"][data-mobile-view="workspace"] .subscriber-shell,
  body[data-experience="user"][data-mobile-view="workspace"] .subscriber-results-shell,
  body[data-experience="user"][data-mobile-view="workspace"] .atlas-grid {
    display: none;
  }

  body[data-experience="user"][data-mobile-view="coach"] .subscriber-shell,
  body[data-experience="user"][data-mobile-view="coach"] .draft-panel,
  body[data-experience="user"][data-mobile-view="coach"] .atlas-grid {
    display: none;
  }

  body.is-mobile-app[data-experience="user"][data-mobile-view="notifications"] .page-shell > :not(.app-header):not(.mobile-view-nav):not(.mobile-app-screens):not(.interaction-toast):not(.detail-backdrop),
  body.is-mobile-app[data-experience="user"][data-mobile-view="profile"] .page-shell > :not(.app-header):not(.mobile-view-nav):not(.mobile-app-screens):not(.interaction-toast):not(.detail-backdrop) {
    display: none !important;
  }

  body.is-mobile-app[data-experience="user"][data-mobile-view="notifications"] .mobile-app-screens,
  body.is-mobile-app[data-experience="user"][data-mobile-view="profile"] .mobile-app-screens {
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 0.5rem 0.2rem;
    order: 2;
  }

  body.is-mobile-app[data-experience="user"][data-mobile-view="notifications"] #mobile-notifications-shell.is-mobile-screen-active,
  body.is-mobile-app[data-experience="user"][data-mobile-view="profile"] #mobile-profile-shell.is-mobile-screen-active {
    display: block !important;
    min-height: calc(100dvh - 11.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-mobile-app[data-experience="user"][data-mobile-view="notifications"] #mobile-profile-shell,
  body.is-mobile-app[data-experience="user"][data-mobile-view="profile"] #mobile-notifications-shell {
    display: none !important;
  }

  body.is-mobile-app[data-experience="user"][data-mobile-view="notifications"] .page-footer,
  body.is-mobile-app[data-experience="user"][data-mobile-view="profile"] .page-footer {
    display: none;
  }

  body.is-mobile-app[data-experience="user"] .page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  body.is-mobile-app[data-experience="user"] .app-header {
    flex: 0 0 auto;
    order: 0;
  }

  body.is-mobile-app[data-experience="user"] .mobile-view-nav {
    flex: 0 0 auto;
    order: 99;
  }

  body[data-experience="user"][data-mobile-view="atlas"] .subscriber-shell,
  body[data-experience="user"][data-mobile-view="atlas"] .draft-panel,
  body[data-experience="user"][data-mobile-view="atlas"] .subscriber-results-shell {
    display: none;
  }

  .mobile-root-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding-inline: 0.15rem;
  }

  .mobile-root-head h2 {
    margin: 0;
    font-family: "Iowan Old Style", "Georgia", serif;
    font-size: 1.55rem;
  }

  .mobile-root-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .mobile-access-card {
    margin-top: 0.35rem;
  }

  .mobile-profile-card {
    margin-bottom: 1rem;
  }

  .mobile-profile-language {
    margin-bottom: 1rem;
  }

  .mobile-profile-actions {
    margin-bottom: 0.75rem;
  }

  .mobile-profile-shortcuts {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .mobile-profile-shortcut {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(173, 212, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .mobile-profile-shortcut strong {
    font-size: 0.94rem;
  }

  .mobile-profile-shortcut span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .mobile-access-note {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .mobile-access-card[data-tone="success"] .app-auth-status-badge {
    color: #dffefa;
  }

  .mobile-access-card[data-tone="warning"] .app-auth-status-badge {
    color: #fff1b8;
  }

  .mobile-access-card[data-tone="danger"] .app-auth-status-badge {
    color: #ffe3d3;
  }

  body[data-experience="user"] .subscriber-shell,
  body[data-experience="user"] .subscriber-results-shell {
    padding-inline: 0.9rem;
  }

  body[data-experience="user"] .page-shell {
    padding-bottom: calc(6.8rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-experience="user"] .subscriber-result-actions,
  body[data-experience="user"] .subscriber-highlight-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-experience="user"] .subscriber-result-actions .action-link,
  body[data-experience="user"] .subscriber-highlight-actions .action-link,
  body[data-experience="user"] .subscriber-flow-actions .action-link {
    width: 100%;
    justify-content: center;
  }

  .draft-status-banner,
  .draft-timeline {
    padding-inline: 0.85rem;
  }

  .phase-step-grid {
    grid-template-columns: 1fr;
  }

  .score-meter-row {
    grid-template-columns: 1fr;
  }

  .intel-grid {
    padding: 0.85rem;
  }

  .detail-panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    top: auto;
    z-index: 50;
    max-height: min(78vh, 820px);
    overflow: auto;
    transform: translateY(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
    border-radius: 28px;
    border: 1px solid rgba(173, 212, 255, 0.14);
    background:
      linear-gradient(180deg, rgba(11, 21, 38, 0.98), rgba(7, 14, 26, 0.96)),
      rgba(7, 14, 26, 0.96);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
    transition:
      transform 220ms ease,
      opacity 220ms ease;
  }

  .detail-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .detail-close {
    display: inline-flex;
  }

  .detail-panel::after {
    content: "";
    position: sticky;
    top: 0.75rem;
    display: block;
    width: 3rem;
    height: 0.28rem;
    margin: 0.7rem auto 0;
    border-radius: 999px;
    background: rgba(220, 236, 255, 0.24);
    z-index: 2;
  }

  .has-mobile-detail {
    overflow: hidden;
  }
}

/* Mobile app-shell polish */

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(246, 182, 75, 0.18), transparent 26%),
      radial-gradient(circle at 82% 4%, rgba(98, 217, 248, 0.18), transparent 24%),
      linear-gradient(180deg, #0a1424 0%, #07111f 45%, #040811 100%);
    background-attachment: fixed;
  }

  body::before {
    top: 4rem;
    right: -4rem;
    width: 13rem;
    height: 13rem;
  }

  body::after {
    left: -3rem;
    bottom: 7rem;
    width: 11rem;
    height: 11rem;
  }

  .page-shell {
    width: 100%;
    padding: max(0.55rem, env(safe-area-inset-top, 0px)) 0.5rem calc(6.9rem + env(safe-area-inset-bottom, 0px));
  }

  .panel {
    border-radius: 24px;
  }

  .app-header {
    top: max(0.2rem, env(safe-area-inset-top, 0px));
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    padding: 0.8rem 0.8rem 0.72rem;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(12, 22, 39, 0.9), rgba(7, 14, 26, 0.82)),
      rgba(7, 14, 26, 0.76);
    backdrop-filter: blur(18px);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .app-brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    flex-basis: 2.7rem;
    border-radius: 15px;
  }

  .app-brand-copy strong {
    font-size: 1.02rem;
  }

  .app-brand-copy span {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .app-view-nav {
    display: inline-grid;
    grid-area: nav;
    justify-self: stretch;
    width: 100%;
    margin-top: 0.05rem;
    padding: 0.28rem;
    border-radius: 20px;
    border: 1px solid rgba(173, 212, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
      rgba(7, 14, 26, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .app-header-tools {
    grid-area: tools;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.55rem;
  }

  .language-switcher {
    gap: 0.4rem;
    padding: 0.28rem 0.32rem 0.28rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(173, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }

  .language-switcher label {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .language-switcher select {
    padding: 0.48rem 0.72rem;
    background: rgba(7, 14, 26, 0.82);
  }

  .app-header-action {
    min-height: 2.8rem;
    padding-inline: 0.92rem;
  }

  .app-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "tools";
    gap: 0.62rem;
  }

  .app-brand {
    grid-area: brand;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.78rem;
    align-items: center;
    padding: 0.05rem 0.1rem 0.15rem;
  }

  .app-brand-copy {
    gap: 0.14rem;
  }

  .app-brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: 0.01em;
  }

  .app-brand-copy span {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: rgba(220, 236, 255, 0.66);
  }

  .app-view-tab {
    min-height: 2.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .app-view-tab.is-active {
    color: #fff4d4;
    border-color: rgba(246, 182, 75, 0.24);
    background:
      linear-gradient(180deg, rgba(246, 182, 75, 0.18), rgba(98, 217, 248, 0.08)),
      rgba(255, 255, 255, 0.05);
  }

  .app-auth-banner,
  .page-hero,
  .rhythm-panel,
  .intel-panel,
  .draft-panel,
  .atlas-panel,
  .detail-panel,
  .subscriber-shell,
  .subscriber-results-shell {
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .page-hero {
    gap: 0.9rem;
    padding: 1rem 1rem 0.95rem;
    margin-bottom: 0.8rem;
    border-radius: 26px;
    background:
      radial-gradient(circle at top left, rgba(246, 182, 75, 0.14), transparent 36%),
      linear-gradient(180deg, rgba(11, 21, 38, 0.98), rgba(7, 14, 26, 0.94));
  }

  .hero-copy h1 {
    max-width: 9.5ch;
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    line-height: 0.94;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-flare {
    padding: 0.88rem 0.92rem;
    border-radius: 18px;
  }

  .hero-actions,
  .app-auth-actions,
  .section-action-row,
  .draft-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .action-button,
  .hero-actions .upload-button,
  .app-auth-actions .action-button,
  .app-auth-actions .action-link,
  .section-action-row .action-link,
  .draft-quick-actions .action-link {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .section-head,
  .subsection-head,
  .result-section-head {
    gap: 0.55rem;
    padding-inline: 1rem;
  }

  .section-head {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  .subsection-head,
  .result-section-head {
    padding-top: 0.9rem;
  }

  .draft-command-grid,
  .draft-battlefield,
  .battle-bans,
  .recommendation-columns,
  .lock-grid,
  .enemy-grid,
  .ban-grid,
  .pool-chip-row,
  .slider-grid,
  .mode-strip,
  .composer-meta,
  .next-pick-grid,
  .ban-suggestion-grid,
  .team-result-grid,
  .atlas-toolbar,
  .filter-row,
  .hero-grid {
    padding-inline: 0.95rem;
  }

  .draft-settings {
    padding: 0.95rem 1rem 0.3rem;
  }

  .mode-toggle {
    width: 100%;
    align-items: start;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-picker-trigger,
  .lock-field select,
  .atlas-toolbar input,
  .atlas-toolbar select {
    min-height: 3.65rem;
    padding-block: 0.78rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-picker-trigger-avatar,
  .hero-picker-option-avatar,
  .hero-picker-empty-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .next-pick-grid,
  .ban-suggestion-grid {
    grid-auto-columns: minmax(86vw, 86vw);
    gap: 0.7rem;
    padding-top: 0.8rem;
  }

  .next-pick-card,
  .ban-suggestion-card,
  .team-card,
  .hero-card {
    border-radius: 22px;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .hero-card {
    min-height: 220px;
    padding: 0.9rem;
  }

  .hero-card .hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .detail-backdrop {
    z-index: 45;
    background: rgba(4, 8, 17, 0.68);
    backdrop-filter: blur(10px);
  }

  .detail-close {
    position: sticky;
    top: 0.8rem;
    z-index: 3;
    min-height: 2.5rem;
    padding-inline: 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 14, 26, 0.9);
    backdrop-filter: blur(10px);
  }

  .hero-profile-shell {
    padding-top: 0.45rem;
  }

  .interaction-toast {
    top: max(0.8rem, env(safe-area-inset-top, 0px));
    min-width: min(92vw, 360px);
    border-radius: 20px;
  }

  .page-footer {
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }

  .app-view-nav {
    display: none !important;
  }

  body[data-experience="user"] #app-header-profile {
    display: none !important;
  }

  body[data-experience="user"] .app-header-tools .language-switcher {
    display: none;
  }

  body[data-experience="user"] .page-shell {
    width: 100%;
    max-width: none;
  }
}

body[data-reduce-motion="true"] *,
body[data-reduce-motion="true"] *::before,
body[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Workspace density refresh */

:root {
  --radius: 16px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --type-eyebrow: 0.66rem;
  --type-body-sm: 0.79rem;
  --type-body-md: 0.88rem;
  --type-body-lg: 0.96rem;
  --type-subsection: 0.94rem;
  --type-card-title: 1rem;
  --type-detail-title: clamp(1.24rem, 1.7vw, 1.56rem);
  --type-result-title: clamp(1.08rem, 1.4vw, 1.24rem);
  --type-section-title: clamp(1.18rem, 1.65vw, 1.42rem);
  --type-hero-title: clamp(1.42rem, 2vw, 1.82rem);
}

html {
  font-size: 14px;
}

body {
  font-family: "SF Pro Text", "IBM Plex Sans", "Avenir Next", sans-serif;
}

.page-shell {
  width: min(1660px, calc(100% - 20px));
  padding: 10px 0 24px;
}

.panel {
  border-radius: 16px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-header {
  top: 8px;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
  grid-template-columns: minmax(180px, auto) minmax(260px, 1fr) auto;
}

.app-brand {
  gap: 10px;
}

.app-brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
}

.app-brand-copy strong {
  font-size: 0.96rem;
}

.app-brand-copy span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.app-view-nav {
  width: min(100%, 20rem);
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.app-view-tab {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-header-tools {
  gap: 8px;
}

.language-switcher label {
  font-size: 0.66rem;
}

.language-switcher select,
.action-button,
.upload-button,
.app-header-action,
.action-link,
.dock-pill {
  min-height: 32px;
  font-size: 0.8rem;
}

.language-switcher select {
  padding: 4px 10px;
}

.action-button,
.upload-button {
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-shadow: none;
  box-shadow:
    0 10px 24px rgba(246, 182, 75, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.page-hero {
  gap: 12px;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.9fr);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.hero-copy h1 {
  max-width: 16ch;
  line-height: 1;
}

.hero-text {
  max-width: 64ch;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-flare {
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
}

.hero-flare strong {
  font-size: 0.96rem;
}

.hero-flare p,
.legal-disclaimer,
.load-status {
  font-size: 0.78rem;
  line-height: 1.4;
}

.load-status {
  min-height: 18px;
}

.overview-grid,
.intel-panel,
.rhythm-panel,
.draft-panel,
.atlas-grid {
  margin-bottom: 10px;
}

.overview-grid {
  gap: 8px;
}

.metric-card {
  min-height: 0;
  padding: 12px;
  border-radius: 14px;
}

.metric-card-headline {
  gap: 8px;
}

.metric-card-headline strong {
  font-size: clamp(1.28rem, 1.65vw, 1.6rem);
}

.metric-detail,
.micro-stat span,
.micro-stat strong {
  line-height: 1.35;
}

.micro-grid {
  gap: 6px;
}

.micro-stat {
  padding: 8px;
  border-radius: 10px;
}

.hud-status-pill,
.meta-pill,
.warning-pill,
.phase-step-state,
.status-chip,
.delta-pill {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
}

.section-head,
.subsection-head,
.result-section-head {
  gap: 10px;
  padding-inline: 14px;
}

.section-head {
  padding-top: 12px;
  padding-bottom: 10px;
}

.subsection-head,
.result-section-head {
  padding-top: 12px;
}

.section-text,
.subsection-head p:last-child,
.result-section-head p:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
}

.section-action-row,
.draft-quick-actions,
.hero-actions,
.app-auth-actions {
  gap: 8px;
}

.draft-command-grid,
.draft-battlefield,
.battle-bans,
.recommendation-columns,
.draft-status-banner,
.draft-timeline,
.atlas-toolbar,
.filter-row,
.hero-grid,
.detail-shell,
.empty-state {
  padding-inline: 14px;
}

.draft-command-grid,
.draft-battlefield {
  gap: 10px;
  padding-top: 12px;
}

.battle-bans {
  margin: 10px 14px 12px;
}

.command-card,
.battle-side,
.battle-bans,
.recommendation-column,
.intel-card,
.status-callout,
.phase-step,
.detail-panel,
.desktop-dock-peek-card,
.next-pick-card,
.ban-suggestion-card,
.team-card,
.hero-card,
.hero-profile-shell {
  border-radius: 14px;
}

.command-card,
.battle-side,
.battle-bans,
.recommendation-column,
.intel-card {
  border-color: rgba(255, 255, 255, 0.05);
}

.command-card.draft-settings,
.command-card.draft-tuning {
  padding-bottom: 10px;
}

.mode-switch {
  padding: 3px;
  border-radius: 10px;
}

.mode-pill {
  min-width: 92px;
}

.mode-toggle {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 12px;
}

.draft-mode-description {
  padding-inline: 14px;
}

.lock-field,
.slider-field {
  padding: 10px;
  border-radius: 12px;
}

.lock-field select,
.atlas-toolbar input,
.atlas-toolbar select {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
}

.battle-side .lock-field {
  padding: 9px;
}

.battle-side .lock-grid,
.battle-side .enemy-grid,
.battle-side .pool-chip-row,
.battle-bans .ban-grid,
.decision-delta,
.compare-tray,
.session-status,
.draft-history {
  padding-bottom: 12px;
}

.recommendation-columns {
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 14px;
}

.composer-meta {
  padding-inline: 14px;
}

.result-section-head {
  margin-top: 2px;
}

.result-section-head::before {
  width: 36px;
}

.next-pick-card,
.ban-suggestion-card,
.team-card {
  padding: 12px;
}

.pick-hero-button {
  gap: 10px;
}

.pick-hero-button .hero-avatar,
.team-slot .hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.hero-avatar {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-grid {
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 14px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.hero-card {
  min-height: 188px;
  gap: 8px;
  padding: 10px;
}

.hero-card .hero-avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}

.hero-card-signal {
  top: 10px;
  left: 10px;
  right: 10px;
  gap: 4px;
}

.hero-card-head strong,
.pick-title-wrap strong,
.compare-card-title strong,
.decision-card h3 {
  font-size: 0.96rem;
}

.detail-panel {
  min-height: 0;
}

.detail-shell,
.empty-state,
.hero-profile-shell {
  padding: 14px;
}

.detail-head {
  gap: 12px;
}

.detail-head .hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.intel-grid {
  gap: 8px;
  padding: 10px 14px 14px;
}

.decision-card,
.compare-card,
.history-item,
.status-callout,
.phase-step {
  padding: 10px 12px;
}

.session-actions {
  gap: 8px;
  padding: 0 14px 6px;
}

.draft-status-banner {
  padding-top: 10px;
}

.draft-timeline {
  padding-top: 8px;
  padding-bottom: 14px;
}

.status-callout {
  gap: 10px;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
}

.phase-step-grid {
  gap: 8px;
}

.phase-step {
  min-height: 104px;
}

.atlas-grid {
  gap: 10px;
  margin-top: 10px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
}

.atlas-toolbar {
  gap: 8px;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, 0.65fr);
  padding-top: 10px;
}

.filter-row {
  padding-top: 8px;
}

.detail-panel {
  top: 56px;
}

.desktop-dock {
  padding: 10px 12px;
  max-height: min(48vh, 24rem);
  border-radius: 16px;
}

.desktop-dock-head {
  gap: 10px;
}

.desktop-dock-title h2 {
  font-size: 1.02rem;
}

.desktop-dock-summary {
  font-size: 0.82rem;
  line-height: 1.35;
}

.desktop-dock-peek {
  padding-top: 8px;
}

.desktop-dock-peek-grid {
  gap: 8px;
}

.desktop-dock-peek-card {
  gap: 8px;
  padding: 10px;
}

.desktop-dock-peek-card .hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.desktop-dock-body {
  margin-top: 8px;
  padding-top: 8px;
}

.desktop-dock-content {
  margin-top: 8px;
}

@media (min-width: 1280px) {
  .page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(330px, 0.78fr);
    gap: 10px;
    align-items: start;
  }

  .page-shell > * {
    min-width: 0;
  }

  .app-header,
  #app-auth-banner,
  #admin-draft-rules,
  #subscriber-shell,
  #subscriber-results-shell,
  .mobile-view-nav,
  #mobile-app-screens,
  .page-footer {
    grid-column: 1 / -1;
  }

  .app-header {
    grid-column: 1 / -1;
  }

  .page-hero {
    grid-column: 1;
    margin-bottom: 0;
  }

  #overview {
    grid-column: 2;
    align-self: start;
    margin-bottom: 0;
  }

  #draft-panel {
    grid-column: 1;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
    align-items: start;
  }

  #draft-panel > .section-head {
    grid-column: 1 / -1;
  }

  .draft-panel-controls,
  #draft-results-panel {
    min-width: 0;
  }

  .draft-panel-controls {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  #draft-results-panel {
    padding-top: 2px;
  }

  .draft-command-grid,
  .draft-battlefield {
    grid-template-columns: 1fr;
  }

  .battle-side .lock-grid,
  .battle-side .enemy-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .battle-bans .ban-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #draft-results-panel .recommendation-columns {
    grid-template-columns: 1fr;
  }

  .intel-panel {
    grid-column: 2;
    margin-bottom: 0;
  }

  .intel-grid {
    grid-template-columns: 1fr;
  }

  .rhythm-panel {
    grid-column: 1;
  }

  #atlas-grid {
    grid-column: 2;
    margin-top: 0;
  }

  #atlas-grid {
    grid-template-columns: 1fr;
  }

  #hero-detail {
    position: static;
  }

  body[data-experience="user"] #draft-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-experience="user"] #draft-panel .draft-panel-controls {
    border-right: 0;
  }

  body[data-experience="user"] #subscriber-shell,
  body[data-experience="user"] #subscriber-results-shell,
  body[data-experience="user"] #atlas-grid {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1440px) {
  body[data-experience="user"] #draft-panel .draft-battlefield {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  body[data-experience="user"] #draft-panel .battle-bans {
    margin-top: 12px;
  }

  body[data-experience="user"] #draft-panel #secondary-board-section:not([hidden]) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1480px) {
  body.has-desktop-dock .page-shell,
  body.has-desktop-dock[data-desktop-dock-expanded="true"] .page-shell {
    padding-bottom: 24px;
  }

  .desktop-dock {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .page-shell {
    width: min(100% - 16px, 100%);
  }

  .page-hero,
  .status-callout,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    grid-template-columns: 1fr auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  }
}
