:root {
  color-scheme: dark;
  --bg: #101613;
  --surface: #18221d;
  --surface-soft: #203229;
  --ink: #f4f7ef;
  --muted: #a2afa5;
  --line: #2b3b32;
  --accent: #51d28d;
  --accent-strong: #75e4a6;
  --blue: #7bb7ff;
  --gold: #f0c461;
  --button-bg: #0b552d;
  --featured-border: #314635;
  --featured-glow-start: rgba(81, 210, 141, 0.18);
  --featured-glow-end: rgba(240, 196, 97, 0.14);
  --search-fade: rgba(16, 22, 19, 0);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef6ee;
  --ink: #171a16;
  --muted: #6b7168;
  --line: #e3e7df;
  --accent: #2da46f;
  --accent-strong: #147a55;
  --blue: #2d7eea;
  --gold: #b4811f;
  --button-bg: #e7f2ff;
  --featured-border: #dce8d9;
  --featured-glow-start: rgba(45, 164, 111, 0.16);
  --featured-glow-end: rgba(180, 129, 31, 0.13);
  --search-fade: rgba(247, 248, 244, 0);
  --shadow: 0 10px 30px rgba(19, 35, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  touch-action: pan-y;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--bg);
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
}

.brand-logo img,
.brand-logo span {
  grid-area: 1 / 1;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-logo img:not([hidden]) + span {
  display: none;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.08;
  font-weight: 800;
}

.menu-button,
.theme-button,
.wallet-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.menu-button,
.theme-button,
.wallet-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.theme-button img,
.wallet-button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.theme-button img[src$="darkNackl.png"] {
  width: 28px;
  height: 28px;
}

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.is-menu-open {
  overflow: hidden;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 901;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  padding:
    calc(18px + env(safe-area-inset-top))
    16px
    calc(18px + env(safe-area-inset-bottom));
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.is-menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .side-menu {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  /*padding-bottom: 16px;
  border-bottom: 1px solid var(--line);*/
}

.side-menu-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.side-menu-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.side-menu-links {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.side-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.side-menu-link:focus-visible,
.side-menu-close:focus-visible,
.menu-button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.side-menu-link:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent-strong);
  transform: translateX(-2px);
}

.side-menu-socials {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 12px 0 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
}

.side-menu-social-button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  height: 38px;
  flex: 1 1 auto;
  padding: 7px;
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, var(--bg) 78%, var(--search-fade));
}

.search-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 14px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-section-detail .category-strip,
body.is-section-detail .featured-band,
body.is-app-detail .category-strip,
body.is-app-detail .featured-band,
body.is-ranking-view .category-strip,
body.is-ranking-view .featured-band,
body.is-guides-view .category-strip,
body.is-guides-view .featured-band,
body.is-documentation-view .category-strip,
body.is-documentation-view .featured-band,
body.is-achievements-view .category-strip,
body.is-achievements-view .featured-band {
  display: none !important;
}

body.is-supporter-view .category-strip,
body.is-supporter-view .featured-band {
  display: none !important;
}

body.is-wallet-view .category-strip,
body.is-wallet-view .featured-band {
  display: none !important;
}

.category-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.category-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.topbar-brand h1 {
  font-size: clamp(21px, 2.4vw, 24px);
  white-space: nowrap;
}

.ranking-view {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.ranking-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 4px;
}

.ranking-intro h2,
.ranking-intro p { margin: 0; }

.ranking-intro h2 {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.ranking-intro p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.ranking-intro > strong {
  display: grid;
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 21px;
  line-height: 1;
  text-align: right;
}

.ranking-intro > strong small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-search {
  display: grid;
  gap: 5px;
}

.ranking-search-control {
  display: block;
}

.ranking-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.ranking-search input::placeholder {
  color: var(--muted);
}

.ranking-search input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.ranking-search-status {
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
}

.ranking-list-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ranking-list-head,
.ranking-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(96px, auto);
  gap: 10px;
  align-items: center;
}

