:root {
  --bg-deep: #03091a;
  --bg-mid: #060e22;
  --glass-bg: rgba(10, 20, 50, 0.58);
  --glass-strong: rgba(9, 18, 46, 0.82);
  --glass-border: rgba(80, 160, 255, 0.26);
  --accent-cyan: #00d4ff;
  --accent-violet: #6c3cff;
  --text-primary: #e8f0ff;
  --text-dim: rgba(200, 220, 255, 0.72);
  --text-soft: rgba(232, 240, 255, 0.88);
  --gold: #ffb347;
  --danger: #ef5350;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Bahnschrift, "Trebuchet MS", "Aptos", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 18% 8%, rgba(108, 60, 255, 0.34), transparent 32rem),
    radial-gradient(circle at 86% 84%, rgba(0, 212, 255, 0.24), transparent 36rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg-mid) 48%, #020612);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

a {
  color: inherit;
}

a,
button {
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.short-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: rgba(3, 9, 26, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(114, 137, 255, 0.2));
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.34);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.nav-guide-toggle {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.94rem;
  text-decoration: none;
  border: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.nav-guide-toggle:hover,
.nav-guide-toggle:focus-visible,
.nav-guide.is-current .nav-guide-toggle,
.nav-guide[open] .nav-guide-toggle {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.13);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.18),
    0 0 20px rgba(0, 212, 255, 0.14);
}

.nav-guide {
  position: relative;
}

.nav-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-guide-toggle::-webkit-details-marker {
  display: none;
}

.nav-guide-toggle::after {
  content: "\25BE";
  font-size: 0.7rem;
  color: rgba(232, 240, 255, 0.62);
  transition: transform 180ms ease;
}

.nav-guide[open] .nav-guide-toggle::after {
  transform: rotate(180deg);
}

.nav-guide-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(3, 9, 26, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.nav-guide-menu a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.nav-guide-menu a:hover,
.nav-guide-menu a:focus-visible,
.nav-guide-menu a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.16),
    0 0 18px rgba(0, 212, 255, 0.12);
}

.language-picker {
  position: relative;
  display: inline-block;
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-picker-button {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(122, 92, 255, 0.08)),
    rgba(3, 9, 26, 0.72);
  color: inherit;
  font: inherit;
  text-transform: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 24px rgba(0, 212, 255, 0.08);
  cursor: pointer;
}

.language-picker-button:hover,
.language-picker-button:focus-visible,
.language-picker-button[aria-expanded="true"] {
  border-color: rgba(0, 212, 255, 0.38);
  background: rgba(0, 212, 255, 0.12);
  color: var(--text-primary);
}

.language-picker-icon,
.language-picker-label,
.language-picker-current,
.language-picker-chevron {
  pointer-events: none;
}

.language-picker-icon {
  font-size: 0.94rem;
}

.language-picker-label {
  white-space: nowrap;
}

.language-picker-current {
  min-width: 2.55rem;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(3, 9, 26, 0.88);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.language-picker-chevron {
  color: rgba(232, 240, 255, 0.62);
  font-size: 0.68rem;
  transition: transform 160ms ease;
}

.language-picker-button[aria-expanded="true"] .language-picker-chevron {
  transform: rotate(180deg);
}

.language-picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 168px;
  padding: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(6, 17, 44, 0.98), rgba(3, 9, 26, 0.98)),
    rgba(3, 9, 26, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 30px rgba(0, 212, 255, 0.12);
}

.language-picker-menu[hidden] {
  display: none !important;
}

.language-picker-option {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}

.language-picker-option:hover,
.language-picker-option:focus-visible,
.language-picker-option.is-active {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.12);
  color: var(--text-primary);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero.split-section {
  align-items: start;
}

.split-section.compact {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-panel,
.feature-card,
.policy-card {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, var(--glass-bg), rgba(5, 12, 32, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy,
.policy-hero {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px);
  align-self: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.1vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.hero-copy .lead {
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.58;
}

p,
li {
  color: var(--text-dim);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.button-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:not(.button-disabled) {
  cursor: pointer;
}

.button-disabled::before {
  content: none;
}

.button.primary {
  color: #03101d;
  background: linear-gradient(135deg, var(--accent-cyan), #b8f5ff);
  box-shadow: 0 18px 34px rgba(0, 212, 255, 0.24);
}

.button.primary::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -55%;
  width: 42%;
  height: 140%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.46) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  animation: primary-button-sheen 5.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.button.primary > * {
  position: relative;
  z-index: 1;
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.2),
    0 18px 38px rgba(0, 212, 255, 0.32),
    0 0 24px rgba(0, 212, 255, 0.22);
}

.button.secondary {
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.button.app-store-button {
  justify-content: flex-start;
  gap: 13px;
  min-height: 62px;
  min-width: 218px;
  padding: 9px 16px 9px 12px;
  color: var(--text-primary);
  border-color: rgba(98, 220, 255, 0.34);
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 212, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(7, 20, 38, 0.95), rgba(0, 82, 114, 0.56));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.button.primary.app-store-button {
  background:
    radial-gradient(circle at 22% 18%, rgba(91, 255, 163, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(0, 70, 105, 0.9), rgba(0, 212, 255, 0.34));
}

.button.app-store-button:hover,
.button.app-store-button:focus-visible {
  border-color: rgba(91, 255, 163, 0.58);
  box-shadow:
    0 0 0 1px rgba(91, 255, 163, 0.18),
    0 18px 34px rgba(0, 212, 255, 0.16),
    0 0 24px rgba(91, 255, 163, 0.18);
}

.app-store-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.45), transparent 22%),
    linear-gradient(135deg, #39f6a2 0%, #00d4ff 52%, #8d66ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(0, 212, 255, 0.28);
}

.app-store-play-mark {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #03101d;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24));
}

.web-app-button .app-store-icon {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(135deg, #00d4ff 0%, #5bffa3 100%);
}

.web-app-mark {
  position: relative;
  width: 22px;
  height: 18px;
  border: 3px solid #03101d;
  border-radius: 6px;
  box-shadow: inset 0 5px 0 rgba(3, 16, 29, 0.28);
}

.web-app-mark::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  border-top: 3px solid #03101d;
}

.web-app-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #03101d;
  box-shadow: 6px 0 0 #03101d;
}

.app-store-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
  text-align: left;
}

.app-store-kicker {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-store-label {
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 950;
}

.button.button-danger {
  color: #ffd9d8;
  border-color: rgba(239, 83, 80, 0.4);
  background: rgba(239, 83, 80, 0.09);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.policy-card a:hover,
.policy-card a:focus-visible,
.phone-tabs button:hover,
.phone-tabs button:focus-visible,
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.14),
    0 0 20px rgba(0, 212, 255, 0.18);
}

.button:focus-visible,
.nav-links a:focus-visible,
.text-link:focus-visible,
.footer-links a:focus-visible,
.phone-tabs button:focus-visible,
.brand:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.14),
    0 0 20px rgba(0, 212, 255, 0.16);
}

.text-link,
.policy-card a {
  color: var(--accent-cyan);
  font-weight: 800;
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.text-link:hover,
.policy-card a:hover {
  text-decoration: underline;
  color: #b8f5ff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.28);
}

.button.button-danger:hover,
.button.button-danger:focus-visible {
  box-shadow:
    0 0 0 1px rgba(239, 83, 80, 0.22),
    0 0 20px rgba(239, 83, 80, 0.2);
}

.fine-print {
  max-width: 680px;
  color: rgba(200, 220, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.55;
}

.phone-card {
  width: 100%;
  max-width: 430px;
  min-height: 0;
  padding: 12px;
  border-radius: 30px;
  align-self: start;
  justify-self: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(1, 5, 26, 0.96), rgba(2, 10, 40, 0.92)),
    var(--glass-bg);
}

.phone-preview-screen {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 420 / 835;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12), transparent 17rem),
    #020719;
  overflow: hidden;
}

.phone-preview-screen::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 34px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 7, 25, 0.86), transparent);
}

.preview-strip,
.preview-image-fallback {
  position: absolute;
  inset: 0;
}

.preview-strip {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.preview-image {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.preview-image-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--text-dim);
  text-align: center;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(108, 60, 255, 0.08));
}

.preview-image-fallback[hidden] {
  display: none;
}

.preview-image-fallback strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.preview-image-fallback code {
  color: var(--accent-cyan);
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 12px;
}

.phone-tabs button {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  color: var(--text-dim);
  background: rgba(0, 212, 255, 0.06);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.phone-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.52);
}

.phone-tabs em {
  font-size: 0.58rem;
  font-style: normal;
}

.phone-tabs .active {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.16);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.2);
}

@keyframes primary-button-sheen {
  0% {
    left: -55%;
    opacity: 0;
  }
  10% {
    opacity: 0.34;
  }
  35% {
    left: 125%;
    opacity: 0.44;
  }
  45% {
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-strip {
    transition-duration: 1ms;
  }

  .button.primary::before {
    animation: none;
    opacity: 0;
  }
}

.glow-cyan {
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 34px rgba(0, 212, 255, 0.12);
}

.glow-violet {
  box-shadow: inset 0 0 0 1px rgba(108, 60, 255, 0.18), 0 0 34px rgba(108, 60, 255, 0.16);
}

.section-block {
  margin-top: 62px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-step,
.tier-card {
  padding: 24px;
  border-radius: 24px;
}

.workflow-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #03101d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-cyan), #b8f5ff);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.18);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bullet-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.22);
}

.tier-note {
  margin-top: 16px;
  color: rgba(232, 240, 255, 0.68);
  font-size: 0.93rem;
}

.feature-card {
  padding: 22px;
  border-radius: 24px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #03101d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
}

.policy-layout {
  display: grid;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.guide-layout {
  max-width: 1040px;
}

.policy-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 30px;
}

.policy-card h2 {
  margin-top: 34px;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card ul {
  padding-left: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(3, 9, 26, 0.5);
}

.guide-panel h2 {
  margin-top: 0;
}

.guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.guide-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(108, 60, 255, 0.12);
  border: 1px solid rgba(108, 60, 255, 0.2);
}

.guide-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(108, 60, 255, 0.08));
}

.timeline-list {
  display: grid;
  gap: 24px;
}

.timeline-entry {
  position: relative;
  padding: 22px 24px 22px 28px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.07), rgba(108, 60, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-gold));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}

.timeline-entry h2 {
  margin-top: 4px;
}

.guide-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-next-card {
  display: block;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  color: inherit;
  text-decoration: none;
  background: rgba(3, 9, 26, 0.52);
}

.guide-next-card h3,
.guide-next-card p {
  margin-bottom: 0;
}

.guide-next-card h3 {
  margin-bottom: 10px;
}

.guide-next-card:hover,
.guide-next-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.16),
    0 0 22px rgba(0, 212, 255, 0.14);
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-field {
  display: grid;
  gap: 8px;
}

.support-field span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(2, 10, 28, 0.84);
  font: inherit;
}

