:root {
  --brand: #2563eb;
  --brand-ink: var(--brand);
  --brand-ink-hover: color-mix(in srgb, var(--brand-ink) 86%, #000);
  --on-brand: #ffffff;
  --brand-text: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 11%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--brand) 18%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 38%, transparent);
  --focus: var(--brand-text);
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --surface-3: #f8f9fb;
  --border: #dde1e8;
  --border-strong: #858fa1;
  --line: #eceef2;
  --text: #111827;
  --text-2: #374151;
  --muted: #586274;
  --ok: #147033;
  --ok-bg: #e7f6ec;
  --warn: #9a5b06;
  --warn-bg: #fdf3e1;
  --danger: #b91c1c;
  --danger-bg: #fdecec;
  --on-danger: #ffffff;
  --info: #1d4ed8;
  --info-bg: #e8effd;
  --accent: #6d28d9;
  --accent-bg: #f1ebfd;
  --promo: #b4410b;
  --promo-bg: #ffeddf;
  --veil: rgba(15, 23, 42, 0.5);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fw-head: 700;
  --fw-strong: 650;
  --track-head: -0.01em;
  --fs-base: 15px;
  --r-card: 14px;
  --r-field: 10px;
  --r-btn: 10px;
  --r-chip: 999px;
  --r-pill: 999px;
  --r-menu: 12px;
  --r-shell: 0px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-pop: 0 14px 34px -10px rgba(16, 24, 40, 0.28), 0 4px 10px -4px rgba(16, 24, 40, 0.12);
  --shadow-btn: none;
  --card-border: 1px solid var(--border);
  --field-bg: var(--surface);
  --field-border: 1px solid var(--border-strong);
  --field-h: 44px;
  --btn-h: 44px;
  --side-bg: var(--surface);
  --side-text: var(--text-2);
  --side-border: 1px solid var(--border);
  --side-active-bg: var(--brand-soft);
  --side-active-text: var(--brand-text);
  --bar-bg: var(--surface);
  --bar-border: 1px solid var(--border);
  --tab-bg: var(--surface);
  --side-w: 248px;
  --side-w-mini: 72px;
  --rail-w: 84px;
  --bar-h: 56px;
  --tab-h: 64px;
  --dock-h: 0px;
  --gutter: 16px;
  --page-max: 1180px;
  --page-gap: 16px;
  --sum-w: 340px;
  --sticky-top: calc(var(--bar-h) + env(safe-area-inset-top) + 12px);
  color-scheme: light;
}

.dark, html[data-mode="dark"] {
  --brand-text: color-mix(in srgb, var(--brand) 55%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 20%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--brand) 30%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 55%, transparent);
  --bg: #0d1117;
  --surface: #151a23;
  --surface-2: #1d2430;
  --surface-3: #11161e;
  --border: #2a3242;
  --border-strong: #6c778a;
  --line: #222a37;
  --text: #eef1f6;
  --text-2: #c9cfda;
  --muted: #9ba4b4;
  --ok: #5ad48a;
  --ok-bg: rgba(74, 222, 128, 0.13);
  --warn: #f5c060;
  --warn-bg: rgba(251, 191, 36, 0.13);
  --danger: #ff8f8f;
  --danger-bg: rgba(248, 113, 113, 0.13);
  --on-danger: #111111;
  --info: #8fb2ff;
  --info-bg: rgba(96, 165, 250, 0.14);
  --accent: #c4a8ff;
  --accent-bg: rgba(167, 139, 250, 0.15);
  --promo: #ffad7a;
  --promo-bg: rgba(251, 146, 60, 0.15);
  --veil: rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (max-width: 1023.98px) {
  html:has(.tabbar) { scroll-padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
  body.is-pub .foot { padding-bottom: env(safe-area-inset-bottom); }
  body.is-pub:has(#play-pause-button) .foot { padding-bottom: calc(env(safe-area-inset-bottom) + 48px); }
}
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.no-scroll, body.overflow-hidden { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: var(--fw-head); letter-spacing: var(--track-head); line-height: 1.2; color: var(--text); }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; }
img { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
table { border-collapse: collapse; }
strong, b { font-weight: var(--fw-strong); }
s { color: var(--muted); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--brand-soft-2); }
.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; }
.hidden, .d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.w-100 { width: 100%; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.fw-bold { font-weight: 700; }
.me-1 { margin-inline-end: 0.25rem; }
.me-2 { margin-inline-end: 0.5rem; }
.ms-1 { margin-inline-start: 0.25rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 0.75rem; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.opt { font-size: 12px; font-weight: 400; color: var(--muted); }
.animate-spin { animation: tb-spin 1s linear infinite; display: inline-block; }
@keyframes tb-spin { to { transform: rotate(360deg); } }
.ico-dark { display: none; }
.dark .ico-light { display: none; }
.dark .ico-dark { display: inline; }
html[data-mode="dark"] [data-theme-toggle] { display: none !important; }

.skip { position: fixed; z-index: 90; left: calc(12px + env(safe-area-inset-left)); top: calc(10px + env(safe-area-inset-top)); padding: 12px 16px; border-radius: var(--r-btn); background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-pop); transform: translateY(calc(-200% - env(safe-area-inset-top, 0px))); }
.skip:focus, .skip:focus-visible { transform: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; color: var(--text); font-weight: 700; }
.brand-logo { display: block; height: 32px; width: auto; max-width: 9.5rem; object-fit: contain; object-position: left center; }
.brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-ink); color: var(--on-brand); font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 17px; letter-spacing: var(--track-head); }

.icon-btn { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text-2); font-size: 20px; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.icon-btn-line { border: 1px solid var(--border); background: var(--surface); }
.icon-btn-danger { color: var(--danger); }
.icon-btn[aria-pressed="true"].favorite-toggle { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-ink); color: var(--on-brand); font-weight: 700; font-size: 14px; line-height: 1; }
.avatar-lg { width: 48px; height: 48px; font-size: 20px; }
.avatar-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.dot-count { position: absolute; top: 4px; right: 3px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.dark .dot-count { background: #dc2626; }

.app { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.is-app:not(.is-verify) .app { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.main { flex: 1 0 auto; width: 100%; min-width: 0; padding: 16px calc(var(--gutter) + env(safe-area-inset-right)) 28px calc(var(--gutter) + env(safe-area-inset-left)); }
.main:focus { outline: none; }

.side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 6px; width: calc(min(320px, 88vw) + env(safe-area-inset-left)); padding: env(safe-area-inset-top) 12px calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--side-bg); color: var(--side-text); border-right: var(--side-border); box-shadow: var(--shadow-pop); transform: translateX(-104%); visibility: hidden; transition: transform 0.22s ease, visibility 0.22s ease; }
.side.is-open { transform: none; visibility: visible; }
.side-head { display: flex; align-items: center; gap: 6px; min-height: var(--bar-h); padding: 0 0 0 4px; }
.side-head .brand { flex: 1; }
.side-collapse { display: none; }
.side-new { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 14px; border-radius: var(--r-btn); background: var(--brand-ink); color: var(--on-brand); font-weight: 700; box-shadow: var(--shadow-btn); }
.side-new > i { font-size: 20px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sec { margin: 12px 0 2px; padding: 0 12px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--side-text); font-size: 15px; font-weight: 550; text-align: left; touch-action: manipulation; }
.nav-link > i { flex-shrink: 0; font-size: 20px; line-height: 1; }
.nav-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link[aria-current="page"] { background: var(--side-active-bg); color: var(--side-active-text); font-weight: 700; }
.nav-out { color: var(--danger); }
.side-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.side-bal { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 4px; margin-bottom: 6px; padding: 12px; border-radius: var(--r-card); background: var(--surface-2); }
.side-bal-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.side-bal-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.side-bal-add { display: inline-flex; align-items: center; justify-content: center; justify-self: start; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--r-btn); background: var(--surface); color: var(--brand-text); font-size: 13px; font-weight: 700; border: 1px solid var(--border); }
.rank-pill { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; min-height: 44px; margin-top: 6px; padding: 3px 12px 3px 3px; border: 1px solid var(--rk, var(--border)); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 700; }
.rank-pill-ico { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--rk, var(--surface-2)); color: var(--rk-on, var(--text)); font-size: 15px; }
.rank-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veil { position: fixed; inset: 0; z-index: 55; background: var(--veil); }
.veil-panel { z-index: 65; }

