:root {
  --blue: #1E6BFF;
  --blue-2: #3B8BFF;
  --blue-deep: #0B3DB8;
  --blue-soft: #DCECFF;
  --yellow: #FFD23F;
  --yellow-hot: #FFE566;
  --ink: #14213D;
  --ink-soft: #3A4A6B;
  --muted: #5C6B86;
  --green: #1FBF75;
  --green-bg: #D8F8E8;
  --red: #F0435D;
  --red-bg: #FFE0E6;
  --panel: #FFFFFF;
  --panel-2: #F7FAFF;
  --border: #D5E4FF;
  --shadow: 0 10px 28px rgba(11, 61, 184, 0.18);
  --shadow-sm: 0 4px 14px rgba(11, 61, 184, 0.12);
  --radius: 18px;
  --display: "Lilita One", "Comic Sans MS", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --holo: linear-gradient(120deg, #ff6bcb, #ffd23f, #7CFFB2, #5B8CFF, #c77dff);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(165deg, #3B8BFF 0%, #1E6BFF 42%, #1554D6 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.bg-fx {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(255,255,255,.06) 18px 19px
    ),
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.35), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(255,210,63,.28), transparent 16%),
    radial-gradient(circle at 88% 70%, rgba(124,255,178,.18), transparent 22%);
}
.bg-fx::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #fff 1.2px, transparent 1.3px),
    radial-gradient(circle, #FFE566 1.4px, transparent 1.5px),
    radial-gradient(circle, #fff 1px, transparent 1.1px);
  background-size: 140px 140px, 180px 180px, 110px 110px;
  background-position: 20px 30px, 80px 10px, 40px 90px;
  opacity: .55;
  mask-image: linear-gradient(#000, transparent 92%);
}

a { color: var(--blue-deep); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar, .main, .footer, .detail { position: relative; z-index: 1; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid rgba(255,210,63,.85);
  box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-img {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #FFD23F;
  box-shadow: 0 0 0 3px #E53935, 0 6px 14px rgba(0,0,0,.18);
  background: #fff; object-fit: cover;
}
.brand-text h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: var(--yellow);
  text-shadow:
    -2px -2px 0 var(--ink),
     2px -2px 0 var(--ink),
    -2px  2px 0 var(--ink),
     2px  2px 0 var(--ink),
     0 3px 0 #0B3DB8;
  line-height: 1;
}
.tagline {
  margin: 4px 0 0;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink-soft);
  font-style: italic;
}

.search-wrap { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
#search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--ink);
  font: inherit; font-weight: 700; font-size: .95rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .15s, box-shadow .15s;
}
#search::placeholder { color: #8FA0BD; font-weight: 600; }
#search:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,210,63,.35);
}

.tabs { display: flex; gap: 8px; }
.tab {
  appearance: none; border: 2px solid transparent; background: #EEF4FF;
  color: var(--ink-soft); font: inherit; font-size: .88rem; font-weight: 800;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: .15s ease;
}
.tab:hover { background: #fff; border-color: var(--border); }
.tab.active {
  color: var(--ink); background: var(--yellow);
  border-color: var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.badge {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  align-items: center; justify-content: center;
  border-radius: 999px; font-size: .7rem; font-family: var(--mono); font-weight: 800;
  background: rgba(20,33,61,.12); color: inherit;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.currency-switch {
  display: inline-flex;
  background: #EEF4FF;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.currency-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: .15s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.currency-btn:hover { color: var(--ink); background: #fff; }
.currency-btn.active {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.currency-btn:focus-visible {
  outline: 3px solid rgba(255,210,63,.55);
  outline-offset: 2px;
}
.price-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}
.converted-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #EEF4FF;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  vertical-align: middle;
}

.main { padding: 18px 18px 40px; max-width: 1200px; margin: 0 auto; }

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--yellow);
  text-shadow:
    -1.5px -1.5px 0 var(--ink),
     1.5px -1.5px 0 var(--ink),
    -1.5px  1.5px 0 var(--ink),
     1.5px  1.5px 0 var(--ink);
}

.hero {
  margin-bottom: 16px;
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 22px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.hero-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-sub { margin: 0; color: rgba(255,255,255,.92); font-weight: 700; font-size: .85rem; }
.hero-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { height: 8px; }
.hero-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.45); border-radius: 999px; }

.hero-card {
  flex: 0 0 132px; scroll-snap-align: start;
  background: #fff; border-radius: 16px; padding: 10px;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, #ff6bcb, #ffd23f, #7CFFB2, #5B8CFF, #c77dff);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow-sm);
  cursor: pointer; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.hero-card:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow); }