.support-field textarea {
  resize: vertical;
  min-height: 120px;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: 0;
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.support-turnstile {
  min-height: 66px;
}

.support-form-message {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.support-form-message[data-tone="success"] {
  color: #b8ffde;
  background: rgba(76, 175, 80, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.28);
}

.support-form-message[data-tone="error"] {
  color: #ffd1d1;
  background: rgba(239, 83, 80, 0.16);
  border: 1px solid rgba(239, 83, 80, 0.28);
}

.support-form-message[data-tone="info"] {
  color: var(--text-soft);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.support-fallback {
  margin-top: 14px;
}

.admin-layout {
  max-width: 1120px;
}

.admin-login-card {
  max-width: 560px;
  margin: 0 auto;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
}

.admin-stat {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(3, 9, 26, 0.52);
}

.admin-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-section {
  padding: 24px;
  border-radius: 30px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(3, 9, 26, 0.56);
}

.admin-card.is-done {
  opacity: 0.82;
}

.admin-card-details {
  padding: 0;
  overflow: hidden;
}

.admin-card-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
}

.admin-card-details > summary::-webkit-details-marker {
  display: none;
}

.admin-card-body {
  padding: 0 18px 18px;
}

.admin-summary-toggle {
  position: relative;
}

.admin-summary-toggle::after {
  content: "▸";
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}

.admin-card-details[open] > .admin-summary-toggle::after {
  transform: rotate(90deg);
}

.admin-summary-content {
  display: grid;
  gap: 10px;
  padding-right: 34px;
}

.admin-summary-title-row h3 {
  margin: 0;
}

.admin-summary-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-summary-subrow p {
  margin: 0;
}

.admin-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-status.is-open {
  color: #03101d;
  background: linear-gradient(135deg, var(--accent-cyan), #b8f5ff);
}

.admin-status.is-done {
  color: #d5dff7;
  background: rgba(255, 255, 255, 0.08);
}

.admin-meta-row,
.admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-pill {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.admin-details summary {
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}

.admin-meta-grid div {
  display: grid;
  gap: 4px;
}

.admin-meta-grid strong {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.admin-entry-list,
.admin-reward-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.admin-language-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-language-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-language-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
}

.admin-details-nested {
  margin-top: 10px;
}

.admin-entry {
  margin-bottom: 12px;
}

.admin-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.admin-pre {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 10, 28, 0.78);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 54px;
  padding: 22px 4px 0;
  color: rgba(200, 220, 255, 0.58);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  color: rgba(200, 220, 255, 0.58);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .split-section,
  .split-section.compact,
  .feature-grid,
  .workflow-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    min-height: auto;
  }

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

  .support-grid,
  .admin-summary,
  .admin-meta-grid,
  .guide-grid,
  .guide-next-links {
    grid-template-columns: 1fr;
  }

  .admin-summary-subrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-summary-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    margin-bottom: 24px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .language-picker {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .language-picker-button {
    gap: 6px;
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .language-picker-label {
    display: none;
  }

  .language-picker-current {
    min-width: 2.15rem;
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .nav-links a,
  .nav-guide-toggle {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .nav-guide {
    width: 100%;
  }

  .nav-guide-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
  }

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

  .hero-copy,
  .policy-hero,
  .policy-card {
    border-radius: 24px;
  }
}

.webapp-shell {
  padding-bottom: 160px;
}

.webapp-shell .site-header {
  padding-top: 14px;
  padding-bottom: 14px;
}

.webapp-shell .nav-links {
  gap: 8px;
}

.webapp-shell .nav-links a {
  padding: 8px 11px;
  font-size: 0.84rem;
}

.webapp-main {
  display: grid;
  gap: 14px;
}

.webapp-hero,
.webapp-status-banner,
.webapp-panel {
  position: relative;
  overflow: hidden;
}

.webapp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.webapp-hero-copy {
  display: grid;
  gap: 8px;
}

.webapp-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 0.95;
}

.webapp-hero .lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
}

.webapp-hero .button-row {
  margin: 0;
}

.webapp-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.webapp-status-banner strong {
  color: var(--gold);
}

.webapp-panels {
  display: grid;
}

.webapp-panel {
  min-height: 360px;
}

.webapp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.webapp-alert-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.webapp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.webapp-alert-list,
.webapp-stats-grid {
  display: grid;
  gap: 14px;
}

.webapp-alert-card,
.webapp-collection-card,
.webapp-task-card,
.webapp-stat-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(80, 160, 255, 0.2);
  background:
    linear-gradient(160deg, rgba(10, 20, 50, 0.88), rgba(3, 9, 26, 0.94)),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 46%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.webapp-alert-card h3,
.webapp-collection-card h3,
.webapp-task-card h3,
.webapp-stat-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.webapp-alert-card p,
.webapp-collection-card p,
.webapp-task-card p,
.webapp-stat-card p,
.webapp-placeholder p {
  margin: 0;
  color: var(--text-dim);
}

.webapp-status-banner {
  gap: 8px;
}

.webapp-status-banner small {
  color: var(--accent-cyan);
  font-size: 0.84rem;
}

.webapp-alert-headline,
.webapp-collection-headline,
.webapp-task-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.webapp-task-card {
  align-items: center;
}

.webapp-alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.webapp-alert-actions .button,
.webapp-setting-actions .button {
  min-width: 0;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
}

.webapp-alert-meta,
.webapp-alert-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.webapp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.12);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.webapp-badge.is-soft {
  background: rgba(0, 212, 255, 0.09);
  color: var(--text-soft);
}

.webapp-badge.is-accent {
  background: rgba(80, 160, 255, 0.18);
  color: #a8d9ff;
}

.webapp-badge.is-success {
  background: rgba(80, 214, 123, 0.14);
  color: #8df0ae;
}

.webapp-empty,
.webapp-placeholder {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(80, 160, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.webapp-collection-toolbar {
  display: grid;
  gap: 14px;
}

.webapp-collection-list,
.webapp-task-list {
  display: grid;
  gap: 14px;
}

.webapp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webapp-filter-button {
  padding: 9px 14px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

.webapp-filter-button:hover,
.webapp-filter-button:focus-visible,
.webapp-filter-button.is-active {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.webapp-inline-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.webapp-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.webapp-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-primary);
}

.webapp-settings-list {
  display: grid;
  gap: 14px;
}

.webapp-task-section {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.webapp-task-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.webapp-task-header h3,
.webapp-task-header small {
  margin: 0;
}

.webapp-task-header small {
  color: var(--text-dim);
}

.webapp-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.webapp-setting-row span {
  display: grid;
  gap: 6px;
}

.webapp-setting-row strong {
  font-size: 0.96rem;
}

.webapp-setting-row.is-static {
  align-items: flex-start;
}

.webapp-setting-row small {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.webapp-setting-row select,
.webapp-setting-row input[type="checkbox"] {
  flex: 0 0 auto;
}

.webapp-setting-row select {
  min-width: 160px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
}

.webapp-setting-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-cyan);
}

.webapp-setting-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.webapp-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, calc(100% - 24px));
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: rgba(3, 9, 26, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.webapp-tab-button {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 62px;
  padding: 10px 8px;
  border: 0;
  border-radius: 18px;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
}

.webapp-tab-button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.webapp-tab-button strong {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.webapp-tab-button:hover,
.webapp-tab-button:focus-visible,
.webapp-tab-button.is-active {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.18),
    0 0 20px rgba(0, 212, 255, 0.12);
}

.webapp-tab-button.is-active span {
  background: rgba(0, 212, 255, 0.2);
}

body.webapp-reduced-motion *,
body.webapp-reduced-motion *::before,
body.webapp-reduced-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

@media (max-width: 820px) {
  .webapp-hero,
  .webapp-status-banner,
  .webapp-setting-row,
  .webapp-alert-headline,
  .webapp-collection-headline,
  .webapp-task-card,
  .webapp-task-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .webapp-alert-actions,
  .webapp-setting-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .webapp-shell {
    width: min(100%, calc(100% - 16px));
    padding-bottom: 176px;
  }

  .webapp-panel,
  .webapp-status-banner,
  .webapp-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .webapp-bottom-nav {
    bottom: 10px;
    width: calc(100% - 14px);
    gap: 8px;
    padding: 8px;
  }

  .webapp-hero h1 {
    font-size: 1.78rem;
  }

  .webapp-hero .lead {
    font-size: 0.94rem;
  }
}

/* Web app preview rebuild */

body[data-webapp-theme="storm"] {
  --webapp-accent: #00d4ff;
  --webapp-accent-soft: rgba(0, 212, 255, 0.2);
  --webapp-accent-2: #6c8bff;
  --webapp-bg-card: linear-gradient(160deg, rgba(8, 18, 45, 0.96), rgba(3, 9, 26, 0.98));
  --webapp-ring-bg: rgba(255, 255, 255, 0.06);
}

body[data-webapp-theme="neon_husks"] {
  --webapp-accent: #6dffae;
  --webapp-accent-soft: rgba(109, 255, 174, 0.2);
  --webapp-accent-2: #11d6ff;
  --webapp-bg-card: linear-gradient(160deg, rgba(4, 16, 31, 0.96), rgba(3, 9, 26, 0.98));
}

body[data-webapp-theme="stonewood_sunset"] {
  --webapp-accent: #ffaf51;
  --webapp-accent-soft: rgba(255, 175, 81, 0.2);
  --webapp-accent-2: #ff6c4b;
  --webapp-bg-card: linear-gradient(160deg, rgba(28, 18, 16, 0.96), rgba(11, 8, 19, 0.98));
}

body[data-webapp-theme="zero_point_void"] {
  --webapp-accent: #5ce0ff;
  --webapp-accent-soft: rgba(92, 224, 255, 0.18);
  --webapp-accent-2: #7d6bff;
  --webapp-bg-card: linear-gradient(160deg, rgba(14, 15, 40, 0.96), rgba(3, 9, 26, 0.98));
}

body[data-webapp-theme="canny_valley_gold"] {
  --webapp-accent: #ffbf4d;
  --webapp-accent-soft: rgba(255, 191, 77, 0.2);
  --webapp-accent-2: #ff9d2e;
  --webapp-bg-card: linear-gradient(160deg, rgba(23, 17, 7, 0.96), rgba(7, 8, 21, 0.98));
}

body[data-webapp-chip-size="small"] {
  --webapp-pill-font: 0.75rem;
  --webapp-pill-pad-y: 6px;
  --webapp-pill-pad-x: 10px;
}

body[data-webapp-chip-size="medium"] {
  --webapp-pill-font: 0.82rem;
  --webapp-pill-pad-y: 7px;
  --webapp-pill-pad-x: 12px;
}

body[data-webapp-chip-size="large"] {
  --webapp-pill-font: 0.89rem;
  --webapp-pill-pad-y: 8px;
  --webapp-pill-pad-x: 14px;
}

.webapp-shell {
  width: min(1080px, calc(100% - 20px));
  padding-top: 14px;
  padding-bottom: 152px;
}

.webapp-app {
  display: grid;
  gap: 16px;
}

.webapp-review-intro {
  display: grid;
  gap: 18px;
  margin: 14px 0 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
}

.webapp-review-copy {
  display: grid;
  gap: 10px;
}

.webapp-review-copy h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.webapp-review-copy p {
  max-width: 840px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.6;
}

.webapp-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.webapp-review-grid article {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 18, 48, 0.76), rgba(3, 9, 26, 0.88));
}

.webapp-review-grid strong {
  color: var(--text-primary);
  font-size: 0.94rem;
}

.webapp-review-grid span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.webapp-review-intro .fine-print {
  max-width: 960px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.55;
}

.webapp-screen {
  display: grid;
  gap: 14px;
}

.webapp-screen[hidden] {
  display: none !important;
}

.webapp-topbar,
.webapp-status-strip,
.webapp-inner-tabs,
.webapp-filter-shell,
.webapp-manage-card,
.webapp-task-column,
.webapp-collection-controls,
.webapp-dashboard-hero,
.webapp-dashboard-card,
.webapp-settings-section,
.webapp-tip-card,
.webapp-mission-card,
.webapp-collection-card,
.webapp-viewer-category {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  background: var(--webapp-bg-card);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.webapp-topbar,
.webapp-status-strip,
.webapp-inner-tabs,
.webapp-filter-shell,
.webapp-manage-card,
.webapp-task-column,
.webapp-collection-controls,
.webapp-dashboard-hero,
.webapp-settings-section,
.webapp-tip-card {
  padding: 16px;
}

.webapp-topbar {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.webapp-topbar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.webapp-topbar-meta {
  flex: 1 1 230px;
  margin: 0;
  color: var(--webapp-accent);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: pre-line;
}

.webapp-topbar-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.webapp-topbar-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.18), rgba(108, 139, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.34);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.webapp-topbar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.webapp-topbar-eyebrow {
  margin: 0;
  color: var(--webapp-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.webapp-topbar-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.webapp-topbar-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.35;
}

.webapp-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
}

.webapp-density-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.24);
  background: rgba(9, 20, 50, 0.78);
}

.webapp-density-button {
  min-width: 108px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.webapp-density-button.is-active {
  background: rgba(0, 212, 255, 0.16);
  color: var(--webapp-accent);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.webapp-refresh-button {
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  font-size: 1.15rem;
}

.webapp-feedback-inline {
  color: var(--webapp-accent);
  font-size: 0.84rem;
}

.webapp-progress-pill {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(80, 160, 255, 0.22);
}

.webapp-progress-pill span {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webapp-progress-pill strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.webapp-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.webapp-status-copy {
  display: grid;
  gap: 4px;
}

.webapp-status-copy strong {
  color: var(--gold);
}

.webapp-status-copy span,
.webapp-status-strip small {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.webapp-status-strip small {
  color: var(--webapp-accent);
}

.webapp-inner-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.webapp-inner-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.webapp-inner-tab em {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.18);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-style: normal;
}

.webapp-inner-tab.is-active {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.16);
}

.webapp-subpanel {
  display: grid;
  gap: 14px;
}

.webapp-subpanel[hidden] {
  display: none !important;
}

.webapp-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webapp-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.webapp-filter-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.webapp-filter-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.webapp-filter-count {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--webapp-accent);
  color: #03101d;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.webapp-filter-reset {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  background: rgba(0, 212, 255, 0.08);
  color: var(--webapp-accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.webapp-filter-panel {
  margin-top: 12px;
}

.webapp-filter-panel[hidden] {
  display: none !important;
}

.webapp-filter-panel-inner {
  display: grid;
  gap: 10px;
}

.webapp-filter-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: start;
  padding-top: 8px;
}

.webapp-filter-row + .webapp-filter-row {
  border-top: 1px solid rgba(80, 160, 255, 0.14);
}

.webapp-row-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  padding-top: 8px;
}

.webapp-chip-row,
.webapp-chip-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webapp-pill-button {
  padding: var(--webapp-pill-pad-y, 7px) var(--webapp-pill-pad-x, 12px);
  border-radius: 999px;
  border: 1px solid rgba(80, 160, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: inherit;
  font-size: var(--webapp-pill-font, 0.82rem);
  cursor: pointer;
}

.webapp-pill-button.is-active,
.webapp-pill-button:hover,
.webapp-pill-button:focus-visible {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.34);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.08);
}

.webapp-pill-button.is-accent.is-active,
.webapp-pill-button.is-accent:hover,
.webapp-pill-button.is-accent:focus-visible {
  background: rgba(255, 179, 71, 0.14);
  border-color: rgba(255, 179, 71, 0.34);
}

.webapp-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webapp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.webapp-chip.is-soft {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(80, 160, 255, 0.18);
}

.webapp-alert-list,
.webapp-task-list,
.webapp-dashboard-categories,
.webapp-settings-sections,
.webapp-tips-grid {
  display: grid;
  gap: 14px;
}

.webapp-mission-card {
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
}

.webapp-mission-card::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 58px;
  left: 20px;
  width: 8px;
  border-radius: 999px;
  background: rgba(158, 158, 158, 0.95);
}

.webapp-mission-card.is-stonewood::before {
  background: #9e9e9e;
}

.webapp-mission-card.is-plankerton::before {
  background: #4caf50;
}

.webapp-mission-card.is-canny::before {
  background: #ff9800;
}

.webapp-mission-card.is-twine::before {
  background: #f44336;
}

.webapp-mission-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.webapp-mission-grid {
  display: grid;
  grid-template-columns: minmax(86px, 0.95fr) minmax(104px, 0.92fr) minmax(74px, 0.52fr) minmax(174px, 1.5fr);
  gap: 0;
  width: 100%;
  padding: 22px 12px 18px 34px;
  align-items: stretch;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-mission-card.is-compact .webapp-mission-grid {
  grid-template-columns: minmax(72px, 0.8fr) minmax(96px, 0.9fr) minmax(58px, 0.42fr) minmax(148px, 1.28fr);
}

.webapp-mission-column {
  padding: 0 12px 0 18px;
  display: grid;
  gap: 6px;
  align-content: center;
  border-right: 2px solid rgba(48, 129, 255, 0.76);
}

.webapp-mission-column:last-of-type {
  border-right: 0;
}

.webapp-cell-label {
  display: inline-block;
  color: #ff9d2e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.webapp-mission-map .webapp-cell-label {
  color: #ff6d52;
}

.webapp-mission-type .webapp-cell-label {
  color: #9858ff;
}

.webapp-mission-pl .webapp-cell-label {
  color: #d09cff;
}

.webapp-rarity-legendary,
.webapp-rarity-legendary-item {
  color: #ff9800;
  --webapp-rarity-rgb: 255, 152, 0;
}

.webapp-rarity-mythic {
  color: #ffe033;
  --webapp-rarity-rgb: 255, 224, 51;
}

.webapp-rarity-epic {
  color: #b456ff;
  --webapp-rarity-rgb: 180, 86, 255;
}

.webapp-rarity-rare {
  color: #00d4ff;
  --webapp-rarity-rgb: 0, 212, 255;
}

.webapp-rarity-uncommon {
  color: #63d460;
  --webapp-rarity-rgb: 99, 212, 96;
}

.webapp-rarity-common {
  color: #b0b7c3;
  --webapp-rarity-rgb: 176, 183, 195;
}

.webapp-rarity-unknown {
  color: #f3f3f3;
  --webapp-rarity-rgb: 243, 243, 243;
}

.webapp-mission-column strong {
  font-size: 1rem;
  line-height: 1.18;
}

.webapp-mission-column small {
  color: #8df0ae;
  font-size: 0.82rem;
  font-weight: 700;
}

.webapp-mission-pl strong {
  font-size: 1.7rem;
  text-align: center;
}

.webapp-mission-item strong {
  font-size: 1.08rem;
  text-align: center;
}

.webapp-mission-map strong,
.webapp-mission-type strong {
  text-align: center;
}

.webapp-plus-button {
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin-right: 18px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  border-radius: 18px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--webapp-accent);
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
}

.webapp-plus-button.is-tasked {
  color: #8df0ae;
  border-color: rgba(141, 240, 174, 0.34);
  background: rgba(141, 240, 174, 0.1);
}

.webapp-mission-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 16px 22px;
  border-top: 1px solid rgba(80, 160, 255, 0.34);
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.webapp-mission-status.is-missing {
  color: #ffde7d;
}

.webapp-mission-status.is-collected {
  color: #8df0ae;
}

.webapp-mission-status.is-hidden {
  color: #ffb4f4;
}

.webapp-mission-status.is-currency,
.webapp-mission-status.is-not_collection {
  color: var(--text-dim);
}

.webapp-mission-detail {
  padding: 14px 18px 18px 22px;
  border-top: 1px solid rgba(80, 160, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.webapp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.webapp-detail-rewards {
  display: grid;
  gap: 8px;
}

.webapp-detail-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(80, 160, 255, 0.12);
}

.webapp-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--webapp-accent);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.webapp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.12);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.webapp-badge.is-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.webapp-badge.is-accent {
  background: rgba(0, 212, 255, 0.12);
  color: #a8d9ff;
}

.webapp-badge.is-success {
  background: rgba(80, 214, 123, 0.14);
  color: #8df0ae;
}

.webapp-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(80, 160, 255, 0.26);
  background: rgba(255, 255, 255, 0.03);
}

.webapp-empty p {
  margin: 0;
  color: var(--text-dim);
}

.webapp-alert-skeleton {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(0, 212, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(6, 14, 42, 0.76);
}

.webapp-alert-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: webapp-skeleton-sweep 1.4s ease-in-out infinite;
}

.webapp-alert-skeleton-bar {
  position: absolute;
  top: 18px;
  bottom: 42px;
  left: 18px;
  width: 8px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.45);
}

.webapp-alert-skeleton-grid {
  display: grid;
  grid-template-columns: minmax(72px, 0.85fr) minmax(96px, 1fr) minmax(44px, 0.45fr) minmax(120px, 1.4fr);
  gap: 14px;
  padding: 28px 42px 20px 40px;
}

.webapp-alert-skeleton-grid span,
.webapp-alert-skeleton-footer {
  display: block;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(145, 170, 215, 0.13);
}

.webapp-alert-skeleton-grid span:nth-child(3) {
  min-height: 52px;
}

.webapp-alert-skeleton-footer {
  position: absolute;
  right: 20px;
  bottom: 12px;
  left: 40px;
  min-height: 18px;
  border-radius: 999px;
}

@keyframes webapp-skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

.webapp-manage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.webapp-manage-copy {
  display: grid;
  gap: 6px;
}

.webapp-manage-copy h2,
.webapp-section-head h2,
.webapp-dashboard-overview-copy h2 {
  margin: 0;
  font-size: 1.14rem;
}

.webapp-manage-copy p,
.webapp-section-head p,
.webapp-section-head small {
  margin: 0;
  color: var(--text-dim);
}

.webapp-manage-actions,
.webapp-task-actions,
.webapp-setting-actions,
.webapp-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webapp-task-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.webapp-task-main {
  display: grid;
  gap: 8px;
}

.webapp-task-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 179, 71, 0.12);
  color: var(--gold);
}

.webapp-task-label.is-completed {
  background: rgba(80, 214, 123, 0.14);
  color: #8df0ae;
}

.webapp-task-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.webapp-task-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.webapp-task-card p {
  margin: 0;
  color: var(--text-dim);
}

.webapp-task-card + .webapp-task-card {
  margin-top: 12px;
}

.webapp-collection-controls {
  display: grid;
  gap: 12px;
}

.webapp-control-stack {
  display: grid;
  gap: 12px;
}

.webapp-search {
  display: grid;
  gap: 8px;
}

.webapp-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
}

.webapp-control-row {
  display: grid;
  gap: 12px;
}

.webapp-inline-group {
  display: grid;
  gap: 8px;
}

.webapp-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.webapp-collection-loadmore {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 0 6px;
  color: var(--text-dim);
}

.webapp-collection-loadmore p {
  margin: 0;
}

.webapp-collection-loadmore-sentinel {
  width: 100%;
  height: 2px;
}

.webapp-collection-card {
  padding: 16px;
}

.webapp-collection-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.webapp-card-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--webapp-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.webapp-collection-card h3 {
  margin: 0;
  font-size: 1rem;
}

.webapp-viewer-category {
  padding: 0;
}

.webapp-viewer-category summary,
.webapp-viewer-category-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.webapp-viewer-category summary::-webkit-details-marker {
  display: none;
}

.webapp-viewer-category-head,
.webapp-viewer-subcat-copy,
.webapp-viewer-item-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.webapp-viewer-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(80, 160, 255, 0.24);
  font-size: 1.16rem;
}