.ranking-list-head {
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ranking-list-head span:last-child { text-align: right; }

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  min-height: 66px;
  padding: 9px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

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

.ranking-row.ranking-row-action {
  display: block;
  min-height: 0;
  padding: 0;
}

.ranking-position {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ranking-row.is-top-1 .ranking-position { color: #f2c55f; }
.ranking-row.is-top-2 .ranking-position { color: #b9c8d2; }
.ranking-row.is-top-3 .ranking-position { color: #cf874f; }

.ranking-wallet {
  display: grid;
  min-width: 0;
}

.ranking-wallet-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ranking-wallet strong,
.ranking-wallet small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-wallet strong {
  color: var(--ink);
  font-size: 14px;
}

.ranking-wallet small {
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.ranking-balance {
  min-width: 0;
  color: var(--accent-strong);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.ranking-message {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 42px 22px;
  color: var(--ink);
  text-align: center;
}

.ranking-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ranking-retry,
.ranking-load-more {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  border-radius: 8px;
  background: var(--accent-deep);
  color: var(--accent-strong);
  font-weight: 850;
}

.ranking-retry {
  margin-top: 7px;
  padding: 0 20px;
}

.ranking-footer {
  display: grid;
  gap: 9px;
  padding-bottom: 10px;
  text-align: center;
}

.ranking-footer p,
.ranking-footer small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.ranking-footer small { color: #ff9a78; }
.ranking-load-more { width: 100%; }

.ranking-load-more:disabled {
  cursor: wait;
  opacity: .65;
}

.ranking-row-skeleton { pointer-events: none; }

.ranking-skeleton {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-soft), color-mix(in srgb, var(--line) 55%, var(--surface-soft)), var(--surface-soft));
  background-size: 220% 100%;
  animation: ranking-skeleton 1.15s ease-in-out infinite;
}

.ranking-skeleton-rank { width: 32px; }
.ranking-skeleton-name { width: min(150px, 75%); }

.ranking-skeleton-address {
  width: min(112px, 62%);
  height: 7px;
  margin-top: 7px;
}

.ranking-skeleton-balance {
  width: 78px;
  justify-self: end;
}

@keyframes ranking-skeleton {
  to { background-position: -220% 0; }
}

@media (max-width: 420px) {
  .ranking-list-head,
  .ranking-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(88px, auto);
    gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .ranking-balance { font-size: 13px; }
}

.featured-band {
  position: relative;
  display: flex;
  align-items: center;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  margin: 2px 0 0 0;
  padding: 15px;
  border: 1px solid var(--featured-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.featured-band[hidden] {
  display: none !important;
}

.featured-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.featured-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background:
    linear-gradient(90deg, rgba(6, 10, 8, 0.76), rgba(6, 10, 8, 0.4) 58%, rgba(6, 10, 8, 0.18)),
    var(--featured-image, linear-gradient(135deg, var(--featured-glow-start), var(--featured-glow-end))),
    var(--surface);
  background-position: center;
  background-size: cover;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-slide.is-active {
  transform: translateX(0);
}

.featured-slide.is-leaving {
  transform: translateX(-100%);
}

.featured-slide.is-entering {
  transform: translateX(100%);
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #75e4a6;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
  text-transform: uppercase;
}

.featured-copy h2 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.featured-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(244, 247, 239, 0.82);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.86);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-button,
.open-button {
  min-height: 34px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.featured-button {
  margin-left: auto;
  padding: 0 14px;
}

.featured-copy {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .menu-backdrop,
  .side-menu,
  .side-menu-link {
    transition: none;
  }
}

@media (max-width: 380px) {
  .featured-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.app-section {
  margin-top: 0;
}

body.is-home-view .app-section {
  margin-top: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 11px;
}

.mining-groups-section .section-title {
  margin-bottom: 0;
}

.section-title-detail {
  justify-content: flex-start;
}

.section-title h2 {
  font-size: 18px;
  line-height: 1.2;
}

.section-title span {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.section-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.section-title-button {
  font-size: 18px;
  line-height: 1.2;
}

.section-title-button span[aria-hidden="true"] {
  font-size: 26px;
  line-height: 1;
}

.section-title-button:disabled {
  cursor: default;
}

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

.mining-groups-section {
  display: grid;
  gap: 16px;
}

.mining-group-block {
  display: grid;
  gap: 9px;
}

.mining-group-block h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.mining-group-list {
  gap: 10px;
}

.app-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  cursor: pointer;
}

.app-row:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(23, 26, 22, 0.13);
}

.app-icon img {
  width: 100%;
  height: calc(100% - 1px);
  align-self: center;
  border-radius: calc(8px - 1px);
  object-fit: cover;
}

.app-info {
  min-width: 0;
}

.app-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-height: 24px;
}

.app-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-badge,
.app-rating-badge,
.app-admin-badge {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--button-bg);
  font-size: 9px;
  font-weight: 900;
}

.app-badge {
  color: var(--blue);
}

.app-rating-badge {
  color: var(--gold);
}

.app-admin-badge {
  color: #f1a7a7;
  border: 1px solid color-mix(in srgb, #f1a7a7 42%, var(--line));
  background: color-mix(in srgb, #5a1d25 72%, var(--surface-soft));
}

.app-admin-badge.is-unavailable {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold) 14%, var(--surface-soft));
}

.app-row.is-disabled {
  opacity: 0.72;
}

.app-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.open-button {
  min-width: 48px;
  padding: 0 10px;
  white-space: nowrap;
}

.open-button.is-unavailable,
.detail-open-button.is-unavailable {
  background: #3a2020;
  color: #d9b7b7;
  cursor: not-allowed;
}

.open-button:disabled,
.detail-open-button:disabled {
  opacity: 1;
}

.app-detail {
  padding-top: 4px;
}

.detail-header {
  display: grid;
  gap: 16px;
}

.detail-title-row {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.detail-back {
  display: inline-block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.detail-header h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-metrics {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.detail-action-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44px;
  gap: 8px;
}

.detail-icon {
  width: 64px;
  height: 64px;
  font-size: 23px;
}

.detail-metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.detail-metrics strong span {
  color: var(--blue);
}

.detail-metrics div span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-stats-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-metrics .detail-stats-line span {
  display: inline;
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-stat-rating,
.detail-stats-line strong {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.detail-metrics .detail-stats-line .detail-stat-rating,
.detail-metrics .detail-stats-line .detail-stat-rating span,
.detail-metrics .detail-stats-line strong {
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.detail-stat-rating span {
  color: var(--gold);
}

.detail-open-button {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--button-bg);
  color: var(--accent-strong);
}

.detail-action-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--accent-strong);
  line-height: 1;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

.detail-action-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-action-button:hover,
.detail-action-button:focus-visible,
.detail-action-button.is-copied {
  border-color: color-mix(in srgb, var(--gold) 52%, var(--accent));
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
  color: var(--gold);
}

.detail-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.detail-contact-actions.has-1 {
  grid-template-columns: 1fr;
}

.detail-contact-actions.is-official {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.detail-contact-button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail-contact-button.is-icon-only {
  width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 8px;
}

.detail-contact-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-strong);
}

.detail-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.detail-contact-youtube .detail-contact-icon svg,
.detail-contact-telegram .detail-contact-icon svg {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.detail-contact-instagram .detail-contact-icon circle:last-child,
.detail-contact-x .detail-contact-icon svg,
.detail-contact-discord .detail-contact-icon svg,
.detail-contact-youtube .detail-contact-icon path {
  fill: currentColor;
  stroke: none;
}

.detail-contact-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-gallery-wrap {
  position: relative;
  margin-top: 20px;
}

.detail-gallery {
  display: grid;
  grid-auto-columns: minmax(180px, 32%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 1px 34px 8px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--accent-strong);
  font-size: 31px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav-previous {
  left: 4px;
}

.gallery-nav-next {
  right: 4px;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
}

.detail-block > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.rating-stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.star-button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 39px;
  line-height: 1;
}

.star-button.is-selected {
  color: var(--accent-strong);
}

.star-button:disabled {
  opacity: 0.72;
}

.rating-saving {
  margin-top: 8px !important;
  color: var(--accent-strong) !important;
  font-size: 13px !important;
  font-weight: 700;
}

.detail-text {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.rating-summary {
  padding-bottom: 10px;
}

.rating-score {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}

.rating-score strong {
  font-size: 58px;
  font-weight: 450;
  line-height: 0.95;
}

.rating-score span {
  color: var(--muted);
  font-size: 14px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    calc(58px + env(safe-area-inset-top))
    10px
    calc(20px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.82);
  touch-action: pan-y;
}

.image-viewer img {
  max-width: 100%;
  max-height: calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 8px;
  object-fit: contain;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 180ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer.is-swipeable img {
  cursor: grab;
}

.image-viewer img.is-changing {
  opacity: 0.45;
  transform: translateX(var(--swipe-shift));
}

.image-viewer-close {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 1001;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: rgba(10, 12, 11, 0.88);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.empty-state {
  padding: 26px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.guides-view {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.supporter-view {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

#sectionsRoot,
.supporter-view,
.supporter-view > *,
.supporter-card {
  min-width: 0;
  max-width: 100%;
}

.statistics-view {
  display: grid;
  gap: 14px;
}

.achievements-view {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
}

.achievements-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--gold) 21%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 84%, var(--accent) 16%), var(--surface));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.achievements-hero-copy h2 {
  margin: 6px 0 7px;
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
}

.achievements-hero-copy p,
.achievement-group-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.achievements-score {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  justify-content: end;
  color: var(--muted);
  text-align: right;
}

.achievements-score strong {
  color: var(--gold);
  font-size: 40px;
  line-height: 1;
}

.achievements-score span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.achievements-total-progress,
.achievement-progress {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 78%, transparent);
}

.achievements-total-progress {
  grid-column: 1 / -1;
  height: 8px;
}

.achievements-total-progress i,
.achievement-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.achievements-hero-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(145px, .75fr) minmax(0, 1.25fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.achievements-rarest,
.achievements-tier-summary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.achievements-rarest-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.achievements-rarest-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.achievements-rarest-copy strong,
.achievements-rarest-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievements-rarest-copy strong {
  font-size: 16px;
}

.achievements-rarest-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.achievements-rarest-trophy {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 0;
  border-radius: 5px;
  background-size: 160px 90px !important;
  transform: none;
  filter: saturate(1.05) brightness(1) !important;
}

.achievements-rarest > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.achievements-tier-counts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.achievements-tier-count {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  text-align: center;
}

.achievements-tier-count strong {
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}

.achievements-tier-count small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.achievement-group {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.achievement-group-toggle {
  display: grid;
  grid-template-columns: 58px minmax(0, 1.25fr) minmax(124px, .9fr);
  width: 100%;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.achievement-group-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.achievement-summary-trophy {
  width: 58px;
  height: 58px;
  filter: saturate(1.2) brightness(1.15) !important;
}

.achievement-trophy-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.achievement-group-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.achievement-group-copy > strong {
  overflow: visible;
  font-size: 19px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.achievement-group-copy > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.achievement-group-current {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 160px;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.achievement-group-current small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.achievement-group-current strong {
  max-width: 100%;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.achievement-chevron {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: 2px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.achievement-group.is-expanded .achievement-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.achievement-next-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.achievement-next-progress strong {
  color: var(--accent-strong);
  font-size: 11px;
}

.achievement-next-progress > i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 78%, transparent);
}

.achievement-next-progress > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.achievement-next-progress.is-complete span,
.achievement-next-progress.is-complete strong {
  color: var(--gold);
}

.achievement-group-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.achievement-group-header h2 {
  margin: 5px 0 5px;
  font-size: 20px;
  line-height: 1.1;
}

.achievement-group-header > strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 15px;
  text-align: right;
}

.achievement-list {
  display: grid;
  gap: 8px;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .34s ease, margin-top .34s ease, opacity .2s ease;
}

.achievement-list[hidden] {
  display: none !important;
}

.achievement-resource-hint {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
  padding: 0 2px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.achievement-resource-hint strong {
  color: var(--accent-strong);
  font-size: 11px;
}

.achievement-resource-hint span {
  overflow-wrap: anywhere;
}

.achievement-group.is-expanded .achievement-list {
  height: auto;
  margin-top: 12px;
  opacity: 1;
}

.achievement-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: 7px 9px 7px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
}

.achievement-item.is-unlocked {
  border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
  box-shadow: inset 3px 0 0 var(--gold), 0 0 18px color-mix(in srgb, var(--gold) 10%, transparent);
}

.achievement-item.is-locked {
  opacity: .64;
}

.achievement-trophy {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background-image: url("./assets/achievements/trophy-sprite.jpg");
  background-repeat: no-repeat;
  background-size: 320px 180px;
  background-color: #050706;
  filter: saturate(.38) brightness(.68);
}

.is-unlocked .achievement-trophy {
  filter: saturate(1.05) brightness(1);
}

.trophy-tier-0 { background-position: -20px -43px; }
.trophy-tier-1 { background-position: -85px -43px; }
.trophy-tier-2 { background-position: -158px -43px; }
.trophy-tier-3 { background-position: -230px -43px; }
.trophy-tier-4 { background-position: -35px -108px; }
.trophy-tier-5 { background-position: -113px -108px; }
.trophy-tier-6 { background-position: -188px -108px; }

.achievements-rarest-trophy {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 0;
  border-radius: 5px;
  background-size: 160px 90px !important;
  transform: none;
  filter: saturate(1.05) brightness(1) !important;
}

.achievements-rarest-trophy.trophy-tier-0 { background-position: -10px -21.5px !important; }
.achievements-rarest-trophy.trophy-tier-1 { background-position: -42.5px -21.5px !important; }
.achievements-rarest-trophy.trophy-tier-2 { background-position: -79px -21.5px !important; }
.achievements-rarest-trophy.trophy-tier-3 { background-position: -115px -21.5px !important; }
.achievements-rarest-trophy.trophy-tier-4 { background-position: -17.5px -54px !important; }
.achievements-rarest-trophy.trophy-tier-5 { background-position: -56.5px -54px !important; }
.achievements-rarest-trophy.trophy-tier-6 { background-position: -94px -54px !important; }

.achievement-item-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.achievement-item-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-item-main > span:not(.achievement-progress) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.achievement-item-main > span:not(.achievement-progress):not(.achievement-item-details) {
  display: none;
}

.achievement-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.achievement-item-details strong {
  color: var(--accent-strong);
  font-size: inherit;
  white-space: nowrap;
}

.achievement-progress {
  width: min(100%, 150px);
  height: 5px;
}

.achievement-status {
  max-width: 72px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.is-unlocked .achievement-status {
  color: var(--gold);
}

.achievements-error {
  min-height: 100px;
}

.supporter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supporter-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.supporter-back span {
  font-size: 26px;
  line-height: 1;
}

.supporter-back strong {
  font-size: 21px;
}

.internal-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.internal-back > .internal-back-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  line-height: 1;
}

.internal-back-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}

.internal-back strong {
  min-width: 0;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-back:hover > .internal-back-icon,
.internal-back:focus-visible > .internal-back-icon {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent) 18%);
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
}

.settings-card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-soft));
  color: var(--accent-strong);
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--accent) 8%, transparent);
}

.settings-card-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.supporter-beta,
.supporter-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.supporter-hero,
.supporter-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, var(--accent) 10%), var(--surface));
}

.supporter-hero {
  padding: 22px;
}

.supporter-hero h2 {
  margin: 7px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.supporter-payment-hero {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, var(--accent) 10%), var(--surface));
}

.supporter-hero p,
.supporter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.supporter-progress {
  position: relative;
  height: 9px;
  margin: 19px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      transparent calc(20% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(20% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 20%,
      transparent 20%,
      transparent calc(40% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(40% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 40%,
      transparent 40%,
      transparent calc(60% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(60% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 60%,
      transparent 60%,
      transparent calc(80% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(80% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 80%,
      transparent 80%
    ),
    color-mix(in srgb, var(--line) 80%, transparent);
}

.supporter-progress span {
  position: relative;
  z-index: 2;
  display: block;
  width: var(--supporter-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.supporter-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: var(--supporter-preview, 0%);
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.supporter-progress-label {
  color: var(--accent-strong) !important;
  font-weight: 750;
}

.supporter-progress-hint {
  margin-top: 3px !important;
  font-size: 12px !important;
}

.supporter-card {
  padding: 17px;
}

.supporter-card > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supporter-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.supporter-wallet-connect {
  display: grid;
  gap: 10px;
}

.supporter-wallet-state code {
  display: block;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.donation-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.donation-address-row code {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 9px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  font-size: 11px;
}

.donation-copy-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

.donation-copy-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donation-copy-button:hover,
.donation-copy-button.is-copied {
  border-color: color-mix(in srgb, var(--gold) 52%, var(--accent));
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
  color: var(--gold);
}

.donation-price-details {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.donation-price-details span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donation-price-details strong {
  color: var(--text);
  font-size: 15px;
}

.donation-price-details p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.donation-price-details .donation-price-warning {
  color: #f4c2c2;
}

.donation-price-provider {
  margin: 10px 0 14px !important;
  font-size: 11px !important;
}

.donation-price-provider a {
  color: var(--accent-strong);
}

.donation-quote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.donation-action-button {
  gap: 7px;
}

.donation-action-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donation-payment-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.donation-check-button {
  width: 100%;
  margin-top: 12px;
}

.donation-check-status {
  margin: 8px 0 0 !important;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.4;
}

.donation-check-status[data-status="checking"],
.donation-check-status[data-status="pending"] {
  border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
  color: color-mix(in srgb, var(--gold) 88%, var(--text));
}

.donation-check-status[data-status="success"] {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  color: var(--accent-strong);
}

.donation-check-status[data-status="error"] {
  border-color: color-mix(in srgb, #e98282 58%, var(--line));
  color: #f0a2a2;
}

.supporter-notification-toast {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--accent));
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-soft) 94%, #000 6%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  color: var(--text);
}

.supporter-notification-toast strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 14px;
}

.supporter-notification-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.supporter-notification-toast button,
.supporter-unlock-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.supporter-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.supporter-unlock-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.72);
  backdrop-filter: blur(6px);
}

.supporter-unlock-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 24px 20px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, var(--accent));
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 36%),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 92%, var(--gold) 8%), var(--surface));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.supporter-unlock-card::before {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 34%, transparent 35%),
    color-mix(in srgb, var(--gold) 18%, var(--surface));
  content: "🏆";
  font-size: 31px;
  line-height: 58px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 36%, transparent);
}

.is-backer-unlock .supporter-unlock-card::before,
.is-builder-unlock .supporter-unlock-card::before,
.is-pathfinder-unlock .supporter-unlock-card::before {
  display: none;
}

.supporter-unlock-pack-image {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 14px 26px color-mix(in srgb, var(--accent) 24%, transparent));
}

.is-preview-unlock .supporter-unlock-kicker::after {
  content: " preview";
  color: var(--gold);
}

.supporter-unlock-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.supporter-unlock-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supporter-unlock-card h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

.supporter-unlock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.supporter-unlock-card > .supporter-primary-button {
  margin-top: 14px;
}

.wallet-disconnect-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: auto;
}

.wallet-disconnect-modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 8, 5, 0.72);
  backdrop-filter: blur(7px);
  pointer-events: auto;
}

