/* =========================================================
   步光 · visual system
   ========================================================= */
:root {
  --bg: #f2efe7;
  --bg-deep: #eae5da;
  --surface: #fbfaf6;
  --surface-raised: #fffefb;
  --surface-soft: #f5f2ea;
  --ink: #152119;
  --ink-soft: #354239;
  --muted: #6e796f;
  --muted-2: #929b92;
  --line: rgba(21, 33, 25, 0.12);
  --line-soft: rgba(21, 33, 25, 0.07);
  --line-strong: rgba(21, 33, 25, 0.22);
  --lime: #d8ff43;
  --lime-deep: #c4ef22;
  --lime-soft: #edffc2;
  --forest: #153a2a;
  --forest-2: #1f543c;
  --forest-soft: #2b664b;
  --orange: #ff6b3d;
  --orange-soft: #ffe3d7;
  --red: #cf4a34;
  --sky: #cfe4ff;
  --peach: #ffd8c8;
  --lilac: #e2d9ff;
  --sand: #f0e0bd;
  --mint: #c9efe1;
  --white: #fffefb;
  --black: #0c130f;
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --shadow-sm: 0 4px 20px rgba(28, 38, 30, 0.05);
  --shadow-md: 0 18px 50px rgba(28, 38, 30, 0.08);
  --shadow-lg: 0 36px 110px rgba(28, 38, 30, 0.14);
  --font-sans: "Aptos", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Aptos Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #101611;
  --bg-deep: #0b100c;
  --surface: #172019;
  --surface-raised: #1c261e;
  --surface-soft: #202b23;
  --ink: #edf3e8;
  --ink-soft: #c5d0c2;
  --muted: #93a094;
  --muted-2: #758076;
  --line: rgba(235, 245, 229, 0.12);
  --line-soft: rgba(235, 245, 229, 0.07);
  --line-strong: rgba(235, 245, 229, 0.23);
  --lime: #d8ff43;
  --lime-deep: #c4ef22;
  --lime-soft: #29361a;
  --forest: #1c4a35;
  --forest-2: #285e45;
  --forest-soft: #39785b;
  --orange: #ff875f;
  --orange-soft: #3c271f;
  --red: #ff755f;
  --sky: #283b51;
  --peach: #4e3027;
  --lilac: #372f4d;
  --sand: #463d27;
  --mint: #1f4236;
  --white: #1c261e;
  --black: #080d09;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 55px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 36px 110px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 86% -4%, rgba(216, 255, 67, 0.2), transparent 27rem),
    radial-gradient(circle at -6% 44%, rgba(255, 107, 61, 0.08), transparent 26rem),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 84% -3%, rgba(216, 255, 67, 0.08), transparent 28rem),
    radial-gradient(circle at -5% 50%, rgba(255, 107, 61, 0.07), transparent 25rem),
    var(--bg);
}

html[data-theme="dark"] body::after {
  opacity: 0.36;
}

::selection {
  background: var(--lime);
  color: #102016;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
textarea {
  min-width: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--forest-2);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

html[data-theme="dark"] :focus-visible {
  outline-color: var(--lime);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

[hidden] {
  display: none !important;
}

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

.numeric {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(196, 239, 34, 0.17);
}

.eyebrow--light {
  color: rgba(245, 250, 240, 0.62);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link:hover {
  color: var(--ink);
  gap: 9px;
}

.text-link .icon {
  width: 15px;
  height: 15px;
}

/* =========================================================
   Boot
   ========================================================= */
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 30px;
}

.boot-logo {
  display: flex;
  align-items: center;
  gap: 17px;
  animation: bootIn 0.65s var(--ease) both;
}

.brand-mark--large {
  width: 60px;
  height: 60px;
}

.brand-mark--large svg {
  width: 38px;
  height: 38px;
}

.boot-name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.boot-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.boot-line {
  width: 170px;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.boot-line span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--forest);
  animation: bootLine 1.25s var(--ease) infinite;
}

@keyframes bootIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bootLine {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

/* =========================================================
   Brand + shared header
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #122319;
  box-shadow: inset 0 0 0 1px rgba(17, 33, 22, 0.09);
}

.brand-mark svg {
  width: 29px;
  height: 29px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-name span {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.27em;
  color: var(--muted);
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
  background: linear-gradient(to bottom, var(--bg) 4%, color-mix(in srgb, var(--bg) 78%, transparent) 60%, transparent);
  backdrop-filter: blur(2px);
}

.topbar {
  width: min(calc(100% - 56px), 1180px);
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 2px 9px rgba(23, 36, 26, 0.07);
}

.nav-link .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.nav-link.active .icon {
  opacity: 1;
}

.nav-link .nav-badge {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.user-menu-wrap {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 43px;
  padding: 4px 11px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.user-chip:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.user-chip-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.user-chip .chevron {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.user-menu-wrap.open .chevron {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 210px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: all 0.18s var(--ease);
  z-index: 60;
}

.user-menu-wrap.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-menu-head {
  padding: 10px 11px 11px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 5px;
}

.user-menu-head strong {
  display: block;
  font-size: 13px;
}

.user-menu-head span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.user-menu a,
.user-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: left;
  transition: background 0.15s;
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.user-menu .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.user-menu .danger {
  color: var(--red);
}

.user-menu .menu-sep {
  height: 1px;
  margin: 5px 7px;
  background: var(--line-soft);
}

.mobile-nav {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(20, 32, 24, 0.08);
  line-height: 1;
  user-select: none;
}

.avatar--xs { width: 24px; height: 24px; font-size: 13px; }
.avatar--sm { width: 32px; height: 32px; font-size: 16px; }
.avatar--md { width: 42px; height: 42px; font-size: 21px; }
.avatar--lg { width: 62px; height: 62px; font-size: 31px; }
.avatar--xl { width: 88px; height: 88px; font-size: 44px; }

.avatar--lime { background: linear-gradient(145deg, #dcff52, #bce820); }
.avatar--peach { background: linear-gradient(145deg, #ffe2d2, #ffbda1); }
.avatar--sky { background: linear-gradient(145deg, #dcecff, #a9cdfb); }
.avatar--lilac { background: linear-gradient(145deg, #e9e2ff, #c4b1f9); }
.avatar--sand { background: linear-gradient(145deg, #f8ebcb, #e3cb93); }
.avatar--mint { background: linear-gradient(145deg, #dcf8ed, #a6dfca); }

html[data-theme="dark"] .avatar {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(0.88);
}

/* =========================================================
   Landing / auth
   ========================================================= */
.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0.65;
}

.landing::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(1px);
  opacity: 0.22;
  pointer-events: none;
}

.landing-header {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 72px), 1240px);
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-header .main-nav {
  margin-left: auto;
  margin-right: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  gap: 8px;
}

.landing-header .nav-link {
  padding: 8px 10px;
}

.landing-header .nav-link:hover {
  background: var(--surface);
}

.landing-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: all 0.2s var(--ease);
}

.landing-auth-link:hover {
  background: var(--forest);
  color: #f6f9ec;
  border-color: var(--forest);
}

.landing-main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(calc(100% - 72px), 1240px);
  margin: 0 auto;
  padding: 45px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.landing-copy {
  position: relative;
  max-width: 690px;
  padding: 12px 0 30px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-kicker span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
}

.landing-kicker .icon {
  width: 12px;
  height: 12px;
}

.landing-title {
  position: relative;
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 0.99;
  letter-spacing: -0.075em;
  font-weight: 760;
  z-index: 2;
}

.landing-title .line {
  display: block;
  white-space: nowrap;
}

.landing-title em {
  position: relative;
  display: inline-block;
  font-style: normal;
  z-index: 1;
  padding: 0 0.08em;
}

.landing-title em::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  height: 0.27em;
  background: var(--lime);
  border-radius: 4px;
  transform: rotate(-1.4deg);
}

.landing-title .title-spark {
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.08em;
  color: var(--orange);
  vertical-align: 0.22em;
}

.landing-copy > p {
  max-width: 495px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.landing-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 38px;
  width: fit-content;
}

.landing-stat {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.landing-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-stat strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.landing-stat strong span {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.landing-stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.landing-route-art {
  position: absolute;
  right: -75px;
  bottom: -18px;
  width: 460px;
  height: 270px;
  opacity: 0.31;
  color: var(--forest);
  pointer-events: none;
}

html[data-theme="dark"] .landing-route-art {
  color: var(--lime);
  opacity: 0.17;
}

.landing-route-art svg {
  width: 100%;
  height: 100%;
}

.route-note {
  position: absolute;
  right: 6px;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.route-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.landing-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 45px;
  color: var(--muted);
  font-size: 11.5px;
}

.landing-contact .mini-avatars {
  display: flex;
  padding-left: 4px;
}

.landing-contact .avatar {
  margin-left: -6px;
  border: 2px solid var(--bg);
}

.landing-contact strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.auth-panel {
  position: relative;
  width: 100%;
  max-width: 450px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--surface-raised) 90%, transparent), color-mix(in srgb, var(--surface) 95%, transparent));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--forest) 0 64%, var(--lime) 64% 100%);
}

.auth-panel-inner {
  padding: 29px 32px 28px;
}

.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-stamp .icon {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.auth-tab {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  transition: all 0.2s var(--ease);
}

.auth-tab.active {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(23, 34, 25, 0.08);
}

.auth-heading {
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.auth-sub {
  margin-top: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.field > label span,
.field-label span {
  color: var(--muted-2);
  font-weight: 400;
  font-size: 10.5px;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-control > .icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  padding: 0 14px;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}

.field-control input {
  padding-left: 43px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest-soft);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus {
  border-color: var(--lime);
}

.field textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.65;
}

.field-help {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
}

.input-suffix {
  position: absolute;
  right: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 8px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.password-toggle:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.password-toggle .icon {
  width: 16px;
  height: 16px;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

.remember-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--forest-soft);
  cursor: pointer;
}

.remember-option small {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8px;
}

.form-error {
  display: none;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
  font-size: 11.5px;
  line-height: 1.6;
}

.form-error.show {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.form-error .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.65;
}

.auth-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.auth-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 32px;
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
  color: var(--muted);
  font-size: 10px;
}

.auth-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.auth-contact .icon {
  width: 12px;
  height: 12px;
}

.landing-footer {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 72px), 1240px);
  margin: 0 auto;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 10px;
}

.landing-footer span {
  letter-spacing: 0.02em;
}

.landing-footer a {
  color: var(--muted);
}

.landing-footer a:hover {
  color: var(--ink);
}

