/* ============================================================
   tgbotstat — Mini App (Original DarkPan Palette + Clean Layout)
   ============================================================ */
:root {
  /* Telegram theme params (инжектируются SDK) + фолбэки DarkPan */
  --bg:         var(--tg-bg, #0b0d12);
  --bg-grad-1:  var(--tg-bg-2, #12151d);
  --card:       var(--tg-section, #161a23);
  --card-hover: color-mix(in srgb, var(--card) 88%, #fff 12%);
  --line:       var(--tg-separator, #232833);
  --line-2:     color-mix(in srgb, var(--line) 70%, #fff 30%);
  --tx:         var(--tg-text, #f2f5fa);
  --tx-2:       var(--tg-subtitle, #b3bccd);
  --mut:        var(--tg-hint, #7f8a9d);
  --acc:        var(--btn);
  --acc-soft:   color-mix(in srgb, var(--btn) 16%, transparent);
  --danger:     #ff5c5c;
  --acc-2:      #e01717;
  /* цвет кнопок из темы Telegram (button_color) */
  --btn:        var(--tg-theme-button-color, #3390ec);
  --btn-text:   var(--tg-theme-button-text-color, #ffffff);
  --green:      #2fd96b;
  --blue:       #4d9dff;
  --amber:      #ffb02e;
  --violet:     #a78bfa;

  --c-white: #d9e2f0;
  --c-green: #2fd96b;
  --c-blue:  #4d9dff;
  --c-pill:  #ffb02e;
  --c-fuel:  #a78bfa;

  --radius:    16px;
  --radius-md: 13px;
  --radius-sm: 11px;
  --radius-xs: 9px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 26px;

  --fs-9:  9.5px;
  --fs-10: 10.5px;
  --fs-11: 11.5px;
  --fs-12: 12.5px;
  --fs-13: 13.5px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-22: 22px;
  --fs-30: 30px;

  --shadow-card:  0 10px 28px -14px #0009, inset 0 1px 0 #ffffff08;
  --shadow-float: 0 18px 44px -14px #000c, inset 0 1px 0 #ffffff12;

  --sb-w:   246px;
  --safe-t: 0px;
  --safe-b: 0px;
  --safe-l: 0px;
  --safe-r: 0px;
  --tg-vh:  100dvh;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Special Gothic Expanded One", "Russo One", "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.special-gothic-expanded-one-regular {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.russo-one-regular {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

button, input, select, textarea, label, a, div {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}
button, input, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
button:focus, button:focus-visible, input:focus, input:focus-visible, select:focus, select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
button {
  cursor: pointer;
  user-select: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #2b3142;
  border-radius: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  display: flex;
  height: var(--tg-vh, 100dvh);
  max-height: var(--tg-vh, 100dvh);
  overflow: hidden;
}

/* ───────────── Sidebar (Desktop) ───────────── */
.sidebar {
  width: var(--sb-w);
  flex: 0 0 var(--sb-w);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 88%, var(--bg)), var(--bg));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 13px 14px;
  z-index: 60;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 6px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--btn), color-mix(in srgb, var(--btn) 62%, #000));
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--btn) 55%, transparent), inset 0 1px 0 #ffffff30;
  color: #fff;
}
.brand-logo .ico {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}
.brand-logo.brand-photo {
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 70%, var(--card));
  box-shadow: 0 4px 14px -6px #0006;
}
.brand-logo.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text {
  min-width: 0;
  flex: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--tx);
}
.brand-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--tx-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: 0.16s;
  text-align: left;
  width: 100%;
  position: relative;
}
.nav-item .ico {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--mut);
  transition: 0.16s;
}
.nav-txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: #ffffff0d;
  color: var(--tx-2);
}
.nav-item:hover {
  background: #ffffff07;
  color: var(--tx);
}
.nav-item:hover .ico {
  color: var(--tx-2);
}
.nav-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--btn) 20%, transparent), color-mix(in srgb, var(--btn) 5%, transparent));
  color: var(--tx);
  font-weight: 650;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--btn) 28%, transparent);
}
.nav-item.active .ico {
  color: var(--acc);
  stroke-width: 2.2;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--acc);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-top: 10px;
  background: #ffffff06;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.user-meta {
  min-width: 0;
  flex: 1;
}
.user-name {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.user-role {
  font-size: 10.5px;
  color: var(--mut);
  margin-top: 2px;
}

.side-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 10px;
}
.live {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 11px;
  color: var(--mut);
}
.live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 6px;
  box-shadow: 0 0 0 0 #2fd96b66;
  animation: pulse 2s infinite;
}
.live.off .dot {
  background: var(--mut);
  animation: none;
  box-shadow: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 #2fd96b66; }
  70%  { box-shadow: 0 0 0 6px #2fd96b00; }
  100% { box-shadow: 0 0 0 0 #2fd96b00; }
}

/* ───────────── Main & Topbar ───────────── */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  padding-top: var(--sa-t, 0px);
  min-height: calc(var(--sa-t, 0px) + var(--tg-bar-h, 48px));
  padding-left: calc(20px + var(--safe-l));
  padding-right: calc(20px + var(--safe-r));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex: 0 0 auto;
  z-index: 30;
}

.topbar-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 1px;
}