.wallet-disconnect-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 390px);
  padding: 18px;
  border: 1px solid color-mix(in srgb, #ff8d8d 36%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, #ff8d8d 16%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 94%, #ff8d8d 6%), var(--surface));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
}

.wallet-disconnect-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.05;
}

.wallet-disconnect-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.wallet-disconnect-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.wallet-disconnect-cancel,
.wallet-disconnect-confirm {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-disconnect-cancel {
  border: 1px solid color-mix(in srgb, #ff8d8d 48%, transparent);
  background: linear-gradient(135deg, rgba(138, 51, 58, 0.88), rgba(92, 37, 43, 0.9));
  color: #fff4f2;
}

.wallet-disconnect-cancel:hover {
  border-color: #ffb4a8;
}

.wallet-disconnect-confirm {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 48%, transparent);
  background: var(--button-bg);
  color: var(--accent-strong);
}

.wallet-disconnect-confirm:hover {
  border-color: var(--accent-strong);
}

.app-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.app-edit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.76);
  backdrop-filter: blur(8px);
}

.app-edit-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 560px;
  max-inline-size: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 88%, #07150d));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.app-edit-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.app-edit-card header span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-edit-card h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.15;
}

.app-edit-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.supporter-unlock-card ul {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.supporter-unlock-card li {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.donation-currency-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.donation-currency-selector-label {
  display: block;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.donation-currency-selector button {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  text-align: left;
}

.donation-currency-selector button.is-selected {
  border-color: color-mix(in srgb, var(--accent) 68%, white);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}

.donation-currency-selector strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.donation-currency-selector img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex: 0 0 auto;
}

.donation-currency-selector span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.donation-amount-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.donation-amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
}

.donation-amount-input:focus-within {
  border-color: color-mix(in srgb, var(--accent-strong) 82%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.donation-amount-input span {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 850;
}

.donation-amount-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 850;
}

.donation-amount-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.donation-amount-presets button {
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--text);
  font-weight: 800;
}

.donation-amount-presets button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}

.donation-amount-presets button.is-unlocked {
  opacity: 0.65;
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
}

.donation-amount-presets button.is-selected {
  border-color: color-mix(in srgb, var(--accent) 68%, white);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent-strong);
}

.donation-unlocks-preview {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
}

.donation-unlocks-preview > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.donation-unlocks-preview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donation-unlocks-preview li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.donation-unlocks-preview li.is-unlocked {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background:
    radial-gradient(circle at 12% 24%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface) 84%, transparent);
}

.donation-unlocks-preview li.is-active-pack {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--gold) 9%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent),
    0 12px 24px color-mix(in srgb, var(--gold) 13%, transparent);
}

.donation-unlocks-preview li.is-clickable {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.donation-unlocks-preview li.is-clickable:hover,
.donation-unlocks-preview li.is-clickable:focus-visible,
.donation-unlocks-preview li.is-preview-action:hover,
.donation-unlocks-preview li.is-preview-action:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 88%, var(--line));
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--gold) 12%, var(--surface));
  transform: translateY(-1px);
  outline: none;
}

.donation-unlocks-preview li.is-preview-action {
  cursor: pointer;
}

.donation-unlocks-preview li.is-coming-soon {
  opacity: 0.72;
}

.donation-unlocks-preview li.is-coming-soon.has-pack-image {
  opacity: 1;
  align-items: center;
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--gold) 9%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent),
    0 12px 24px color-mix(in srgb, var(--gold) 13%, transparent);
}

.donation-unlocks-preview li strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
  font-size: 13px;
}

.donation-unlocks-preview li strong span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 999px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 10px;
  line-height: 1;
}

.donation-unlocks-preview li small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.donation-unlocks-preview .donation-unlock-feature-list {
  display: grid;
  gap: 2px;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}