/* =========================================================
   Buttons / pills / shared bits
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 11.5px;
}

.btn-lg {
  height: 54px;
  padding: 0 26px;
  font-size: 14px;
}

.btn-accent {
  background: var(--lime);
  color: #122117;
  box-shadow: 0 9px 24px rgba(180, 225, 20, 0.17);
}

.btn-accent:hover:not(:disabled) {
  background: var(--lime-deep);
  box-shadow: 0 12px 28px rgba(180, 225, 20, 0.25);
}

.btn-dark {
  background: var(--forest);
  color: #f7faef;
}

.btn-dark:hover:not(:disabled) {
  background: var(--forest-2);
}

html[data-theme="dark"] .btn-dark {
  background: var(--lime);
  color: #122117;
}

html[data-theme="dark"] .btn-dark:hover:not(:disabled) {
  background: var(--lime-deep);
}

.btn-light {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line);
}

.btn-light:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 24%, transparent);
}

.btn-danger-ghost:hover:not(:disabled) {
  background: color-mix(in srgb, var(--red) 8%, transparent);
}

.btn-block {
  width: 100%;
}

.btn[aria-busy="true"] {
  pointer-events: none;
}

.btn .btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--surface-soft);
  color: var(--muted);
}

.pill .icon {
  width: 12px;
  height: 12px;
}

.pill--lime {
  background: color-mix(in srgb, var(--lime) 22%, transparent);
  color: color-mix(in srgb, var(--forest) 72%, var(--ink));
}

html[data-theme="dark"] .pill--lime {
  color: var(--lime);
  background: rgba(216, 255, 67, 0.11);
}

.pill--orange {
  background: color-mix(in srgb, var(--orange) 13%, transparent);
  color: var(--orange);
}

.pill--dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 250, 240, 0.7);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 26px;
}

.divider {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 24px;
  color: var(--muted);
}

.empty-state .empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 15px;
}

.empty-state h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}

.empty-state p {
  max-width: 310px;
  font-size: 11.5px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 17px;
}

/* =========================================================
   Page frame / footer / mobile nav
   ========================================================= */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: min(calc(100% - 56px), 1180px);
  margin: 0 auto;
  padding: 38px 0 88px;
  animation: pageIn 0.48s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-head-copy .eyebrow {
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.page-sub {
  max-width: 600px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  width: min(calc(100% - 56px), 1180px);
  margin: 0 auto;
  padding: 21px 0 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-brand .brand-mark svg {
  width: 18px;
  height: 18px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .footer-contact {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-loading {
  min-height: 55vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.page-loading .loader-ring {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

html[data-theme="dark"] .page-loading .loader-ring {
  border-top-color: var(--lime);
}

.page-error {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.page-error .error-code {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--line-strong);
  letter-spacing: -0.06em;
}

.page-error h2 {
  font-size: 21px;
}

.page-error p {
  color: var(--muted);
  font-size: 12px;
}

.page-error .btn {
  margin-top: 12px;
}

/* =========================================================
   Dashboard
   ========================================================= */
.dash-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.dash-greeting .eyebrow {
  margin-bottom: 9px;
}

.dash-greeting h1 {
  font-size: clamp(31px, 3.7vw, 45px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.dash-greeting h1 .wave {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  transform-origin: 70% 70%;
  animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  65% { transform: rotate(15deg); }
  72% { transform: rotate(-6deg); }
  79% { transform: rotate(10deg); }
}

.dash-greeting .greeting-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dash-greeting-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
}

.date-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.date-stamp .icon {
  width: 15px;
  height: 15px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(295px, 0.84fr);
  gap: 16px;
  align-items: stretch;
}

.plan-hero {
  position: relative;
  min-height: 384px;
  padding: 29px 31px;
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: #f6f9ee;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 55px rgba(19, 46, 33, 0.16);
}

.plan-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 490px;
  height: 490px;
  right: -210px;
  top: -250px;
  border-radius: 50%;
  background: rgba(216, 255, 67, 0.12);
  border: 1px solid rgba(216, 255, 67, 0.19);
}

.plan-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 340px;
  height: 340px;
  right: -105px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(216, 255, 67, 0.14);
}

.hero-contour {
  position: absolute;
  z-index: -1;
  right: -25px;
  bottom: -50px;
  width: 52%;
  max-width: 390px;
  color: rgba(216, 255, 67, 0.22);
  pointer-events: none;
}

.hero-contour svg {
  width: 100%;
  height: auto;
}

.plan-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.plan-hero .eyebrow {
  color: rgba(245, 250, 240, 0.58);
}

.plan-hero .eyebrow .dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 67, 0.14);
}

.hero-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(245, 250, 240, 0.16);
  border-radius: 999px;
  color: rgba(245, 250, 240, 0.67);
  font-size: 10.5px;
  transition: all 0.2s var(--ease);
}

.hero-edit:hover {
  color: #fff;
  border-color: rgba(245, 250, 240, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.hero-edit .icon {
  width: 12px;
  height: 12px;
}

.plan-hero h2 {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin-top: 20px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.plan-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.plan-progress-block {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 35px;
}

.plan-progress-numbers {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.plan-completed {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.plan-completed strong {
  font-size: clamp(61px, 7vw, 91px);
  font-weight: 700;
}

.plan-completed span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(245, 250, 240, 0.5);
}

.plan-percent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
}

.plan-percent .percent-ring {
  position: relative;
  width: 54px;
  height: 54px;
}

.plan-percent .percent-ring svg {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.plan-percent .percent-ring circle {
  fill: none;
  stroke-width: 3.5;
}

.plan-percent .ring-bg {
  stroke: rgba(255, 255, 255, 0.12);
}

.plan-percent .ring-fg {
  stroke: var(--lime);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}

.plan-percent .percent-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.plan-percent-note {
  font-size: 10px;
  color: rgba(245, 250, 240, 0.47);
  line-height: 1.5;
}

.plan-percent-note strong {
  display: block;
  color: rgba(245, 250, 240, 0.86);
  font-size: 11px;
  font-weight: 650;
}

.hero-progress-track {
  height: 7px;
  margin-top: 17px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.hero-progress-track span {
  display: block;
  height: 100%;
  min-width: 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, #e7ff80, var(--lime));
  box-shadow: 0 0 18px rgba(216, 255, 67, 0.37);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  color: rgba(245, 250, 240, 0.58);
  font-size: 10.5px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-meta .icon {
  width: 12px;
  height: 12px;
  color: rgba(216, 255, 67, 0.72);
}

.hero-days {
  display: flex;
  gap: 5px;
  align-items: center;
}

.hero-day {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(245, 250, 240, 0.43);
  font-size: 8.5px;
  font-weight: 600;
}

.hero-day.planned {
  border-color: rgba(216, 255, 67, 0.42);
  color: var(--lime);
}

.hero-day.done {
  background: var(--lime);
  border-color: var(--lime);
  color: #142218;
}

.hero-day.today {
  box-shadow: 0 0 0 2px rgba(216, 255, 67, 0.19);
}

.today-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 384px;
  padding: 26px 26px 24px;
  border-radius: var(--radius-xl);
  background: var(--lime);
  color: #142218;
  overflow: hidden;
  isolation: isolate;
}

.today-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(20, 34, 24, 0.16);
  border-radius: 50%;
  right: -75px;
  top: -90px;
}

.today-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  left: -75px;
  bottom: -95px;
}

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

.today-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 34, 24, 0.53);
}

.today-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(20, 34, 24, 0.09);
  color: rgba(20, 34, 24, 0.7);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.today-card .status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a5539;
}

.today-date {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.today-date strong {
  font-family: var(--font-display);
  font-size: 83px;
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: -0.085em;
}

.today-date .today-weekday {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 5px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(20, 34, 24, 0.58);
}

.today-plan {
  margin-top: auto;
  padding-top: 24px;
}

.today-plan .today-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(20, 34, 24, 0.56);
}

.today-plan .today-kicker .icon {
  width: 13px;
  height: 13px;
}

.today-plan h3 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.today-targets {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(20, 34, 24, 0.65);
}

.today-targets span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.today-targets strong {
  color: #142218;
  font-size: 15px;
  font-weight: 700;
}

.today-targets .sep {
  width: 1px;
  height: 12px;
  background: rgba(20, 34, 24, 0.18);
}

.today-card .btn {
  margin-top: 17px;
  width: 100%;
  background: #142218;
  color: #f4f8e8;
  box-shadow: none;
}

.today-card .btn:hover {
  background: #203328;
}

.today-card .btn .icon {
  transition: transform 0.2s var(--ease);
}

.today-card .btn:hover .icon {
  transform: translateX(3px);
}

.today-speed-note {
  margin-top: 9px;
  text-align: center;
  color: rgba(20, 34, 24, 0.46);
  font-size: 9px;
}

.today-rest {
  margin-top: auto;
}

.today-rest h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.today-rest p {
  margin-top: 7px;
  color: rgba(20, 34, 24, 0.58);
  font-size: 11px;
  line-height: 1.65;
}

.today-next {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 10px;
  font-weight: 650;
  color: rgba(20, 34, 24, 0.6);
}

.today-next .icon {
  width: 13px;
  height: 13px;
}

.empty-plan-hero {
  position: relative;
  min-height: 384px;
  padding: 31px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-soft) 86%, transparent));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.empty-plan-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -160px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-plan-art {
  width: 100%;
  max-width: 450px;
  color: var(--line-strong);
  position: absolute;
  right: -20px;
  bottom: -7px;
  opacity: 0.9;
}

.empty-plan-copy {
  position: relative;
  z-index: 2;
  max-width: 410px;
}

.empty-plan-copy h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.5vw, 41px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1.14;
}

.empty-plan-copy p {
  max-width: 355px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.empty-plan-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.empty-plan-actions .hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.empty-plan-actions .hint .icon {
  width: 13px;
  height: 13px;
}

.empty-today {
  min-height: 384px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.empty-today-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-today .empty-orbit {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 10px auto;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
}

.empty-today .empty-orbit .icon {
  width: 34px;
  height: 34px;
}

.empty-today p {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

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

.stat-card {
  position: relative;
  padding: 19px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.stat-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.stat-icon .icon {
  width: 14px;
  height: 14px;
}

.stat-icon--lime {
  background: color-mix(in srgb, var(--lime) 30%, transparent);
  color: var(--forest);
}

html[data-theme="dark"] .stat-icon--lime {
  color: var(--lime);
}

.stat-icon--orange {
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-value small {
  font-family: var(--font-sans);
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.stat-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
}

.stat-foot strong {
  color: var(--muted);
  font-weight: 650;
}

.stat-mini-bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.stat-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest-soft);
}

html[data-theme="dark"] .stat-mini-bar span {
  background: var(--lime);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(300px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 89%, transparent);
  box-shadow: var(--shadow-sm);
}

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

.panel-head h2 {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.panel-head .panel-note {
  color: var(--muted);
  font-size: 10px;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 3px;
  border-top: 1px solid var(--line-soft);
  transition: padding 0.2s var(--ease), opacity 0.2s;
}

.recent-row:first-child {
  border-top: 0;
}

.recent-row:hover {
  padding-left: 7px;
}

.run-date-tile {
  width: 43px;
  height: 45px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.run-date-tile strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.run-date-tile span {
  color: var(--muted);
  font-size: 8px;
}

.recent-main {
  min-width: 0;
  flex: 1;
}

.recent-session {
  display: inline-block !important;
  width: fit-content;
  margin-top: 3px !important;
  padding: 1px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--lime) 16%, transparent);
  color: var(--forest-soft) !important;
  font-size: 7px !important;
  font-weight: 600;
}

html[data-theme="dark"] .recent-session {
  color: var(--lime) !important;
}

.recent-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.recent-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.recent-distance {
  text-align: right;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.recent-distance small {
  margin-left: 2px;
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.recent-row .row-arrow {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}

.recent-row:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
}

.week-card {
  display: flex;
  flex-direction: column;
}

.week-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 126px;
  margin-top: 13px;
  padding: 0 2px;
}

.week-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.week-bar {
  position: relative;
  width: min(100%, 24px);
  min-height: 4px;
  border-radius: 7px 7px 4px 4px;
  background: var(--surface-soft);
  overflow: hidden;
  transition: height 0.7s var(--ease);
}

.week-bar span {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest-soft);
}

.week-bar.has-run span {
  background: var(--forest);
}

html[data-theme="dark"] .week-bar.has-run span {
  background: var(--lime);
}

.week-bar.today span {
  background: var(--orange);
}

.week-bar-wrap small {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1;
}

.week-bar-wrap.today small {
  color: var(--orange);
  font-weight: 700;
}

.week-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 9.5px;
}

.week-card-foot strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.contact-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.contact-strip .contact-strip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  flex: 0 0 auto;
}

.contact-strip .contact-strip-icon .icon {
  width: 16px;
  height: 16px;
}

.contact-strip-copy {
  min-width: 0;
  flex: 1;
}

.contact-strip-copy strong {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}

.contact-strip-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.contact-strip .text-link {
  font-size: 10.5px;
}

/* =========================================================
   Dataset generator
   ========================================================= */
.generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.72fr);
  gap: 15px;
  align-items: stretch;
}

.generator-card {
  padding: 27px 28px 23px;
}

.generator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line-soft);
}

.generator-head .eyebrow {
  margin-bottom: 9px;
}

.generator-head h2 {
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 750;
  letter-spacing: -0.05em;
}

.generator-head p {
  max-width: 500px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.generator-head > .pill {
  margin-top: 3px;
  flex: 0 0 auto;
}

.generator-card .plan-step {
  margin-top: 21px;
}

.generator-card .plan-step:first-of-type {
  margin-top: 0;
}

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

.credential-grid .field-control input {
  height: 44px;
  font-size: 12px;
}

.credential-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}

.credential-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--orange);
}

.generator-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 21px;
  align-items: end;
}

.generator-meta-grid .field input {
  height: 45px;
}

.generate-preview {
  min-height: 45px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 52%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.preview-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8.5px;
  line-height: 1.5;
}

.preview-line-item span {
  color: var(--muted-2);
  flex: 0 0 auto;
}

.preview-line-item strong {
  color: var(--ink-soft);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.generator-push-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.push-note-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 24%, transparent);
  color: var(--forest);
}

html[data-theme="dark"] .push-note-icon {
  color: var(--lime);
}

.push-note-icon .icon {
  width: 12px;
  height: 12px;
}

.generator-actions .btn {
  flex: 0 0 auto;
}

.generator-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.points-card {
  padding: 19px 20px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--lime) 17%, var(--surface)), color-mix(in srgb, var(--surface) 93%, transparent));
}

.points-card.is-low {
  border-color: color-mix(in srgb, var(--orange) 20%, var(--line));
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--orange) 6%, var(--surface)), color-mix(in srgb, var(--surface) 94%, transparent));
}

.points-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.points-card-top .eyebrow {
  font-size: 8px;
}

.points-rate {
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
  font-size: 7.5px;
  white-space: nowrap;
}

.points-balance-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 13px;
  line-height: 1;
}

.points-balance-row strong {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.points-balance-row span {
  color: var(--muted);
  font-size: 9px;
}

.points-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 8.5px;
}

.points-cost-row strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 550;
}

.points-cost-row b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.points-status {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
}

.points-card.is-low .points-status {
  color: var(--orange);
}

.points-card.is-ok .points-status {
  color: var(--forest-soft);
}

html[data-theme="dark"] .points-card.is-ok .points-status {
  color: var(--lime);
}

.points-card-actions {
  margin-top: 12px;
}

.points-card-actions .btn {
  width: 100%;
  height: 36px;
  font-size: 9.5px;
}

.qq-push-card {
  position: relative;
  flex: 1;
  min-height: 244px;
  padding: 24px 23px 19px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: #f6faef;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.qq-push-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -130px;
  top: -140px;
  border-radius: 50%;
  border: 1px solid rgba(216, 255, 67, 0.16);
}

.qq-push-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  background: var(--lime);
  color: #142218;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 6px rgba(216, 255, 67, 0.08);
}

.qq-push-card h2 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.qq-push-card > p {
  margin-top: 7px;
  color: rgba(245, 250, 240, 0.48);
  font-size: 9.5px;
  line-height: 1.7;
}

.qq-last-status {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 13px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 8.5px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 250, 240, 0.48);
}

.qq-last-status .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.qq-last-status.is-success {
  color: var(--lime);
  background: rgba(216, 255, 67, 0.08);
}

.qq-last-status.is-error {
  color: #ffab96;
  background: rgba(255, 117, 95, 0.08);
}

.qq-push-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 250, 240, 0.38);
  font-size: 8px;
}

.qq-push-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qq-push-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(216, 255, 67, 0.82);
  font-weight: 600;
}

.qq-push-meta .icon {
  width: 11px;
  height: 11px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.status-dot.on {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 67, 0.12);
}

.last-batch-mini {
  padding: 20px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.last-batch-mini .eyebrow {
  font-size: 8.5px;
}

.last-batch-mini h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.last-batch-mini > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.last-batch-mini.empty {
  text-align: center;
  padding: 23px 20px;
}

.last-batch-mini.empty h3 {
  font-size: 14px;
}

.last-batch-mini.empty p {
  max-width: 230px;
  margin: 5px auto 0;
  font-size: 9px;
  line-height: 1.65;
}

.empty-mini-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 13px auto 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--muted-2);
}

.empty-mini-icon .icon {
  width: 16px;
  height: 16px;
}

.mini-batch-numbers {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 8.5px;
}

.mini-batch-numbers strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-right: 2px;
}

.mini-batch-progress {
  height: 4px;
  margin-top: 11px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.mini-batch-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

html[data-theme="dark"] .mini-batch-progress span {
  background: var(--lime);
}

.mini-batch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
}

.batch-panel {
  margin-top: 15px;
  padding: 25px 26px 17px;
}

.batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 19px;
}