.periods {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--card) 60%, var(--tx) 6%);
  isolation: isolate;
  flex: 0 0 auto;
}
.periods button {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--tx-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.periods.periods-sm {
  padding: 2px;
  gap: 2px;
}
.periods.periods-sm button {
  padding: 4px 10px;
  font-size: 11px;
}
.periods button:hover {
  color: var(--tx);
  background: color-mix(in srgb, var(--tx) 8%, transparent);
}
.periods button.active {
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 650;
  box-shadow: 0 1px 6px -1px color-mix(in srgb, var(--btn) 45%, transparent);
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-bottom: calc(22px + var(--safe-b));
  padding-left: calc(20px + var(--safe-l));
  padding-right: calc(20px + var(--safe-r));
}

#view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  animation: fadeUp 0.2s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────── Mobile Bottom Navigation Dock (with Finger Sliding) ───────────── */
.bottom-nav {
  display: none;
  position: fixed;
  left: calc(16px + var(--safe-l));
  right: calc(16px + var(--safe-r));
  bottom: calc(8px + var(--safe-b));
  max-width: 400px;
  margin: 0 auto;
  height: 50px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--line-2) 85%, #fff 15%);
  border-radius: 999px;
  box-shadow:
    0 12px 32px -8px #000d,
    0 3px 10px -2px #0008,
    inset 0 1px 0 #ffffff14;
  z-index: 50;
  padding: 4px;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.bnav-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 5);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn) 24%, transparent),
    color-mix(in srgb, var(--btn) 12%, transparent)
  );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--btn) 38%, transparent),
    0 6px 18px -6px color-mix(in srgb, var(--btn) 45%, transparent);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.bottom-nav.sliding .bnav-glider {
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}
.bnav-item {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--mut);
  padding: 2px 4px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.18s, transform 0.18s;
}
.bnav-ico {
  width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s;
}
.bnav-item .ico {
  width: 15.5px;
  height: 15.5px;
  stroke-width: 1.95;
  transition: stroke-width 0.18s;
}
.bnav-lbl {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: inherit;
  transition: color 0.18s, font-weight 0.18s;
  white-space: nowrap;
}
.bnav-item:active {
  transform: scale(0.95);
}
.bnav-item.active {
  color: var(--acc);
}
.bnav-item.active .bnav-ico {
  color: var(--acc);
  transform: translateY(-1px);
}
.bnav-item.active .ico {
  stroke-width: 2.3;
}
.bnav-item.active .bnav-lbl {
  font-weight: 750;
  color: var(--acc);
  text-shadow: 0 0 12px color-mix(in srgb, var(--btn) 45%, transparent);
}