.donation-unlocks-preview .donation-unlock-feature-list li {
  display: block;
  position: relative;
  min-width: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.donation-unlocks-preview .donation-unlock-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.donation-unlock-thumbs {
  position: relative;
  width: 74px;
  height: 50px;
}

.donation-unlocks-preview li.has-pack-image .donation-unlock-thumbs {
  display: grid;
  width: 74px;
  height: 66px;
  place-items: center;
}

.donation-unlock-question {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.donation-unlock-pack-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--accent) 64%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px) 9px 9px / 13px 13px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px) 9px 9px / 13px 13px,
    radial-gradient(circle at 28% 26%, color-mix(in srgb, var(--accent-strong) 48%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, var(--surface)), color-mix(in srgb, var(--surface-soft) 88%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, white 7%, transparent),
    0 12px 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.donation-unlock-builder-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 17px;
  height: 18px;
  border-bottom: 3px solid var(--accent-strong);
  border-left: 3px solid color-mix(in srgb, var(--accent-strong) 70%, transparent);
  border-radius: 0 0 0 7px;
  transform: skewX(-10deg);
}

.donation-unlock-builder-icon i,
.donation-unlock-builder-icon b,
.donation-unlock-builder-icon em {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 42%, transparent);
}

.donation-unlock-builder-icon i {
  left: 15px;
  bottom: 24px;
  width: 7px;
  height: 7px;
}

.donation-unlock-builder-icon b {
  left: 27px;
  bottom: 31px;
  width: 7px;
  height: 7px;
}

.donation-unlock-builder-icon em {
  right: 12px;
  bottom: 38px;
  width: 8px;
  height: 8px;
}

.donation-unlock-thumbs img {
  position: absolute;
  top: 50%;
  width: 35px;
  height: 46px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.donation-unlock-thumbs img.donation-unlock-pack-image {
  position: static;
  width: 62px;
  height: 62px;
  object-fit: contain;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.donation-unlocks-preview li.has-pack-image .donation-unlock-pack-image {
  justify-self: center;
  align-self: center;
}

.donation-unlock-thumbs img:nth-child(1) {
  left: 0;
  transform: translateY(-50%) rotate(-7deg);
}

.donation-unlock-thumbs img:nth-child(2) {
  left: 19px;
  z-index: 2;
  transform: translateY(-54%);
}

.donation-unlock-thumbs img:nth-child(3) {
  left: 38px;
  transform: translateY(-50%) rotate(7deg);
}

.donation-unlock-thumbs > img.donation-unlock-pack-image {
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
}

.donation-unlock-thumbs > img.donation-unlock-pack-image:nth-child(1),
.donation-unlock-thumbs > img.donation-unlock-pack-image:nth-child(2),
.donation-unlock-thumbs > img.donation-unlock-pack-image:nth-child(3) {
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
}

.supporter-wallet-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.supporter-wallet-summary-heading > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supporter-wallet-loading {
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.supporter-card-inner-loading {
  min-height: 168px;
  align-content: center;
  padding: 10px 0;
}

.wallet-loading-icon {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 2px 0 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.wallet-loading-icon::before {
  position: absolute;
  inset: -4px;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  border-radius: inherit;
  content: "";
  animation: wallet-loader-spin 1.25s linear infinite;
}

.wallet-loading-icon img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  animation: wallet-loader-float 1.8s ease-in-out infinite;
}

.supporter-wallet-loading > strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.wallet-loading-dots {
  display: flex;
  gap: 5px;
  margin-top: 13px;
}

.wallet-loading-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: wallet-loader-dot 1s ease-in-out infinite;
}

.wallet-loading-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.wallet-loading-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

.wallet-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}

.wallet-refresh-status i {
  width: 10px;
  height: 10px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wallet-loader-spin 0.8s linear infinite;
}

.wallet-connection-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-strong) !important;
  font-size: 12px !important;
  font-weight: 700;
  text-align: center;
}

.wallet-connection-waiting i {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wallet-loader-spin 0.8s linear infinite;
}