.batch-head .eyebrow {
  margin-bottom: 8px;
}

.batch-head h2 {
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 740;
  letter-spacing: -0.045em;
}

.batch-head > div > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.batch-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.push-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.push-badge .icon {
  width: 11px;
  height: 11px;
}

.push-badge.is-sent {
  color: #27553b;
  background: color-mix(in srgb, var(--lime) 31%, transparent);
}

html[data-theme="dark"] .push-badge.is-sent {
  color: var(--lime);
}

.push-badge.is-failed {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 9%, transparent);
}

.push-badge.is-muted {
  color: var(--muted);
  background: var(--surface-soft);
}

.batch-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 0;
}

.batch-metrics > div {
  padding: 0 16px;
  border-left: 1px solid var(--line-soft);
}

.batch-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.batch-metrics small {
  color: var(--muted-2);
  font-size: 8px;
}

.batch-metrics strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.batch-metrics strong span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.batch-progress-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 8px;
}

.batch-progress-note .icon {
  width: 11px;
  height: 11px;
  color: var(--orange);
}

.batch-progress-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.batch-progress-row > span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.batch-progress {
  width: 140px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.batch-progress i {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: inherit;
}

html[data-theme="dark"] .batch-progress i {
  background: var(--lime);
}

.batch-progress-row strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 9px;
}

.batch-progress-row > span:last-child {
  margin-left: auto;
}

.data-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th {
  padding: 8px 9px;
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 650;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 2px;
  width: 35px;
}

.data-table td {
  padding: 9px 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: color-mix(in srgb, var(--surface-soft) 40%, transparent);
}

.data-table td strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.data-table .unit {
  color: var(--muted-2);
  font-size: 7.5px;
}

.data-index {
  color: var(--muted-2) !important;
  font-family: var(--font-display);
  font-size: 8px !important;
}

.data-date {
  color: var(--ink-soft);
  font-weight: 550;
  margin-right: 6px;
}

.data-weekday {
  color: var(--muted-2);
  font-size: 7.5px;
}

.batch-admin-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

.batch-admin-foot .icon {
  width: 11px;
  height: 11px;
}

.batch-admin-foot a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-weight: 600;
}

.batch-admin-foot a .icon {
  width: 11px;
  height: 11px;
}

.batch-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  padding: 23px 25px;
}

.batch-empty .empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.batch-empty .empty-icon .icon {
  width: 20px;
  height: 20px;
}

.batch-empty h2 {
  font-size: 15px;
  font-weight: 700;
}

.batch-empty p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

/* =========================================================
   Admin overview
   ========================================================= */
.overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.overview-kpi {
  padding: 18px 20px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 87%, transparent);
}

.overview-kpi.accent {
  background: var(--lime);
  border-color: transparent;
  color: #142218;
}

.overview-kpi > span {
  color: var(--muted);
  font-size: 9px;
}

.overview-kpi.accent > span {
  color: rgba(20, 34, 24, 0.55);
}

.overview-kpi strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.overview-kpi strong small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.overview-kpi.accent strong small {
  color: rgba(20, 34, 24, 0.5);
}

.overview-kpi p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
}

.overview-kpi.accent p {
  color: rgba(20, 34, 24, 0.5);
}

.collection-bar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px 36px;
  align-items: center;
  margin-top: 11px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--surface) 93%, transparent), color-mix(in srgb, var(--surface-soft) 75%, transparent));
}

.collection-copy .eyebrow {
  margin-bottom: 7px;
}

.collection-copy > strong {
  display: block;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.collection-copy > strong span {
  color: var(--forest-soft);
  font-family: var(--font-display);
  font-weight: 650;
}

.collection-copy > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.collection-bar {
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.collection-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-soft), var(--lime-deep));
}

.collection-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.collection-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
}

.collection-chips .icon {
  width: 10px;
  height: 10px;
}

.overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin: 17px 0 11px;
}

.overview-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(330px, 100%);
}

.overview-search > .icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.overview-search input {
  width: 100%;
  height: 38px;
  padding: 0 13px 0 37px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 10.5px;
  outline: none;
}

.overview-search input:focus {
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 24%, transparent);
}

.overview-toolbar .segmented button span {
  margin-left: 3px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 8px;
}

.admin-table-card {
  padding: 22px 22px 9px;
}

.admin-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.admin-table-head h2 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.admin-table-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: 9px 10px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-soft) 38%, transparent);
}

.admin-runner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
}

.admin-runner strong {
  display: block;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.4;
}

.admin-runner span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.4;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.status-tag.is-completed {
  color: #24553b;
  background: color-mix(in srgb, var(--lime) 30%, transparent);
}

html[data-theme="dark"] .status-tag.is-completed {
  color: var(--lime);
}

.status-tag.is-progress {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 10%, transparent);
}

.status-tag.is-records {
  color: #3d6492;
  background: color-mix(in srgb, var(--sky) 45%, transparent);
}

html[data-theme="dark"] .status-tag.is-records {
  color: #9dc9f6;
}

.status-tag.is-empty {
  color: var(--muted);
  background: var(--surface-soft);
}

.admin-plan {
  max-width: 210px;
}

.admin-plan strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
}

.admin-plan span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.4;
}

.admin-plan-account {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  color: var(--orange);
  font-size: 7.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-plan-account .icon {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.admin-muted {
  color: var(--muted-2);
  font-size: 8.5px;
}

.admin-points-balance {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.admin-points-balance strong {
  color: var(--forest-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

html[data-theme="dark"] .admin-points-balance strong {
  color: var(--lime);
}

.admin-points-balance span {
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-record-count {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
  width: 74px;
}

.admin-record-count strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.admin-record-count > span {
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-record-count small {
  width: 100%;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 100px;
}

.admin-progress-track {
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.admin-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest-soft);
}

html[data-theme="dark"] .admin-progress-track span {
  background: var(--lime);
}

.admin-progress small {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 8px;
}

.admin-last strong {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
}

.admin-last span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  transition: all 0.18s;
}

.admin-view-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.admin-view-btn .icon {
  width: 10px;
  height: 10px;
}

.invite-code-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: 11px;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, var(--line));
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 34%),
    var(--surface);
}

.invite-code-copy {
  max-width: 420px;
}

.invite-code-copy h2 {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.invite-code-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.invite-code-editor {
  min-width: min(100%, 430px);
  flex: 1;
}

.invite-code-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.invite-code-row input {
  min-width: 190px;
  flex: 1;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.invite-code-row input:focus {
  outline: 0;
  border-color: var(--forest-soft);
  background: var(--surface);
}

.invite-code-editor > small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.my-invite-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 19px;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, var(--line));
  border-radius: 15px;
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 32%),
    var(--surface-soft);
}

.my-invite-code-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.my-invite-label {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.my-invite-code-wrap strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.my-invite-code-wrap strong.is-empty {
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.my-invite-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
}

.my-invite-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.65;
}

.my-invite-note .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
}

@media (max-width: 620px) {
  .my-invite-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-invite-actions {
    width: 100%;
  }

  .my-invite-actions .btn {
    flex: 1;
  }
}

.admin-login-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-login-delete {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  transition: all 0.18s;
}

.admin-login-delete:hover {
  color: var(--danger, #a4442f);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
  background: color-mix(in srgb, var(--orange) 8%, transparent);
}

.admin-login-delete .icon {
  width: 11px;
  height: 11px;
}

.admin-login-table {
  min-width: 980px;
}

.login-detail-head {
  align-items: flex-start;
  flex-wrap: wrap;
  padding-right: 56px;
}

.login-detail-heading {
  min-width: 0;
  flex: 1;
}

.login-detail-balance {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--lime) 34%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--lime) 10%, var(--surface));
  text-align: right;
}

.login-detail-balance small,
.login-detail-balance span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.login-detail-balance strong {
  display: block;
  margin: 1px 0;
  color: var(--forest-soft);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

html[data-theme="dark"] .login-detail-balance strong {
  color: var(--lime);
}

.login-detail-stats {
  margin-bottom: 14px;
}

.login-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(255px, 0.75fr);
  gap: 13px;
}

.login-detail-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
}

.login-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.login-detail-section-head small {
  display: block;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-detail-section-head h3 {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.login-detail-section-head .pill {
  flex: 0 0 auto;
}

.login-detail-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}

.login-detail-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
}

.login-detail-form label.full {
  grid-column: 1 / -1;
}

.login-detail-form input {
  width: 100%;
  height: 33px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 9.5px;
  outline: 0;
}

.login-detail-form input:focus {
  border-color: var(--forest-soft);
  background: var(--surface);
}

.login-detail-subhead {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.login-detail-optional {
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 400;
}

.login-detail-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.login-detail-wallet {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0 10px;
}

.login-detail-wallet strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.login-detail-wallet span {
  color: var(--muted-2);
  font-size: 8px;
}

.login-points-form {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.login-points-form input {
  min-width: 0;
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 9px;
  outline: 0;
}

.login-points-form input:focus {
  border-color: var(--forest-soft);
}

.login-points-form .btn {
  height: 32px;
  font-size: 8.5px;
}

.login-detail-history {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}

.login-detail-history-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--muted-2);
  font-size: 7.5px;
}

.login-detail-history-row > span:first-child {
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.login-detail-history-row > span:first-child.is-in {
  color: var(--forest-soft);
  background: color-mix(in srgb, var(--lime) 25%, transparent);
}

.login-detail-history-row > span:first-child.is-out {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
}

.login-detail-history-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-detail-history-row > strong {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
}

.login-detail-history-row > strong.is-in {
  color: var(--forest-soft);
}

.login-detail-history-row > strong.is-out {
  color: var(--orange);
}

.login-detail-history-row small {
  color: var(--muted-2);
  font-size: 6.8px;
}

.login-world-list {
  margin-top: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.login-world-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
}

.login-world-row:first-child {
  border-top: 0;
}

.login-world-main {
  min-width: 160px;
  flex: 1;
}

.login-world-main strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.login-world-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.login-world-record {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 54px;
}

.login-world-record strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
}

.login-world-record span {
  color: var(--muted-2);
  font-size: 7px;
}

@media (max-width: 880px) {
  .login-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .login-detail-balance {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .login-detail-form {
    grid-template-columns: 1fr;
  }

  .login-detail-form label.full {
    grid-column: auto;
  }

  .login-detail-form label,
  .login-detail-subhead,
  .login-detail-actions {
    grid-column: auto;
  }

  .login-world-row {
    flex-wrap: wrap;
    gap: 7px;
  }

  .login-world-main {
    flex-basis: 100%;
  }
}

.admin-login-row td {
  border-bottom: 0;
  background: color-mix(in srgb, var(--surface-soft) 34%, transparent);
}

.admin-login-row:hover td {
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
}

.admin-login-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-login-identity:hover strong {
  color: var(--forest-soft);
}

.admin-login-identity > span {
  min-width: 0;
}

.admin-login-identity strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-login-identity small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.admin-world-count strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.admin-world-count strong small {
  margin-left: 2px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 500;
}

.admin-world-count strong em {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.admin-login-status-note {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 7.5px;
  white-space: nowrap;
}

.admin-login-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  transition: all 0.18s;
}

.admin-login-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.admin-login-toggle .icon {
  width: 10px;
  height: 10px;
}

.admin-world-container > td {
  padding: 0 10px 14px 52px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface-soft) 24%, transparent);
}

.admin-world-panel {
  padding: 12px 14px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface);
}

.admin-world-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.admin-world-panel-head > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 650;
}

.admin-world-panel-head .icon {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
}

.admin-world-panel-head small {
  color: var(--muted-2);
  font-size: 7.5px;
  white-space: nowrap;
}

.admin-world-table-wrap {
  overflow-x: auto;
}

.admin-world-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-world-table th {
  padding: 7px 8px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.admin-world-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.admin-world-table tr:last-child td {
  border-bottom: 0;
}

.admin-world-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-soft) 42%, transparent);
}

.admin-world-account-cell {
  min-width: 128px;
}

.admin-world-account-cell strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.4;
}

.admin-world-account-cell small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-world-row .admin-record-count {
  width: 64px;
}

.push-history-card {
  margin-top: 11px;
  padding: 20px 22px 11px;
}

.push-history {
  margin-top: 4px;
}

.push-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-top: 1px solid var(--line-soft);
}

.push-history-row:first-child {
  border-top: 0;
}

.push-history-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
}

.push-history-icon .icon {
  width: 11px;
  height: 11px;
}

.push-history-icon.is-sent {
  color: #26553b;
  background: color-mix(in srgb, var(--lime) 30%, transparent);
}

html[data-theme="dark"] .push-history-icon.is-sent {
  color: var(--lime);
}

.push-history-icon.is-failed {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 9%, transparent);
}

.push-history-row > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.push-history-row strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.push-history-row > div:nth-child(2) span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.push-history-side {
  text-align: right;
  flex: 0 0 auto;
}

.push-history-side span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
  white-space: nowrap;
}

.push-history-side small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.5px;
}

/* participant modal */
.participant-modal {
  max-width: 760px;
  padding: 0;
}

.participant-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 25px 27px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.participant-head .eyebrow {
  margin-bottom: 5px;
}

.participant-head h2 {
  font-size: 24px;
  font-weight: 740;
  letter-spacing: -0.045em;
}

.participant-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.participant-head > .status-tag {
  margin-left: auto;
}

.participant-body {
  padding: 21px 27px 25px;
}

.participant-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
}

.participant-stats > div {
  padding: 0 15px;
  border-left: 1px solid var(--line-soft);
}

.participant-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.participant-stats small {
  color: var(--muted-2);
  font-size: 8px;
}

.participant-stats strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.participant-stats strong span {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 7.5px;
  letter-spacing: 0;
}

.admin-points-card {
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
}

.admin-points-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.admin-points-head > div {
  flex: 0 0 auto;
}