.topbar { position: sticky; top: 0; z-index: 40; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--bar-bg); border-bottom: var(--bar-border); }
.topbar-in { display: flex; align-items: center; gap: 4px; height: var(--bar-h); padding: 0 8px 0 var(--gutter); }
.top-brand { display: none; align-items: center; flex-shrink: 0; min-height: 44px; min-width: 44px; }
.top-brand .brand-logo { height: 30px; max-width: 7.5rem; }
.top-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--font-head); font-size: 16px; font-weight: var(--fw-head); letter-spacing: var(--track-head); }
.topbar .top-search { display: none; }
.top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.bal-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 46vw; padding: 0 12px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 14px; font-weight: 700; white-space: nowrap; touch-action: manipulation; }
.bal-pill > .num { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top-bal { padding: 2px 0; }

[data-menu] { position: static; }
.menu-panel { position: absolute; z-index: 45; top: 100%; left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); margin-top: 4px; padding: 8px; max-height: calc(100dvh - var(--bar-h) - 24px); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease; }
[data-menu].is-open > .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-head { padding: 4px 10px 10px; }
.menu-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.menu-value { color: var(--text); font-family: var(--font-head); font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.menu-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.menu-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.menu-sep > .menu-label { padding: 4px 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: calc(var(--r-menu) - 4px); background: transparent; color: var(--text-2); font-size: 14.5px; font-weight: 550; text-align: left; }
.menu-item > i { color: var(--brand-text); font-size: 18px; }
.menu-item[aria-current="true"], .menu-item[aria-current="page"], .menu-item[aria-pressed="true"] { color: var(--brand-text); font-weight: 700; }
.menu-item-danger, .menu-item-danger > i { color: var(--danger); }

.tabbar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--tab-bg); border-top: 1px solid var(--border); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 44px; padding: 4px 2px; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 650; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tab > i { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; font-size: 22px; line-height: 1; }
.tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"], .tab[data-current="1"] { color: var(--brand-text); }
.tab[aria-current="page"] > i, .tab[data-current="1"] > i { background: var(--brand-soft); }
.tab-new > i { width: 48px; height: 34px; border-radius: 12px; background: var(--brand-ink); color: var(--on-brand); box-shadow: var(--shadow-btn); }
.tab-new[aria-current="page"] > i { background: var(--brand-ink); }
.tab-new { color: var(--text-2); }

.panel { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; max-width: 100%; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); background: var(--surface); color: var(--text); border-left: 1px solid var(--border); box-shadow: var(--shadow-pop); transform: translateX(104%); visibility: hidden; transition: transform 0.22s ease, visibility 0.22s ease; }
.panel.is-open { transform: none; visibility: visible; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0 16px; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 16px; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
.news { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; }
.news-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.news-title > i { color: var(--brand-text); font-size: 18px; }
.news-text { margin-top: 4px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.news-date { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.legend { display: grid; gap: 16px; padding-top: 16px; font-size: 14px; color: var(--text-2); }
.legend-list { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 8px; }
.legend-notes { display: grid; gap: 8px; }
.legend-notes li { display: flex; gap: 8px; }
.legend-notes i { color: var(--brand-text); }
.legend-notes .is-warn i { color: var(--warn); }

.foot { padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); border-top: 1px solid var(--border); background: var(--surface-3); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: var(--page-max); margin: 0 auto; padding: 16px var(--gutter); text-align: center; }
.foot-copy b { color: var(--text-2); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; }
.foot-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: var(--r-btn); }
.foot-link[aria-current="page"] { color: var(--brand-text); font-weight: 700; }
.popular { max-width: var(--page-max); margin: 0 auto; padding: 20px var(--gutter) 0; }
.popular-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.popular-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.popular-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }

.pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pubbar { position: sticky; top: 0; z-index: 40; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--bar-bg); border-bottom: var(--bar-border); }
.pubbar-in { position: relative; display: flex; align-items: center; gap: 8px; max-width: var(--page-max); height: var(--bar-h); margin: 0 auto; padding: 0 8px 0 var(--gutter); }
.pubbar-in > .brand { flex: 1 1 auto; }
.pub-nav { display: none; }
.pub-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.pub-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.pub-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.pub-actions .pub-signin, .pub-actions .pub-signup { display: none; }
.lang-btn { width: auto; grid-auto-flow: column; gap: 4px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.lang-btn > i { font-size: 18px; }
.pub-menu { position: static; }
.pub-menu > summary { list-style: none; cursor: pointer; }
.pub-menu > summary::-webkit-details-marker { display: none; }
.pub-menu-panel { opacity: 1; visibility: visible; transform: none; }
.pub-main { flex: 1 0 auto; max-width: var(--page-max); margin: 0 auto; padding-top: 20px; padding-bottom: 40px; }
.menu-panel.is-sm { min-width: 11rem; }

.page { display: grid; gap: var(--page-gap); width: 100%; max-width: var(--page-max); margin: 0 auto; min-width: 0; }
.page > * { min-width: 0; }
.page-sm { max-width: 30rem; }
.page-md { max-width: 50rem; }
.page-lg { max-width: 64rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.page-head-text { min-width: 0; flex: 1 1 auto; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.page-title { min-width: 0; font-size: 22px; font-weight: var(--fw-head); letter-spacing: var(--track-head); overflow-wrap: anywhere; }
.page-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.page-sub { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.page-sub-strong { color: var(--brand-text); font-weight: 650; font-size: 13.5px; }
.page-tools { width: 100%; }
.cat-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sec-title { font-size: 17px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.stack > * { min-width: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions > .btn { flex: 1 1 auto; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags > li { min-width: 0; max-width: 100%; }
.grid-fit { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(var(--c-base, 2), minmax(0, 1fr)); }
.grid-fit > * { min-width: 0; }
.grid-fit > :first-child { grid-column: span var(--s-base, 1); }
.search-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text-2); font-size: 14px; }

.box { min-width: 0; background: var(--surface); color: var(--text); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.box-pad { padding: 16px; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.box-title { font-size: 16px; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis.has-rank .kpi-rank { grid-column: 1 / -1; }
.kpis-one { grid-template-columns: minmax(0, 1fr); }
.kpis-three > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.kpi { min-width: 0; padding: 14px 16px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.kpi-wide { grid-column: 1 / -1; }
.kpi-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-label > i { color: var(--brand-text); font-size: 16px; }
.kpi-value { margin-top: 4px; color: var(--text); font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: var(--track-head); overflow-wrap: anywhere; }
.kpi-code { font-size: 14px; font-weight: 600; letter-spacing: 0; word-break: break-all; }
.rank-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; font-size: 17px; }
.rank-ico { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--rk, var(--surface-2)); color: var(--rk-on, var(--text)); font-size: 17px; }
.rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-ghost, .btn-danger, .btn-success, .btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-btn); background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; touch-action: manipulation; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.btn > i { font-size: 18px; line-height: 1; }
.btn > .submit-text, .btn > .loading-text { display: inline-flex; align-items: center; justify-content: center; gap: inherit; }
.btn > .submit-text > i, .btn > .loading-text > i { font-size: 18px; line-height: 1; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; }
.btn-primary { background: var(--brand-ink); color: var(--on-brand); box-shadow: var(--shadow-btn); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--brand-text); }
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-success { background: var(--ok); color: #fff; }
.btn-light { background: #fff; color: #111827; }
.btn-danger-text { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.link { color: var(--brand-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }
.link-touch { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

.field { display: grid; gap: 6px; min-width: 0; }
.label, .form-label, .control-label { display: block; color: var(--text-2); font-size: 14px; font-weight: 600; }
.label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; }
.input, .select, .form-control, .form-select, .fg-control { display: block; width: 100%; min-width: 0; min-height: var(--field-h); padding: 10px 14px; border: var(--field-border); border-radius: var(--r-field); background: var(--field-bg); color: var(--text); font-size: 16px; line-height: 1.35; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
textarea.input, textarea.form-control { min-height: 7rem; resize: vertical; }
.input::placeholder, .form-control::placeholder { color: var(--muted); opacity: 1; }
.input:focus, .select:focus, .form-control:focus, .form-select:focus, .fg-control:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.input:disabled, .form-control:disabled, .input[readonly], .form-control[readonly] { background: var(--surface-2); }
.input.is-invalid, .form-control.is-invalid, .signup-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.input.is-valid { border-color: var(--ok); }
.select, .form-select, select.form-control { padding-right: 40px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 19px center, right 14px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.select option, select.form-control option { background: var(--surface); color: var(--text); }
.input-group { display: flex; align-items: stretch; width: 100%; min-width: 0; min-height: calc(var(--field-h) + 2px); border: var(--field-border); border-radius: var(--r-field); background: var(--field-bg); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.input-group > .input, .input-group > .form-control { flex: 1 1 auto; min-height: var(--field-h); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.input-group > .input:focus, .input-group > .form-control:focus { box-shadow: none; }
.input-group :is(a, button):focus-visible { outline-offset: -4px; }
.input-addon { display: flex; align-items: center; flex-shrink: 0; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: 15px; border-right: 1px solid var(--border); }
.input-group > .input-addon:last-child { border-right: 0; border-left: 1px solid var(--border); }
.input-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; min-width: 44px; padding: 0 12px; border: 0; border-left: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 18px; }
.input-btn-text { font-size: 14px; font-weight: 650; color: var(--brand-text); }
.input-btn.is-copied, [data-copy].is-copied { color: var(--ok); }
.copy-row { display: flex; gap: 8px; }
.copy-row > .input { flex: 1 1 auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-2); font-size: 14.5px; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"], .form-check-input, .custom-control-input, .lst-chk input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--brand-ink); cursor: pointer; }
.help, .help-text, .help-block, .form-text { display: block; color: var(--muted); font-size: 13px; }
.help-check { margin-left: 30px; }
.err-text { color: var(--danger); font-size: 13px; }
.signup-check-text a, .prose a, .alert a, .nf a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }

.alert, .alert-success, .alert-danger, .alert-warning, .alert-info { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-card); font-size: 14.5px; }
.alert > i { flex-shrink: 0; font-size: 19px; line-height: 1.2; }
.alert-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.alert-strong { font-weight: 700; }
.alert-list { margin: 6px 0 8px; padding-left: 18px; list-style: disc; font-size: 13.5px; }
.alert-close { margin: -10px -10px -10px 0; color: inherit; opacity: 0.75; }
.alert-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert-warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 28%, transparent); color: var(--info); }
.alert-success .alert-text, .alert-danger .alert-text, .alert-warning .alert-text, .alert-info .alert-text { color: var(--text); }
.low-bal { align-items: center; }
.low-bal .alert-text { font-weight: 650; }
.low-bal .btn { flex-shrink: 0; min-height: 44px; }
.bulk-feedback:empty { display: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.badge > i { flex-shrink: 0; font-size: 14px; }
.badge-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge-status { max-width: 11rem; }
.badge-primary, .badge.bg-primary { background: var(--brand-soft); color: var(--brand-text); }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); }
.badge-promo { background: var(--promo-bg); color: var(--promo); }

.chips { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-chip); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 650; white-space: nowrap; scroll-snap-align: start; touch-action: manipulation; }
.chip[aria-current="page"], .chip[aria-pressed="true"] { border-color: var(--brand-text); background: var(--brand-soft); color: var(--brand-text); }
.chip-cat { max-width: 100%; }
.chip-cat > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: calc(var(--r-btn) + 4px); background: var(--surface-2); }
.seg > * { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text-2); font-size: 14.5px; font-weight: 650; }
.seg > [aria-selected="true"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-card); }

.srch { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; min-height: calc(var(--field-h) + 2px); padding: 0 0 0 12px; border: var(--field-border); border-radius: var(--r-field); background: var(--field-bg); }
.srch:focus-within { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.srch > i { flex-shrink: 0; color: var(--muted); font-size: 18px; }
.srch input { flex: 1 1 auto; align-self: stretch; min-width: 0; min-height: var(--field-h); padding: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; }
.srch input:focus { outline: none; }
.srch input::placeholder { color: var(--muted); opacity: 1; }
.srch input::-webkit-search-cancel-button { display: none; }
.srch button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: calc(var(--r-field) - 2px); background: transparent; color: var(--text-2); font-size: 18px; }

.lst { overflow: hidden; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.lst-t { display: block; width: 100%; font-size: 14px; line-height: 1.35; }
.lst-t thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.lst-t tbody { display: block; }
.lst-t tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.lst-t tbody tr:first-child { border-top: 0; }
.lst-t td { display: block; min-width: 0; padding: 0; }
.lst-t td:empty { display: none; }
.lst-t [data-k="check"] { grid-area: check; margin-top: 10px; }
.lst-t [data-k="id"] { grid-area: id; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.lst-t [data-k="status"] { grid-area: status; justify-self: end; }
.lst-t [data-k="title"] { grid-area: title; margin-top: 8px; }
.lst-t [data-k="value"] { grid-area: value; margin-top: 8px; font-variant-numeric: tabular-nums; }
.lst-t [data-k="qty"] { grid-area: qty; margin-top: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.lst-t [data-k="prog"] { grid-area: prog; margin-top: 8px; }
.lst-t [data-k="when"] { grid-area: when; margin-top: 4px; }
.lst-t [data-k="order"] { grid-area: order; margin-top: 4px; }
.lst-t [data-k="note"] { grid-area: note; margin-top: 8px; overflow-wrap: anywhere; }
.lst-t [data-k="actions"] { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lst-t [data-k="actions"] .btn-sm { min-height: 44px; }
.lst-t .lst-empty { display: block; padding: 0; }
.lst-orders tr { grid-template-areas: "id status" "title title" "value qty" "actions actions"; }
.lst-orders tr.has-check { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "id id status" "title title title" "value value qty" "check actions actions"; }
.lst-refill tr { grid-template-areas: "id status" "title title" "order order"; }
.lst-drip tr { grid-template-areas: "id status" "title title" "prog prog" "value qty"; }
.lst-subs tr { grid-template-areas: "id status" "title title" "prog prog" "when when" "actions actions"; }
.lst-tickets tr { grid-template-areas: "id status" "title title"; }
.lst-pay tr { grid-template-areas: "id value" "title title" "note note"; }
.lst-pay [data-k="value"] { margin-top: 0; text-align: right; }
.lst-withdraw tr { grid-template-areas: "id status" "value qty" "note note"; }
.lst-mass tr { grid-template-areas: "id status" "title title" "value qty" "note note"; }
.lst-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--text); font-size: 15px; font-weight: 650; }
.lst-sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.lst-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; max-width: 100%; color: var(--brand-text); }
.lst-reason { white-space: normal; color: var(--danger); font-size: 13px; }
.lst-when { color: var(--muted); font-size: 13px; }
.lst-id { color: var(--text); font-weight: 700; }
.lst-strong { color: var(--text); font-weight: 700; }
.lst-date { color: var(--muted); font-size: 13px; font-weight: 400; }
.lst-d-l { display: none; }
.lst-row-link::after { content: ""; position: absolute; inset: 0; }
.lst-chk { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 0 0 -11px; cursor: pointer; }
.select-all { align-self: start; }
.prog { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 44px; }
.prog-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; font-size: 13px; }
.prog-count { color: var(--text); font-weight: 650; }
.prog-link .prog-count { text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 2px; }
.prog-note { color: var(--muted); }
.bar-track { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand-ink); }
.tk-subject { display: flex; align-items: flex-start; gap: 8px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pg[aria-current="page"] { border-color: transparent; background: var(--brand-ink); color: var(--on-brand); }
.pg[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.pg-num { display: none; }
.pg-info { min-width: 5rem; color: var(--text-2); font-size: 14px; text-align: center; }

.empty-state { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; color: var(--text-2); font-size: 14.5px; text-align: center; }
.empty-state > i { color: var(--muted); font-size: 36px; line-height: 1; }
.empty-title { color: var(--text); font-size: 16px; font-weight: 700; }

.bulk-bar { position: fixed; z-index: 34; left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-pop); }
.bulk-bar.is-on { display: flex; }
.bulk-bar .btn { min-height: 44px; }

.music-btn { position: fixed; z-index: 36; right: calc(12px + env(safe-area-inset-right)); bottom: calc(var(--tab-h, 0px) + env(safe-area-inset-bottom) + 12px); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 20px; box-shadow: var(--shadow-pop); }
.music-btn[aria-pressed="true"] { background: var(--brand-ink); color: var(--on-brand); border-color: transparent; }
body.is-pub .music-btn { bottom: calc(env(safe-area-inset-bottom) + 12px); }
body.is-app #play-pause-button { display: none; }

.prose { min-width: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 0.9em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.4em; color: var(--text); }
.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.3em; }
.prose h3 { font-size: 1.12em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose img { border-radius: calc(var(--r-card) - 4px); }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); overflow-wrap: normal; }
.prose iframe, .prose video { max-width: 100%; }
.prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--brand-line); }
.prose code, .prose pre { font-family: var(--font-mono); font-size: 0.92em; }
.prose pre { overflow-x: auto; padding: 12px; border-radius: var(--r-field); background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.read-foot { margin-top: 1.5em; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--veil); }
.modal.flex { display: flex; }
.modal.hidden { display: none !important; }
.modal [hidden] { display: none !important; }
.modal-card { width: 100%; max-width: 28rem; min-width: 0; margin: auto; box-shadow: var(--shadow-pop); outline: none; }
.modal-scroll { max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--line); }
.modal-head-brand { background: var(--brand-ink); color: var(--on-brand); border-radius: var(--r-card) var(--r-card) 0 0; }
.modal-head-brand .modal-title { color: var(--on-brand); padding: 8px 0; }
.modal-title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.modal-body { display: grid; gap: 14px; padding: 16px; }
.modal-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.captcha-img-row { display: flex; align-items: center; gap: 12px; }
.captcha-modal-shot { position: relative; flex-shrink: 0; width: 9.375rem; height: 3.5rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface-2); }
.captcha-modal-shot img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.captcha-modal-spin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-text); font-size: 20px; }
.captcha-modal-recaptcha { display: flex; align-items: center; justify-content: center; min-height: 78px; }
.captcha-input { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.captcha-modal button:disabled { opacity: 0.6; cursor: progress; }

.confirm-dialog { width: min(calc(100vw - 24px), 25rem); max-width: none; margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); }
.confirm-dialog::backdrop { background: var(--veil); }
.dlg-body { display: grid; gap: 14px; padding: 18px; }
.dlg-title { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; color: var(--text); }
.dlg-text { color: var(--text-2); font-size: 14.5px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlg-actions > .btn { padding: 0 10px; }
.confirm-dialog[data-tone="danger"] .confirm-yes { background: var(--danger); color: var(--on-danger); }

.crumbs { overflow: hidden; margin: -12px -6px; padding: 6px; }
.crumbs-list { display: flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--text-2); font-size: 13.5px; }
.crumb { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.crumb + .crumb:nth-last-child(2) { min-width: 0; flex-shrink: 1; }
.crumb > i { flex-shrink: 0; color: var(--muted); }
.crumb-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; color: var(--brand-text); }
.crumb + .crumb:nth-last-child(2) > .crumb-link { display: block; overflow: hidden; text-overflow: ellipsis; line-height: 44px; }
.crumb-now { display: block; min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; color: var(--text); font-weight: 650; }

.banner { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 16px; border: 1px solid var(--brand-line); border-radius: var(--r-card); background: var(--brand-soft); color: var(--text); }
.banner-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.banner-go { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn); background: var(--brand-ink); color: var(--on-brand); font-size: 14px; font-weight: 650; }

