/* Untitled Notifier: one lit object (the Hours card), everything else flat and quiet. */

@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #5C5C58;
}

:root {
  --bg: #0E0E0E;
  --panel: #141414;
  --raised: #1A1A1A;
  --line: #242424;
  --line-2: #2E2E2E;
  --line-3: #3C3C3A;
  --text: #EDEDEA;
  --muted: #8C8C87;
  --faint: #5C5C58;

  --premium: #FF4655;
  --farmer: #34D27B;
  --budget: #F5C542;
  --plus: #34D27B;
  --warn: #F5A524;
  --danger: #FF6B6B;
  --night: #8C9EFF;

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

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r-card: 20px;
  --r-tile: 14px;
  --r-ctl: 10px;
  --gutter: 24px;
  --edge: inset 0 1px 0 rgb(255 255 255 / .035);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgb(237 237 234 / .2); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
main:focus-visible { outline: none; }
.num { font-variant-numeric: tabular-nums; }
.icon { flex: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus-visible { top: 12px; }

/* Hidden while the app starts; if its script never runs (blocked or rewritten by a proxy), the page shows anyway */
body.is-booting main { opacity: 0; animation: boot-reveal .3s ease 2.5s forwards; }
@keyframes boot-reveal { to { opacity: 1; } }
main { opacity: 1; transition: opacity .35s ease; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bh: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  user-select: none; -webkit-user-select: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .14s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { cursor: not-allowed; opacity: .42; }
.btn--primary { background: var(--text); color: #0E0E0E; }
.btn--secondary { background: var(--raised); border-color: var(--line-2); color: var(--text); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--sm { --bh: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn--lg { --bh: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; gap: 10px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover:not(:disabled) { background: #FFFFFF; }
  .btn--secondary:hover:not(:disabled) { background: #202020; border-color: var(--line-3); }
  .btn--ghost:hover:not(:disabled) { color: var(--text); background: var(--raised); }
}
.btn.is-busy { cursor: progress; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none; border: 0; padding: 4px 2px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  border-radius: 6px;
  transition: color .15s ease;
}
@media (hover: hover) { .link-btn:hover { color: var(--text); } }

/* copy buttons morph into "Copied" */
.copy__icon { display: inline-grid; width: 16px; height: 16px; }
.copy__icon > .icon { grid-area: 1 / 1; transition: opacity .18s ease, transform .3s var(--ease-out); }
.copy__icon > .icon:last-child { opacity: 0; transform: scale(.4); color: var(--plus); }
.copy__label { display: inline-grid; justify-items: start; }
.copy__label > span { grid-area: 1 / 1; transition: opacity .18s ease, transform .3s var(--ease-out); }
.copy__label > span:last-child { opacity: 0; transform: translateY(5px); }
.copy.is-copied .copy__icon > .icon:first-child { opacity: 0; transform: scale(.4); }
.copy.is-copied .copy__icon > .icon:last-child { opacity: 1; transform: none; }
.copy.is-copied .copy__label > span:first-child { opacity: 0; transform: translateY(-5px); }
.copy.is-copied .copy__label > span:last-child { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: rgb(14 14 14 / .82);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  border-radius: 8px;
}
.brand img { border-radius: 8px; }

.tabs {
  justify-self: center;
  position: relative;
  display: flex;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tabs__pill {
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: var(--pill-w, 0px);
  transform: translateX(var(--pill-x, 0px));
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  transition: transform .42s var(--ease-out), width .42s var(--ease-out);
}
.tabs.is-placing .tabs__pill { transition: none; }
.tab {
  position: relative; z-index: 1;
  padding: 7px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: color .2s ease;
}
.tab[aria-current="page"] { color: var(--text); }
@media (hover: hover) { .tab:hover { color: var(--text); } }

.account { justify-self: end; display: flex; align-items: center; gap: 14px; min-width: 0; }

.live { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; font-weight: 500; }
.live__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transition: background-color .4s ease, box-shadow .4s ease; }
.live.is-on { color: var(--muted); }
.live.is-on .live__dot { background: var(--plus); box-shadow: 0 0 0 3px rgb(52 210 123 / .16); }

.menu { position: relative; }
.me {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  max-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .16s ease, background-color .16s ease;
}
@media (hover: hover) { .me:hover { border-color: var(--line-2); background: var(--raised); } }
.me[aria-expanded="true"] { border-color: var(--line-3); background: var(--raised); }
.me__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__chev { color: var(--muted); transition: transform .25s var(--ease-out); }
.me[aria-expanded="true"] .me__chev { transform: rotate(180deg); }

.menu__list {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 232px;
  padding: 6px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / .75), var(--edge);
  transform-origin: top right;
  animation: pop-in .18s var(--ease-out);
}
.menu__head { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__id { color: var(--muted); font-size: 12.5px; }
.menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px;
  background: none; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-align: left;
  color: var(--text);
  transition: background-color .14s ease;
}
.menu__item .icon { color: var(--muted); }
@media (hover: hover) { .menu__item:hover { background: #222; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* ---------------------------------------------------------------- avatars, badges */
.avatar {
  --size: 32px;
  position: relative; flex: none;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar__initial { font-family: var(--display); font-weight: 700; font-size: calc(var(--size) * .42); color: var(--muted); }
.avatar--sm { --size: 30px; }
.avatar--md { --size: 48px; }
.avatar--lg { --size: 56px; }

.t-premium { --tc: var(--premium); }
.t-farmer { --tc: var(--farmer); }
.t-budget { --tc: var(--budget); }
.t-other { --tc: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 26%, transparent);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- landing */
.landing {
  position: relative; isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -64px; /* the light starts above the (translucent) top bar */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 136px var(--gutter) 96px;
  text-align: center;
  overflow: hidden;
  overflow: clip;
  --glow: var(--premium);
}
.landing__light { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.landing__light::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: min(1200px, 160vw); height: 90%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%,
    color-mix(in srgb, var(--glow) 24%, transparent) 0deg, transparent 22deg,
    transparent 338deg, color-mix(in srgb, var(--glow) 24%, transparent) 360deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  filter: blur(24px);
}
.landing__light::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: min(760px, 120vw); height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 72%);
}
.lamp {
  position: absolute; left: 50%; top: 0;
  width: 200px; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--glow) 30%, var(--glow) 70%, transparent);
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--glow) 55%, transparent);
}
.landing .lamp { width: 320px; }
.landing__title {
  max-width: 12ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 8.4vw, 104px);
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.landing__lead {
  max-width: 44ch;
  margin: 24px auto 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}
.landing__error {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: var(--r-ctl);
  background: rgb(255 107 107 / .08);
  border: 1px solid rgb(255 107 107 / .28);
  color: #FFB4B4;
  font-size: 14px; font-weight: 500;
}
.landing__note { margin-top: 22px; color: var(--faint); font-size: 13px; }

.fatal { max-width: 440px; margin: 0 auto; padding: 120px var(--gutter); text-align: center; display: grid; gap: 14px; justify-items: center; }
.fatal__title { font-family: var(--display); font-weight: 750; font-size: 30px; letter-spacing: -.03em; }
.fatal__text { color: var(--muted); }

/* ---------------------------------------------------------------- page scaffolding */
.page { max-width: 1180px; margin: 0 auto; padding: 36px var(--gutter) 96px; }
.page__head { margin-bottom: 28px; display: grid; gap: 6px; }
.page__title, .greet__title {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.page__sub { color: var(--muted); font-size: 15px; }

.greet { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.help { color: var(--muted); font-size: 14px; padding-bottom: 6px; }
.help a {
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-3); text-underline-offset: 4px; text-decoration-thickness: 1px;
  border-radius: 4px;
  transition: text-decoration-color .16s ease;
}
@media (hover: hover) { .help a:hover { text-decoration-color: var(--text); } }

.card {
  position: relative;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--edge);
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 18px; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

.dash {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "hours wallet" "script activity";
  gap: 16px;
  align-items: start;
}
.hours { grid-area: hours; align-self: stretch; }
.wallet { grid-area: wallet; align-self: stretch; }
.script { grid-area: script; }
.activity { grid-area: activity; }

/* ---------------------------------------------------------------- hours (the lit card) */
.hours {
  --glow: var(--faint);
  display: flex; flex-direction: column;
  min-height: 392px;
  overflow: hidden;
  overflow: clip; /* never scrollable, even when focus moves inside */
  isolation: isolate;
  container-type: inline-size;
  border-color: color-mix(in srgb, var(--glow) 16%, var(--line));
  transition: --glow .9s ease, border-color .9s ease;
}
.hours[data-tier="premium"] { --glow: var(--premium); }
.hours[data-tier="farmer"] { --glow: var(--farmer); }
.hours[data-tier="budget"] { --glow: var(--budget); }
.hours__light { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hours__light::before {
  content: ""; position: absolute; left: 50%; top: -1px;
  width: 140%; height: 125%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%,
    color-mix(in srgb, var(--glow) 30%, transparent) 0deg, transparent 27deg,
    transparent 333deg, color-mix(in srgb, var(--glow) 30%, transparent) 360deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  filter: blur(20px);
}
.hours__light::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 78%; height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(50% 58% at 50% 0%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 72%);
}
.hours[data-tier="none"] .hours__light { opacity: .45; }
.hours__head { position: relative; flex-wrap: wrap; }

.switch { display: flex; flex-wrap: wrap; gap: 6px; }
.switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(14 14 14 / .5);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.switch__btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); opacity: .55; transition: opacity .16s ease; }
.switch__btn[aria-pressed="true"] { color: var(--text); border-color: var(--line-3); background: var(--raised); }
.switch__btn[aria-pressed="true"]::before { opacity: 1; }
@media (hover: hover) { .switch__btn:hover { color: var(--text); border-color: var(--line-2); } .switch__btn:hover::before { opacity: 1; } }

.hours__stage {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 12px 0 18px;
  text-align: center;
}
.hours__status { color: var(--muted); font-size: 15px; max-width: 46ch; text-wrap: balance; }
.hours__status strong { color: var(--text); font-weight: 600; }

.hours__empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 0 24px; text-align: center;
}
.hours__empty-title { font-family: var(--display); font-weight: 750; font-size: clamp(30px, 7cqi, 44px); letter-spacing: -.035em; line-height: 1.05; }
.hours__empty-text { color: var(--muted); max-width: 36ch; margin-bottom: 10px; }

.hours__foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: flex; gap: 14px; align-items: baseline; }
.hours__foot-title { font-size: 13px; font-weight: 600; color: var(--muted); flex: none; }
.bookings { display: grid; gap: 6px; min-width: 0; }
.bookings li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--text); min-width: 0; }
.bookings li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); transform: translateY(-2px); }
.bookings .num { color: var(--muted); }

