/* =========================================================
   KIT LEAGUE — премиальная тёмная тема (золото / серебро / бронза)
   ========================================================= */
:root {
  --bg: #08080a;
  --bg2: #0e0e11;
  --card: #141418;
  --card2: #1a1a1f;
  --card3: #222228;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #f6f3ec;
  --muted: #9b97a1;
  --dim: #66636d;
  --gold: #f5c451;
  --gold1: #ffe9a8;
  --gold2: #d6a02a;
  --gold3: #8f6510;
  --silver: #d8dee8;
  --silver2: #8b95a6;
  --bronze: #e5965e;
  --bronze2: #9a4f22;
  --green: #2bd46c;
  --green2: #15a34a;
  --red: #ff5c61;
  --amber: #ffb547;
  --blue: #5aa9ff;
  --g-gold: linear-gradient(135deg, #fff2c0 0%, #f5c451 32%, #d9a22b 68%, #9c6c10 100%);
  --g-silver: linear-gradient(135deg, #ffffff 0%, #d8dee8 40%, #9aa4b5 100%);
  --g-bronze: linear-gradient(135deg, #ffd0a8 0%, #e5965e 40%, #9a4f22 100%);
  --r: 18px;
  --r2: 13px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fd: 'Montserrat', 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font);
  min-height: 100vh; overflow-x: hidden;
}
body.app {
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(245, 196, 81, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fd); letter-spacing: -.01em; }
p { margin: 0; }
small { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.mid { color: var(--amber); }
.goldtxt { background: var(--g-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------------- Навигация ---------------- */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(12, 12, 15, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.nav-logo, .nav-user, .nav .desk { display: none; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--dim); font-size: 11px; font-weight: 600; position: relative; transition: color .2s;
}
.nav-item .ic { width: 23px; height: 23px; }
.nav-item.active { color: var(--gold); }
.nav-item.active::before {
  content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--g-gold);
  box-shadow: 0 0 14px rgba(245, 196, 81, .7);
}
.nav-badge { position: absolute; top: 8px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.main { padding: 0 0 calc(var(--nav-h) + var(--safe-b) + 18px); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

@media (min-width: 980px) {
  .nav {
    top: 0; right: auto; width: 252px; height: auto; flex-direction: column; padding: 22px 14px; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); background: rgba(12, 12, 15, .7);
  }
  .nav-logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
  .nav .desk { display: flex; }
  .nav-item { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--muted); }
  .nav-item:hover { background: var(--card); color: var(--text); }
  .nav-item.active { background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .03)); color: var(--gold); }
  .nav-item.active::before { left: 0; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 0 4px 4px 0; }
  .nav-badge { position: static; margin-left: auto; }
  .nav-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
  .nav-user div { flex: 1; min-width: 0; line-height: 1.2; }
  .nav-user b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-user small { font-size: 11px; }
  .nav-user a { color: var(--muted); }
  .nav-user a:hover { color: var(--red); }
  .main { padding: 0 0 40px 252px; }
  .wrap { max-width: 1180px; padding: 0 32px; }
}
.logo-crown { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--g-gold); color: #2b1d00; box-shadow: 0 6px 22px rgba(245, 196, 81, .35); }
.logo-crown .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.logo-txt { font: 900 17px/1.05 var(--fd); letter-spacing: .04em; }
.logo-txt small { display: block; font: 500 11px var(--font); letter-spacing: 0; margin-top: 3px; }

/* ---------------- Шапка страницы ---------------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px; position: sticky; top: 0; z-index: 30; background: linear-gradient(var(--bg) 70%, transparent); }
.tb-title { flex: 1; text-align: center; min-width: 0; }
.tb-title h1 { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title small { display: block; font-size: 12px; }
@media (min-width: 980px) {
  .topbar { padding-top: 26px; padding-bottom: 18px; }
  .tb-title { text-align: left; }
  .tb-title h1 { font-size: 26px; }
  .topbar .ibtn.ghost:first-child { display: none; }
}
.ibtn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); position: relative; flex: none; cursor: pointer; }
.ibtn:hover { border-color: var(--line2); }
.ibtn.ghost { background: transparent; border-color: transparent; pointer-events: none; }
.ibtn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

/* ---------------- Карточки ---------------- */
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; }
.card + .card, .stack > * + * { margin-top: 12px; }
.card-gold { border-color: rgba(245, 196, 81, .55); background: radial-gradient(120% 140% at 0% 0%, rgba(245, 196, 81, .16), rgba(245, 196, 81, .02) 55%), linear-gradient(180deg, #1c1912, #131210); box-shadow: 0 0 0 1px rgba(245, 196, 81, .08) inset, 0 10px 40px -12px rgba(245, 196, 81, .25); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; font-weight: 800; }
.card-h a { font-size: 13px; color: var(--gold); font-weight: 600; }
.lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.big { font: 900 30px/1.1 var(--fd); letter-spacing: -.02em; }
.huge { font: 900 44px/1 var(--fd); letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.cols { display: grid; gap: 14px; }
@media (min-width: 980px) {
  .cols { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .cols.c3 { grid-template-columns: repeat(3, 1fr); }
  .cols.wide-l { grid-template-columns: 1.4fr 1fr; }
  .card + .card { margin-top: 14px; }
}
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; } .mb { margin-bottom: 14px; }

/* Мини-плитки показателей */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 13px; min-width: 0; }
.tile .lbl { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.tile .lbl .ic { width: 15px; height: 15px; color: var(--dim); }
.tile b { display: block; font: 800 19px/1.25 var(--fd); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile em { font-style: normal; font-size: 12px; font-weight: 600; }

/* ---------------- Аватары ---------------- */
.ava {
  --h: 40; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font: 800 16px var(--fd); color: #fff; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 55% 52%), hsl(var(--h) 50% 24%) 75%);
  border: 2px solid rgba(255, 255, 255, .12); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.sm { width: 36px; height: 36px; font-size: 13px; }
.ava.md { width: 56px; height: 56px; font-size: 19px; }
.ava.lg { width: 78px; height: 78px; font-size: 26px; }
.ava.xl { width: 104px; height: 104px; font-size: 34px; }
.ava.gold { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 196, 81, .18), 0 6px 22px rgba(245, 196, 81, .3); }
.ava.silver { border-color: var(--silver); box-shadow: 0 0 0 3px rgba(216, 222, 232, .14); }
.ava.bronze { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(229, 150, 94, .16); }

.btile { --h: 30; width: 52px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, .9);
  background: linear-gradient(160deg, hsl(var(--h) 45% 38%), hsl(var(--h) 40% 16%)); border: 1px solid rgba(255, 255, 255, .1); }
.btile img { width: 100%; height: 100%; object-fit: cover; }
.btile .ic { width: 20px; height: 20px; }

/* Медали и номера мест */
.medal { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 13px var(--fd); color: #2a1c00; flex: none; position: relative; }
.medal.gold { background: var(--g-gold); box-shadow: 0 0 16px rgba(245, 196, 81, .55); }
.medal.silver { background: var(--g-silver); color: #222; box-shadow: 0 0 12px rgba(216, 222, 232, .35); }
.medal.bronze { background: var(--g-bronze); color: #2a1200; box-shadow: 0 0 12px rgba(229, 150, 94, .35); }
.rnum { width: 30px; text-align: center; font: 800 15px var(--fd); color: var(--muted); flex: none; }

.chg { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.chg.up { color: var(--green); background: rgba(43, 212, 108, .12); }
.chg.down { color: var(--red); background: rgba(255, 92, 97, .12); }
.chg.same { color: var(--dim); background: rgba(255, 255, 255, .05); }
.chg.new { color: var(--blue); background: rgba(90, 169, 255, .12); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--card3); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.gold { color: var(--gold); border-color: rgba(245, 196, 81, .35); background: rgba(245, 196, 81, .08); }
.chip.green { color: var(--green); border-color: rgba(43, 212, 108, .3); background: rgba(43, 212, 108, .08); }
.chip.red { color: var(--red); border-color: rgba(255, 92, 97, .3); background: rgba(255, 92, 97, .08); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 212, 108, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(43, 212, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 108, 0); } }

/* ---------------- Сегменты (табы) ---------------- */
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 4px; }
.seg a, .seg button { flex: 1; text-align: center; padding: 9px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: .2s; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .on { background: var(--g-gold); color: #241800; box-shadow: 0 4px 16px rgba(245, 196, 81, .3); }
.seg.alt .on { background: rgba(245, 196, 81, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .5); }
.seg.sm a, .seg.sm button { padding: 7px 6px; font-size: 12px; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .filters.inline { grid-template-columns: 1fr 1fr auto; align-items: center; } }

/* ---------------- Прогресс ---------------- */
.bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green2), var(--green)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar.gold i { background: var(--g-gold); }
.bar.amber i { background: linear-gradient(90deg, #d68a1c, var(--amber)); }
.bar.red i { background: linear-gradient(90deg, #b8323a, var(--red)); }
.bar.thick { height: 12px; }
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring .ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(43, 212, 108, .45)); }
.ring b { font: 900 20px var(--fd); position: relative; }

/* ---------------- Кнопки, формы ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .25); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-gold { background: var(--g-gold); color: #241800; border: 0; box-shadow: 0 8px 26px -6px rgba(245, 196, 81, .55); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-green { background: linear-gradient(135deg, #34e07a, #15a34a); color: #04210f; border: 0; }
.btn-red { background: rgba(255, 92, 97, .12); color: var(--red); border-color: rgba(255, 92, 97, .35); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.inp, select.inp, textarea.inp { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); outline: none; transition: border .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.inp:focus { border-color: rgba(245, 196, 81, .6); box-shadow: 0 0 0 3px rgba(245, 196, 81, .12); }
.inp.sm { height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13px; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239b97a1' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.inp option { background: #16161a; }
.inp-ic { position: relative; }
.inp-ic .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--dim); }
.inp-ic .inp { padding-left: 44px; height: 52px; }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { display: none; }
.switch i { width: 44px; height: 26px; border-radius: 13px; background: var(--card3); border: 1px solid var(--line2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: rgba(43, 212, 108, .25); border-color: var(--green); }
.switch input:checked + i::after { left: 21px; background: var(--green); }

.flash { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; background: rgba(43, 212, 108, .1); border: 1px solid rgba(43, 212, 108, .35); color: var(--green); }
.flash.err { background: rgba(255, 92, 97, .1); border-color: rgba(255, 92, 97, .35); color: var(--red); }

/* ---------------- Вход ---------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 26px 18px; position: relative; overflow: hidden;
  background: radial-gradient(700px 400px at 50% 0%, rgba(245, 196, 81, .18), transparent 70%), radial-gradient(600px 400px at 100% 100%, rgba(245, 196, 81, .08), transparent 70%), var(--bg); }
.login-box { width: 100%; max-width: 410px; position: relative; z-index: 2; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .crown-big { width: 74px; height: 74px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 22px; background: var(--g-gold); color: #241800; box-shadow: 0 18px 50px -10px rgba(245, 196, 81, .6); }
.login-logo .crown-big .ic { width: 40px; height: 40px; }
.login-logo h1 { font: 900 34px/1 var(--fd); letter-spacing: .03em; }
.login-logo p { color: var(--muted); margin-top: 8px; font-weight: 500; }
.login-logo .company { font: 800 13px var(--fd); letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.demo-acc { margin-top: 22px; padding: 14px; border-radius: 16px; border: 1px dashed rgba(245, 196, 81, .35); background: rgba(245, 196, 81, .04); }
.demo-acc h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.demo-acc button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; margin-top: 8px; }
.demo-acc button:hover { border-color: rgba(245, 196, 81, .5); }
.demo-acc button b { font-size: 14px; flex: 1; }
.demo-acc button small { font-size: 12px; }
.login-motto { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--dim); font: 700 12px var(--fd); letter-spacing: .25em; text-transform: uppercase; }

/* ---------------- Главная продавца ---------------- */
.hello { display: flex; align-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top, 0px)) 0 16px; }
.hello-txt { flex: 1; min-width: 0; }
.hello-txt h1 { font-size: 21px; font-weight: 800; }
.hello-txt p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hello-txt p b { color: var(--text); font-weight: 600; }
@media (min-width: 980px) { .hello { padding-top: 28px; } .hello-txt h1 { font-size: 28px; } }
.rank-card { display: flex; align-items: center; gap: 14px; }
.rank-card .trophy { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px; color: #2a1c00; background: var(--g-gold); box-shadow: 0 10px 30px -6px rgba(245, 196, 81, .55); }
.rank-card .trophy .ic { width: 36px; height: 36px; }
.rank-card .rk { font: 900 40px/1 var(--fd); }
.rank-card .move { margin-left: auto; text-align: right; font-weight: 700; font-size: 14px; }
.rank-card .move small { display: block; font-weight: 500; font-size: 12px; }
.next-place { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(245, 196, 81, .2); font-size: 14px; }
.next-place .ic { color: var(--gold); width: 20px; height: 20px; }
.next-place b { color: var(--gold); }
.cash-card { display: flex; gap: 14px; align-items: center; }
.cash-card .left { flex: 1; min-width: 0; }
.reward { display: flex; align-items: center; gap: 14px; }
.reward .gift { width: 58px; height: 58px; flex: none; border-radius: 16px; display: grid; place-items: center; color: var(--gold); background: rgba(245, 196, 81, .1); border: 1px solid rgba(245, 196, 81, .35); }
.reward .gift .ic { width: 30px; height: 30px; }
.reward h3 { font-size: 19px; font-weight: 900; margin: 2px 0; }
.reward p { font-size: 13px; color: var(--muted); }
.shift-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }

/* ---------------- Списки рейтинга ---------------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 15px; background: var(--card);
  border: 1px solid var(--line); transition: transform .35s, background .3s, border-color .3s; position: relative; cursor: pointer;
}
.row:hover { border-color: var(--line2); }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who small { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 2px; flex-wrap: wrap; }
.row .val { text-align: right; flex: none; }
.row .val b { display: block; font: 800 17px var(--fd); }
.row .val small { font-size: 12px; white-space: nowrap; }
.row.me { border-color: rgba(245, 196, 81, .7); background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .03)); box-shadow: 0 0 24px -8px rgba(245, 196, 81, .45); }
.row.gold { border-color: rgba(245, 196, 81, .35); }
.row.silver { border-color: rgba(216, 222, 232, .25); }
.row.bronze { border-color: rgba(229, 150, 94, .3); }
.row.flash-up { animation: flashUp 1.6s; }
.row.flash-down { animation: flashDown 1.6s; }
@keyframes flashUp { 0%, 40% { background: rgba(43, 212, 108, .22); } }
@keyframes flashDown { 0%, 40% { background: rgba(255, 92, 97, .18); } }
.row .gap { font-size: 11px; color: var(--dim); }
.row .mini-bar { width: 64px; margin-top: 6px; margin-left: auto; }
.row .mini-bar .bar { height: 5px; }
.off-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }

/* Подиум */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin: 6px 0 16px; }
.pod { text-align: center; border-radius: 18px 18px 14px 14px; padding: 16px 8px 14px; position: relative; border: 1px solid var(--line); background: var(--card); cursor: pointer; min-width: 0; }
.pod .ava { margin: 0 auto 10px; }
.pod b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .v { font: 900 18px var(--fd); margin-top: 8px; }
.pod .v2 { font-size: 12px; color: var(--muted); }
.pod .medal { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.pod.p1 { padding-top: 26px; padding-bottom: 22px; border-color: rgba(245, 196, 81, .6); background: radial-gradient(120% 80% at 50% 0%, rgba(245, 196, 81, .22), transparent 70%), linear-gradient(180deg, #1d1a11, #121110); box-shadow: 0 16px 40px -14px rgba(245, 196, 81, .45); }
.pod.p1 .v { color: var(--gold); font-size: 22px; }
.pod.p2 { border-color: rgba(216, 222, 232, .35); background: radial-gradient(120% 80% at 50% 0%, rgba(216, 222, 232, .12), transparent 70%), var(--card); }
.pod.p3 { border-color: rgba(229, 150, 94, .4); background: radial-gradient(120% 80% at 50% 0%, rgba(229, 150, 94, .14), transparent 70%), var(--card); }
.pod.me { outline: 2px solid var(--gold); outline-offset: 2px; }
.pod .crown { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); color: var(--gold); filter: drop-shadow(0 0 10px rgba(245, 196, 81, .7)); }
.pod .crown .ic { width: 26px; height: 26px; fill: rgba(245, 196, 81, .25); }

/* Липкая «моя позиция» */
.mebar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); transition: transform .3s, opacity .3s; }
.mebar.hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
.mebar .row { background: linear-gradient(90deg, #2a2312, #17150f); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
@media (min-width: 980px) { .mebar { left: calc(252px + 32px); right: 32px; bottom: 18px; max-width: 1116px; } }

.mysum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mysum div { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; }
.mysum small { font-size: 11px; display: block; }
.mysum b { font: 800 16px var(--fd); }

/* ---------------- Профиль продавца ---------------- */
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-head h2 { font-size: 22px; font-weight: 900; }
.prof-head .rank-badge { margin-left: auto; text-align: center; }
.rank-badge { width: 64px; height: 72px; display: grid; place-items: center; position: relative; flex: none; }
.rank-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rank-badge b { position: relative; font: 900 22px/1 var(--fd); margin-top: -6px; }
.rank-badge small { position: absolute; bottom: 14px; font-size: 9px; font-weight: 700; letter-spacing: .05em; color: inherit; opacity: .8; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kv > div { min-width: 0; }
.kv small { font-size: 12px; display: block; }
.kv b { font: 800 18px var(--fd); white-space: nowrap; }
.kv b.big2 { font-size: 22px; }

/* ---------------- Графики ---------------- */
.chart { position: relative; width: 100%; height: 190px; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart .tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: #fff; color: #111; padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; z-index: 3; text-align: center; line-height: 1.3; }
.chart .tip small { color: #666; font-weight: 600; display: block; font-size: 11px; }
.chart .tip.on { opacity: 1; }
.chart text { fill: var(--dim); font-size: 10px; font-family: var(--font); }
.chart .bar-v { transition: opacity .15s; cursor: pointer; }
.chart .grid-l { stroke: rgba(255, 255, 255, .06); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Горизонтальные бары */
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.hbar .bar { height: 12px; }
.hbar b { font-weight: 700; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- Награды ---------------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 760px) { .badges { grid-template-columns: repeat(5, 1fr); } }
.bdg { text-align: center; padding: 14px 6px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: .2s; }
.bdg:hover { border-color: var(--line2); transform: translateY(-2px); }
.bdg .badge { width: 74px; height: 82px; margin: 0 auto 8px; display: block; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.bdg b { display: block; font-size: 13px; line-height: 1.2; min-height: 32px; }
.bdg small { font-size: 12px; }
.bdg.locked b { color: var(--dim); }
.bdg .cnt { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--gold); }
.badge.locked { opacity: .55; }
.recs .rec { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.recs .rec + .rec { margin-top: 8px; }
.rec .ricon { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(245, 196, 81, .1); color: var(--gold); border: 1px solid rgba(245, 196, 81, .3); }
.rec .rtxt { flex: 1; min-width: 0; }
.rec .rtxt small { display: block; font-size: 12px; }
.rec .rval { font: 900 19px var(--fd); text-align: right; }
.rec .rval small { display: block; font: 500 11px var(--font); color: var(--muted); }

/* ---------------- Уведомления ---------------- */
.notif { display: flex; gap: 13px; padding: 13px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); align-items: center; }
.notif + .notif { margin-top: 8px; }
.notif.unread { border-color: rgba(245, 196, 81, .35); background: linear-gradient(90deg, rgba(245, 196, 81, .07), var(--card)); }
.notif .ni { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.notif .ni .ic { width: 22px; height: 22px; }
.ni.gold { background: rgba(245, 196, 81, .13); color: var(--gold); }
.ni.red { background: rgba(255, 92, 97, .13); color: var(--red); }
.ni.green { background: rgba(43, 212, 108, .13); color: var(--green); }
.ni.silver { background: rgba(216, 222, 232, .1); color: var(--silver); }
.ni.orange { background: rgba(255, 159, 67, .13); color: #ff9f43; }
.ni.blue { background: rgba(90, 169, 255, .13); color: var(--blue); }
.notif .nt { flex: 1; min-width: 0; }
.notif .nt b { display: block; font-size: 14px; }
.notif .nt small { font-size: 12px; }
.notif time { font-size: 11px; color: var(--dim); align-self: flex-start; white-space: nowrap; }

/* ---------------- Чемпионат ---------------- */
.champ-hero { text-align: center; overflow: hidden; padding: 22px 16px 18px; }
.champ-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 300px; background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(245, 196, 81, .18), transparent 30%); animation: spin 14s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.champ-hero h2 { font: 900 13px var(--fd); letter-spacing: .3em; color: var(--gold); text-transform: uppercase; position: relative; }
.champ-hero .week { font-size: 13px; color: var(--muted); margin-top: 4px; position: relative; }
.winners { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; margin-top: 30px; position: relative; }
.winner { border-radius: 16px; padding: 14px 6px 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); position: relative; min-width: 0; }
.winner .title { font: 900 9px var(--fd); letter-spacing: .14em; margin-bottom: 8px; }
.winner.w1 .title { color: var(--gold); } .winner.w2 .title { color: var(--silver); } .winner.w3 .title { color: var(--bronze); }
.winner .ava { margin: 0 auto 8px; }
.winner b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner small { display: block; font-size: 11px; }
.winner .st { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.winner .st b { display: inline; font-size: 12px; color: var(--text); }
.winner.w1 { border-color: rgba(245, 196, 81, .6); padding-top: 22px; padding-bottom: 18px; background: radial-gradient(100% 70% at 50% 0%, rgba(245, 196, 81, .2), rgba(0, 0, 0, .35)); }
.winner.w2 { border-color: rgba(216, 222, 232, .3); }
.winner.w3 { border-color: rgba(229, 150, 94, .35); }
.winner .belt { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--g-gold); color: #241800; box-shadow: 0 0 20px rgba(245, 196, 81, .6); }
.winner .belt .ic { width: 20px; height: 20px; }
.arch { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.arch + .arch { margin-top: 8px; }
.arch .wk { width: 58px; flex: none; text-align: center; font: 800 12px/1.2 var(--fd); color: var(--muted); }
.arch .wk b { display: block; font-size: 17px; color: var(--text); }
.arch .trio { flex: 1; display: flex; gap: 10px; min-width: 0; flex-wrap: wrap; }
.arch .trio span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.arch .trio .medal { width: 20px; height: 20px; font-size: 10px; }
.status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status.pub { color: var(--green); background: rgba(43, 212, 108, .12); }
.status.closed { color: var(--amber); background: rgba(255, 181, 71, .12); }
.status.live { color: var(--blue); background: rgba(90, 169, 255, .12); }

/* ---------------- Модалка / тосты ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fadeIn .2s; }
.modal-box { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; background: #151519; border: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); animation: up .3s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 22px; } }
.modal-x { float: right; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toasts { position: fixed; z-index: 200; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(28, 27, 22, .96); border: 1px solid rgba(245, 196, 81, .4); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); font-size: 14px; font-weight: 600; animation: toastIn .35s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.toast .ic { color: var(--gold); width: 20px; height: 20px; }
.toast.ok { border-color: rgba(43, 212, 108, .45); } .toast.ok .ic { color: var(--green); }
.toast.err { border-color: rgba(255, 92, 97, .45); } .toast.err .ic { color: var(--red); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

.empty { text-align: center; padding: 40px 10px; color: var(--dim); }
.empty .ic { width: 40px; height: 40px; margin-bottom: 8px; }
.sect-t { font: 800 13px var(--fd); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 22px 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sect-t a { letter-spacing: 0; text-transform: none; color: var(--gold); font: 600 13px var(--font); }

/* Ссылки-плитки */
.links { display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.links a:hover { border-color: var(--line2); }
.links a .ic:first-child { color: var(--gold); }
.links a .ic:last-child { margin-left: auto; color: var(--dim); width: 18px; }
.links a small { margin-left: auto; }

/* ---------------- Таблицы (админка / РОП) ---------------- */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card2); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .person { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.tbl .person b { display: block; font-size: 13px; }
.tbl .person small { font-size: 11px; }
.tbl tr.me td { background: rgba(245, 196, 81, .07); }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .inp.sm { min-width: 84px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag.good { color: var(--green); background: rgba(43, 212, 108, .12); }
.tag.bad { color: var(--red); background: rgba(255, 92, 97, .12); }
.tag.norm { color: var(--muted); background: rgba(255, 255, 255, .05); }
.tag.role-admin { color: var(--gold); background: rgba(245, 196, 81, .12); }
.tag.role-rop { color: var(--blue); background: rgba(90, 169, 255, .12); }
.tag.role-seller { color: var(--muted); background: rgba(255, 255, 255, .06); }

/* ================= Админ-панель ================= */
body.adm { background: var(--bg); }
.adm-side {
  position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: 256px; padding: 20px 14px; overflow-y: auto;
  background: #0c0c0f; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px;
  transform: translateX(-100%); transition: transform .25s;
}
.adm-side.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
.adm-side .nav-logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.adm-side a.it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 14px; }
.adm-side a.it:hover { background: var(--card); color: var(--text); }
.adm-side a.it.active { background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .02)); color: var(--gold); }
.adm-side a.it .ic { width: 19px; height: 19px; }
.adm-side .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.adm-side .num-i { margin-left: auto; font-size: 11px; color: var(--dim); }
.adm-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); display: none; }
.adm-bg.open { display: block; }
.adm-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(8, 8, 10, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 18px; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-main { padding: 18px 16px 60px; max-width: 1720px; }
@media (min-width: 1100px) {
  .adm-side { transform: none; }
  .adm-bg { display: none !important; }
  .adm-top, .adm-main { margin-left: 256px; }
  .adm-top { padding: 16px 28px; }
  .adm-top .burger { display: none; }
  .adm-main { padding: 24px 28px 60px; }
  .adm-top h1 { font-size: 22px; }
}
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.kpi small { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi small .ic { width: 15px; height: 15px; }
.kpi b { display: block; font: 900 22px/1.25 var(--fd); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 700; }
.kpi.gold { border-color: rgba(245, 196, 81, .45); background: radial-gradient(120% 120% at 0 0, rgba(245, 196, 81, .14), transparent 60%), var(--card); }
.adm-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 1000px) { .adm-grid { grid-template-columns: 1fr 1fr; } .adm-grid.w3 { grid-template-columns: 2fr 1fr; } }
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.adm-toolbar .grow { flex: 1; }
.adm-toolbar .inp { width: auto; min-width: 150px; height: 40px; }
.entry-card { display: none; }
@media (max-width: 760px) {
  .tbl.cardify thead { display: none; }
  .tbl.cardify, .tbl.cardify tbody, .tbl.cardify tr, .tbl.cardify td { display: block; width: 100%; }
  .tbl.cardify tr { border-bottom: 1px solid var(--line2); padding: 10px 4px; }
  .tbl.cardify td { border: 0; padding: 5px 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; }
  .tbl.cardify td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .tbl.cardify td.person-td::before { display: none; }
  .tbl.cardify td .inp.sm { max-width: 150px; }
  .tbl.cardify .person { min-width: 0; }
}
.calc-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 14px; }
@media (min-width: 640px) { .calc-out { grid-template-columns: repeat(4, 1fr); } }
.calc-out div { background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.calc-out small { font-size: 11px; display: block; }
.calc-out b { font: 800 16px var(--fd); }
.saved-anim { animation: savedA 1.2s; }
@keyframes savedA { 0% { background: rgba(43, 212, 108, .25); } }
.qadd { display: flex; gap: 6px; align-items: center; }
.qadd .inp.sm { width: 90px; min-width: 0; }
details.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
details.box summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.box summary::-webkit-details-marker { display: none; }
details.box[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details.box summary .ic { color: var(--gold); }
.help { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feed { max-height: 360px; overflow: auto; }
.feed div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; gap: 10px; }
.feed div time { color: var(--dim); font-size: 12px; flex: none; }

/* Печать отчётов */
@media print {
  .adm-side, .adm-top, .adm-toolbar, .nav, .btn { display: none !important; }
  .adm-main { margin: 0 !important; }
  body { background: #fff; color: #000; }
  .tbl-wrap, .tbl th { background: #fff; }
}
.login { padding-bottom: 70px; }
.login-page .login-motto { position: absolute; }
@media (max-height: 760px) { .login-motto { position: static !important; margin-top: 20px; } .login { display: flex; flex-direction: column; justify-content: center; } }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg2) inset; transition: background-color 9999s;
}
@media (max-width: 560px) {
  .kpi b { font-size: 18px; white-space: normal; }
  .kpi { padding: 12px; }
  .form-grid.c3 { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 17px; }
  .adm-toolbar .inp { min-width: 0; flex: 1 1 140px; }
  .topbar select.inp { max-width: 130px; }
}