.webapp-viewer-category-copy,
.webapp-viewer-subcat-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.webapp-viewer-category-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.webapp-viewer-chevron {
  color: var(--text-dim);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.webapp-viewer-category summary strong,
.webapp-viewer-subcat header strong {
  display: block;
}

.webapp-viewer-category summary small,
.webapp-viewer-subcat header small,
.webapp-viewer-item p {
  color: var(--text-dim);
}

.webapp-viewer-subcats {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.webapp-viewer-subcats.is-hidden {
  display: none;
}

.webapp-viewer-subcat {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(80, 160, 255, 0.12);
}

.webapp-viewer-subcat header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(80, 160, 255, 0.12);
}

.webapp-viewer-subcat.is-selected {
  border-color: rgba(0, 212, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08) inset;
}

.webapp-viewer-subcat-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-viewer-empty {
  min-height: 0;
  padding: 10px 12px;
}

.webapp-viewer-groups {
  display: grid;
  gap: 12px;
}

.webapp-viewer-groupbox {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(80, 160, 255, 0.12);
}

.webapp-viewer-groupbox-title {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.webapp-viewer-groupbox-divider {
  height: 1px;
  background: rgba(80, 160, 255, 0.12);
}

.webapp-viewer-groupbox-items {
  display: grid;
  gap: 8px;
}

.webapp-viewer-group-item {
  display: grid;
  gap: 4px;
}

.webapp-viewer-group-item h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

.webapp-viewer-group-item h4.is-collected {
  color: var(--webapp-accent);
  font-weight: 600;
}

.webapp-viewer-rarity-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.webapp-viewer-rarity-slot,
.webapp-viewer-numbered-slot {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.webapp-viewer-rarity-slot {
  width: 32px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.webapp-viewer-rarity-slot:not(.is-empty),
.webapp-viewer-numbered-slot {
  border-color: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.42);
  color: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.55);
  background: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.06);
}

.webapp-viewer-rarity-slot span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.webapp-viewer-rarity-slot.is-empty {
  border-color: rgba(255, 255, 255, 0.06);
  color: transparent;
  cursor: default;
  pointer-events: none;
}

.webapp-viewer-rarity-slot:not(.is-empty):hover,
.webapp-viewer-numbered-slot:hover {
  transform: translateY(-1px);
}

.webapp-viewer-rarity-slot.is-collected {
  border-color: rgb(var(--webapp-rarity-rgb, 255, 255, 255));
  color: rgb(var(--webapp-rarity-rgb, 255, 255, 255));
  background: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.26);
  font-weight: 700;
}

.webapp-viewer-numbered-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 64px));
  gap: 5px 8px;
  justify-content: start;
}

.webapp-viewer-numbered-slot-wrap {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 68px;
  color: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.55);
}

.webapp-viewer-numbered-slot {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.webapp-viewer-numbered-slot.is-collected {
  border-color: rgb(var(--webapp-rarity-rgb, 255, 255, 255));
  color: rgb(var(--webapp-rarity-rgb, 255, 255, 255));
  background: rgba(var(--webapp-rarity-rgb, 255, 255, 255), 0.3);
}

.webapp-viewer-numbered-slot span {
  font-size: 0.65rem;
  font-weight: 800;
}

.webapp-viewer-numbered-slot-label {
  color: var(--text-dim);
  font-size: 0.5rem;
  line-height: 1.1;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.webapp-viewer-numbered-slot-wrap.is-collected .webapp-viewer-numbered-slot-label {
  color: currentColor;
}

.webapp-viewer-category-trigger.is-static,
.webapp-viewer-subcat-trigger.is-static {
  cursor: default;
}

.webapp-dashboard-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.webapp-dashboard-ring {
  --progress: 0%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(3, 9, 26, 1) 58%, transparent 59%),
    conic-gradient(var(--webapp-accent) 0 var(--progress), var(--webapp-ring-bg) var(--progress) 100%);
  text-align: center;
}

.webapp-dashboard-ring strong,
.webapp-dashboard-ring span {
  display: block;
}

.webapp-dashboard-ring strong {
  font-size: 1.15rem;
}

.webapp-dashboard-ring span {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.webapp-dashboard-ring.is-small {
  width: 72px;
  height: 72px;
}

.webapp-dashboard-ring.is-small strong {
  font-size: 0.86rem;
}

.webapp-dashboard-overview-copy {
  display: grid;
  gap: 6px;
}

.webapp-dashboard-overview-copy p {
  margin: 0;
  color: var(--text-dim);
}

.webapp-dashboard-card {
  padding: 0;
}

.webapp-dashboard-card-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-dashboard-card-copy h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.webapp-dashboard-card-copy p,
.webapp-dashboard-card-copy small {
  margin: 0;
  color: var(--text-dim);
}

.webapp-dashboard-expanded {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.webapp-dashboard-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.webapp-tip-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.webapp-tip-card > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.1);
  font-size: 1.35rem;
}

.webapp-tip-card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.webapp-tip-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.4;
}

.webapp-settings-sections {
  display: grid;
  gap: 14px;
}

.webapp-settings-section {
  display: grid;
  gap: 14px;
}

.webapp-section-head {
  display: grid;
  gap: 4px;
}

.webapp-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(80, 160, 255, 0.16);
}

.webapp-setting-row.is-static {
  align-items: flex-start;
}

.webapp-setting-row span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.webapp-setting-row strong {
  font-size: 0.96rem;
}

.webapp-setting-row small {
  color: var(--text-dim);
  line-height: 1.4;
}

.webapp-setting-row select,
.webapp-setting-row input[type="checkbox"] {
  flex: 0 0 auto;
}

.webapp-setting-row select {
  min-width: 170px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
  font: inherit;
}

.webapp-setting-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--webapp-accent);
}

.webapp-setting-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  text-decoration: none;
}

.webapp-setting-link::before {
  content: "↗";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--webapp-accent);
  font-weight: 900;
}

.webapp-setting-link::after {
  content: ">";
  color: var(--text-dim);
  font-weight: 700;
}

.webapp-setting-link:hover,
.webapp-setting-link:focus-visible {
  border-color: rgba(0, 212, 255, 0.34);
  background: rgba(0, 212, 255, 0.08);
}

.webapp-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.webapp-theme-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.webapp-theme-card strong {
  font-size: 0.98rem;
}

.webapp-theme-card small {
  color: var(--text-dim);
}

.webapp-theme-card em {
  color: var(--webapp-accent);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.webapp-theme-card.is-active {
  border-color: rgba(0, 212, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.18);
}

.webapp-theme-card.is-premium:not(.is-active) {
  opacity: 0.88;
}

.webapp-setting-link {
  display: block;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.webapp-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 14;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(760px, calc(100% - 18px));
  padding: 14px 12px;
  transform: translateX(-50%);
  border-radius: 32px;
  backdrop-filter: blur(18px);
  background: rgba(3, 9, 26, 0.9);
}

.webapp-tab-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 8px 6px 6px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}

.webapp-tab-button span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 2px solid rgba(60, 129, 255, 0.55);
  background: rgba(9, 21, 51, 0.96);
  font-size: 1.2rem;
}

.webapp-tab-button strong {
  font-size: 0.88rem;
  letter-spacing: 0;
}

.webapp-tab-button.is-active,
.webapp-tab-button:hover,
.webapp-tab-button:focus-visible {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.18),
    0 0 18px rgba(0, 212, 255, 0.08);
}

.webapp-tab-button.is-active span {
  background: rgba(0, 212, 255, 0.18);
  color: var(--webapp-accent);
}

@media (max-width: 900px) {
  .webapp-topbar,
  .webapp-status-strip,
  .webapp-manage-card,
  .webapp-setting-row,
  .webapp-task-columns,
  .webapp-dashboard-hero,
  .webapp-collection-card-top,
  .webapp-mission-status {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .webapp-task-columns {
    display: grid;
  }

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

  .webapp-dashboard-ring {
    margin: 0 auto;
  }

  .webapp-mission-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .webapp-mission-grid {
    grid-template-columns: minmax(72px, 0.9fr) minmax(88px, 0.95fr) minmax(58px, 0.45fr) minmax(136px, 1.35fr);
    gap: 0;
  }

  .webapp-mission-item {
    grid-column: auto;
  }

  .webapp-plus-button {
    grid-column: auto;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .webapp-shell {
    width: min(100%, calc(100% - 12px));
    padding-bottom: 166px;
  }

  .webapp-topbar,
  .webapp-status-strip,
  .webapp-inner-tabs,
  .webapp-filter-shell,
  .webapp-manage-card,
  .webapp-task-column,
  .webapp-collection-controls,
  .webapp-dashboard-hero,
  .webapp-settings-section,
  .webapp-tip-card {
    padding: 14px;
  }

  .webapp-topbar-title {
    font-size: 1.8rem;
  }

  .webapp-topbar-subtitle {
    font-size: 0.9rem;
  }

  .webapp-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .webapp-density-toggle {
    flex: 1 1 auto;
  }

  .webapp-density-button {
    min-width: 0;
    padding: 0 10px;
  }

  .webapp-mission-card::before {
    top: 18px;
    bottom: 58px;
    left: 18px;
    width: 7px;
  }

  .webapp-mission-summary {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .webapp-mission-grid {
    grid-template-columns: minmax(50px, 0.72fr) minmax(62px, 0.9fr) minmax(38px, 0.38fr) minmax(98px, 1.18fr);
    padding: 20px 4px 16px 28px;
  }

  .webapp-mission-column {
    border-right: 1px solid rgba(48, 129, 255, 0.64);
    padding: 0 4px 0 7px;
    gap: 5px;
  }

  .webapp-mission-column strong {
    font-size: 0.82rem;
    line-height: 1.14;
  }

  .webapp-cell-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .webapp-mission-pl strong {
    font-size: 1.35rem;
  }

  .webapp-mission-column small {
    font-size: 0.72rem;
  }

  .webapp-plus-button {
    grid-column: auto;
    justify-self: center;
    align-self: center;
    width: 44px;
    height: 44px;
    margin: 0 8px 0 2px;
    font-size: 1.45rem;
  }

  .webapp-task-actions,
  .webapp-setting-actions,
  .webapp-mission-status-actions,
  .webapp-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .webapp-bottom-nav {
    gap: 4px;
    padding: 12px 8px;
  }

  .webapp-tab-button {
    min-height: 82px;
    padding: 6px 2px 4px;
    gap: 6px;
  }

  .webapp-tab-button span {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .webapp-tab-button strong {
    font-size: 0.78rem;
  }
}

.webapp-shell {
  width: min(1080px, calc(100% - 18px));
}

.webapp-topbar {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 10px 10px;
}

.webapp-topbar-title {
  letter-spacing: 0;
}

.webapp-topbar-meta {
  line-height: 1.3;
}

.webapp-inner-tabs {
  min-height: 78px;
  border-radius: 22px;
  padding: 10px;
}

.webapp-inner-tab {
  min-height: 58px;
  border-radius: 20px;
  font-size: 1rem;
}

.webapp-filter-shell {
  padding: 0;
  border-radius: 22px;
}

.webapp-filter-summary {
  min-height: 56px;
  padding: 0 16px;
}

.webapp-filter-summary-label {
  font-size: 1.02rem;
  font-weight: 900;
}

.webapp-filter-panel {
  margin-top: 0;
  padding: 0 16px 16px;
}

.webapp-filter-panel-inner {
  gap: 0;
}

.webapp-filter-row {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 10px 0;
}

.webapp-row-label {
  padding-top: 0;
  font-size: 0.94rem;
}

.webapp-filter-panel .webapp-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.webapp-filter-panel .webapp-chip-row::-webkit-scrollbar {
  display: none;
}

.webapp-filter-panel .webapp-pill-button {
  flex: 0 0 auto;
  min-height: 40px;
  white-space: nowrap;
}

.webapp-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
}

.webapp-pill-icon {
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.webapp-toolbar-row {
  min-height: 26px;
}

.webapp-toolbar-row .webapp-chip:not([data-webapp-alert-count-chip]) {
  display: none;
}

.webapp-toolbar-row [data-webapp-alert-count-chip] {
  border: 0;
  background: transparent;
  padding: 0 2px;
  min-height: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.webapp-mission-card {
  box-shadow: none;
}

@media (max-width: 720px) {
  .webapp-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 10px;
    padding-bottom: 136px;
  }

  .webapp-app {
    gap: 10px;
  }

  .webapp-screen {
    gap: 12px;
  }

  .webapp-topbar {
    padding: 14px 8px 8px;
  }

  .webapp-topbar-main {
    gap: 12px;
  }

  .webapp-topbar-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .webapp-topbar-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .webapp-topbar-title {
    font-size: 1.95rem;
    line-height: 1.04;
  }

  .webapp-topbar-subtitle {
    font-size: 1rem;
  }

  .webapp-topbar-meta {
    font-size: 0.9rem;
  }

  .webapp-filter-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .webapp-bottom-nav {
    bottom: 0;
    left: 50%;
    width: calc(100% - 10px);
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    padding: 10px 8px 14px;
  }

  .webapp-tab-button {
    min-height: 78px;
  }
}

[data-webapp-panel="alerts"] .webapp-topbar-main {
  align-items: center;
}

[data-webapp-panel="alerts"] .webapp-topbar-copy {
  flex: 1 1 auto;
}

[data-webapp-panel="alerts"] .webapp-topbar-eyebrow {
  display: none;
}

.webapp-refresh-button {
  display: none;
}

[data-webapp-panel="alerts"] .webapp-topbar-actions {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
}

[data-webapp-panel="alerts"] .webapp-density-toggle {
  width: 194px;
}

[data-webapp-panel="alerts"] .webapp-density-button {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
}

@media (max-width: 720px) {
  [data-webapp-panel="alerts"] .webapp-topbar-main {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "icon copy actions";
    gap: 10px 10px;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-icon {
    grid-area: icon;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-copy {
    grid-area: copy;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-actions {
    grid-area: actions;
    width: auto;
  }

  [data-webapp-panel="alerts"] .webapp-density-toggle {
    width: 132px;
  }
}

/* App parity pass: keep the web preview close to the Android Compose surfaces. */
.webapp-tab-button {
  outline: none;
}

.webapp-inner-tab {
  outline: none;
}

.webapp-tab-button:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.28),
    0 0 0 2px rgba(0, 212, 255, 0.22);
}

.webapp-inner-tab:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.24),
    0 0 0 2px rgba(0, 212, 255, 0.18);
}

.webapp-tab-button.is-active,
.webapp-tab-button:hover,
.webapp-tab-button:focus-visible {
  color: var(--webapp-accent);
  background: transparent;
}

[data-webapp-panel="collection"] .webapp-topbar-main {
  align-items: center;
}

[data-webapp-panel="collection"] .webapp-topbar-copy {
  flex: 1 1 auto;
}

[data-webapp-panel="collection"] .webapp-topbar-actions {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.webapp-view-toggle {
  width: 180px;
  overflow: hidden;
}

.webapp-view-toggle .webapp-density-button {
  min-width: 0;
  width: 100%;
  padding: 0 8px;
  white-space: nowrap;
}

.webapp-topbar-search {
  margin-top: 10px;
}

.webapp-topbar-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.webapp-collection-controls {
  padding: 0;
  overflow: hidden;
}

.webapp-collection-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(80, 160, 255, 0.18);
  font-size: 1.02rem;
  font-weight: 900;
}

.webapp-collection-filter-title span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ff9800;
  color: #ffffff;
}

.webapp-collection-filter-title strong {
  flex: 1 1 auto;
  margin-left: 10px;
}

.webapp-collection-progress {
  display: grid;
  gap: 6px;
  padding: 14px 16px 8px;
}

.webapp-collection-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 800;
}

.webapp-collection-progress-copy strong {
  color: var(--text-primary);
}

.webapp-collection-progress-track,
.webapp-stat-square-track {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(80, 160, 255, 0.14);
}

.webapp-collection-progress-track {
  height: 11px;
}

.webapp-collection-progress-track span,
.webapp-stat-square-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--webapp-accent), #7a5cff);
  transition: width 180ms ease;
}

.webapp-collection-stat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 12px;
  scrollbar-width: none;
}

.webapp-collection-stat-row::-webkit-scrollbar {
  display: none;
}