/* odometer: each digit is a strip of 0-9 twice; only the transform moves */
.odo {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(104px, 16.5cqi);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-height: 1.1em;
}
.odo.is-long { font-size: min(92px, 13.2cqi); }
.odo.is-static { color: var(--muted); }
.odo__digit {
  display: inline-grid;
  height: 1.1em;
  vertical-align: baseline;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.odo__digit + .odo__digit { margin-left: -.035em; }
.odo__strip {
  display: block;
  transform: translateY(calc(var(--i, 10) * -1.1em));
  transition: transform var(--dur, .5s) var(--roll, cubic-bezier(.3, .7, .2, 1)) var(--delay, 0s);
  will-change: transform;
}
.odo__strip.no-tx { transition: none; }
.odo__strip > span { display: block; height: 1.1em; line-height: 1.1em; text-align: center; }
.odo__unit {
  font-size: .32em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin: 0 .5em 0 .12em;
}
.odo__unit:last-child { margin-right: 0; }

/* ---------------------------------------------------------------- wallet */
.wallet { display: flex; flex-direction: column; container-type: inline-size; }
.wallet__amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(68px, 17cqi);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 6px 0 14px;
  transition: color .6s ease;
}
.wallet__amount.is-up { color: var(--plus); transition-duration: .15s; }
.wallet__hint { color: var(--muted); font-size: 14px; max-width: 32ch; }
.wallet__actions { margin: 22px 0 24px; display: flex; gap: 10px; }
.wallet__last {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.wallet__last b { font-weight: 600; color: var(--text); }
.wallet__last b.is-plus { color: var(--plus); }

/* ---------------------------------------------------------------- scripts */
.scripts { display: grid; }
.sc { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.sc:first-child { border-top: 0; padding-top: 0; }
.sc:last-child { padding-bottom: 0; }
.sc__top { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.sc__meta { color: var(--muted); font-size: 13px; }
.sc__key {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px;
  padding: 6px 6px 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sc__key-label { color: var(--muted); font-size: 13px; font-weight: 500; flex: none; }
.sc__key-value {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: all; -webkit-user-select: all;
}
.sc__key-value.is-masked { letter-spacing: .08em; color: var(--muted); user-select: none; -webkit-user-select: none; }
.sc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc__msg { font-size: 13.5px; color: var(--muted); }
.sc__msg.is-ok { color: var(--plus); }
.sc__msg.is-bad { color: var(--danger); }
.empty-text { color: var(--muted); font-size: 14px; max-width: 40ch; }

/* ---------------------------------------------------------------- activity */
.act { display: grid; }
.act.is-all { max-height: 560px; overflow-y: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.act li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.act li:first-child { border-top: 0; padding-top: 2px; }
.act li.is-new { animation: arrive 1.8s ease-out; }
@keyframes arrive { from { background: rgb(52 210 123 / .1); } }
.act__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
}
.act__icon.is-in { color: var(--plus); }
.act__text { min-width: 0; display: grid; }
.act__title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act__sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act__nums { display: grid; justify-items: end; }
.act__amt { font-weight: 600; font-size: 14px; }
.act__amt.is-plus { color: var(--plus); }
.act__bal { color: var(--faint); font-size: 12.5px; }
.act__empty { color: var(--muted); font-size: 14px; display: block !important; border: 0 !important; }

/* ---------------------------------------------------------------- subscribers */
.subs { display: grid; gap: 44px; }
.tier__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.tier__name {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -.03em; line-height: 1.1;
}
.tier__name::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--tc);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--tc) 55%, transparent);
}
.tier__count { color: var(--muted); font-size: 14px; }
.tier__note { color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 148px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .2s ease, box-shadow .3s ease;
}
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
@media (hover: hover) {
  .tile:not(.is-open):hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
    box-shadow: 0 14px 32px -18px color-mix(in srgb, var(--tc) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--tc) 10%, transparent);
  }
}
.tile:not(.is-open):focus-within { border-color: var(--line-2); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.tile__n { color: var(--muted); font-size: 13px; font-weight: 500; }
.who {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  width: 100%;
  margin: -4px; padding: 4px;
  width: calc(100% + 8px);
  background: none; border: 0; border-radius: 10px;
  text-align: left;
}
.who__text { display: grid; min-width: 0; }
.who__name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.who__left { color: var(--muted); font-size: 13.5px; }
.tile.is-frozen .who__left { color: var(--faint); }
@media (hover: hover) { .who:hover .who__name { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; } }
.tile__owner {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.owner-btn {
  min-width: 0;
  padding: 0; background: none; border: 0; border-radius: 4px;
  color: var(--text); font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: underline dotted; text-decoration-color: var(--line-3); text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
@media (hover: hover) { .owner-btn:hover { text-decoration-color: var(--text); } }

.tile.is-open {
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--faint);
}
.tile.is-open::before { display: none; }
.tile.is-open .tile__n { position: absolute; left: 16px; top: 14px; color: var(--faint); }
.tile__open { font-weight: 600; font-size: 14px; color: var(--muted); }

.skeleton { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-tile); min-height: 148px; }
.skeleton-head { width: 180px; height: 28px; border-radius: 8px; background: var(--panel); margin-bottom: 16px; }

/* person popover */
.pop {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 288px; max-width: calc(100vw - 16px);
  padding: 18px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 28px 56px -20px rgb(0 0 0 / .8), var(--edge);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform-origin: var(--ox, 50%) var(--oy, 0px);
  transform: scale(.94) translateY(var(--dy, -4px));
  transition: opacity .16s ease, transform .22s var(--ease-out), visibility 0s linear .22s;
}
.pop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .22s var(--ease-out), visibility 0s; }
.pop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc, var(--line-3)); }
.pc { display: grid; gap: 16px; }
.pc__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.pc__names { display: grid; min-width: 0; }
.pc__name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__user { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__role { color: var(--muted); font-size: 13px; }
.pc__id {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  text-align: left;
  transition: border-color .15s ease;
}
@media (hover: hover) { .pc__id:hover { border-color: var(--line-3); } }
.pc__id-text { display: grid; min-width: 0; }
.pc__id-label { color: var(--muted); font-size: 12px; }
.pc__id-value { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pc__id .copy__icon { color: var(--muted); }

/* ---------------------------------------------------------------- payments */
.pay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.pay__form { display: grid; gap: 26px; }
.field { display: grid; gap: 0; }
.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.field__hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.field__hint.is-bad { color: var(--danger); }
.money {
  display: flex; align-items: center;
  height: 68px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.money:focus-within { border-color: var(--muted); box-shadow: 0 0 0 3px rgb(237 237 234 / .08); }
.money.is-bad { border-color: rgb(255 107 107 / .55); }
.money__sign { padding-left: 18px; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--faint); }
.money__input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 18px 0 6px;
  background: transparent; border: 0; outline: 0;
  font-family: var(--display); font-weight: 750; font-size: 32px; letter-spacing: -.03em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .14s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--line-3); background: var(--raised); }
@media (hover: hover) { .chip:hover { color: var(--text); border-color: var(--line-3); } }

.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.coin {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, transform .2s var(--ease-out), opacity .16s ease;
}
@media (hover: hover) { .coin:hover:not(:disabled) { border-color: var(--line-3); background: var(--raised); transform: translateY(-1px); } }
.coin:active:not(:disabled) { transform: scale(.98); }
.coin[aria-pressed="true"] { border-color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--text); }
.coin:disabled { cursor: not-allowed; opacity: .5; }
.coin__glyph {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raised);
  border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: -.02em;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.coin__text { display: grid; min-width: 0; }
.coin__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin__net { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin:disabled .coin__net { color: var(--warn); }
.coins__loading { color: var(--muted); font-size: 14px; }

.form-error {
  padding: 10px 14px; border-radius: var(--r-ctl);
  background: rgb(255 107 107 / .08);
  border: 1px solid rgb(255 107 107 / .28);
  color: #FFB4B4; font-size: 14px;
}
.pay__pick { text-align: center; margin-top: -14px; }

/* deposit panel */
.pay__panel { display: grid; gap: 22px; }
.dep__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step { display: grid; gap: 10px; font-size: 13px; color: var(--faint); font-weight: 500; }
.step__bar { position: relative; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.step__bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out), background-color .5s ease;
}
.step__label { display: flex; align-items: center; gap: 6px; }
.step.is-active { color: var(--text); }
.step.is-active .step__bar::after { transform: scaleX(.45); animation: working 1.6s ease-in-out infinite alternate; }
.step.is-done { color: var(--muted); }
.step.is-done .step__bar::after { transform: scaleX(1); }
.steps.is-complete .step { color: var(--text); }
.steps.is-complete .step__bar::after { background: var(--plus); }
.steps.is-failed .step.is-active .step__bar::after { background: var(--danger); animation: none; transform: scaleX(1); }
@keyframes working { from { transform: scaleX(.25); } to { transform: scaleX(.7); } }