/* ───────────── Cards & Common Elements ───────────── */
.card-x {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex: 0 0 auto;
}
.card-head.card-head-wrap {
  flex-wrap: wrap;
}
.card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--tx);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .ico {
  width: 15px;
  height: 15px;
  color: var(--acc);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--tx-2);
  background: #ffffff08;
  border: 1px solid var(--line);
  transition: 0.16s;
  flex: 0 0 32px;
}
.icon-btn:hover {
  background: #ffffff14;
  color: var(--tx);
  border-color: var(--line-2);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn .ico {
  width: 15px;
  height: 15px;
}

.accent-green  { color: var(--green); }
.accent-blue   { color: var(--blue); }
.accent-red    { color: var(--danger); }
.accent-acc    { color: var(--acc); }
.accent-amber  { color: var(--amber); }
.accent-violet { color: var(--violet); }
.accent-mut    { color: var(--mut); }

.delta {
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 99px;
}
.delta .ico {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}
.delta.up   { color: var(--green);  background: #2fd96b18; }
.delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.delta.flat { color: var(--mut);    background: #ffffff0a; }

/* ───────────── 1. ГЛАВНАЯ: Единый Hero-блок в карточке с размытым градиентом ───────────── */
.hero-overview {
  position: relative;
  isolation: isolate;
  background: var(--card);
  border-color: color-mix(in srgb, var(--btn) 22%, var(--line));
}
.hero-ambient-glow {
  position: absolute;
  top: -36px;
  left: -24px;
  right: -24px;
  height: 185px;
  background:
    radial-gradient(ellipse 75% 75% at 28% 28%,
      color-mix(in srgb, var(--btn) 28%, transparent),
      color-mix(in srgb, var(--green) 14%, transparent) 55%,
      transparent 82%);
  filter: blur(36px);
  -webkit-filter: blur(36px);
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-main-info {
  min-width: 0;
  flex: 1 1 200px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx-2);
}
.hero-val {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--acc);
  margin-top: 4px;
}
.hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-period-bar {
  margin-top: 14px;
  display: flex;
  width: 100%;
}
.periods.periods-hero {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  padding: 3px;
  gap: 3px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
  border: 1px solid var(--line-2);
}
.periods.periods-hero button {
  width: 100%;
  text-align: center;
  padding: 6px 4px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profit-split-bar {
  display: flex;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: #ffffff0c;
  gap: 3px;
  margin-top: 12px;
}
.ps-seg {
  height: 100%;
  border-radius: 99px;
  transition: width 0.55s ease;
  min-width: 6px;
}
.ps-seg.cost    { background: var(--mut); }
.ps-seg.courier { background: var(--blue); }
.ps-seg.net     { background: var(--green); }

.summary-strip.hero-summary-strip {
  margin-top: 14px;
  margin-bottom: 0;
  background: color-mix(in srgb, var(--bg) 42%, var(--card));
}

.summary-strip.hero-summary-strip.hero-summary-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}
.summary-strip.hero-summary-strip.hero-summary-6 .ss-item {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}
.summary-strip.hero-summary-sub {
  margin-top: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-cat-qty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.hcq-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 46%, var(--card));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.16s ease;
  min-width: 0;
}
.hcq-cell:hover {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--bg) 32%, var(--card));
}
.hcq-cell:active {
  transform: scale(0.97);
}
.hcq-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hcq-e {
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}
.hcq-nm {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mut);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcq-val {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.hcq-val small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mut);
}