.webapp-stat-square {
  flex: 0 0 76px;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 110px;
  padding: 8px 6px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.webapp-stat-square.is-active {
  border-color: rgba(0, 212, 255, 0.78);
  background: rgba(0, 212, 255, 0.13);
}

.webapp-stat-square.is-complete {
  border-color: rgba(93, 224, 93, 0.42);
  background: rgba(0, 50, 30, 0.24);
}

.webapp-stat-square-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.webapp-stat-square-label {
  width: 100%;
  min-height: 24px;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.webapp-stat-square.is-active .webapp-stat-square-label {
  color: var(--webapp-accent);
}

.webapp-stat-square strong {
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
}

.webapp-stat-square small {
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1;
}

.webapp-stat-square-track {
  width: 100%;
  height: 3px;
  margin-top: 4px;
}

.webapp-collection-status-group {
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 0 16px 14px;
}

.webapp-collection-status-group .webapp-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.webapp-collection-status-group .webapp-chip-row::-webkit-scrollbar {
  display: none;
}

.webapp-collection-status-group .webapp-pill-button {
  flex: 0 0 auto;
}

.webapp-collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
  padding: 0 4px 6px;
}

.webapp-collection-grid-group {
  display: grid;
  gap: 8px;
}

.webapp-collection-grid-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 2px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.webapp-collection-grid-header i {
  flex: 1 1 auto;
  height: 1px;
  background: var(--glass-border);
}

.webapp-collection-card {
  min-height: 184px;
  padding: 0;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  border-radius: 18px;
  border-color: rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.webapp-collection-card.is-collected {
  border-color: rgba(93, 224, 93, 0.38);
  background: rgba(0, 50, 30, 0.22);
}

.webapp-collection-card-strip {
  grid-row: 1 / span 3;
  width: 100%;
  min-height: 100%;
  background: currentColor;
}

.webapp-collection-card.webapp-rarity-legendary,
.webapp-collection-card.webapp-rarity-legendary-item {
  color: #ff9800;
}

.webapp-collection-card.webapp-rarity-mythic {
  color: #ffe033;
}

.webapp-collection-card.webapp-rarity-epic {
  color: #b456ff;
}

.webapp-collection-card.webapp-rarity-rare {
  color: #00d4ff;
}

.webapp-collection-card.webapp-rarity-uncommon {
  color: #63d460;
}

.webapp-collection-card-body {
  grid-column: 2;
}

.webapp-collection-card-body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 12px 12px 10px;
}

.webapp-collection-card-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.webapp-collection-card-icon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: 1.55rem;
  line-height: 1;
}

.webapp-collection-card h3 {
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 0.99rem;
  font-weight: 800;
  line-height: 1.22;
  overflow: hidden;
}

.webapp-collection-card-rarity-row {
  min-height: 20px;
  display: flex;
  align-items: center;
}

.webapp-collection-rarity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webapp-collection-card-description {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
}

.webapp-collection-card-description p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.webapp-tier-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 214, 89, 0.24);
  border-radius: 12px;
  background: rgba(255, 214, 89, 0.06);
  color: var(--text-primary);
}

.webapp-tier-picker.is-compact {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 6px 8px;
  gap: 3px 6px;
}