.admin-points-head small {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-points-head strong {
  display: inline-block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.admin-points-head > div > span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-points-form {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: flex-end;
}

.admin-points-form input {
  width: 88px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 10px;
  outline: none;
}

.admin-points-form input[type="text"] {
  width: 130px;
  font-family: var(--font-sans);
  font-size: 9px;
}

.admin-points-form input:focus {
  border-color: var(--forest-soft);
}

.admin-points-form .btn {
  height: 32px;
  font-size: 8.5px;
  padding: 0 11px;
}

.admin-points-history {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.admin-points-history-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-points-history-row > span:first-child {
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.admin-points-history-row > span:first-child.is-in {
  color: var(--forest-soft);
  background: color-mix(in srgb, var(--lime) 25%, transparent);
}

html[data-theme="dark"] .admin-points-history-row > span:first-child.is-in {
  color: var(--lime);
}

.admin-points-history-row > span:first-child.is-out {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
}

.admin-points-history-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-points-history-row > strong {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
}

.admin-points-history-row > strong.is-in {
  color: var(--forest-soft);
}

html[data-theme="dark"] .admin-points-history-row > strong.is-in {
  color: var(--lime);
}

.admin-points-history-row > strong.is-out {
  color: var(--orange);
}

.admin-points-history-row small {
  color: var(--muted-2);
  font-size: 7px;
}

.sports-credential-card {
  margin-top: 15px;
  padding: 13px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--orange) 5%, var(--surface));
}

.sports-credential-card.empty {
  border-style: dashed;
  border-color: var(--line);
  background: var(--surface-soft);
}

.sports-credential-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sports-credential-head small {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.sports-credential-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.sports-credential-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.sports-credential-rows > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-raised);
  min-width: 0;
}

.sports-credential-rows span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 7.5px;
}

.sports-credential-rows strong {
  min-width: 0;
  flex: 1;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credential-copy {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--muted-2);
  transition: background 0.18s, color 0.18s;
}

.credential-copy:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.credential-copy .icon {
  width: 11px;
  height: 11px;
}

.sports-credential-card > p {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 7.5px;
  line-height: 1.6;
}

.admin-plan-card {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.admin-plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-plan-card small {
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-plan-card h3 {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

.admin-plan-progress {
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.admin-plan-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--forest-soft);
}

.admin-plan-next {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-plan-next .icon {
  width: 10px;
  height: 10px;
  color: var(--orange);
}

html[data-theme="dark"] .admin-plan-progress span {
  background: var(--lime);
}

.admin-record-list {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 3px;
}

.admin-record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-top: 1px solid var(--line-soft);
}

.admin-record-row:first-child {
  border-top: 0;
}

.admin-record-date {
  width: 29px;
  flex: 0 0 auto;
  text-align: center;
}

.admin-record-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
}

.admin-record-date span {
  color: var(--muted-2);
  font-size: 7px;
}

.admin-record-main {
  flex: 1;
  min-width: 0;
}

.admin-record-main strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record-main span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.admin-session {
  display: block;
  width: fit-content;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--lime) 16%, transparent);
  color: var(--forest-soft);
  font-size: 7px;
  font-weight: 600;
}

.admin-pending {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--orange) 8%, transparent);
  color: var(--orange);
  font-size: 6.5px;
  font-weight: 600;
  vertical-align: middle;
}

html[data-theme="dark"] .admin-session {
  color: var(--lime);
}

.admin-record-metric {
  flex: 0 0 auto;
  text-align: right;
  min-width: 48px;
}

.admin-record-metric strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-record-metric small {
  margin-left: 1px;
  color: var(--muted-2);
  font-size: 7px;
}

.admin-record-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted-2);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.admin-record-delete:hover {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 7%, transparent);
  border-color: color-mix(in srgb, var(--red) 20%, transparent);
}

.admin-record-delete .icon {
  width: 12px;
  height: 12px;
}

.participant-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 8px;
}

.participant-foot > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.participant-foot .icon {
  width: 11px;
  height: 11px;
}

/* =========================================================
   QQ settings
   ========================================================= */
.qq-config-status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.qq-config-status.is-on {
  border-color: color-mix(in srgb, var(--lime) 40%, var(--line));
  background: color-mix(in srgb, var(--lime) 7%, var(--surface));
}

.qq-config-dot {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--muted);
}

.qq-config-status.is-on .qq-config-dot {
  background: var(--lime);
  color: #142218;
}

.qq-config-dot .icon {
  width: 14px;
  height: 14px;
}

.qq-config-status > div {
  min-width: 0;
  flex: 1;
}

.qq-config-status > div strong {
  display: block;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
}

.qq-config-status > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.qq-form {
  margin-top: 17px;
}

.qq-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}

.qq-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.qq-toggle-track {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 99px;
  background: var(--line-strong);
  flex: 0 0 auto;
  transition: background 0.2s;
}

.qq-toggle-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease);
}

.qq-toggle input:checked + .qq-toggle-track {
  background: var(--forest);
}

html[data-theme="dark"] .qq-toggle input:checked + .qq-toggle-track {
  background: var(--lime);
}

.qq-toggle input:checked + .qq-toggle-track i {
  transform: translateX(15px);
}

.qq-toggle > span:last-child strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
}

.qq-toggle > span:last-child small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8px;
}

.qq-actions {
  display: flex;
  gap: 7px;
}

.qq-config-last {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted);
}

.qq-config-last .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.qq-config-last.is-sent { color: var(--forest-soft); }
html[data-theme="dark"] .qq-config-last.is-sent { color: var(--lime); }
.qq-config-last.is-error { color: var(--red); }

.qq-config-history {
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.qq-config-history-head {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qq-config-history-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 8px;
}

.qq-config-history-row:first-of-type {
  border-top: 0;
}

.qq-config-history-row .dot-ok,
.qq-config-history-row .dot-fail {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.qq-config-history-row .dot-ok { background: var(--forest-soft); }
.qq-config-history-row .dot-fail { background: var(--red); }
.qq-config-history-row strong { color: var(--ink-soft); font-weight: 600; }
.qq-config-history-row small { margin-left: auto; color: var(--muted-2); font-size: 7.5px; }

.qq-setup-guide {
  margin-top: 17px;
  padding: 14px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 50%, transparent);
}

.qq-guide-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.qq-guide-title .icon {
  width: 12px;
  height: 12px;
  color: var(--orange);
}

.qq-setup-guide ol {
  margin: 8px 0 0;
  padding-left: 16px;
  list-style: decimal;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.8;
}

.qq-setup-guide li + li {
  margin-top: 2px;
}

.qq-setup-guide a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qq-setup-guide a .icon {
  width: 9px;
  height: 9px;
}

.qq-setup-guide > p {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.65;
}

/* =========================================================
   Points wallet
   ========================================================= */
.points-modal {
  width: min(620px, 100%);
}

.points-modal-head {
  padding: 27px 28px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.points-modal-head .eyebrow {
  margin-bottom: 8px;
}

.points-modal-head h2 {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.points-modal-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

#points-modal-body {
  padding: 18px 28px 25px;
}

.points-modal-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.points-modal-summary > div > span {
  color: var(--muted);
  font-size: 8px;
}

.points-modal-summary > div > strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.points-modal-summary small {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.points-modal-summary .points-modal-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--forest-soft);
  font-size: 8.5px;
}

html[data-theme="dark"] .points-modal-summary .points-modal-state {
  color: var(--lime);
}

.points-modal-summary.is-low .points-modal-state {
  color: var(--orange);
}

.points-modal-state .icon {
  width: 11px;
  height: 11px;
}

.points-rule-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.points-rule-line .icon {
  width: 11px;
  height: 11px;
  color: var(--orange);
  flex: 0 0 auto;
}

.admin-self-charge {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--lime) 8%, transparent);
}

.admin-self-charge > div {
  min-width: 0;
}

.admin-self-charge strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 650;
}

.admin-self-charge span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.admin-self-charge form {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.admin-self-charge input {
  width: 80px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  outline: none;
}

.admin-self-charge input:focus {
  border-color: var(--forest-soft);
}

.points-recharge-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

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

.points-section-head h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.points-section-head .text-link {
  font-size: 8.5px;
}

.points-contact-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.65;
}

.points-contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.points-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.points-contact-row > span {
  color: var(--muted-2);
  font-size: 7px;
  flex: 0 0 auto;
}

.points-contact-row > strong {
  min-width: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-contact-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.points-contact-actions .btn {
  height: 34px;
  font-size: 8.5px;
}

.points-history-section {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.points-section-head > span {
  color: var(--muted-2);
  font-size: 8px;
}

.points-history-list {
  margin-top: 5px;
}

.points-history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

.points-history-row:first-child {
  border-top: 0;
}

.points-history-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
}

.points-history-icon.is-in {
  color: var(--forest-soft);
  background: color-mix(in srgb, var(--lime) 25%, transparent);
}

html[data-theme="dark"] .points-history-icon.is-in {
  color: var(--lime);
}

.points-history-icon.is-out {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
}

.points-history-icon .icon {
  width: 11px;
  height: 11px;
}

.points-history-row > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.points-history-row > div:nth-child(2) strong {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.points-history-row > div:nth-child(2) span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 7.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-history-amount {
  flex: 0 0 auto;
  text-align: right;
}

.points-history-amount strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 650;
}

.points-history-amount.is-in strong {
  color: var(--forest-soft);
}

html[data-theme="dark"] .points-history-amount.is-in strong {
  color: var(--lime);
}

.points-history-amount.is-out strong {
  color: var(--orange);
}

.points-history-amount small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 7px;
  white-space: nowrap;
}

.points-empty {
  padding: 17px 11px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  text-align: center;
  font-size: 8.5px;
  line-height: 1.65;
  margin-top: 8px;
}

/* =========================================================
   Plan modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 16, 11, 0.54);
  backdrop-filter: blur(8px);
  animation: backdropIn 0.24s ease both;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.32s var(--ease) both;
}

.modal-lg {
  width: min(980px, 100%);
}

.modal-md {
  width: min(680px, 100%);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  z-index: 5;
  top: 17px;
  right: 17px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.plan-modal {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.plan-form-col {
  padding: 31px 31px 28px;
}

.plan-preview-col {
  position: relative;
  padding: 31px 27px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface-soft);
  overflow: hidden;
}

.plan-modal-head {
  padding-right: 35px;
  margin-bottom: 26px;
}

.plan-modal-head .eyebrow {
  margin-bottom: 9px;
}

.plan-modal-head h2 {
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.plan-modal-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.plan-step {
  margin-top: 25px;
}

.plan-step:first-of-type {
  margin-top: 0;
}

.plan-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.step-index {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
}

.plan-step-head h3 {
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.plan-step-head .step-hint {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
}

.linked-inputs {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 8px;
}

.linked-field {
  position: relative;
  padding: 12px 13px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.linked-field:focus-within {
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 28%, transparent);
}

.linked-field label {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.linked-input-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5px;
}

.linked-field input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.7vw, 29px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
  outline: none;
  -moz-appearance: textfield;
}

.linked-field input::-webkit-inner-spin-button,
.linked-field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.linked-field span {
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.linked-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.linked-note .icon {
  width: 11px;
  height: 11px;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekday-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
  color: var(--muted);
  transition: all 0.18s var(--ease);
}

.weekday-btn small {
  font-size: 8px;
  color: var(--muted-2);
  line-height: 1;
}

.weekday-btn strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.weekday-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.weekday-btn.selected {
  border-color: var(--forest);
  background: var(--forest);
  color: #f6faef;
  box-shadow: 0 5px 12px rgba(21, 58, 42, 0.13);
}

.weekday-btn.selected small {
  color: rgba(246, 250, 239, 0.57);
}

html[data-theme="dark"] .weekday-btn.selected {
  background: var(--lime);
  border-color: var(--lime);
  color: #142218;
}

html[data-theme="dark"] .weekday-btn.selected small {
  color: rgba(20, 34, 24, 0.55);
}

.weekday-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.quick-pill {
  padding: 5px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  transition: all 0.18s;
}

.quick-pill:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.pace-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pace-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pace-preset {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 9.5px;
  transition: all 0.18s;
}

.pace-preset:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.pace-preset.selected {
  border-color: var(--forest-soft);
  color: var(--ink);
  background: color-mix(in srgb, var(--lime) 18%, transparent);
}

.pace-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
}

.pace-custom input {
  width: 30px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  text-align: center;
  outline: none;
  appearance: textfield;
}

.pace-custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.pace-custom span {
  color: var(--muted-2);
  font-size: 9px;
}

.plan-title-input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: var(--surface-raised);
  font-size: 12px;
}

.plan-title-input:focus {
  outline: none;
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 25%, transparent);
}

.plan-form-error {
  margin-top: 14px;
}

.plan-form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.plan-form-actions .btn-accent {
  flex: 1;
}

.plan-form-actions .btn-danger-ghost {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.plan-form-actions .btn-danger-ghost .icon {
  width: 15px;
  height: 15px;
}

.plan-preview-card {
  position: relative;
  z-index: 2;
  border-radius: 23px;
  background: var(--forest);
  color: #f5f9ed;
  padding: 23px 22px;
  overflow: hidden;
  isolation: isolate;
}

.plan-preview-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: rgba(216, 255, 67, 0.13);
  border: 1px solid rgba(216, 255, 67, 0.18);
}

.plan-preview-card .preview-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(245, 250, 240, 0.5);
  text-transform: uppercase;
}

.plan-preview-card .preview-eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.plan-preview-card h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.preview-target {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 20px;
  font-family: var(--font-display);
  letter-spacing: -0.06em;
}

.preview-target strong {
  font-size: 59px;
  font-weight: 700;
  line-height: 0.8;
}

.preview-target span {
  font-family: var(--font-sans);
  color: rgba(245, 250, 240, 0.46);
  font-size: 10px;
}

.preview-line {
  height: 1px;
  margin: 20px 0 15px;
  background: rgba(255, 255, 255, 0.11);
}

.preview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 10px;
}

.preview-fact small {
  display: block;
  color: rgba(245, 250, 240, 0.4);
  font-size: 8.5px;
}

.preview-fact strong {
  display: block;
  margin-top: 3px;
  color: rgba(245, 250, 240, 0.88);
  font-size: 11.5px;
  font-weight: 600;
}

.preview-weekdays {
  display: flex;
  gap: 4px;
  margin-top: 15px;
}

.preview-weekday {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(245, 250, 240, 0.38);
  font-size: 8px;
}

.preview-weekday.on {
  background: var(--lime);
  border-color: var(--lime);
  color: #142218;
  font-weight: 700;
}

.plan-preview-meta {
  margin-top: 21px;
}

.plan-preview-meta .preview-section-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.schedule-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
}

.schedule-row:first-child {
  border-top: 0;
}

.schedule-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-soft);
  flex: 0 0 auto;
}

.schedule-row:first-child .schedule-dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent);
}

.schedule-row span:nth-child(2) {
  color: var(--ink-soft);
  font-weight: 550;
  flex: 1;
}

.schedule-row small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.preview-finish {
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--lime) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--forest-soft) 14%, transparent);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.preview-finish .icon {
  width: 13px;
  height: 13px;
  color: var(--forest-soft);
}

html[data-theme="dark"] .preview-finish .icon {
  color: var(--lime);
}

.preview-finish strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.plan-edit-warning {
  margin-top: 13px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.plan-edit-warning .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: 0 0 auto;
}

/* =========================================================
   Live run
   ========================================================= */