.order { display: grid; gap: 14px; padding: 14px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); min-width: 0; }
.order > * { min-width: 0; }
.order-pane { display: grid; gap: 14px; min-width: 0; }
.order-form { display: grid; gap: 14px; min-width: 0; }
.order-fields { display: grid; gap: 4px; min-width: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 6px 0 10px; counter-increment: step; }
.step-num { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-family: var(--font-head); font-size: 13.5px; font-weight: 800; line-height: 1; }
.step-num::before { content: counter(step); }
.step-body { display: grid; gap: 8px; min-width: 0; }
.step-label { margin-top: 3px; }
.order-form .dropdown { margin-bottom: 0; }
.order-sum { display: grid; gap: 12px; padding: 14px; border-radius: calc(var(--r-card) - 2px); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.sum-total { display: grid; gap: 4px; }
.sum-label { color: var(--text-2); font-size: 13.5px; font-weight: 650; }
.sum-value { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface); color: var(--text); font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: var(--track-head); }
.sum-value:focus { outline: none; border-color: var(--brand-text); }
.sum-terms { align-items: flex-start; padding-top: 10px; }
.sum-terms > input { margin-top: 2px; }
.order-submit { min-height: 52px; }
.order-favs { min-width: 0; }
.fav-list { display: grid; gap: 8px; }
.fav-note { padding: 18px 0; color: var(--muted); font-size: 14px; text-align: center; }
.fav-empty { padding: 24px 12px; }
.favorite-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface); color: var(--text); font-size: 14px; text-align: left; }
.fav-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fav-id { color: var(--brand-text); }
.fav-cat { color: var(--muted); font-size: 12.5px; }
.favorite-price { color: var(--ok); font-weight: 650; font-size: 13px; }
.favorite-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: var(--brand-ink); color: var(--on-brand); font-size: 12px; font-weight: 650; white-space: nowrap; }
.find { position: relative; }
.find-pop { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 20rem; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--surface); box-shadow: var(--shadow-pop); }
.find-loading { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; color: var(--text-2); font-size: 14px; }
.find-loading.hidden { display: none !important; }
.find-loading > i { color: var(--brand-text); font-size: 18px; }
.find-empty { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; color: var(--text-2); font-size: 14px; }
.find-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.find-item:last-child { border-bottom: 0; }
.find-text { display: grid; min-width: 0; }
.find-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.find-sub { color: var(--muted); font-size: 12.5px; }
.find-price { flex-shrink: 0; }
.promo-box { min-width: 0; }
.promo-card { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--promo) 30%, transparent); border-radius: var(--r-field); background: var(--promo-bg); }
.promo-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.promo-name > i { color: var(--promo); }
.promo-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.promo-now { color: var(--ok); font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.promo-old { color: var(--muted); font-size: 13.5px; }
.promo-unit { color: var(--text-2); font-size: 12.5px; }
.promo-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--text-2); font-size: 12.5px; }
.promo-time b, .promo-clock { color: var(--text); font-weight: 700; }
.sam-promo.is-ended .promo-now, .sam-promo.is-ended [data-promo-current] { color: var(--text); }
.promo-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; max-width: 100%; }
.promo-inline .badge { min-height: 20px; padding: 1px 6px; font-size: 11.5px; }
.promo-full { display: inline-flex; flex-direction: column; gap: 4px; max-width: 100%; line-height: 1.2; }
.promo-full .promo-now { font-size: 15px; }
.promo-full.is-lg .promo-now { font-size: 28px; }
.promo-full.is-lg .promo-old { font-size: 15px; }
.bal-preview { min-height: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface); color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bal-preview:empty { display: none; }
#balance_preview > div { display: block !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: inherit !important; font-size: inherit !important; text-align: left !important; }
#balance_preview > div > b { display: inline-block; max-width: 100%; color: var(--text); }
#balance_preview > div[style*="239,68,68"] > b:last-of-type { color: var(--danger); }
#balance_preview a { position: relative; display: inline-flex !important; align-items: center; vertical-align: middle; margin: -0.25rem 0; padding: 0.125rem 0.625rem !important; border-radius: 0.5rem !important; background: var(--danger) !important; color: var(--on-danger) !important; font-size: 0.875rem !important; font-weight: 650 !important; line-height: 1.25rem; text-decoration: none; }
.dark #balance_preview a { background: #b91c1c !important; color: #fff !important; }
#balance_preview a::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2.75rem; transform: translateY(-50%); }
.order-done { display: grid; gap: 14px; padding: 16px; border-left: 4px solid var(--ok); }
.done-head { display: flex; align-items: center; gap: 12px; }
.done-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 22px; }
.done-title { color: var(--ok); font-size: 18px; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.done-grid > div { display: flex; gap: 8px; min-width: 0; }
.done-grid dt { flex-shrink: 0; color: var(--muted); }
.done-grid dd { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.done-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline { align-items: center; }

.nf { display: flex; flex-direction: column; min-width: 0; }
.nf > * { min-width: 0; }
.nf > :has(#service-description-card) { order: 1; }
.nf .form-group, .nf .mb-3, .nf .custom-form-group, .nf .fga { margin: 0 0 14px; }
.nf .mb-4 { margin-bottom: 14px; }
.nf .mb-2 { margin-bottom: 8px; }
.nf .mb-1 { margin-bottom: 4px; }
.nf label, .nf .control-label, .nf .form-label, .nf .custom-label, .nf .fla { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.nf .custom-label { display: inline-flex; align-items: center; gap: 6px; }
.nf .fg { position: relative; display: flex; align-items: stretch; }
.nf .fg-icon { display: none; }
.nf .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.nf .fields > .row { align-items: flex-end; }
.nf .row > [class*="col-"] { flex: 1 1 calc(50% - 10px); min-width: 0; }
.nf .col-12 { flex-basis: 100%; }
@media (max-width: 479.98px) {
  .nf .row:has(.input-group) > [class*="col-"] { flex-basis: 100%; }
}
.nf .input-group { min-height: var(--field-h); }
.nf .input-group-btn { display: flex; }
.nf .btn-default, .nf .clear-datetime, .nf .btn-outline-secondary { display: inline-grid; place-items: center; min-width: 44px; min-height: calc(var(--field-h) - 2px); padding: 0 12px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: var(--surface-2); color: var(--text-2); font-size: 16px; }
.nf .clear-datetime .fa-trash-alt { display: inline-block; font-style: normal; line-height: 1; }
.nf .clear-datetime .fa-trash-alt::before { content: "\ec2a"; font-family: "remixicon"; font-size: 18px; font-weight: 400; }
.nf .form-check, .nf .custom-control, .nf .custom-checkbox, .nf .has-depends { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; }
.nf .form-check-label, .nf .custom-control-label { margin: 0; color: var(--text-2); font-weight: 600; cursor: pointer; }
.nf .card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface-3); }
.nf .card-header { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 700; }
.nf .card-body { padding: 12px 14px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.nf .card-title { margin-bottom: 10px; font-size: 15px; color: var(--text); }
.nf .card-subtitle { margin: 0 0 6px; font-size: 13px; color: var(--text); }
.nf .card-text { color: var(--text-2); }
.nf .card hr { margin: 10px 0; border: 0; border-top: 1px solid var(--line); }
.nf .card .row > [class*="col-"] { flex: 1 1 30%; }
.nf .card small.text-uppercase { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.nf .list-unstyled { margin: 0; padding: 0; list-style: none; }
.nf .list-unstyled li + li { margin-top: 2px; }
.nf .extra-details p { margin: 0 0 4px; }
.nf .avgtime-btn { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--brand-ink); color: var(--on-brand); font-size: 12px; font-weight: 700; }
.nf .avgtime-btn:hover, .nf .avgtime-btn[aria-expanded="true"] { background: var(--brand-ink-hover); }
.nf .avgtime-btn:focus { outline: none; }
.nf .avgtime-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nf .avgtime-btn::before { content: ""; position: absolute; inset: -11px; }
.nf .avgtime-tip { background: var(--text); color: var(--surface); }
.nf .help-block, .nf .min-max { margin-top: 6px; }
.dropdown { position: relative; }
.dropdown-toggle, .dropdown > .btn.dropdown-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: var(--field-h); padding: 10px 14px; border: var(--field-border); border-radius: var(--r-field); background: var(--field-bg); color: var(--text); font-size: 15.5px; font-weight: 500; text-align: left; white-space: normal; }
.dropdown-toggle::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin: 0 4px 4px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.65; }
.dropdown-toggle[aria-expanded="true"] { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft-2); }
#categoryTitle, #serviceTitle { display: -webkit-box; min-width: 0; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#categoryTitle .badge, #serviceTitle .badge { margin-left: 6px; vertical-align: middle; }
.dropdown > .dropdown-menu { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; display: none; margin: 4px 0 0; padding: 4px 0; max-height: 18rem; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--surface); box-shadow: var(--shadow-pop); list-style: none; }
.dropdown > .dropdown-menu.show { display: block; }
.dropdown-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: var(--text); font-size: 14.5px; text-align: left; cursor: pointer; }
.dropdown-item > i { color: var(--brand-text); }
.svc-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.svc-opt > .svc-opt-ico { flex: 0 0 auto; width: 1em; line-height: 1; text-align: center; }
.svc-opt-id { flex: 0 0 auto; min-width: calc(var(--svc-opt-digits, 4) * 1ch + 0.9em + 2px); padding: 0.1em 0.45em; border: 1px solid var(--border); border-radius: min(0.3em, var(--r-field)); background: var(--surface-2); color: var(--text-2); font-size: 0.86em; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; text-align: center; white-space: nowrap; }
.svc-opt-name { flex: 1 1 5em; min-width: 0; overflow-wrap: anywhere; }
.svc-opt-price { flex: 0 0 auto; margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#categoryTitle.svc-opt, #serviceTitle.svc-opt { display: flex; flex: 1 1 auto; }
#categoryTitle .svc-opt-name, #serviceTitle .svc-opt-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.datepicker.dropdown-menu { position: absolute; z-index: 90 !important; width: auto; min-width: 0; max-width: calc(100vw - 16px); margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); }
.datepicker table tr td, .datepicker table tr th { min-width: 44px; height: 44px; border-radius: 8px; }
@media (max-width: 639.98px), (max-height: 500px) and (orientation: landscape) {
  .datepicker.datepicker-dropdown { position: fixed; top: auto !important; right: 0; bottom: 0; left: 0 !important; width: auto; max-width: none; padding: 8px calc(8px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); border-width: 1px 0 0; border-radius: var(--r-menu) var(--r-menu) 0 0; }
  .datepicker.datepicker-dropdown::before, .datepicker.datepicker-dropdown::after { display: none; }
  .datepicker.datepicker-dropdown table { margin: 0 auto; }
}
.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.active { background: var(--brand-ink) !important; color: var(--on-brand) !important; text-shadow: none; }
.dark .datepicker table tr td.old, .dark .datepicker table tr td.new, .dark .datepicker table tr td.disabled { color: var(--muted); }
.dark .datepicker table tr td.day:hover, .dark .datepicker .datepicker-switch:hover, .dark .datepicker .prev:hover, .dark .datepicker .next:hover { background: var(--surface-2); }
.dark .datepicker-dropdown::after { border-bottom-color: var(--surface); }
[id$="pixmodal"], .pix-modal { z-index: 95 !important; color: #111827; }

.svc-bar { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
body.is-app .svc-bar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); }
body.is-pub .svc-bar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); }
.svc-bar > .srch { flex: 1 1 auto; min-width: 0; }
.svc-bar > .chip { flex-shrink: 0; }
.svc-filter { width: 9.5rem; flex-shrink: 0; text-overflow: ellipsis; }
.svc-cat + .svc-cat { margin-top: 20px; }
.svc-cat-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text); font-size: 15px; }
.svc-cat-ico { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); font-size: 16px; }
.svc-cat-name { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
a.svc-cat-name { color: var(--text); }
.svc-cat-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.svc-list { overflow: hidden; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "meta buy" "detail detail"; align-items: center; column-gap: 12px; padding: 4px 12px 10px 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 72px); }
.svc:first-child, .svc-head + .svc { border-top: 0; }
.svc-name { grid-area: name; display: flex; align-items: center; min-width: 0; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.3; }
.svc-name > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.svc-name > .svc-ico { flex: 0 0 auto; width: 18px; margin-right: 10px; color: var(--brand-text); font-size: 18px; line-height: 1; text-align: center; }
@media (max-width: 479.98px) {
  .svc-name > .svc-ico { width: 16px; margin-right: 8px; font-size: 16px; }
}
.svc-meta { grid-area: meta; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 44px; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text-2); font-size: 13.5px; text-align: left; touch-action: manipulation; }
.svc-price { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.svc-range { display: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-refill { flex-shrink: 0; color: var(--brand-text); font-size: 16px; }
.svc-chev { flex-shrink: 0; margin-left: auto; color: var(--muted); font-size: 20px; transition: transform 0.15s ease; }
.svc-meta[aria-expanded="true"] .svc-chev { transform: rotate(180deg); }
.svc-buy { grid-area: buy; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--brand-line); border-radius: var(--r-btn); background: var(--brand-soft); color: var(--brand-text); font-size: 14px; font-weight: 700; touch-action: manipulation; }
.svc-detail { grid-area: detail; display: grid; gap: 12px; margin-top: 6px; padding: 12px; border-radius: var(--r-field); background: var(--surface-2); font-size: 14px; }
.svc-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; }
.svc-dl dt { color: var(--muted); }
.svc-dl dd { color: var(--text); font-weight: 650; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.svc-summary { color: var(--text-2); }
.svc-actions { display: flex; gap: 8px; }
.svc-more { flex: 1 1 auto; }
.svc-head { display: none; }

.svc-page { display: grid; gap: 16px; min-width: 0; }
.svc-page > * { min-width: 0; }
.svc-page-head .tags { margin-top: 12px; }
.svc-buybox { display: grid; gap: 12px; align-content: start; }
.svc-buy-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.svc-buy-value { color: var(--brand-text); font-family: var(--font-head); font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.svc-buy-note { text-align: center; }
.facts { display: grid; font-size: 14px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); font-weight: 650; text-align: right; }
.svc-desc .sec-title { margin-bottom: 10px; }
.cards-grid { gap: 12px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.svc-card-name { display: flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.svc-card-title { font-size: 15px; }
.svc-card-cat { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.svc-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13.5px; }
.svc-card-facts > div { display: grid; gap: 2px; min-width: 0; color: var(--text); font-weight: 650; }
.svc-card-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.svc-card-price { color: var(--brand-text); }
.svc-card .svc-buy { margin-top: auto; }

.land-hero { display: grid; gap: 20px; padding: 20px; background-image: radial-gradient(ellipse 80% 60% at 0% 0%, var(--brand-soft), transparent 70%); }
.land-platform { margin-bottom: 12px; }
.land-title { font-size: 26px; overflow-wrap: anywhere; }
.land-intro { display: grid; gap: 10px; margin-top: 12px; color: var(--text-2); line-height: 1.65; }
.land-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.land-from { color: var(--text-2); font-size: 14px; }
.land-from strong { color: var(--brand-text); }
.land-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: calc(var(--r-card) - 2px); }
.land-sec .sec-title, .land-faq .sec-title { margin-bottom: 10px; }
.hsteps { gap: 12px; counter-reset: none; }
.hstep { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 16px; }
.hstep-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-ink); color: var(--on-brand); font-family: var(--font-head); font-weight: 800; }
.hstep-ico { color: var(--brand-text); font-size: 22px; }
.hstep-title { font-size: 15.5px; }
.hstep-text { color: var(--text-2); font-size: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-flat { gap: 0; }
.faq-flat .faq-item { border-top: 1px solid var(--line); }
.faq-flat .faq-item:first-child { border-top: 0; }
.faq-item { min-width: 0; }
.faq-item.box { padding: 0 16px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 0; cursor: pointer; list-style: none; color: var(--text); font-weight: 650; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 { font-size: 15px; font-weight: 650; letter-spacing: 0; }
.faq-ico { flex-shrink: 0; color: var(--brand-text); font-size: 20px; transition: transform 0.15s ease; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { display: grid; gap: 8px; padding: 0 0 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.cta-band { display: grid; justify-items: center; gap: 10px; padding: 32px 20px; border-radius: var(--r-card); background: var(--brand-ink); color: var(--on-brand); text-align: center; }
.cta-title { color: var(--on-brand); font-size: 24px; }
.cta-text { max-width: 36rem; color: var(--on-brand); }

.home { display: grid; gap: 48px; min-width: 0; }
.home > * { min-width: 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "login" "art"; gap: 18px; align-items: center; }
.hero-copy { grid-area: copy; min-width: 0; }
.hero-login { grid-area: login; min-width: 0; width: 100%; max-width: 30rem; justify-self: center; scroll-margin-top: calc(var(--bar-h) + 16px); }
.hero-art { grid-area: art; display: none; min-width: 0; }
.hero-title { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.hero-brand { color: var(--brand-text); }
.hero-tag { display: block; margin-top: 8px; }
.hero-lead { margin-top: 12px; max-width: 36rem; color: var(--text-2); font-size: 16px; }
.login-card { display: grid; gap: 14px; padding: 18px; box-shadow: var(--shadow-pop); }
.login-title { font-size: 18px; }
.auth-form { display: grid; gap: 14px; min-width: 0; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-row { display: flex; }
.google-btn { gap: 10px; background: var(--surface); border-color: var(--border); }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; color: var(--muted); font-size: 14px; text-align: center; }
.art { position: relative; min-height: 220px; }
.art-shape { position: absolute; display: block; border-radius: var(--r-card); }
.art-a { inset: 10% 30% 30% 0; background: var(--brand-soft-2); }
.art-b { inset: 30% 0 0 30%; background: var(--surface); border: var(--card-border); box-shadow: var(--shadow-pop); }
.art-c { width: 64px; height: 64px; right: 12%; top: 6%; border-radius: 50%; background: var(--brand-ink); opacity: 0.85; }
.home-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.home-sec > * { min-width: 0; }
.sec-head { display: grid; gap: 6px; max-width: 40rem; margin: 0 auto; text-align: center; }
.sec-h2 { font-size: 24px; }
.sec-lead { color: var(--text-2); }
.sec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; color: var(--text-2); font-size: 14px; text-align: center; }
.stats { gap: 10px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px; }
.stat-ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); font-size: 20px; }
.stat-text { display: grid; min-width: 0; }
.stat-value { color: var(--text); font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 13.5px; }
.feats { gap: 12px; }
.feat { display: grid; align-content: start; gap: 8px; padding: 18px; }
.feat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); font-size: 22px; }
.feat-title { font-size: 16px; }
.feat-text { color: var(--text-2); font-size: 14px; }
.plats { gap: 10px; }
.plat { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; text-align: center; }
.plat-ico { color: var(--brand-text); font-size: 28px; }
.plat-name { font-size: 15px; }
.plat-count { color: var(--muted); font-size: 12.5px; }
.cats { display: grid; gap: 12px; }
.cat-link { display: grid; gap: 10px; height: 100%; padding: 16px; }
.cat-name { font-size: 15.5px; overflow-wrap: anywhere; }
.offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.offers-title { font-size: 18px; text-align: center; }
.offers-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.offer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
.offer > * { min-width: 0; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.offer-name { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.home-faq .faq-list { max-width: 48rem; width: 100%; margin: 0 auto; }

.auth { display: grid; gap: 16px; width: 100%; max-width: 30rem; margin: 0 auto; }
.auth-brand { display: none; }
.auth-brand-in { display: grid; align-content: center; gap: 20px; height: 100%; }
.auth-points { display: grid; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 650; }
.auth-points i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-size: 18px; }
.auth-art { display: none; }
.auth-main { display: grid; gap: 12px; min-width: 0; }
.auth-card { display: grid; gap: 16px; padding: 18px; }
.auth-head { display: flex; align-items: center; gap: 12px; }
.auth-ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-ink); color: var(--on-brand); font-size: 22px; }
.auth-title { font-size: 21px; }
.signup-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pw-meter { display: grid; gap: 4px; margin-top: 6px; }
.pw-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.pw-bar { height: 100%; width: 0; background: var(--muted); transition: width 0.3s ease; }
.pw-bar.is-weak { background: var(--danger); }
.pw-bar.is-mid { background: var(--warn); }
.pw-bar.is-strong { background: var(--ok); }