.wallet-connection-notice {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  color: color-mix(in srgb, var(--gold) 88%, var(--text)) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@keyframes wallet-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes wallet-loader-float {
  50% { transform: translateY(-4px) rotate(-4deg); }
}

@keyframes wallet-loader-dot {
  50% { transform: translateY(-4px); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-loading-icon::before,
  .wallet-loading-icon img,
  .wallet-loading-dots i,
  .wallet-refresh-status i,
  .wallet-connection-waiting i {
    animation: none;
  }
}

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

.supporter-balance-grid > div,
.supporter-wallet-mbi {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.supporter-balance-grid span,
.supporter-wallet-mbi span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.supporter-balance-grid img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.supporter-balance-grid img[src$="shell.png"] {
  width: 20px;
  height: 20px;
  margin: -2px;
}

.supporter-balance-grid img[src*="eccusdc.png"] {
  width: 18px;
  height: 18px;
  margin: -1px;
}

.supporter-balance-grid strong,
.supporter-wallet-mbi strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.supporter-wallet-mbi {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.supporter-wallet-mbi > * {
  min-width: 0;
}

.supporter-wallet-mining-since {
  grid-column: 1 / -1;
}

.supporter-wallet-mbi span {
  margin: 0;
}

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

.supporter-wallet-summary-name {
  display: block;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}

.supporter-wallet-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.supporter-wallet-address:hover,
.supporter-wallet-address:focus-visible,
.supporter-wallet-address.is-copied {
  border-color: var(--accent-strong);
  color: var(--ink);
}

.supporter-wallet-address code {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.wallet-address-copy-feedback {
  flex: 0 0 auto;
  min-width: 20px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.wallet-analytics-card {
  display: grid;
  gap: 12px;
}

.wallet-analytics-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.wallet-analytics-head > div:first-child,
.wallet-history-head > div:first-child,
.wallet-reward-list-head > div:first-child {
  min-width: 0;
}

.wallet-analytics-head span,
.wallet-reward-list > span,
.wallet-reward-list-head span,
.wallet-history-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-analytics-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.wallet-analytics-head em {
  display: block;
  margin-top: 5px;
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.wallet-analytics-card.is-refreshing .wallet-chart,
.wallet-analytics-card.is-refreshing .wallet-analytics-kpis,
.wallet-analytics-card.is-refreshing .wallet-analytics-footer {
  opacity: .64;
}

.wallet-range-selector {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.wallet-range-selector button {
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wallet-range-selector button.is-selected {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-soft));
  color: var(--accent-strong);
}

.wallet-analytics-kpis,
.wallet-analytics-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 9px;
}

.wallet-analytics-section-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.wallet-analytics-head .wallet-analytics-section-title {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.05;
}

.wallet-mining-app-card {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: inherit;
  text-align: left;
}

.wallet-mining-app-card.is-clickable {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.wallet-mining-app-card.is-clickable:hover,
.wallet-mining-app-card.is-clickable:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  outline: none;
  transform: translateY(-1px);
}

.wallet-mining-app-card > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-mining-app-card strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.wallet-mining-app-card img,
.wallet-mining-app-card strong > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
}

.wallet-mining-app-card strong > span {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 10px;
}

.wallet-analytics-kpis div,
.wallet-analytics-footer div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.wallet-analytics-kpis span,
.wallet-analytics-footer span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-analytics-kpis strong,
.wallet-analytics-footer strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.wallet-mining-breakdown {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.wallet-mining-breakdown-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wallet-mining-breakdown-head > div {
  min-width: 0;
}

.wallet-mining-breakdown span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-mining-breakdown strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.wallet-mining-breakdown-head em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.wallet-mining-breakdown strong.is-positive {
  color: var(--accent-strong);
}

.wallet-mining-breakdown strong.is-negative {
  color: #ff9a78;
}

.wallet-mining-breakdown-bars {
  display: grid;
  grid-template-columns: repeat(var(--wallet-breakdown-count), minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 112px;
}

.wallet-mining-breakdown-bar {
  display: grid;
  grid-template-rows: 72px auto auto auto;
  align-items: end;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.wallet-mining-breakdown-bar i {
  display: block;
  width: 65%;
  max-width: 32px;
  box-sizing: border-box;
  justify-self: center;
  min-height: 3px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--accent-strong), color-mix(in srgb, var(--accent) 62%, transparent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 22%, transparent);
}

.wallet-mining-breakdown-bar.is-empty i {
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-mining-breakdown-bar span {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-mining-breakdown-bar .wallet-mining-range-label {
  display: grid;
  gap: 1px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.wallet-mining-breakdown-bar .wallet-mining-range-label small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-mining-breakdown-bar em {
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.wallet-mining-breakdown-bar em.is-positive {
  color: var(--accent-strong);
}

.wallet-mining-breakdown-bar em.is-negative {
  color: #ff9a78;
}

.wallet-mining-breakdown-bar em.is-neutral {
  color: var(--muted);
}

.wallet-mining-breakdown-context {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wallet-mining-breakdown-bar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-chart {
  position: relative;
  height: 180px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  touch-action: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px) 0 0 / 100% 33.333%,
    color-mix(in srgb, var(--surface) 76%, transparent);
}

.wallet-chart svg {
  position: absolute;
  inset: 20px 10px 32px;
  width: calc(100% - 20px);
  height: calc(100% - 52px);
}

.wallet-chart polyline {
  fill: none;
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 42%, transparent));
}

.wallet-chart-crosshair {
  position: absolute;
  top: 18px;
  bottom: 30px;
  width: 1px;
  background: color-mix(in srgb, var(--accent-strong) 52%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.wallet-chart-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wallet-chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 116px;
  max-width: 150px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 52%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 96%, #000 4%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.wallet-chart-tooltip.is-above-point {
  transform: translate(-50%, calc(-100% - 16px));
}

.wallet-chart-tooltip.is-below-point {
  transform: translate(-50%, 16px);
}

.wallet-chart-tooltip.is-left-edge {
  transform: translate(0, -100%);
}

.wallet-chart-tooltip.is-left-edge.is-above-point {
  transform: translate(0, calc(-100% - 16px));
}

.wallet-chart-tooltip.is-left-edge.is-below-point {
  transform: translate(0, 16px);
}

.wallet-chart-tooltip.is-right-edge {
  transform: translate(-100%, -100%);
}

.wallet-chart-tooltip.is-right-edge.is-above-point {
  transform: translate(-100%, calc(-100% - 16px));
}

.wallet-chart-tooltip.is-right-edge.is-below-point {
  transform: translate(-100%, 16px);
}

.wallet-chart-tooltip strong,
.wallet-chart-tooltip span {
  display: block;
  white-space: nowrap;
}

.wallet-chart-tooltip strong {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.wallet-chart-tooltip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.wallet-chart-touch-targets {
  position: absolute;
  inset: 0;
}

.wallet-chart-touch-targets button {
  position: absolute;
  top: 0;
  width: max(18px, calc(100% / var(--wallet-chart-point-count, 8)));
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.wallet-chart-values,
.wallet-chart-time-labels {
  position: absolute;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-chart-values {
  inset: 8px 12px auto;
}

.wallet-chart-time-labels {
  inset: auto 12px 8px;
}

.wallet-chart-time-labels-dense {
  display: grid;
  grid-template-columns: repeat(var(--wallet-chart-label-count, 7), minmax(0, 1fr));
  gap: 2px;
}

.wallet-chart-time-labels span {
  min-width: 0;
  text-align: center;
}

.wallet-chart-time-labels-dense span {
  min-width: 0;
  font-size: 10px;
}

.wallet-chart-time-labels span:first-child {
  text-align: left;
}

.wallet-chart-time-labels span:last-child {
  text-align: right;
}

.wallet-chart.is-empty {
  display: grid;
  height: 118px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.wallet-reward-list {
  display: grid;
  gap: 8px;
}

.wallet-reward-list-head,
.wallet-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.wallet-reward-list-head span,
.wallet-history-head span {
  margin: 0;
}

.wallet-reward-list-head button,
.wallet-history-toggle button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.wallet-history-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.wallet-history-toggle button {
  min-width: 78px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.wallet-history-toggle button.is-selected {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-soft));
  color: var(--accent-strong);
}

.wallet-history-head strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.wallet-reward-list > div:not(.wallet-reward-list-head),
.wallet-history-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.wallet-reward-list strong,
.wallet-history-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-history-currency-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.wallet-history-list div.is-in strong {
  color: #66d9ff;
}

.wallet-history-list div.is-out strong {
  color: #ff8a66;
}

.wallet-history-list div.is-reward strong {
  color: var(--accent-strong);
}

.wallet-history-list div > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-history-list div > strong {
  min-width: 0;
  flex: 0 1 auto;
}

.wallet-reward-list div span,
.wallet-history-list div span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.wallet-history-card {
  display: grid;
  gap: 14px;
}

.wallet-history-list {
  display: grid;
  gap: 8px;
}

.wallet-history-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.wallet-history-pager button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.wallet-history-pager button:disabled {
  opacity: .42;
}

.wallet-history-pager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-analytics-empty {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.wallet-analytics-locked {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, var(--accent) 10%), var(--surface));
}

.wallet-analytics-locked .supporter-primary-button {
  margin-top: 2px;
}

.wallet-disconnect-button {
  margin-top: auto;
}

.supporter-qr {
  display: grid;
  width: max-content;
  margin: 4px auto;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
}

.supporter-qr img,
.supporter-qr canvas {
  display: block;
}

.supporter-primary-button,
.supporter-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.supporter-primary-button {
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--accent-strong);
  cursor: pointer;
}

.supporter-secondary-button {
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.supporter-secondary-button:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-soft));
}

.wallet-disconnect-button {
  border-color: #754247;
  background: #563136;
  color: #fff1f0;
}

.wallet-disconnect-button:hover {
  background: #66383e;
}

.backer-settings-card {
  display: grid;
  gap: 14px;
  border-color: color-mix(in srgb, var(--accent) 17%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 96%, var(--accent) 4%), var(--surface));
}

.backer-settings-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.backer-settings-card select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 10px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  color: var(--ink);
  padding: 11px 34px 11px 12px;
  font: inherit;
}

.backer-settings-card select:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 82%, var(--line));
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  outline-offset: 1px;
}

body[data-theme="light"] .backer-settings-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23171a16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.backer-settings-card select option {
  background: #ffffff;
  color: #171a16;
}

.wallet-card-theme-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.wallet-card-theme-picker legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 700;
}

.wallet-card-theme-picker-signature {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.wallet-card-theme-picker-signature small {
  display: block;
  margin: -3px 0 2px;
}

.wallet-theme-gallery-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
}

.wallet-theme-gallery {
  width: 100%;
  min-width: 0;
  grid-auto-columns: minmax(132px, 48%);
  padding: 1px 36px 8px 0;
  overscroll-behavior-x: contain;
}

.wallet-card-theme-option {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  color: var(--ink) !important;
  cursor: pointer;
  box-shadow: none;
}

.wallet-theme-nav {
  display: grid;
}

.wallet-card-theme-preview {
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  cursor: zoom-in;
}

.wallet-card-theme-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-card-theme-option label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 2px;
  font-size: 14px;
  cursor: pointer;
}

.wallet-card-theme-option input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}

.backer-settings-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.backer-settings-card .backer-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  cursor: pointer;
}

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

.backer-toggle-track,
.follow-switch-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  transition: background 160ms ease, border-color 160ms ease;
}

.backer-toggle-track::after,
.follow-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.backer-toggle input:checked + .backer-toggle-track,
.follow-switch input:checked + .follow-switch-track {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 78%, var(--surface-soft));
}

.backer-toggle input:checked + .backer-toggle-track::after,
.follow-switch input:checked + .follow-switch-track::after {
  transform: translateX(16px);
  background: #f5fff7;
}

.backer-toggle:has(input:disabled) {
  cursor: progress;
}

.backer-toggle-copy {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 750;
}

.backer-toggle-copy strong {
  font-weight: 750;
}

.backer-toggle-copy small {
  font-weight: 500;
}

.followed-wallet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.followed-wallet-form input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-soft));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.followed-wallet-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  opacity: 1;
}

.followed-wallet-form input:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 78%, var(--line));
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 1px;
}

.followed-wallet-add {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 72%, var(--surface-soft));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 9px color-mix(in srgb, var(--accent) 14%, transparent);
  color: #f5fff7;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.followed-wallet-add:hover {
  background: color-mix(in srgb, var(--accent) 92%, var(--surface-soft));
}

.followed-wallet-add:disabled,
.followed-wallet-drag:disabled,
.followed-wallet-remove:disabled,
.follow-switch:has(input:disabled) {
  cursor: wait;
  opacity: .55;
}

.followed-wallet-table {
  min-width: 0;
  overflow-x: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
}

.followed-wallet-table-body {
  min-width: 0;
}

.followed-wallet-table.is-saving-order .followed-wallet-row {
  pointer-events: none;
  opacity: .72;
}

.followed-wallet-table-head,
.followed-wallet-row {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) repeat(3, minmax(58px, 84px)) 36px;
  align-items: center;
  min-width: 0;
  column-gap: 4px;
}