.webapp-tier-picker.is-compact > span {
  white-space: nowrap;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.webapp-tier-picker.is-compact > small {
  grid-column: 1 / -1;
  white-space: nowrap;
  line-height: 1.05;
  font-size: 0.66rem;
}

.webapp-tier-picker.is-compact .webapp-tier-stars {
  min-width: 0;
  justify-content: flex-start;
  gap: 0;
}

.webapp-tier-picker.is-compact .webapp-tier-star {
  min-width: 14px;
  min-height: 18px;
  font-size: 0.84rem;
}

.webapp-tier-picker.is-compact .webapp-tier-clear {
  grid-column: 1 / -1;
  justify-self: start;
}

.webapp-tier-picker > span {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.webapp-tier-picker > small {
  grid-column: 1;
  color: #ffd95b;
  font-size: 0.72rem;
  font-weight: 900;
}

.webapp-tier-stars {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}

.webapp-tier-star,
.webapp-tier-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 217, 91, 0.52);
  font: inherit;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.webapp-tier-star {
  min-width: 19px;
  min-height: 22px;
  padding: 1px 0;
  font-size: 1rem;
}

.webapp-tier-star.is-selected {
  color: #ffd95b;
  text-shadow: 0 0 10px rgba(255, 217, 91, 0.4);
}

.webapp-tier-star:hover,
.webapp-tier-star:focus-visible,
.webapp-tier-clear:hover,
.webapp-tier-clear:focus-visible {
  color: #fff2a3;
  outline: none;
}

.webapp-tier-clear {
  grid-column: 2;
  justify-self: end;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.webapp-collection-tier-summary {
  color: #ffd95b;
}

.webapp-collection-card-footer {
  display: flex;
  justify-content: center;
  align-items: end;
  padding-top: 4px;
}

.webapp-viewer-item-personality {
  margin: -1px 0 4px;
  color: var(--text-dim);
  font-size: 0.74rem;
}

.webapp-collection-check {
  color: #5de05d;
  font-weight: 1000;
  font-size: 0.95rem;
}

.webapp-collection-card-footer .button.secondary {
  min-width: 0;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.1;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.webapp-collection-card-footer .button.secondary.is-long {
  padding-inline: 9px;
  font-size: 0.66rem;
}

.webapp-collection-card-footer .button.secondary.is-very-long {
  padding-inline: 7px;
  font-size: 0.58rem;
  letter-spacing: 0.01em;
}

.webapp-settings-sections {
  gap: 16px;
}

.webapp-settings-section {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.webapp-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.webapp-section-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(80, 160, 255, 0.22);
}

.webapp-section-head h2 {
  color: var(--webapp-accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.webapp-setting-row,
.webapp-theme-card,
.webapp-setting-link {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.webapp-theme-card {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.webapp-theme-card::before {
  content: "";
  grid-row: 1 / span 3;
  width: 76px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, var(--swatch-a, #00d4ff) 0 46%, transparent 46%),
    linear-gradient(180deg, var(--swatch-b, #6c8bff) 0 48%, var(--swatch-c, #0b1638) 48%);
}

.webapp-theme-card[data-webapp-theme="storm"] {
  --swatch-a: #00d4ff;
  --swatch-b: #6c8bff;
  --swatch-c: #08122d;
}

.webapp-theme-card[data-webapp-theme="neon_husks"] {
  --swatch-a: #6dffae;
  --swatch-b: #11d6ff;
  --swatch-c: #071a16;
}

.webapp-theme-card[data-webapp-theme="stonewood_sunset"] {
  --swatch-a: #ffb347;
  --swatch-b: #ff6d52;
  --swatch-c: #251107;
}

.webapp-theme-card[data-webapp-theme="zero_point_void"] {
  --swatch-a: #9d7cff;
  --swatch-b: #31d7ff;
  --swatch-c: #08061d;
}

.webapp-theme-card[data-webapp-theme="canny_valley_gold"] {
  --swatch-a: #ffd66b;
  --swatch-b: #ff9d2e;
  --swatch-c: #241507;
}

.webapp-setting-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.webapp-setting-row::before {
  content: "⚙️";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 1.18rem;
}

.webapp-setting-row:has([data-webapp-language-select])::before {
  content: "🌐";
}

.webapp-setting-row:has([data-webapp-chip-size])::before {
  content: "🔎";
}

.webapp-setting-row:has([data-webapp-setting-haptics])::before {
  content: "📳";
}

.webapp-setting-row:has([data-webapp-setting-starter-progress])::before {
  content: "📦";
}

.webapp-setting-row:has([data-webapp-setting-motion])::before {
  content: "🎞️";
}

.webapp-setting-row:has([data-webapp-setting-currency-toggle])::before,
.webapp-setting-row:has([data-webapp-setting-notify-currency])::before {
  content: "🪙";
}

.webapp-setting-row:has([data-webapp-setting-notify-collection])::before {
  content: "⚡";
}

.webapp-setting-row:has([data-webapp-setting-reset-reminder])::before {
  content: "⏰";
}

.webapp-setting-row.is-static::before {
  content: "💾";
}

.webapp-setting-row[data-webapp-reset-progress-row]::before {
  content: "🗑️";
}

.webapp-setting-row.is-danger {
  border-color: rgba(239, 83, 80, 0.34);
  background: rgba(239, 83, 80, 0.07);
}

.webapp-setting-row > span,
.webapp-setting-row > .webapp-setting-actions {
  min-width: 0;
}

.webapp-setting-row input[type="checkbox"] {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(80, 160, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  cursor: pointer;
}

.webapp-setting-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--text-dim);
  transition: transform 160ms ease, background 160ms ease;
}

.webapp-setting-row input[type="checkbox"]:checked {
  background: rgba(0, 212, 255, 0.42);
  border-color: rgba(0, 212, 255, 0.76);
}

.webapp-setting-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: var(--bg-deep);
}

.webapp-settings-topbar-actions {
  margin-left: auto;
}

.webapp-setting-row[data-webapp-setting-toggle] {
  cursor: pointer;
  user-select: none;
}

.webapp-setting-row[data-webapp-setting-toggle] input[type="checkbox"] {
  pointer-events: none;
}

.webapp-setting-row--app-only {
  border-color: rgba(255, 211, 92, 0.22);
  background: rgba(255, 211, 92, 0.07);
}

.webapp-setting-row--app-only::before {
  content: "\1F514";
}

@media (max-width: 720px) {
  [data-webapp-panel="collection"] .webapp-topbar-main {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px 10px;
  }

  [data-webapp-panel="collection"] .webapp-topbar-actions {
    width: auto;
  }

  .webapp-view-toggle {
    width: 132px;
  }

  [data-webapp-panel="collection"] .webapp-density-button,
  [data-webapp-panel="alerts"] .webapp-density-button {
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.72rem;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-icon,
  [data-webapp-panel="collection"] .webapp-topbar-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-title,
  [data-webapp-panel="collection"] .webapp-topbar-title {
    font-size: 1.5rem;
    white-space: nowrap;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-subtitle,
  [data-webapp-panel="collection"] .webapp-topbar-subtitle {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-meta {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .webapp-setting-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    flex-direction: initial;
    align-items: center;
  }

  .webapp-setting-row select {
    min-width: 132px;
  }
}

/* App parity pass: tasks, dashboard, and mobile header fit. */
html,
body,
.webapp-shell,
.webapp-app,
.webapp-screen {
  max-width: 100%;
  overflow-x: hidden;
}

.webapp-screen > *,
.webapp-topbar-main,
.webapp-filter-row,
.webapp-toolbar-row,
.webapp-chip-row,
.webapp-mission-summary,
.webapp-task-columns,
.webapp-dashboard-grid {
  min-width: 0;
}

.webapp-filter-row > .webapp-chip-row,
.webapp-collection-status-group .webapp-chip-row {
  min-width: 0;
  max-width: 100%;
}

.webapp-debug-metrics {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 30;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(3, 9, 26, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.24);
  color: var(--text-primary);
  font-size: 0.74rem;
  line-height: 1;
  pointer-events: none;
}

.webapp-manage-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(0, 212, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 12, 31, 0.92);
}

.webapp-manage-copy h2 {
  margin: 0;
  font-size: 1.04rem;
}

.webapp-manage-copy p {
  margin: 6px 0 0;
  color: var(--text-dim);
}

.webapp-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webapp-manage-actions .button {
  flex: 1 1 180px;
}

.webapp-task-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.webapp-task-column {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.webapp-task-column .webapp-section-head {
  margin-bottom: 10px;
  padding: 0 4px;
}

.webapp-task-list {
  display: grid;
  gap: 12px;
}

.webapp-task-card {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  padding: 0;
  border-radius: 22px;
  border: 1.5px solid rgba(80, 160, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #7b87a8;
}

.webapp-task-card.webapp-rarity-legendary,
.webapp-task-card.webapp-rarity-legendary-item {
  color: #ff9800;
}

.webapp-task-card.webapp-rarity-mythic {
  color: #ffe033;
}

.webapp-task-card.webapp-rarity-epic {
  color: #b456ff;
}

.webapp-task-card.webapp-rarity-rare {
  color: #00d4ff;
}

.webapp-task-card.webapp-rarity-uncommon {
  color: #63d460;
}

.webapp-task-card.is-completed {
  border-color: rgba(93, 224, 93, 0.34);
  background: rgba(11, 45, 25, 0.4);
}

.webapp-task-card-strip {
  grid-row: 1 / span 3;
  margin: 14px 0 14px 14px;
  border-radius: 999px;
  background: currentColor;
}

.webapp-task-card-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px 14px;
}

.webapp-task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webapp-task-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webapp-task-kicker.is-pending {
  color: var(--webapp-accent);
  background: rgba(0, 212, 255, 0.14);
}

.webapp-task-kicker.is-completed {
  color: #84f08c;
  background: rgba(93, 224, 93, 0.16);
}

.webapp-task-card h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.18;
}

.webapp-task-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.3;
}

.webapp-task-card .webapp-alert-meta {
  padding: 0;
}

.webapp-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.webapp-task-actions .button {
  flex: 1 1 170px;
}

.webapp-dashboard-hero {
  width: 100% !important;
  display: block !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.webapp-dashboard-overview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 140px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 2px solid rgba(255, 210, 92, 0.46);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 107, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 173, 45, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(6, 14, 36, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 107, 0.16);
}

.webapp-dashboard-overview-ring,
.webapp-dashboard-summary-ring {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.webapp-dashboard-overview-ring {
  width: 96px;
  height: 96px;
  background: conic-gradient(#ffd66b var(--progress), rgba(255, 255, 255, 0.08) 0);
}

.webapp-dashboard-overview-ring::before,
.webapp-dashboard-summary-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #091330;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.webapp-dashboard-overview-ring strong,
.webapp-dashboard-overview-ring span,
.webapp-dashboard-summary-ring strong {
  position: relative;
  z-index: 1;
  text-align: center;
}

.webapp-dashboard-overview-ring strong {
  display: block;
  color: #ffe8a6;
  font-size: 1.24rem;
  line-height: 1;
}

.webapp-dashboard-overview-ring span {
  display: block;
  width: 58px;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.62rem;
  line-height: 1.1;
}

.webapp-dashboard-overview-copy h2 {
  margin: 4px 0 6px;
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.12;
}

.webapp-dashboard-overview-copy p:last-child {
  margin: 0;
  color: var(--text-dim);
}

.webapp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.webapp-dashboard-summary-card {
  padding: 0;
  border-radius: 20px;
  border-color: rgba(80, 160, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.webapp-dashboard-summary-card.is-expanded {
  grid-column: 1 / -1;
}

.webapp-dashboard-summary-head {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-dashboard-summary-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  font-size: 1.18rem;
}

.webapp-dashboard-summary-copy {
  min-width: 0;
}

.webapp-dashboard-summary-copy h3 {
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.1;
}

.webapp-dashboard-summary-copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.webapp-dashboard-summary-ring {
  width: 64px;
  height: 64px;
  background: conic-gradient(var(--webapp-accent) var(--progress), rgba(255, 255, 255, 0.08) 0);
}

.webapp-dashboard-summary-ring strong {
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1;
}

.webapp-dashboard-summary-footer {
  padding: 0 14px 14px;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.webapp-dashboard-summary-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(80, 160, 255, 0.14);
}

.webapp-dashboard-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 160, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.webapp-dashboard-item-copy {
  min-width: 0;
}

.webapp-dashboard-item-copy strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.18;
}

.webapp-dashboard-item-copy small {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.webapp-setting-row::before {
  content: "\2699\FE0F";
}

.webapp-setting-row:has([data-webapp-language-select])::before {
  content: "\1F310";
}

.webapp-setting-row:has([data-webapp-chip-size])::before {
  content: "\1F50E";
}

.webapp-setting-row:has([data-webapp-setting-haptics])::before {
  content: "\1F4F3";
}

.webapp-setting-row:has([data-webapp-setting-starter-progress])::before {
  content: "\1F4E6";
}

.webapp-setting-row:has([data-webapp-setting-motion])::before {
  content: "\1F39E\FE0F";
}

.webapp-setting-row:has([data-webapp-setting-currency-toggle])::before,
.webapp-setting-row:has([data-webapp-setting-notify-currency])::before {
  content: "\1FA99";
}

.webapp-setting-row:has([data-webapp-setting-notify-collection])::before {
  content: "\26A1";
}

.webapp-setting-row:has([data-webapp-setting-reset-reminder])::before {
  content: "\23F0";
}

.webapp-setting-row.is-static::before {
  content: "\1F4BE";
}

.webapp-setting-row[data-webapp-reset-progress-row]::before {
  content: "\1F5D1\FE0F";
}

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

@media (max-width: 720px) {
  [data-webapp-panel="alerts"] .webapp-topbar-main,
  [data-webapp-panel="collection"] .webapp-topbar-main {
    grid-template-columns: 48px minmax(0, 1fr) 104px;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-title,
  [data-webapp-panel="collection"] .webapp-topbar-title {
    font-size: clamp(1.06rem, 4.4vw, 1.38rem);
  }

  [data-webapp-panel="alerts"] .webapp-density-toggle,
  .webapp-view-toggle {
    width: 104px;
  }

  [data-webapp-panel="collection"] .webapp-density-button,
  [data-webapp-panel="alerts"] .webapp-density-button {
    min-height: 36px;
    padding: 0 2px;
    font-size: 0.62rem;
  }

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

  .webapp-dashboard-overview-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .webapp-dashboard-summary-head {
    grid-template-columns: 34px minmax(0, 1fr) 52px;
    gap: 8px;
    padding: 12px;
  }

  .webapp-dashboard-summary-ring {
    width: 52px;
    height: 52px;
  }

  .webapp-bottom-nav {
    width: calc(100% - 20px);
    gap: 4px;
    padding: 8px 6px 12px;
  }

  .webapp-tab-button {
    min-height: 72px;
    padding: 6px 1px 4px;
    gap: 4px;
  }

  .webapp-tab-button span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.02rem;
  }

  .webapp-tab-button strong {
    font-size: 0.72rem;
  }

  .webapp-task-actions .button {
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  [data-webapp-panel="alerts"] .webapp-topbar-main,
  [data-webapp-panel="collection"] .webapp-topbar-main {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "actions actions";
  }

  [data-webapp-panel="alerts"] .webapp-topbar-icon,
  [data-webapp-panel="collection"] .webapp-topbar-icon {
    grid-area: icon;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-copy,
  [data-webapp-panel="collection"] .webapp-topbar-copy {
    grid-area: copy;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-actions,
  [data-webapp-panel="collection"] .webapp-topbar-actions {
    grid-area: actions;
    justify-content: flex-end;
    margin-top: 2px;
  }

  .webapp-bottom-nav {
    width: calc(100% - 26px);
  }

  .webapp-tab-button span {
    width: 38px;
    height: 38px;
    font-size: 0.96rem;
  }

  .webapp-tab-button strong {
    font-size: 0.68rem;
  }

  .webapp-viewer-groupbox {
    padding: 9px;
  }

  .webapp-viewer-group-item h4 {
    font-size: 0.84rem;
  }

  .webapp-viewer-rarity-slot {
    width: 28px;
    height: 22px;
  }

  .webapp-viewer-numbered-grid {
    grid-template-columns: repeat(4, minmax(0, 62px));
    gap: 4px 6px;
  }

  .webapp-viewer-numbered-slot-wrap {
    width: 62px;
  }

  .webapp-viewer-numbered-slot {
    width: 26px;
    height: 26px;
  }

  .webapp-viewer-numbered-slot-label {
    font-size: 0.44rem;
  }

  .webapp-setting-link {
    grid-template-columns: 26px minmax(0, 1fr) 12px;
  }
}

@media (max-width: 560px) {
  .webapp-mission-card {
    border-width: 1.5px;
    border-radius: 24px;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-main,
  [data-webapp-panel="collection"] .webapp-topbar-main {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon copy"
      "actions actions" !important;
    gap: 10px 10px !important;
    align-items: start !important;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-icon,
  [data-webapp-panel="collection"] .webapp-topbar-icon {
    grid-area: icon !important;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-copy,
  [data-webapp-panel="collection"] .webapp-topbar-copy {
    grid-area: copy !important;
  }

  [data-webapp-panel="alerts"] .webapp-topbar-actions,
  [data-webapp-panel="collection"] .webapp-topbar-actions {
    grid-area: actions !important;
    width: 100% !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
  }

  [data-webapp-panel="alerts"] .webapp-density-toggle,
  .webapp-view-toggle {
    width: 148px !important;
    margin-left: auto !important;
  }

  .webapp-mission-summary {
    grid-template-columns: minmax(0, 1fr) 50px !important;
  }

  .webapp-mission-grid {
    grid-template-columns: minmax(44px, 0.62fr) minmax(52px, 0.78fr) minmax(32px, 0.28fr) minmax(78px, 1fr) !important;
    padding: 18px 2px 14px 24px !important;
  }

  .webapp-mission-column {
    padding: 0 3px 0 6px !important;
  }

  .webapp-mission-column strong {
    font-size: 0.76rem !important;
  }

  .webapp-mission-pl strong {
    font-size: 1.2rem !important;
  }

  .webapp-mission-item strong {
    font-size: 0.88rem !important;
  }

  .webapp-mission-status {
    gap: 8px;
    padding: 12px 14px 14px 18px;
    font-size: 0.88rem;
  }

  .webapp-plus-button {
    width: 36px !important;
    height: 36px !important;
    margin: 0 6px 0 0 !important;
    border-radius: 12px !important;
    font-size: 1.16rem !important;
  }
}

/* App parity pass: tasks behavior, dashboard overview, settings selects, and modal dialogs. */
.webapp-setting-row select {
  color-scheme: dark;
  font: inherit;
}

.webapp-setting-row select option,
.webapp-setting-row select optgroup {
  color: #eef4ff;
  background: #0b1735;
}

.webapp-manage-actions {
  justify-content: flex-end;
}

.webapp-manage-clear-button {
  min-width: 108px;
  border-color: rgba(255, 183, 77, 0.46);
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.12);
}

.webapp-task-helper-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.webapp-task-helper-row span:first-child {
  text-align: left;
  white-space: nowrap;
}

.webapp-task-helper-row span:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.webapp-task-helper-row span:last-child {
  text-align: right;
  white-space: nowrap;
}

.webapp-task-columns {
  grid-template-columns: 1fr;
  gap: 16px;
}

.webapp-task-card {
  overflow: hidden;
}

.webapp-task-card-button {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-task-card-button:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.6);
  outline-offset: -2px;
}

.webapp-task-card-body {
  gap: 12px;
}

.webapp-task-detail-hint {
  display: inline-flex;
  align-items: center;
  color: var(--webapp-accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.webapp-dashboard-overview-card {
  gap: 14px;
  padding: 18px 20px;
}

.webapp-dashboard-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.webapp-dashboard-overview-copy {
  min-width: 0;
}

.webapp-dashboard-overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webapp-modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.webapp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 26, 0.76);
  backdrop-filter: blur(6px);
}

.webapp-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  max-height: calc(100vh - 48px);
  transform: translate(-50%, -50%);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(6, 20, 52, 0.98), rgba(4, 13, 34, 0.98)),
    rgba(4, 13, 34, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.webapp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.webapp-modal-head h3,
.webapp-modal-copy h3 {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 1.16rem;
  line-height: 1.14;
}

.webapp-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.webapp-modal-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.webapp-modal-copy {
  display: grid;
  gap: 12px;
}

.webapp-modal-copy p,
.webapp-modal-body p,
.webapp-modal-note {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
}

.webapp-modal-note {
  color: var(--webapp-accent);
}

.webapp-release-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--text-primary);
}

.webapp-release-list li {
  padding-left: 4px;
  color: var(--text-primary);
  line-height: 1.45;
}

.webapp-report-form {
  gap: 14px;
}

.webapp-report-target {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 16px;
  background: rgba(4, 12, 34, 0.44);
}

.webapp-report-target strong {
  color: var(--text-primary);
}

.webapp-report-target small,
.webapp-report-field small {
  color: var(--text-dim);
}

.webapp-report-field {
  display: grid;
  gap: 8px;
}

.webapp-report-field span {
  color: var(--text-primary);
  font-weight: 800;
}

.webapp-report-field textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(1, 7, 23, 0.82);
  font: inherit;
}

.webapp-report-field textarea:focus {
  outline: 0;
  border-color: rgba(0, 212, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.webapp-modal-reward-block {
  display: grid;
  gap: 10px;
}

.webapp-modal-reward-block strong {
  color: var(--text-primary);
}

.webapp-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.webapp-modal-actions-stack {
  display: grid;
  gap: 10px;
}

.webapp-clear-option {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.webapp-clear-option strong,
.webapp-clear-option small {
  display: block;
}

.webapp-clear-option strong {
  color: #ffb74d;
  font-size: 0.84rem;
}

.webapp-clear-option small {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 2px;
}

.webapp-modal-card.is-alert-detail {
  width: min(94vw, 640px);
  max-height: calc(100vh - 40px);
  border-radius: 22px;
  border-color: rgba(80, 160, 255, 0.34);
  background: var(--bg-mid);
}

.webapp-modal-head.is-alert-detail {
  align-items: center;
  padding: 10px 12px 0 20px;
}

.webapp-modal-grabber {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.24);
}

.webapp-alert-detail-sheet {
  display: grid;
  gap: 12px;
  padding: 0 2px 2px;
}

.webapp-alert-detail-title {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.14;
  font-weight: 900;
}

.webapp-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.webapp-detail-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(232, 240, 255, 0.16);
  background: rgba(232, 240, 255, 0.07);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.webapp-detail-pill.is-stonewood {
  color: #90caf9;
  border-color: rgba(144, 202, 249, 0.42);
  background: rgba(144, 202, 249, 0.14);
}

.webapp-detail-pill.is-plankerton {
  color: #81c784;
  border-color: rgba(129, 199, 132, 0.42);
  background: rgba(129, 199, 132, 0.14);
}

.webapp-detail-pill.is-canny {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.42);
  background: rgba(255, 183, 77, 0.14);
}

.webapp-detail-pill.is-twine {
  color: #ff8a65;
  border-color: rgba(255, 138, 101, 0.42);
  background: rgba(255, 138, 101, 0.14);
}

.webapp-detail-pill.is-ventures {
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.14);
}

.webapp-detail-pill.is-modifier {
  color: #8df0ae;
  border-color: rgba(141, 240, 174, 0.38);
  background: rgba(141, 240, 174, 0.12);
}

.webapp-detail-pill.is-pl {
  color: #d09cff;
  border-color: rgba(208, 156, 255, 0.44);
  background: rgba(208, 156, 255, 0.13);
}

.webapp-detail-divider {
  height: 1px;
  background: rgba(200, 220, 255, 0.15);
}

.webapp-modal-reward-block h4 {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 800;
}

.webapp-modal-card.is-alert-detail .webapp-detail-rewards {
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(80, 160, 255, 0.2);
  border-radius: 14px;
  background: rgba(10, 20, 50, 0.66);
}

.webapp-modal-card.is-alert-detail .webapp-detail-reward-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  justify-content: initial;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  border-color: rgba(80, 160, 255, 0.18);
  background: rgba(232, 240, 255, 0.045);
}

.webapp-detail-reward-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  color: var(--text-soft);
  font-size: 1rem;
}

.webapp-detail-reward-name {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.18;
}

.webapp-detail-reward-row.webapp-rarity-mythic .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-mythic .webapp-detail-reward-icon {
  color: #ffe033;
}

.webapp-detail-reward-row.webapp-rarity-legendary .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-legendary-item .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-legendary .webapp-detail-reward-icon,
.webapp-detail-reward-row.webapp-rarity-legendary-item .webapp-detail-reward-icon {
  color: #ff9800;
}

.webapp-detail-reward-row.webapp-rarity-epic .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-epic .webapp-detail-reward-icon {
  color: #b456ff;
}

.webapp-detail-reward-row.webapp-rarity-rare .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-rare .webapp-detail-reward-icon {
  color: #00d4ff;
}

.webapp-detail-reward-row.webapp-rarity-uncommon .webapp-detail-reward-name,
.webapp-detail-reward-row.webapp-rarity-uncommon .webapp-detail-reward-icon {
  color: #63d460;
}

.webapp-detail-reward-qty {
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 800;
}

.webapp-detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.webapp-detail-status.is-collected,
.webapp-detail-status.is-not_collection {
  color: #8df0ae;
}

.webapp-detail-status.is-missing,
.webapp-detail-status.is-hidden {
  color: #ffde7d;
}

.webapp-detail-status.is-currency {
  color: var(--text-dim);
}

.webapp-modal-card.is-item-detail {
  width: min(94vw, 880px);
  max-height: calc(100vh - 40px);
  border-radius: 24px;
  border-color: rgba(80, 160, 255, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 212, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(7, 18, 50, 0.98), rgba(3, 10, 30, 0.98));
}

.webapp-modal-head.is-item-detail {
  align-items: center;
  padding: 12px 14px 0 18px;
}

.webapp-item-detail-sheet {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.webapp-item-detail-summary,
.webapp-item-detail-main {
  min-width: 0;
  border: 1px solid rgba(80, 160, 255, 0.2);
  border-radius: 18px;
  background: rgba(232, 240, 255, 0.045);
}

.webapp-item-detail-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-left-width: 4px;
  border-left-color: rgba(var(--webapp-rarity-rgb, 0, 212, 255), 0.9);
  box-shadow: inset 0 0 32px rgba(var(--webapp-rarity-rgb, 0, 212, 255), 0.08);
}

.webapp-item-detail-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(var(--webapp-rarity-rgb, 0, 212, 255), 0.34);
  background: rgba(var(--webapp-rarity-rgb, 0, 212, 255), 0.12);
  color: rgb(var(--webapp-rarity-rgb, 0, 212, 255));
  font-size: 1.65rem;
}

.webapp-item-detail-summary h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.12;
}

.webapp-item-detail-summary p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

.webapp-item-detail-main {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  overflow: hidden;
}

.webapp-item-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  border-radius: 16px;
  background: rgba(4, 12, 34, 0.72);
}

.webapp-item-detail-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.webapp-item-detail-tabs button.is-active,
.webapp-item-detail-tabs button:hover,
.webapp-item-detail-tabs button:focus-visible {
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.14);
  color: var(--webapp-accent);
  outline: 0;
}

.webapp-item-detail-section {
  display: grid;
  gap: 10px;
}

.webapp-item-detail-section h4 {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.webapp-item-detail-entry-list {
  display: grid;
  gap: 10px;
}

.webapp-item-detail-slot-list {
  display: grid;
  gap: 10px;
}

.webapp-item-detail-slot {
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 16px;
  background: rgba(1, 7, 23, 0.46);
  overflow: hidden;
}

.webapp-item-detail-slot summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.webapp-item-detail-slot summary::-webkit-details-marker {
  display: none;
}

.webapp-item-detail-slot summary:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.72);
  outline-offset: -2px;
}

.webapp-item-detail-slot-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 1000;
}

.webapp-item-detail-slot-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.webapp-item-detail-slot-copy strong {
  color: var(--webapp-accent);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.webapp-item-detail-slot-copy small {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 850;
}

.webapp-item-detail-slot-chevron {
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 1000;
  transition: transform 160ms ease;
}

.webapp-item-detail-slot[open] .webapp-item-detail-slot-chevron {
  transform: rotate(180deg);
}

.webapp-item-detail-slot-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.webapp-item-detail-slot-body .webapp-item-detail-entry {
  border-color: rgba(80, 160, 255, 0.12);
  background: rgba(232, 240, 255, 0.045);
}

.webapp-item-detail-entry {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(1, 7, 23, 0.46);
}

.webapp-item-detail-entry-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  background: rgba(0, 212, 255, 0.1);
  color: var(--webapp-accent);
  font-size: 1.35rem;
}

.webapp-item-detail-entry-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.webapp-item-detail-entry-copy small {
  color: var(--webapp-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webapp-item-detail-entry-copy strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.2;
}

.webapp-item-detail-entry-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.webapp-item-detail-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 222, 125, 0.2);
  background: rgba(255, 222, 125, 0.08);
  color: #ffde7d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.webapp-item-detail-loading {
  display: grid;
  gap: 12px;
}

.webapp-collection-choice-list {
  display: grid;
  gap: 8px;
}

.webapp-collection-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  border-radius: 12px;
  background: rgba(232, 240, 255, 0.045);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.webapp-collection-choice.is-actionable {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.webapp-collection-choice.is-actionable > strong {
  color: var(--webapp-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webapp-collection-choice:hover,
.webapp-collection-choice:focus-visible {
  border-color: rgba(0, 212, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.webapp-collection-choice b,
.webapp-collection-choice small {
  display: block;
}

.webapp-collection-choice b {
  font-size: 0.9rem;
  line-height: 1.18;
}

.webapp-collection-choice small {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 800;
}

.webapp-collection-choice.is-collected {
  border-color: rgba(141, 240, 174, 0.42);
  background: rgba(141, 240, 174, 0.08);
}

.webapp-collection-choice .webapp-tier-picker {
  grid-column: 1 / -1;
  margin-top: 2px;
}

@media (min-width: 980px) {
  .webapp-task-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .webapp-task-helper-row {
    grid-template-columns: 1fr;
  }

  .webapp-task-helper-row span,
  .webapp-task-helper-row span:first-child,
  .webapp-task-helper-row span:nth-child(2),
  .webapp-task-helper-row span:last-child {
    text-align: left;
  }

  .webapp-dashboard-overview-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .webapp-dashboard-overview-copy {
    justify-items: center;
    text-align: center;
  }

  .webapp-dashboard-overview-stats {
    justify-content: center;
  }

  .webapp-modal-card {
    width: min(94vw, 520px);
  }

  .webapp-modal-card.is-item-detail {
    width: min(94vw, 560px);
  }

  .webapp-item-detail-sheet {
    grid-template-columns: 1fr;
  }

  .webapp-item-detail-entry {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .webapp-item-detail-entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}

/* App parity pass: alerts/tasks shared cards, task gestures, dashboard overview, and empty-filter behavior. */
.webapp-mission-card.is-ventures::before {
  background: #00bcd4;
}

.webapp-mission-item-copy,
.webapp-mission-status-copy,
.webapp-task-helper-item,
.webapp-task-swipe-bg span {
  display: inline-flex;
  align-items: center;
}

.webapp-mission-item-copy {
  justify-content: center;
  gap: 8px;
  min-height: 2.4em;
}

.webapp-mission-item-icon {
  display: inline-grid;
  place-items: center;
  font-size: 0.98rem;
  line-height: 1;
  flex: 0 0 auto;
}

.webapp-mission-status {
  justify-content: flex-start;
}

.webapp-mission-status-copy {
  gap: 8px;
  min-width: 0;
}

.webapp-mission-status-copy b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webapp-mission-status.is-pending {
  color: var(--webapp-accent);
}

.webapp-mission-status.is-completed {
  color: #84f08c;
}

.webapp-mission-card.is-compact .webapp-mission-map,
.webapp-mission-card.is-compact .webapp-mission-item {
  border-radius: 0;
}

.webapp-mission-card.is-compact.is-stonewood .webapp-mission-map {
  background: linear-gradient(90deg, rgba(158, 158, 158, 0.26), rgba(158, 158, 158, 0.05));
}

.webapp-mission-card.is-compact.is-plankerton .webapp-mission-map {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.26), rgba(76, 175, 80, 0.05));
}

.webapp-mission-card.is-compact.is-canny .webapp-mission-map {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.26), rgba(255, 152, 0, 0.05));
}

.webapp-mission-card.is-compact.is-twine .webapp-mission-map {
  background: linear-gradient(90deg, rgba(244, 67, 54, 0.26), rgba(244, 67, 54, 0.05));
}

.webapp-mission-card.is-compact.is-ventures .webapp-mission-map {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.26), rgba(0, 188, 212, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-mythic {
  background: linear-gradient(90deg, rgba(255, 224, 51, 0.22), rgba(255, 224, 51, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-legendary,
.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-legendary-item {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.22), rgba(255, 152, 0, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-epic {
  background: linear-gradient(90deg, rgba(180, 86, 255, 0.22), rgba(180, 86, 255, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-rare {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.22), rgba(0, 212, 255, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item.webapp-rarity-uncommon {
  background: linear-gradient(90deg, rgba(99, 212, 96, 0.22), rgba(99, 212, 96, 0.05));
}

.webapp-mission-card.is-compact .webapp-mission-item strong,
.webapp-mission-card.is-compact .webapp-mission-map strong {
  color: #ffffff;
}

.webapp-mission-card.is-compact .webapp-mission-item small {
  min-height: 1em;
}

.webapp-mission-card.is-task-card {
  box-shadow: none;
}

.webapp-task-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.webapp-task-swipe-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.webapp-task-swipe-bg.is-start {
  justify-content: flex-start;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.34);
}

.webapp-task-swipe-bg.is-start.is-complete {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(76, 175, 80, 0.34);
}

.webapp-task-swipe-bg.is-end {
  justify-content: flex-end;
  background: rgba(229, 57, 53, 0.14);
  border: 1px solid rgba(229, 57, 53, 0.34);
}

.webapp-task-swipe-bg span {
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webapp-task-swipe-bg.is-start span {
  color: var(--webapp-accent);
}

.webapp-task-swipe-bg.is-start.is-complete span {
  color: #84f08c;
}

.webapp-task-swipe-bg.is-end span {
  color: #ff8f8f;
}

.webapp-task-gesture {
  position: relative;
  z-index: 1;
  transition: transform 160ms ease;
  touch-action: pan-y;
}

.webapp-task-gesture.is-dragging .webapp-mission-card {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 212, 255, 0.24);
}

.webapp-task-shell.is-swiping.is-swipe-start .webapp-task-swipe-bg.is-start,
.webapp-task-shell.is-swiping.is-swipe-end .webapp-task-swipe-bg.is-end,
.webapp-task-shell.is-reordering .webapp-task-swipe-bg.is-start {
  opacity: 1;
}

.webapp-task-shell.is-reordering {
  z-index: 24;
}

.webapp-task-shell.is-reordering .webapp-task-gesture {
  transition: none;
}

.webapp-task-card-underlay {
  display: none;
}

.webapp-inner-tab.is-glow {
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.34),
    0 0 24px rgba(0, 212, 255, 0.18);
}

.webapp-inner-tab.is-glow strong,
.webapp-inner-tab.is-glow span {
  color: var(--webapp-accent);
}

.webapp-task-helper-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.webapp-task-helper-row.is-glow {
  border-color: rgba(0, 212, 255, 0.42);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
}

.webapp-task-helper-item {
  gap: 8px;
  min-width: 0;
  color: inherit;
}

.webapp-task-helper-item.is-left {
  justify-content: flex-start;
}

.webapp-task-helper-item.is-center {
  justify-content: center;
}

.webapp-task-helper-item.is-right {
  justify-content: flex-end;
}

.webapp-task-helper-item i {
  color: var(--webapp-accent);
  font-style: normal;
  font-weight: 900;
}

.webapp-task-helper-item b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webapp-dashboard-overview-card {
  min-height: 156px;
}

.webapp-dashboard-overview-layout {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.webapp-dashboard-overview-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.webapp-dashboard-overview-copy h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.webapp-dashboard-overview-copy h2 i {
  font-style: normal;
}

.webapp-dashboard-overview-subtitle {
  margin: 0;
  color: #ffe8a6;
  font-size: 0.98rem;
  font-weight: 800;
}

.webapp-dashboard-overview-meta {
  margin: 0;
  color: var(--text-dim);
}

.webapp-dashboard-overview-stats {
  align-content: center;
  justify-content: flex-end;
}

.webapp-dashboard-stat-pill {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 214, 107, 0.16);
}

.webapp-dashboard-stat-pill strong {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
}

.webapp-dashboard-stat-pill small {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .webapp-task-helper-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .webapp-task-helper-item {
    gap: 6px;
  }

  .webapp-task-helper-item b {
    white-space: normal;
    line-height: 1.15;
  }

  .webapp-dashboard-overview-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .webapp-dashboard-overview-stats {
    justify-content: center;
  }
}

/* App parity refinement: task layout, gesture affordance, and dashboard overview. */
@keyframes webappTaskGlowPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(0, 212, 255, 0.34),
      0 0 0 rgba(0, 212, 255, 0);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(0, 212, 255, 0.52),
      0 0 24px rgba(0, 212, 255, 0.18);
  }
}

.webapp-mission-summary.is-full-width {
  grid-template-columns: minmax(0, 1fr) !important;
}

.webapp-mission-summary.is-full-width .webapp-mission-grid {
  padding-right: 12px !important;
}

.webapp-task-columns {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.webapp-task-column {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.webapp-task-column .webapp-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0 4px;
}

.webapp-task-column .webapp-section-head h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.webapp-task-column .webapp-section-head small {
  display: none !important;
}

.webapp-task-list {
  display: grid;
  gap: 12px;
}

.webapp-manage-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
}

.webapp-manage-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.webapp-manage-copy h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.webapp-manage-copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.3;
}

.webapp-manage-actions {
  justify-self: end;
}

.webapp-manage-clear-button {
  min-width: 0 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 183, 77, 0.45) !important;
  background: rgba(255, 183, 77, 0.14) !important;
  color: #ffb74d !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.webapp-task-helper-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center;
  gap: 10px !important;
  min-height: 0;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  border-color: rgba(0, 212, 255, 0.18) !important;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.06), rgba(255, 255, 255, 0.02), rgba(0, 212, 255, 0.06));
}

.webapp-task-helper-row.is-glow {
  border-color: rgba(0, 212, 255, 0.48) !important;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(255, 255, 255, 0.02), rgba(0, 212, 255, 0.12)) !important;
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.16) !important;
}

.webapp-task-helper-item {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webapp-task-helper-item i {
  font-size: 0.9rem;
}

.webapp-inner-tab.is-glow {
  animation: webappTaskGlowPulse 1.8s ease-in-out infinite;
}

.webapp-task-swipe-bg {
  padding: 0 16px !important;
}

.webapp-task-swipe-bg span {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.webapp-task-swipe-bg b {
  font-size: 0.76rem;
}

.webapp-task-gesture {
  will-change: transform;
}

.webapp-task-shell.is-swiping .webapp-mission-card,
.webapp-task-shell.is-reordering .webapp-mission-card {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 212, 255, 0.22);
}

.webapp-mission-card.is-task-card .webapp-mission-item-copy {
  gap: 6px;
}

.webapp-mission-card.is-task-card .webapp-mission-status {
  min-height: 40px;
}

.webapp-dashboard-overview-card {
  width: 100% !important;
  min-height: 148px !important;
  padding: 18px 18px !important;
}

.webapp-dashboard-overview-panel {
  box-sizing: border-box;
}

.webapp-dashboard-overview-main {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 92px minmax(0, 1fr) 78px !important;
  align-items: center !important;
  gap: 14px !important;
}

.webapp-dashboard-overview-ring {
  width: 84px;
  height: 84px;
  justify-self: start;
}

.webapp-dashboard-overview-copy {
  min-width: 0;
  display: grid !important;
  justify-items: start !important;
  text-align: left !important;
  gap: 4px !important;
}

.webapp-dashboard-overview-copy h2 {
  margin: 0;
  justify-content: flex-start !important;
  font-size: clamp(1.24rem, 3vw, 1.68rem);
  line-height: 1.05;
}

.webapp-dashboard-overview-subtitle,
.webapp-dashboard-overview-meta {
  text-align: left !important;
}

.webapp-dashboard-overview-meta {
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 800;
}

.webapp-dashboard-overview-stats {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: stretch !important;
  align-content: center !important;
  gap: 8px !important;
}

.webapp-dashboard-stat-pill {
  min-width: 0 !important;
  padding: 7px 10px !important;
  border-radius: 16px !important;
}

.webapp-dashboard-summary-copy h3 {
  line-height: 1.06;
}

@media (max-width: 720px) {
  .webapp-manage-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .webapp-task-helper-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .webapp-task-helper-item {
    font-size: 0.64rem;
  }

  .webapp-dashboard-overview-card {
    padding: 16px 14px !important;
  }

  .webapp-dashboard-overview-main {
    grid-template-columns: 82px minmax(0, 1fr) 72px !important;
    gap: 10px !important;
  }

  .webapp-dashboard-overview-ring {
    width: 74px;
    height: 74px;
  }

  .webapp-dashboard-overview-copy h2 {
    font-size: 1.02rem;
  }

  .webapp-dashboard-overview-subtitle {
    font-size: 0.74rem;
  }

  .webapp-dashboard-overview-meta {
    font-size: 0.9rem;
  }

  .webapp-dashboard-stat-pill {
    padding: 6px 8px !important;
  }

  .webapp-dashboard-stat-pill strong {
    font-size: 0.92rem;
  }

  .webapp-dashboard-stat-pill small {
    font-size: 0.62rem;
  }
}

/* App parity pass: alert swipe, mission modifier lines, collection filter stack, and dashboard balance. */
.webapp-alert-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.webapp-alert-swipe-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.34);
  transition: opacity 120ms ease;
}

.webapp-alert-swipe-bg span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--webapp-accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webapp-alert-gesture {
  position: relative;
  z-index: 1;
  transition: transform 160ms ease;
  touch-action: pan-y;
  will-change: transform;
}

.webapp-alert-shell.is-swiping.is-swipe-start .webapp-alert-swipe-bg {
  opacity: 1;
}

.webapp-mission-type-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 2.55em;
}

.webapp-mission-type-copy strong {
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.webapp-mission-modifier {
  color: #9bd7ff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  min-height: 1em;
}

.webapp-mission-modifier.is-hidden {
  visibility: hidden;
}

.webapp-mission-card .webapp-mission-item strong {
  line-height: 1.14;
  text-wrap: balance;
}

.webapp-mission-card .webapp-mission-item small {
  min-height: 1.05em;
  line-height: 1.1;
  text-align: center;
}

.webapp-mission-card:not(.is-compact) .webapp-mission-column {
  min-height: 74px;
  grid-template-rows: 16px minmax(40px, 1fr) 16px;
  align-content: stretch;
  align-items: center;
  justify-items: center;
  gap: 4px;
}

.webapp-mission-card:not(.is-compact) .webapp-cell-label {
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: 100%;
  text-align: center;
  line-height: 1;
}

.webapp-mission-card:not(.is-compact) .webapp-mission-column > strong,
.webapp-mission-card:not(.is-compact) .webapp-mission-type-copy,
.webapp-mission-card:not(.is-compact) .webapp-mission-item-copy {
  grid-row: 2;
  align-self: center;
  justify-self: center;
}

.webapp-mission-card:not(.is-compact) .webapp-mission-item > small {
  grid-row: 3;
  align-self: end;
  justify-self: center;
}

.webapp-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 108px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 212, 255, 0.56);
  border-radius: 14px;
  background: rgba(3, 12, 34, 0.9);
  color: var(--webapp-accent);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 18px rgba(0, 212, 255, 0.14);
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.webapp-scroll-top.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.webapp-scroll-top:hover,
.webapp-scroll-top:focus-visible {
  border-color: rgba(0, 212, 255, 0.9);
  outline: none;
}

.webapp-animated-filter-row {
  display: grid;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 180ms ease,
    opacity 140ms ease,
    transform 180ms ease;
}

.webapp-animated-filter-row.is-open {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

.webapp-filter-divider {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(80, 160, 255, 0.26), transparent);
}

.webapp-task-column .webapp-section-head {
  overflow: visible !important;
  padding: 2px 10px 4px 10px !important;
}

.webapp-task-column .webapp-section-head h3 {
  display: block;
  overflow: visible;
  padding-left: 6px;
  line-height: 1.16;
}

.webapp-collection-controls {
  padding: 0 !important;
  overflow: hidden;
}

.webapp-collection-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.webapp-collection-filter-toggle-copy,
.webapp-collection-filter-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.webapp-collection-filter-toggle-copy strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.webapp-collection-filter-toggle-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.14);
  color: var(--webapp-accent);
  font-size: 0.76rem;
}

.webapp-collection-filter-body {
  display: grid;
  gap: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  transform: translateY(-8px);
  transition:
    max-height 220ms ease,
    opacity 160ms ease,
    padding 220ms ease,
    transform 220ms ease;
}

.webapp-collection-filter-body.is-open {
  max-height: 1600px;
  opacity: 1;
  padding: 0 16px 16px;
  transform: translateY(0);
}

.webapp-collection-chip-block {
  display: grid;
  gap: 10px;
}

.webapp-collection-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.webapp-dashboard-overview-panel {
  width: 100%;
  min-height: 156px;
  padding: 18px;
  border-radius: 24px;
  border: 2px solid rgba(255, 210, 92, 0.46);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 107, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 173, 45, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(6, 14, 36, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 107, 0.16);
}

.webapp-dashboard-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 16px;
}

.webapp-dashboard-overview-copy {
  justify-items: start !important;
  text-align: left !important;
}

.webapp-dashboard-overview-copy h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.22rem, 3vw, 1.64rem);
  line-height: 1.06;
}