.acc { display: grid; gap: 16px; min-width: 0; }
.acc-side, .acc-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.acc-id { display: flex; align-items: center; gap: 12px; }
.acc-who { min-width: 0; }
.acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.acc-mail { overflow-wrap: anywhere; color: var(--muted); font-size: 13.5px; }
.acc-nav { display: none; }
.acc-nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); color: var(--text-2); font-weight: 600; }
.acc-nav-link > i { color: var(--brand-text); font-size: 18px; }
.acc-sec { min-width: 0; scroll-margin-top: calc(var(--bar-h) + 16px); }
.acc-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; color: var(--text); font-size: 15.5px; font-weight: 650; user-select: none; }
.acc-sum::-webkit-details-marker { display: none; }
.acc-sum > i:first-child { color: var(--brand-text); font-size: 20px; }
.acc-chev { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform 0.15s ease; }
details[open] > .acc-sum .acc-chev { transform: rotate(180deg); }
.acc-form { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.acc-form > .btn { justify-self: stretch; }
.rk-card { display: grid; gap: 14px; }
.rk-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-card-who { flex: 1; min-width: 0; }
.rk-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; font-family: var(--font-sans); }
.rk-name { color: var(--text); font-family: var(--font-head); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.rk-name-lg { font-size: 24px; line-height: 1.15; }
.rk-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--rk, var(--surface-2)); color: var(--rk-on, var(--text)); font-size: 21px; }
.rk-icon-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
.rk-icon-none { background: var(--surface-2); color: var(--text-2); }
.rk-more { flex-shrink: 0; text-decoration: none; }
.rk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rk-facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.rk-facts dd { margin-top: 2px; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.rk-note { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 650; }
.rk-note > i { color: var(--brand-text); }
.rk-progress { display: grid; gap: 8px; }
.rk-progress .bar-track, .rk-bar .bar-track { height: 8px; }
.rk-missing { color: var(--text-2); font-size: 14px; }
.rk-missing b { color: var(--text); }
.rk-hero { display: grid; gap: 16px; padding: 18px; background-image: radial-gradient(ellipse 75% 90% at 0% 0%, var(--rk-soft, transparent), transparent 70%); }
.rk-hero-cur, .rk-hero-prog { display: grid; gap: 10px; min-width: 0; }
.rk-hero-prog { padding: 14px; border: 1px solid var(--border); border-radius: calc(var(--r-card) - 2px); background: var(--surface); }
.rk-hero-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-spent { display: inline-grid; justify-self: start; gap: 2px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--surface); }
.rk-spent-value { color: var(--text); font-family: var(--font-head); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.rk-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.rk-path > i { color: var(--muted); }
.rk-meter { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rk-ring { position: relative; flex-shrink: 0; width: 92px; height: 92px; }
.rk-ring svg { display: block; width: 100%; height: 100%; }
.rk-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.rk-ring-fg { fill: none; stroke: var(--brand-ink); stroke-width: 12; stroke-linecap: round; }
.rk-ring-text { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); font-size: 17px; font-weight: 800; }
.rk-bar { display: grid; gap: 6px; flex: 1; min-width: 0; }
.rk-ends { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 650; }
.rk-ends > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rk-level { display: grid; align-content: start; gap: 6px; padding: 16px; }
.rk-level[data-state="current"] { border-color: var(--rk); box-shadow: 0 0 0 1px var(--rk), var(--shadow-card); }
.rk-level[data-state="locked"] .rk-icon { opacity: 0.55; }
.rk-level-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rk-level-name { margin-top: 4px; font-size: 16px; overflow-wrap: anywhere; }
.rk-level-range { color: var(--text-2); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.rk-level-desc { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.rk-level-info { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .rk-ring-fg { animation: tb-ring 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rk-fill { animation: tb-fill 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes tb-ring { from { stroke-dashoffset: 100; } }
@keyframes tb-fill { from { width: 0; } }

.funds-grid { display: grid; gap: 16px; min-width: 0; }
.funds-main, .funds-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.funds-form { display: grid; gap: 18px; counter-reset: step; }
.funds-step { display: grid; gap: 14px; }
.funds-form .step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.funds-form .step-num { counter-increment: step; }
.pay-methods { gap: 10px; }
.pay-method { position: relative; display: block; cursor: pointer; }
.pay-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 88px; padding: 12px; border: 2px solid var(--border); border-radius: var(--r-card); background: var(--surface); text-align: center; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pay-img { height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.pay-ico { color: var(--brand-text); font-size: 26px; }
.pay-name { color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.pay-check { position: absolute; top: 8px; right: 8px; display: none; color: var(--brand-text); font-size: 18px; }
.pay-radio:checked + .pay-card { border-color: var(--brand-text); background: var(--brand-soft); }
.pay-radio:checked ~ .pay-check { display: block; }
.pay-radio:focus-visible + .pay-card { outline: 2px solid var(--focus); outline-offset: 2px; }
.payment-instructions-block { min-width: 0; }
.pay-line { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: 14px; }
.pay-line-img { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.pay-line-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aff-hero { display: grid; gap: 16px; }
.aff-rate-title { color: var(--text); font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.aff-rate-value { color: var(--brand-text); }
.aff-rate-note { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.aff-withdraw .btn { width: 100%; }

.tk-grid { display: grid; gap: 14px; min-width: 0; }
.chat { display: grid; gap: 14px; }
.msg { display: grid; gap: 4px; max-width: 86%; min-width: 0; }
.msg-me { justify-self: end; justify-items: end; }
.msg-sup { justify-self: start; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.msg-me .msg-bubble { border-bottom-right-radius: 6px; background: var(--brand-ink); color: var(--on-brand); }
.msg-sup .msg-bubble { border-bottom-left-radius: 6px; background: var(--surface-2); color: var(--text); }
.msg-meta { color: var(--muted); font-size: 12.5px; }
.msg-meta strong { color: var(--text-2); }
.msg-sup .msg-meta strong { color: var(--brand-text); }
.chat-reply { display: grid; gap: 12px; }

.upd-group { overflow: hidden; }
.upd-head { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.upd-day { font-size: 14px; }
.upd-date { margin-left: 4px; color: var(--muted); font-weight: 500; }
.upd-list { display: grid; }
.upd-item { position: relative; display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.upd-item:first-child { border-top: 0; }
.upd-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 18px; }
.upd-ico[data-tone="good"] { background: var(--ok-bg); color: var(--ok); }
.upd-ico[data-tone="bad"] { background: var(--danger-bg); color: var(--danger); }
.upd-ico[data-tone="info"] { background: var(--info-bg); color: var(--info); }
.upd-ico[data-tone="new"] { background: var(--accent-bg); color: var(--accent); }
.upd-body { flex: 1; min-width: 0; }
.upd-name { color: var(--text); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.upd-text { margin-top: 2px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.upd-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; color: var(--muted); font-size: 12.5px; }

.api-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.api-sec { overflow: hidden; }
.api-cols { display: grid; }
.api-params, .api-code { min-width: 0; padding: 14px 16px; }
.api-code { background: #0f172a; }
.api-h { margin-bottom: 8px; color: var(--muted); font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.api-code .api-h { color: #cbd5e1; }
.api-table { width: 100%; font-size: 14px; }
.api-table td { padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.api-table tr:last-child td { border-bottom: 0; }
.api-key { color: var(--brand-text) !important; font-weight: 650; overflow-wrap: anywhere; }
.code { max-height: 20rem; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #a7f3d0; font-family: var(--font-mono); font-size: 13.5px; }

.posts { display: grid; gap: 14px; }
.post { position: relative; overflow: hidden; }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 17px; }
.post-title > i { flex-shrink: 0; color: var(--brand-text); font-size: 22px; }
.post-link { display: flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.post-link::after, .offer-name::after { content: ""; position: absolute; inset: 0; }
.read { display: grid; gap: 16px; min-width: 0; }
.read-cover { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); }
.read-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mass-form { display: grid; gap: 12px; }
.mass-rows { display: grid; gap: 12px; }
.mass-row { padding: 14px; }
.mass-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 6px; }
.mass-row-tools { display: flex; gap: 8px; }
.order-num { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--brand-ink); color: var(--on-brand); font-size: 13px; font-weight: 700; }
.mass-grid { display: grid; gap: 12px; }
.price-display { margin-top: 4px; color: var(--brand-text); font-size: 13px; font-weight: 650; }
.mass-foot { display: grid; gap: 12px; }
.mass-sum { padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-2); }

.err-page { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.err-card { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 32rem; text-align: center; }
.err-code { color: var(--brand-text); font-family: var(--font-head); font-size: clamp(88px, 28vw, 180px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.err-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-ink); color: var(--on-brand); font-size: 26px; }
.err-title { font-size: 26px; }
.err-text { color: var(--text-2); }

@media (hover: hover) {
  .nav-link:hover:not([aria-current="page"]) { background: var(--surface-2); color: var(--text); }
  .menu-item:hover, .icon-btn:hover, .avatar-btn:hover { background: var(--surface-2); }
  .btn-primary:hover, .side-new:hover, .banner-go:hover, .tab-new:hover > i { background: var(--brand-ink-hover); }
  .btn-secondary:hover, .btn-outline:hover, .btn-ghost:hover { background: var(--surface-2); }
  .chip:hover:not([aria-current="page"]), .pg:hover:not([aria-current="page"]) { border-color: var(--border-strong); color: var(--text); }
  .lst-t tbody tr:hover { background: var(--surface-3); }
  .svc-buy:hover { background: var(--brand-soft-2); }
  .svc-meta:hover { color: var(--text); }
  .favorite-item:hover, .find-item:hover, .dropdown-item:hover { background: var(--surface-2); }
  .pay-card:hover { border-color: var(--border-strong); }
  .link:hover, .crumb-link:hover { text-decoration-color: currentColor; }
  .pub-link:hover:not([aria-current="page"]), .foot-link:hover, .popular-link:hover { color: var(--brand-text); }
  .svc-name:hover, a.svc-cat-name:hover, .svc-card-name:hover, .post-link:hover, .upd-name:hover, .offer-name:hover { color: var(--brand-text); }
}

@media (max-width: 639.98px) {
  body *:has(> #category-drop.show), body *:has(> #orders-drop.show) { transform: none !important; }
  .chips > :focus-visible { outline-offset: -2px; }
  #category-drop.show, #orders-drop.show { position: fixed !important; inset: auto 0 0 0 !important; z-index: 85 !important; max-height: 72dvh !important; margin: 0 !important; border-radius: var(--r-sheet, 18px) var(--r-sheet, 18px) 0 0 !important; padding: 8px env(safe-area-inset-right) calc(8px + env(safe-area-inset-bottom)) env(safe-area-inset-left) !important; }
  #category-drop .dropdown-item, #orders-drop .dropdown-item { min-height: 48px; white-space: normal; }
  body:has(#category-drop.show, #orders-drop.show) { overflow: hidden; }
  body:has(#category-drop.show, #orders-drop.show)::after { content: ""; position: fixed; inset: 0; z-index: 84; background: var(--veil); }
  .confirm-dialog { margin-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (min-width: 480px) {
  .done-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-actions > .btn { flex: 0 0 auto; }
  .acc-form > .btn { justify-self: start; }
  .aff-withdraw .btn { width: auto; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  [data-menu] { position: relative; }
  .menu-panel { left: auto; right: 0; width: 19rem; }
  .menu-panel.is-sm { width: 12rem; }
  .panel { width: calc(26rem + env(safe-area-inset-right)); padding-left: 0; }
  .pub-menu { position: relative; }
  .chips { margin: 0; padding: 2px 0; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; overflow: visible; }
  .grid-fit { grid-template-columns: repeat(var(--c-sm, 2), minmax(0, 1fr)); }
  .grid-fit > :first-child { grid-column: span var(--s-sm, 1); }
  .page-funds .pay-methods { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--pay-min, 8.5rem), calc((100% - (var(--c-lg, 3) - 1) * 1.25rem) / var(--c-lg, 3)))), 1fr)); }
  .page-funds .pay-methods > :first-child { grid-column: auto; }
  .pg-num { display: inline-flex; }
  .pg-info { display: none; }
  .svc-bar { margin: 0; padding-left: 0; padding-right: 0; }
  .svc-filter { width: 14rem; }
  .page-title { font-size: 24px; }
  .page-tools { width: auto; flex: 0 1 24rem; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .kpis.has-rank .kpi-rank { grid-column: auto; }
  .kpis-three > :last-child:nth-child(odd) { grid-column: auto; }
  .api-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-fields > .sf-wide { grid-column: 1 / -1; }
  .mass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mass-grid > .field:first-child { grid-column: 1 / -1; }
  .rk-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 36px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-title { font-size: 32px; }
  .order { padding: 18px; }
  .box-pad { padding: 20px; }
}

@media (min-width: 768px) {
  .pub-actions .pub-signin, .pub-actions .pub-signup { display: inline-flex; }
  .hero-art { display: block; }
  .api-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-hero.has-image { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
  .land-hero { padding: 32px; }
  .tk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: start; }
  .rk-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; padding: 24px; }
  .auth { max-width: 60rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0; border-radius: var(--r-card); overflow: hidden; border: var(--card-border); background: var(--surface); box-shadow: var(--shadow-pop); }
  .auth-verify { max-width: 30rem; grid-template-columns: minmax(0, 1fr); border: 0; background: none; box-shadow: none; overflow: visible; }
  .auth-brand { display: block; padding: 32px; background: var(--surface-2); border-right: 1px solid var(--border); }
  .auth:not(.auth-verify) .auth-main { padding: 28px; align-content: center; }
  .auth:not(.auth-verify) .auth-card { padding: 0; border: 0; box-shadow: none; background: none; }
  .err-title { font-size: 30px; }
}

@media (min-width: 1024px) {
  :root { --bar-h: 64px; --tab-h: 0px; --gutter: 32px; --page-gap: 20px; }
  body.is-app:not(.is-verify) .app { padding-bottom: 0; }
  .tabbar { display: none; }
  .side-close { display: none; }
  .veil:not(.veil-panel) { display: none !important; }
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "side bar" "side main" "side foot"; }
  .side { grid-area: side; position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh; width: auto; transform: none; visibility: visible; box-shadow: none; padding: 0 12px 12px; transition: none; }
  .topbar { grid-area: bar; }
  .main { grid-area: main; padding-top: 24px; padding-bottom: 40px; }
  .foot { grid-area: foot; }
  .topbar-in { gap: 10px; padding: 0 calc(var(--gutter) - 8px) 0 var(--gutter); }
  .topbar .top-search { display: flex; flex: 0 1 22rem; }
  .topbar .top-search input { font-size: 14.5px; }
  html:not(.side-mini) .side-collapse { display: inline-grid; }
  html[data-shell="side"].side-mini .side-collapse { display: inline-grid; }
  .bulk-bar { position: sticky; bottom: 16px; left: auto; right: auto; }
  body:has(#play-pause-button) .bulk-bar { margin-right: 56px; }
  .pub-nav { display: flex; align-items: center; gap: 2px; }
  .pub-menu { display: none; }
  .pubbar-in > .brand { flex: 0 1 auto; margin-right: auto; }
  .main.pub-main { padding-top: 32px; padding-bottom: 56px; }
  .grid-fit { gap: 16px; grid-template-columns: repeat(var(--c-lg, 4), minmax(0, 1fr)); }
  .grid-fit > :first-child { grid-column: span var(--s-lg, 1); }
  .music-btn, body.is-app #play-pause-button { display: grid; right: 24px; bottom: 24px; }
  .svc { grid-template-columns: minmax(0, 1fr) 20rem 5.5rem; grid-template-areas: "name meta buy" "detail detail detail"; padding: 6px 12px 6px 16px; }
  .svc-buy { width: 5.5rem; padding: 0; }
  .svc-meta .svc-price { width: 8.5rem; }
  .svc-meta .svc-range { display: inline; width: 8rem; }
  .svc-price small, .svc-m-only { display: none; }
  .svc-head { display: grid; grid-template-columns: minmax(0, 1fr) 20rem 5.5rem; column-gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .svc-head > span:nth-child(2) { display: flex; gap: 12px; }
  .svc-head-price { width: 8.5rem; }
  .svc-page { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .svc-page-head { grid-column: 1; }
  .svc-buybox { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--sticky-top); }
  .svc-desc { grid-column: 1; }
  .home { gap: 72px; }
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "copy login" "art login"; column-gap: 48px; row-gap: 24px; }
  .hero-login { justify-self: stretch; align-self: center; }
  .hero-title { font-size: 46px; }
  .sec-h2 { font-size: 30px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .offers-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start; }
  .acc-side { position: sticky; top: var(--sticky-top); }
  .acc-nav { display: grid; gap: 2px; padding: 8px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); }
  .acc-side .kpis { grid-template-columns: minmax(0, 1fr); }
  .funds-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .rk-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mass-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); }
  .mass-grid > .field:first-child { grid-column: auto; }
  .mass-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .mass-sum.hidden + .btn { grid-column: 1 / -1; }
  .auth-brand { padding: 40px; }
  .auth-art { display: block; }
  .msg { max-width: 72%; }

  html[data-shell="side"].side-mini { --side-w: var(--side-w-mini); }
  .nav-icons .side { padding: 0 10px 12px; overflow: visible; align-items: stretch; }
  .nav-icons .side.is-tall { overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; }
  .nav-icons .side.is-tall :is(.side-new, .nav-link):is(:hover, :focus-visible) { transform: none; filter: none; }
  .nav-icons .brand-name,
  .nav-icons .nav-sec,
  .nav-icons .side-bal { display: none; }
  .nav-icons .side-head { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 0 6px; min-height: var(--bar-h); }
  .nav-icons .side-head .brand { flex: 0 0 auto; justify-content: center; }
  .nav-icons .brand-logo { max-width: 44px; height: 28px; }
  .nav-icons .side-new { padding: 0; width: 100%; }
  .nav-icons :is(.side-new, .nav-link) > span, html[data-shell="dock"] :is(.side-new, .nav-link) > span { z-index: 70; display: block; width: max-content; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 650; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s ease, transform 0.12s ease; }
  .nav-icons :is(.side-new, .nav-link) > span { position: fixed; left: var(--tip-x, -999px); top: var(--tip-y, 0px); max-width: 16rem; transform: translate(-4px, -50%); }
  .nav-icons :is(.side-new, .nav-link) { position: relative; justify-content: center; padding: 0; min-height: 44px; }
  .nav-icons :is(.side-new, .nav-link):is(:hover, :focus-visible) > span { opacity: 1; transform: translate(0, -50%); }
  .nav-icons:not(.dark) .side-theme > .ico-dark, .nav-icons.dark .side-theme > .ico-light { display: none; }
  .nav-icons .side-theme > i { display: none; }
  .nav-icons:not(.dark) .side-theme > i.ico-light, .nav-icons.dark .side-theme > i.ico-dark { display: inline; }
  html[data-shell="side"].side-mini .side-collapse > i { transform: rotate(180deg); }
  html[data-shell="rail"] { --side-w: var(--rail-w); }
  html[data-shell="rail"] .side-collapse { display: none !important; }

  html[data-shell="top"] .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "bar" "side" "main" "foot"; }
  html[data-shell="top"] .side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px calc(var(--gutter) + env(safe-area-inset-right)) 8px calc(var(--gutter) + env(safe-area-inset-left)); overflow: visible; border-right: 0; border-bottom: var(--side-border); }
  html[data-shell="top"] .side-head, html[data-shell="top"] .nav-sec, html[data-shell="top"] .side-foot, html[data-shell="top"] .side-collapse { display: none; }
  html[data-shell="top"] .side-new { order: 2; margin-left: auto; }
  html[data-shell="top"] .side-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
  html[data-shell="top"] .nav-link { width: auto; padding: 0 12px; gap: 8px; font-size: 14px; }
  html[data-shell="top"] .nav-link > i { font-size: 18px; }
  html[data-shell="top"] .top-brand, html[data-shell="dock"] .top-brand { display: flex; }

  html[data-shell="dock"] { --dock-h: 76px; }
  html[data-shell="dock"] body.is-app .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "bar" "main" "foot"; padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }
  html[data-shell="dock"] .side { position: fixed; z-index: 38; top: auto; left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); height: auto; width: max-content; max-width: calc(100vw - 192px); flex-direction: row; align-items: center; gap: 6px; padding: 8px 10px; overflow: visible; border: var(--side-border); border-radius: 20px; box-shadow: var(--shadow-pop); transform: translateX(-50%); }
  html[data-shell="dock"] .side-head, html[data-shell="dock"] .nav-sec, html[data-shell="dock"] .side-foot, html[data-shell="dock"] .side-collapse { display: none; }
  html[data-shell="dock"] .side-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; }
  html[data-shell="dock"] .side-new, html[data-shell="dock"] .nav-link { position: relative; justify-content: center; width: 52px; min-height: 52px; padding: 0; }
  html[data-shell="dock"] :is(.side-new, .nav-link) > span { position: absolute; left: 50%; bottom: calc(100% + 10px); max-width: 14rem; transform: translate(-50%, 4px); }
  html[data-shell="dock"] :is(.side-new, .nav-link):is(:hover, :focus-visible) > span { opacity: 1; transform: translate(-50%, 0); }
  html[data-shell="dock"] .bulk-bar { bottom: calc(var(--dock-h) + 30px); }
  html[data-shell="dock"] .music-btn, html[data-shell="dock"] #play-pause-button { bottom: calc(var(--dock-h) + 30px); }
}

@media (min-width: 1024px) and (max-height: 760px) and (pointer: fine) {
  .nav-icons .nav-link { min-height: 40px; }
  .nav-icons .side-nav { gap: 0; }
}

@media (min-width: 1280px) {
  .order { grid-template-columns: minmax(0, 1fr) var(--sum-w); grid-template-rows: auto auto 1fr; column-gap: 20px; row-gap: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .order::before { content: ""; grid-column: 1; grid-row: 1 / span 3; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
  .order > #tab-form:not([hidden]), .order .order-form { display: contents; }
  .order-tabs { grid-column: 1; grid-row: 1; margin: 18px 18px 0; }
  .order-search { grid-column: 1; grid-row: 2; padding: 18px 18px 4px; }
  .order-fields { grid-column: 1; grid-row: 3; padding: 4px 18px 18px; align-content: start; }
  .order-favs { grid-column: 1; grid-row: 2 / span 2; padding: 18px; }
  .order-sum { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: var(--sticky-top); padding: 18px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
  .order:not(.has-tabs) .order-search { padding-top: 18px; }
  .lst-t:not(.lst-cards) { display: table; border-collapse: collapse; }
  .lst-t:not(.lst-cards) thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .lst-t:not(.lst-cards) tbody { display: table-row-group; }
  .lst-t:not(.lst-cards) tr { display: table-row; padding: 0; }
  .lst-t:not(.lst-cards) th { display: table-cell; width: 1%; padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
  .lst-t:not(.lst-cards) td { display: table-cell; width: 1%; padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; text-align: left; white-space: nowrap; }
  .lst-t:not(.lst-cards) td:empty { display: table-cell; }
  .lst-t:not(.lst-cards) tbody tr:first-child td { border-top: 0; }
  .lst-t:not(.lst-cards) th[data-k="title"] { width: 100%; }
  .lst-t:not(.lst-cards) td[data-k="title"] { width: auto; max-width: 0; white-space: normal; }
  .lst-t:not(.lst-cards) td[data-k="id"] .lst-date { display: block; }
  .lst-t:not(.lst-cards) .lst-d-m { display: none; }
  .lst-t:not(.lst-cards) .lst-d-l { display: inline; }
  .lst-t:not(.lst-cards) td[data-k="value"], .lst-t:not(.lst-cards) td[data-k="qty"], .lst-t:not(.lst-cards) th.th-end { text-align: right; }
  .lst-t:not(.lst-cards) td[data-k="actions"] { white-space: normal; }
  .lst-t:not(.lst-cards) td[data-k="actions"] > * { margin: 2px 6px 2px 0; }
  .lst-t:not(.lst-cards) td[data-k="prog"] { min-width: 10rem; }
  .lst-t:not(.lst-cards) .lst-m-only { display: none; }
  .lst-t:not(.lst-cards) .lst-chk { margin: -11px; }
  .lst-t:not(.lst-cards) .lst-empty td { display: table-cell; }
}

@media (min-width: 1024px) and (pointer: fine) {
  .btn-sm { min-height: 36px; }
  .rank-pill, .popular-link { min-height: 36px; }
  .topbar .top-search { min-height: 42px; }
  .topbar .top-search input, html[data-shell="top"] :is(.side-new, .nav-link) { min-height: 40px; }
  .topbar .top-search button { width: 40px; height: 40px; }
  .datepicker table tr td, .datepicker table tr th { min-width: 36px; height: 36px; }
}

@media (min-width: 1280px) and (pointer: fine) {
  .lst-t:not(.lst-cards) [data-k="actions"] .btn-sm { min-height: 36px; }
}

@media (max-width: 1279.98px) {
  .lst-t td[data-k="check"]:empty { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

@media (max-width: 1023.98px) and (min-width: 640px) {
  .menu-panel { max-width: calc(100vw - 16px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root { --bar-h: 48px; --tab-h: 52px; }
  .tab { flex-direction: row; gap: 6px; font-size: 12.5px; }
  .tab > i { width: 40px; height: 30px; font-size: 20px; }
  .tab-new > i { width: 44px; height: 32px; }
  .side-head { min-height: 48px; }
  .side-bal { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 10px; }
  .side-bal-label > span, .side-bal-add > span { display: none; }
  .side-bal-value { font-size: 16px; }
  .rank-pill { grid-column: 1 / -1; margin-top: 2px; }
  .nav-link { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .nav-sec { margin-top: 8px; }
  .panel-head { min-height: calc(48px + env(safe-area-inset-top)); }
  .modal-card { max-height: calc(100dvh - 20px); overflow-y: auto; }
  .menu-panel { max-height: calc(100dvh - var(--bar-h) - 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html :is(.topbar, .pubbar) { background-color: rgb(from var(--bar-bg) r g b / 1); }
  html .tabbar { background-color: rgb(from var(--tab-bg) r g b / 1); }
  html .side { background-color: rgb(from var(--side-bg) r g b / 1); }
  html :is(.veil, .modal), html .confirm-dialog::backdrop, body:has(#category-drop.show, #orders-drop.show)::after { background-color: rgb(from var(--veil) r g b / 1); }
}

@media print {
  .side, .topbar, .tabbar, .foot, .panel, .music-btn, .bulk-bar { display: none !important; }
  .app { display: block; padding: 0 !important; }
}