.is-live .topbar-wrap,
.is-live .site-footer,
.is-live .mobile-nav {
  display: none;
}

.is-live {
  overflow: hidden;
  background: #0c140e;
}

body.is-live #view.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: none;
  transform: none;
}

.live-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 85% 8%, rgba(216, 255, 67, 0.11), transparent 30rem),
    radial-gradient(ellipse at 4% 88%, rgba(255, 107, 61, 0.08), transparent 28rem),
    #0c140e;
  color: #f4f7ed;
  isolation: isolate;
}

.live-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.33;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.live-topbar {
  width: min(calc(100% - 56px), 1240px);
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(244, 247, 237, 0.09);
}

.live-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.live-brand .brand-mark {
  width: 34px;
  height: 34px;
  color: #122117;
}

.live-brand .brand-mark svg {
  width: 23px;
  height: 23px;
}

.live-brand span {
  margin-left: 7px;
  color: rgba(244, 247, 237, 0.33);
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(244, 247, 237, 0.13);
  border-radius: 999px;
  color: rgba(244, 247, 237, 0.58);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.live-badge .rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.1);
  animation: recPulse 1.6s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.live-top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.speed-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(244, 247, 237, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.speed-btn {
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(244, 247, 237, 0.4);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  transition: all 0.2s;
}

.speed-btn:hover {
  color: rgba(244, 247, 237, 0.8);
}

.speed-btn.active {
  color: #122117;
  background: var(--lime);
}

.live-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(244, 247, 237, 0.45);
  font-size: 10px;
  transition: color 0.2s;
}

.live-exit:hover {
  color: #f4f7ed;
}

.live-exit .icon {
  width: 14px;
  height: 14px;
}

.live-progress-rail {
  position: absolute;
  top: 81px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.live-progress-rail span {
  display: block;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(216, 255, 67, 0.5);
  transition: width 0.25s linear;
}

.live-main {
  width: min(calc(100% - 56px), 1240px);
  margin: 0 auto;
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(25px, 5vw, 72px);
  align-items: center;
  padding: 38px 0 10px;
}

.live-metrics {
  padding-bottom: 8px;
}

.live-statusline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 247, 237, 0.45);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-statusline .live-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 67, 0.1);
}

.live-statusline.paused .live-status-dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.1);
}

.live-statusline .plan-name {
  margin-left: 4px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(244, 247, 237, 0.6);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-distance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 23px;
  font-family: var(--font-display);
  line-height: 0.8;
  letter-spacing: -0.075em;
}

.live-distance strong {
  font-size: clamp(92px, 12vw, 166px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.live-distance span {
  color: rgba(244, 247, 237, 0.35);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 500;
}

.live-target {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: rgba(244, 247, 237, 0.43);
  font-size: 10.5px;
}

.live-target strong {
  color: rgba(244, 247, 237, 0.72);
  font-weight: 600;
}

.live-target i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(244, 247, 237, 0.25);
}

.live-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(244, 247, 237, 0.1);
  border-bottom: 1px solid rgba(244, 247, 237, 0.1);
  padding: 18px 0;
}

.live-stat {
  padding: 0 19px;
  border-left: 1px solid rgba(244, 247, 237, 0.1);
}

.live-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.live-stat small {
  display: block;
  color: rgba(244, 247, 237, 0.35);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-stat strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.live-stat strong span {
  color: rgba(244, 247, 237, 0.3);
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0;
}

.live-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
}

.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 47px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid rgba(244, 247, 237, 0.15);
  color: rgba(244, 247, 237, 0.73);
  font-size: 12px;
  font-weight: 650;
  transition: all 0.2s var(--ease);
}

.live-btn:hover {
  border-color: rgba(244, 247, 237, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.live-btn .icon {
  width: 16px;
  height: 16px;
}

.live-btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #122117;
  min-width: 128px;
}

.live-btn--primary:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
  color: #122117;
}

.live-btn--danger:hover {
  border-color: rgba(255, 117, 95, 0.4);
  color: #ff9c88;
}

.live-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: rgba(244, 247, 237, 0.28);
  font-size: 9px;
}

.live-note .icon {
  width: 12px;
  height: 12px;
}

.live-track-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.track-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.34;
  border: 1px solid rgba(244, 247, 237, 0.09);
  border-radius: 36px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(216, 255, 67, 0.055), transparent 58%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
  isolation: isolate;
}

.track-stage::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(244, 247, 237, 0.045);
  border-radius: 25px;
  pointer-events: none;
}

.track-stage::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(216, 255, 67, 0.12);
  filter: blur(60px);
  top: 18%;
  right: 12%;
  pointer-events: none;
}

.track-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.track-lane {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-lane--base {
  stroke: rgba(244, 247, 237, 0.08);
  stroke-width: 24;
}

.track-lane--dash {
  stroke: rgba(244, 247, 237, 0.15);
  stroke-width: 1;
  stroke-dasharray: 5 12;
}

.track-lane--progress {
  stroke: rgba(216, 255, 67, 0.28);
  stroke-width: 2;
  stroke-dasharray: 120 300;
  animation: laneFlow 9s linear infinite;
}

@keyframes laneFlow {
  to { stroke-dashoffset: -420; }
}

.track-start {
  fill: rgba(12, 20, 14, 0.8);
  stroke: rgba(244, 247, 237, 0.2);
  stroke-width: 1;
}

.track-start-text {
  fill: rgba(244, 247, 237, 0.42);
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.track-tick {
  stroke: rgba(244, 247, 237, 0.2);
  stroke-width: 1;
}

.runner-marker {
  filter: url(#markerGlow);
}

.runner-body {
  fill: var(--lime);
  stroke: #122117;
  stroke-width: 2.5;
}

.runner-pulse {
  fill: rgba(216, 255, 67, 0.14);
  animation: runnerPulse 1.8s ease-out infinite;
}

@keyframes runnerPulse {
  0% { opacity: 0.7; transform: scale(0.75); transform-origin: center; }
  100% { opacity: 0; transform: scale(1.65); transform-origin: center; }
}

.track-meta {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 237, 0.3);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.track-meta i {
  width: 14px;
  height: 1px;
  background: rgba(244, 247, 237, 0.22);
}

.track-distance-tag {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 247, 237, 0.12);
  border-radius: 999px;
  color: rgba(244, 247, 237, 0.47);
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  background: rgba(12, 20, 14, 0.38);
}

.track-distance-tag .icon {
  width: 11px;
  height: 11px;
  color: var(--lime);
}

.live-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
}

.live-quote p {
  max-width: 350px;
  color: rgba(244, 247, 237, 0.45);
  font-size: 10.5px;
  line-height: 1.7;
  transition: opacity 0.4s;
}

.live-quote p .quote-mark {
  color: var(--lime);
  margin-right: 3px;
}

.live-quote .quote-sign {
  font-size: 8.5px;
  color: rgba(244, 247, 237, 0.22);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-splits {
  width: min(calc(100% - 56px), 1240px);
  margin: 0 auto;
  padding: 13px 0 25px;
  border-top: 1px solid rgba(244, 247, 237, 0.08);
  display: flex;
  align-items: center;
  gap: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.live-splits::-webkit-scrollbar {
  display: none;
}

.live-splits-label {
  color: rgba(244, 247, 237, 0.25);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid rgba(244, 247, 237, 0.1);
}

.split-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 247, 237, 0.11);
  border-radius: 8px;
  white-space: nowrap;
  animation: splitIn 0.35s var(--ease) both;
}

@keyframes splitIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.split-chip span {
  color: rgba(244, 247, 237, 0.34);
  font-size: 8px;
}

.split-chip strong {
  color: rgba(244, 247, 237, 0.78);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
}

.split-chip.current {
  border-color: rgba(216, 255, 67, 0.3);
  background: rgba(216, 255, 67, 0.06);
}

.split-placeholder {
  color: rgba(244, 247, 237, 0.24);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.live-paused-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  background: rgba(11, 19, 13, 0.56);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease both;
}

.live-paused-overlay .pause-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--lime);
}

.live-paused-overlay .pause-icon .icon {
  width: 17px;
  height: 17px;
}

.live-paused-overlay strong {
  font-size: 12px;
  font-weight: 600;
}

.live-paused-overlay span {
  color: rgba(244, 247, 237, 0.36);
  font-size: 9px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Summary */
.summary-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 255, 67, 0.14), transparent 35rem),
    #0c140e;
}

.summary-card {
  position: relative;
  width: min(680px, 100%);
  padding: 35px 38px 31px;
  border-radius: 34px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.45s var(--ease) both;
}

.summary-card::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -140px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.summary-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-eyebrow .icon {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.summary-card h2 {
  position: relative;
  margin-top: 15px;
  font-size: clamp(30px, 5vw, 45px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.summary-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.summary-distance {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 28px;
  font-family: var(--font-display);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.summary-distance strong {
  font-size: clamp(72px, 12vw, 108px);
  font-weight: 700;
}

.summary-distance span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
}

.summary-rule {
  height: 1px;
  background: var(--line-soft);
  margin: 27px 0 23px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.summary-stat {
  padding: 0 18px;
  border-left: 1px solid var(--line-soft);
}

.summary-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.summary-stat small {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.summary-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.summary-plan .mini-plan-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  flex: 0 0 auto;
}

.summary-plan .mini-plan-icon .icon {
  width: 15px;
  height: 15px;
}

.summary-plan-copy {
  min-width: 0;
  flex: 1;
}

.summary-plan-copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
}

.summary-plan-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.summary-plan .mini-progress {
  width: 80px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.summary-plan .mini-progress span {
  display: block;
  height: 100%;
  background: var(--forest-soft);
  border-radius: inherit;
}

html[data-theme="dark"] .summary-plan .mini-progress span {
  background: var(--lime);
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lime) 23%, transparent);
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 600;
}

.summary-badge .icon {
  width: 11px;
  height: 11px;
}

.summary-actions {
  display: flex;
  gap: 9px;
  margin-top: 26px;
}

.summary-actions .btn-accent {
  flex: 1;
}

.summary-note {
  margin-top: 15px;
  color: var(--muted-2);
  text-align: center;
  font-size: 8.5px;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 2.6s ease-in forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translate3d(0, -20px, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--x, 20px), 700px, 0) rotate(var(--r, 300deg)); }
}

/* =========================================================
   Records
   ========================================================= */
.records-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.record-metric {
  padding: 18px 17px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.record-metric small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
}

.record-metric small .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.record-metric strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.record-metric strong span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(0, 0.97fr);
  gap: 13px;
  margin-top: 13px;
}

.chart-panel {
  padding: 23px 24px 17px;
}

.chart-wrap {
  position: relative;
  margin-top: 25px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 166px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 33.33%;
}

.chart-day {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.chart-day .chart-bar {
  position: relative;
  width: min(100%, 19px);
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--forest-soft) 23%, transparent);
  transition: height 0.8s var(--ease), background 0.2s;
}

.chart-day .chart-bar.has-run {
  background: var(--forest-soft);
}

.chart-day.today .chart-bar {
  background: var(--orange);
}

html[data-theme="dark"] .chart-day .chart-bar.has-run {
  background: rgba(216, 255, 67, 0.62);
}

.chart-day:hover .chart-bar {
  background: var(--forest);
}

html[data-theme="dark"] .chart-day:hover .chart-bar {
  background: var(--lime);
}

.chart-day .chart-tip {
  position: absolute;
  bottom: calc(100% - 15px);
  z-index: 3;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.16s;
}

.chart-day:hover .chart-tip {
  opacity: 1;
  transform: translateY(0);
}

.chart-labels {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.chart-labels span {
  flex: 1;
  color: var(--muted-2);
  font-size: 7.5px;
  text-align: center;
}

.chart-labels span.today {
  color: var(--orange);
  font-weight: 700;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.chart-summary-item small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.chart-summary-item strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.heatmap-panel {
  padding: 23px 22px 17px;
}

.heatmap {
  margin-top: 21px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.heatmap::-webkit-scrollbar {
  display: none;
}

.heatmap-months {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  margin-left: 25px;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.heatmap-months span {
  overflow: visible;
  white-space: nowrap;
}

.heatmap-body {
  display: flex;
  gap: 7px;
}

.heatmap-weekdays {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  flex: 0 0 auto;
  width: 18px;
  color: var(--muted-2);
  font-size: 7px;
  line-height: 12px;
  text-align: right;
}

.heatmap-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(16, minmax(8px, 1fr));
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  gap: 3px;
  min-width: 230px;
}

.heat-cell {
  width: 100%;
  height: 12px;
  border-radius: 3px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform 0.15s, filter 0.15s;
}

.heat-cell:hover {
  transform: scale(1.25);
  filter: brightness(1.05);
}

.heat-cell.future {
  visibility: hidden;
}

.heat-cell.level-1 { background: color-mix(in srgb, var(--forest-soft) 20%, var(--surface)); }
.heat-cell.level-2 { background: color-mix(in srgb, var(--forest-soft) 40%, var(--surface)); }
.heat-cell.level-3 { background: color-mix(in srgb, var(--forest-soft) 70%, var(--surface)); }
.heat-cell.level-4 { background: var(--forest-soft); }

html[data-theme="dark"] .heat-cell.level-1 { background: rgba(216, 255, 67, 0.16); }
html[data-theme="dark"] .heat-cell.level-2 { background: rgba(216, 255, 67, 0.32); }
html[data-theme="dark"] .heat-cell.level-3 { background: rgba(216, 255, 67, 0.54); }
html[data-theme="dark"] .heat-cell.level-4 { background: var(--lime); }

.heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 8px;
}

.heat-legend .heat-cell {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.heatmap-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.heatmap-foot strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.achievements-section {
  margin-top: 13px;
  padding: 23px 24px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.achievement {
  position: relative;
  padding: 13px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface-raised);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  overflow: hidden;
}

.achievement-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 30%, transparent);
  color: var(--forest);
}

html[data-theme="dark"] .achievement-icon {
  color: var(--lime);
}

.achievement-icon .icon {
  width: 13px;
  height: 13px;
}

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

.achievement-copy strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.achievement-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.4;
}