.followed-wallet-table-head {
  padding: 9px 8px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.followed-wallet-table-head span:first-child {
  text-align: left;
}

.followed-wallet-row {
  position: relative;
  padding: 9px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
  transition: opacity 160ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.followed-wallet-row:last-child {
  border-bottom: 0;
}

.followed-wallet-identity {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.followed-wallet-drag {
  display: grid;
  width: 16px;
  height: 30px;
  flex: 0 0 16px;
  place-items: center;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  cursor: grab;
  touch-action: none;
}

.followed-wallet-drag svg {
  width: 16px;
  height: 22px;
}

.followed-wallet-drag:hover,
.followed-wallet-drag:focus-visible,
.followed-wallet-drag[aria-grabbed="true"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  outline: none;
}

.followed-wallet-row.is-dragging {
  z-index: 1200;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 74%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
  transition: none;
}

.followed-wallet-row-placeholder {
  box-sizing: border-box;
  border: 1px dashed color-mix(in srgb, var(--accent-strong) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

body.is-follow-wallet-dragging {
  cursor: grabbing;
  user-select: none;
}

.followed-wallet-name-wrap {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.followed-wallet-name-wrap strong,
.followed-wallet-name-wrap small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followed-wallet-name-wrap strong {
  color: var(--ink);
  font-size: 12px;
}

.followed-wallet-name-wrap small {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
}

.followed-wallet-copy {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.followed-wallet-copy svg {
  width: 11px;
  height: 11px;
}

.followed-wallet-copy.is-copied {
  color: var(--accent-strong);
}

.follow-switch {
  display: grid !important;
  width: 100%;
  place-items: center;
  cursor: pointer;
}

.follow-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.follow-switch-track {
  width: 36px;
  height: 22px;
  flex-basis: 36px;
}

.follow-switch-track::after {
  width: 14px;
  height: 14px;
}

.follow-switch input:checked + .follow-switch-track::after {
  transform: translateX(14px);
}

.followed-wallet-remove {
  display: grid;
  width: 30px;
  height: 30px;
  justify-self: start;
  place-items: center;
  border: 1px solid #9a4b58;
  border-radius: 7px;
  background: #512d34;
  color: #ff9ca8;
  box-shadow: inset 0 0 10px rgba(255, 96, 116, .08);
}

@media (max-width: 430px) {
  .followed-wallet-table-head,
  .followed-wallet-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 48px) 32px;
    column-gap: 3px;
  }

  .followed-wallet-table-head {
    padding-inline: 6px;
    font-size: 8px;
  }

  .followed-wallet-row {
    padding-inline: 6px;
  }

  .followed-wallet-remove {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 350px) {
  .followed-wallet-table-head,
  .followed-wallet-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 42px) 30px;
    column-gap: 2px;
  }

  .follow-switch-track {
    width: 32px;
    height: 20px;
    flex-basis: 32px;
  }

  .follow-switch-track::after {
    width: 12px;
    height: 12px;
  }

  .follow-switch input:checked + .follow-switch-track::after {
    transform: translateX(12px);
  }

  .followed-wallet-name-wrap small {
    font-size: 8px;
  }
}

.followed-wallet-remove svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}

.milestone-alerts-intro {
  margin: 2px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.milestone-category-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.milestone-category-summary div {
  display: grid;
  min-height: 64px;
  place-content: center;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  text-align: center;
}

.milestone-category-summary strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.milestone-category-summary span {
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}

.milestone-manage-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 56%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-soft));
  color: var(--accent-strong);
  font-weight: 800;
}

.milestone-manage-button svg {
  width: 19px;
  height: 19px;
}

.milestone-default-toggle {
  margin-bottom: 18px;
}

.milestone-rule-groups {
  display: grid;
  gap: 18px;
}

.milestone-rule-groups.is-readonly {
  opacity: .58;
}

.milestone-rule-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.milestone-rule-group legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.milestone-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.milestone-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.milestone-chip span {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.milestone-chip input:checked + span {
  border-color: color-mix(in srgb, var(--accent-strong) 68%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-soft));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.milestone-wallet-list {
  display: grid;
  gap: 7px;
}

.milestone-wallet-list button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.milestone-wallet-list button.is-active {
  border-color: color-mix(in srgb, var(--accent-strong) 65%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
}

.milestone-wallet-list button span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone-wallet-list button small {
  flex: 0 0 auto;
  color: var(--muted);
}

.milestone-rules-card {
  gap: 14px;
}

.milestone-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, .62fr);
  gap: 12px;
}

.milestone-create-form > label,
.milestone-form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.milestone-form-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.milestone-create-form select,
.milestone-target-control {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
}

.milestone-create-form select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 34px 10px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.milestone-time-trigger {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 34px 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.milestone-target-control {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.milestone-target-control[hidden] {
  display: none;
}

.milestone-target-control input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 5px 9px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.milestone-target-control span {
  flex: 0 0 auto;
  padding: 0 10px 0 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.milestone-time-control {
  display: block;
}

.milestone-time-control[hidden] {
  display: none;
}

.milestone-create-form select:focus,
.milestone-target-control:focus-within,
.milestone-time-trigger:focus {
  outline: 0;
  box-shadow: none;
}

.milestone-time-picker-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 340px);
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 42%, var(--line));
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .52);
}

.milestone-time-picker-heading {
  display: grid;
  gap: 4px;
}

.milestone-time-picker-heading small {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.milestone-time-picker-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.milestone-time-picker-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.milestone-time-picker-fields > span {
  padding-bottom: 12px;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.milestone-time-picker-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.milestone-time-picker-fields select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 9px 34px 9px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
}

.milestone-time-picker-fields select:focus {
  outline: 0;
  box-shadow: none;
}

.milestone-time-picker-error {
  margin: -8px 0 0;
  color: #ff9a88;
  font-size: 12px;
}

.milestone-time-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.milestone-time-picker-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 850;
}

.milestone-time-picker-actions button:first-child {
  border-color: color-mix(in srgb, #ff7d8d 58%, var(--line));
  background: linear-gradient(135deg, #762f3a, #54242d);
  color: #ffdce1;
}

.milestone-time-picker-actions button:last-child {
  border-color: color-mix(in srgb, var(--accent-strong) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-soft));
  color: var(--accent-strong);
}

.milestone-add-button {
  display: flex;
  min-height: 44px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 68%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-soft));
  color: var(--accent-strong);
  font-weight: 800;
}

.milestone-repeat-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background: var(--surface-soft);
}

.milestone-repeat-control[hidden] {
  display: none;
}

.milestone-repeat-control legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.milestone-repeat-control label {
  min-width: 0;
  cursor: pointer;
}

.milestone-repeat-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.milestone-repeat-control span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.milestone-repeat-control input:checked + span {
  border-color: color-mix(in srgb, var(--accent-strong) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 19%, var(--surface));
  color: var(--accent-strong);
}

.milestone-add-button svg {
  width: 18px;
  height: 18px;
}

.milestone-custom-list {
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.milestone-custom-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.milestone-custom-row > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.milestone-custom-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone-custom-row small {
  color: var(--muted);
  font-size: 10px;
}

.milestone-delete-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #a94a58;
  border-radius: 8px;
  background: #5e2832;
  color: #ff9aaa;
}

.milestone-delete-button svg {
  width: 16px;
  height: 16px;
}

body[data-theme="light"] .milestone-create-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23171a16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 420px) {
  .milestone-create-form {
    grid-template-columns: 1fr;
  }

  .milestone-add-button {
    grid-column: auto;
  }
}

.followed-wallet-remove:hover {
  border-color: #d86b76;
  background: #73323b;
  color: #fff;
}

.followed-wallet-status,
.followed-wallet-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.followed-wallet-status.is-error {
  color: #ff9a78;
}

.followed-wallet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.followed-wallet-footer > svg {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
  stroke-width: 1.9;
}

.followed-wallet-footer strong {
  color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
  .followed-wallet-row {
    transition: none;
  }
}

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

.backer-card-save-status {
  min-height: 16px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.backer-card-save-status[data-status="saving"] {
  color: var(--muted);
}

.backer-card-save-status[data-status="saved"] {
  color: var(--accent-strong);
}

.backer-card-save-status[data-status="error"] {
  color: #ff9a78;
}

.app-owner-editor {
  gap: 12px;
}

.app-owner-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.app-owner-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-owner-form input,
.app-owner-form textarea,
.app-owner-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}

.app-owner-form input:focus,
.app-owner-form textarea:focus,
.app-owner-form select:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 82%, var(--line));
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  outline-offset: 1px;
}

.app-owner-form select {
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 34px 11px 12px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}

body[data-theme="light"] .app-owner-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23171a16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.app-owner-form textarea {
  min-height: 104px;
  line-height: 1.45;
}

.app-admin-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-soft) 72%, transparent);
}

.app-admin-panel-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-admin-panel-heading span {
  width: max-content;
  padding: 3px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.app-admin-panel-heading p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.app-admin-status-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.admin-status-option,
.admin-chip {
  cursor: pointer;
}

.admin-status-option input,
.admin-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-status-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.admin-status-option strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admin-status-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-status-option input:checked + span,
.admin-chip input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--gold));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-soft));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.app-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.app-admin-grid fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.app-admin-grid legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.admin-chip span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-custom-field {
  margin-top: 2px;
}

.admin-custom-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-custom-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.admin-custom-add-row input {
  min-width: 0;
}

.admin-custom-add-row select {
  min-width: 0;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.admin-add-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

.admin-add-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-add-button:hover {
  border-color: color-mix(in srgb, var(--gold) 52%, var(--accent));
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
  color: var(--gold);
}

.admin-custom-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 64%, transparent);
}

.app-owner-actions {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-owner-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-owner-status[data-status="saved"] {
  color: var(--accent-strong);
}

.app-owner-status[data-status="error"] {
  color: #e98282;
}

.supporter-error {
  color: #e98282 !important;
}

.supporter-menu-link {
  width: 100%;
  cursor: pointer;
  color: var(--accent-strong);
  text-align: left;
}

.supporter-menu-link-gold {
  color: var(--gold);
}

.supporter-menu-link-gold:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
}

.statistics-card {
  display: grid;
  gap: 14px;
}

.ranking-row-button {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 0;
  padding: 12px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ranking-row-button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -2px; }