.duty-schedule-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dss-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.dss-days {
  font-size: 11px;
  font-weight: 650;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dss-hours {
  font-size: 12.5px;
  font-weight: 740;
  color: var(--tx);
  font-family: var(--font-mono);
}

/* Способы оплаты и Активность */
.pay-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.psr-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.psr-side.right {
  text-align: right;
  align-items: flex-end;
}
.psr-lbl {
  font-size: 11px;
  color: var(--mut);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.psr-lbl i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.psr-val {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.dual-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: #ffffff0c;
  gap: 3px;
  margin-top: 12px;
}
.db-cash {
  background: var(--amber);
  border-radius: 99px;
  transition: width 0.55s ease;
}
.db-card {
  background: var(--violet);
  border-radius: 99px;
  transition: width 0.55s ease;
}

.summary-strip.activity-summary-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  background: var(--card);
}
.mini-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.ms-item {
  background: color-mix(in srgb, var(--card) 70%, var(--tx) 5%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.ms-item span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  font-weight: 650;
}
.ms-item b {
  font-size: 16.5px;
  font-weight: 740;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ───────────── Charts & Categories Overview ───────────── */
.chart-legend-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--mut);
  font-weight: 600;
}
.chart-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chart-legend-inline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  min-height: 200px;
  flex: 1 1 auto;
}
.chart-wrap.sm {
  height: 175px;
  min-height: 175px;
  flex: 0 0 175px;
}
.chart-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.donut-center .v {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.donut-center .l {
  font-size: 10px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.cat-overview-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.cat-bars-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cbc-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 70%, var(--tx) 4%);
  border: 1px solid var(--line);
  cursor: pointer;
}
.cbc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.cbc-name {
  font-weight: 620;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbc-name i {
  font-style: normal;
  font-size: 11px;
  color: var(--mut);
  font-weight: 500;
}
.cbc-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbc-val em {
  font-style: normal;
  font-size: 11px;
  color: var(--mut);
  min-width: 28px;
  text-align: right;
}
.bar-track {
  height: 5px;
  background: #ffffff09;
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

/* ───────────── 2. КАТЕГОРИИ и ИСТОРИЯ ОПЕРАЦИЙ ───────────── */
.cat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.cat-grid.cat-grid-only .cat-tile {
  padding: 18px 18px;
}
.cat-subpage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cat-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-detail-bare {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-bare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}
.cat-bare-title {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx);
  letter-spacing: 0.02em;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  font-size: 12.5px;
  font-weight: 640;
  transition: 0.16s;
  box-shadow: var(--shadow-card);
}
.btn-back .ico {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
  color: var(--acc);
}
.btn-back:hover {
  color: var(--tx);
  border-color: var(--btn);
  background: color-mix(in srgb, var(--btn) 12%, var(--card));
}
.btn-back:active {
  transform: scale(0.96);
}
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  text-align: left;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-tile .glow {
  position: absolute;
  top: -36px;
  right: -36px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.cat-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.cat-tile-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cat-emoji {
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.cat-tile-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--tx);
  text-transform: capitalize;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-deals-sub {
  font-size: 10.5px;
  color: var(--mut);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 1px;
}
.cat-share {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
  flex: 0 0 auto;
}
.cat-val {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.cat-tile-bar {
  height: 5px;
  border-radius: 99px;
  background: #ffffff0a;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.cat-tile-bar-fill {
  height: 100%;
  border-radius: 99px;
  min-width: 4px;
  transition: width 0.5s ease;
}
.cat-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  position: relative;
  z-index: 1;
}
.ctf-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ctf-col.right {
  text-align: right;
  align-items: flex-end;
}
.ctf-col span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  font-weight: 650;
}
.ctf-col b {
  font-size: 12.5px;
  font-weight: 720;
  color: var(--tx-2);
  white-space: nowrap;
}

.cat-badge-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  border: 1px solid transparent;
}
.metrics-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  box-shadow: var(--shadow-card);
}
.metric .l {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 650;
}
.metric .v {
  font-size: 17px;
  font-weight: 740;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.cat-period-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.summary-strip.cat-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 2px;
}
.cat-ops-toolbar {
  margin-bottom: 0;
}
.cat-pay-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.ops-title {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mut);
  margin-bottom: 10px;
}
.ops-title .ico {
  width: 13px;
  height: 13px;
}

/* Красивая лента истории с группировкой по датам */
.history-days-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.history-day-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px;
}
.hd-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-2);
}
.hd-meta {
  font-size: 11px;
  font-weight: 640;
  color: var(--mut);
}

.history-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
}
.history-feed::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.history-item {
  position: relative;
  display: flex;
  align-items: center;
}
.hi-dot {
  position: absolute;
  left: -16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--acc);
  z-index: 1;
}
.hi-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hi-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hi-main {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.hi-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 680;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.hi-qty {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tx);
}
.hi-pay {
  padding: 2px 8px;
  font-size: 10.5px;
}
.hi-sub {
  font-size: 11px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hi-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
.hi-sum {
  font-size: 14px;
  font-weight: 740;
  color: var(--tx);
}
.hi-cut {
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 600;
}

/* ───────────── 3. СКЛАД ───────────── */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 13px 6px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  overflow: hidden;
}
.ss-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
.ss-item:last-child {
  border-right: 0;
}
.ss-item span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mut);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-item b {
  font-size: 16px;
  font-weight: 740;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-2);
  background: color-mix(in srgb, var(--card) 65%, var(--tx) 5%);
  border: 1px solid var(--line);
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.filter-chip .ico {
  width: 13px;
  height: 13px;
}
.filter-chip:hover {
  color: var(--tx);
}
.filter-chip.active {
  background: color-mix(in srgb, var(--btn) 18%, var(--card));
  border-color: var(--btn);
  color: var(--tx);
}