.achievement.locked {
  opacity: 0.53;
}

.achievement.locked .achievement-icon {
  background: var(--surface-soft);
  color: var(--muted-2);
}

.achievement-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line-soft);
}

.achievement-progress span {
  display: block;
  height: 100%;
  background: var(--forest-soft);
}

html[data-theme="dark"] .achievement-progress span {
  background: var(--lime);
}

.records-list-section {
  margin-top: 13px;
  padding: 23px 24px;
}

.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.filter-tab {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  transition: all 0.18s;
}

.filter-tab.active {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 2px 7px rgba(24, 34, 26, 0.06);
}

.records-future-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -3px 0 12px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--orange) 14%, var(--line-soft));
  border-radius: 8px;
  background: color-mix(in srgb, var(--orange) 4%, transparent);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.records-future-note strong {
  color: var(--orange);
  font-weight: 650;
}

.records-future-note .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--orange);
}

.account-scope-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 36px;
  margin: 12px 0 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8.5px;
}

.account-scope-bar > .icon {
  width: 12px;
  height: 12px;
  color: var(--forest-soft);
}

.account-scope-bar strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 650;
}

.account-scope-bar > span {
  color: var(--muted-2);
}

.account-scope-bar .text-link {
  margin-left: auto;
  white-space: nowrap;
}

.world-accounts-panel {
  margin-bottom: 18px;
}

.world-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.world-account-card {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.world-account-card:hover {
  border-color: color-mix(in srgb, var(--forest-soft) 30%, var(--line));
  transform: translateY(-1px);
}

.world-account-card.selected {
  border-color: var(--forest-soft);
  background: color-mix(in srgb, var(--lime) 13%, var(--surface-raised));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--forest-soft) 8%, transparent);
}

.world-account-card.is-unbound {
  border-style: dashed;
}

.world-account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.world-account-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--forest-soft) 8%, transparent);
  color: var(--forest-soft);
}

.world-account-icon .icon {
  width: 12px;
  height: 12px;
}

.world-account-status {
  color: var(--muted-2);
  font-size: 7px;
  white-space: nowrap;
}

.world-account-card > strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-account-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.world-account-plan {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-account-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 8px;
}

.world-account-note .icon {
  width: 11px;
  height: 11px;
}

.world-account-empty {
  padding: 20px 12px 12px;
}

.records-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.batch-toggle.is-active {
  color: var(--ink);
  border-color: var(--forest-soft);
  background: color-mix(in srgb, var(--lime) 18%, var(--surface-raised));
}

.batch-bar,
.admin-batch-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 11px;
  margin: 7px 0 2px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8.5px;
}

.records-page:not(.is-batch) .batch-bar {
  display: none;
}

.batch-select-all {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.batch-select-all input,
.run-select,
.admin-record-check input {
  width: 13px;
  height: 13px;
  accent-color: var(--forest-soft);
  cursor: pointer;
}

.batch-bar strong {
  color: var(--ink);
}

.batch-bar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.run-select-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex: 0 0 auto;
  padding-left: 3px;
}

.records-page.is-batch .run-select-wrap {
  display: flex;
}

.records-page.is-batch .row-delete-btn {
  display: none;
}

.run-list-item.is-selected {
  background: color-mix(in srgb, var(--lime) 9%, transparent);
}

.admin-world-account {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-batch-bar {
  margin: 6px 0;
}

.admin-record-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
}

.run-list {
  margin-top: 6px;
}

.run-list-item {
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--line-soft);
}

.run-list-item:first-child {
  border-top: 0;
}

.run-list-row {
  width: auto;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 3px;
  border-top: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 0.2s var(--ease), background 0.2s;
}

.row-delete-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted-2);
  opacity: 0.58;
  transition: all 0.18s;
}

.row-delete-btn:hover {
  color: var(--red);
  opacity: 1;
  border-color: color-mix(in srgb, var(--red) 20%, transparent);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}

.row-delete-btn .icon {
  width: 13px;
  height: 13px;
}

.run-list-row:hover {
  padding-left: 8px;
}

.record-route {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--forest-soft);
}

html[data-theme="dark"] .record-route {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.03);
}

.record-route svg {
  width: 30px;
  height: 30px;
}

.record-session {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  margin-top: 4px !important;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--lime) 17%, transparent);
  color: var(--forest-soft) !important;
  font-size: 7.5px !important;
  font-weight: 600;
}

html[data-theme="dark"] .record-session {
  color: var(--lime) !important;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--forest-soft) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--lime) 13%, transparent);
  color: var(--forest-soft);
  font-size: 8px;
  font-weight: 600;
}

.session-badge .icon {
  width: 11px;
  height: 11px;
}

.session-badge.is-pending {
  border-color: color-mix(in srgb, var(--orange) 22%, var(--line));
  background: color-mix(in srgb, var(--orange) 7%, transparent);
  color: var(--orange);
}

html[data-theme="dark"] .session-badge {
  color: var(--lime);
}

.filter-date-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 2px;
  padding: 7px 10px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 8px;
}

.filter-date-note .icon {
  width: 11px;
  height: 11px;
  color: var(--forest-soft);
}

.filter-date-note strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.record-main {
  min-width: 0;
  flex: 1;
}

.record-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
}

.record-main strong .pill {
  height: 17px;
  padding: 0 6px;
  font-size: 7px;
}

.record-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.record-dist {
  text-align: right;
  min-width: 68px;
}

.record-dist strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.record-dist small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
}

.record-dist span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8px;
}

.record-row-arrow {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  flex: 0 0 auto;
}

.run-detail-head {
  padding: 27px 28px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.run-detail-head .eyebrow {
  margin-bottom: 9px;
}

.run-detail-head h2 {
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.05em;
  padding-right: 40px;
}

.run-detail-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.run-detail-body {
  padding: 21px 28px 27px;
}

.run-detail-distance {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.run-detail-distance span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0;
}

.run-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 21px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.run-detail-stat {
  padding: 0 15px;
  border-left: 1px solid var(--line-soft);
}

.run-detail-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.run-detail-stat small {
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.run-detail-stat strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.detail-route-art {
  width: 100%;
  height: 100%;
  max-height: 82px;
  padding: 0 12px;
}

.splits-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 21px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 650;
}

.splits-title span {
  color: var(--muted-2);
  font-weight: 400;
  font-size: 8.5px;
}

.splits-list {
  max-height: 230px;
  overflow-y: auto;
}

.split-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
}

.split-row:first-child {
  border-top: 0;
}

.split-row .split-index {
  width: 22px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 9px;
}

.split-row .split-line {
  flex: 1;
  height: 2px;
  background: var(--line-soft);
  border-radius: 9px;
  overflow: hidden;
}

.split-row .split-line span {
  display: block;
  height: 100%;
  background: var(--forest-soft);
  border-radius: inherit;
}

html[data-theme="dark"] .split-row .split-line span {
  background: var(--lime);
}

.split-row strong {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.run-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.run-detail-actions .meta {
  color: var(--muted-2);
  font-size: 8.5px;
}

/* =========================================================
   Community
   ========================================================= */
.community-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
}

.segmented button {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: all 0.18s;
}

.segmented button.active {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 34, 25, 0.07);
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 11px;
  align-items: end;
  margin-bottom: 16px;
}

.podium-card {
  position: relative;
  min-height: 215px;
  padding: 21px 19px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.podium-card.first {
  min-height: 255px;
  background: var(--forest);
  color: #f6faef;
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(19, 46, 33, 0.16);
}

.podium-card::before {
  content: attr(data-rank);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--line-soft);
  line-height: 1;
}

.podium-card.first::before {
  color: rgba(216, 255, 67, 0.17);
}

.podium-medal {
  position: absolute;
  top: 20px;
  left: 19px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.podium-card.first .podium-medal {
  background: var(--lime);
  color: #142218;
}

.podium-avatar-wrap {
  position: relative;
  width: fit-content;
  margin-bottom: 12px;
}

.podium-card .avatar {
  border: 3px solid var(--surface);
}

.podium-card.first .avatar {
  border-color: var(--forest);
}

.mini-crown {
  position: absolute;
  top: -11px;
  right: -6px;
  color: var(--lime);
  transform: rotate(14deg);
}

.mini-crown .icon {
  width: 17px;
  height: 17px;
}

.podium-card h3 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.podium-card.first h3 {
  font-size: 21px;
}

.podium-bio {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card.first .podium-bio {
  color: rgba(245, 250, 240, 0.45);
}

.podium-distance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.podium-card.first .podium-distance {
  font-size: 36px;
  color: var(--lime);
}

.podium-distance span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.podium-card.first .podium-distance span {
  color: rgba(216, 255, 67, 0.45);
}

.podium-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8px;
}

.podium-card.first .podium-meta {
  color: rgba(245, 250, 240, 0.36);
}

.board-card {
  padding: 21px 23px 12px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 10px;
}

.board-head h2 {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.board-head span {
  color: var(--muted);
  font-size: 9.5px;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.2s;
}

.board-row:hover {
  background: color-mix(in srgb, var(--surface-soft) 45%, transparent);
}

.board-row.is-me {
  margin: 0 -6px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--lime) 12%, transparent);
}

.board-rank {
  width: 24px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  flex: 0 0 auto;
}

.board-rank.top {
  color: var(--ink-soft);
}

.board-runner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1.2;
}

.board-runner-copy {
  min-width: 0;
}

.board-runner-copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-runner-copy strong .me-tag {
  padding: 1px 5px;
  border-radius: 99px;
  background: var(--lime);
  color: #142218;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.board-runner-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-metric {
  width: 86px;
  flex: 0 0 auto;
  text-align: right;
}

.board-metric strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.board-metric small {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 7px;
}

.board-metric span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.board-streak {
  width: 67px;
  flex: 0 0 auto;
  text-align: right;
  color: var(--muted);
  font-size: 9px;
}

.board-streak .icon {
  width: 11px;
  height: 11px;
  color: var(--orange);
  vertical-align: -2px;
  margin-right: 2px;
}

.board-streak.muted {
  color: var(--muted-2);
}

.community-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.community-footnote .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.community-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.community-metric {
  padding: 0 20px;
  border-left: 1px solid var(--line-soft);
}

.community-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.community-metric strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.community-metric span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 15px;
  align-items: start;
}

.contact-hero-card {
  position: relative;
  padding: 31px 31px 27px;
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: #f6faef;
  overflow: hidden;
  isolation: isolate;
}

.contact-hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  right: -170px;
  top: -210px;
  border: 1px solid rgba(216, 255, 67, 0.18);
  border-radius: 50%;
}

.contact-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -85px;
  top: -130px;
  border-radius: 50%;
  background: rgba(216, 255, 67, 0.08);
}

.contact-hero-card .eyebrow {
  color: rgba(245, 250, 240, 0.5);
}

.contact-hero-card .eyebrow .dot {
  background: var(--lime);
}

.contact-owner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.contact-owner .avatar {
  border: 3px solid rgba(255, 255, 255, 0.13);
}

.contact-owner h2 {
  font-size: 27px;
  font-weight: 730;
  letter-spacing: -0.045em;
}

.contact-owner p {
  margin-top: 4px;
  color: rgba(245, 250, 240, 0.48);
  font-size: 10px;
}

.contact-quote {
  margin-top: 26px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  color: rgba(245, 250, 240, 0.7);
  font-size: 11.5px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.035);
}

.contact-quote::before {
  content: "“";
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 18px;
  margin-right: 1px;
}

.contact-quote::after {
  content: "”";
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 18px;
  margin-left: 1px;
}

.contact-methods {
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-method-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(216, 255, 67, 0.82);
}

.contact-method-icon .icon {
  width: 15px;
  height: 15px;
}

.contact-method-copy {
  min-width: 0;
  flex: 1;
}

.contact-method-copy small {
  display: block;
  color: rgba(245, 250, 240, 0.37);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-method-copy strong {
  display: block;
  margin-top: 1px;
  color: rgba(245, 250, 240, 0.82);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-method .copy-btn {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: rgba(245, 250, 240, 0.42);
  transition: all 0.2s;
}

.contact-method .copy-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.contact-method .copy-btn .icon {
  width: 13px;
  height: 13px;
}

.contact-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
  color: rgba(245, 250, 240, 0.32);
  font-size: 8.5px;
}

.contact-hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(216, 255, 67, 0.7);
}

.contact-hero-foot .icon {
  width: 12px;
  height: 12px;
}

.message-card {
  padding: 28px 27px 25px;
}

.message-card h2 {
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.045em;
}