.ranking-row.is-supporter .ranking-row-button { background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.ranking-row.is-supporter .ranking-row-button:hover { background: color-mix(in srgb, var(--gold) 11%, var(--surface)); }
.ranking-row.is-you .ranking-row-button { box-shadow: inset 3px 0 0 var(--accent-strong); }
.ranking-row.is-focused .ranking-row-button { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.ranking-supporter-badge {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}
.ranking-supporter-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.ranking-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.ranking-action-message { margin: -4px 0 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.ranking-tools button, .ranking-wallet-actions button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); font: inherit; font-weight: 850; padding: 8px 12px; }
.ranking-full-address { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.ranking-wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.supporter-wallet-summary-actions { display: grid; gap: 8px; margin-top: 18px; }
.supporter-wallet-summary-actions .supporter-primary-button { width: 100%; min-height: 44px; }
.comparator-view { max-width: 760px; gap: 14px; }
.comparator-header { margin-bottom: -3px; }
.comparator-loading-card { margin: 0; }
.comparator-intro { display: grid; gap: 14px; }
.comparator-intro h2, .comparator-intro p { margin: 0; }
.comparator-intro h2 { margin-top: 3px; color: var(--ink); font-size: clamp(25px, 7vw, 36px); line-height: 1.02; }
.comparator-intro p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.comparator-controls { display: grid; gap: 6px; width: 100%; padding: 6px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 92%, transparent); }
.comparator-range-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.comparator-range-selector button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 900; }
.comparator-range-selector button.is-selected { background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, var(--line)), 0 2px 8px color-mix(in srgb, var(--ink) 9%, transparent); }
.comparator-asset-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.comparator-asset-selector button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 7px 5px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 900; white-space: nowrap; }
.comparator-asset-selector button.is-selected { background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, var(--line)), 0 2px 8px color-mix(in srgb, var(--ink) 9%, transparent); }
.comparator-asset-selector button:disabled { cursor: wait; opacity: .55; }
.comparator-asset-selector img { flex: 0 0 auto; width: 18px; height: 18px; object-fit: contain; }
.comparator-identities { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 10px; align-items: stretch; padding: 16px 12px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface-soft)); }
.comparator-identity { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 3px 6px; }
.comparator-identity-b { text-align: right; }
.comparator-identity-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.comparator-identity-topline .comparator-identity-label { font-size: 9px; letter-spacing: .05em; white-space: nowrap; }
.comparator-identity-label, .comparator-metric-label { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.comparator-identity strong { overflow: hidden; color: var(--ink); font-size: clamp(15px, 4.4vw, 20px); text-overflow: ellipsis; white-space: nowrap; }
.comparator-identity-rank { color: var(--accent-strong); font-size: 14px; font-weight: 900; }
.comparator-identity code { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.comparator-identity-b code { direction: rtl; }
.comparator-identity-empty strong { color: var(--muted); }
.comparator-identity-empty span:not(.comparator-identity-label) { color: var(--muted); font-size: 11px; line-height: 1.35; }
.comparator-swap { align-self: center; justify-self: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 50%; background: var(--surface); color: var(--accent-strong); font-size: 20px; font-weight: 900; line-height: 1; }
.comparator-swap:disabled { cursor: not-allowed; opacity: .35; }
.comparator-change-inline { flex: 0 0 auto; width: 32px; min-height: 32px; padding: 0; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--accent-strong); font: inherit; font-size: 14px; font-weight: 900; line-height: 1; }
.comparator-change-inline:active { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.comparator-change-inline:disabled { cursor: not-allowed; opacity: .42; }
.comparator-wallet-picker, .comparator-empty-metrics, .comparator-picker { display: grid; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comparator-wallet-picker strong, .comparator-empty-metrics strong, .comparator-picker-heading strong { color: var(--ink); font-size: 15px; }
.comparator-wallet-picker > span, .comparator-empty-metrics > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.comparator-wallet-picker .supporter-primary-button, .comparator-wallet-picker .supporter-secondary-button { width: 100%; min-height: 42px; }
.comparator-loading { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.comparator-error { margin: 0; color: #e17b65; font-size: 12px; font-weight: 800; text-align: center; }
.comparator-summary { display: grid; gap: 4px; padding: 13px 15px; border-left: 3px solid var(--accent-strong); border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.comparator-summary p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4; }
.comparator-performance-sections { display: grid; gap: 14px; }
.comparator-performance-section { display: grid; gap: 8px; }
.comparator-performance-heading { display: grid; gap: 3px; margin: 0 2px; }
.comparator-performance-section h3 { margin: 0; color: var(--ink); font-size: 15px; }
.comparator-performance-heading p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.35; }
.comparator-performance-nackl h3 { color: var(--accent-strong); }
.comparator-performance-nackl .comparator-metrics { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 7%, transparent); }
.comparator-performance-ranking { margin-top: 5px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.comparator-performance-ranking h3 { color: var(--accent-strong); letter-spacing: .04em; text-transform: uppercase; }
.comparator-performance-ranking .comparator-metrics { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 7%, transparent); }
.comparator-metrics { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comparator-metric-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--surface-soft) 75%, transparent); }
.comparator-metric-wallets span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.comparator-metric { display: grid; gap: 10px; padding: 14px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.comparator-metric:last-child { border-bottom: 0; }
.comparator-metric-label { text-align: center; }
.comparator-metric-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.comparator-metric-values strong { min-width: 0; padding: 7px 5px; border-radius: 9px; color: var(--ink); font-size: clamp(16px, 4.6vw, 22px); text-align: center; overflow-wrap: anywhere; }
.comparator-metric-values strong.is-better { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent-strong); }
.comparator-best-day-value { display: grid; gap: 2px; }
.comparator-best-day-value small { color: var(--muted); font-size: 10px; font-weight: 800; }
.comparator-best-day-value.is-better small { color: var(--accent-strong); }
.comparator-coverage { display: grid; gap: 4px; padding: 13px 15px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); color: var(--muted); font-size: 11px; line-height: 1.4; }
.comparator-coverage strong { color: var(--ink); font-size: 12px; }
.comparator-nackl-chart { display: grid; gap: 9px; padding: 15px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 8%, transparent); }
.comparator-chart-heading { display: grid; gap: 3px; }
.comparator-chart-heading strong { color: var(--ink); font-size: 15px; }
.comparator-chart-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.comparator-chart-title-row strong { min-width: 0; }
.comparator-chart-title-row small { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.comparator-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.comparator-chart-legend span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.comparator-chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: var(--accent-strong); }
.comparator-chart-legend-b i { height: 0; border-top: 2px dashed var(--gold); background: transparent; }
.comparator-chart-plot { position: relative; height: 220px; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px) 0 0 / 100% 33.333%, color-mix(in srgb, var(--surface) 76%, transparent); touch-action: none; }
.comparator-chart-inner { position: absolute; top: 20px; right: 10px; bottom: 30px; left: 10px; }
.comparator-chart-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.comparator-chart-plot polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.8; vector-effect: non-scaling-stroke; }
.comparator-chart-line-a { stroke: var(--accent-strong); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 42%, transparent)); }
.comparator-chart-line-b { stroke: var(--gold); stroke-dasharray: 7 5; }
.comparator-chart-zero { stroke: color-mix(in srgb, var(--muted) 65%, transparent); stroke-dasharray: 3 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.comparator-chart-touch-targets { position: absolute; inset: 0; }
.comparator-chart-touch-targets button { position: absolute; top: 0; width: max(18px, calc(100% / var(--comparator-chart-point-count, 8))); height: 100%; padding: 0; border: 0; background: transparent; transform: translateX(-50%); }
.comparator-chart-values, .comparator-chart-time-labels { position: absolute; left: 10px; right: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; pointer-events: none; }
.comparator-chart-values { top: 7px; }
.comparator-chart-time-labels { bottom: 7px; gap: 4px; }
.comparator-chart-time-labels span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparator-chart-time-labels span:nth-child(2) { text-align: center; }
.comparator-chart-time-labels span:last-child { text-align: right; }
.comparator-chart-crosshair { position: absolute; inset: 0 auto 0 0; width: 1px; background: color-mix(in srgb, var(--accent-strong) 60%, transparent); transform: translateX(-50%); pointer-events: none; }
.comparator-chart-tooltip { position: absolute; z-index: 2; min-width: 150px; max-width: calc(100% - 18px); padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent-strong) 52%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--surface-soft) 96%, #000 4%); box-shadow: 0 10px 24px rgba(0,0,0,.26); transform: translate(-50%, -100%); pointer-events: none; }
.comparator-chart-tooltip.is-below-point { transform: translate(-50%, 16px); }
.comparator-chart-tooltip.is-left-edge { transform: translate(0, -100%); }
.comparator-chart-tooltip.is-right-edge { transform: translate(-100%, -100%); }
.comparator-chart-tooltip.is-left-edge.is-below-point { transform: translate(0, 16px); }
.comparator-chart-tooltip.is-right-edge.is-below-point { transform: translate(-100%, 16px); }
.comparator-chart-tooltip strong, .comparator-chart-tooltip span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comparator-chart-tooltip strong { color: var(--ink); font-size: 11px; }
.comparator-chart-tooltip span { margin-top: 4px; font-size: 10px; font-weight: 800; }
.comparator-chart-tooltip-a { color: var(--accent-strong); }
.comparator-chart-tooltip-b { color: var(--gold); }
.comparator-nackl-chart-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.comparator-picker { gap: 12px; }
.comparator-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comparator-picker-heading > div { display: grid; gap: 3px; }
.comparator-picker-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 22px; line-height: 1; }
.comparator-search-control { display: block; }
.comparator-search-control input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface-soft); color: var(--ink); font: inherit; }
.comparator-search-control input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.comparator-search-control input::placeholder { color: var(--muted); }
.comparator-search-results { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.comparator-search-result { border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.comparator-search-result:last-child { border-bottom: 0; }
.comparator-search-result button { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 56px; padding: 8px 2px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; }
.comparator-search-result button.is-stale { cursor: wait; opacity: .48; }
.comparator-search-rank { color: var(--muted); font-size: 12px; font-weight: 900; }
.comparator-search-name { display: grid; min-width: 0; gap: 3px; }
.comparator-search-name strong, .comparator-search-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparator-search-name strong { font-size: 13px; }
.comparator-search-name small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.comparator-search-balance { color: var(--accent-strong); font-size: 12px; white-space: nowrap; }
.comparator-picker-message { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.comparator-picker-searching { margin: 0 0 2px; color: var(--accent-strong); font-size: 10px; font-weight: 800; text-align: right; }

@media (min-width: 560px) {
  .comparator-controls { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); align-items: stretch; }
}

@media (max-width: 559px) {
  .comparator-metric { gap: 6px; padding: 9px 9px; }
  .comparator-metric-values { gap: 6px; }
  .comparator-metric-values strong { padding: 5px 4px; font-size: clamp(14px, 4.6vw, 20px); }
  .comparator-metric-wallets { gap: 6px; padding: 7px 9px; }
  .comparator-chart-title-row { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (max-width: 380px) {
  .comparator-identities { padding-right: 7px; padding-left: 7px; }
  .comparator-identity { padding-right: 3px; padding-left: 3px; }
  .comparator-identity strong { font-size: 14px; }
  .comparator-metric-values { gap: 5px; }
  .comparator-change-inline { width: 30px; min-height: 30px; }
  .comparator-asset-selector button { gap: 4px; font-size: 10px; }
  .comparator-asset-selector img { width: 16px; height: 16px; }
}

.service-status-card {
  gap: 12px;
}

.service-status-overall,
.service-status-row-head,
.service-status-name {
  display: flex;
  align-items: center;
}

.service-status-overall,
.service-status-row-head {
  gap: 10px;
}

.service-status-overall { justify-content: flex-start; }
.service-status-row-head { justify-content: space-between; }

.service-status-overall strong,
.service-status-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.service-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.service-status-operational .service-status-dot { background: var(--accent-strong); }
.service-status-degraded .service-status-dot { background: var(--gold); }
.service-status-unavailable .service-status-dot { background: color-mix(in srgb, #d95d5d 78%, var(--text)); }
.service-status-unknown .service-status-dot { background: var(--muted); }

.service-status-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.service-status-row {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}

.service-status-row:last-child { border-bottom: 0; }

.service-status-row p,
.service-status-row small {
  margin: 0;
  overflow-wrap: anywhere;
}

.service-status-row p { color: var(--ink); font-size: 13px; font-weight: 750; }
.service-status-row small { color: var(--muted); font-size: 12px; font-weight: 700; }

.service-status-badge {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.statistics-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.statistics-kpi div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.statistics-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.statistics-kpi strong {
  color: var(--accent-strong);
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.epoch-progress {
  display: grid;
  gap: 13px;
}

.epoch-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.epoch-progress-head span,
.epoch-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.epoch-progress-head strong {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 950;
}

.epoch-progress-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.epoch-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--gold));
  transition: width .35s ease;
}

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

.epoch-meta div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.epoch-meta strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.epoch-data-provider {
  margin: 0 !important;
  color: var(--muted);
}

.network-tps-card {
  gap: 16px;
}

.network-tps-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.network-tps-title h2 {
  margin: 0;
}

.network-tps-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-tps-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.network-tps-metrics div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  text-align: center;
}

.network-tps-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.network-tps-metrics strong {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-tps-chart {
  position: relative;
  height: 170px;
  overflow: hidden;
  touch-action: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 36px, color-mix(in srgb, var(--line) 38%, transparent) 37px),
    color-mix(in srgb, var(--surface) 68%, transparent);
}

.network-tps-chart svg {
  display: block;
  width: 100%;
  height: 145px;
  overflow: visible;
}

.network-tps-area {
  fill: color-mix(in srgb, var(--accent-strong) 14%, transparent);
}

.network-tps-line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.network-tps-chart .wallet-chart-crosshair {
  top: 7px;
  bottom: 25px;
}

.network-tps-chart .wallet-chart-dot {
  z-index: 2;
}

.network-tps-chart .wallet-chart-tooltip {
  z-index: 3;
}

.network-tps-chart-start,
.network-tps-chart-end {
  position: absolute;
  bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.network-tps-chart-start {
  left: 10px;
}

.network-tps-chart-end {
  right: 10px;
}

.network-tps-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.network-tps-footer > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.donor-leaderboard {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.donor-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.donor-row.is-podium {
  border-color: color-mix(in srgb, var(--gold) 48%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, transparent), transparent 52%),
    color-mix(in srgb, var(--surface) 80%, transparent);
}

.donor-rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 950;
}

.donor-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.donor-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-total {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.statistics-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.statistics-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
  width: 44%;
}

.statistics-table th:not(:first-child),
.statistics-table td:not(:first-child) {
  width: 18.66%;
}

.statistics-table th,
.statistics-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
  text-align: left;
}

.statistics-table tbody tr:last-child td {
  border-bottom: 0;
}

.statistics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.statistics-table td {
  color: var(--ink);
  font-weight: 800;
}

.statistics-table code {
  display: block;
  overflow: hidden;
  color: var(--accent-strong);
  font-family: inherit;
  font-weight: 900;
  text-overflow: ellipsis;
}

.statistics-updated,
.statistics-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .statistics-table {
    font-size: 12px;
  }

  .statistics-table th,
  .statistics-table td {
    padding: 10px 6px;
  }

  .statistics-table th {
    font-size: 10px;
    letter-spacing: .02em;
  }

  .donor-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .donor-total {
    grid-column: 2;
    justify-self: start;
  }

  .epoch-meta {
    grid-template-columns: 1fr;
  }
}

.guides-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.guides-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.guides-back span {
  font-size: 26px;
  line-height: 1;
}

.guides-back strong {
  font-size: 21px;
  line-height: 1.2;
}

.guides-back.internal-back {
  height: auto;
  min-height: 36px;
  gap: 12px;
}

.guides-list {
  display: grid;
  gap: 13px;
}

.guide-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  cursor: pointer;
}

.guide-row:focus-visible,
.guides-back:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.guide-image {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-image.is-empty::after {
  content: "IMAGE";
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.guide-info {
  min-width: 0;
  align-self: center;
}

.guide-info h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 800;
}

.guide-info p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-info span {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.submit-app-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 28px 0 2px;
}

.submit-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.submit-app-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.submit-app-icon {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 380px) {
  .guide-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    min-height: 61px;
  }

  .guide-info h3 {
    font-size: 17px;
  }

  .guide-info p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .detail-header h2 {
    font-size: 21px;
  }

  .detail-metrics {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .detail-stats-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 2px 5px;
    white-space: normal;
  }

  .detail-stat-rating {
    grid-row: 1 / 3;
  }

  .detail-stat-votes,
  .detail-stat-visits {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-stat-separator {
    display: none !important;
  }

  .detail-icon {
    width: 58px;
    height: 58px;
  }

  .detail-action-buttons {
    grid-auto-columns: 42px;
    gap: 6px;
  }

  .detail-action-button {
    width: 42px;
    height: 42px;
  }

  .app-admin-status-group,
  .app-admin-grid,
  .app-owner-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .shell {
    padding-inline: 24px;
  }

  .app-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px 18px;
  }

  .mining-group-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-row {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .app-detail {
    max-width: 560px;
    margin: 0 auto;
  }

  .guides-view {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 559px) {
  .achievements-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .achievements-tier-counts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .achievements-groups {
    grid-template-columns: 1fr;
  }

  .achievement-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .achievement-group-toggle {
    grid-template-columns: 54px minmax(0, 1.25fr) minmax(108px, .9fr);
    gap: 9px;
  }

  .achievement-group-current {
    max-width: 145px;
  }

  .achievement-trophy {
    width: 54px;
    height: 54px;
    background-size: 298px 168px;
  }

  .trophy-tier-0 { background-position: -19px -40px; }
  .trophy-tier-1 { background-position: -79px -40px; }
  .trophy-tier-2 { background-position: -147px -40px; }
  .trophy-tier-3 { background-position: -214px -40px; }
  .trophy-tier-4 { background-position: -33px -101px; }
  .trophy-tier-5 { background-position: -105px -101px; }
  .trophy-tier-6 { background-position: -175px -101px; }
}

.achievements-rarest-trophy {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  margin-right: 0 !important;
  background-size: 160px 90px !important;
  transform: none !important;
}