.stock-bare-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stock-bare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
  flex-wrap: nowrap;
}
.stock-bare-head .card-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-bare-head .btn-add {
  flex: 0 0 auto;
  white-space: nowrap;
}
.stock-empty-bare {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 20px;
}
.stock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.stock-row.off {
  opacity: 0.5;
}
.stock-emoji-bare {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stock-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid transparent;
}
.stock-main {
  min-width: 0;
  flex: 1;
}
.stock-name {
  font-size: 13.5px;
  font-weight: 640;
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stock-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 52px;
  justify-content: center;
}
.stock-num b {
  font-size: 15.5px;
  font-weight: 720;
}
.stock-num span {
  font-size: 11px;
  color: var(--mut);
}
.stock-num.zero b {
  color: var(--danger);
}
.stock-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.stock-actions .icon-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--mut);
}
.stock-actions .icon-btn:hover {
  color: var(--tx);
  background: #ffffff12;
}
.stock-actions .icon-btn.danger:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.step-box {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.step {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card) 55%, var(--tx) 10%);
  color: var(--tx-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: 0.14s;
  border: 1px solid var(--line);
}
.step:hover {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--btn);
}
.step:active {
  transform: scale(0.92);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--btn) 35%, var(--line));
  background: color-mix(in srgb, var(--btn) 15%, transparent);
  color: var(--acc);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.15s;
}
.btn-add .ico {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}
.btn-add:hover {
  background: color-mix(in srgb, var(--btn) 24%, transparent);
}
.btn-add:active {
  transform: scale(0.97);
}

/* ───────────── 4. КУРЬЕРЫ (Вынесено из общих блоков) ───────────── */
.users-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.users-stack > div:empty {
  display: none;
}
.users-bare-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.users-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.users-pills-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-payout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 680;
  background: color-mix(in srgb, var(--card) 60%, var(--tx) 8%);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.btn-payout .ico {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}
.btn-payout.has-balance {
  background: color-mix(in srgb, var(--btn) 18%, var(--card));
  border-color: color-mix(in srgb, var(--btn) 45%, var(--line));
  color: var(--acc);
}
.btn-payout:active {
  transform: scale(0.96);
}
.payout-confirm-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--btn) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--btn) 38%, var(--line));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payout-confirm-box[hidden] {
  display: none !important;
}
.pcb-text {
  font-size: 13px;
  color: var(--tx);
  line-height: 1.45;
}
.pcb-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}
.payout-history-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duty-state {
  font-size: var(--fs-9);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}
.duty-state.on {
  color: var(--acc);
  border-color: color-mix(in srgb, var(--btn) 40%, var(--line));
  background: color-mix(in srgb, var(--btn) 14%, var(--card));
}

.duty-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.duty-hero-txt {
  flex: 1;
  min-width: 0;
}
.duty-hero-name {
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.duty-hero-sub {
  font-size: var(--fs-10);
  color: var(--mut);
  margin-top: 2px;
}
.duty-clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--tx) 7%, transparent);
  border: 1px solid var(--line);
  color: var(--mut);
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.duty-empty {
  padding: 13px 15px;
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--fs-11);
  color: var(--mut);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.duty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.duty-list:empty {
  display: none;
}
.duty-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--tx-2);
  font-size: var(--fs-11);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.duty-chip.on {
  color: var(--tx);
  border-color: color-mix(in srgb, var(--btn) 55%, var(--line));
  background: color-mix(in srgb, var(--btn) 16%, var(--card));
}
.duty-nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.duty-tick {
  color: var(--acc);
  font-weight: 800;
  font-size: 11px;
}

.mem-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.mem-row {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.mem-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mem-who {
  min-width: 0;
  flex: 1;
}
.mem-name {
  font-size: var(--fs-13);
  font-weight: 650;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-sub {
  font-size: var(--fs-10);
  color: var(--mut);
  margin-top: 1px;
}
.mem-earn {
  text-align: right;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mem-earn b {
  font-size: var(--fs-15);
  font-weight: 750;
  color: var(--acc);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mem-earn span {
  font-size: var(--fs-9);
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.badge-admin {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--btn-text);
  background: var(--btn);
  flex: 0 0 auto;
}

.mem-payout-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 52%, var(--card));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mpb-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}
.mpb-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mpb-col[hidden] {
  display: none !important;
}
.mpb-col span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  font-weight: 650;
}
.mpb-col b {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 6px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.pct {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 45%, var(--card));
}
.pct-e {
  font-size: 12px;
  line-height: 1;
  flex: 0 0 14px;
  text-align: center;
}
.pct input {
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--tx);
  font-size: var(--fs-12);
  font-weight: 700;
  text-align: right;
  padding: 0;
  -moz-appearance: textfield;
}
.pct input::placeholder {
  color: var(--mut);
  opacity: 0.55;
}
.pct input::-webkit-outer-spin-button,
.pct input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pct-p {
  font-size: 8px;
  color: var(--mut);
  line-height: 1;
  flex: 0 0 auto;
}