.message-card > p {
  margin-top: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.message-success {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.message-success .success-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #142218;
  margin-bottom: 14px;
}

.message-success .success-icon .icon {
  width: 23px;
  height: 23px;
}

.message-success h3 {
  font-size: 18px;
}

.message-success p {
  max-width: 290px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.message-success button {
  margin-top: 16px;
}

.faq-card {
  margin-top: 15px;
  padding: 25px 27px;
}

.faq-card h2 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.faq-list {
  margin-top: 10px;
}

.faq-list details {
  border-top: 1px solid var(--line-soft);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 550;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  transition: transform 0.2s;
  flex: 0 0 auto;
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details p {
  padding: 0 20px 13px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

/* =========================================================
   Settings
   ========================================================= */
.settings-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 5px;
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  transition: all 0.18s;
}

.settings-nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.settings-nav a .icon {
  width: 14px;
  height: 14px;
}

.settings-nav .nav-caption {
  margin: 17px 10px 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.settings-card,
.settings-nav a[id] {
  scroll-margin-top: 96px;
}

.settings-card {
  padding: 26px 27px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}

.settings-card-head h2 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.settings-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.settings-card-head .pill {
  margin-top: 2px;
}

.profile-editor {
  display: flex;
  align-items: center;
  gap: 19px;
  padding-bottom: 21px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-avatar-preview {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-preview .avatar {
  border: 3px solid var(--surface-raised);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.profile-avatar-preview .avatar-badge {
  position: absolute;
  right: -3px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  border: 2px solid var(--surface);
}

.profile-avatar-preview .avatar-badge .icon {
  width: 11px;
  height: 11px;
}

.avatar-picker {
  min-width: 0;
  flex: 1;
}

.avatar-picker-label {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 7px;
}

.emoji-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.emoji-option {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  font-size: 16px;
  transition: all 0.18s;
}

.emoji-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.emoji-option.selected {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 40%, transparent);
}

.tone-options {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.tone-option {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.18s;
}

.tone-option:hover {
  transform: scale(1.12);
}

.tone-option.selected {
  box-shadow: 0 0 0 2px var(--ink);
}

.tone-option[data-tone="lime"] { background: #c8ef35; }
.tone-option[data-tone="peach"] { background: #ffcfb5; }
.tone-option[data-tone="sky"] { background: #b7d7fa; }
.tone-option[data-tone="lilac"] { background: #cdbdf4; }
.tone-option[data-tone="sand"] { background: #e7d193; }
.tone-option[data-tone="mint"] { background: #b2e4d2; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
}

.settings-actions .settings-hint {
  margin-right: auto;
  color: var(--muted-2);
  font-size: 8.5px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-badge .icon {
  width: 11px;
  height: 11px;
}

.message-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox-item {
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface-raised);
}

.inbox-item.unread {
  border-color: color-mix(in srgb, var(--lime) 38%, var(--line));
  background: color-mix(in srgb, var(--lime) 7%, var(--surface-raised));
}

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

.inbox-item-head strong {
  font-size: 11px;
  font-weight: 650;
}

.inbox-item-head span {
  color: var(--muted-2);
  font-size: 8px;
  white-space: nowrap;
}

.inbox-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.inbox-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.inbox-item-foot span {
  color: var(--muted-2);
  font-size: 8px;
}

.inbox-mark {
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 600;
}

.inbox-mark:hover {
  color: var(--ink);
  text-decoration: underline;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.preference-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.preference-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.preference-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.theme-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  flex: 0 0 auto;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.theme-switch button.active {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(23, 34, 25, 0.07);
}

.theme-switch .icon {
  width: 12px;
  height: 12px;
}

.speed-pref {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
}

.speed-pref button {
  min-width: 35px;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
}

.speed-pref button.active {
  background: var(--forest);
  color: var(--lime);
}

.danger-zone {
  border-color: color-mix(in srgb, var(--red) 20%, var(--line));
}

.danger-zone .settings-card-head h2 {
  color: var(--red);
}

/* =========================================================
   Toast
   ========================================================= */
.toast-root {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  line-height: 1.55;
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease) both;
}

.toast.is-leaving {
  animation: toastOut 0.25s var(--ease) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(16px); }
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 28%, transparent);
  color: var(--forest);
}

html[data-theme="dark"] .toast-icon {
  color: var(--lime);
}

.toast--error .toast-icon {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}

.toast--info .toast-icon {
  background: var(--surface-soft);
  color: var(--muted);
}

.toast-icon .icon {
  width: 13px;
  height: 13px;
}

.toast-copy {
  flex: 1;
  padding-top: 2px;
}

.toast-copy strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.toast-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.toast-dismiss {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
  flex: 0 0 auto;
}

.toast-dismiss:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.toast-dismiss .icon {
  width: 12px;
  height: 12px;
}

/* =========================================================
   Confirm
   ========================================================= */
.confirm-dialog {
  width: min(410px, 100%);
  padding: 29px 28px 24px;
}

.confirm-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 13%, transparent);
  color: var(--orange);
  margin-bottom: 15px;
}

.confirm-icon .icon {
  width: 19px;
  height: 19px;
}

.confirm-dialog h2 {
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -0.04em;
  padding-right: 25px;
}

.confirm-dialog p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .topbar {
    width: min(calc(100% - 40px), 1180px);
    gap: 18px;
  }

  .main-nav {
    gap: 1px;
  }

  .nav-link {
    padding: 8px 11px;
    font-size: 12px;
  }

  .page,
  .site-footer {
    width: min(calc(100% - 40px), 1180px);
  }

  .landing-header,
  .landing-main,
  .landing-footer {
    width: min(calc(100% - 48px), 1180px);
  }

  .landing-main {
    grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.96fr);
    gap: 45px;
  }

  .landing-title {
    font-size: clamp(53px, 6.6vw, 79px);
  }

  .landing-route-art {
    width: 350px;
    opacity: 0.18;
  }
}

@media (max-width: 1120px) {
  .generator-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(285px, 0.65fr);
  }

  .generator-card {
    padding: 24px 23px 21px;
  }

  .generator-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    height: 61px;
  }

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

  .generator-side {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
  }

  .points-card {
    grid-column: 1 / -1;
  }

  .qq-push-card {
    min-height: 230px;
  }

  .batch-head {
    flex-direction: column;
    gap: 12px;
  }

  .batch-head-actions {
    justify-content: flex-start;
  }

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

  .collection-bar-card {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .collection-chips {
    grid-column: auto;
  }

  .overview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-search {
    width: 100%;
  }

  .admin-table {
    min-width: 880px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .theme-toggle-top {
    display: none;
  }

  .user-chip-name {
    display: none;
  }

  .user-chip {
    padding-right: 6px;
    width: 43px;
    justify-content: center;
  }

  .user-chip .chevron {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 50%;
    bottom: 15px;
    z-index: 55;
    width: min(calc(100% - 30px), 430px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
    box-shadow: 0 12px 40px rgba(23, 34, 25, 0.14);
    backdrop-filter: blur(14px);
  }

  html[data-theme="dark"] .mobile-nav {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
    padding: 5px 7px;
    border-radius: 14px;
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 600;
    transition: all 0.18s;
  }

  .mobile-nav a .icon {
    width: 18px;
    height: 18px;
  }

  .mobile-nav a.active {
    color: var(--ink);
    background: color-mix(in srgb, var(--lime) 26%, transparent);
  }

  .page {
    padding-bottom: 104px;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  }

  .plan-hero {
    padding: 25px 25px;
  }

  .today-card {
    padding: 23px 22px;
  }

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

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

  .week-card {
    min-height: 280px;
  }

  .records-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .heatmap-grid {
    grid-template-columns: repeat(16, minmax(9px, 1fr));
  }

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

  .landing {
    overflow: auto;
  }

  .landing-header {
    height: 79px;
  }

  .landing-header .main-nav {
    display: none;
  }

  .landing-auth-link {
    margin-left: auto;
  }

  .landing-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .landing-copy {
    max-width: 650px;
    padding-bottom: 10px;
  }

  .landing-title {
    font-size: clamp(58px, 10vw, 88px);
  }

  .landing-copy > p {
    max-width: 540px;
  }

  .auth-panel {
    justify-self: start;
    max-width: 540px;
  }

  .landing-route-art {
    right: -45px;
    bottom: -28px;
    width: 420px;
    opacity: 0.18;
  }

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

  .contact-hero-card {
    min-height: auto;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .settings-nav .nav-caption {
    display: none;
  }

  .settings-nav a {
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--line-soft);
  }

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

  .plan-preview-col {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 25px;
  }

  .plan-preview-card {
    max-width: 600px;
  }

  .plan-preview-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .preview-finish {
    margin-top: 0;
  }

  .live-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    align-items: start;
    min-height: auto;
  }

  .live-track-col {
    padding-bottom: 10px;
  }

  .track-stage {
    max-height: 390px;
    margin: 0 auto;
    aspect-ratio: 1.55;
  }

  .live-splits {
    margin-top: 6px;
  }

  .live-distance strong {
    font-size: clamp(88px, 20vw, 124px);
  }

  .podium-card.first {
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .page,
  .site-footer {
    width: calc(100% - 32px);
  }

  .generator-card {
    padding: 20px 16px 17px;
    border-radius: 24px;
  }

  .generator-head {
    flex-direction: column;
    gap: 9px;
    padding-bottom: 17px;
    margin-bottom: 19px;
  }

  .generator-head > .pill {
    display: none;
  }

  .generator-head h2 {
    font-size: 25px;
  }

  .generator-head p {
    font-size: 10.5px;
  }

  .generator-card .plan-step {
    margin-top: 19px;
  }

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

  .generator-meta-grid {
    margin-top: 17px;
  }

  .sports-credential-rows {
    grid-template-columns: 1fr;
  }

  .generator-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 11px;
    margin-top: 15px;
    padding-top: 15px;
  }

  .generator-actions .btn {
    width: 100%;
  }

  .generator-push-note {
    font-size: 8.5px;
  }

  .generator-side {
    display: flex;
  }

  .points-card {
    padding: 17px 17px 15px;
    border-radius: 23px;
  }

  .points-balance-row strong {
    font-size: 34px;
  }

  .points-card-actions .btn {
    height: 38px;
  }

  .points-modal-head {
    padding: 23px 19px 15px;
  }

  .points-modal-head h2 {
    font-size: 22px;
  }

  #points-modal-body {
    padding: 15px 19px 21px;
  }

  .points-modal-summary {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .points-modal-summary > div > strong {
    font-size: 24px;
  }

  .admin-self-charge {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-self-charge form {
    width: 100%;
  }

  .admin-self-charge input {
    flex: 1;
    width: auto;
  }

  .points-contact-list {
    grid-template-columns: 1fr;
  }

  .points-contact-actions {
    flex-direction: column;
  }

  .points-contact-actions .btn {
    width: 100%;
  }

  .qq-push-card {
    min-height: 226px;
    padding: 21px 20px 17px;
    border-radius: 25px;
  }

  .qq-push-orb {
    width: 31px;
    height: 31px;
    margin-bottom: 13px;
  }

  .qq-push-card h2 {
    font-size: 21px;
  }

  .last-batch-mini {
    border-radius: 23px;
  }

  .batch-panel {
    margin-top: 10px;
    padding: 20px 16px 12px;
    border-radius: 24px;
  }

  .batch-head {
    padding-bottom: 15px;
  }

  .batch-head h2 {
    font-size: 23px;
  }

  .batch-head-actions {
    gap: 6px;
  }

  .batch-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 0;
    padding: 14px 0;
  }

  .batch-metrics > div {
    padding: 0 12px;
  }

  .batch-metrics > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .batch-metrics > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
    padding: 12px 0 0;
    border-left: 0;
  }

  .batch-progress-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .batch-progress {
    flex: 1;
    min-width: 90px;
  }

  .batch-progress-row > span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .batch-admin-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .batch-admin-foot a {
    width: 100%;
    margin-left: 17px;
  }

  .batch-empty {
    align-items: flex-start;
    gap: 11px;
    padding: 18px 16px;
    border-radius: 23px;
  }

  .batch-empty .empty-icon {
    width: 35px;
    height: 35px;
  }

  .batch-empty h2 {
    font-size: 13px;
  }

  .overview-kpis {
    gap: 8px;
  }

  .overview-kpi {
    padding: 14px 14px 13px;
    border-radius: 17px;
  }

  .overview-kpi strong {
    font-size: 26px;
  }

  .collection-bar-card {
    padding: 17px 16px;
    border-radius: 23px;
  }

  .collection-copy > strong {
    font-size: 15px;
  }

  .overview-toolbar {
    margin: 13px 0 9px;
    gap: 9px;
  }

  .overview-toolbar .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .overview-toolbar .segmented button {
    flex: 1 0 auto;
    padding: 7px 9px;
  }

  .admin-table-card {
    padding: 18px 13px 7px;
    border-radius: 23px;
  }

  .admin-table-head {
    flex-direction: column;
    gap: 8px;
    padding: 0 3px;
  }

  .admin-table-head .pill {
    align-self: flex-start;
  }

  .admin-table {
    min-width: 840px;
  }

  .admin-points-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-points-form {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-points-form input[type="text"] {
    flex: 1;
    width: auto;
  }

  .push-history-card {
    margin-top: 10px;
    padding: 17px 15px 7px;
    border-radius: 23px;
  }

  .push-history-side {
    display: none;
  }

  .participant-head {
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 18px 17px;
  }

  .participant-head .avatar--lg {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .participant-head h2 {
    font-size: 21px;
  }

  .participant-head > .status-tag {
    margin-left: 0;
  }

  .participant-body {
    padding: 17px 18px 21px;
  }

  .participant-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
  }

  .participant-stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .admin-record-row {
    gap: 7px;
  }

  .admin-record-metric {
    min-width: 40px;
  }

  .admin-record-metric:nth-last-child(2) {
    display: none;
  }

  .participant-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .participant-foot .btn {
    width: 100%;
  }

  .qq-config-status {
    align-items: flex-start;
    padding: 11px;
  }

  .qq-config-status > .status-tag {
    display: none;
  }

  .qq-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .qq-actions .btn {
    width: 100%;
  }

  .qq-setup-guide {
    padding: 12px;
  }

  .settings-nav a[href="#qq"] {
    white-space: nowrap;
  }

  .page {
    padding-top: 28px;
  }

  .topbar {
    width: calc(100% - 32px);
    height: 58px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .brand-name strong {
    font-size: 17px;
  }

  .landing-header,
  .landing-main,
  .landing-footer {
    width: calc(100% - 36px);
  }

  .landing-header {
    height: 72px;
  }

  .landing-header .landing-auth-link {
    padding: 9px 13px;
    font-size: 11px;
  }

  .landing-main {
    padding-top: 42px;
    padding-bottom: 50px;
  }

  .landing-kicker {
    margin-bottom: 21px;
  }

  .landing-title {
    font-size: clamp(46px, 14vw, 73px);
    letter-spacing: -0.07em;
  }

  .landing-title .line {
    white-space: normal;
  }

  .landing-copy > p {
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .landing-stats {
    margin-top: 29px;
  }

  .landing-stat {
    padding: 0 16px;
  }

  .landing-stat strong {
    font-size: 23px;
  }

  .landing-stat strong span {
    font-size: 8.5px;
  }

  .landing-stat small {
    font-size: 9.5px;
  }

  .landing-route-art {
    opacity: 0.13;
    width: 330px;
    bottom: -52px;
    right: -95px;
  }

  .route-note {
    display: none;
  }

  .landing-contact {
    margin-top: 32px;
    font-size: 10px;
  }

  .landing-contact .mini-avatars {
    display: none;
  }

  .landing-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 22px;
  }

  .landing-footer nav {
    display: none;
  }

  .auth-panel {
    border-radius: 27px;
  }

  .auth-panel-inner {
    padding: 24px 22px 23px;
  }

  .auth-contact {
    padding-left: 22px;
    padding-right: 22px;
  }

  .auth-heading {
    font-size: 22px;
  }

  .dash-greeting {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 21px;
  }

  .dash-greeting h1 {
    font-size: 34px;
  }

  .dash-greeting-side {
    width: 100%;
    justify-content: space-between;
    padding: 0;
  }

  .dash-greeting-side .btn {
    height: 39px;
    font-size: 10.5px;
    padding: 0 14px;
  }

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

  .plan-hero,
  .empty-plan-hero,
  .today-card,
  .empty-today {
    min-height: 343px;
    border-radius: 26px;
  }

  .plan-hero {
    padding: 23px 21px;
  }

  .plan-hero h2 {
    font-size: 28px;
    max-width: 290px;
  }

  .plan-completed strong {
    font-size: 69px;
  }

  .plan-progress-block {
    padding-top: 32px;
  }

  .plan-percent .percent-ring,
  .plan-percent .percent-ring svg {
    width: 47px;
    height: 47px;
  }

  .hero-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-days {
    order: -1;
  }

  .today-date strong {
    font-size: 75px;
  }

  .empty-plan-hero {
    justify-content: flex-start;
  }

  .empty-plan-copy {
    margin-top: 24px;
  }

  .empty-plan-copy h2 {
    font-size: 31px;
  }

  .empty-plan-copy p {
    max-width: 300px;
  }

  .empty-plan-art {
    width: 380px;
    right: -130px;
    bottom: -5px;
    opacity: 0.75;
  }

  .empty-plan-actions {
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 24px;
  }

  .stats-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .stat-card {
    padding: 15px 15px 14px;
  }

  .stat-value {
    font-size: 25px;
  }

  .stat-card-top {
    font-size: 9.5px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  .stat-icon .icon {
    width: 12px;
    height: 12px;
  }

  .lower-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .panel {
    padding: 19px 18px;
    border-radius: 24px;
  }

  .panel-head h2 {
    font-size: 15px;
  }

  .recent-row {
    gap: 10px;
  }

  .recent-distance {
    font-size: 14px;
  }

  .recent-row .row-arrow {
    display: none;
  }

  .contact-strip {
    margin-top: 10px;
    padding: 13px 14px;
    border-radius: 17px;
  }

  .contact-strip .text-link {
    display: none;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .page-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .page-title {
    font-size: 33px;
  }

  .page-sub {
    font-size: 11.5px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 17px;
  }

  .site-footer nav {
    display: none;
  }

  .records-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .record-metric {
    padding: 15px 14px;
  }

  .record-metric strong {
    font-size: 23px;
  }

  .analytics-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .chart-panel,
  .heatmap-panel {
    padding: 19px 17px 15px;
    border-radius: 23px;
  }

  .bar-chart {
    height: 132px;
    gap: 3px;
  }

  .chart-day .chart-bar {
    width: min(100%, 14px);
  }

  .chart-labels {
    gap: 3px;
  }

  .chart-labels span {
    font-size: 6.5px;
  }

  .chart-summary {
    gap: 5px;
  }

  .chart-summary-item strong {
    font-size: 13px;
  }

  .heatmap {
    margin-top: 16px;
  }

  .heatmap-weekdays {
    width: 13px;
  }

  .heatmap-months {
    margin-left: 20px;
  }

  .achievements-section,
  .records-list-section {
    padding: 19px 17px;
    border-radius: 23px;
    margin-top: 10px;
  }

  .achievement-grid {
    gap: 6px;
  }

  .achievement {
    padding: 10px 9px;
    gap: 7px;
  }

  .achievement-icon {
    width: 23px;
    height: 23px;
  }

  .achievement-copy strong {
    font-size: 9px;
  }

  .achievement-copy span {
    font-size: 7.5px;
  }

  .records-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .run-list-row {
    gap: 11px;
  }

  .record-route {
    width: 38px;
    height: 38px;
  }

  .record-route svg {
    width: 25px;
    height: 25px;
  }

  .record-main strong {
    font-size: 10.5px;
  }

  .record-main span {
    font-size: 8.5px;
  }

  .record-dist strong {
    font-size: 17px;
  }

  .record-dist {
    min-width: 55px;
  }

  .record-row-arrow {
    display: none;
  }

  .community-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .podium {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .podium-card {
    min-height: 180px;
    padding: 16px 14px 14px;
    border-radius: 21px;
  }

  .podium-card.first {
    grid-column: 1 / -1;
    min-height: 205px;
    order: -1;
  }

  .podium-card.first .podium-distance {
    font-size: 33px;
  }

  .podium-card h3 {
    font-size: 14px;
  }

  .podium-card.first h3 {
    font-size: 19px;
  }

  .podium-medal {
    top: 14px;
    left: 14px;
  }

  .podium-distance {
    font-size: 23px;
    margin-top: 10px;
  }

  .podium-card::before {
    right: 12px;
    font-size: 29px;
  }

  .podium-bio {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .board-card {
    padding: 17px 13px 9px;
    border-radius: 23px;
  }

  .board-row {
    gap: 8px;
    padding: 10px 3px;
  }

  .board-runner {
    flex: 1;
    gap: 7px;
  }

  .board-metric {
    width: 62px;
  }

  .board-metric strong {
    font-size: 12px;
  }

  .board-streak {
    display: none;
  }

  .board-runner-copy span {
    max-width: 155px;
  }

  .community-metrics {
    margin-bottom: 11px;
    padding: 14px 0;
  }

  .community-metric {
    padding: 0 12px;
  }

  .community-metric strong {
    font-size: 21px;
  }

  .community-metric span {
    font-size: 8px;
  }

  .contact-grid {
    gap: 10px;
  }

  .contact-hero-card {
    padding: 24px 21px 21px;
    border-radius: 27px;
  }

  .contact-owner {
    margin-top: 19px;
  }

  .contact-owner h2 {
    font-size: 23px;
  }

  .contact-quote {
    margin-top: 20px;
    padding: 13px 14px;
    font-size: 10.5px;
  }

  .contact-methods {
    margin-top: 19px;
  }

  .contact-method-copy strong {
    font-size: 12px;
  }

  .message-card {
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .message-card h2 {
    font-size: 19px;
  }

  .faq-card {
    padding: 21px 18px;
    border-radius: 24px;
    margin-top: 10px;
  }

  .settings-card {
    padding: 21px 18px;
    border-radius: 24px;
  }

  .profile-editor {
    align-items: flex-start;
    gap: 13px;
  }

  .profile-avatar-preview .avatar {
    width: 62px;
    height: 62px;
    font-size: 31px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .settings-actions .settings-hint {
    width: 100%;
    margin-bottom: 4px;
  }

  .preference-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .theme-switch,
  .speed-pref {
    align-self: flex-start;
  }

  .inbox-item {
    padding: 12px;
  }

  .plan-modal {
    display: block;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 25px;
  }

  .plan-form-col {
    padding: 25px 19px 22px;
  }

  .plan-preview-col {
    padding: 22px 19px;
  }

  .plan-modal-head {
    margin-bottom: 21px;
  }

  .plan-modal-head h2 {
    font-size: 25px;
  }

  .linked-inputs {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 5px;
  }

  .linked-field {
    padding: 10px 9px 9px;
    border-radius: 11px;
  }

  .linked-field label {
    font-size: 8px;
    white-space: nowrap;
  }

  .linked-field input {
    font-size: 20px;
  }

  .weekday-btn {
    padding: 8px 1px 7px;
  }

  .weekday-btn small {
    display: none;
  }

  .weekday-btn strong {
    font-size: 11px;
  }

  .pace-custom {
    margin-left: 0;
  }

  .plan-preview-meta {
    grid-template-columns: 1fr;
  }

  .plan-form-actions {
    flex-wrap: wrap;
  }

  .plan-form-actions .btn-danger-ghost {
    order: 3;
    width: 100%;
    border-radius: 999px;
    margin-top: 3px;
  }

  .summary-card {
    padding: 28px 21px 24px;
    border-radius: 26px;
  }

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

  .summary-stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .summary-actions {
    flex-direction: column;
  }

  .summary-actions .btn-accent {
    flex: none;
  }

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

  .run-detail-head {
    padding: 24px 20px 17px;
  }

  .run-detail-body {
    padding: 18px 20px 22px;
  }

  .run-detail-stats {
    grid-template-columns: 1fr 1fr;
    gap: 15px 0;
  }

  .run-detail-stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .run-detail-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .run-detail-actions .btn {
    width: 100%;
  }

  .run-detail-actions .meta {
    text-align: center;
  }

  .live-topbar {
    width: calc(100% - 30px);
    height: 70px;
    gap: 10px;
  }

  .live-brand {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .live-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .live-brand .brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .live-brand span {
    display: none;
  }

  .live-top-actions {
    gap: 7px;
  }

  .live-exit span {
    display: none;
  }

  .live-exit {
    width: 31px;
    height: 31px;
    justify-content: center;
    border: 1px solid rgba(244, 247, 237, 0.13);
    border-radius: 50%;
  }

  .speed-switcher {
    gap: 0;
  }

  .speed-btn {
    padding: 5px 6px;
    font-size: 8px;
  }

  .live-badge {
    display: none;
  }

  .live-progress-rail {
    top: 69px;
  }

  .live-main {
    width: calc(100% - 30px);
    padding-top: 22px;
    gap: 20px;
  }

  .live-statusline {
    font-size: 8.5px;
  }

  .live-statusline .plan-name {
    max-width: 140px;
  }

  .live-distance {
    margin-top: 18px;
  }

  .live-distance strong {
    font-size: clamp(83px, 27vw, 116px);
  }

  .live-target {
    margin-top: 13px;
    font-size: 9.5px;
  }

  .live-stat-grid {
    margin-top: 24px;
    padding: 14px 0;
  }

  .live-stat {
    padding: 0 12px;
  }

  .live-stat strong {
    font-size: 21px;
  }

  .live-stat small {
    font-size: 7.5px;
  }

  .live-actions {
    margin-top: 19px;
  }

  .live-btn {
    height: 43px;
    padding: 0 16px;
    font-size: 11px;
  }

  .live-btn--primary {
    min-width: 112px;
  }

  .live-note {
    font-size: 8px;
  }

  .track-stage {
    max-height: 300px;
    border-radius: 25px;
    aspect-ratio: 1.35;
  }

  .track-svg {
    transform: scale(1.08);
  }

  .track-distance-tag {
    top: 14px;
    right: 14px;
    font-size: 7.5px;
  }

  .track-meta {
    left: 15px;
    bottom: 12px;
    font-size: 7px;
  }

  .live-quote {
    margin-top: 11px;
  }

  .live-quote p {
    font-size: 9.5px;
  }

  .live-quote .quote-sign {
    display: none;
  }

  .live-splits {
    width: calc(100% - 30px);
    padding-bottom: 21px;
  }

  .split-chip {
    padding: 5px 8px;
  }

  .live-splits-label {
    font-size: 7px;
  }

  .toast-root {
    top: 72px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .toast {
    padding: 11px 12px;
  }
}

@media (max-width: 420px) {
  .landing-title {
    font-size: clamp(43px, 13.5vw, 57px);
  }

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

  .landing-stat {
    padding: 0 13px;
  }

  .landing-stat small {
    font-size: 9px;
  }

  .landing-auth-link {
    font-size: 10px;
    padding: 8px 11px;
  }

  .dash-greeting h1 {
    font-size: 30px;
  }

  .today-card {
    min-height: 330px;
  }

  .plan-hero,
  .empty-plan-hero {
    min-height: 330px;
  }

  .empty-plan-actions .hint {
    display: none;
  }

  .summary-card h2 {
    font-size: 29px;
  }

  .summary-distance strong {
    font-size: 75px;
  }

  .weekday-picker {
    gap: 4px;
  }

  .weekday-btn strong {
    font-size: 10px;
  }

  .linked-field input {
    font-size: 18px;
  }

  .settings-card {
    padding: 19px 15px;
  }

  .profile-editor {
    flex-direction: column;
  }

  .live-distance strong {
    font-size: 82px;
  }

  .live-stat strong {
    font-size: 18px;
  }

  .live-stat span {
    font-size: 7px;
  }

  .live-actions {
    gap: 6px;
  }

  .live-btn {
    padding: 0 13px;
  }
}

@media (max-width: 1050px) {
  .world-account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .world-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .world-account-card {
    padding: 11px;
  }

  .world-account-card > strong {
    font-size: 11px;
  }

  .records-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .batch-toggle {
    margin-left: auto;
  }

  .batch-bar,
  .admin-batch-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .batch-bar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .run-select-wrap {
    padding-left: 0;
  }

  .admin-record-check {
    width: 15px;
  }

  .admin-record-row {
    gap: 7px;
  }

  .admin-world-account {
    max-width: 130px;
  }
}

@media (max-width: 760px) {
  .invite-code-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .invite-code-editor {
    width: 100%;
    min-width: 0;
  }

  .invite-code-row input {
    min-width: 0;
    flex-basis: 100%;
  }

  .admin-world-container > td {
    padding: 0 8px 10px 14px;
  }

  .admin-world-panel {
    padding: 10px 10px 7px;
  }

  .admin-world-panel-head {
    flex-direction: column;
    gap: 3px;
  }

  .admin-world-panel-head small {
    white-space: normal;
  }

  .admin-login-identity {
    min-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