.webapp-dashboard-overview-ring {
  width: 88px;
  height: 88px;
  justify-self: center;
}

.webapp-dashboard-overview-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-content: flex-end !important;
}

.webapp-dashboard-overview-panel {
  width: 100%;
  box-sizing: border-box;
}

.webapp-dashboard-overview-panel.is-compact {
  min-height: 138px;
}

.webapp-dashboard-overview-panel.is-expanded-mode {
  min-height: 154px;
}

.webapp-dashboard-overview-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.webapp-dashboard-overview-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
}

.webapp-dashboard-overview-copy h2 {
  margin: 0;
  color: #ffe8a6;
  font-size: clamp(1.18rem, 2.8vw, 1.48rem);
  line-height: 1.08;
  font-weight: 900;
}

.webapp-dashboard-overview-copy h2 i {
  font-style: normal;
  font-size: 0.94em;
}

.webapp-dashboard-overview-subtitle {
  color: #ffe8a6;
  font-weight: 700;
}

.webapp-dashboard-overview-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.webapp-dashboard-overview-ring {
  width: 88px;
  height: 88px;
}

.webapp-dashboard-overview-ring.is-gold {
  background: conic-gradient(var(--dashboard-accent, #ffb347) var(--progress), rgba(255, 255, 255, 0.08) 0);
}

.webapp-dashboard-overview-ring.is-gold::before,
.webapp-dashboard-summary-ring::before {
  inset: 8px;
}

.webapp-dashboard-overview-ring span {
  display: none;
}

.webapp-dashboard-overview-ring strong {
  color: #ffe8a6;
}

.webapp-dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.webapp-dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.webapp-dashboard-badge.is-reached {
  border-color: rgba(var(--dashboard-accent-rgb, 255, 255, 255), 0.55);
  background: rgba(var(--dashboard-accent-rgb, 255, 255, 255), 0.16);
  color: var(--dashboard-accent, #ffffff);
}

.webapp-dashboard-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.webapp-dashboard-compact-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.webapp-dashboard-compact-card.is-complete {
  border-color: rgba(255, 210, 92, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 107, 0.18);
}

.webapp-dashboard-compact-button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.webapp-dashboard-compact-title,
.webapp-dashboard-detail-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.webapp-dashboard-compact-icon,
.webapp-dashboard-detail-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
}

.webapp-dashboard-compact-title h3,
.webapp-dashboard-detail-title h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.webapp-dashboard-complete-mark {
  font-size: 0.92rem;
  line-height: 1;
}

.webapp-dashboard-summary-ring {
  width: 64px;
  height: 64px;
  background: conic-gradient(var(--dashboard-accent, var(--webapp-accent)) var(--progress), rgba(255, 255, 255, 0.08) 0);
}

.webapp-dashboard-summary-ring strong {
  color: var(--dashboard-accent, var(--text-primary));
  font-size: 0.86rem;
}

.webapp-dashboard-summary-ring--compact {
  width: 52px;
  height: 52px;
}

.webapp-dashboard-compact-meta {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.webapp-dashboard-summary-footer {
  padding: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
}

.webapp-dashboard-detail-list {
  display: grid;
  gap: 10px;
}

.webapp-dashboard-detail-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(80, 160, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.webapp-dashboard-detail-card.is-complete {
  border-color: rgba(255, 210, 92, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 107, 0.18);
}

.webapp-dashboard-detail-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-dashboard-detail-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.webapp-dashboard-detail-copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

.webapp-dashboard-detail-chevron {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 900;
}

.webapp-dashboard-detail-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(80, 160, 255, 0.14);
}

.webapp-dashboard-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(80, 160, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.webapp-dashboard-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--dashboard-accent-rgb, 255, 255, 255), 0.45);
}

.webapp-dashboard-item-dot.is-collected {
  background: rgb(var(--dashboard-accent-rgb, 255, 255, 255));
}

.webapp-dashboard-item-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webapp-dashboard-item-label.is-collected {
  color: var(--text-primary);
  font-weight: 600;
}

.webapp-dashboard-item-check {
  color: #5de05d;
  font-size: 0.84rem;
  font-weight: 900;
}

.webapp-filter-panel .webapp-chip-row,
.webapp-collection-status-group .webapp-chip-row,
.webapp-collection-chip-block .webapp-chip-row,
.webapp-collection-stat-grid {
  cursor: grab;
  overscroll-behavior-inline: contain;
  user-select: none;
}

.webapp-filter-panel .webapp-chip-row.is-dragging,
.webapp-collection-status-group .webapp-chip-row.is-dragging,
.webapp-collection-chip-block .webapp-chip-row.is-dragging,
.webapp-collection-stat-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.webapp-filter-panel .webapp-chip-row.is-dragging *,
.webapp-collection-status-group .webapp-chip-row.is-dragging *,
.webapp-collection-chip-block .webapp-chip-row.is-dragging *,
.webapp-collection-stat-grid.is-dragging * {
  pointer-events: none;
}

@media (max-width: 720px) {
  .webapp-collection-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webapp-dashboard-overview-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .webapp-dashboard-overview-copy {
    justify-items: center !important;
    text-align: center !important;
  }

  .webapp-dashboard-overview-stats {
    justify-content: center !important;
  }

  .webapp-dashboard-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .webapp-dashboard-detail-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .webapp-dashboard-summary-ring {
    width: 56px;
    height: 56px;
  }

  .webapp-dashboard-summary-ring--compact {
    width: 48px;
    height: 48px;
  }

  .webapp-dashboard-compact-title h3,
  .webapp-dashboard-detail-title h3 {
    font-size: 0.88rem;
  }

  .webapp-dashboard-badge {
    min-width: 36px;
    font-size: 0.58rem;
  }

  .webapp-dashboard-item-label {
    font-size: 0.74rem;
  }
}

/* Settings/data/about parity pass + task reorder stability + 4-tab nav. */
.webapp-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.webapp-task-shell.is-reordering {
  overflow: visible;
  isolation: isolate;
}

.webapp-task-shell.is-reordering .webapp-task-gesture {
  position: relative;
  z-index: 3;
  transition: none !important;
}

.webapp-task-shell.is-reordering .webapp-mission-card {
  opacity: 1;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 212, 255, 0.24),
    0 0 26px rgba(0, 212, 255, 0.12);
}