.mem-del {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 4px;
}

.mem-note {
  font-size: var(--fs-10);
  color: var(--mut);
  line-height: 1.5;
  padding: 2px 2px 0;
}
.mem-note b {
  color: var(--tx-2);
  font-weight: 600;
}

/* ───────────── 5. ОПЕРАЦИИ (Поиск, Фильтры, Лента вне общего блока) ───────────── */
.ops-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ops-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 0 6px 0 12px;
  height: 44px;
  box-shadow: var(--shadow-card);
}
.ops-search-ico {
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  margin-right: 9px;
  flex: 0 0 auto;
}
.ops-search-ico .ico {
  width: 16px;
  height: 16px;
}
.ops-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font-size: 13.5px;
  color: var(--tx);
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.ops-search-input::placeholder {
  color: var(--mut);
}
.ops-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.ops-search-clear {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--mut);
  background: #ffffff0c;
  margin-left: 4px;
  flex: 0 0 26px;
}
.ops-search-clear .ico {
  width: 13px;
  height: 13px;
}
.ops-period-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  margin-left: 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 55%, var(--tx) 8%);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  flex: 0 0 34px;
}
.ops-period-btn .ico {
  width: 15px;
  height: 15px;
}
.ops-period-btn.active {
  background: color-mix(in srgb, var(--btn) 18%, var(--card));
  border-color: var(--btn);
  color: var(--acc);
}
.ops-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  margin-left: 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 55%, var(--tx) 8%);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  flex: 0 0 34px;
}
.ops-filter-btn .ico {
  width: 15px;
  height: 15px;
}
.ops-filter-btn.open,
.ops-filter-btn.has-active {
  background: color-mix(in srgb, var(--btn) 18%, var(--card));
  border-color: var(--btn);
  color: var(--acc);
}
.ops-filter-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc);
}
.ops-filters-drawer {
  display: none;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.16s ease-out;
}
.ops-filters-drawer.open {
  display: block;
}
.ops-filters-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ops-filters-group .filter-scroll {
  margin-bottom: 0;
  padding-bottom: 2px;
}
.ops-summary-strip {
  margin-bottom: 12px;
}
.ops-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.op-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.op-item-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border: 1px solid transparent;
}
.op-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.op-item-row1 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.op-item-cat {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tx);
  text-transform: capitalize;
}
.op-item-qty {
  font-size: 12px;
  font-weight: 640;
  color: var(--tx-2);
  background: #ffffff0a;
  padding: 1px 7px;
  border-radius: 6px;
}
.op-item-row2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--mut);
  flex-wrap: wrap;
}
.op-item-user {
  color: var(--tx-2);
  font-weight: 500;
}
.op-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
.op-item-sum {
  font-size: 15px;
  font-weight: 760;
  color: var(--tx);
  letter-spacing: -0.02em;
}
.op-item-cut {
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 600;
}
.ops-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mut);
}
.ops-empty-box .t {
  font-size: 14px;
  font-weight: 640;
  color: var(--tx-2);
}
.ops-empty-box .d {
  font-size: 12.5px;
  max-width: 280px;
}