.hero-card img {
  width: 100%; aspect-ratio: 63/88; object-fit: cover; border-radius: 10px;
  background: #EEF4FF;
}
.hero-card .name {
  margin-top: 8px; font-weight: 800; font-size: .78rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card .chg-wrap { margin-top: 8px; display: flex; justify-content: center; }

.panel {
  background: var(--panel);
  border: 2px solid rgba(255,255,255,.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
  padding: 10px 12px;
}
.toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-toggle {
  display: inline-flex; background: #EEF4FF; border: 2px solid var(--border);
  border-radius: 12px; padding: 3px; gap: 2px;
}
.toggle {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .82rem; font-weight: 800; padding: 8px 12px;
  border-radius: 9px; cursor: pointer;
}
.toggle:hover { color: var(--ink); }
.toggle.active { background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }

.min-price {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 800; color: var(--ink-soft);
}
.min-price select {
  max-width: 160px;

  appearance: none;
  border: 2px solid var(--border); background: #fff;
  border-radius: 10px; padding: 7px 28px 7px 10px;
  font: inherit; font-weight: 800; color: var(--ink); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.status { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }

.content { min-height: 280px; }

.table-wrap {
  overflow: auto; border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.7);
}
table.movers { width: 100%; border-collapse: collapse; min-width: 720px; }
.movers th, .movers td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid #E7EEFB; vertical-align: middle;
}
.movers th {
  position: sticky; top: 0; z-index: 1;
  background: #F3F7FF; color: var(--muted); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 800;
}
.movers tbody tr { cursor: pointer; transition: background .12s; }
.movers tbody tr:hover { background: #FFF8DC; }
.movers tbody tr:last-child td { border-bottom: 0; }

.card-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb {
  width: 44px; height: 60px; object-fit: cover; border-radius: 8px;
  background: #EEF4FF; border: 2px solid #E1EBFF; flex-shrink: 0;
}
.card-name { font-weight: 800; font-size: .95rem; }
.card-meta { color: var(--muted); font-size: .76rem; margin-top: 2px; font-weight: 700; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price { font-weight: 800; }
.subprice { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; font-weight: 700; }

.chg {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: .8rem; font-weight: 800;
  padding: 5px 9px; border-radius: 999px; border: 1.5px solid transparent;
}
.chg.up { color: #0E8A52; background: var(--green-bg); border-color: #9EE6C1; }
.chg.down { color: #C21D3A; background: var(--red-bg); border-color: #FFB3C0; }
.chg.flat { color: var(--muted); background: #EEF2F8; border-color: #D9E1EE; }

.star-btn {
  appearance: none; border: 0; background: transparent; color: #B7C3D9;
  cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px;
  border-radius: 8px; transition: .12s;
}
.star-btn:hover { color: #E6A800; background: #FFF3C4; }
.star-btn.on { color: #E6A800; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
.card-tile {
  position: relative;
  border-radius: 16px; padding: 11px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #ff6bcb, #ffd23f, #7CFFB2, #5B8CFF, #c77dff) border-box;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 0 3px rgba(255,210,63,.35);
}
.card-tile img {
  width: 100%; aspect-ratio: 63/88; object-fit: cover;
  border-radius: 10px; background: #EEF4FF;
}
.tile-star {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm);
}
.tile-name { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.tile-set { color: var(--muted); font-size: .72rem; font-weight: 700; }
.tile-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }

.empty, .error {
  border: 2px dashed rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: 48px 20px; text-align: center;
  color: #fff; background: rgba(255,255,255,.12);
  font-weight: 700;
}
.error { background: rgba(240,67,93,.18); border-color: rgba(255,180,190,.7); }
.empty h3, .error h3 {
  margin: 0 0 8px; font-family: var(--display); font-size: 1.3rem;
  color: var(--yellow);
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}
.empty p, .error p { margin: 0; font-size: .95rem; }

.skeleton-table { display: grid; gap: 10px; }
.skel-row {
  height: 68px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.7), rgba(255,255,255,.35));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border: 2px solid rgba(255,255,255,.4);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.detail.open { pointer-events: auto; }
.detail-backdrop {
  position: absolute; inset: 0; background: rgba(11,61,184,.45);
  opacity: 0; transition: opacity .2s;
}
.detail.open .detail-backdrop { opacity: 1; }
.detail-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(440px, 100%);
  background: #fff;
  border-left: 3px solid var(--yellow);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  overflow: auto; padding: 20px 20px 32px;
}
.detail.open .detail-panel { transform: translateX(0); }
.detail-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 12px;
  border: 2px solid var(--border); background: #F7FAFF;
  color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1; font-weight: 800;
}
.detail-close:hover { border-color: var(--yellow); background: var(--yellow); }

.detail-hero {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin-top: 28px;
}
.detail-hero img {
  width: 140px; border-radius: 14px; border: 2px solid #E1EBFF;
  background: #EEF4FF; box-shadow: var(--shadow-sm);
}
.detail-hero h2 {
  margin: 0 0 6px; font-family: var(--display); font-size: 1.45rem;
  color: var(--yellow); letter-spacing: .01em; line-height: 1.1;
  text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink);
}
.detail-hero .meta { color: var(--muted); font-size: .85rem; margin-bottom: 12px; font-weight: 700; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  appearance: none; border: 2px solid var(--ink); background: #fff;
  color: var(--ink); font: inherit; font-size: .85rem; font-weight: 800;
  padding: 9px 12px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  box-shadow: 0 3px 0 var(--ink); transition: .12s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); text-decoration: none; }
.btn.primary { background: var(--yellow); }

.stats { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: #F7FAFF; border: 2px solid var(--border);
  border-radius: 14px; padding: 12px;
}
.stat .label { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.stat .value { font-family: var(--mono); font-size: 1.05rem; font-weight: 800; margin-top: 4px; }
.stat .approx { color: var(--muted); font-size: .72rem; margin-top: 2px; font-family: var(--mono); font-weight: 700; }

.chart-box {
  margin-top: 22px; background: #F7FAFF; border: 2px solid var(--border);
  border-radius: 16px; padding: 14px;
}
.chart-box h3 { margin: 0 0 10px; font-size: .85rem; color: var(--muted); font-weight: 800; }
.chart-labels {
  display: flex; justify-content: space-between; margin-top: 6px;
  color: var(--muted); font-size: .72rem; font-family: var(--mono); font-weight: 700;
}

.footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 18px 28px; color: rgba(255,255,255,.88); font-size: .78rem; font-weight: 700;
  max-width: 1200px; margin: 0 auto;
}
.footer a { color: var(--yellow); }

/* Stacked mobile list (JS swaps table → these below 640px) */
.mobile-list {
  display: grid;
  gap: 10px;
}
.mrow {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255,255,255,.85);
  cursor: pointer;
}
.mrow:hover { background: #FFF8DC; }
.mrow-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mrow-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mrow-text { min-width: 0; flex: 1; }
.mrow .card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow-price { text-align: right; flex-shrink: 0; }
.mrow-chgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mrow .star-btn { margin-top: 14px; }
.mrow .thumb { width: 48px; height: 66px; }

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "right";
    gap: 10px;
  }
  .brand { grid-area: brand; width: 100%; min-width: 0; }
  .brand-text { min-width: 0; flex: 1; }
  .brand-text h1 {
    font-size: 1.45rem;
    white-space: nowrap;
    overflow: visible;
  }
  .topbar-right {
    grid-area: right;
    width: 100%;
    justify-content: space-between;
  }
  .tabs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .tab { justify-content: center; width: 100%; }
  .search-wrap { grid-area: search; max-width: none; justify-self: stretch; }
  .tagline { display: none; }
  .logo-img { width: 44px; height: 44px; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .main { padding: 12px 10px 28px; overflow-x: hidden; }
  .topbar { padding: 10px; }
  .toolbar { padding: 10px; }
  .hero { padding: 12px 10px 14px; }
  .hero-card { flex-basis: 118px; }
  .table-wrap { display: none; } /* safety if old markup */
  .footer { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 520px) {
  .detail-hero { grid-template-columns: 110px 1fr; }
  .detail-hero img { width: 110px; }
  .stats { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 1.35rem; }
}

#set-filter { max-width: 200px; }
.history-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  #set-filter { max-width: 140px; }
}


/* Alerts */
.badge.alert-badge {
  background: #F0435D;
  color: #fff;
  margin-left: 2px;
}
.badge[hidden] { display: none !important; }
.alerts-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(420px, calc(100vw - 24px));
  max-height: min(50vh, 420px);
}
.alerts-panel-inner {
  padding: 14px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  max-height: inherit;
  overflow: auto;
}
.alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.alerts-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.alerts-close { position: static; width: 32px; height: 32px; }
.alerts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts-list li {
  background: #F7FAFF;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.alerts-list .alert-title { font-weight: 800; }
.alerts-list .alert-meta { color: var(--muted); font-size: .8rem; font-weight: 700; }
.alerts-list .alert-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.btn.tiny { padding: 5px 8px; font-size: .75rem; box-shadow: 0 2px 0 var(--ink); }

.alert-box {
  margin-top: 16px;
  background: #FFF8DC;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  padding: 12px;
}
.alert-box h3 { margin: 0 0 8px; font-size: .9rem; font-weight: 800; color: var(--ink); }
.alert-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.alert-form select, .alert-form input {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  min-width: 0;
}
.alert-form input { width: 88px; font-family: var(--mono); }
.alert-active {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.alert-active-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
}

.sealed-soon {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.7);
}
.sealed-soon h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--yellow);
  text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink);
}
.sealed-soon p { margin: 0 auto; max-width: 420px; color: var(--ink-soft); font-weight: 700; }

@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr 1fr 1fr; }
  .tab { font-size: .78rem; padding: 8px 6px; }
  .alerts-panel { right: 10px; left: 10px; width: auto; bottom: 10px; }
  .alert-form { grid-template-columns: 1fr; }
}