.webapp-settings-sections {
  display: grid;
  gap: 18px;
}

.webapp-settings-section--about {
  order: 99;
}

.webapp-data-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.webapp-data-row + .webapp-data-row {
  margin-top: 12px;
}

.webapp-data-row:hover,
.webapp-data-row:focus-visible {
  border-color: rgba(0, 212, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.16),
    0 0 22px rgba(0, 212, 255, 0.08);
  transform: translateY(-1px);
}

.webapp-data-row--danger {
  border-color: rgba(239, 83, 80, 0.28);
}

.webapp-data-row--danger:hover,
.webapp-data-row--danger:focus-visible {
  border-color: rgba(239, 83, 80, 0.48);
  box-shadow:
    0 0 0 1px rgba(239, 83, 80, 0.18),
    0 0 22px rgba(239, 83, 80, 0.08);
}

.webapp-data-row-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1.55rem;
}

.webapp-data-row--danger .webapp-data-row-icon,
.webapp-data-row--danger .webapp-data-row-copy strong {
  color: #ff6d6d;
}

.webapp-data-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.webapp-data-row-copy strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.webapp-data-row-copy small {
  color: var(--text-dim);
  line-height: 1.4;
}

.webapp-data-row-chevron {
  color: rgba(232, 240, 255, 0.62);
  font-size: 1.5rem;
  line-height: 1;
}

.webapp-settings-card,
.webapp-about-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.webapp-settings-card-copy,
.webapp-about-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.webapp-settings-card-copy strong,
.webapp-about-card-copy strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.webapp-settings-card-copy small,
.webapp-about-card-copy small {
  color: var(--text-dim);
  line-height: 1.5;
}

.webapp-settings-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.webapp-settings-card-actions .button {
  width: 100%;
  justify-content: center;
}

.webapp-about-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.webapp-about-card-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.2);
}

.webapp-about-links {
  display: grid;
  gap: 10px;
}

.webapp-about-card--summary {
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 24px 18px;
}

.webapp-about-bolt {
  color: #ffe33c;
  font-size: 2.25rem;
  line-height: 1;
}

.webapp-about-card--summary strong {
  color: var(--accent-cyan);
  font-size: 1.35rem;
}

.webapp-about-card--summary small {
  color: rgba(232, 240, 255, 0.78);
  font-size: 1rem;
}

.webapp-about-card--summary p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .webapp-data-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 15px 16px;
  }

  .webapp-settings-card-actions {
    grid-template-columns: 1fr;
  }

  .webapp-about-card-main {
    align-items: flex-start;
  }
}

