/* =========================================================
   Ridge Tank — green + burgundy, glass over a moving mesh
   ========================================================= */

:root {
  --tint: 255 255 255;   /* surface overlays: white on dark, green-black on light */
  --panel: 5 11 8;       /* dark glass base */
  --bg: #030705;
  --ink: #f2efe8;
  --ink-2: rgba(242, 239, 232, 0.76);
  --ink-3: rgba(242, 239, 232, 0.55);
  --ink-4: rgba(242, 239, 232, 0.36);
  --line: rgb(var(--tint) / 0.08);
  --line-2: rgb(var(--tint) / 0.14);
  --glass: rgb(var(--panel) / 0.56);
  --glass-strong: rgb(var(--panel) / 0.86);

  --g-200: #c3f0d6;
  --g-300: #86ddb0;
  --g-400: #3fbf7f;
  --g-500: #1e8f5b;
  --g-600: #157048;
  --g-700: #0c4a30;
  --g-800: #072b1c;

  --b-200: #f8c9d6;
  --b-300: #f09ab2;
  --b-400: #d2476e;
  --b-500: #a51d45;
  --b-600: #7e1434;
  --b-700: #4a0a1f;

  --radius: 0;
  --radius-sm: 0;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.25, 0.4, 1);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--g-300); text-decoration: none; }
a:hover { color: var(--g-200); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(63, 191, 127, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; border-radius: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.accent { color: var(--g-300); }
.center { text-align: center; justify-self: center; }
.center-text { text-align: center; align-items: center; }
.grow { flex: 1 1 auto; }
.min0 { min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; }
.gap-sm { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.ico { display: inline-flex; flex: none; line-height: 0; }
.ico svg { display: block; }

/* ---------- background layers ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#bg.ready { opacity: 1; }
.no-webgl body {
  background:
    radial-gradient(60% 50% at 20% 75%, rgba(30, 143, 91, 0.55), transparent 70%),
    radial-gradient(50% 45% at 85% 25%, rgba(142, 23, 57, 0.55), transparent 70%),
    radial-gradient(45% 40% at 75% 90%, rgba(12, 74, 48, 0.7), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
#intro .intro-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, #06100b 0%, #020403 70%);
  transition: opacity 1.5s var(--ease);
}
#intro.fading .intro-bg { opacity: 0; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .intro-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + min(9vw, 104px));
  text-align: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
#intro .intro-caption.show { opacity: 1; transform: none; }
#intro .intro-skip {
  position: absolute;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  height: 34px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid var(--line-2);
  background: rgb(var(--tint) / 0.04);
  color: var(--ink-3);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  transition: color 0.2s, background 0.2s;
}
#intro .intro-skip:hover { color: var(--ink); background: rgb(var(--tint) / 0.08); }
#intro.gone { opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
html.intro-running #topbar,
html.intro-running #bottombar { opacity: 0; }
html.intro-running #app { opacity: 0; }
#app, #topbar, #bottombar { transition: opacity 0.9s var(--ease); }
#topbar { transition: opacity 0.9s var(--ease), transform 0.35s var(--ease); }
#topbar.nav-hidden { transform: translate(-50%, calc(-100% - 20px)); }
html.intro-running .reveal { animation-play-state: paused !important; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 14px;
  border-radius: 0;
  background: rgb(var(--panel) / 0.52);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgb(var(--tint) / 0.06);
}
.top-left { display: flex; align-items: center; min-width: 0; }
.top-mid { display: flex; justify-content: center; }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--g-500) 0%, var(--g-700) 55%, var(--b-600) 100%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.25), 0 4px 16px -4px rgba(30, 143, 91, 0.6);
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 0; }
.brand-name { font: 700 18px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name.small { font-size: 13px; }

.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 0;
  background: rgb(var(--tint) / 0.04);
  border: 1px solid var(--line);
}
.chip-avatar { display: inline-flex; border-radius: 0; }
.menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s;
}
.menu-btn:hover { background: rgb(var(--tint) / 0.08); }
.menu-btn svg { pointer-events: none; }
.menu-btn svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.5, 0.85, 0.25, 1.1);
}
.menu-btn svg path:nth-child(1) { transform: translateY(-7px); }
.menu-btn svg path:nth-child(3) { transform: translateY(7px); }
.menu-btn[aria-expanded="true"] svg path:nth-child(1) { transform: translateY(0) rotate(315deg); }
.menu-btn[aria-expanded="true"] svg path:nth-child(2) { transform: rotate(45deg); transition-timing-function: cubic-bezier(0.5, 0.85, 0.25, 1.8); }
.menu-btn[aria-expanded="true"] svg path:nth-child(3) { transform: translateY(0) rotate(135deg); }

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  padding: 8px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s var(--ease), transform 0.28s var(--ease);
}
.menu-panel.open { opacity: 1; transform: none; }
/* The panel sits inside the blurred top bar, where a second blur can't reach the page behind it,
   so it gets a nearly solid background instead of glass. */
#topbar .menu-panel { background: linear-gradient(180deg, rgb(var(--tint) / 0.05), rgb(var(--tint) / 0.015)), rgb(var(--panel) / 0.97); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9); }
.menu-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-name { font-weight: 600; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 0;
  color: var(--ink-2);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.menu-item:hover { background: rgb(var(--tint) / 0.06); color: var(--ink); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu-panel .btn-block { margin-top: 6px; }

/* ---------- segmented switch (sliding + stretching indicator) ---------- */
.seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 0;
  background: rgb(var(--tint) / 0.045);
  border: 1px solid var(--line);
  isolation: isolate;
  max-width: 100%;
}
.seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  right: 100%;
  z-index: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(63, 191, 127, 0.34), rgba(30, 143, 91, 0.2));
  border: 1px solid rgba(134, 221, 176, 0.3);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.16), 0 6px 22px -6px rgba(30, 143, 91, 0.65);
  opacity: 0;
  transition:
    left 0.44s var(--spring) var(--dl, 0s),
    right 0.44s var(--spring) var(--dr, 0s),
    opacity 0.2s;
}
.seg-ind.no-anim { transition: none; }
.seg-hover {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  z-index: 0;
  background: rgba(63, 191, 127, 0.16);
  border: 1px solid rgba(134, 221, 176, 0.45);
  box-shadow: 0 0 18px -4px rgba(63, 191, 127, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: left 0.35s var(--spring), width 0.35s var(--spring), opacity 0.2s;
}
.seg-hover.no-anim { transition: opacity 0.2s; }
.seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 0;
  font: 500 13.5px/1 var(--font-ui);
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.25s;
}
.seg-btn:hover { color: var(--ink-2); }
.seg-btn[aria-selected="true"] { color: var(--ink); }
.seg-btn[aria-selected="true"] .ico { color: var(--g-200); }
.seg-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 0;
  background: var(--b-500);
  color: #fff;
  font: 600 10.5px/18px var(--font-mono);
  text-align: center;
  box-shadow: 0 0 0 2px rgb(var(--panel) / 0.9);
}
.seg-fill { display: flex; width: 100%; }
.seg-fill .seg-btn { flex: 1 1 0; padding: 0 8px; }
.seg-sm .seg-btn { height: 28px; padding: 0 11px; font-size: 12.5px; }
.seg-vertical { display: flex; width: 100%; border-radius: 0; }
.seg-vertical .seg-ind { border-radius: 0; }
.seg-vertical .seg-btn { flex: 1 1 0; flex-direction: column; gap: 4px; height: 54px; padding: 0 4px; border-radius: 0; font-size: 10.5px; letter-spacing: 0.01em; }
.seg-vertical .seg-badge { position: absolute; top: 5px; left: calc(50% + 6px); }

/* ---------- bottom bar (phones) ---------- */
#bottombar {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: none;
  padding: 0;
  border-radius: 0;
  background: rgb(var(--panel) / 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.8);
}
#bottombar .seg { background: transparent; }