.dep__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 24px; align-items: start; }
.qr { width: 196px; aspect-ratio: 1; padding: 12px; background: #FFFFFF; border-radius: 16px; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.dep__rows { display: grid; gap: 16px; min-width: 0; }
.dep__row { display: grid; gap: 6px; min-width: 0; }
.dep__label { color: var(--muted); font-size: 13px; font-weight: 500; }
.dep__value-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.dep__amount { font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
.dep__amount small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.dep__addr {
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  overflow-wrap: anywhere; word-break: break-all;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  user-select: all; -webkit-user-select: all;
}
.dep__usd { color: var(--muted); font-size: 13px; }

.callout {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(245 165 36 / .07);
  border: 1px solid rgb(245 165 36 / .3);
  color: #F7D9A4;
  font-size: 14px; line-height: 1.5;
}
.callout .icon { color: var(--warn); margin-top: 1px; }
.callout strong { color: #FFE7BF; font-weight: 600; }
.callout.is-bad { background: rgb(255 107 107 / .07); border-color: rgb(255 107 107 / .3); color: #FFC9C9; }
.callout.is-bad .icon { color: var(--danger); }

.dep__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.ext { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; border-radius: 4px; }
@media (hover: hover) { .ext:hover { text-decoration-color: var(--text); } }

.dep__empty { display: grid; gap: 22px; }
.dep__empty-title, .dep__title { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.dep__empty-text { color: var(--muted); font-size: 14px; max-width: 46ch; }

.done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 18px 0 6px; }
.done__mark {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--plus);
  background: rgb(52 210 123 / .1);
  border: 1px solid rgb(52 210 123 / .35);
}
.done__mark path { stroke-dasharray: 24; stroke-dashoffset: 0; animation: draw .6s var(--ease-out) .15s backwards; }
@keyframes draw { from { stroke-dashoffset: 24; } }
.done__title { font-family: var(--display); font-weight: 750; font-size: 24px; letter-spacing: -.03em; }
.done__text { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- shared form bits */
.input {
  width: 100%; height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 16px; font-weight: 500;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .money__input::placeholder { color: var(--faint); font-weight: 500; }
.input:focus { border-color: var(--muted); box-shadow: 0 0 0 3px rgb(237 237 234 / .08); }
.money--sm { height: 52px; border-radius: 12px; }
.money--sm .money__sign { font-size: 22px; padding-left: 14px; }
.money--sm .money__input { font-size: 22px; padding: 0 14px 0 4px; }
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .14s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { color: var(--text); background: var(--raised); border-color: var(--line-2); } }
.avatar--xs { --size: 18px; }
.badge--sm { height: 22px; padding: 0 9px 0 8px; font-size: 12px; gap: 6px; }
.section-title { font-family: var(--display); font-weight: 750; font-size: 24px; letter-spacing: -.03em; margin-bottom: 14px; }
.tab__icon { display: none; }

/* ---------------------------------------------------------------- tier subtabs */
.tier-bar { margin-bottom: 22px; }
.subtabs {
  position: relative;
  display: inline-flex; gap: 2px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 100%;
}
.subtabs__pill {
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: var(--sw, 0px);
  transform: translateX(var(--sx, 0px));
  border-radius: 10px;
  background: color-mix(in srgb, var(--tc, #888) 11%, var(--raised));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, #888) 40%, transparent);
  transition: transform .42s var(--ease-out), width .42s var(--ease-out), background-color .4s ease, box-shadow .4s ease;
}
.subtabs.is-placing .subtabs__pill { transition: none; }
.subtab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: none; border: 0; border-radius: 10px;
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}
.subtab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); opacity: .45; transition: opacity .2s ease, box-shadow .3s ease; }
.subtab__n { color: var(--faint); font-size: 12.5px; transition: color .2s ease; }
.subtab[aria-selected="true"] { color: var(--text); }
.subtab[aria-selected="true"]::before { opacity: 1; box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 75%, transparent); }
.subtab[aria-selected="true"] .subtab__n { color: var(--tc); }
@media (hover: hover) { .subtab:hover { color: var(--text); } .subtab:hover::before { opacity: 1; } }
.subtab:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------------- coin logos */
.coin-logo { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.coin-logo__img { width: 100%; height: 100%; }
.coin-logo__letter {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 800; font-size: 13px;
}
.coin-logo__net {
  position: absolute; right: -4px; bottom: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--panel);
  transition: box-shadow .16s ease;
}
.coin[aria-pressed="true"] .coin-logo__net { box-shadow: 0 0 0 2px var(--raised); }
.coin-logo--lg { width: 40px; height: 40px; }
.coin-logo--lg .coin-logo__net { width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--panel); }
.dep__amount-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ---------------------------------------------------------------- send money (wallet) */
.wallet__actions .btn.is-active { border-color: var(--line-3); background: #202020; }
.send {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease-out), opacity .3s ease;
}
.send.is-open { grid-template-rows: 1fr; opacity: 1; }
.send__inner { min-height: 0; overflow: hidden; }
.send__form, .send__step { display: grid; gap: 16px; padding: 2px 2px 24px; }
.send .field__label { margin-bottom: 8px; }
.send .field__hint { margin-top: 8px; }
.send__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.send__q { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.send__done { display: flex; gap: 14px; align-items: flex-start; }
.send__mark { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--plus); background: rgb(52 210 123 / .1); border: 1px solid rgb(52 210 123 / .35); }
.send__mark path { stroke-dasharray: 24; animation: draw .6s var(--ease-out) .1s backwards; }
.recipient { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.recipient:empty { display: none; }
.recipient.is-bad { color: #FFC9A8; align-items: flex-start; }
.recipient.is-bad .icon { color: var(--warn); margin-top: 2px; }
.recipient.is-ok { padding: 8px 12px 8px 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); }
.recipient__names { display: grid; min-width: 0; flex: 1; }
.recipient__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient__user { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient__ok { color: var(--plus); }
.recipient .spinner { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- marketplace */
.mk-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mk-tools__right { display: flex; gap: 8px; flex-wrap: wrap; }
.search, .select {
  position: relative; display: flex; align-items: center;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  transition: border-color .15s ease;
}
.search:focus-within, .select:focus-within { border-color: var(--muted); }
.search .icon { position: absolute; left: 11px; pointer-events: none; }
.search input {
  height: 100%; width: 220px; padding: 0 12px 0 34px;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.select select {
  appearance: none; -webkit-appearance: none;
  height: 100%; padding: 0 34px 0 12px;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.select select option { background: var(--raised); color: var(--text); }
.select .icon { position: absolute; right: 10px; pointer-events: none; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--edge);
}
.stat { padding: 16px 20px; display: grid; gap: 4px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lcard {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--edge);
  overflow: hidden; overflow: clip;
  transition: transform .25s var(--ease-out), border-color .2s ease, box-shadow .3s ease;
}
.lcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
@media (hover: hover) {
  .lcard:not(.is-off):not(.is-skeleton):hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
    box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--tc) 55%, transparent), var(--edge);
  }
}
.lcard.is-skeleton { min-height: 300px; }
.lcard.is-skeleton::before { display: none; }
.lcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.lcard__who { display: grid; min-width: 0; }
.lcard__name { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__user { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.lcard__free { display: grid; }
.lcard__hours { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.035em; line-height: 1; }
.lcard__hours-label { color: var(--muted); font-size: 13px; margin-top: 5px; }
.lcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag .icon { margin-right: 5px; }
.tag--open { color: var(--text); }
.tag--open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--plus); margin-right: 6px; }
.tag--muted { color: var(--muted); }
.tag--night { color: #C9D1FF; background: rgb(140 158 255 / .1); border-color: rgb(140 158 255 / .3); }
.lcard__booked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.lcard__booked-label { color: var(--faint); }
.who-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.who-chip__swatch { width: 8px; height: 8px; border-radius: 2px; background: hsl(var(--hue, 0) 30% 46%); }
.who-chip__dur { color: var(--muted); }
.lcard__more { color: var(--faint); }
.lcard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lcard__price { display: grid; gap: 5px; min-width: 0; }
.lcard__rate { font-family: var(--display); font-weight: 750; font-size: 24px; letter-spacing: -.03em; line-height: 1.05; }
.lcard__rate small { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.lcard__terms { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12.5px; }
.lcard__night { display: inline-flex; align-items: center; gap: 5px; color: #C9D1FF; }
.lcard__cta { display: grid; justify-items: end; gap: 6px; flex: none; }
.lcard__cta .btn { min-width: 96px; }
.lcard__reason { color: var(--faint); font-size: 12px; text-align: right; max-width: 20ch; }
.mk-empty { grid-column: 1 / -1; display: grid; gap: 8px; justify-items: start; padding: 32px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.mk-empty__title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); }

/* timeline strip */
.tl { --tl-h: 22px; display: grid; gap: 6px; min-width: 0; }
.tl__track {
  position: relative;
  height: var(--tl-h);
  border-radius: 7px;
  background: repeating-linear-gradient(135deg, var(--raised) 0 6px, #171717 6px 12px);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; overflow: clip;
}
.tl__free, .tl__book, .tl__night, .tl__sel { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); }
.tl__free {
  background: color-mix(in srgb, var(--tc) 30%, #141414);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tc) 60%, transparent);
}
.tl__book {
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--hue, 0) 24% 29%);
  box-shadow: inset 1px 0 0 rgb(14 14 14 / .8), inset -1px 0 0 rgb(14 14 14 / .8);
}
.tl__book .avatar { box-shadow: 0 0 0 1.5px hsl(var(--hue, 0) 24% 29%); }
.tl__night { pointer-events: none; background: rgb(140 158 255 / .12); box-shadow: inset 0 -2px 0 rgb(140 158 255 / .6); }
.tl__axis { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 12px; }

.tl-scroll {
  --pad: 24px;
  margin: 0 calc(var(--pad) * -1);
  padding: 10px var(--pad) 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
}
.tl--lg { --tl-h: 64px; gap: 10px; min-width: max(100%, calc(var(--hrs, 1) * 26px)); }
.tl--lg .tl__track { border-radius: 12px; }
.tl__track.is-pickable { cursor: pointer; touch-action: pan-x; overflow: visible; }
.tl__track.is-pickable::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.tl--lg .tl__free:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.tl__sel {
  border-radius: 8px;
  background: rgb(237 237 234 / .14);
  box-shadow: inset 0 0 0 2px var(--text), 0 0 24px -4px color-mix(in srgb, var(--tc) 60%, transparent);
  pointer-events: none;
  transition: left .22s var(--ease-out), width .22s var(--ease-out);
}
.tl__handle {
  position: absolute; top: -7px; bottom: -7px; left: var(--l);
  width: 24px; margin-left: -12px;
  display: grid; place-items: center;
  cursor: grab;
  border-radius: 6px;
  touch-action: none;
  transition: left .22s var(--ease-out);
}
.tl__handle::before { content: ""; width: 4px; height: 100%; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px rgb(14 14 14 / .65); }
.tl__track.is-dragging .tl__sel, .tl__track.is-dragging .tl__handle { transition: none; }
.tl__track.is-dragging .tl__handle { cursor: grabbing; }
.tl__handle:focus-visible { outline-offset: 0; }
.tl__ticks { position: relative; height: 16px; color: var(--faint); font-size: 12px; }
.tl__tick { position: absolute; left: var(--l); transform: translateX(-50%); white-space: nowrap; }
.tl__tick::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: var(--line-3); }
.tl__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12.5px; }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ""; width: 12px; height: 8px; border-radius: 2px; }
.lg--free::before { background: color-mix(in srgb, var(--tc) 30%, #141414); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tc) 60%, transparent); }
.lg--booked::before { background: hsl(210 20% 30%); }
.lg--night::before { background: rgb(140 158 255 / .2); box-shadow: inset 0 -2px 0 rgb(140 158 255 / .7); }
.lg--sel::before { background: rgb(237 237 234 / .14); box-shadow: inset 0 0 0 1.5px var(--text); }

.tip {
  position: fixed; z-index: 80;
  display: grid; gap: 2px;
  max-width: 260px;
  padding: 8px 11px;
  background: #222;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / .8);
  font-size: 12.5px; color: var(--muted);
  pointer-events: none;
}
.tip strong { color: var(--text); font-weight: 600; font-size: 13px; }
.tip.is-on { animation: pop-in .14s var(--ease-out); }

/* your rentals */
.mine { margin-top: 44px; }
.rentals { display: grid; gap: 8px; }
.rentals__empty { color: var(--muted); font-size: 14px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.rental { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; }
.rental__main { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.rental__text { display: grid; flex: 1; min-width: 180px; }
.rental__title { font-weight: 600; font-size: 14.5px; }
.rental__when { color: var(--muted); font-size: 13px; }
.rental__confirm { padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.rental__q { font-size: 14px; }
.rental__q.is-ok { color: var(--plus); }
.rental__q.is-bad { color: var(--danger); }
.rental__fine { color: var(--muted); }
.rental__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* booking sheet */
.sheet {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  margin: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / .85), var(--edge);
  overflow: hidden;
}
.sheet::backdrop { background: rgb(6 6 6 / .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .34s var(--ease-out); }
.sheet[open]::backdrop { animation: fade-in .25s ease; }
.sheet.is-closing { animation: sheet-out .2s ease-in forwards; }
.sheet.is-closing::backdrop { animation: fade-out .2s ease-in forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet__panel { position: relative; display: flex; flex-direction: column; max-height: inherit; transition: transform .26s var(--ease-out); }
.sheet__panel.is-dragging { transition: none; }
.sheet__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); z-index: 1; }
.sheet__grab { display: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 0 24px; }
.sheet__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sheet__title { font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.sheet__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.sheet__body { --pad: 24px; display: grid; gap: 22px; padding: 18px var(--pad) 24px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__body .tl-scroll { --pad: inherit; }
.pick { display: grid; gap: 12px; min-width: 0; }
.pick__times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick__time { display: grid; gap: 2px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pick__time span { color: var(--muted); font-size: 12.5px; }
.pick__time strong { font-size: 15px; font-weight: 600; }
.dur { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips--tight { margin-top: 0; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; }
.step-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: transparent; border: 0; color: var(--text); transition: background-color .15s ease, transform .12s var(--ease), opacity .15s ease; }
.step-btn:active:not(:disabled) { transform: scale(.92); }
.step-btn:disabled { opacity: .3; cursor: not-allowed; }
@media (hover: hover) { .step-btn:hover:not(:disabled) { background: var(--raised); } }
.stepper__value { min-width: 72px; text-align: center; font-weight: 600; font-size: 15px; }
.quote { display: grid; gap: 8px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: opacity .2s ease; }
.quote.is-loading { opacity: .55; }
.quote__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.quote__row span { display: inline-flex; align-items: center; gap: 6px; }
.quote__row .icon { color: var(--night); }
.quote__total { color: var(--text); font-weight: 600; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.quote__total:only-child { border-top: 0; padding-top: 0; margin-top: 0; }
.quote__total strong { font-family: var(--display); font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.sheet__bal { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.sheet__bal strong { color: var(--text); font-weight: 600; }
.sheet__short { color: #FFC9A8; }
.sheet__rent { min-width: 200px; }
.sheet__done { justify-items: center; text-align: center; padding: 40px 24px 32px; gap: 12px; }
.sheet__done .btn { margin-top: 10px; min-width: 140px; }

/* ---------------------------------------------------------------- purchase */
.buy__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.buy__skeleton { min-height: 360px; }
.plan { display: grid; gap: 22px; overflow: hidden; overflow: clip; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
.plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.plan__id { display: grid; gap: 4px; }
.plan__name {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 750; font-size: 30px; letter-spacing: -.035em; line-height: 1.05;
}
.plan__name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--tc) 55%, transparent); }
.plan__meta { color: var(--muted); font-size: 14px; }
.plan__price { display: grid; justify-items: end; gap: 4px; }
.plan__rate { font-family: var(--display); font-weight: 750; font-size: 30px; letter-spacing: -.035em; line-height: 1; }
.plan__rate small { font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan__night { display: inline-flex; align-items: center; gap: 5px; color: #C9D1FF; font-size: 13px; }
.plan__mine { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.plan__mine strong { color: var(--text); font-weight: 600; }
.custom { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.custom__label { color: var(--muted); font-size: 13.5px; margin-right: 4px; }
.custom__box { position: relative; display: inline-flex; align-items: center; }
.custom__box .input { width: 84px; height: 44px; padding-right: 30px; text-align: right; }
.custom__box span { position: absolute; right: 12px; color: var(--faint); font-size: 14px; pointer-events: none; }
.night { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgb(140 158 255 / .06); border: 1px solid rgb(140 158 255 / .2); }
.night__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #DCE1FF; }
.night__title .icon { color: var(--night); }
.night__text { color: var(--muted); font-size: 13.5px; }
.night__state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.night__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.night__state.is-on { color: #DCE1FF; }
.night__state.is-on::before { background: var(--night); box-shadow: 0 0 0 3px rgb(140 158 255 / .2); }
.order { display: grid; gap: 14px; position: sticky; top: 84px; }
.order .card__title { margin-bottom: 2px; }
.order__after { color: var(--muted); font-size: 13.5px; }
.order__after.is-bad { color: #FFC9A8; }
.blocked { display: grid; gap: 8px; justify-items: start; padding: 22px; border-radius: 14px; border: 1px dashed var(--line-3); }
.blocked__title { font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -.03em; }
.blocked__text { color: var(--muted); font-size: 14.5px; max-width: 52ch; }
.blocked__actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- payment history */
.history { margin-top: 44px; }
.history__list { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.hrow {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto minmax(150px, auto); align-items: center; gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.hrow:first-child { border-top: 0; }
.hrow__text { display: grid; min-width: 0; }
.hrow__amt { font-weight: 600; font-size: 14.5px; }
.hrow__coin { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow__date { color: var(--faint); font-size: 12.5px; text-align: right; }
.hstatus {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--text); background: var(--raised); border: 1px solid var(--line-2);
}
.hstatus.is-ok { color: var(--plus); background: rgb(52 210 123 / .08); border-color: rgb(52 210 123 / .3); }
.hstatus.is-busy { color: #DCE1FF; }
.hstatus.is-warn { color: #FFC9A8; border-color: rgb(245 165 36 / .35); }
.hstatus.is-muted { color: var(--muted); }
.hstatus.is-bad { color: #FFB4B4; border-color: rgb(255 107 107 / .35); }
.coin-logo--card { border-radius: 50%; background: var(--raised); border: 1px solid var(--line-2); color: var(--muted); }
.history__empty { padding: 22px 18px; color: var(--muted); font-size: 14px; }
.history__more, .act__more { margin-top: 12px; }
.act__more { width: 100%; }

/* ---------------------------------------------------------------- live activity */
.live-act { margin-top: 44px; }
.live-act__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.live-act__head .section-title { margin-bottom: 0; }
.live-act__sub { color: var(--muted); font-size: 14px; }
.live-act__tabs { display: none; margin-bottom: 12px; }
.logs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.log { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 10px; box-shadow: var(--edge); }
.log__title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin: 0 4px 10px; }
.log__list { display: grid; }
.log__empty { color: var(--muted); font-size: 13.5px; padding: 8px 4px 14px; }
.find {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  border-radius: 10px;
}
.find:first-child { border-top-color: transparent; }
.find.is-new { animation: arrive 2.2s ease-out; }
.find__thumb {
  position: relative; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--line);
  color: var(--faint);
  overflow: hidden;
}
.find__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.find__thumb.has-img .icon { visibility: hidden; }
.find__main { display: grid; gap: 4px; min-width: 0; }
.find__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.find__value { font-family: var(--display); font-weight: 750; font-size: 15px; letter-spacing: -.02em; }
.find__more { color: var(--muted); font-size: 12px; }
.find__time { color: var(--faint); font-size: 12px; align-self: start; padding-top: 3px; white-space: nowrap; }
.mut {
  --mc: var(--muted);
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 700;
  color: var(--mc);
  background: color-mix(in srgb, var(--mc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc) 32%, transparent);
}
.mut--gold { --mc: #F2C14E; }
.mut--diamond { --mc: #7FE3FF; }
.mut--radioactive { --mc: #8CFF5A; }
.mut--lava { --mc: #FF7A3D; }
.mut--galaxy { --mc: #A98BFF; }
.mut--bloodrot { --mc: #E5484D; }
.mut--candy { --mc: #FF8AD8; }
.mut--celestial { --mc: #B9D3FF; }
.mut--cursed { --mc: #C27CFF; }
.mut--zebra { --mc: #E6E6E6; }
.mut--yin-yang { --mc: #D9D9D9; }
.mut--lightning { --mc: #FFE45C; }
.mut--frost { --mc: #9FE7FF; }
.mut--shadow { --mc: #9A9AA8; }
.mut--rainbow {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, rgb(255 92 92 / .35), rgb(255 200 80 / .35), rgb(90 220 130 / .35), rgb(90 170 255 / .35), rgb(190 120 255 / .35));
}

/* ---------------------------------------------------------------- refinements */
.tl__free { background: rgb(237 237 234 / .13); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--tc) 85%, transparent); }
.lg--free::before { background: rgb(237 237 234 / .16); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--tc) 85%, transparent); }
.tile__owner { display: grid; gap: 2px; }
.tile__owner-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tile__slot-left { color: var(--faint); font-size: 12.5px; }
.rental__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rental__text { min-width: 0; gap: 2px; }
.rental__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1060px) {
  .live__text { display: none; }
  .me__name { display: none; }
  .me { padding-right: 10px; gap: 6px; }
  .bar__inner { gap: 12px; }
  .tab { padding: 7px 12px; }
}
@media (max-width: 960px) {
  .buy__grid { grid-template-columns: minmax(0, 1fr); }
  .order { position: static; }
  .logs { grid-template-columns: minmax(0, 1fr); }
  .live-act__tabs { display: block; }
  .log { display: none; }
  .log.is-active { display: block; }
  .log__title { display: none; }
  .log { padding-top: 10px; }
  .hrow { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .hrow__date { grid-column: 2 / 3; grid-row: 2; text-align: left; margin-top: -10px; }
}

/* ---------------------------------------------------------------- responsive (phones are a primary target) */
@media (max-width: 960px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hours" "wallet" "activity" "script"; }
  .hours { min-height: 0; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  /* top bar: brand and the account menu only */
  .bar { background: rgb(14 14 14 / .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bar__inner { grid-template-columns: 1fr auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .live { display: none; }
  .me { min-height: 44px; position: relative; }
  .me.is-live::after { content: ""; position: absolute; left: 30px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--plus); box-shadow: 0 0 0 2px var(--panel); }
  .me__name { max-width: 110px; }
  .menu__item { min-height: 48px; }

  /* bottom tab bar */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgb(17 17 17 / .94);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
    border: 0; border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .tabs__pill { top: 6px; bottom: auto; height: 54px; border-radius: 14px; }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 54px; padding: 4px 2px;
    border-radius: 14px;
    font-size: 11px; font-weight: 600; letter-spacing: -.01em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .tab__icon { display: block; transition: transform .2s var(--ease-out); }
  .tab:active .tab__icon { transform: scale(.9); }
  .app { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* layout */
  .page { padding-top: 22px; padding-bottom: 40px; }
  .page__head { margin-bottom: 20px; }
  .greet { margin-bottom: 20px; }
  .card { padding: 20px; border-radius: 18px; }
  .hours__stage { padding: 18px 0 22px; }
  .dep__body { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .qr { justify-self: center; width: 216px; }
  .landing { min-height: 100dvh; }

  /* touch targets: 44px minimum */
  .btn, .btn--sm { --bh: 44px; }
  .chip { height: 44px; padding: 0 16px; }
  .switch__btn { height: 40px; position: relative; }
  .switch__btn::after { content: ""; position: absolute; inset: -2px 0; }
  .icon-btn { width: 44px; height: 44px; }
  .step-btn { width: 44px; height: 44px; }
  .link-btn { min-height: 44px; padding: 0 6px; margin-right: -6px; }
  .owner-btn { padding: 12px 0; margin: -12px 0; }
  .who { min-height: 52px; }
  .pc__id { min-height: 52px; }
  .coin { min-height: 60px; }

  /* inputs: 16px so iOS never zooms */
  .input, .search input, .select select, .money__input { font-size: 16px; }
  .money--sm .money__input { font-size: 22px; }
  .money__input { font-size: 30px; }
  .search, .select { height: 44px; }

  /* tier subtabs fill the width */
  .subtabs { display: flex; width: 100%; }
  .subtab { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 6px; gap: 6px; font-size: 13.5px; }
  .subtab__label { overflow: hidden; text-overflow: ellipsis; }

  /* marketplace */
  .mk-tools { flex-direction: column; align-items: stretch; }
  .mk-tools__right { width: 100%; flex-wrap: wrap; }
  .select { flex: 1 1 100%; }
  .select select { width: 100%; }
  .search { flex: 1 1 100%; min-width: 0; }
  .search input { width: 100%; }
  .listings { grid-template-columns: minmax(0, 1fr); }
  .lcard { padding: 18px 16px; }

  /* dialogs become bottom sheets */
  .sheet {
    width: 100%; max-width: 100%;
    margin: auto 0 0;
    max-height: 92dvh;
    border: 0; border-top: 1px solid var(--line-2);
    border-radius: 22px 22px 0 0;
  }
  .sheet[open] { animation: sheet-up .38s var(--ease-out); }
  .sheet.is-closing { animation: sheet-down .24s ease-in forwards; }
  .sheet__panel { max-height: 92dvh; }
  .sheet__panel::before { display: none; }
  .sheet__grab { display: block; flex: none; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--line-3); cursor: grab; touch-action: none; }
  .sheet__head { padding: 12px 12px 0 18px; touch-action: none; }
  .sheet__title { font-size: 20px; }
  .sheet__body { --pad: 18px; padding-top: 16px; }
  .sheet__foot { padding: 14px 18px max(16px, env(safe-area-inset-bottom)); }
  .sheet__rent { width: 100%; }
}

@media (max-width: 420px) {
  .brand span { font-size: 16px; }
  .me__name { display: none; }
  .me { padding-right: 10px; gap: 6px; }
  .coins { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .coin { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .coin .coin-logo { width: 30px; height: 30px; }
  .coin .coin-logo__net { width: 14px; height: 14px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .act li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .act__icon { width: 32px; height: 32px; }
  .stat { padding: 14px 16px; }
  .stat dd { font-size: 21px; }
  .lcard__foot { flex-wrap: wrap; }
  .pick__times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tl--lg { --tl-h: 56px; }
  .dur { flex-direction: column; align-items: stretch; }
  .dur .chips { justify-content: space-between; }
  .dur .chip { flex: 1; padding: 0 6px; }
  .stepper { justify-content: space-between; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .step.is-active .step__bar::after { animation: none; }
}

/* grid children must be allowed to shrink (inputs have an intrinsic width) */
.pay__form > *, .field, .plan > *, .order > *, .send__form > * { min-width: 0; }
.money__input { width: 100%; }
.dep__amount small { white-space: nowrap; }
.dep__amount { overflow-wrap: normal; }

/* ================================================================ v3: denser layouts */
.page { max-width: 1440px; }

/* ---------------------------------------------------------------- main dashboard: one screen on desktop */
.greet { align-items: center; flex-wrap: nowrap; gap: 16px; margin-bottom: clamp(12px, 1.8vh, 20px); }
.greet__title { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.help { padding-bottom: 0; white-space: nowrap; font-size: 13.5px; }
.dash {
  gap: 14px;
  grid-template-areas: "hours wallet" "activity script" "live live";
}
.livecard { grid-area: live; }
.dash .card__head { margin-bottom: 12px; min-height: 30px; }
.hours { min-height: 0; }
.hours__head { flex-wrap: nowrap; }
.hours__tier { margin-left: auto; }
.hours__head .switch { margin-left: auto; justify-content: flex-end; }
.hours__stage { gap: 6px; padding: 4px 0 10px; }
.odo { font-size: clamp(52px, min(15cqi, 9.5vh), 92px); }
.odo.is-long { font-size: clamp(44px, min(12cqi, 8.5vh), 80px); }
.hours__status { font-size: 14px; }
.hours__empty { gap: 8px; padding: 8px 0 14px; }
.hours__empty-title { font-size: clamp(26px, 6cqi, 36px); }
.hours__foot { padding-top: 10px; margin-top: 0; }
.wallet__amount { font-size: clamp(40px, min(17cqi, 7.5vh), 64px); margin: 0 0 6px; }
.wallet__hint { font-size: 13.5px; }
.wallet__actions { margin: 14px 0 14px; }
.wallet__last { padding-top: 12px; }

.scripts { min-height: 0; }
.sc { gap: 8px; padding: 12px 0; }
.sc:first-child { padding-top: 0; }
.sc__top { gap: 8px 10px; }
.sc__meta { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.sc__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc__key { flex: 1; min-width: 0; min-height: 34px; padding: 2px 2px 2px 12px; border-radius: 10px; gap: 8px; }
.sc__key-value { font-size: 13px; }
.sc__key .btn { --bh: 30px; padding: 0 8px; }

.act li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: clamp(7px, 1.05vh, 12px) 0; }
.act__icon { width: 32px; height: 32px; border-radius: 9px; }
.act__title { font-size: 13.5px; }
.act__sub, .act__bal { font-size: 12px; }

.livecard { display: flex; flex-direction: column; min-width: 0; }
.livecard .card__head { justify-content: flex-start; gap: 12px; align-items: baseline; }
.live__sub { color: var(--muted); font-size: 13px; }
.live__tabs { display: none; margin-bottom: 10px; }
.logs { --th: clamp(34px, 4.6vh, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; flex: 1; min-height: 0; }
.log { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.log:first-child { padding-left: 0; }
.log:last-child { padding-right: 0; }
.log + .log { border-left: 1px solid var(--line); }
.log__title { font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 4px; }
.find { grid-template-columns: var(--th) minmax(0, 1fr) auto; gap: 10px; padding: clamp(4px, .9vh, 10px) 0; border-radius: 0; }
.find:first-child { border-top-color: transparent; }
.find__thumb { width: var(--th); height: var(--th); border-radius: 9px; }
.find__main { gap: 2px; }
.find__name { font-size: 13px; }
.find__value { font-size: 13px; }
.mut { height: 18px; padding: 0 6px; font-size: 11px; border-radius: 5px; }
.find__more { font-size: 11.5px; }
.find__time { font-size: 11.5px; padding-top: 2px; }
.log__empty { padding: 6px 0; font-size: 13px; }

@media (min-width: 1100px) {
  .dash {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "hours hours hours hours hours wallet wallet wallet activity activity activity activity"
      "script script script script live live live live live live live live";
  }
  .script, .activity { align-self: stretch; }
  .script, .activity { display: flex; flex-direction: column; }
}
/* Tall enough: the dashboard fills the viewport exactly; rows share the height, content never scrolls the page */
@media (min-width: 1100px) and (min-height: 700px) {
  .view--dash .page {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    display: flex; flex-direction: column;
    padding-top: clamp(12px, 2.2vh, 28px); padding-bottom: clamp(12px, 2.2vh, 28px);
  }
  .view--dash .dash { flex: 1; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  .view--dash .card { padding: clamp(16px, 2.1vh, 24px) clamp(18px, 1.5vw, 24px); }
  .view--dash .activity, .view--dash .script, .view--dash .livecard { overflow: hidden; min-height: 0; }
  .view--dash .scripts { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
}

/* ---------------------------------------------------------------- drawers, confirm, toasts */
.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(480px, 100vw); height: 100dvh; max-height: none; max-width: none;
  margin: 0 0 0 auto; padding: 0;
  background: var(--panel); color: var(--text);
  border: 0; border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 80px -30px rgb(0 0 0 / .8);
  overflow: hidden;
}
.drawer--wide { width: min(920px, 100vw); }
.drawer::backdrop { background: rgb(6 6 6 / .6); }
.drawer[open] { animation: drawer-in .34s var(--ease-out); }
.drawer[open]::backdrop { animation: fade-in .25s ease; }
.drawer.is-closing { animation: drawer-out .22s ease-in forwards; }
.drawer.is-closing::backdrop { animation: fade-out .22s ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes drawer-out { to { transform: translateX(40px); opacity: 0; } }
.drawer__panel { height: 100%; display: flex; flex-direction: column; transition: transform .26s var(--ease-out); }
.drawer__panel.is-dragging { transition: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -.03em; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 24px; }

.confirm {
  width: min(460px, calc(100vw - 32px)); padding: 0; margin: auto;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / .85), var(--edge);
}
.confirm::backdrop { background: rgb(6 6 6 / .7); }
.confirm[open] { animation: sheet-in .26s var(--ease-out); }
.confirm.is-closing { animation: sheet-out .18s ease-in forwards; }
.confirm__panel { display: grid; gap: 12px; padding: 22px 22px 18px; }
.confirm__title { font-family: var(--display); font-weight: 750; font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.confirm__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.confirm__text strong { color: var(--text); font-weight: 600; }
.confirm__typed { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.confirm__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.btn--danger { background: var(--danger); color: #160606; }
@media (hover: hover) { .btn--danger:hover:not(:disabled) { background: #FF8787; } }

.toasts { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 12px 10px 12px 14px;
  background: #1F1F1F; border: 1px solid var(--line-3); border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8);
  font-size: 14px; line-height: 1.45;
}
.toast > .icon { margin-top: 2px; color: var(--plus); }
.toast.is-bad > .icon { color: var(--danger); }
.toast.is-info > .icon { color: var(--muted); }
.toast__x { background: none; border: 0; color: var(--faint); padding: 2px; border-radius: 6px; }
@media (hover: hover) { .toast__x:hover { color: var(--text); } }

@media (max-width: 960px) {
  .dash { grid-template-areas: "hours" "wallet" "activity" "script" "live"; }
  .logs { grid-template-columns: minmax(0, 1fr); }
  .live__tabs { display: block; }
  .log { display: none; padding: 0; border: 0 !important; }
  .log.is-active { display: flex; }
  .log__title { display: none; }
  .greet { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .toasts { left: 16px; right: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .drawer, .drawer--wide {
    inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; margin: auto 0 0;
    border: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
  }
  .drawer[open] { animation: sheet-up .38s var(--ease-out); }
  .drawer.is-closing { animation: sheet-down .24s ease-in forwards; }
  .drawer__panel { max-height: 92dvh; }
  .drawer__head { padding: 10px 12px 12px 18px; }
  .drawer__body { padding: 6px 18px max(20px, env(safe-area-inset-bottom)); }
  .sc__row { flex-wrap: wrap; }
  .sc__key { flex: 1 1 100%; }
  .sc__row .btn { flex: 1; }
}

/* ---------------------------------------------------------------- booking timeline: drag fix */
.tl__track.is-pickable { touch-action: none; user-select: none; -webkit-user-select: none; }
.tl-scroll { padding-top: 34px; }
.tl--lg { min-width: max(100%, calc(var(--hrs, 1) * 18px)); }
.tl__sel {
  background: color-mix(in srgb, var(--tc) 30%, rgb(237 237 234 / .22));
  box-shadow: inset 0 0 0 2px var(--text), 0 0 28px -6px color-mix(in srgb, var(--tc) 70%, transparent);
}
.tl__sel-label {
  position: absolute; bottom: calc(100% + 8px); left: var(--c, 50%);
  transform: translateX(-50%);
  padding: 3px 8px; border-radius: 7px;
  background: var(--text); color: #0E0E0E;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  pointer-events: none;
  transition: left .22s var(--ease-out);
}
.tl__track.is-dragging .tl__sel-label { transition: none; }
.tl__track.is-dragging { cursor: grabbing; }

/* ---------------------------------------------------------------- subscribers: dense live cards */
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 10px; }
.sub {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden; overflow: clip;
  transition: transform .25s var(--ease-out), border-color .2s ease, box-shadow .3s ease;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
@media (hover: hover) {
  .sub:not(.sub--open):hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
    box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--tc) 55%, transparent);
  }
}
.sub__who {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  margin: -4px; padding: 4px; width: calc(100% + 8px);
  background: none; border: 0; border-radius: 10px; text-align: left;
}
.sub__av { position: relative; display: grid; border-radius: 50%; }
.sub__av .avatar { --size: 40px; }
.sub__av.is-active { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--plus); }
.sub__av.is-active::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--plus); box-shadow: 0 0 0 2.5px var(--panel); }
.sub__id { display: grid; min-width: 0; }
.sub__name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub__slot { color: var(--muted); font-size: 12.5px; }
@media (hover: hover) { .sub__who:hover .sub__name { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; } }
.sub__time { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.015em; line-height: 1.2; }
.sub.is-frozen .sub__time { color: var(--muted); }
.sub__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chipx {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); background: var(--raised); border: 1px solid var(--line-2);
}
.chipx.is-active { color: var(--plus); background: rgb(52 210 123 / .08); border-color: rgb(52 210 123 / .3); }
.chipx.is-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--plus); }
.chipx.is-renting { color: #DCE1FF; border-color: rgb(140 158 255 / .3); background: rgb(140 158 255 / .08); }
.chipx.is-frozen { color: #B9D3FF; }
.sub__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 12.5px; }
.sub__box { margin-top: auto; display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sub__owned { display: flex; align-items: center; gap: 5px; min-width: 0; }
.sub__owned .owner-btn { font-size: 12.5px; }
.sub__slotleft { color: var(--faint); }
.sub--open { flex-direction: row; align-items: center; justify-content: space-between; min-height: 64px; background: transparent; border-style: dashed; border-color: var(--line-2); }
.sub--open::before { display: none; }
.sub--open .sub__name { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .subgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .sub { padding: 12px; }
  .sub__time { font-size: 15.5px; }
  .owner-btn { padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 360px) { .subgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- payments: summary, two columns, spend bar */
.stats--pay { margin-bottom: 16px; }
.stat__sub { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pay__col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pay__form { gap: 20px; }
.pay__form .card__title { margin-bottom: -4px; }
.history { margin-top: 0; padding-bottom: 14px; }
.history .card__head { margin-bottom: 8px; }
.history .history__list { border: 0; border-radius: 0; background: none; max-height: 560px; overflow-y: auto; margin: 0 -24px; padding: 0 24px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.history .hrow { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; padding: 10px 0; }
.history .hrow .coin-logo { width: 30px; height: 30px; grid-row: 1 / 3; }
.history .hrow .coin-logo__net { width: 14px; height: 14px; }
.history .hstatus { grid-column: 3; grid-row: 1 / 3; }
.history .hrow__text { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 8px; }
.history .hrow__date { grid-column: 2; grid-row: 2; text-align: left; margin: 0; }
.history .history__more { width: 100%; margin-top: 10px; }
.spend { display: grid; gap: 14px; }
.spend .card__head { margin-bottom: 0; }
.spend__total { color: var(--muted); font-size: 13.5px; }
.spend__bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--raised); gap: 2px; }
.spend__seg { width: var(--w); min-width: 4px; }
.spend__seg.is-slots, .spend__item.is-slots::before { background: var(--text); }
.spend__seg.is-rentals, .spend__item.is-rentals::before { background: #8C9EFF; }
.spend__seg.is-transfers, .spend__item.is-transfers::before { background: #6E6E69; }
.spend__legend { display: grid; gap: 6px; }
.spend__item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.spend__item::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.spend__amt { font-weight: 600; }
.spend__pct { color: var(--faint); text-align: right; }
.spend__empty { color: var(--muted); font-size: 13.5px; }
.dep__empty { gap: 14px; }
@media (max-width: 960px) {
  .pay { grid-template-columns: minmax(0, 1fr); }
  .history .history__list { max-height: none; }
}
@media (max-width: 760px) {
  .history .history__list { margin: 0 -20px; padding: 0 20px; }
  .stat__sub { white-space: normal; }
}

/* ================================================================ v4: compact headers, rails, rent, owner, sandbox */
.page { max-width: 1600px; padding-top: clamp(16px, 2.4vh, 28px); }

/* compact page header: title, one short line, tools on the same row */
.phead { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.phead__text { display: grid; gap: 2px; min-width: 0; }
.phead__title { font-family: var(--display); font-weight: 750; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.03em; line-height: 1.1; }
.phead__sub { color: var(--muted); font-size: 13.5px; }
.phead__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.phead .subtabs { flex: none; }
.tier__head { margin-bottom: 12px; }

/* shared small pieces */
.btn--xs { --bh: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn--ghost.is-danger { color: #FF9C9C; }
@media (hover: hover) { .btn--ghost.is-danger:hover:not(:disabled) { background: rgb(255 107 107 / .1); color: #FFC2C2; } }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); flex-wrap: nowrap; }
.seg--wrap { flex-wrap: wrap; }
.seg__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.seg__btn[aria-checked="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.seg__btn:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .seg__btn:hover:not(:disabled) { color: var(--text); } }
.seg__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tc, var(--muted)); }
.seg__why { color: var(--faint); font-weight: 500; font-size: 12px; }
.seg--sm .seg__btn { height: 26px; padding: 0 9px; font-size: 12.5px; }
.input--sm { width: 110px; } .input--xs { width: 70px; height: 38px; }
.textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; font: inherit; font-size: 15px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.plus { color: var(--plus); }
.linkish { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; text-align: left; border-radius: 4px; }
@media (hover: hover) { .linkish:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); } }
.idchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .idchip:hover { color: var(--text); border-color: var(--line-3); } }
.idchip .copy__icon { width: 13px; height: 13px; }
.pcell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 260px; }
.pcell__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.pcell__user { color: var(--faint); font-size: 12px; white-space: nowrap; }
.rail__text { color: var(--muted); font-size: 13.5px; }
.how { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.how li::marker { color: var(--faint); font-weight: 600; }
.empty-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.empty-cta__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-2); color: var(--muted); }
.empty-cta__title { font-family: var(--display); font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.empty-cta__text { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- marketplace: grid + right rail */
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.mk-main { min-width: 0; display: grid; gap: 14px; }
.stats--tight { margin: 0; }
.stats--tight .stat { padding: 12px 16px; }
.stats--tight .stat dd { font-size: 21px; }
.listings { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; }
.lcard { padding: 16px; gap: 12px; }
.lcard__hours { font-size: 28px; }
.lcard__rate { font-size: 21px; }
.mk-rail { display: grid; gap: 12px; position: sticky; top: 80px; }
.rail { display: grid; gap: 10px; padding: 18px; }
.rail .card__title { font-size: 16px; }
.rail .rentals { gap: 6px; }
.rail .rental { padding: 10px 12px; gap: 8px; background: var(--bg); }
.rail .rental__main { grid-template-columns: minmax(0, 1fr) auto; }
.rail .rental__title { font-size: 13.5px; gap: 6px; }
.rail .rental__when { font-size: 12.5px; }
.rail .rentals__empty { padding: 12px; font-size: 13px; }
.mine { display: none; }
@media (max-width: 1180px) {
  .mk-layout { grid-template-columns: minmax(0, 1fr); }
  .mk-rail { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---------------------------------------------------------------- rent */
.rent__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.rent__side { display: grid; gap: 16px; min-width: 0; }
.rent__editor { display: grid; gap: 16px; overflow: hidden; overflow: clip; }
.rent__editor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
.rent__editor .card__head { margin-bottom: 0; }
.rent__slot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--text) var(--fill, 50%), var(--line-2) var(--fill, 50%)); outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line-3); cursor: grab; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line-3); cursor: grab; }
.when { display: grid; gap: 10px; }
.when__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.when__label { width: 52px; color: var(--muted); font-size: 13px; font-weight: 500; }
.when input[type="datetime-local"] { width: auto; min-width: 220px; height: 40px; color-scheme: dark; }
.tl--md { --tl-h: 34px; }
.tl--md .tl__track { border-radius: 9px; }
.tl--md .tl__sel { border-radius: 7px; }
.rent__win { color: var(--text); font-size: 14px; font-weight: 600; margin-top: -8px; }
.rent__foot { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.rent__est { color: var(--muted); font-size: 14px; }
.rent__est strong { color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 750; }
.rent__mine { display: grid; gap: 12px; }
.rent__mine .card__head { margin-bottom: 0; }
.rl-list { display: grid; gap: 10px; }
.rl { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.rl__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl__price { margin-left: auto; font-weight: 600; font-size: 14px; }
.rl__meta { color: var(--muted); font-size: 12.5px; }
.rl__books { display: grid; gap: 6px; }
.rl__books li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; font-size: 13px; }
.rl__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rl__when { color: var(--muted); font-size: 12.5px; }
.rl__cost { font-weight: 600; }
.rl__earn { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.rl__earn strong { color: var(--text); }
@media (max-width: 1100px) { .rent__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- owner */
.stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.ow-skeleton { min-height: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.ow-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ow-tier { display: grid; gap: 12px; overflow: hidden; overflow: clip; padding: 18px; }
.ow-tier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
.ow-tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ow-tier__name { font-size: 22px; }
.ow-tier__taken { color: var(--muted); font-size: 13.5px; }
.ow-tier__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ow-tier__ctls { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 6px; }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.ctl + .ctl { border-top: 1px solid var(--line); }
.ctl__label { font-size: 14px; font-weight: 500; }
.ctl__row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctl .money--sm { height: 38px; width: 120px; }
.ctl .money--sm .money__sign { font-size: 16px; padding-left: 10px; }
.ctl .money--sm .money__input { font-size: 16px; padding: 0 10px 0 2px; }
.ctl .stepper .step-btn { width: 32px; height: 32px; }
.ctl .stepper__value { min-width: 36px; }
.switchx {
  position: relative; flex: none; width: 42px; height: 24px; border-radius: 12px;
  background: var(--line-2); border: 0; padding: 0;
  transition: background-color .2s ease;
}
.switchx__knob { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .22s var(--ease-out), background-color .2s ease; }
.switchx[aria-checked="true"] { background: rgb(52 210 123 / .35); }
.switchx[aria-checked="true"] .switchx__knob { transform: translateX(18px); background: var(--plus); }
.ow-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ow-2--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.ow-card { display: grid; gap: 12px; align-content: start; }
.ow-card .card__title { font-size: 17px; }
.ow-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ow-foot { color: var(--faint); font-size: 12.5px; margin-top: 12px; }
.health { display: grid; }
.health li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.health li:first-child { border-top: 0; }
.health strong { color: var(--text); font-weight: 600; text-align: right; }
.health li.is-warn strong { color: #FFC9A8; }
.health li.is-warn strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 7px; vertical-align: 1px; }
.keys { display: flex; gap: 8px; flex-wrap: wrap; }
.keycount { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.keycount__n { font-family: var(--display); font-weight: 750; font-size: 18px; color: var(--tc); }
.ow-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.search--wide { flex: 1 1 360px; max-width: 560px; height: 44px; }
.search--wide input { width: 100%; height: 100%; padding-left: 36px; font-size: 15px; background: transparent; border: 0; box-shadow: none; }
.ow-hint { color: var(--faint); font-size: 12.5px; }
.om-recent { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.om-recent__btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
@media (hover: hover) { .om-recent__btn:hover { border-color: var(--line-3); background: var(--raised); } }
.om-results { transition: opacity .2s ease; }
.om-results.is-loading { opacity: .55; }
.om-list { display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.om-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-right: 12px; border-top: 1px solid var(--line); }
.om-list > li:first-child { border-top: 0; }
.om-row {
  display: grid; grid-template-columns: 30px minmax(140px, 1.2fr) minmax(0, 1.4fr) 96px 92px 10px; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; color: var(--text);
  transition: background-color .12s ease;
}
@media (hover: hover) { .om-row:hover { background: var(--raised); } }
.om-row__who { display: grid; min-width: 0; }
.om-row__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-row__user { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-row__tiers { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.om-row__bal { font-weight: 600; text-align: right; }
.om-row__seen { color: var(--faint); font-size: 12.5px; text-align: right; }
.om-row__site { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.om-row__site.is-on { background: var(--plus); }
.ow-empty { color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.ow-more { width: 100%; margin-top: 10px; }
.otable-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.otable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.otable th { text-align: left; font-weight: 600; font-size: 12px; color: var(--faint); padding: 0 10px 8px 0; white-space: nowrap; border-bottom: 1px solid var(--line); }
.otable td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.otable tr:last-child td { border-bottom: 0; }
.otable .r { text-align: right; padding-right: 0; }
.rowacts { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.ow-params { color: var(--muted); font-size: 12.5px; white-space: normal; display: inline-block; max-width: 420px; }
.chipx.is-bad { color: #FFB4B4; border-color: rgb(255 107 107 / .35); }
.ow-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.ow-tool { display: grid; gap: 12px; }
.ow-tool.is-danger { border-color: rgb(255 107 107 / .3); }
.ow-tool__text { color: var(--muted); font-size: 13.5px; }
.ow-tool__act { display: flex; gap: 8px; flex-wrap: wrap; }
.tool__out:empty { display: none; }
.tool__out { border-top: 1px solid var(--line); padding-top: 10px; max-height: 280px; overflow: auto; }
.ow-pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ow-list { display: grid; gap: 6px; font-size: 13px; }
.ow-li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; gap: 4px; margin: 0; }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.ofield { display: grid; gap: 6px; min-width: 0; }
.ofield__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ofield__hint { font-size: 12px; color: var(--faint); }
.mform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.mform__box { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); margin-top: 10px; }
.mform__title { font-weight: 600; font-size: 14px; }
.mform__actions { display: flex; justify-content: flex-end; }
.mform:empty { display: none; }
.quote-dm { margin: 0; padding: 10px 12px; border-left: 3px solid var(--line-3); background: var(--bg); border-radius: 0 8px 8px 0; color: var(--text); white-space: pre-wrap; font-size: 14px; }
.mhead { align-items: flex-start; gap: 16px; }
.mhead__who { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.mhead__names { display: grid; gap: 6px; min-width: 0; }
.mhead__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.mhead__bal { display: grid; justify-items: end; gap: 2px; }
.mhead__bal strong { font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -.03em; }
.mbody { display: grid; gap: 18px; align-content: start; padding-top: 14px; }
.mactions { margin: 0; }
.msec { display: grid; gap: 8px; }
.msec__title { font-size: 13px; font-weight: 600; color: var(--muted); }
.confirm--wide { width: min(640px, calc(100vw - 32px)); }

/* persona form */
.pf { display: grid; gap: 14px; }
.pf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.pf__tiers { display: grid; gap: 6px; }
.pf__tier { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.pf__name { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.pf__name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.pf__check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-height: 40px; }
.pf__check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--text); }
.pf__check .input--xs { height: 34px; }
.pf__unit { color: var(--faint); font-size: 12.5px; }
.pf__site { align-self: center; }

/* ---------------------------------------------------------------- sandbox */
.sbx { position: sticky; top: 0; z-index: 35; background: #2A2208; border-bottom: 1px solid rgb(245 197 66 / .35); color: #FFE7A8; }
.sbx__inner { max-width: 1600px; margin: 0 auto; padding: 6px var(--gutter); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sbx__text { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.sbx__tag { padding: 2px 8px; border-radius: 6px; background: var(--budget); color: #1A1404; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.sbx__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sbx__label { font-size: 12.5px; color: #E6CF8E; }
.sbx .seg { background: rgb(0 0 0 / .25); border-color: rgb(245 197 66 / .25); }
.sbx .seg__btn { color: #E6CF8E; }
.sbx .seg__btn[aria-checked="true"] { background: rgb(245 197 66 / .2); color: #FFF3CF; box-shadow: none; }
.sbx .btn--secondary { background: rgb(0 0 0 / .25); border-color: rgb(245 197 66 / .3); color: #FFF3CF; }
.sbx .btn--ghost { color: #FFE7A8; }
body.is-sandbox .bar { top: 44px; }
body.is-sandbox .btn--primary::after, body.is-sandbox .btn--danger::after, body.is-sandbox #send-next::after {
  content: "Sandbox"; margin-left: 6px; padding: 1px 6px; border-radius: 5px;
  background: rgb(245 197 66 / .9); color: #1A1404; font-size: 10.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.5;
}
@media (min-width: 1100px) and (min-height: 700px) {
  body.is-sandbox .view--dash .page { height: calc(100vh - 108px); height: calc(100dvh - 108px); }
}

/* ---------------------------------------------------------------- nav: More menu (phones) */
.tab--more, .tab__label--short { display: none; }
.more-menu {
  position: fixed; z-index: 45; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom));
  min-width: 200px; padding: 6px;
  background: var(--raised); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / .75);
  display: grid; animation: pop-in .18s var(--ease-out); transform-origin: bottom right;
}
.more-menu[hidden] { display: none; }
.more-menu__item { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
.more-menu__item[aria-current="page"] { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-3); }
@media (hover: hover) { .more-menu__item:hover { background: #222; } }

@media (max-width: 1060px) {
  .tab { padding: 7px 10px; font-size: 13.5px; }
}
@media (max-width: 960px) {
  .stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--5 .stat:nth-child(odd) { border-left: 0; }
  .stats--5 .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ow-2, .ow-2--wide { grid-template-columns: minmax(0, 1fr); }
  .om-row { grid-template-columns: 30px minmax(0, 1fr) 84px; }
  .om-row__tiers, .om-row__seen, .om-row__site { display: none; }
}
@media (max-width: 760px) {
  .tabs .tab--more-item { display: none; }
  .tab--more { display: flex; background: none; border: 0; color: var(--muted); }
  .tab--more.is-current { color: var(--text); }
  .tab__label--long { display: none; }
  .tab__label--short { display: inline; }
  .phead { margin-bottom: 12px; }
  .phead__tools { width: 100%; justify-content: stretch; }
  .phead__tools .subtabs { width: 100%; }
  .phead__tools .search { flex: 1 1 100%; }
  .phead__tools .select { flex: 1 1 100%; }
  .empty-cta { grid-template-columns: minmax(0, 1fr); }
  .price-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .when__label { width: 100%; }
  .when input[type="datetime-local"] { width: 100%; min-width: 0; height: 44px; font-size: 16px; }
  .rl__books li { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .rl__books .rl__when { grid-column: 2 / 4; }
  .pf__tier { grid-template-columns: minmax(0, 1fr); }
  .sbx__inner { padding-top: 6px; padding-bottom: 6px; }
  .sbx__acts { width: 100%; }
  body.is-sandbox .bar { top: 0; position: relative; }
  .sbx { position: relative; }
  .mhead { flex-wrap: wrap; }
  .mhead__bal { justify-items: start; }
  .owner .otable { font-size: 13px; }
  .switchx { width: 48px; height: 28px; border-radius: 14px; }
  .switchx__knob { width: 22px; height: 22px; }
  .switchx[aria-checked="true"] .switchx__knob { transform: translateX(20px); }
  .btn--xs { --bh: 36px; }
}

/* ---------------------------------------------------------------- mod tools */
.mod { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.mod__main { display: grid; gap: 14px; min-width: 0; }
.mod__lookup { display: grid; gap: 10px; }
.mod__row { display: flex; gap: 8px; }
.mod__input { flex: 1; height: 56px; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.mod__row .btn { height: 56px; padding: 0 22px; }
.mod__recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mod__recent:empty { display: none; }
.mod__hint { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.mod__member { display: grid; gap: 16px; }
.mod__who { display: flex; align-items: center; gap: 14px; }
.mod__names { display: grid; gap: 6px; min-width: 0; }
.mod__name { font-family: var(--display); font-weight: 750; font-size: 24px; letter-spacing: -.03em; }
.mod__access { display: grid; gap: 6px; }
.mod__access li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mod__keys { display: grid; gap: 10px; }
.mod__key { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info acts" "meta acts"; gap: 6px 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.mod__keyinfo { grid-area: info; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod__keymeta { grid-area: meta; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.mod__keyacts { grid-area: acts; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mod__log { display: grid; gap: 4px; position: sticky; top: 80px; max-height: calc(100dvh - 120px); overflow: auto; }
.mod__log .card__head { margin-bottom: 4px; }
.modlog { display: grid; }
.modlog__row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.modlog__row:first-child { border-top: 0; }
.modlog__text { display: grid; gap: 3px; min-width: 0; }
.modlog__text p { overflow-wrap: anywhere; }
.modlog__meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; }
@media (max-width: 1000px) {
  .mod { grid-template-columns: minmax(0, 1fr); }
  .mod__log { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .mod__row { flex-direction: column; }
  .mod__row .btn { height: 48px; }
  .mod__input { height: 52px; font-size: 20px; }
  .mod__key { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "meta" "acts"; }
  .mod__keyacts { justify-content: stretch; }
  .mod__keyacts .btn { flex: 1; }
}

/* nav at mid widths: the tab strip scrolls instead of pushing the account menu off screen */
@media (min-width: 761px) and (max-width: 1180px) {
  .bar__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand span { display: none; }
  .tabs { justify-self: center; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 7px 11px; flex: none; }
}

/* fixes after the v4 review */
ol.steps { padding: 0; margin: 0; list-style: none; }
.tl__free { background: #2F2F2D; box-shadow: inset 0 2px 0 color-mix(in srgb, var(--tc) 85%, transparent); }
.lg--free::before { background: #2F2F2D; }
.subtab.t-other::before { display: none; }
.subtab.t-other[aria-selected="true"] .subtab__n { color: var(--muted); }

/* dashboard fit: stretch rows, measured bar height, tighter rows on short screens */
@media (min-width: 1100px) and (min-height: 700px) {
  .view--dash .page { height: calc(100vh - 70px); height: calc(100dvh - 70px); }
  body.is-sandbox .view--dash .page { height: calc(100dvh - 114px); }
  .view--dash .dash { align-items: stretch; }
  .view--dash .act li { padding: clamp(5px, .8vh, 12px) 0; }
  .view--dash .act__icon { width: 28px; height: 28px; }
  .view--dash .find { padding: clamp(3px, .55vh, 10px) 0; }
  .view--dash .logs { --th: clamp(32px, 4.2vh, 44px); }
}
.rent__night { padding: 10px 12px; border-radius: 10px; background: rgb(140 158 255 / .07); border: 1px solid rgb(140 158 255 / .22); color: #DCE1FF; font-size: 13px; line-height: 1.5; }
.chip:disabled, .fchip:disabled { opacity: .35; cursor: not-allowed; }
.mod__hint .empty-cta__icon { flex: none; }
@media (max-width: 760px) { .mod__row .mod__input { flex: none; width: 100%; } }

/* ================================================================ v5: one step smaller overall (desktop), owner control room */
@media (min-width: 761px) {
  body { font-size: 14px; }
  .bar__inner { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: 16px; }
  .brand img { width: 26px; height: 26px; }
  .tabs { padding: 3px; border-radius: 11px; }
  .tabs__pill { top: 3px; bottom: 3px; }
  .tab { padding: 6px 12px; font-size: 13.5px; }
  .me { padding: 3px 9px 3px 3px; }
  .me__name { font-size: 13.5px; }
  .page { padding-left: 20px; padding-right: 20px; padding-top: clamp(12px, 2vh, 22px); }
  .card { padding: 18px; border-radius: 16px; }
  .card__title { font-size: 16px; }
  .card__head { margin-bottom: 12px; min-height: 28px; }
  .phead { margin-bottom: 12px; }
  .phead__title { font-size: clamp(20px, 1.6vw, 24px); }
  .phead__sub { font-size: 13px; }
  .btn { --bh: 36px; padding: 0 14px; font-size: 13.5px; }
  .btn--sm { --bh: 30px; padding: 0 11px; font-size: 12.5px; }
  .btn--xs { --bh: 28px; padding: 0 9px; font-size: 12.5px; }
  .btn--lg { --bh: 44px; font-size: 14.5px; }
  .chip { height: 30px; padding: 0 12px; font-size: 13px; }
  .subtab { height: 32px; padding: 0 12px; font-size: 13px; }
  .search, .select { height: 36px; }
  .search input, .select select { font-size: 13.5px; }
  .stats .stat { padding: 12px 16px; }
  .stats .stat dd { font-size: 20px; }
  .greet__title { font-size: clamp(22px, 2vw, 28px); }
  .section-title { font-size: 19px; }
  .pay, .pay__col, .dash, .buy__grid, .rent__grid, .mk-layout { gap: 12px; }
  .money { height: 56px; }
  .money__input { font-size: 26px; }
  .coin { min-height: 50px; padding: 8px 10px; }
  .plan__name, .plan__rate { font-size: 24px; }
  .lcard__hours { font-size: 25px; }
  .hours__status { font-size: 13.5px; }
}
@media (min-width: 1100px) and (min-height: 700px) {
  .view--dash .page { height: calc(100vh - 57px); height: calc(100dvh - 57px); }
  body.is-sandbox .view--dash .page { height: calc(100dvh - 101px); }
}

/* ---------------------------------------------------------------- owner: sub-nav + content */
.oshell { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 16px; align-items: start; }
.onav { position: sticky; top: 72px; display: grid; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.onav__btn { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; text-align: left; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.onav__btn[aria-current="page"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
@media (hover: hover) { .onav__btn:hover { color: var(--text); } }
.owner { display: grid; gap: 12px; min-width: 0; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpi { padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__sub { color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; margin: 0; }
.ow-tier { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ow-tier__head { align-items: baseline; }
.ow-tier__name { font-family: var(--display); font-weight: 750; font-size: 20px; letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 10px; }
.ow-tier__name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 60%, transparent); }
.ow-tier__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.ow-tier__nums div { padding: 8px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.ow-tier__nums dt { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-tier__nums dd { margin: 0; font-weight: 700; font-size: 15px; }
.ow-tier__switches { display: grid; border-top: 1px solid var(--line); }
.ow-tier__switches .ctl { min-height: 40px; }
.ow-tier__form { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ow-tier__form .money--sm { height: 32px; width: 104px; border-radius: 9px; }
.ow-tier__form .money--sm .money__sign { font-size: 14px; padding-left: 9px; }
.ow-tier__form .money--sm .money__input { font-size: 14px; padding: 0 8px 0 2px; }
.ow-tier__form .input--xs { width: 104px; height: 32px; font-size: 14px; border-radius: 9px; }
.stepper--sm { padding: 2px; border-radius: 9px; width: 104px; justify-content: space-between; }
.stepper--sm .step-btn { width: 28px; height: 28px; }
.stepper--sm .stepper__value { min-width: 30px; font-size: 14px; }
.ow-global { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.ow-global__text { display: grid; gap: 2px; }
.ow-2 { gap: 12px; align-items: stretch; }
.ow-tablecard { display: grid; gap: 12px; min-width: 0; }
.ow-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.ow-cardhead__text { display: flex; align-items: baseline; gap: 10px; }
.ow-cardhead__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ow-cardhead__tools .search--wide { flex: 1 1 320px; height: 36px; }
.otable-scroll { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.otable-scroll.is-capped { max-height: min(62vh, 640px); }
.otable-scroll.is-small { max-height: 300px; }
.otable { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.otable th { position: sticky; top: 0; z-index: 1; background: #121212; padding: 9px 10px; border-bottom: 1px solid var(--line-2); font-size: 11.5px; }
.otable td { padding: 8px 10px; border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.otable td > * { max-width: 100%; }
.otable tr:last-child td { border-bottom: 0; }
.otable .r { text-align: right; padding-right: 12px; }
.otable tbody tr:hover td { background: rgb(255 255 255 / .02); }
.otable .pcell { display: inline-flex; max-width: 100%; vertical-align: middle; }
.otable .pcell__name { overflow: hidden; text-overflow: ellipsis; }
.otable .idchip { max-width: 100%; overflow: hidden; }
.otable .idchip .copy__label { overflow: hidden; }
.otable .idchip .copy__label > span { overflow: hidden; text-overflow: ellipsis; }
.otable .rowacts { max-width: 100%; overflow: hidden; }
.ow-more { display: block; width: calc(100% - 16px); margin: 8px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.agroups { display: grid; gap: 8px; }
.agroup { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; }
.agroup__title { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.mhead__names { min-width: 0; }
.mhead__names .drawer__title { max-width: 100%; }
.om-recent__btn { max-width: 200px; }
.toast.is-warn { border-color: rgb(245 165 36 / .45); }
.toast.is-warn > .icon { color: var(--warn); }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi:nth-child(4) { border-left: 0; } .kpi:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (max-width: 1100px) { .ow-tiers { grid-template-columns: minmax(0, 1fr); } .oshell { grid-template-columns: 170px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .oshell { grid-template-columns: minmax(0, 1fr); }
  .onav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .onav::-webkit-scrollbar { display: none; }
  .onav__btn { min-height: 44px; flex: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 0 !important; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n + 2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .ow-tier__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agroup { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .otable-scroll { border: 0; background: none; overflow: visible; max-height: none !important; }
  .otable, .otable tbody, .otable tr, .otable td { display: block; width: 100%; }
  .otable colgroup, .otable thead { display: none; }
  .otable tr { margin-bottom: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
  .otable td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 0; border: 0; text-align: left !important; white-space: nowrap; }
  .otable td::before { content: attr(data-label); color: var(--faint); font-size: 12px; font-weight: 600; }
  .otable td > * { justify-self: start; min-width: 0; }
  .ow-more { width: 100%; margin: 4px 0 0; }
}

/* ---------------------------------------------------------------- subscribers: bigger, more readable cards + tier summary */
.subgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sub { padding: 16px; gap: 12px; }
.sub__av .avatar { --size: 48px; }
.sub__name { font-size: 15px; }
.sub__slot { font-size: 12.5px; }
.sub__time { font-size: 24px; font-weight: 750; letter-spacing: -.025em; }
.chipx { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.sub__box { padding: 10px 12px; gap: 4px; font-size: 13px; }
.sub__owned .owner-btn { font-size: 13px; }
.sub__foot { font-size: 13px; }
.sub--open { min-height: 0; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 12px; }
.sub--open .btn { align-self: flex-start; }
.tiersum { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; overflow: clip; }
.tiersum::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
.tiersum__name { font-family: var(--display); font-weight: 750; font-size: 20px; letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 10px; }
.tiersum__name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.tiersum dl { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.tiersum dl div { display: flex; justify-content: space-between; gap: 10px; }
.tiersum dt { color: var(--muted); }
.tiersum dd { margin: 0; font-weight: 600; }
.tiersum .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .subgrid { grid-template-columns: minmax(0, 1fr); } .sub__time { font-size: 22px; } }

/* ---------------------------------------------------------------- phones: Rent hidden -> Subscribers takes its place in the bar */
@media (max-width: 760px) {
  body.no-rent .tabs .tab[data-tab="subscribers"] { display: flex; order: 4; }
  body.no-rent .tabs .tab--more { order: 5; }
  body.no-rent .more-menu__item[data-tab="subscribers"] { display: none; }
}

/* review fixes */
@media (max-width: 760px) { .otable td { white-space: normal; } .otable td > * { overflow-wrap: anywhere; } .otable td:empty { display: none; } }

/* ---------------------------------------------------------------- manage my slot (Rent tab) + Hours card rental buttons */
.manage { margin-top: 18px; display: grid; gap: 12px; }
.manage .section-title { margin: 0; }
.manage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.manage__card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.manage__card .card__title { margin: 0; }
.manage__card > .ow-hint { margin-top: -6px; }
.manage__card .select select { width: 100%; }
.manage__card .select { width: 100%; }
.manage__act { margin-top: auto; display: flex; justify-content: flex-end; }
.share-list { display: grid; gap: 6px; }
.share-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.share-row .form-error { grid-column: 1 / -1; }
.share-row__who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 13.5px; }
.hours__acts { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
.hours__acts .form-error { font-size: 13px; }
@media (max-width: 1100px) { .manage__grid { grid-template-columns: minmax(0, 1fr); } }
.hours__head .card__title { white-space: nowrap; }

/* ---------------------------------------------------------------- mod: name search matches */
.mod__matches:empty { display: none; }
.mod__matches.is-loading { opacity: .6; }
.mod__list { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.mod__match { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; text-align: left; color: var(--text); }
@media (hover: hover) { .mod__match:hover { background: var(--raised); } }
.mod__matchtext { display: grid; min-width: 0; font-size: 13px; }
.mod__matchname { font-weight: 600; font-size: 14px; }
.mod__input { font-size: 22px; }

/* ---------------------------------------------------------------- account chip balance */
.me__bal { font-weight: 700; font-size: 13px; color: var(--text); padding-left: 8px; border-left: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- subscribers: slim tier bar + evenly filled grid */
.tier { display: grid; gap: 12px; }
.tier__head { display: none; }
.tierbar { position: relative; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; overflow: clip; }
.tierbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc); }
.tierbar__name { font-family: var(--display); font-weight: 750; font-size: 18px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; }
.tierbar__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent); }
.tierbar__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; flex: 1; }
.tierbar__facts div { display: grid; gap: 1px; }
.tierbar__facts dt { color: var(--faint); font-size: 11.5px; }
.tierbar__facts dd { margin: 0; font-weight: 600; font-size: 13.5px; }
.tierbar__facts dd.is-on { color: #DCE1FF; }
.tierbar .btn { margin-left: auto; }
.subgrid { display: flex; flex-wrap: wrap; gap: 12px; }
.subgrid > * { flex: 1 1 calc((100% - (var(--cols, 4) - 1) * 12px) / var(--cols, 4)); min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .subgrid > * { flex-basis: 100%; }
  .tierbar { padding: 12px 14px; }
  .tierbar .btn { margin-left: 0; width: 100%; }
  .me__bal { padding-left: 6px; }
}