/* ───────────── Pills, Avatars, Modals ───────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 620;
  background: #ffffff0f;
  color: var(--tx-2);
  white-space: nowrap;
  border: 1px solid #ffffff14;
}
.pill .ico {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}
.pill.green  { background: #2fd96b16; color: var(--green);  border-color: #2fd96b28; }
.pill.blue   { background: #4d9dff16; color: var(--blue);   border-color: #4d9dff28; }
.pill.red    { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.pill.amber  { background: #ffb02e16; color: var(--amber);  border-color: #ffb02e28; }
.pill.violet { background: #a78bfa16; color: var(--violet); border-color: #a78bfa28; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--line) 80%, var(--card));
  border: 1px solid #ffffff0a;
  color: var(--tx-2);
  overflow: hidden;
}
.avatar.lg {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  font-size: 14px;
}
.avatar.xs {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  font-size: 9px;
}
.avatar.av-img {
  padding: 0;
  background: color-mix(in srgb, var(--line) 60%, var(--card));
}
.avatar.av-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #00000000;
  backdrop-filter: blur(0);
  transition: 0.2s;
  padding: 0;
}
.modal.show {
  background: #000000bf;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--line-2);
  border-radius: 18px 18px 0 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px);
  transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 -12px 36px -10px #000e;
}
.modal.show .modal-card {
  transform: translateY(0);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sheet-group {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 52%, var(--card));
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.sheet-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.sheet-row-top {
  border-bottom: 1px solid var(--line);
}
.sheet-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 78px;
}
.sheet-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sheet-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sheet-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 12px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.sheet-cell:last-child {
  border-right: 0;
}
.sheet-cell span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  line-height: 1.1;
  white-space: nowrap;
}
.sheet-cell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: var(--tx);
  color-scheme: dark;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  height: 22px;
  -webkit-appearance: none;
  appearance: none;
}
.sheet-cell input::placeholder {
  color: var(--mut);
  font-weight: 450;
  opacity: 0.55;
}
.sheet-cell-emoji {
  flex: 0 0 68px;
  max-width: 68px;
  align-items: center;
  text-align: center;
  padding: 9px 6px;
}
.sheet-cell-emoji input {
  text-align: center;
  font-size: 19px;
}
.sheet-cell-grow {
  flex: 1;
}
.sheet-cell-unit {
  align-items: center;
  text-align: center;
}
.sheet-cell-unit input {
  text-align: center;
}
@media (min-width: 576px) {
  .modal {
    align-items: center;
    padding: 20px;
  }
  .modal-card {
    border: 1px solid var(--line-2);
    border-radius: 18px;
    max-width: 420px;
    padding: 16px;
    box-shadow: var(--shadow-float);
  }
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  flex: 1;
  min-width: 0;
}
.fld span {
  font-size: 10.5px;
  color: var(--mut);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fld input, .fld select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
  color: var(--tx);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.fld input::placeholder {
  color: var(--mut);
  font-weight: 450;
  opacity: 0.7;
}
.fld-row {
  display: flex;
  gap: 8px;
}
.modal-foot {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.sheet-foot {
  margin-top: 12px;
}
.btn-flat {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 55%, var(--tx) 9%);
  border: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 13.5px;
  font-weight: 640;
  transition: 0.15s;
}
.btn-flat:hover {
  color: var(--tx);
}
.btn-primary {
  flex: 1.45;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13.5px;
  font-weight: 680;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--btn) 55%, transparent);
  transition: 0.15s;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary.danger-btn {
  background: var(--danger);
  color: #fff;
}
.btn-primary:active, .btn-flat:active {
  transform: scale(0.98);
}

.emoji-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.emoji-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  transition: 0.15s;
  background: color-mix(in srgb, var(--card) 65%, var(--tx) 5%);
}
.emoji-opt span {
  font-size: 19px;
  line-height: 1;
}
.emoji-opt i {
  font-size: 9.5px;
  font-style: normal;
  color: var(--mut);
  text-transform: capitalize;
}
.emoji-opt.on {
  border-color: var(--btn);
  background: color-mix(in srgb, var(--btn) 16%, var(--card));
  box-shadow: 0 0 0 1px var(--btn);
}
.emoji-opt.on i {
  color: var(--tx);
}

/* ───────────── Empty, Skeleton, Toast ───────────── */
.payout-none {
  font-size: 12px;
  color: var(--mut);
  padding: 4px 0;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 42px 20px;
  color: var(--mut);
  text-align: center;
  flex: 1;
}
.empty-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffffff07;
  border: 1px solid #ffffff08;
}
.empty-ico .ico {
  width: 22px;
  height: 22px;
  color: var(--mut);
}
.empty .t {
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-2);
}
.empty .d {
  font-size: 12.5px;
  max-width: 290px;
  line-height: 1.55;
}