/* ---------- layout ---------- */
#app {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 64px;
  min-height: 100dvh;
}
.view { animation: viewIn 0.5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 22px; }
.page-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 750; letter-spacing: -0.035em; font-stretch: 88%; }
.page-sub { color: var(--ink-3); margin-top: 6px; }
.head-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.h2 { font-size: 24px; letter-spacing: -0.025em; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- surfaces ---------- */
.glass, .card {
  background: linear-gradient(180deg, rgb(var(--tint) / 0.055), rgb(var(--tint) / 0.015)), var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.06), 0 24px 60px -30px rgba(0, 0, 0, 0.75);
}
.card { position: relative; border-radius: var(--radius); padding: 22px; min-width: 0; }
.glass { border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-label { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lift { transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.lift:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 0;
  font: 600 14px/1 var(--font-ui);
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--ink);
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, filter 0.2s, color 0.2s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #22a066 0%, #157048 100%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 10px 26px -10px rgba(30, 143, 91, 0.85);
}
.btn-primary:hover:not(:disabled) { color: #fff; filter: brightness(1.09); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 32px -10px rgba(30, 143, 91, 0.95); }
.btn-ghost { background: rgb(var(--tint) / 0.04); border: 1px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: rgb(var(--tint) / 0.09); color: var(--ink); }
.btn-google {
  gap: 12px;
  color: var(--ink);
  background: rgb(var(--tint) / 0.07);
  border: 1px solid rgb(var(--tint) / 0.2);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.08);
}
.btn-google:hover:not(:disabled) { background: rgb(var(--tint) / 0.12); border-color: rgb(var(--tint) / 0.3); color: var(--ink); }
.g-logo { width: 26px; height: 26px; flex: none; border-radius: 0; display: grid; place-items: center; background: #fff; }
.g-logo svg { width: 16px; height: 16px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #b8264f 0%, #7e1434 100%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.22), 0 10px 26px -12px rgba(165, 29, 69, 0.9);
}
.btn-danger:hover:not(:disabled) { color: #fff; filter: brightness(1.1); }
.btn:disabled { opacity: 0.5; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 2px solid rgb(var(--tint) / 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--ink-2);
  background: rgb(var(--tint) / 0.04);
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgb(var(--tint) / 0.1); color: var(--ink); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.is-busy svg { animation: spin 0.8s linear infinite; }
.link-btn { color: var(--g-300); font-weight: 500; font-size: 13.5px; }
.link-btn:hover { color: var(--g-200); text-decoration: underline; text-underline-offset: 3px; }
.link-sm { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; }

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--ink-4); }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: rgb(var(--tint) / 0.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: rgb(var(--tint) / 0.2); }
.input:focus { border-color: rgba(63, 191, 127, 0.7); box-shadow: 0 0 0 4px rgba(63, 191, 127, 0.14); background: rgb(var(--tint) / 0.06); }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f2efe8' stroke-opacity='.6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option, .select optgroup { background: #0b1510; color: var(--ink); }
input[type="date"].input { color-scheme: dark; }
input[type="number"].input { max-width: 140px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 0; display: grid; place-items: center; color: var(--ink-3); }
.input-action:hover { color: var(--ink); background: rgb(var(--tint) / 0.06); }
.input-icon { position: relative; display: flex; align-items: center; min-width: 0; }
.input-icon > .ico { position: absolute; left: 13px; color: var(--ink-4); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.head-tools .input-icon { width: 240px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 0;
  border: 1px solid var(--line-2);
  background: rgb(var(--tint) / 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.check:checked { background: var(--g-500); border-color: var(--g-400); }
.check:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.form-error {
  padding: 10px 14px;
  border-radius: 0;
  font-size: 13.5px;
  color: var(--b-200);
  background: rgba(165, 29, 69, 0.18);
  border: 1px solid rgba(210, 71, 110, 0.35);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.three { grid-template-columns: 180px 1fr 1fr; }
.form-in { animation: formIn 0.4s var(--ease) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- pills, tags, avatars ---------- */
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.22), 0 0 0 1px rgb(var(--tint) / 0.08);
  user-select: none;
}
.av-g1 { background: linear-gradient(145deg, #2aa56d, #0f5537); }
.av-g2 { background: linear-gradient(145deg, #1a6f4a, #0a3624); }
.av-g3 { background: linear-gradient(145deg, #4cbd88, #177049); }
.av-b1 { background: linear-gradient(145deg, #b3325a, #5e0f28); }
.av-b2 { background: linear-gradient(145deg, #8e1f40, #3f0a1b); }
.tier-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 0;
  font: 600 11.5px/1 var(--font-ui);
  white-space: nowrap;
  border: 1px solid;
}
.tier-reef { color: #a8cdb9; background: rgba(134, 221, 176, 0.07); border-color: rgba(134, 221, 176, 0.18); }
.tier-tiger { color: var(--g-300); background: rgba(63, 191, 127, 0.13); border-color: rgba(63, 191, 127, 0.32); }
.tier-white { color: #fff; background: rgba(242, 239, 232, 0.12); border-color: rgba(242, 239, 232, 0.3); }
.tier-mega { color: var(--b-200); background: rgba(210, 71, 110, 0.17); border-color: rgba(210, 71, 110, 0.4); box-shadow: 0 0 18px -6px rgba(210, 71, 110, 0.7); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 0; font: 600 12px/1 var(--font-ui); white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 0; background: currentColor; }
.status-pill.ok { color: var(--g-300); background: rgba(63, 191, 127, 0.13); }
.status-pill.wait { color: var(--b-200); background: rgba(210, 71, 110, 0.15); }
.status-pill.wait::before { animation: blink 1.6s ease-in-out infinite; }
.status-pill.sm { height: 22px; font-size: 11px; padding: 0 9px; }
@keyframes blink { 50% { opacity: 0.25; } }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 0; font-size: 12.5px; font-weight: 500; background: rgb(var(--tint) / 0.06); border: 1px solid var(--line); }
.tag.sm { height: 20px; padding: 0 8px; font-size: 11px; margin-left: 8px; color: var(--g-300); background: rgba(63, 191, 127, 0.12); border-color: rgba(63, 191, 127, 0.25); vertical-align: 1px; }
.tag.sm.muted { color: var(--ink-3); background: rgb(var(--tint) / 0.05); border-color: var(--line); }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 0; background: var(--b-500); color: #fff; font: 600 11.5px/1 var(--font-mono); }
.count-pill.lg { min-width: 38px; height: 38px; font-size: 16px; }
.you-tag { display: inline-flex; margin-left: 8px; height: 19px; padding: 0 7px; align-items: center; border-radius: 0; font: 600 10.5px/1 var(--font-ui); color: var(--b-200); background: rgba(210, 71, 110, 0.2); border: 1px solid rgba(210, 71, 110, 0.4); vertical-align: 2px; }
.code-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 0; background: rgb(var(--tint) / 0.05); border: 1px dashed rgb(var(--tint) / 0.2); font-size: 13px; color: var(--ink); white-space: nowrap; }
.code-pill.lg { height: 38px; font-size: 16px; padding: 0 14px; }

/* ---------- landing ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - 164px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 0 72px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 0; background: var(--g-400); box-shadow: 0 0 12px var(--g-400); }
.hero .eyebrow { height: 34px; padding: 0 16px; border-radius: 0; background: rgb(var(--tint) / 0.05); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(64px, 22vw, 196px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

/* Big text rendered as dots (js/dots.js). The real letters stay for layout and screen readers. */
.dotted { position: relative; color: transparent !important; text-shadow: none !important; }
.dot-canvas { position: absolute; pointer-events: none; z-index: 0; }
.dotted .dot-canvas { animation: dotsIn 0.5s var(--ease) both; }
.hero-title.dotted .dot-canvas { animation: none; }
@keyframes dotsIn { from { opacity: 0; } to { opacity: 1; } }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ico { color: var(--g-300); }
.scroll-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.section { padding: 64px 0 8px; opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.section.in { opacity: 1; transform: none; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.section-title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 750; font-stretch: 85%; letter-spacing: -0.035em; max-width: 780px; }
.step-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.step-card h3 { font-size: 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num { font: 500 13px/1 var(--font-mono); color: var(--ink-4); }
.step-icon { width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: rgba(63, 191, 127, 0.12); border: 1px solid rgba(63, 191, 127, 0.25); }
.step-card:nth-child(2) .step-icon { color: var(--b-200); background: rgba(210, 71, 110, 0.14); border-color: rgba(210, 71, 110, 0.3); }

.tier-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }
.tier-track::before { content: ""; position: absolute; top: 8px; left: 8px; right: 8px; height: 2px; border-radius: 0; background: linear-gradient(90deg, rgba(134, 221, 176, 0.35), var(--g-400) 45%, #f2efe8 70%, var(--b-400)); }
.tier-stop { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.tier-node { position: absolute; top: -26px; left: 0; width: 18px; height: 18px; border-radius: 0; background: var(--bg); border: 2px solid currentColor; box-shadow: 0 0 16px -2px currentColor; }
.tier-pts { font-size: 12.5px; color: var(--ink-3); }
.tier-name { font: 700 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.tier-stop.tier-reef { color: #a8cdb9; }
.tier-stop.tier-tiger { color: var(--g-300); }
.tier-stop.tier-white { color: #fff; }
.tier-stop.tier-mega { color: var(--b-300); }
.tier-stop .tier-name { color: var(--ink); }
.tier-stop.tier-mega .tier-name { color: var(--b-200); }
.tier-stop { background: none; border: 0; box-shadow: none; }

.badge-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.badge-chip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 0; background: rgb(var(--tint) / 0.04); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform 0.3s var(--ease), border-color 0.3s; }
.badge-chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.badge-chip-icon { flex: none; width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: linear-gradient(145deg, rgba(63, 191, 127, 0.3), rgba(12, 74, 48, 0.4)); border: 1px solid rgba(134, 221, 176, 0.25); }
.badge-chip-icon.burg { color: var(--b-200); background: linear-gradient(145deg, rgba(210, 71, 110, 0.32), rgba(74, 10, 31, 0.5)); border-color: rgba(240, 154, 178, 0.25); }
.badge-chip-name { font-weight: 600; font-size: 14px; }

.locked-card { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 34px; overflow: hidden; }
.locked-rows { display: flex; flex-direction: column; gap: 12px; filter: blur(3px); opacity: 0.55; user-select: none; }
.locked-row { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-radius: 0; background: rgb(var(--tint) / 0.04); }
.locked-row .bar { height: 10px; border-radius: 0; background: linear-gradient(90deg, rgba(134, 221, 176, 0.5), rgba(63, 191, 127, 0.15)); }
.locked-row .bar.short { width: 40px; margin-left: auto; background: rgba(240, 154, 178, 0.35); }
.locked-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.locked-copy h3 { font-size: 28px; }
.lock-badge { width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; color: var(--b-200); background: rgba(210, 71, 110, 0.15); border: 1px solid rgba(210, 71, 110, 0.35); }

.officer { display: flex; align-items: center; gap: 14px; padding: 18px; }
.officer-name { font: 700 18px/1.2 var(--font-display); }
/* ---------- cursor spotlight (js/spotlight.js) ---------- */
/* Typed so these update without restyling everything inside a box. */
@property --mx { syntax: "<length>"; inherits: false; initial-value: -999px; }
@property --my { syntax: "<length>"; inherits: false; initial-value: -999px; }
@property --sr { syntax: "<length>"; inherits: false; initial-value: 240px; }
@property --o { syntax: "<number>"; inherits: false; initial-value: 0; }

/* Colour shifts from club green (left of the screen) to burgundy (right) as the pointer moves,
   like the "Spotlight Card" it is modeled on. --xp (0-1) is set on <html> by the script. */
.spot, .spot-field {
  --hue: calc(140 + var(--xp, 0.5) * 22);
  --glow: hsl(var(--hue) 90% 58%);
}

.spot { isolation: isolate; }
.spot-rel { position: relative; }
/* soft outer glow */
.card.spot, .podium-slot.spot, .badge-tile.spot { box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.06), 0 24px 60px -30px rgba(0, 0, 0, 0.75), 0 0 calc(var(--o) * 34px) -8px hsl(var(--hue) 90% 58% / calc(var(--o) * 0.65)); }
/* inner glow that follows the pointer */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  pointer-events: none;
  background: radial-gradient(circle var(--sr) at var(--mx) var(--my), hsl(var(--hue) 90% 62% / 0.32), transparent 100%);
  opacity: var(--o);
  transition: opacity 0.35s var(--ease);
}
/* lit border: coloured ring with a white-hot core under the pointer */
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 0;
  pointer-events: none;
  background:
    radial-gradient(circle calc(var(--sr) * 0.4) at var(--mx) var(--my), rgb(255 255 255 / 0.95), transparent 100%),
    radial-gradient(circle calc(var(--sr) * 0.9) at var(--mx) var(--my), hsl(var(--hue) 100% 60%), transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: brightness(1.5);
  opacity: var(--o);
  transition: opacity 0.35s var(--ease);
}
/* Text fields can't have pseudo-elements, so their glow is drawn in their own background. */
.spot-field {
  background-image: radial-gradient(circle calc(var(--sr) * 0.7) at var(--mx) var(--my), hsl(var(--hue) 90% 62% / calc(var(--o) * 0.3)), transparent 100%);
  transition: border-color 0.25s, box-shadow 0.2s, background-color 0.2s, --o 0.35s ease;
}
.spot-field:not(:focus) { border-color: color-mix(in srgb, hsl(var(--hue) 100% 65%) calc(var(--o) * 100%), var(--line-2)); box-shadow: 0 0 calc(var(--o) * 22px) -6px hsl(var(--hue) 90% 58% / calc(var(--o) * 0.7)); }

/* ---------- footer ---------- */
#site-footer { position: relative; z-index: 2; width: min(1160px, calc(100% - 40px)); margin: 0 auto; transition: opacity 0.9s var(--ease); }
html.intro-running #site-footer { opacity: 0; }
body.has-footer #app { min-height: calc(100dvh - 340px); padding-bottom: 56px; }
.f-panel {
  position: relative;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0 0 0;
  background:
    radial-gradient(34% 130px at 30% 0%, rgba(63, 191, 127, 0.17), transparent),
    radial-gradient(34% 130px at 70% 0%, rgba(210, 71, 110, 0.15), transparent),
    linear-gradient(180deg, rgb(var(--tint) / 0.045), rgb(var(--tint) / 0.008)),
    rgb(var(--panel) / 0.64);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / 0.06);
}
.f-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  height: 1px;
  transform: translate(-50%, -50%);
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(134, 221, 176, 0.9), rgba(240, 154, 178, 0.8), transparent);
  box-shadow: 0 0 18px 2px rgba(63, 191, 127, 0.3);
}
.f-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 60px 56px 40px; }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.f-tag { max-width: 300px; font-size: 14px; color: var(--ink-3); }
.f-social { display: flex; gap: 8px; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.f-col h3 { margin-bottom: 16px; font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.f-col ul { display: flex; flex-direction: column; gap: 11px; }
.f-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-2); transition: color 0.25s, transform 0.3s var(--ease); }
.f-link:hover { color: var(--ink); transform: translateX(3px); }
.f-lock { color: var(--ink-4); }
.f-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 56px; padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.f-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--g-300); }
.f-top:hover { color: var(--g-200); }
/* blur-and-drop-in, staggered with --d (seconds) */
.f-anim { opacity: 0; filter: blur(4px); transform: translateY(-8px); transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.f-anim.in { opacity: 1; filter: blur(0); transform: none; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100dvh - 180px); padding: 8px 0 24px; }
.auth-card { width: min(460px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; }
.auth-title { font-size: 34px; letter-spacing: -0.035em; font-stretch: 88%; font-weight: 750; }
.auth-forms { min-height: 120px; }
.big-icon { width: 62px; height: 62px; margin: 0 auto 4px; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: rgba(63, 191, 127, 0.13); border: 1px solid rgba(63, 191, 127, 0.3); }

/* ---------- home ---------- */
.points-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-num { font-size: clamp(54px, 7vw, 84px); font-weight: 600; line-height: 0.95; letter-spacing: -0.05em; }
.big-num.sm { font-size: 44px; }
.pts-unit { font: 600 18px var(--font-display); color: var(--ink-3); }
.rank-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 0; font: 600 14px/1 var(--font-mono); color: var(--b-200); background: rgba(210, 71, 110, 0.14); border: 1px solid rgba(210, 71, 110, 0.32); }
.tier-progress { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 22px; }
.bar-track { position: relative; display: block; height: 8px; flex: none; border-radius: 0; background: rgb(var(--tint) / 0.08); overflow: hidden; }
.tile-progress .bar-track { flex: 1 1 auto; }
.bar-track.bar-lg { height: 12px; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 0; background: linear-gradient(90deg, var(--g-600), var(--g-400) 70%, var(--b-400)); box-shadow: 0 0 18px rgba(63, 191, 127, 0.45); transition: width 1.2s var(--ease); }
.points-card { display: flex; flex-direction: column; }
.points-card .mini-stats { margin-top: auto; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.later { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.later .card-label { margin-bottom: 8px; }
.later li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.later-date { width: 52px; color: var(--g-300); }
.code-card { display: flex; flex-direction: column; }
.code-card .code-copy { margin-top: auto; align-self: flex-start; }
.ref-stat { display: flex; align-items: center; gap: 10px; margin: 16px 0 18px; padding: 12px; border-radius: 0; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); }
.mini-stat { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 0; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); min-width: 0; }
.mini-icon { width: 32px; height: 32px; flex: none; border-radius: 0; display: grid; place-items: center; color: var(--g-300); background: rgba(63, 191, 127, 0.12); }
.mini-stat:nth-child(2) .mini-icon { color: var(--b-300); background: rgba(210, 71, 110, 0.14); }
.mini-val { font-size: 19px; font-weight: 600; line-height: 1.1; }

.nfc-card {
  position: relative;
  aspect-ratio: 1.586;
  width: 100%;
  max-width: 270px;
  margin: 2px 0 18px;
  padding: 16px 18px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(135deg, #16774d 0%, #0b3f29 45%, #5c0f29 100%);
  border: 1px solid rgb(var(--tint) / 0.16);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgb(var(--tint) / 0.22);
}
.nfc-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgb(var(--tint) / 0.16) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: sheen 5s var(--ease) infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.nfc-card:not(.is-linked) { background: linear-gradient(135deg, rgba(22, 119, 77, 0.35), rgba(92, 15, 41, 0.35)); border-style: dashed; border-color: rgba(255, 255, 255, 0.22); }
.nfc-card:not(.is-linked)::after { display: none; }
.nfc-top { display: flex; align-items: center; justify-content: space-between; color: rgb(var(--tint) / 0.85); }
.nfc-name { font: 700 22px/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.nfc-foot { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--tint) / 0.6); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.steps li.done { color: var(--ink); }
.step-dot { width: 20px; height: 20px; flex: none; border-radius: 0; display: grid; place-items: center; border: 1.5px dashed rgb(var(--tint) / 0.25); }
.steps li.done .step-dot { border: 0; background: var(--g-500); color: #fff; }

.next-date { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cal-tile { flex: none; width: 62px; height: 66px; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgb(var(--tint) / 0.05); border: 1px solid var(--line-2); overflow: hidden; }
.cal-mon { width: 100%; text-align: center; padding: 3px 0; font: 600 10.5px/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--b-600); }
.cal-day { font-size: 24px; font-weight: 600; line-height: 1.5; }
.cal-tile.sm { width: 50px; height: 54px; border-radius: 0; }
.cal-tile.sm .cal-day { font-size: 19px; }
.cal-tile.today .cal-mon { background: var(--g-500); }
.next-when { font: 700 24px/1.15 var(--font-display); }
.next-meta { display: grid; gap: 10px; }
.empty-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.timeline li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-icon { width: 34px; height: 34px; flex: none; border-radius: 0; display: grid; place-items: center; color: var(--g-300); background: rgba(63, 191, 127, 0.12); }
.tl-icon.burg { color: var(--b-300); background: rgba(210, 71, 110, 0.14); }
.pts-gain { color: var(--g-300); font-weight: 600; }

.badge-count { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge-dot { width: 42px; height: 42px; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: linear-gradient(145deg, rgba(63, 191, 127, 0.32), rgba(12, 74, 48, 0.5)); border: 1px solid rgba(134, 221, 176, 0.28); }
.badge-dot:nth-child(3n + 2) { color: var(--b-200); background: linear-gradient(145deg, rgba(210, 71, 110, 0.35), rgba(74, 10, 31, 0.55)); border-color: rgba(240, 154, 178, 0.28); }
.next-badge { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 0; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); }

.mini-board li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 0; }
.mini-board li.me { background: rgba(210, 71, 110, 0.12); box-shadow: inset 2px 0 0 var(--b-400); }
.mini-board li.gap-above { margin-top: 10px; position: relative; }
.mini-board li.gap-above::before { content: "···"; position: absolute; top: -14px; left: 16px; color: var(--ink-4); font-size: 12px; letter-spacing: 2px; }
.mini-board .rank { width: 22px; color: var(--ink-3); font-size: 13px; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-bottom: 18px; }
.podium-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 14px 0;
  text-align: center;
  border-radius: 0;
  background: linear-gradient(180deg, rgb(var(--tint) / 0.06), rgb(var(--tint) / 0.015)), var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  min-width: 0;
  overflow: hidden;
}
.podium-slot.p1 { padding-top: 40px; border-color: rgba(63, 191, 127, 0.35); box-shadow: 0 0 60px -20px rgba(63, 191, 127, 0.5); }
.podium-slot.p1 .podium-avatar .avatar { box-shadow: 0 0 0 3px rgb(var(--panel) / 0.9), 0 0 0 5px var(--g-400), 0 0 36px rgba(63, 191, 127, 0.55); }
.podium-slot.p2 .podium-avatar .avatar { box-shadow: 0 0 0 3px rgb(var(--panel) / 0.9), 0 0 0 5px rgba(242, 239, 232, 0.55); }
.podium-slot.p3 .podium-avatar .avatar { box-shadow: 0 0 0 3px rgb(var(--panel) / 0.9), 0 0 0 5px var(--b-400); }
.podium-slot.me { background: linear-gradient(180deg, rgba(210, 71, 110, 0.14), rgb(var(--tint) / 0.015)), var(--glass); }
.crown { position: absolute; top: 12px; color: var(--g-300); filter: drop-shadow(0 0 10px rgba(63, 191, 127, 0.7)); }
.podium-avatar { margin-bottom: 6px; }
.podium-name { max-width: 100%; font: 700 17px/1.2 var(--font-display); }
.podium-pts { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.podium-pts .muted { font-size: 14px; }
.podium-base { width: calc(100% + 28px); margin-top: 14px; padding: 12px 0; font-size: 13px; color: var(--ink-3); background: rgb(var(--tint) / 0.035); border-top: 1px solid var(--line); }
.podium-slot.p1 .podium-base { padding: 22px 0; color: var(--g-200); background: rgba(63, 191, 127, 0.1); }
.podium-slot.p2 .podium-base { padding: 14px 0; }
.board { padding: 8px; }
.board-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 0; transition: background 0.15s; animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.board-row + .board-row { margin-top: 2px; }
.board-row:hover { background: rgb(var(--tint) / 0.04); }
.board-row.me { background: rgba(210, 71, 110, 0.12); box-shadow: inset 3px 0 0 var(--b-400); }
.board-row .rank { width: 30px; text-align: center; color: var(--ink-3); font-size: 14px; }
.board-row .name { font-weight: 550; }
.board-row .pts { min-width: 88px; text-align: right; font-weight: 600; font-size: 16px; }
.board-row .pts .muted { font-size: 12px; font-weight: 400; }

/* ---------- profile ---------- */
.profile-hero { display: flex; align-items: center; gap: 22px; padding: 26px; margin-bottom: 16px; }
.profile-avatar .avatar { box-shadow: 0 0 0 3px rgb(var(--panel) / 0.9), 0 0 0 5px var(--g-500), 0 0 40px rgba(30, 143, 91, 0.45); }
.profile-name { font-size: clamp(28px, 4vw, 40px); font-weight: 750; font-stretch: 88%; letter-spacing: -0.035em; }
.profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.profile-meta .sep { color: var(--ink-4); }
.code-display { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 10px; color: var(--g-200); }
.stat-list { display: flex; flex-direction: column; }
.stat-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-row dd { font-weight: 600; }
.ladder { display: flex; flex-direction: column; gap: 4px; position: relative; }
.ladder li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 0; color: var(--ink-3); }
.ladder li.reached { color: var(--ink); }
.ladder li.current { background: rgb(var(--tint) / 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.ladder-node { width: 12px; height: 12px; flex: none; border-radius: 0; border: 2px solid rgb(var(--tint) / 0.25); }
.ladder li.reached .ladder-node { border-color: currentColor; background: currentColor; }
.ladder li.reached[data-tier="reef"] .ladder-node { color: #a8cdb9; }
.ladder li.reached[data-tier="tiger"] .ladder-node { color: var(--g-400); }
.ladder li.reached[data-tier="white"] .ladder-node { color: #fff; }
.ladder li.reached[data-tier="mega"] .ladder-node { color: var(--b-400); }
.ladder li[data-tier="mega"] .ladder-name { color: var(--b-200); }
.nowrap { white-space: nowrap; }
.ladder li.current .ladder-node { box-shadow: 0 0 0 4px rgba(63, 191, 127, 0.2); }
.ladder-name { font-weight: 600; }
.badge-group { margin-bottom: 22px; }
.badge-group > .card-label { margin: 0 0 10px 2px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.badge-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 0;
  background: rgb(var(--tint) / 0.03);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 40ms);
}
.badge-tile:not(.earned) .badge-icon { filter: grayscale(1); opacity: 0.45; }
.badge-tile:not(.earned) .badge-name { color: var(--ink-2); }
.badge-tile.earned {
  background: linear-gradient(160deg, rgba(63, 191, 127, 0.12), rgb(var(--tint) / 0.02) 60%), rgb(var(--panel) / 0.5);
  border-color: rgba(134, 221, 176, 0.28);
}
.badge-icon { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: linear-gradient(145deg, rgba(63, 191, 127, 0.34), rgba(12, 74, 48, 0.5)); border: 1px solid rgba(134, 221, 176, 0.3); }
.badge-icon.burg { color: var(--b-200); background: linear-gradient(145deg, rgba(210, 71, 110, 0.36), rgba(74, 10, 31, 0.55)); border-color: rgba(240, 154, 178, 0.3); }
.badge-icon.sm { width: 28px; height: 28px; margin: 0; border-radius: 0; }
.badge-name { font: 700 16px/1.2 var(--font-display); letter-spacing: -0.015em; }
.badge-desc { flex: 1; }
.earned-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--g-300); }
.tile-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.account-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- chat ---------- */
.view-chat { display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 124px); min-height: 460px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: rgb(var(--tint) / 0.02); }
.chat-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-title h2 { font-size: 19px; }
.chat-icon { width: 38px; height: 38px; flex: none; border-radius: 0; display: grid; place-items: center; color: var(--g-200); background: rgba(63, 191, 127, 0.14); border: 1px solid rgba(63, 191, 127, 0.3); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 0; font: 500 12px/1 var(--font-mono); color: var(--ink-3); background: rgb(var(--tint) / 0.04); border: 1px solid var(--line); }
.live-dot { width: 7px; height: 7px; border-radius: 0; background: var(--ink-4); }
.live-pill.on { color: var(--g-300); }
.live-pill.on .live-dot { background: var(--g-400); box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }
.chat-body { position: relative; flex: 1; min-height: 0; }
.chat-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 12px; }
.chat-scroll::-webkit-scrollbar { width: 8px; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgb(var(--tint) / 0.1); border-radius: 0; }
.older-btn { display: flex; margin: 0 auto 14px; }
.chat-list { display: flex; flex-direction: column; gap: 14px; }
.chat-skel { padding: 10px; }
.day-sep { display: flex; justify-content: center; margin: 6px 0; }
.day-sep span { font: 500 11.5px/1 var(--font-ui); color: var(--ink-3); padding: 6px 11px; border-radius: 0; background: rgb(var(--tint) / 0.05); border: 1px solid var(--line); }
.msg-group { display: flex; align-items: flex-start; gap: 10px; max-width: min(80%, 580px); }
.msg-group.in { align-self: flex-start; }
.msg-group.out { align-self: flex-end; justify-content: flex-end; }
.msg-avatar { margin-top: 2px; }
.msg-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg-group.out .msg-stack { align-items: flex-end; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 3px; }
.msg-name { font-weight: 600; font-size: 13.5px; }
.msg-time { font: 400 11.5px var(--font-mono); color: var(--ink-4); }
.bubble-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.msg-group.out .bubble-row { flex-direction: row-reverse; }
.bubble {
  padding: 9px 14px;
  border-radius: 0;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.msg-group.in .bubble { background: rgb(var(--tint) / 0.075); border: 1px solid var(--line); border-radius: 0; }
.msg-group.in .msg-meta + .bubble-row .bubble { border-top-left-radius: 0; }
.msg-group.in .bubble-row:has(+ .msg-foot) .bubble { border-bottom-left-radius: 0; }
.msg-group.out .bubble {
  color: #fff;
  background: linear-gradient(180deg, #1e955e, #136a43);
  border: 1px solid rgba(134, 221, 176, 0.25);
  border-radius: 0;
  box-shadow: 0 8px 20px -10px rgba(30, 143, 91, 0.8);
}
.msg-group.out .bubble-row:first-child .bubble { border-top-right-radius: 0; }
.msg-group.out .bubble-row:has(+ .msg-foot) .bubble { border-bottom-right-radius: 0; }
.bubble.sending { opacity: 0.65; }
.bubble.failed { background: rgba(165, 29, 69, 0.35) !important; border-color: rgba(210, 71, 110, 0.55) !important; box-shadow: none !important; }
.bubble-del { flex: none; width: 26px; height: 26px; border-radius: 0; display: grid; place-items: center; color: var(--ink-4); opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; }
.bubble-del:focus-visible, .bubble-row.show-del .bubble-del { opacity: 1; }
@media (hover: hover) { .bubble-row:hover .bubble-del { opacity: 1; } }
.bubble-del:hover { color: var(--b-300); background: rgba(210, 71, 110, 0.14); }
.msg-foot { display: flex; align-items: center; gap: 8px; padding: 3px 4px 0; font: 400 11.5px var(--font-mono); color: var(--ink-4); }
.msg-foot:empty { display: none; }
.msg-foot .ico { opacity: 0.9; }
.msg-foot.failed { color: var(--b-300); }
.msg-foot.failed .link-btn { font-family: var(--font-ui); font-size: 12px; color: var(--b-200); }
.delivered { display: inline-flex; align-items: center; gap: 4px; color: var(--g-300); }
.bubble-row.pop { animation: pop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
.chat-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 60px 20px; }
.new-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 0; font-size: 13px; font-weight: 600; color: #fff; background: var(--b-500); box-shadow: 0 10px 24px -8px rgba(165, 29, 69, 0.9); animation: pop 0.3s var(--ease) both; }
.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 10px 14px 14px;
  padding: 7px 7px 7px 16px;
  border-radius: 0;
  background: rgb(var(--tint) / 0.05);
  border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.composer:focus-within { border-color: rgba(63, 191, 127, 0.55); box-shadow: 0 0 0 4px rgba(63, 191, 127, 0.12); }
.composer-input { flex: 1; min-height: 24px; max-height: 140px; padding: 8px 0; resize: none; border: 0; outline: 0; background: none; color: var(--ink); font: 15px/1.45 var(--font-ui); }
.composer-input::placeholder { color: var(--ink-4); }
.composer-count { align-self: center; font-size: 11.5px; color: var(--ink-4); }
.send-btn { flex: none; width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #22a066, #157048); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -6px rgba(30, 143, 91, 0.9); transition: transform 0.15s var(--ease), filter 0.2s, background 0.2s, box-shadow 0.2s; }
.send-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); }
.send-btn:disabled { background: rgba(255, 255, 255, 0.07); color: var(--ink-4); box-shadow: none; }

/* ---------- admin ---------- */
.admin-nav { margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-pane { display: flex; flex-direction: column; gap: 16px; animation: formIn 0.35s var(--ease) both; }
.meeting-bar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 16px 18px; }
.meeting-bar .card-label { display: block; margin-bottom: 8px; }
.meeting-bar .select { max-width: 420px; }
.checkin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scanner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 26px 26px; text-align: center; }
.scan-ring { position: relative; width: 170px; height: 170px; display: grid; place-items: center; margin-bottom: 4px; }
.scan-ring.sm { width: 120px; height: 120px; margin: 4px auto 0; }
.scan-ring .ring { position: absolute; inset: 0; border-radius: 0; border: 1.5px solid rgba(63, 191, 127, 0.45); animation: ripple 2.7s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.scan-ring .ring.r2 { animation-delay: 0.9s; }
.scan-ring .ring.r3 { animation-delay: 1.8s; }
@keyframes ripple { from { transform: scale(0.45); opacity: 0.9; } to { transform: scale(1.12); opacity: 0; } }
.scan-core { position: relative; width: 88px; height: 88px; border-radius: 0; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 28%, rgba(63, 191, 127, 0.75), rgba(12, 74, 48, 0.9)); border: 1px solid rgba(134, 221, 176, 0.45); box-shadow: 0 0 50px rgba(30, 143, 91, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.scan-ring.sm .scan-core { width: 64px; height: 64px; }
.scanner.idle .ring { animation-play-state: paused; opacity: 0.15; }
.scanner.idle .scan-core { filter: grayscale(0.8) brightness(0.7); box-shadow: none; }
.scan-status { display: flex; flex-direction: column; gap: 4px; }
.scan-status strong { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.scan-result { display: none; width: 100%; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 0; text-align: left; }
.scan-result.show { display: flex; animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.scan-result.ok { background: rgba(30, 143, 91, 0.2); border: 1px solid rgba(63, 191, 127, 0.45); }
.scan-result.dup { background: rgb(var(--tint) / 0.06); border: 1px solid var(--line-2); }
.scan-result.err { background: rgba(165, 29, 69, 0.2); border: 1px solid rgba(210, 71, 110, 0.5); flex-wrap: wrap; }
.result-icon { width: 44px; height: 44px; flex: none; border-radius: 0; display: grid; place-items: center; background: rgb(var(--tint) / 0.08); }
.scan-result.ok .result-icon { background: var(--g-500); color: #fff; }
.scan-result.err .result-icon { background: var(--b-500); color: #fff; }
.result-title { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.scanner > .input { max-width: 360px; text-align: center; }
.checked-card { display: flex; flex-direction: column; gap: 14px; }
.checked-card .card-head { margin-bottom: 0; }
.count-big { font-size: 30px; font-weight: 600; color: var(--g-300); }
.checked-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; margin: 0 -8px; }
.checked-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 0; animation: formIn 0.3s var(--ease) both; }
.checked-list li:hover { background: rgb(var(--tint) / 0.04); }
.empty-li { padding: 10px 8px !important; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 0; background: var(--glass-strong); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8); }
.picker-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 0; text-align: left; font-size: 14px; }
.picker-item:hover, .picker-item.active { background: rgba(63, 191, 127, 0.14); }
.picker-empty { padding: 12px; color: var(--ink-3); font-size: 13.5px; }
.quick-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.quick-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; text-align: left; }
.quick-item:hover { background: rgb(var(--tint) / 0.06); }
.request-list { display: flex; flex-direction: column; gap: 10px; }
.request { display: flex; align-items: center; gap: 14px; padding: 14px 16px; animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.req-name { font-weight: 600; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.strip-stat { padding: 14px 16px; border-radius: 0; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.strip-val { font-size: 26px; font-weight: 600; line-height: 1.2; }
.toolbar { display: flex; gap: 10px; align-items: center; }
.table-card { padding: 6px; }
.trow { display: grid; grid-template-columns: minmax(0, 2.4fr) 0.8fr 0.8fr 1fr 0.8fr 32px; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 0; text-align: left; font-size: 14px; }
button.trow { transition: background 0.15s; }
button.trow:hover { background: rgb(var(--tint) / 0.05); }
.thead { font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); padding-top: 12px; padding-bottom: 12px; }
.cell-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 550; }
.detail-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 0; background: rgb(var(--tint) / 0.03); border: 1px solid var(--line); }
.danger-zone { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; border-color: rgba(210, 71, 110, 0.3); background: rgba(165, 29, 69, 0.07); }
.code-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.code-line { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 0; background: rgb(var(--tint) / 0.03); }
.meeting-list { display: flex; flex-direction: column; gap: 10px; }
.meeting-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.entry-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.entry { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 0; background: rgb(var(--tint) / 0.03); }
.entry.small { font-size: 13.5px; }
.place-badge { flex: none; width: 44px; height: 26px; border-radius: 0; display: grid; place-items: center; font: 600 12px/1 var(--font-mono); background: rgb(var(--tint) / 0.06); }
.place-badge.p1 { background: var(--g-500); color: #fff; }
.place-badge.p2 { background: rgba(242, 239, 232, 0.2); }
.place-badge.p3 { background: rgba(210, 71, 110, 0.35); color: var(--b-200); }
.totals { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.total-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; font-size: 14px; }
.total-row.top { background: rgba(63, 191, 127, 0.12); color: var(--g-200); }
.ico-space { width: 14px; flex: none; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 4, 3, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s var(--ease); }
.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: linear-gradient(180deg, rgb(var(--tint) / 0.06), rgb(var(--tint) / 0.02)), var(--glass-strong);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.25s var(--ease), transform 0.32s var(--ease);
}
.modal.wide { width: min(640px, 100%); }
.modal-wrap.open .modal-backdrop { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 8px; }
.modal-head h3 { font-size: 22px; letter-spacing: -0.025em; }
.modal-head p { margin-top: 4px; }
.modal-body { padding: 12px 22px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(440px, calc(100% - 32px)); }
body.is-member #toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--spring);
  cursor: pointer;
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-success .ico { color: var(--g-400); }
.toast-error { border-color: rgba(210, 71, 110, 0.45); }
.toast-error .ico { color: var(--b-300); }

/* ---------- loading + empty ---------- */
.skeleton-group { display: flex; flex-direction: column; gap: 12px; }
.skeleton { height: 14px; border-radius: 0; background: linear-gradient(90deg, rgb(var(--tint) / 0.05) 25%, rgb(var(--tint) / 0.11) 50%, rgb(var(--tint) / 0.05) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton:first-child { height: 22px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { display: inline-block; border-radius: 0; border: 2px solid rgb(var(--tint) / 0.25); border-top-color: var(--g-300); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 42px 20px; }
.empty.small { padding: 22px; }

/* ---------- responsive ---------- */
.only-sm { display: none !important; }
@media (max-width: 1060px) {
  .seg-label { font-size: 13px; }
  .nav-seg .seg-btn { padding: 0 12px; }
  .badge-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  #topbar { grid-template-columns: 1fr auto; top: 10px; height: 56px; }
  .top-mid { display: none; }
  .only-sm { display: inline-flex !important; }
  .hide-sm { display: none !important; }
  body.is-member #bottombar { display: block; }
  #app { width: calc(100% - 32px); padding-top: 88px; }
  body.is-member #app { padding-bottom: 116px; }
  body.has-footer #app, body.is-member.has-footer #app { padding-bottom: 40px; }
  #site-footer { width: calc(100% - 32px); }
  .f-panel { border-radius: 0 0 0; }
  body.is-member .f-panel { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .f-inner { grid-template-columns: 1fr; gap: 32px; padding: 44px 28px 28px; }
  .f-bar { margin: 0 28px; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .span-6 { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-grid { grid-template-columns: 1fr; }
  .chat { height: calc(100dvh - 88px - 118px); min-height: 380px; }
  .menu-panel { position: fixed; top: 76px; left: 12px; right: 12px; width: auto; }
  .locked-card { grid-template-columns: 1fr; }
  .locked-rows { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .card { padding: 18px; border-radius: 0; }
  .span-6 { grid-column: span 12; }
  .grid-3, .two-col, .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .tier-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tier-track::before { display: none; }
  .tier-node { top: -24px; }
  .badge-strip { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: calc(100dvh - 130px); }
  .hero-meta { gap: 14px; }
  .head-tools { width: 100%; }
  .head-tools .input-icon { width: 100%; }
  .podium { gap: 8px; }
  .podium-slot { padding: 20px 8px 0; border-radius: 0; }
  .podium-slot.p1 { padding-top: 32px; }
  .podium-name { font-size: 14px; }
  .podium-pts { font-size: 19px; }
  .podium-slot .tier-chip { display: none; }
  .podium-slot .avatar { width: 48px !important; height: 48px !important; font-size: 18px !important; }
  .podium-slot.p1 .avatar { width: 58px !important; height: 58px !important; font-size: 22px !important; }
  .board-row { gap: 10px; padding: 10px 8px; }
  .board-row .tier-chip { display: none; }
  .board-row .pts { min-width: 0; }
  .profile-hero { flex-wrap: wrap; padding: 20px; }
  .profile-hero .btn { width: 100%; }
  .trow { grid-template-columns: minmax(0, 1fr) 70px 70px 24px; }
  .trow > :nth-child(2), .trow > :nth-child(5) { display: none; }
  .request { flex-wrap: wrap; }
  .request > .grow { flex: 1 1 calc(100% - 60px); }
  .request .btn { width: 100%; }
  .meeting-row { flex-wrap: wrap; }
  .msg-group { max-width: 88%; }
  .chat-head { padding: 12px 14px; }
  .chat-scroll { padding: 14px 12px 10px; }
  .composer { margin: 8px 10px 10px; }
  .modal-wrap { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 0 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal.wide { width: 100%; }
  .auth-card { padding: 24px 20px; }
  .danger-zone { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 380px) {
  .seg-vertical .seg-btn { font-size: 9.5px; }
  .hero-title { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .section { opacity: 1; transform: none; }
  .grain { animation: none; }
}

/* ---------- Tank Market (js/market.js) ---------- */
.wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wallet > div { padding: 12px; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); min-width: 0; }
.wallet-val { font-size: 22px; font-weight: 600; }
.market-card .stack-sm, .market-card .entry-list { margin-top: 12px; }
.market-card > p { margin-top: 10px; }
.decay-note { display: flex; align-items: center; gap: 6px; margin-top: 14px !important; }
.bounty-list { display: flex; flex-direction: column; gap: 10px; }
.bounty { display: flex; align-items: center; gap: 14px; padding: 12px; background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); }
.bounty-title { font-weight: 600; }
.bounty-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.reward { color: var(--g-300); font-weight: 600; }
.market-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- roomier layout + calmer glass (overrides; keep last) ---------- */
/* More breathing room */
.dash-grid, .grid-3, .grid-4, .two-col { gap: 28px; }
.card { padding: 32px; }
.card-head { margin-bottom: 26px; }
.page-head { margin: 18px 0 40px; }
.section-row { margin: 52px 0 22px; }
.stack { gap: 24px; }
.stack-sm { gap: 14px; }
.tier-progress { margin: 30px 0 34px; gap: 14px; }
.mini-stats { gap: 16px; }
.mini-stat, .ref-stat { padding: 16px; gap: 14px; }
.steps { gap: 18px 22px; margin: 22px 0 22px; }
.nfc-card { margin-bottom: 26px; }
.later { margin-top: 26px; padding-top: 22px; }
.later li { padding: 10px 0; }
.timeline li { padding: 16px 0; }
.mini-board li { padding: 13px 12px; }
.board-row { padding: 14px 20px; }
.board-row + .board-row { margin-top: 6px; }
.stat-row { padding: 15px 0; }
.entry-list { gap: 10px; margin-top: 22px; }
.next-meta { gap: 16px; }
.profile-hero { padding: 38px; margin-bottom: 28px; gap: 30px; }
.badge-group { margin-bottom: 40px; }
.badge-group > .card-label { margin-bottom: 16px; }
.badge-grid, .badge-strip { gap: 18px; }
.badge-tile, .badge-chip { padding: 22px; gap: 10px; }
.wallet { gap: 16px; margin-bottom: 22px; }
.wallet > div { padding: 16px; }
.bounty-list { gap: 16px; }
.bounty { padding: 18px; }
.market-card .stack-sm, .market-card .entry-list { margin-top: 18px; }
.market-card > p { margin-top: 16px; }
.section { padding: 84px 0 8px; }
body.has-footer #app { padding-bottom: 80px; }
@media (max-width: 899px) {
  .dash-grid, .grid-3, .grid-4, .two-col { gap: 22px; }
  .card { padding: 26px; }
  .profile-hero { padding: 28px; }
}
@media (max-width: 560px) {
  .dash-grid, .grid-3, .grid-4, .two-col { gap: 18px; }
  .card { padding: 22px; }
  .card-head { margin-bottom: 20px; }
  .profile-hero { padding: 24px; margin-bottom: 20px; }
  .board-row { padding: 12px 10px; }
  .badge-grid, .badge-strip { gap: 14px; }
}

/* Calmer glass: flatter, less see-through, less glow */
.glass, .card {
  background: linear-gradient(180deg, rgb(var(--tint) / 0.022), rgb(var(--tint) / 0.006)), rgb(var(--panel) / 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7);
}
#topbar { background: rgb(var(--panel) / 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.7); }
#bottombar { background: rgb(var(--panel) / 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge-tile, .badge-chip, .strip-stat { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgb(var(--panel) / 0.55); }
.card.spot, .podium-slot.spot, .badge-tile.spot { box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7), 0 0 calc(var(--o) * 22px) -10px hsl(var(--hue) 90% 58% / calc(var(--o) * 0.4)); }
.spot::before { background: radial-gradient(circle var(--sr) at var(--mx) var(--my), hsl(var(--hue) 90% 62% / 0.2), transparent 100%); }
.spot::after { filter: brightness(1.2); }
.bar-fill { box-shadow: 0 0 10px rgba(63, 191, 127, 0.3); }
.seg-ind { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px -6px rgba(30, 143, 91, 0.5); }
.profile-avatar .avatar { box-shadow: 0 0 0 3px rgb(var(--panel) / 0.9), 0 0 0 5px var(--g-500), 0 0 24px rgba(30, 143, 91, 0.3); }

/* ---------- light mode (toggle in the top bar; saved in localStorage) ---------- */
html[data-theme="light"] {
  --tint: 11 31 21;
  --panel: 236 243 238;
  --bg: #cfdcd3;
  --ink: #0b1f15;
  --ink-2: rgba(11, 31, 21, 0.8);
  --ink-3: rgba(11, 31, 21, 0.62);
  --ink-4: rgba(11, 31, 21, 0.42);
  --line: rgba(11, 31, 21, 0.12);
  --line-2: rgba(11, 31, 21, 0.22);
  --glass: rgba(236, 243, 238, 0.7);
  --glass-strong: rgba(236, 243, 238, 0.96);
  --g-200: #0c4a30;
  --g-300: #157048;
  --b-200: #7e1434;
  --b-300: #a51d45;
  color-scheme: light;
}
html[data-theme="light"] body {
  background:
    radial-gradient(60% 50% at 12% 80%, rgba(30, 143, 91, 0.3), transparent 70%),
    radial-gradient(50% 45% at 90% 12%, rgba(165, 29, 69, 0.2), transparent 70%),
    radial-gradient(45% 40% at 78% 92%, rgba(30, 143, 91, 0.18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme="light"] #bg, html[data-theme="light"] .grain { display: none; }
html[data-theme="light"] .glass, html[data-theme="light"] .card { box-shadow: 0 14px 34px -24px rgba(11, 31, 21, 0.35); }
html[data-theme="light"] #topbar { box-shadow: 0 8px 24px -16px rgba(11, 31, 21, 0.4); }
html[data-theme="light"] #topbar .menu-panel { background: #e8f0ea; box-shadow: 0 24px 50px -14px rgba(11, 31, 21, 0.35); }
html[data-theme="light"] .picker-list { background: #e8f0ea; box-shadow: 0 20px 40px -14px rgba(11, 31, 21, 0.3); }
html[data-theme="light"] .seg-btn[aria-selected="true"] { color: #0b1f15; }
html[data-theme="light"] .seg-ind { background: linear-gradient(180deg, rgba(63, 191, 127, 0.3), rgba(30, 143, 91, 0.16)); border-color: rgba(30, 143, 91, 0.45); box-shadow: none; }
html[data-theme="light"] .seg-hover { background: rgba(63, 191, 127, 0.14); border-color: rgba(30, 143, 91, 0.4); box-shadow: none; }
html[data-theme="light"] .btn-ghost { color: var(--ink); }
html[data-theme="light"] .bar-track { background: rgba(11, 31, 21, 0.1); }
html[data-theme="light"] .bar-fill { box-shadow: none; }
html[data-theme="light"] .card.spot, html[data-theme="light"] .podium-slot.spot, html[data-theme="light"] .badge-tile.spot { box-shadow: 0 14px 34px -24px rgba(11, 31, 21, 0.35), 0 0 calc(var(--o) * 22px) -10px hsl(var(--hue) 70% 45% / calc(var(--o) * 0.45)); }
html[data-theme="light"] .tier-white, html[data-theme="light"] .tier-stop.tier-white, html[data-theme="light"] .ladder li.reached[data-tier="white"] .ladder-node { color: #0b1f15; }
html[data-theme="light"] .footer-panel, html[data-theme="light"] .f-panel { background: rgba(236, 243, 238, 0.7); }
html[data-theme="light"] ::selection { background: rgba(63, 191, 127, 0.35); color: #0b1f15; }
html[data-theme="light"] .nfc-name { color: #fff; }
html[data-theme="light"] .nfc-card, html[data-theme="light"] .nfc-card .brand-name, html[data-theme="light"] .nfc-card .nfc-foot, html[data-theme="light"] .nfc-card .ico { color: #fff; }
html[data-theme="light"] .tier-chip.tier-reef, html[data-theme="light"] .tier-stop.tier-reef { color: #0c4a30; }
html[data-theme="light"] .tier-chip.tier-tiger { color: #0c4a30; }
html[data-theme="light"] .tier-chip.tier-mega { color: #7e1434; }
.theme-btn .ico svg { width: 18px; height: 18px; }

.promo { display: flex; flex-direction: column; gap: 6px; max-width: 560px; margin: 4px auto 0; padding: 16px 22px; text-align: center; border: 1px solid rgba(63, 191, 127, 0.4); background: rgb(var(--tint) / 0.05); }
.promo strong { color: var(--g-300); font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.promo span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.reward-draw { margin-top: 22px; }
.winner { padding: 18px; text-align: center; border: 1px solid rgba(63, 191, 127, 0.45); background: rgba(63, 191, 127, 0.1); }
.winner-name { font: 800 34px/1.1 var(--font-display); margin-top: 6px; color: var(--g-200); }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 600 17px/1.35 var(--font-ui); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex: none; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); color: var(--g-300); }
.faq-item[open] { border-color: rgba(63, 191, 127, 0.35); }
.faq-item p { padding: 0 24px 22px; line-height: 1.6; max-width: 70ch; }
.faq-foot { margin-top: 22px; }

/* ---------- The Sharks (js/sharks.js) ---------- */
.sharks-intro { max-width: 640px; margin-bottom: 28px; line-height: 1.55; }
.shark-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; padding: 0; list-style: none; }
.shark-chip { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); min-width: 0; }
.shark-av { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--g-300); background: rgb(var(--tint) / 0.06); }
.sharks-form { max-width: 760px; margin-bottom: 8px; }
.sharks-form .textarea { min-height: 110px; }
.sharks-form .btn { align-self: flex-start; }
.sharks-note { display: flex; align-items: center; gap: 6px; margin: 0; max-width: 520px; }
.shark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.shark-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.shark-head .shark-av { width: 46px; height: 46px; }
.shark-name { font: 700 20px/1.1 var(--font-display); }
.teeth { display: flex; gap: 4px; flex: none; }
.teeth i { width: 12px; height: 18px; background: rgb(var(--tint) / 0.14); }
.teeth i.on { background: var(--g-400); }
.shark-verdict { font-size: 17px; line-height: 1.5; font-weight: 500; margin-bottom: 14px; }
.shark-tips { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: square; color: var(--ink-2); line-height: 1.5; }
.shark-q { margin-top: 20px; padding: 16px; border: 1px solid rgba(63, 191, 127, 0.35); background: rgba(63, 191, 127, 0.08); }
.shark-q p { margin-top: 6px; font-weight: 600; }
.shark-pitch { font-size: 18px; line-height: 1.6; }
.shark-plan { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; line-height: 1.5; list-style: decimal; }
.shark-grid > .shark-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sharks-wait { max-width: 760px; margin-top: 24px; }
@media (max-width: 1060px) { .shark-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .shark-grid { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 560px) { .shark-roster { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Everything is square, whatever rule or browser default says otherwise. */

/* ---------- Meeting activity submission ---------- */
.sub-card { display: grid; gap: 16px; max-width: 640px; }
.sub-head .h2 { margin: 6px 0; }
.sub-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 18px; cursor: pointer; border: 1.5px dashed var(--line-2); background: rgb(var(--tint) / 0.03); transition: border-color 0.2s, background 0.2s; color: var(--ink); }
.sub-drop:hover, .sub-drop.over, .sub-drop:focus-within { border-color: var(--g-400); background: rgb(var(--tint) / 0.06); }
.sub-drop .ico { color: var(--g-300); }
.sub-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sub-preview { display: grid; gap: 8px; }
.sub-preview img { width: 100%; max-height: 320px; object-fit: contain; background: rgb(var(--tint) / 0.05); border: 1px solid var(--line); }
.sub-err { color: var(--b-300); margin: 0; font-size: 0.92rem; }
.sub-actions { display: flex; justify-content: flex-end; }
.sub-done { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--g-600); background: rgb(var(--tint) / 0.04); }
.sub-thumb { width: 96px; height: 96px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.sub-ok { display: flex; align-items: center; gap: 6px; color: var(--g-300); font-weight: 600; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.sub-tile { position: relative; cursor: pointer; border: 1px solid var(--line); background: var(--glass); overflow: hidden; transition: transform 0.2s var(--ease), border-color 0.2s; }
.sub-tile:hover, .sub-tile:focus-visible { border-color: var(--g-400); transform: translateY(-2px); outline: none; }
.sub-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sub-meta { display: grid; gap: 2px; padding: 10px 12px; }
.sub-del { position: absolute; top: 6px; right: 6px; background: rgb(0 0 0 / 0.55); color: #fff; opacity: 0; transition: opacity 0.2s; }
.sub-tile:hover .sub-del, .sub-tile:focus-within .sub-del, .sub-del:focus-visible { opacity: 1; }
@media (hover: none) { .sub-del { opacity: 1; } }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: rgb(4 10 7 / 0.96); color: #eef5f0; animation: lbIn 0.18s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-count { font-family: var(--font-mono); font-size: 0.85rem; opacity: 0.8; }
.lb-actions { display: flex; align-items: center; gap: 10px; }
.lb-close { color: #fff; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 56px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.2s, filter 0.2s; }
.lb-img.loading { opacity: 0.6; filter: blur(3px); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 1px solid rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgb(255 255 255 / 0.14); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-cap { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; padding: 12px 16px 18px; }
.lb-cap .muted { color: #a9b9b0; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-nav { width: 36px; height: 52px; } .sub-done { flex-direction: column; } }

*, *::before, *::after { border-radius: 0 !important; }


/* =========================================================
   Tank Academy, bounties, updates and officer tools.
   Written against the theme tokens above (--tint, --panel, --glass)
   so they follow light and dark mode, with the same square corners.
   ========================================================= */
.code-display, .code-pill, .input.mono, .code-line .mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.brand-mark .ico svg { width: 22px; height: 22px; }
.brand-mark.lg .ico svg { width: 34px; height: 34px; }
.officer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tier-chip::before { content: ""; width: 8px; height: 8px; border-radius: 0; background: var(--tc, var(--ink-3)); }
.section-sub { color: var(--ink-2); max-width: 60ch; font-size: 16px; }
.how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line-2); padding-top: 22px; }
.how-list h3 { font-size: 22px; margin-bottom: 8px; }
.how-list p { color: var(--ink-2); max-width: 38ch; }
.badge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 900px; }
.badge-list li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.badge-list .ico { color: var(--g-300); position: relative; top: 3px; }
.badge-list b { font-weight: 600; }
.badge-list span.muted { margin-left: auto; text-align: right; font-size: 14px; }
.officer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.step-card:nth-child(2), .locked-card, .request, .danger-zone,
.podium-slot.p3, .podium-slot.me, .mini-stat:nth-child(2),
.badge-tile:has(.badge-icon.burg), .badge-chip:has(.badge-chip-icon.burg),
.dash-grid > .card:nth-child(even), .two-col > .card:nth-child(even), .checkin-grid > .card:nth-child(even),
.grid-4 > .card:nth-child(even), .strip-stat:nth-child(even),
.bounty-grid > .card:nth-child(even), .news-list > .card:nth-child(even), .cal-side > .card:nth-child(even) {
  --spot: 210 71 110;
  --spot-ring: 240 154 178;
  --spot-a: 0.15;
}
.big-num, .big-num.mono { font-family: var(--font-display); font-size: clamp(54px, 7vw, 84px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.rank-pill b { color: var(--ink); font-weight: 700; }
.mini-board li.me .grow { font-weight: 600; }
.podium-slot.me .podium-name { font-weight: 800; }
.board-row.me .name { font-weight: 700; }
.meet-date { flex: none; width: 60px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meet-date.today { color: var(--g-300); }
.decay-note .ico { margin-top: 2px; color: var(--b-300); }
.decay-note.burg { color: var(--ink); }
.chip-badge { position: absolute; top: -8px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 0; background: var(--b-500); color: #fff; font: 600 10.5px/17px var(--font-ui); text-align: center; box-shadow: 0 0 0 2px rgb(var(--glass-strong) / 0.9); pointer-events: none; }
@media (min-width: 900px) {
  .chip-badge { display: none; }
}
.bounty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bounty-card { display: flex; flex-direction: column; gap: 10px; }
.bounty-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.bounty-card > p { line-height: 1.5; }
.bounty-card > :last-child { margin-top: auto; }
.bounty-card > .bounty-meta { margin-top: 2px; }
.bounty-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reward small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--g-300); }
.bounty-card .tag.sm { margin-left: 0; }
.bounty-meta { display: flex; align-items: center; gap: 7px; }
.bounty-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bounty-card.is-done .bounty-top, .bounty-card.is-done h3, .bounty-card.is-done > p, .bounty-card.is-done .bounty-meta { opacity: 0.68; }
.stat-strip + .card { margin-top: 14px; }
.claim-list { padding: 6px 12px; }
.claim-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.claim-row:last-child { border-bottom: 0; }
.claim-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.claim-note { color: var(--ink-2); word-break: break-word; }
.claim-note a { color: var(--g-300); text-decoration: underline; text-underline-offset: 3px; }
.status-pill.no { color: var(--ink-3); }
.bounty-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.bounty-row .reward { flex: none; font-size: 18px; }
.news-bar { margin-bottom: 16px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-card.is-pinned { border-color: var(--line-2); }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.news-head h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 4px; }
.news-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.news-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-body a { color: var(--g-300); text-decoration: underline; text-underline-offset: 3px; }
.tag.sm.pin-tag { margin: 0 0 8px; color: var(--b-300); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-side { display: flex; flex-direction: column; gap: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-title { font-size: 26px; letter-spacing: -0.03em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { padding: 2px 0 8px; text-align: center; font: 500 13px/1 var(--font-ui); color: var(--ink-3); }
.cal-cell { position: relative; aspect-ratio: 1 / 0.9; min-height: 46px; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 9px; border-radius: 0; text-align: left; background: rgb(var(--tint) / 0.03); border: 1px solid var(--line); transition: background 0.15s, border-color 0.15s; }
.cal-cell:hover { background: rgb(var(--tint) / 0.07); border-color: var(--line-2); }
.cal-cell.other { opacity: 0.36; }
.cal-cell.today { border-color: rgba(63, 191, 127, 0.6); box-shadow: inset 0 0 0 1px rgba(63, 191, 127, 0.22); }
.cal-cell.today .cal-num { color: var(--g-300); font-weight: 700; }
.cal-cell.picked { background: rgba(63, 191, 127, 0.16); border-color: rgba(134, 221, 176, 0.55); }
.cal-num { font-size: 14px; font-weight: 500; }
.cal-dots { position: absolute; left: 9px; right: 9px; bottom: 8px; display: flex; gap: 4px; }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 0; }
.dot.m { background: var(--g-400); }
.dot.e { background: var(--ink); opacity: 0.85; }
.dot.d { background: var(--b-400); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.day-card .stack-sm { gap: 14px; }
.day-card .timeline li { padding: 10px 8px; margin: 0 -8px; border-radius: 0; }
.day-card .link-sm { margin-top: 12px; color: var(--g-300); }
.pick-li { cursor: pointer; transition: background 0.15s; }
.pick-li:hover { background: rgb(var(--tint) / 0.045); }
.event-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-row:last-child { padding-bottom: 0; border-bottom: 0; }
.event-title { font-weight: 600; line-height: 1.35; }
.event-desc { margin-top: 6px; line-height: 1.5; }
.event-row .btn { flex: none; }
.welcome-bar { justify-content: space-between; flex-wrap: wrap; }
.tpl-seg, .welcome-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tpl-seg::-webkit-scrollbar, .welcome-bar .seg::-webkit-scrollbar { display: none; }
.move-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 0; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink-2); background: rgb(var(--tint) / 0.04); border: 1px solid var(--line-2); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip-btn:hover { color: var(--g-200); background: rgba(63, 191, 127, 0.14); border-color: rgba(63, 191, 127, 0.4); }
.sec-label { margin: 10px 0 -4px 2px; }
.pad { padding: 14px 16px; }
.rules-sentence { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.req-name.link-btn { font-size: 15px; text-align: left; color: var(--ink); }
.req-name.link-btn:hover { color: var(--g-200); }
.station { gap: 14px; }
.station-who { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 250px; padding: 22px 16px; text-align: center; border-radius: 0; background: rgb(var(--tint) / 0.03); border: 1px solid var(--line); }
.station-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 4px; }
.station-ring .ring { position: absolute; inset: 0; border-radius: 0; border: 1.5px solid rgba(63, 191, 127, 0.45); animation: ripple 2.7s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.station-ring .ring.r2 { animation-delay: 0.9s; }
.station-ring .scan-core { width: 64px; height: 64px; }
.station-name { font: 700 30px/1.1 var(--font-display); letter-spacing: -0.03em; }
.station-write { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 9px 16px; border-radius: 0; font-size: 14px; color: var(--ink-2); background: rgb(var(--tint) / 0.04); border: 1px dashed rgb(var(--tint) / 0.28); }
.station-write strong { font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; color: var(--g-200); }
.station-flash { min-height: 44px; padding: 10px 14px; border-radius: 0; font-size: 14px; border: 1px solid transparent; color: var(--ink-3); }
.station-flash:empty { padding-top: 0; padding-bottom: 0; }
.station-flash.show { animation: pop 0.3s var(--ease) both; }
.station-flash.ok { color: var(--g-200); background: rgba(30, 143, 91, 0.2); border-color: rgba(63, 191, 127, 0.4); }
.station-flash.err { color: var(--b-200); background: rgba(165, 29, 69, 0.2); border-color: rgba(210, 71, 110, 0.45); }
.station-done { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.span-12 { grid-column: span 12; }
.ac-officer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 18px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 0; font-size: 14px; color: var(--ink-3); }
.ac-officer .input { width: auto; height: 36px; }
.ac-officer-note { flex-basis: 100%; color: var(--b-300); }
.ac-home { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-home h3 { font-size: 20px; margin: 4px 0 2px; }
.ac-now-head { display: flex; gap: 22px; align-items: flex-start; }
.ac-lvl { display: flex; flex-direction: column; gap: 4px; flex: none; }
.ac-lvl .big-num { font-size: 64px; }
.ac-now h2 { font-size: 24px; margin: 3px 0 6px; text-wrap: balance; }
.ac-sbar { margin: 22px 0 18px; }
.ac-sbar ol { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ac-sbar li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ac-sbar li i { display: block; height: 8px; border-radius: 0; background: rgb(var(--tint) / 0.1); }
.ac-sbar li.done i { background: var(--g-400); }
.ac-sbar li.cur i { background: none; box-shadow: inset 0 0 0 1.5px var(--g-400); }
.ac-sbar li.cur { color: var(--ink); font-weight: 600; }
.ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.ac-foot .muted b { color: var(--ink); font-weight: 600; }
.ac-next-name { margin-top: 10px; font-weight: 600; }
.ac-gap { margin-top: 16px; }
.ac-checks { display: grid; gap: 8px; margin-top: 8px; }
.ac-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ac-checks i { flex: none; width: 16px; height: 16px; border-radius: 0; border: 1.5px solid var(--ink-3); margin-top: 3px; }
.ac-week { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ac-week h3 { font-size: 18px; margin: 2px 0; }
.ac-av { display: inline-block; flex: none; border-radius: 0; overflow: hidden; line-height: 0; }
.ac-av svg { width: 100%; height: 100%; }
.ac-year { padding-top: 4px; padding-bottom: 8px; }
.ac-season { padding: 22px 0 8px; }
.ac-season + .ac-season { border-top: 1px solid var(--line); }
.ac-season-h { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; align-items: baseline; margin-bottom: 14px; }
.ac-season-h h3 { font-size: 21px; }
.ac-season-h .muted { grid-column: 1 / -1; }
.ac-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.ac-status.done { color: var(--g-300); }
.ac-status.now { color: var(--ink); }
.ac-status.now::before { content: ""; width: 8px; height: 8px; border-radius: 0; background: var(--g-400); }
.ac-blk { padding: 6px 0 4px; }
.ac-blk-h { display: flex; justify-content: space-between; gap: 2px 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.ac-blk-h b { color: var(--ink); font-weight: 600; }
.ac-path { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 0 18px; }
.ac-path::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 22px; height: 1px; background: var(--line-2); }
.ac-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; color: inherit; }
.ac-node:hover { color: inherit; }
.ac-dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; font: 600 15px var(--font-ui); font-variant-numeric: tabular-nums; background: var(--glass-strong); border: 1.5px solid var(--line-2); color: var(--ink-2); }
.ac-node:hover .ac-dot { border-color: var(--ink-2); color: var(--ink); }
.ac-node.done .ac-dot { background: var(--g-500); border-color: var(--g-500); color: #fff; }
.ac-node.current .ac-dot { background: rgb(var(--tint) / 0.04); border: 2px solid var(--g-400); color: var(--ink); }
.ac-node.locked .ac-dot { border-style: dashed; color: var(--ink-3); }
.ac-node.cp .ac-dot { border-radius: 0; border-color: var(--b-400); color: var(--b-300); }
.ac-node.cp.done .ac-dot { background: var(--b-500); border-color: var(--b-500); color: #fff; }
.ac-node.cp.current .ac-dot { border: 2px solid var(--b-400); color: var(--b-200); }
.ac-node.cp.locked .ac-dot { border-color: var(--line-2); color: var(--ink-3); }
.ac-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
.ac-nm .t { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-node.current .ac-nm .t { color: var(--ink); font-weight: 600; }
.ac-node.locked .ac-nm .t { color: var(--ink-3); }
.ac-nm .s { display: none; font-size: 13px; color: var(--ink-3); }
.ac-nm .st { display: flex; justify-content: center; }
.ac-stars { display: inline-flex; gap: 2px; vertical-align: middle; color: var(--g-300); }
.ac-stars .off { color: rgb(var(--tint) / 0.2); }
.ac-finale { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; color: var(--ink-2); }
.ac-finale .fm { width: 10px; height: 10px; border-radius: 0; background: var(--b-500); flex: none; }
.ac-finale b { color: var(--ink); font-weight: 600; }
.ac-crumbs { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.ac-back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--ink-2); font-weight: 500; }
.ac-back:hover { color: var(--ink); }
.ac-head { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.ac-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; margin-bottom: 8px; text-wrap: balance; }
.ac-state { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; color: var(--g-300); }
.ac-state.off { color: var(--ink-3); }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-h { display: flex; align-items: baseline; gap: 10px; font-size: 20px; margin-bottom: 12px; }
.ac-h .muted { font: 400 14px var(--font-ui); letter-spacing: 0; }
.ac-bul { display: grid; gap: 10px; }
.ac-bul li { position: relative; padding-left: 16px; color: var(--ink-2); }
.ac-bul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 0; background: var(--g-400); }
.ac-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ac-note b { color: var(--ink); font-weight: 600; }
.ac-draft { margin-top: 12px; }
.ac-shark { position: sticky; top: 96px; }
.ac-shark-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ac-shark h3 { font-size: 22px; }
.ac-quote { font-size: 17px; line-height: 1.45; margin: 0 0 16px; }
.ac-facts { margin: 0 0 18px; }
.ac-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ac-facts dt { color: var(--ink-3); }
.ac-small { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.ac-round-wrap { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgb(var(--glass-strong) / 0.84); }
.ac-round { width: min(760px, 100%); height: min(86dvh, 760px); display: flex; flex-direction: column; border-radius: 0; background: var(--glass-strong); border: 1px solid var(--line-2); overflow: hidden; }
.ac-rh { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ac-who { min-width: 0; flex: 1; }
.ac-who b { display: block; font: 700 17px var(--font-display); }
.ac-who small { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.ac-msg { display: flex; gap: 10px; max-width: 88%; }
.ac-msg.me { align-self: flex-end; }
.ac-name { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.ac-bub { padding: 10px 14px; border-radius: 0; background: rgb(var(--tint) / 0.075); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ac-msg:not(.me) .ac-bub { border-top-left-radius: 4px; }
.ac-msg.me .ac-bub { background: #17704a; border-color: rgba(134, 221, 176, 0.22); color: #fff; border-bottom-right-radius: 4px; }
.ac-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.ac-typing i { width: 6px; height: 6px; border-radius: 0; background: var(--ink-3); animation: acBlink 1s infinite; }
.ac-typing i:nth-child(2) { animation-delay: 0.15s; }
.ac-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes acBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.ac-comp { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ac-verdict { flex: 1; overflow-y: auto; padding: 22px; }
.ac-vtop { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.ac-score { display: flex; align-items: baseline; gap: 8px; }
.ac-score .big-num { font-size: 76px; }
.ac-score.no .big-num { color: var(--b-300); }
.ac-vtop h2 { font-size: 26px; }
.ac-starrow { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 14px; color: var(--ink-2); }
.ac-cats { display: grid; gap: 10px; margin: 0 0 20px; }
.ac-cat { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.ac-cat .cl { color: var(--ink-2); }
.ac-cat.f .cl { color: var(--ink); font-weight: 600; }
.ac-bar { height: 6px; border-radius: 0; background: rgb(var(--tint) / 0.1); overflow: hidden; }
.ac-bar i { display: block; height: 100%; width: 0; background: var(--g-400); transition: width 0.5s ease-out; }
.ac-cat.low .ac-bar i { background: var(--b-400); }
.ac-cat .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ac-advice { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ac-advice h4 { font: 600 15px var(--font-ui); margin-bottom: 6px; }
.ac-advice p, .ac-advice li { color: var(--ink-2); }
.ac-advice ul { list-style: disc; padding-left: 18px; display: grid; gap: 6px; }
.ac-say { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ac-cp { color: var(--ink-2); margin-bottom: 16px; }
.ac-cp b { color: var(--ink); font-weight: 600; }
.ac-edges li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 230px; gap: 16px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ac-edges li:last-child { border-bottom: 0; }
.ac-edges .el { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ac-edges h3 { font-size: 18px; margin-bottom: 4px; }
.ac-edges p { color: var(--ink-2); }
.ac-edges .when { display: flex; gap: 7px; align-items: flex-start; justify-content: flex-end; font-size: 14px; color: var(--ink-3); padding-top: 2px; text-align: right; }
.ac-edges .when .ico { margin-top: 2px; }
.ac-edges li.on .when { color: var(--g-300); }
.ac-edges li.ready .when { color: var(--b-300); }
.ac-rules-grid { margin-top: 16px; }
.ac-rules-grid h3 { font-size: 19px; }
.ac-rules { list-style: disc; margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 7px; }
.ac-rules b { color: var(--ink); font-weight: 600; }
@media (max-width: 899px) {
  .ac-grid, .ac-advice { grid-template-columns: 1fr; }
  .ac-shark { position: static; }
  .span-12 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .ac-path { grid-template-columns: 1fr; gap: 0; padding: 0 0 10px; }
  .ac-path::before { left: 21px; right: auto; top: 22px; bottom: 34px; width: 1px; height: auto; }
  .ac-node { flex-direction: row; align-items: center; gap: 14px; padding: 6px 0; text-align: left; }
  .ac-dot { width: 42px; height: 42px; flex: none; }
  .ac-nm { flex: 1; }
  .ac-nm .t { -webkit-line-clamp: 1; font-size: 15px; color: var(--ink); }
  .ac-nm .s { display: block; }
  .ac-nm .st { justify-content: flex-start; }
  .ac-lvl .big-num { font-size: 52px; }
  .ac-now-head { gap: 16px; }
  .ac-edges li { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; }
  .ac-edges .when { grid-column: 2; justify-content: flex-start; text-align: left; }
  .ac-cat { grid-template-columns: 96px 1fr 40px; }
  .ac-round-wrap { padding: 0; align-items: end; }
  .ac-round { width: 100%; height: 92dvh; border-radius: 0; }
  .ac-score .big-num { font-size: 60px; }
}
@media (max-width: 1260px) {
  .seg-label { font-size: 13px; }
  .nav-seg .seg-btn { padding: 0 11px; gap: 6px; }
}
@media (max-width: 1060px) {
  .how-list { grid-template-columns: 1fr; gap: 18px; }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .nav-seg .seg-btn { padding: 0 9px; }
  #topbar .brand-name { display: none; }
}
@media (max-width: 720px) {
  .badge-list { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bounty-grid { grid-template-columns: 1fr; }
  .cal-title { font-size: 22px; }
  .cal-grid { gap: 4px; }
  .cal-cell { padding: 6px; border-radius: 0; min-height: 42px; }
  .cal-num { font-size: 13px; }
  .cal-dots { left: 6px; bottom: 6px; }
  .news-head { flex-wrap: wrap; }
  .claim-row { flex-wrap: wrap; }
  .claim-right { flex-direction: row; align-items: center; margin-left: 46px; }
  .bounty-row { flex-wrap: wrap; }
  .event-row { flex-direction: column; }
  .event-row .btn { width: 100%; }
  .station-name { font-size: 26px; }
}

/* Officer Assistant (Admin > Assistant) */
.as-card { display: flex; flex-direction: column; gap: 12px; }
.as-card .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.as-list { display: flex; flex-direction: column; gap: 12px; min-height: 280px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.as-msg { max-width: 92%; padding: 12px 14px; border: 1px solid var(--line-2); background: rgb(var(--tint) / 0.03); }
.as-msg.me { align-self: flex-end; background: rgb(30 143 91 / 0.18); border-color: rgb(63 191 127 / 0.35); }
.as-msg.ai { align-self: flex-start; }
.as-text { color: var(--ink); font: 15px/1.55 var(--font-ui); white-space: pre-wrap; margin: 0; }
.as-msg.ai .as-text { white-space: normal; }
.as-text p, .as-text h4 { margin: 0 0 8px; }
.as-text h4 { font: 600 15px/1.4 var(--font-ui); color: var(--g-300); }
.as-text ul { margin: 0 0 8px; padding-left: 20px; }
.as-text li { margin: 2px 0; }
.as-text code { font-family: ui-monospace, monospace; font-size: 13px; background: rgb(var(--tint) / 0.08); padding: 1px 4px; }
.as-copy { margin-top: 6px; }
.as-empty { display: flex; flex-direction: column; gap: 10px; }
.as-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { text-align: left; white-space: normal; }
.as-typing { margin: 0; }

/* ---------- streamlined footer: brand + one row of links ---------- */
.f-slim .f-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; padding: 30px 56px 22px; }
.f-slim .f-brand { gap: 0; }
.f-links nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.f-slim .f-bar { padding: 16px 0 20px; }
@media (max-width: 760px) {
  .f-slim .f-inner { padding: 26px 22px 18px; }
  .f-slim .f-bar { margin: 0 22px; }
  .f-links nav { gap: 10px 20px; }
}

/* ---------- streamlined landing + home ---------- */
.hero-cta { align-items: center; }
.hero-link { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(var(--tint) / 0.3); padding: 10px 6px; }
.hero-link:hover { color: var(--ink); }
.how-3 { list-style: none; margin: 0; }
.how-3 li { display: flex; flex-direction: column; }
.how-num { font-size: 12px; letter-spacing: 0.14em; color: var(--g-300); margin-bottom: 10px; }
.closer .locked-card { display: flex; justify-content: space-between; flex-wrap: wrap; }

.home-top > .card { margin-bottom: 16px; }
.standing { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.stand-main { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.stand-main .tier-progress { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.stand-stat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); background: rgb(var(--tint) / 0.03); transition: border-color 0.2s, background 0.2s; }
.stand-stat:hover { border-color: rgba(63, 191, 127, 0.5); background: rgb(var(--tint) / 0.06); }
.stand-stat .mini-val { font-size: 24px; }
.card-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 20px; }
@media (max-width: 760px) {
  .standing { grid-template-columns: 1fr 1fr; }
  .stand-main { grid-column: 1 / -1; }
}
.home-grid { align-items: start; }
.standing { align-items: center; }
.stand-stat { min-height: 96px; }
@media (max-width: 600px) { .hero-title { font-size: 13.5vw; } }
.points-card .card-head { margin-bottom: 8px; }

/* ---------- Academy fair play ---------- */
.no-copy, .no-copy * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.no-copy textarea, .no-copy input { -webkit-user-select: text; user-select: text; }
.ac-example { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2, var(--line)); background: rgb(var(--tint) / 0.03); font-size: 14px; color: var(--ink-2); }
.ac-example .card-label { margin-bottom: 6px; }
.ac-fair { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.ac-fair svg { flex: none; margin-top: 2px; color: var(--g-300); }
.ac-held { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border: 1px solid rgba(210, 71, 110, 0.5); background: rgba(210, 71, 110, 0.08); }
.ac-held svg { flex: none; margin-top: 2px; color: #f09ab2; }
.ac-held ul { margin: 6px 0 0; padding-left: 18px; }
.fp-row { display: flex; flex-direction: column; gap: 10px; }
.fp-reasons { margin: 0; padding-left: 18px; }

/* ---------- chat replies ---------- */
.bubble-reply { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-4); opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; }
.bubble-reply:focus-visible, .bubble-row.show-del .bubble-reply { opacity: 1; }
@media (hover: hover) { .bubble-row:hover .bubble-reply { opacity: 1; } }
.bubble-reply:hover { color: var(--g-300); background: rgb(var(--tint) / 0.08); }
.bubble-quote { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 0 0 6px; padding: 6px 10px; text-align: left; border-left: 3px solid var(--g-400); background: rgb(var(--tint) / 0.08); font-size: 12.5px; color: inherit; opacity: 0.9; }
.bubble-quote b { font-weight: 600; color: var(--g-300); }
.bubble-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.bubble-row.flash .bubble { outline: 2px solid var(--g-400); outline-offset: 2px; }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); border-left: 3px solid var(--g-400); background: rgb(var(--tint) / 0.04); font-size: 13px; }
.reply-bar[hidden] { display: none; }

/* ---------- moderation: mute/ban menu, officer tag, approvals ---------- */
.msg-officer { margin-left: 6px; padding: 1px 6px; font: 600 10px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-300); border: 1px solid rgba(63, 191, 127, 0.45); }
.mod-menu { position: relative; display: inline-flex; margin-left: 6px; vertical-align: middle; }
.mod-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--ink-4); border: 1px solid transparent; }
.mod-btn:hover, .mod-btn.on { color: var(--ink); border-color: var(--line-2); }
.mod-btn.on { color: var(--b-300); }
.mod-panel { position: absolute; z-index: 30; top: 26px; left: 0; min-width: 190px; padding: 6px; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; }
.mod-panel[hidden] { display: none; }
.mod-item { text-align: left; padding: 9px 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.mod-item:hover { background: rgb(var(--tint) / 0.08); color: var(--ink); }
.mod-item.danger { color: var(--b-300); border-top: 1px solid var(--line); margin-top: 4px; }
.chat-hint { padding: 14px 18px; border-top: 1px solid var(--line); }
.mod-ban { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.approval { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.approval-name { font-weight: 600; font-size: 17px; }

/* ---------- bounty claim triage + reset ---------- */
.ai-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ai-tag { padding: 2px 8px; font: 600 11px/1.5 var(--font-mono); letter-spacing: 0.04em; border: 1px solid var(--line-2); color: var(--ink-3); }
.ai-tag.genuine { color: var(--g-300); border-color: rgba(63, 191, 127, 0.5); background: rgba(63, 191, 127, 0.1); }
.ai-tag.unsure { color: var(--ink-2); }
.junk-claims { padding: 0; }
.junk-claims summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.junk-claims summary::-webkit-details-marker { display: none; }
.junk-list { border-top: 1px solid var(--line); padding: 8px 22px 16px; }
.junk-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.reset-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.dup-line { margin-top: 4px; font-size: 13px; }
.dup-line.strong { color: var(--b-300); font-weight: 600; }

/* ---------- sponsors: sign-up page, sponsor dashboard, officer list ---------- */
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-300); }
.sp-hero { max-width: 760px; margin: 18px 0 34px; }
.sp-title { margin-top: 14px; font-size: clamp(36px, 6vw, 64px); font-weight: 780; letter-spacing: -0.04em; font-stretch: 86%; line-height: 1; }
.sp-lead { margin-top: 16px; max-width: 60ch; font-size: 17px; color: var(--ink-2); }
.sp-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.sp-stat { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--b-400); }
.sp-stat-n { font: 700 28px/1.1 var(--font-display); letter-spacing: -0.03em; }
.sp-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.sp-perk { display: flex; flex-direction: column; gap: 8px; }
.sp-perk h3 { font-size: 17px; }
.sp-perk-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--g-300); background: rgba(63, 191, 127, 0.12); border: 1px solid rgba(63, 191, 127, 0.28); }
.sp-perk-ico.lg { width: 56px; height: 56px; }
.sp-form-card { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.sp-foot { max-width: 620px; margin: 22px auto 0; }
.sp-check { padding: 12px 0; align-items: center; }
.sp-step { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sp-step + .sp-step { padding-top: 22px; border-top: 1px solid var(--line); }
.sp-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 650 17px/1.2 var(--font-display); }
.sp-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 12px; color: var(--ink); background: var(--b-500); }
.sp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sp-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; text-align: left; background: rgb(var(--tint) / 0.03); border: 1px solid var(--line-2); transition: border-color 0.15s, background 0.15s; }
.sp-choice:hover { border-color: rgb(var(--tint) / 0.25); }
.sp-choice[aria-checked="true"] { border-color: var(--g-400); background: rgba(63, 191, 127, 0.1); box-shadow: inset 3px 0 0 var(--g-400); }
.sp-choice-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.sp-price { font-size: 13px; color: var(--g-300); }
.sp-logo-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-logo-box { display: grid; place-items: center; width: 120px; height: 120px; padding: 10px; background: repeating-conic-gradient(rgb(var(--tint) / 0.06) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border: 1px dashed var(--line-2); }
.sp-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sp-dash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 24px; }
.sp-dash-head .page-title { font-size: clamp(28px, 4vw, 42px); margin-top: 4px; }
.sp-dash-meta { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sp-dash-logo { flex: none; display: grid; place-items: center; width: 76px; height: 76px; padding: 8px; background: #fff; border: 1px solid var(--line-2); overflow: hidden; }
.sp-dash-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-dash-logo span { font: 750 34px/1 var(--font-display); color: var(--g-700); }
.status-pill.no { color: var(--ink-3); background: rgb(var(--tint) / 0.07); }
.sp-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sp-message { border-left: 3px solid var(--b-400); display: flex; flex-direction: column; gap: 8px; }
.sp-steps { display: flex; flex-direction: column; }
.sp-steps-li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.sp-steps-li:last-child { padding-bottom: 0; }
.sp-steps-li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 2px; background: var(--line-2); }
.sp-steps-li.is-done:not(:last-child)::after { background: var(--g-500); }
.sp-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font: 600 12px/1 var(--font-mono); color: var(--ink-3); border: 1px solid var(--line-2); background: var(--bg); }
.sp-steps-li.is-done .sp-dot { color: #fff; background: var(--g-500); border-color: var(--g-500); }
.sp-steps-li.is-now .sp-dot { color: var(--b-200); border-color: var(--b-400); box-shadow: 0 0 0 4px rgba(210, 71, 110, 0.15); }
.sp-steps-li.is-stop .sp-dot { color: var(--ink-3); background: rgb(var(--tint) / 0.08); }
.sp-steps-li.is-later strong { color: var(--ink-2); }
.sp-kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.sp-kv dt { color: var(--ink-3); }
.sp-get { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sp-get li { display: flex; align-items: center; gap: 10px; }
.sp-pay-empty { gap: 12px; }
.sp-pay-empty p { max-width: 46ch; }

.sp-admin-bar { justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.sp-admin-row { display: flex; align-items: flex-start; gap: 18px; padding: 18px 22px; }
.sp-admin-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 6px; background: #fff; border: 1px solid var(--line-2); }
.sp-admin-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-admin-logo.empty-logo { background: rgb(var(--tint) / 0.05); }
.sp-admin-logo.empty-logo span { font: 700 24px/1 var(--font-display); color: var(--ink-3); }
.sp-admin-name { font-size: 17px; }
.sp-admin-row .row.wrap { gap: 10px; }
.sp-quote { padding-left: 10px; border-left: 2px solid var(--line-2); color: var(--ink-2); }
.sp-admin-actions { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 280px; }

@media (max-width: 899px) {
  .sp-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-overview { grid-template-columns: 1fr; }
  .sp-admin-row { flex-wrap: wrap; }
  .sp-admin-actions { max-width: none; justify-content: flex-start; width: 100%; }
}
@media (max-width: 560px) {
  .sp-perks { gap: 10px; }
  .sp-perk { padding: 16px; }
  .sp-perk h3 { font-size: 15px; }
  .sp-hero-stats { gap: 18px; }
  .sp-dash-head .btn { margin-left: auto; }
}

.sp-levels { display: grid; gap: 10px; }
.sp-group-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.sp-choices { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sp-gets { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); }
.sp-gets li { display: flex; gap: 6px; align-items: flex-start; }
.sp-gets .ico { margin-top: 3px; flex: none; }
.sp-pay { color: var(--g-300); margin-top: 6px; }

/* Sponsor sign-up wizard */
.sp-form-card { max-width: 1000px; }
.sp-wiz { display: flex; flex-direction: column; gap: 18px; }
.sp-wiz-top { display: flex; align-items: center; gap: 14px; }
.sp-count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sp-bar { flex: 1; height: 4px; background: rgb(var(--tint) / 0.1); overflow: hidden; }
.sp-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g-500), var(--g-300)); transition: width 0.45s var(--ease); }
.sp-stage { min-height: 250px; overflow: hidden; }
.sp-panel { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; animation: spIn 0.38s var(--ease) both; }
.sp-panel.wide { max-width: none; }
.sp-panel.from-back { animation-name: spInBack; }
@keyframes spIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes spInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.sp-q { font: 700 clamp(24px, 3.4vw, 32px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.sp-sub { margin: -6px 0 6px; }
.sp-nav { display: flex; align-items: center; gap: 12px; justify-content: flex-end; max-width: 640px; width: 100%; margin: 0 auto; }
.sp-nav .sp-next { margin-left: auto; min-width: 190px; }
.sp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; padding-top: 12px; }
.sp-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 18px 18px; cursor: pointer; background: rgb(var(--tint) / 0.03); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; outline: none; }
.sp-plan:hover, .sp-plan:focus-visible { border-color: rgb(var(--tint) / 0.3); }
.sp-plan.featured { transform: translateY(-10px); padding-top: 30px; border-color: rgba(63, 191, 127, 0.55); background: linear-gradient(180deg, rgba(63, 191, 127, 0.12), rgba(63, 191, 127, 0.03)); box-shadow: 0 18px 50px -24px rgba(63, 191, 127, 0.55); }
.sp-plan[aria-checked="true"] { border-color: var(--g-400); background: rgba(63, 191, 127, 0.14); box-shadow: inset 0 0 0 1px var(--g-400), 0 18px 50px -24px rgba(63, 191, 127, 0.6); }
.sp-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--g-500); color: #04140b; white-space: nowrap; }
.sp-plan-name { font: 650 18px/1.2 var(--font-display); }
.sp-plan-price { font: 750 30px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.sp-plan-per { color: var(--g-300); min-height: 2.6em; }
.sp-plan .sp-gets { flex: 1; margin-top: 8px; }
.sp-up { margin-top: 8px; padding: 8px 10px; text-align: left; font-size: 12.5px; line-height: 1.35; color: var(--g-300); background: rgba(63, 191, 127, 0.08); border: 1px dashed rgba(63, 191, 127, 0.4); }
.sp-up:hover { background: rgba(63, 191, 127, 0.16); }
.sp-alt { align-self: center; margin-top: 14px; padding: 6px 4px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sp-alt.on { color: var(--g-300); }
@media (max-width: 820px) {
  .sp-plans { grid-template-columns: 1fr; }
  .sp-plan.featured { order: -1; transform: none; margin-top: 8px; }
  .sp-plan-per { min-height: 0; }
  .sp-nav .sp-next { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-panel { animation: none; } .sp-bar-fill { transition: none; } }

.sp-plan-unit { font: 500 16px/1 var(--font-ui); letter-spacing: 0; color: var(--ink-2); }
.sp-plan-per { font-size: 14px; }

.sp-pay-card .row { align-items: center; gap: 14px; }
.sp-history { list-style: none; margin: 0; padding: 0; display: grid; }
.sp-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sp-history li:first-child { border-top: 0; }