/* Web app polish: safer translated alert cells, inline report validation, and app-like settings themes. */
body[data-webapp-theme="storm"] {
  --webapp-theme-bg:
    radial-gradient(circle at 16% 12%, rgba(64, 61, 196, 0.34), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(0, 212, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #120d47 0%, #050b1b 46%, #042738 100%);
  --webapp-theme-panel: rgba(6, 14, 36, 0.94);
  --webapp-theme-border: rgba(80, 160, 255, 0.24);
}

body[data-webapp-theme="neon_husks"] {
  --webapp-theme-bg:
    radial-gradient(circle at 20% 8%, rgba(109, 255, 174, 0.28), transparent 30%),
    radial-gradient(circle at 78% 68%, rgba(17, 214, 255, 0.2), transparent 36%),
    linear-gradient(135deg, #051a16 0%, #03101c 48%, #062a28 100%);
  --webapp-theme-panel: rgba(4, 18, 24, 0.94);
  --webapp-theme-border: rgba(109, 255, 174, 0.24);
}

body[data-webapp-theme="stonewood_sunset"] {
  --webapp-theme-bg:
    radial-gradient(circle at 16% 14%, rgba(255, 175, 81, 0.3), transparent 31%),
    radial-gradient(circle at 82% 68%, rgba(255, 108, 75, 0.22), transparent 36%),
    linear-gradient(135deg, #251107 0%, #090817 52%, #2d1608 100%);
  --webapp-theme-panel: rgba(24, 13, 12, 0.94);
  --webapp-theme-border: rgba(255, 175, 81, 0.28);
}

body[data-webapp-theme="zero_point_void"] {
  --webapp-theme-bg:
    radial-gradient(circle at 18% 10%, rgba(125, 107, 255, 0.36), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(92, 224, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #0a0824 0%, #03091a 48%, #111042 100%);
  --webapp-theme-panel: rgba(8, 10, 35, 0.94);
  --webapp-theme-border: rgba(125, 107, 255, 0.28);
}

body[data-webapp-theme="canny_valley_gold"] {
  --webapp-theme-bg:
    radial-gradient(circle at 16% 12%, rgba(255, 191, 77, 0.34), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(255, 157, 46, 0.18), transparent 36%),
    linear-gradient(135deg, #211406 0%, #060916 52%, #2c1a08 100%);
  --webapp-theme-panel: rgba(22, 15, 7, 0.94);
  --webapp-theme-border: rgba(255, 191, 77, 0.3);
}

body[data-webapp-theme] {
  background: var(--webapp-theme-bg);
}

body[data-webapp-theme] .webapp-topbar,
body[data-webapp-theme] .webapp-status-strip,
body[data-webapp-theme] .webapp-filter-shell,
body[data-webapp-theme] .webapp-collection-controls,
body[data-webapp-theme] .webapp-settings-section,
body[data-webapp-theme] .webapp-dashboard-overview-panel,
body[data-webapp-theme] .webapp-dashboard-detail-card,
body[data-webapp-theme] .webapp-mission-card,
body[data-webapp-theme] .webapp-collection-card,
body[data-webapp-theme] .webapp-viewer-category {
  border-color: var(--webapp-theme-border);
  background:
    radial-gradient(circle at top left, var(--webapp-accent-soft), transparent 38%),
    var(--webapp-bg-card),
    var(--webapp-theme-panel);
}

.webapp-mission-grid,
.webapp-mission-column,
.webapp-mission-column strong,
.webapp-mission-type-copy,
.webapp-mission-item-copy,
.webapp-mission-item-copy strong {
  min-width: 0;
}

.webapp-mission-column strong,
.webapp-mission-type-copy strong,
.webapp-mission-item-copy strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.webapp-mission-item-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.webapp-mission-item-icon {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.96fr) minmax(42px, 0.46fr) minmax(0, 1.22fr);
    padding: 18px 4px 14px 26px;
  }

  .webapp-mission-card:not(.is-compact) .webapp-mission-column {
    min-height: 70px;
    grid-template-rows: 15px minmax(36px, 1fr) 14px;
  }

  .webapp-mission-column {
    padding: 0 5px;
    gap: 3px;
    border-right-width: 1px;
  }

  .webapp-cell-label,
  .webapp-mission-card:not(.is-compact) .webapp-cell-label {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    line-height: 1.05;
    white-space: normal;
    text-align: center;
  }

  .webapp-mission-column strong,
  .webapp-mission-type-copy strong {
    font-size: 0.78rem;
    line-height: 1.08;
  }

  .webapp-mission-pl strong {
    font-size: 1.18rem;
  }

  .webapp-mission-item-copy strong,
  .webapp-mission-item strong {
    font-size: 0.78rem;
    line-height: 1.08;
  }

  .webapp-mission-item small {
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .webapp-mission-modifier {
    font-size: 0.66rem;
  }

  .webapp-plus-button {
    width: 42px;
    height: 42px;
    margin-right: 6px;
    border-radius: 14px;
    font-size: 1.45rem;
  }

  .webapp-mission-card::before {
    left: 14px;
    width: 7px;
    top: 16px;
    bottom: 50px;
  }
}

@media (max-width: 420px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.94fr) minmax(38px, 0.42fr) minmax(0, 1.16fr);
    padding-left: 24px;
  }

  .webapp-mission-column {
    padding-left: 4px;
    padding-right: 4px;
  }

  .webapp-plus-button {
    width: 38px;
    height: 38px;
    margin-right: 4px;
  }
}

.webapp-report-message {
  min-height: 1em;
  color: #ff7d7d;
  font-size: 0.78rem;
  font-weight: 900;
}

.webapp-report-message[hidden] {
  display: none;
}

.webapp-report-field textarea.is-error {
  border-color: rgba(239, 83, 80, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.12);
}

.webapp-feedback-inline {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 140;
  width: max-content;
  max-width: min(460px, calc(100% - 32px));
  padding: 10px 14px;
  transform: translateX(-50%);
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  background: rgba(2, 9, 26, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 22px rgba(0, 212, 255, 0.18);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.webapp-feedback-inline[hidden] {
  display: none;
}

.webapp-collection-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
}

.webapp-stat-square {
  min-height: 116px;
  padding: 12px 10px;
}

.webapp-stat-square-track {
  align-self: end;
  min-height: 4px;
}

.webapp-theme-menu {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(80, 160, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.webapp-theme-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.webapp-theme-menu summary::-webkit-details-marker {
  display: none;
}

.webapp-theme-menu summary strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.webapp-theme-menu summary small {
  display: block;
  margin-top: 3px;
  color: var(--webapp-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.webapp-theme-menu summary i {
  color: var(--text-dim);
  font-style: normal;
  font-size: 0.9rem;
  transition: transform 160ms ease;
}

.webapp-theme-menu[open] summary {
  border-bottom: 1px solid rgba(80, 160, 255, 0.16);
}

.webapp-theme-menu[open] summary i {
  transform: rotate(180deg);
}

.webapp-theme-menu .webapp-theme-grid {
  padding: 12px;
}

@media (max-width: 720px) {
  .webapp-collection-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .webapp-stat-square {
    min-height: 112px;
    padding: 10px 8px;
  }
}

/* Compact alert rows and scrollable filter rails. */
.page-shell.webapp-shell {
  width: min(1160px, calc(100% - 32px));
}

@media (max-width: 720px) {
  .page-shell.webapp-shell {
    width: min(100%, calc(100% - 16px));
  }
}

.webapp-mission-card::before {
  left: 0;
  top: 12px;
  bottom: 44px;
  width: 7px;
  border-radius: 0 999px 999px 0;
}

.webapp-mission-summary.has-side-action {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.webapp-mission-grid,
.webapp-mission-card.is-compact .webapp-mission-grid {
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 0.88fr) minmax(50px, 0.48fr) minmax(0, 1.1fr);
  padding: 14px 0 12px 18px;
}

.webapp-mission-card:not(.is-compact) .webapp-mission-column {
  min-height: 58px;
  grid-template-rows: 13px minmax(30px, 1fr) 13px;
}

.webapp-mission-column {
  padding: 0 7px;
}

.webapp-mission-pl {
  padding-left: 8px;
  padding-right: 8px;
}

.webapp-plus-button {
  width: 40px;
  height: 40px;
  margin-right: 6px;
  border-radius: 14px;
  font-size: 1.45rem;
}

.webapp-mission-item-copy {
  padding: 0 2px;
}

.webapp-mission-status {
  min-height: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 760px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.86fr) minmax(46px, 0.48fr) minmax(0, 1fr);
    padding: 12px 0 10px 16px;
  }

  .webapp-mission-card:not(.is-compact) .webapp-mission-column {
    min-height: 54px;
    grid-template-rows: 12px minmax(28px, 1fr) 12px;
  }

  .webapp-mission-column {
    padding-left: 4px;
    padding-right: 4px;
  }

  .webapp-plus-button {
    width: 36px;
    height: 36px;
    margin-right: 4px;
  }
}

.webapp-collection-stat-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.webapp-stat-square {
  flex: 0 0 80px;
  min-height: 86px;
  padding: 8px 7px;
  border-radius: 10px;
  scroll-snap-align: start;
}

.webapp-stat-square-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.webapp-stat-square-label {
  font-size: 0.56rem;
  line-height: 1.12;
  min-height: 1.24em;
}

.webapp-stat-square strong {
  font-size: 1.02rem;
  line-height: 1;
}

.webapp-stat-square small {
  font-size: 0.58rem;
}

.webapp-stat-square-track {
  min-height: 3px;
}

@media (max-width: 720px) {
  .webapp-stat-square {
    flex-basis: 80px;
  }
}

/* Final alert-cell balancing pass. */
.webapp-mission-summary.has-side-action {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.webapp-mission-grid,
.webapp-mission-card.is-compact .webapp-mission-grid {
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.78fr) minmax(42px, 0.46fr) minmax(0, 1.18fr);
  padding-left: 8px;
  padding-right: 0;
}

.webapp-mission-map {
  padding-left: 2px;
}

.webapp-mission-type {
  padding-left: 4px;
}

.webapp-mission-pl {
  padding-left: 5px;
  padding-right: 5px;
}

.webapp-mission-pl strong {
  max-width: 100%;
  font-size: clamp(1rem, 5.6vw, 1.7rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.webapp-mission-item {
  padding-left: 4px;
  padding-right: 2px;
}

.webapp-plus-button {
  width: 36px;
  height: 36px;
  margin-right: 0;
  border-radius: 13px 24px 24px 13px;
}

@media (min-width: 761px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.8fr) minmax(46px, 0.48fr) minmax(0, 1.22fr);
    padding-left: 10px;
  }

  .webapp-plus-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.74fr) minmax(38px, 0.46fr) minmax(0, 1.12fr);
    padding-left: 7px;
  }

  .webapp-mission-column {
    padding-left: 3px;
    padding-right: 3px;
  }

  .webapp-mission-pl {
    padding-left: 4px;
    padding-right: 4px;
  }

  .webapp-plus-button {
    width: 34px;
    height: 34px;
  }
}

/* Phone alert-card override: beat older important mobile rules and reclaim PL space. */
@media (max-width: 560px) {
  .webapp-mission-card {
    overflow: hidden;
  }

  .webapp-mission-card::before {
    left: 0 !important;
    top: 10px !important;
    bottom: 34px !important;
    width: 7px !important;
    border-radius: 0 999px 999px 0 !important;
  }

  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 34px !important;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(40px, 0.48fr) minmax(64px, 0.78fr) minmax(40px, 0.48fr) minmax(96px, 1.26fr) !important;
    padding: 12px 0 10px 7px !important;
  }

  .webapp-mission-column {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .webapp-mission-map {
    padding-left: 0 !important;
    padding-right: 2px !important;
  }

  .webapp-mission-type {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .webapp-mission-pl {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .webapp-mission-item {
    padding-left: 2px !important;
    padding-right: 0 !important;
  }

  .webapp-mission-pl strong {
    display: block !important;
    max-width: 100% !important;
    font-size: clamp(0.88rem, 6.5vw, 1.22rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .webapp-mission-pl strong.is-long {
    font-size: clamp(0.78rem, 5.4vw, 1.05rem) !important;
  }

  .webapp-mission-item-copy {
    justify-content: center !important;
    gap: 3px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .webapp-mission-item-icon {
    max-width: 1em;
  }

  .webapp-plus-button {
    width: 34px !important;
    height: 34px !important;
    justify-self: end !important;
    margin-right: 0 !important;
    border-radius: 12px 22px 22px 12px !important;
    font-size: 1.12rem !important;
  }
}

@media (max-width: 380px) {
  .webapp-mission-summary.has-side-action {
    grid-template-columns: minmax(0, 1fr) 32px !important;
  }

  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(38px, 0.46fr) minmax(58px, 0.74fr) minmax(38px, 0.46fr) minmax(86px, 1.2fr) !important;
    padding-left: 7px !important;
  }

  .webapp-plus-button {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Compact alert cards: remove the vertical slack around the row and status line. */
.webapp-mission-card.is-compact::before {
  top: 5px;
  bottom: 23px;
}

.webapp-mission-card.is-compact .webapp-mission-grid {
  padding-top: 5px;
  padding-bottom: 4px;
}

.webapp-mission-card.is-compact .webapp-mission-column {
  gap: 1px;
}

.webapp-mission-card.is-compact .webapp-cell-label,
.webapp-mission-card.is-compact .webapp-mission-column strong,
.webapp-mission-card.is-compact .webapp-mission-type-copy,
.webapp-mission-card.is-compact .webapp-mission-item-copy,
.webapp-mission-card.is-compact .webapp-mission-column small {
  line-height: 1;
}

.webapp-mission-card.is-compact .webapp-mission-item-copy {
  min-height: 1.55em;
  gap: 2px;
}

.webapp-mission-card.is-compact .webapp-mission-item small {
  min-height: 0;
}

.webapp-mission-card.is-compact .webapp-mission-status {
  min-height: 21px;
  padding-top: 1px;
  padding-bottom: 2px;
  line-height: 1;
}

@media (max-width: 560px) {
  .webapp-mission-card.is-compact::before {
    top: 3px !important;
    bottom: 21px !important;
  }

  .webapp-mission-card.is-compact .webapp-mission-grid {
    padding-top: 3px !important;
    padding-bottom: 2px !important;
  }

  .webapp-mission-card.is-compact .webapp-mission-column {
    gap: 0 !important;
  }

  .webapp-mission-card.is-compact .webapp-mission-status {
    min-height: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 1px !important;
    font-size: 0.82rem;
  }
}

/* Dense alert/filter rails: remove vertical slack between alert cards, counts, and filters. */
.webapp-subpanel[data-webapp-alerts-subpanel] {
  gap: 0;
}

.webapp-alert-list,
.webapp-task-list {
  gap: 0;
}

.webapp-toolbar-row {
  min-height: 0;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.webapp-toolbar-row [data-webapp-alert-count-chip] {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.webapp-filter-panel {
  padding-bottom: 6px;
}

.webapp-filter-panel-inner {
  gap: 0;
}

.webapp-filter-row {
  min-height: 42px;
  gap: 4px 10px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.webapp-filter-row + .webapp-filter-row {
  margin-top: 0;
}

.webapp-row-label {
  padding-top: 0;
  line-height: 1;
}

.webapp-filter-panel .webapp-chip-row {
  gap: 6px;
  padding-bottom: 0;
}

.webapp-filter-panel .webapp-pill-button {
  min-height: 34px;
}

/* Collection filters should scroll horizontally like the Android app instead of wrapping. */
.webapp-collection-chip-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-height: 42px;
  padding: 4px 0;
}

.webapp-collection-chip-block + .webapp-collection-chip-block,
.webapp-animated-filter-row + .webapp-collection-chip-block {
  border-top: 1px solid rgba(80, 160, 255, 0.14);
}

.webapp-collection-chip-block > .webapp-row-label {
  align-self: center;
  padding-top: 0;
}

.webapp-collection-chip-block .webapp-chip-row,
.webapp-collection-status-group .webapp-chip-row,
.webapp-collection-stat-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: none;
}

.webapp-collection-chip-block .webapp-chip-row::-webkit-scrollbar,
.webapp-collection-status-group .webapp-chip-row::-webkit-scrollbar,
.webapp-collection-stat-grid::-webkit-scrollbar {
  display: none;
}

.webapp-collection-filter-body {
  gap: 0;
}

.webapp-collection-chip-block .webapp-chip-row,
.webapp-collection-stat-grid {
  gap: 6px;
  padding-bottom: 0;
}

.webapp-collection-chip-block .webapp-pill-button {
  min-height: 34px;
}

.webapp-collection-chip-block .webapp-pill-button,
.webapp-collection-status-group .webapp-pill-button,
.webapp-collection-stat-grid .webapp-stat-square {
  flex: 0 0 auto;
}

.webapp-collection-stat-grid .webapp-stat-square {
  flex-basis: var(--webapp-collection-stat-card-width, 92px) !important;
  width: var(--webapp-collection-stat-card-width, 92px);
}

@media (max-width: 520px) {
  .webapp-collection-chip-block {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 38px;
    padding: 3px 0;
  }
}

/* Final alert column/type pass: keep Zone and PL content-sized, give reward names the space. */
.webapp-mission-grid,
.webapp-mission-card.is-compact .webapp-mission-grid {
  grid-template-columns: minmax(46px, 0.42fr) minmax(58px, 0.7fr) 3.4ch minmax(0, 1.68fr) !important;
}

.webapp-mission-map,
.webapp-mission-pl {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.webapp-mission-map strong,
.webapp-mission-type strong,
.webapp-mission-item strong,
.webapp-mission-pl strong {
  line-height: 1.04 !important;
}

.webapp-mission-pl strong {
  display: inline-block !important;
  width: 3ch;
  max-width: 3ch !important;
  font-size: clamp(0.82rem, 2.3vw, 1rem) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em !important;
  text-align: center;
}

.webapp-mission-pl strong.is-long {
  font-size: clamp(0.78rem, 2vw, 0.92rem) !important;
}

.webapp-mission-map strong {
  max-width: 100%;
  letter-spacing: -0.025em;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  white-space: nowrap !important;
  font-size: clamp(0.68rem, 2.6vw, 0.9rem) !important;
}

.webapp-mission-card.is-compact .webapp-mission-grid {
  grid-template-columns: minmax(34px, 0.38fr) minmax(48px, 0.66fr) 3.25ch minmax(0, 1.72fr) !important;
}

.webapp-mission-card.is-compact .webapp-mission-map strong,
.webapp-mission-card.is-compact .webapp-mission-type strong,
.webapp-mission-card.is-compact .webapp-mission-item strong,
.webapp-mission-card.is-compact .webapp-mission-pl strong {
  font-size: 0.76rem !important;
}

.webapp-mission-card.is-compact .webapp-mission-map strong {
  font-size: clamp(0.58rem, 2.3vw, 0.76rem) !important;
}

.webapp-mission-card.is-compact .webapp-mission-pl strong {
  width: 3ch;
  max-width: 3ch !important;
  font-size: 0.76rem !important;
}

.webapp-mission-card.is-compact .webapp-mission-pl strong.is-long {
  font-size: 0.7rem !important;
}

@media (max-width: 560px) {
  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(48px, 0.52fr) minmax(48px, 0.62fr) 3.05ch minmax(0, 1.72fr) !important;
  }

  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(42px, 0.48fr) minmax(44px, 0.58fr) 3ch minmax(0, 1.64fr) !important;
  }

  .webapp-mission-pl strong {
    width: 3ch;
    max-width: 3ch !important;
    font-size: 0.72rem !important;
  }

  .webapp-mission-pl strong.is-long {
    font-size: 0.66rem !important;
  }
}

@media (max-width: 380px) {
  .webapp-mission-grid,
  .webapp-mission-card.is-compact .webapp-mission-grid {
    grid-template-columns: minmax(44px, 0.5fr) minmax(40px, 0.54fr) 2.9ch minmax(0, 1.48fr) !important;
  }
}

/* Theme picker rows: one full-width row per theme, matching the Android settings feel. */
.webapp-theme-grid,
.webapp-theme-menu .webapp-theme-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
  padding: 10px;
}

.webapp-theme-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title state"
    "subtitle state";
  align-items: center;
  gap: 2px 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
}

.webapp-theme-card strong {
  grid-area: title;
  min-width: 0;
}

.webapp-theme-card small {
  grid-area: subtitle;
  min-width: 0;
}

.webapp-theme-card em {
  grid-area: state;
  justify-self: end;
  max-width: 120px;
  text-align: right;
}

/* Web app ad/layout preview pass. These are inert placeholders only; no ad network script is loaded. */
.site-header,
.webapp-shell .site-header {
  z-index: 120;
}

.language-picker {
  z-index: 130;
}

.language-picker-menu {
  z-index: 10000;
}

.webapp-setting-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 212, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(122, 92, 255, 0.08)),
    rgba(3, 9, 26, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 24px rgba(0, 212, 255, 0.08);
}

.webapp-setting-picker-option {
  min-width: 70px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.webapp-setting-picker-option:hover,
.webapp-setting-picker-option:focus-visible,
.webapp-setting-picker-option.is-active {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.14);
  color: var(--text-primary);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.1);
}

.webapp-ad-mount {
  display: block;
}

.webapp-ad-mount[hidden],
.webapp-ad-anchor[hidden] {
  display: none !important;
}

.webapp-ad-slot {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.09), rgba(255, 211, 107, 0.07)),
    rgba(3, 9, 26, 0.72);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.webapp-ad-slot span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 211, 107, 0.14);
  color: #ffd66b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webapp-ad-slot strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 900;
}

.webapp-ad-slot small {
  justify-self: end;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.webapp-ad-slot--header {
  min-height: clamp(56px, 8vw, 90px);
}

.webapp-ad-slot--feed,
.webapp-ad-slot--collection {
  min-height: 64px;
  margin: 2px 0;
  border-radius: 18px;
}

.webapp-ad-slot--bottom,
.webapp-ad-slot--anchor {
  min-height: 56px;
}

.webapp-ad-anchor {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 11;
  width: min(760px, calc(100% - 18px));
  transform: translateX(-50%);
}

.webapp-ad-anchor .webapp-ad-slot {
  min-height: 50px;
  padding-block: 8px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(108, 60, 255, 0.08)),
    rgba(3, 9, 26, 0.94);
  backdrop-filter: blur(14px);
}

.webapp-shell {
  padding-bottom: 226px !important;
}

@media (max-width: 720px) {
  .webapp-setting-picker {
    width: 100%;
  }

  .webapp-setting-picker-option {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }

  .webapp-ad-slot {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 10px;
    min-height: 58px;
    padding: 9px 11px;
    border-radius: 16px;
  }

  .webapp-ad-slot small {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .webapp-ad-anchor {
    bottom: 98px;
    width: min(760px, calc(100% - 18px));
  }

  .webapp-shell {
    padding-bottom: 214px !important;
  }
}

/* Header compaction: keep the shared navbar and top web-app cards from wasting vertical space. */
@media (max-width: 720px) {
  .site-header {
    row-gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .nav-links {
    gap: 4px 6px;
    align-items: center;
  }

  .nav-guide {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-links a,
  .nav-guide-toggle {
    padding: 7px 8px;
    font-size: clamp(0.72rem, 2.55vw, 0.84rem);
    line-height: 1.05;
  }

  .nav-guide-menu {
    margin-top: 6px;
  }

  .webapp-shell .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .webapp-shell .nav-links {
    gap: 4px 6px;
  }

  .webapp-shell .nav-links a,
  .webapp-shell .nav-guide-toggle {
    padding: 7px 8px;
    font-size: clamp(0.72rem, 2.55vw, 0.84rem);
  }
}

.webapp-app,
.webapp-screen {
  gap: 6px;
}

.webapp-topbar {
  padding-bottom: 8px;
}

.webapp-inner-tabs {
  margin-top: 0;
}

@media (max-width: 720px) {
  .webapp-app,
  .webapp-screen {
    gap: 5px !important;
  }

  .webapp-review-intro {
    gap: 14px;
    margin: 8px 0 10px;
    padding: 16px;
    border-radius: 22px;
  }

  .webapp-review-grid {
    grid-template-columns: 1fr;
  }

  .webapp-review-grid article {
    min-height: 0;
    padding: 14px;
  }

  .webapp-topbar {
    padding-top: 10px !important;
    padding-bottom: 5px !important;
  }

  .webapp-inner-tabs {
    min-height: 58px;
    padding: 6px;
  }

  .webapp-inner-tab {
    min-height: 46px;
    border-radius: 16px;
  }
}

/* Final bottom ad/nav rail alignment. Keep both fixed elements on the exact same rail. */
:root {
  --webapp-bottom-rail-width: min(760px, calc(100vw - 18px));
  --webapp-bottom-ad-offset: 144px;
  --webapp-scroll-top-offset: 132px;
}

.webapp-bottom-nav,
.webapp-ad-anchor {
  left: 50% !important;
  width: var(--webapp-bottom-rail-width) !important;
  transform: translateX(-50%) !important;
}

.webapp-ad-anchor {
  bottom: var(--webapp-bottom-ad-offset) !important;
}

.webapp-scroll-top {
  bottom: var(--webapp-scroll-top-offset) !important;
  right: 22px !important;
}

@media (max-width: 720px) {
  :root {
    --webapp-bottom-rail-width: calc(100vw - 10px);
    --webapp-bottom-ad-offset: 112px;
    --webapp-scroll-top-offset: 126px;
  }

  .webapp-scroll-top {
    right: max(14px, calc((100vw - var(--webapp-bottom-rail-width)) / 2 + 12px)) !important;
  }
}

@media (max-width: 520px) {
  :root {
    --webapp-bottom-rail-width: calc(100vw - 26px);
    --webapp-bottom-ad-offset: 112px;
    --webapp-scroll-top-offset: 126px;
  }
}

/* Progress polish: reusable shine for app CTAs, completed type cards, and progress surfaces. */
.button.app-store-button::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -55%;
  width: 42%;
  height: 140%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  animation: primary-button-sheen 5.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.button.app-store-button > * {
  position: relative;
  z-index: 1;
}

.button.app-store-button:nth-of-type(2)::before {
  animation-delay: 1.4s;
}

.webapp-stat-square {
  position: relative;
  overflow: hidden;
}

.webapp-stat-square.is-complete {
  border-color: rgba(91, 255, 163, 0.62) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 255, 163, 0.18), transparent 48%),
    rgba(0, 50, 30, 0.28) !important;
  box-shadow:
    inset 0 0 0 1px rgba(91, 255, 163, 0.18),
    0 0 18px rgba(91, 255, 163, 0.12);
}

.webapp-stat-square.is-complete::before {
  content: "";
  position: absolute;
  top: -24%;
  left: -60%;
  width: 52%;
  height: 150%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  animation: webappCompletedCardSheen 4.8s ease-in-out infinite;
  pointer-events: none;
}

.webapp-stat-square.is-complete > * {
  position: relative;
  z-index: 1;
}

.webapp-collection-progress-track span,
.webapp-stat-square-track span {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 10px rgba(0, 212, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.webapp-collection-progress-track span::after,
.webapp-stat-square-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 28%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 68%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: webappProgressFillSheen 3.8s ease-in-out infinite;
}

.webapp-dashboard-overview-ring,
.webapp-dashboard-summary-ring {
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(var(--dashboard-accent-rgb, 255, 211, 107), 0.12),
    inset 0 0 0 1px rgba(var(--dashboard-accent-rgb, 255, 211, 107), 0.2);
}

.webapp-dashboard-overview-ring::after,
.webapp-dashboard-summary-ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 42deg,
      rgba(255, 255, 255, 0.4) 54deg,
      transparent 72deg,
      transparent 360deg
    );
  mask: radial-gradient(circle, transparent 0 58%, #000 60% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 100%);
  animation: webappRingGlint 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.webapp-dashboard-compact-card.is-complete,
.webapp-dashboard-detail-card.is-complete {
  border-color: rgba(255, 211, 107, 0.62) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 107, 0.14),
    0 0 24px rgba(255, 211, 107, 0.1);
}

.webapp-dashboard-badge.is-reached {
  box-shadow:
    inset 0 0 0 1px rgba(var(--dashboard-accent-rgb, 255, 255, 255), 0.16),
    0 0 12px rgba(var(--dashboard-accent-rgb, 255, 255, 255), 0.08);
}

@keyframes webappCompletedCardSheen {
  0%, 42% {
    transform: translateX(0) skewX(-22deg);
  }

  72%, 100% {
    transform: translateX(360%) skewX(-22deg);
  }
}

@keyframes webappProgressFillSheen {
  0%, 38% {
    transform: translateX(-120%);
    opacity: 0;
  }

  52% {
    opacity: 1;
  }

  74%, 100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes webappRingGlint {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.app-store-button::before,
  .webapp-stat-square.is-complete::before,
  .webapp-collection-progress-track span::after,
  .webapp-stat-square-track span::after,
  .webapp-dashboard-overview-ring::after,
  .webapp-dashboard-summary-ring::after {
    animation: none !important;
  }
}