.skeleton {
  background: linear-gradient(90deg, #171b24 25%, #1f242f 50%, #171b24 75%);
  background-size: 200% 100%;
  animation: sk 1.4s infinite;
  min-height: 86px;
  border-radius: var(--radius);
}
@keyframes sk {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(68px + var(--safe-b));
  transform: translate(-50%, 24px);
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--tx);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 250;
  box-shadow: 0 14px 40px -14px #000c;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-ico {
  display: inline-flex;
  color: var(--green);
}
.toast .ico {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* ───────────── Экран курьера (mine-view) ───────────── */
.mine-view {
  gap: 12px !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding-bottom: calc(28px + var(--safe-b)) !important;
  flex: 0 0 auto;
}
/* .card-x по умолчанию flex:1 → в колонке карточки сжимались/растягивались */
.mine-view > *,
.mine-view .card-x,
.mine-history-section > * {
  flex: 0 0 auto !important;
}
.mine-view .row {
  row-gap: 12px;
}
.mine-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 0;
}
.mine-sec-head .card-title .ico {
  width: 15px;
  height: 15px;
  color: var(--acc);
}
.mine-pct-grid .pct {
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
}
.mine-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mine-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mine-profile-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mine-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mine-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-profile-sub {
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-pct-grid {
  margin-top: 0;
  padding-top: 12px;
}
.mine-pct-val {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--tx);
  margin: 0 1px 0 3px;
}
.mine-history-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ───────────── Grid (bootstrap-совместимая) ───────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -7px;
  margin-left: -7px;
  align-items: stretch;
  width: auto;
  flex: 0 1 auto;
}
.row > .row {
  width: 100%;
}
.row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.row > [class*="col-"] > .card-x {
  width: 100%;
  height: 100%;
}
.row.g-3 {
  margin-top: -7px;
}
.row > * {
  padding-right: 7px;
  padding-left: 7px;
  padding-top: 14px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6  { flex: 0 0 50%;  max-width: 50%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1199.98px) {
  :root { --sb-w: 224px; }
}

@media (max-width: 991.98px), (pointer: coarse) {
  *,
  html,
  body,
  .content,
  .filter-scroll,
  .modal-card {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  *::-webkit-scrollbar,
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .content::-webkit-scrollbar,
  .filter-scroll::-webkit-scrollbar,
  .modal-card::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  .sidebar {
    display: none !important;
  }
  .bottom-nav {
    display: flex;
  }
  /* клавиатура открыта — меню не мешает вводу */
  html.kb-open .bottom-nav {
    display: none;
  }
  html.kb-open .content {
    padding-bottom: calc(14px + var(--safe-b));
  }
  .content {
    padding: 14px;
    padding-left: calc(14px + var(--safe-l));
    padding-right: calc(14px + var(--safe-r));
    padding-bottom: calc(74px + var(--safe-b));
  }
}

@media (max-width: 767.98px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mem-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    padding: 0 96px;
    padding-top: var(--sa-t, 0px);
    min-height: calc(var(--sa-t, 0px) + var(--tg-bar-h, 44px));
    height: calc(var(--sa-t, 0px) + var(--tg-bar-h, 44px));
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  }
  .page-title {
    font-size: 15.5px;
    text-align: center;
  }
  .page-sub {
    display: none;
  }
  .periods {
    padding: 2px;
    gap: 2px;
  }
  .periods button {
    padding: 4px 9px;
    font-size: 11px;
  }
  .periods.periods-sm button {
    padding: 3.5px 8.5px;
    font-size: 10.5px;
  }
  .content {
    padding: 11px;
    padding-left: calc(11px + var(--safe-l));
    padding-right: calc(11px + var(--safe-r));
    padding-bottom: calc(70px + var(--safe-b));
  }
  .card-x {
    padding: 14px;
    border-radius: 14px;
  }
  .hero-val {
    font-size: 30px;
  }
  .psr-val {
    font-size: 16px;
  }
  .ms-item b {
    font-size: 14.5px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .cat-val {
    font-size: 16.5px;
  }
  .summary-strip {
    padding: 10px 4px;
    border-radius: 14px;
  }
  .ss-item {
    padding: 0 8px;
  }
  .ss-item span {
    font-size: 9px;
    letter-spacing: 0.02em;
  }
  .ss-item b {
    font-size: 14px;
  }
  .stock-row {
    gap: 9px;
    padding: 10px 11px;
    flex-wrap: wrap;
  }
  .ops-desktop-tbl {
    display: none;
  }
  .ops-mobile-feed {
    display: flex;
  }
}

body.in-tg {
  overscroll-behavior: none;
  user-select: none;
}
