/* Приложение для дропшипперов. Палитра «деним», как у основного сайта; главный элемент — бирка размера с пунктирной строчкой. */
:root {
  --bg: #eef1f6; --surface: #fff; --surface-2: #f5f7fb; --ink: #162036; --ink-2: #44516d; --muted: #6b7792; --line: #dde3ee;
  --denim: #2f4b8c; --denim-soft: #e3e9f6; --copper: #b8742a; --copper-soft: #f7ecdf;
  --danger: #c23a2b; --danger-soft: #fbe9e6; --danger-line: #f0b7ae;
  --ok: #2f7d45; --ok-soft: #e3f3e7; --ok-line: #9fd2ad; --warn: #9a6d06; --warn-dot: #e0a91a; --warn-soft: #fbf1d4; --warn-line: #ecd283;
  --shadow: 0 1px 2px rgba(22, 32, 54, .06), 0 4px 14px rgba(22, 32, 54, .05);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1422; --surface: #172036; --surface-2: #1d2742; --ink: #e8edf8; --ink-2: #c1cadf; --muted: #8f9bb8; --line: #2a3553;
  --denim: #8ea7ee; --denim-soft: #23305a; --copper: #e2a55c; --copper-soft: #3a2c1c;
  --danger: #f07a68; --danger-soft: #3c1f1d; --danger-line: #6a2c26;
  --ok: #6cc286; --ok-soft: #173424; --ok-line: #2c6a40; --warn: #f0c457; --warn-dot: #e0a91a; --warn-soft: #3a3016; --warn-line: #6d5a1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 14px 8px; display: flex; align-items: center; gap: 10px; }
.top h1 { font-size: 18px; font-weight: 800; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { font-weight: 800; color: var(--denim); font-size: 15px; }
.mgr { font-size: 12.5px; font-weight: 800; color: var(--denim); background: var(--denim-soft); padding: 7px 11px; border-radius: 99px; white-space: nowrap; }
.wrap { padding: 0 12px 12px; max-width: 720px; margin: 0 auto; }

.card { background: var(--surface); border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.muted { color: var(--muted); font-size: 12.5px; }
.sec { font-weight: 800; font-size: 13.5px; margin: 0 0 7px; }
.sec + .sec, * + .sec { margin-top: 14px; }
.btn { display: block; width: 100%; text-align: center; background: var(--denim); color: #fff; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 14.5px; margin-top: 10px; }
.btn.ghost { background: var(--denim-soft); color: var(--denim); }
.btn.red { background: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: .5; }
.btn.sm { display: inline-block; width: auto; padding: 7px 11px; font-size: 12.5px; border-radius: 9px; margin: 0; }
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--surface); font-size: 15px; outline: none; }
.inp:focus { border-color: var(--denim); }
textarea.inp { min-height: 64px; resize: vertical; }
.lbl { display: block; font-weight: 800; font-size: 13px; margin: 12px 0 5px; }
.err { color: var(--danger); font-weight: 700; font-size: 13px; margin-top: 8px; }

.chips { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--denim); color: #fff; border-color: var(--denim); }
.search { margin-bottom: 8px; }

.groupbtn { display: flex; align-items: center; gap: 10px; background: var(--copper-soft); color: var(--copper); border-radius: 14px; padding: 11px 13px; font-weight: 800; font-size: 13.5px; margin-bottom: 10px; width: 100%; text-align: left; }

/* бирки размеров */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { min-width: 40px; text-align: center; padding: 6px 7px 5px; border-radius: 7px; font-weight: 800; font-size: 12.5px; position: relative; border: 1.5px solid; }
.tag::after { content: none; }
.tag.g { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.tag.y { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.tag.r { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tag.big { min-width: 54px; font-size: 15px; padding: 9px 7px 7px; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; margin: 4px 0 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dot.g { background: var(--ok); } .dot.y { background: var(--warn-dot); } .dot.r { background: var(--danger); }

/* каталог */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.tile { background: var(--surface); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; }
.tile.off { opacity: .55; }
.pic { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.nopic { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.tile .nm { font-weight: 800; font-size: 13px; line-height: 1.25; margin-top: 7px; }
.tile .pr { font-size: 12.5px; margin-top: 3px; }
.tile .pr b { color: var(--denim); font-size: 14px; }
.tile .tags { gap: 3px; margin-top: 6px; }
.tile .tag { min-width: 0; font-size: 10.5px; padding: 3px 5px 2px; border-width: 1px; }
.tile .tag::after { display: none; }
.hidden-mark { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--danger); background: var(--danger-soft); border-radius: 99px; padding: 2px 7px; margin-top: 5px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; }

/* карточка модели */
.hero { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img { width: 56px; height: 74px; object-fit: cover; border-radius: 8px; flex: none; opacity: .65; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--denim); }
.title { font-weight: 800; font-size: 17px; line-height: 1.25; }
.art { color: var(--muted); font-size: 13px; margin-top: 2px; }
.art b { color: var(--ink-2); }
.pricebox { display: flex; gap: 8px; margin-top: 12px; }
.pricebox > div { flex: 1; background: var(--surface-2); border-radius: 11px; padding: 9px 10px; }
.pricebox small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pricebox b { font-size: 18px; }
.pricebox .you b { color: var(--denim); }
.doc { width: 100%; border-radius: 11px; background: var(--surface-2); margin-top: 6px; }
.text { font-size: 14px; color: var(--ink-2); line-height: 1.5; white-space: pre-line; }

/* наличие */
table.av { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.av th { font-size: 11px; color: var(--muted); font-weight: 800; text-align: center; padding: 4px 2px; }
table.av th:first-child, table.av td:first-child { text-align: left; }
table.av td { padding: 8px 2px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.av td.m { font-weight: 700; font-size: 12.5px; line-height: 1.25; }
table.av td.m small { display: block; color: var(--muted); font-weight: 600; font-size: 10.5px; }
table.av tr.click { cursor: pointer; }
.c { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; }
.c.g { background: var(--ok); } .c.y { background: var(--warn-dot); } .c.r { background: var(--danger); opacity: .45; }
.c.n { border: 1px dashed var(--line); }

/* прайс и списки */
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .l { font-weight: 700; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.row .l small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.row .r { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.row .r b { display: block; color: var(--denim); font-size: 15px; }
.thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }

/* управление */
.av-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--copper-soft); color: var(--copper); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.banned .av-ic { background: var(--danger-soft); color: var(--danger); }
.banned .l b { text-decoration: line-through; color: var(--muted); }
.pill { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--danger-soft); color: var(--danger); margin-left: 4px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.sw { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw.on { background: var(--ok); }
.sw.on::after { left: 21px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.ph { position: relative; }
.ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 9px; background: var(--surface-2); }
.ph .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.ph .lft { position: absolute; bottom: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.add { aspect-ratio: 3 / 4; border: 1.5px dashed var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); position: relative; overflow: hidden; }
.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick { max-height: 300px; overflow: auto; margin-top: 6px; }
.pick button { display: block; width: 100%; text-align: left; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pick button small { color: var(--muted); }
.chosen { background: var(--denim-soft); border-radius: 11px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.two { display: flex; gap: 8px; }
.two > div { flex: 1; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-weight: 800; font-size: 14px; }

/* нижние вкладки */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.tabs button span { display: block; font-size: 19px; margin-bottom: 1px; }
.tabs button.on { color: var(--denim); }

/* просмотр фото */
.viewer { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vx { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; color: #fff; font-size: 26px; font-weight: 800; }
.viewer .vbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.viewer .vbar button { color: #fff; background: rgba(255,255,255,.18); border-radius: 99px; padding: 9px 14px; font-weight: 800; font-size: 13.5px; }
.viewer .vp, .viewer .vq { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 34px; padding: 20px 12px; }
.viewer .vp { left: 0; } .viewer .vq { right: 0; }

.center { text-align: center; padding: 70px 22px 0; }
.center .ic { font-size: 46px; }
.center h2 { font-size: 20px; margin: 10px 0 6px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* этап 1.5: цвета, размеры, замеры, профиль */
.tile .arts { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tile .colors { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tile .colors span { font-size: 10.5px; font-weight: 800; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; }
.tag.pick { outline: 2px solid var(--denim); outline-offset: 1px; }
.chips.sizes { align-items: center; }
.chips-lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
select.inp { appearance: none; -webkit-appearance: none; font-size: 14px; }
input[type="search"].inp { -webkit-appearance: none; }
.mtable-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.mtable { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
table.mtable th { font-weight: 800; padding: 6px 8px; text-align: center; color: var(--denim); background: var(--denim-soft); }
table.mtable th:first-child { background: transparent; }
table.mtable td { padding: 7px 8px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.mtable td:first-child { text-align: left; color: var(--ink-2); font-weight: 700; white-space: normal; min-width: 92px; }
table.mtable tr.cp td { border-top: 0; color: var(--muted); font-size: 11.5px; }
table.mtable tr.cp button { width: 34px; height: 30px; border-radius: 8px; background: var(--denim-soft); color: var(--denim); font-weight: 800; font-size: 15px; }
.seg { display: flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--denim); box-shadow: var(--shadow); }
.av-ic.big { width: 50px; height: 50px; font-size: 20px; }
.ulink { color: var(--denim); font-weight: 700; font-size: 12.5px; margin-left: 6px; }

/* этап 2: заказы */
.tabs button span { position: relative; }
.badge { position: absolute; top: -4px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 17px; padding: 0 4px; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.qty button { width: 40px; height: 36px; border-radius: 9px; background: var(--surface); font-size: 20px; font-weight: 800; color: var(--denim); }
.qty b { min-width: 34px; text-align: center; font-size: 17px; }
button.tag { cursor: pointer; } button.tag:disabled { cursor: not-allowed; opacity: .7; }
.upload { display: block; border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; color: var(--muted); font-weight: 700; font-size: 13.5px; position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upd { display: flex; align-items: flex-end; gap: 10px; }
img.pm { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; background: var(--surface-2); cursor: zoom-in; }
img.pm.big { width: 120px; height: 120px; }
.inp.bad { border-color: var(--danger); }
.sumline { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.sumline b { font-size: 19px; color: var(--denim); }
.card.pay { border: 1.5px solid var(--warn-line); background: var(--warn-soft); }
.orow { border-top: 1px solid var(--line); }
.orow:first-child, .sec + .orow { border-top: 0; }
.orow-main { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 0; }
.orow-main .l { font-size: 13.5px; line-height: 1.35; min-width: 0; }
.orow-main .l small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.orow-main .r { text-align: right; white-space: nowrap; font-size: 13px; }
.orow-main .r b { display: block; margin-top: 4px; }
.szt { font-weight: 800; color: var(--denim); }
.pill.st { background: var(--surface-2); color: var(--ink-2); margin: 0; }
.st-awaiting .pill.st, .st-cart .pill.st { background: var(--warn-soft); color: var(--warn); }
.st-paid .pill.st { background: var(--denim-soft); color: var(--denim); }
.st-packed .pill.st, .st-shipped .pill.st, .st-delivered .pill.st, .st-done .pill.st { background: var(--ok-soft); color: var(--ok); }
.st-canceled .pill.st, .st-returning .pill.st { background: var(--danger-soft); color: var(--danger); }
.odet { padding: 0 0 12px; }
.odet .two > div { flex: 0 0 auto; }

/* правки 19.11: значки, отклик на нажатие, замеры, плитки заказов */
.tabs button span svg { width: 23px; height: 23px; display: block; margin: 0 auto 2px; }
.tile { transition: transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(22, 32, 54, .12); } }
.tile:active { transform: scale(.97); }
.tag { transition: transform .12s ease, box-shadow .12s ease; }
.tag.tap { cursor: pointer; }
@media (hover: hover) { .tag.tap:hover { transform: scale(1.08); } }
.tag.tap:active, .tag.pick { transform: scale(1.1); box-shadow: 0 0 0 2px var(--denim); }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtoggle { font-weight: 800; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.mtoggle span { color: var(--muted); }
.mcopy { display: inline-flex; align-items: center; gap: 6px; color: var(--denim); background: var(--denim-soft); border-radius: 9px; padding: 6px 10px; font-weight: 800; font-size: 12.5px; }
.mcopy svg { width: 15px; height: 15px; }
.mhead + .mtable-wrap { margin-top: 10px; }
.hint5 { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; margin: 0 0 6px; }
.stiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.stile { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: left; box-shadow: var(--shadow); transition: transform .12s ease; }
.stile:active { transform: scale(.97); }
.stile b { display: block; font-size: 22px; line-height: 1.1; }
.stile span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.stile.on { border-color: var(--denim); background: var(--denim-soft); }
.stile.on span { color: var(--denim); }
.stile.st-awaiting b { color: var(--warn); } .stile.st-paid b { color: var(--denim); } .stile.st-packed b, .stile.st-shipped b { color: var(--ok); } .stile.st-canceled b { color: var(--danger); }
.orow-main { align-items: flex-start; }
.othumb { width: 46px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.orow-main .l { flex: 1; }
.osz { display: inline-block; margin: 4px 4px 0 0; padding: 2px 9px; border-radius: 7px; font-weight: 800; font-size: 14px; background: var(--denim-soft); color: var(--denim); border: 1.5px solid var(--denim); }
.oqty { font-weight: 800; color: var(--ink-2); font-size: 13px; }
.viewer img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }

/* правки 19.11 (2): наличие квадратиками, заказы, статистика, роли */
.avg { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 2px; }
.avrow { display: block; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.avg + .avrow { border-top: 0; }
.avname { font-weight: 800; font-size: 13.5px; line-height: 1.3; }
.avname small { color: var(--muted); font-weight: 600; font-size: 11.5px; margin-left: 6px; }
.avsizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sq { min-width: 40px; height: 34px; padding: 0 6px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.sq.g { background: var(--ok); } .sq.y { background: var(--warn-dot); color: #2b2100; }
.sq.r { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
.osvc { display: flex !important; flex-wrap: wrap; gap: 0 6px; }
.nw { white-space: nowrap; }
.omore { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 800; color: var(--denim); }
.nopm { display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); border: 1.5px dashed var(--line); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpis div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.kpis b { display: block; font-size: 18px; }
.kpis span { font-size: 12px; color: var(--muted); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-bottom: 16px; position: relative; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; max-width: 22px; background: var(--denim); border-radius: 4px 4px 0 0; min-height: 3px; }
.bar span { position: absolute; bottom: -15px; font-size: 9.5px; color: var(--muted); }
.srow { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.srow:first-of-type { border-top: 0; }
.ubtns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pill.mgr-pill { background: var(--denim-soft); color: var(--denim); }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bgrid .btn { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; }

/* возвраты */
.banner { display: block; width: 100%; text-align: left; background: var(--warn-soft); border: 1.5px solid var(--warn-line); color: var(--warn); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.banner.red { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.banner b { display: block; font-size: 14px; }
.banner span { font-size: 12.5px; font-weight: 700; }
.retbox { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.retbox .text { font-size: 13.5px; margin-bottom: 4px; }
.retcard .l { margin-bottom: 6px; }
.retnum { font-size: 20px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 2px; }
.retcode { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.retcode b { font-size: 24px; color: var(--ok); letter-spacing: .1em; }
.retcode.bad { color: var(--danger); }
img.pm.huge { width: 100%; height: auto; max-height: 260px; object-fit: contain; background: #fff; }

/* возвраты: штрихкод для ПВЗ, «забрал», проблема, баланс */
.bc { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 6px; margin: 8px 0 2px; text-align: center; }
.bc svg { display: block; width: 100%; height: 64px; }
.bc.big svg { height: 96px; }
.bc span { display: block; color: #000; font-weight: 800; font-size: 15px; letter-spacing: .06em; margin-top: 4px; }
.bcfull { position: fixed; inset: 0; z-index: 25; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.bcfull .bcin { width: 100%; max-width: 560px; text-align: center; }
.bcfull svg { display: block; width: 100%; height: 34vh; max-height: 260px; }
.bcfull .n { color: #000; font-size: 26px; font-weight: 800; letter-spacing: .06em; margin-top: 10px; }
.bcfull .s { color: #444; font-size: 15px; font-weight: 700; }
.retcard.ok { border: 1.5px solid var(--ok-line); background: var(--ok-soft); }
.rsel { display: flex; gap: 10px; align-items: flex-start; }
.cb { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ok-line); background: var(--surface); margin-top: 2px; }
.cb.on { background: var(--ok); border-color: var(--ok); }
.cb.on::after { content: "✓"; color: #fff; font-weight: 800; font-size: 16px; line-height: 22px; display: block; text-align: center; }
.selbar { display: flex; gap: 8px; align-items: center; position: sticky; top: 6px; z-index: 4; }
.selbar .btn { margin: 0; }
.selbar .btn.sm { flex: none; width: auto; }
.okline { color: var(--ok); font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.probbox { background: var(--danger-soft); border: 1.5px solid var(--danger-line); color: var(--danger); border-radius: 12px; padding: 9px 11px; margin-bottom: 6px; font-size: 13.5px; }
.probbox > div { margin-top: 4px; color: var(--ink-2); }
.probbox .btn { margin-top: 8px; }
.probform { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.wrapchips { flex-wrap: wrap; overflow: visible; }
.pms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.upload.sm { width: 56px; height: 56px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.btn.red-t { color: var(--danger); }
.bal { font-size: 26px; font-weight: 800; }
.bgrid .btn.col { flex-direction: column; line-height: 1.15; }
.btn.col small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.st-returned .pill.st { background: var(--ok-soft); color: var(--ok); }
/* лента уведомлений */
.bell { position: relative; width: 36px; height: 36px; flex: none; border-radius: 99px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.bell svg { width: 22px; height: 22px; }
.bell.on { color: var(--denim); background: var(--denim-soft); }
.bell .badge { position: absolute; top: -3px; right: -5px; left: auto; }
.note { display: block; width: 100%; text-align: left; padding: 10px 0 10px 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; position: relative; }
.note:first-child { border-top: 0; }
.note.new::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 99px; background: var(--denim); }
.note.new { font-weight: 700; }
.note .t { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.note .go { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--denim); }
/* несколько вещей в одной посылке */
.xline { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 10px; background: var(--surface-2); }
.xhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13.5px; }
.xdel { width: 28px; height: 28px; border-radius: 99px; color: var(--danger); font-weight: 800; }
select.inp { appearance: none; -webkit-appearance: none; background: var(--surface); font-size: 14px; }
.olines { margin: 3px 0 2px; font-size: 12.5px; color: var(--ink-2); }
/* чат по заказу */
.chatlog { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.msg { max-width: 86%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 11px; box-shadow: var(--shadow); }
.msg.me { align-self: flex-end; background: var(--denim-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg .who { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.msg .mt { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.composer { position: sticky; bottom: 8px; }
.csend-ph { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cnew { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--denim); border-radius: 99px; padding: 2px 8px; }
.crow { display: block; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
.crow .ch { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.crow .cl { font-size: 13.5px; color: var(--ink-2); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.wait .cl { color: var(--ink); font-weight: 700; }
.cbadge { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--danger); border-radius: 99px; padding: 1px 7px; margin-left: auto; }
/* таблица лидеров */
.tabs.six button { font-size: 10.5px; }
.mnav { display: flex; align-items: center; gap: 8px; }
.mnav .btn.sm { width: 40px; flex: none; margin: 0; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.lrow.me { background: var(--denim-soft); border-radius: 10px; border-top-color: transparent; }
.lp { width: 30px; text-align: center; font-weight: 800; font-size: 16px; flex: none; }
.ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lu { flex: none; color: var(--ink-2); }
.ldots { text-align: center; color: var(--muted); letter-spacing: .2em; }

/* =====================================================================================================
   KURSKY STUDIO — оформление 19.11 (чёрно-белый минимализм, как логотип: квадратный знак «K», жирный гротеск).
   Вернуть прежний вид: скопировать файлы из design_backup/drop-web-2026-11-19/ обратно в drop/web/.
   ===================================================================================================== */
:root {
  --bg: #f3f3f1; --surface: #ffffff; --surface-2: #f0f0ed; --ink: #0b0b0b; --ink-2: #3b3b39; --muted: #8b8b86; --line: #e4e4e0;
  --denim: #0b0b0b; --denim-soft: #ececea; --copper: #0b0b0b; --copper-soft: #ececea; --on: #ffffff;
  --danger: #c4321f; --danger-soft: #fbece8; --danger-line: #efbcb2;
  --ok: #1d7a49; --ok-soft: #e6f3ea; --ok-line: #a9d6b8; --warn: #9a6a00; --warn-dot: #e5ab12; --warn-soft: #faf2dc; --warn-line: #ead290;
  --shadow: 0 1px 0 rgba(0, 0, 0, .04);
  --lift: 0 14px 30px -12px rgba(0, 0, 0, .28);
  --font: "Onest", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 6px; --r-sm: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  --bg: #050505; --surface: #111111; --surface-2: #1a1a1a; --ink: #f4f4f2; --ink-2: #c9c9c5; --muted: #85857f; --line: #252523;
  --denim: #f4f4f2; --denim-soft: #222220; --copper: #f4f4f2; --copper-soft: #222220; --on: #0b0b0b;
  --danger: #ff7a66; --danger-soft: #2c1512; --danger-line: #5c2a22;
  --ok: #5fd08c; --ok-soft: #10261a; --ok-line: #24553a; --warn: #f2c55a; --warn-dot: #e5ab12; --warn-soft: #2a220e; --warn-line: #5a4815;
  --shadow: 0 0 0 1px #1d1d1b; --lift: 0 14px 30px -12px rgba(0, 0, 0, .8);
}
html, body { letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }

/* --- шапка с логотипом --- */
.top { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  padding: 12px 14px 10px; transition: box-shadow .25s var(--ease); }
.scrolled .top { box-shadow: 0 1px 0 var(--line); }
.top h1 { font-weight: 900; letter-spacing: -.02em; }
.top .back { color: var(--ink); text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; }
.logo { display: inline-flex; align-items: center; gap: 8px; line-height: .86; vertical-align: middle; }
.logo i { font-style: normal; width: 30px; height: 30px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 21px; letter-spacing: 0; transition: transform .5s var(--ease); }
.logo b { font-weight: 900; font-size: 13.5px; letter-spacing: .02em; }
.brand:active .logo i { transform: rotate(-90deg); }
.mgr { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-sm); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; padding: 7px 10px;
  transition: background .2s, color .2s; }
.mgr:active, .mgr:hover { background: var(--ink); color: var(--bg); }
.bell { border-radius: var(--r-sm); color: var(--ink); }
.bell.on { background: var(--ink); color: var(--bg); }
.bell.on svg { animation: ring 2.4s var(--ease) infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

/* --- заставка при загрузке --- */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.logo.big i { width: 64px; height: 64px; font-size: 44px; animation: pop .7s var(--ease) both; }
.logo.big b { font-size: 28px; animation: slide .7s .12s var(--ease) both; }
.logo.big { gap: 14px; }
.sbar { width: 140px; height: 2px; background: var(--line); overflow: hidden; }
.sbar span { display: block; width: 40%; height: 100%; background: var(--ink); animation: load 1.1s var(--ease) infinite; }
@keyframes pop { from { transform: scale(.6) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* --- бегущая строка --- */
.ticker { background: var(--ink); color: var(--bg); overflow: hidden; margin: 0 -12px 12px; height: 30px; display: flex; align-items: center; }
.ticker div { white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .14em; animation: marquee 32s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- поверхности --- */
.card { border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
:root[data-theme="dark"] .card { border-color: var(--line); }
.sec { text-transform: uppercase; font-size: 11.5px; letter-spacing: .09em; font-weight: 800; }
.avg { letter-spacing: .12em; color: var(--ink-2); }
.title { font-weight: 900; letter-spacing: -.02em; }
.lbl { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }

/* --- кнопки --- */
.btn { background: var(--ink); color: var(--on); border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; padding: 14px 12px;
  position: relative; overflow: hidden; transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease); }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } .btn:hover { box-shadow: var(--lift); } }
.btn:active { transform: scale(.975); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost::after { background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--ink) 10%, transparent) 50%, transparent 70%); }
.btn.red { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn.sm { border-radius: var(--r-sm); letter-spacing: .05em; }
.btn:disabled { opacity: .35; transform: none; }
.inp { border-radius: var(--r-sm); border-width: 1.5px; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }

/* --- чипы и переключатели --- */
.chip { border-radius: var(--r-sm); font-weight: 800; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg { border-radius: var(--r-sm); }
.seg button { border-radius: 3px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; transition: background .25s var(--ease), color .25s; }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.sw.on { background: var(--ink); }
.sw.on::after { background: var(--bg); }
.groupbtn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .15s; }
.groupbtn:active { transform: scale(.985); border-color: var(--ink); }

/* --- каталог --- */
.grid { gap: 10px; }
.tile { border-radius: var(--r); padding: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: none; }
.tile > *:not(.pic):not(.nopic) { margin-left: 10px; margin-right: 10px; }
.tile > :last-child { margin-bottom: 10px; }
.pic, .nopic { border-radius: 0; transition: transform .6s var(--ease); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: var(--lift); } .tile:hover .pic { transform: scale(1.05); } }
.tile .nm { font-weight: 800; letter-spacing: -.01em; margin-top: 9px; }
.tile .pr b { color: var(--ink); font-weight: 900; }
.tile .colors span { border-radius: 3px; }
.hero { border-radius: var(--r); }
.thumbs img { border-radius: var(--r-sm); }
.thumbs img.on { border-color: var(--ink); }
.pricebox > div { border-radius: var(--r-sm); }
.pricebox .you { background: var(--ink); color: var(--bg); }
.pricebox .you small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.pricebox .you b { color: var(--bg); }

/* --- бирки размеров: квадратные, как знак логотипа --- */
.tag { border-radius: var(--r-sm); }
.tag.g { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.tag.y { background: var(--surface); color: var(--ink); border-color: var(--warn-dot); box-shadow: inset 0 -3px 0 var(--warn-dot); }
.tag.r { background: transparent; color: var(--muted); border-color: var(--line); }
.tag.pick, .tag.tap:active { background: var(--ink); color: var(--bg); box-shadow: none; outline: none; }
.tile .tag.g { background: transparent; }
.sq { border-radius: var(--r-sm); }
.sq.g { background: var(--ink); color: var(--bg); }
.c { border-radius: 3px; } .c.g { background: var(--ink); }
.dot.g { background: var(--ink); }
.osz { border-radius: var(--r-sm); background: transparent; color: var(--ink); border-color: var(--ink); }

/* --- заказы и списки --- */
.stile { border-radius: var(--r); border: 1px solid var(--line); box-shadow: none; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.stile b { font-weight: 900; letter-spacing: -.02em; font-size: 26px; }
.stile.on { background: var(--ink); border-color: var(--ink); }
.stile.on b, .stile.on span { color: var(--bg) !important; }
.pill { border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; font-size: 9.5px; padding: 3px 6px; }
.st-paid .pill.st { background: var(--ink); color: var(--bg); }
.othumb, .thumb { border-radius: var(--r-sm); }
.omore, .ulink { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sumline b { color: var(--ink); font-weight: 900; }
.card.pay { border-radius: var(--r); }
.banner { border-radius: var(--r); }
.qty { border-radius: var(--r-sm); }
.qty button { border-radius: 3px; color: var(--ink); }
.cnew, .cbadge { border-radius: 3px; background: var(--ink); color: var(--bg); }
.note.new::before { background: var(--ink); border-radius: 0; }
.msg { border-radius: var(--r) var(--r) var(--r) 0; box-shadow: none; }
.msg.me { background: var(--ink); color: var(--bg); border-radius: var(--r) var(--r) 0 var(--r); }
.msg.me .who { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.lrow.me { background: var(--ink); color: var(--bg); border-radius: var(--r-sm); }
.lrow.me .lu { color: var(--bg); }
.bar i { background: var(--ink); border-radius: 2px 2px 0 0; }
.kpis div { border-radius: var(--r-sm); }
.av-ic { border-radius: var(--r-sm); background: var(--ink); color: var(--bg); }
table.mtable th { background: var(--ink); color: var(--bg); }
table.mtable tr.cp button, .mcopy { border-radius: var(--r-sm); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.retbox, .xline, .chosen { border-radius: var(--r-sm); }
.upload { border-radius: var(--r-sm); transition: border-color .2s, background .2s; }
.upload:active { border-color: var(--ink); background: var(--surface-2); }
.bc { border-radius: var(--r-sm); }
.toast { border-radius: var(--r-sm); text-transform: none; }

/* --- нижние вкладки: чёрная полоска над активной --- */
.tabs { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tabs button { position: relative; color: var(--muted); text-transform: uppercase; font-size: 9.5px; letter-spacing: .07em; transition: color .25s; }
.tabs.six button { font-size: 8.5px; letter-spacing: .04em; }
.tabs button::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 2.5px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button.on { color: var(--ink); }
.tabs button.on::before { transform: scaleX(1); }
.tabs button span svg { transition: transform .35s var(--ease); }
.tabs button.on span svg { transform: translateY(-2px); }
.tabs button:active span svg { transform: scale(.85); }
.badge { border-radius: 3px; background: var(--danger); }

/* --- появление нового экрана: всё «выезжает» снизу по очереди --- */
.enter .wrap > *, .enter .center, .enter .tabs { animation: rise .55s var(--ease) both; }
.enter .wrap > :nth-child(2) { animation-delay: .05s; } .enter .wrap > :nth-child(3) { animation-delay: .1s; }
.enter .wrap > :nth-child(4) { animation-delay: .15s; } .enter .wrap > :nth-child(5) { animation-delay: .2s; }
.enter .wrap > :nth-child(n+6) { animation-delay: .25s; }
.enter .tabs { animation: none; }
.enter .grid .tile { animation: rise .6s var(--ease) both; }
.enter .grid .tile:nth-child(2) { animation-delay: .06s; } .enter .grid .tile:nth-child(3) { animation-delay: .12s; }
.enter .grid .tile:nth-child(4) { animation-delay: .18s; } .enter .grid .tile:nth-child(5) { animation-delay: .24s; }
.enter .grid .tile:nth-child(6) { animation-delay: .3s; } .enter .grid .tile:nth-child(n+7) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bcfull { animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.two .btn { white-space: nowrap; letter-spacing: .04em; padding-left: 8px; padding-right: 8px; }

/* --- правки 19.11 (2): фото в «Наличии», крупные заголовки разделов, подпись --- */
.avrow { display: flex; gap: 12px; align-items: flex-start; }
.avthumb { width: 52px; height: 68px; flex: none; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.avbody { flex: 1; min-width: 0; }
.avsizes { margin-top: 8px; }
.ptitle { margin: 6px 2px 14px; }
.ptitle h2 { margin: 0; font-size: 44px; line-height: .92; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.ptitle h2 sup { font-size: 14px; font-weight: 800; letter-spacing: 0; vertical-align: top; margin-left: 4px; position: relative; top: 4px;
  font-variant-numeric: tabular-nums; }
.ptitle p { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.enter .ptitle h2 { animation: title .7s var(--ease) both; }
@keyframes title { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.ticker { margin-top: -2px; margin-bottom: 14px; }
.stile b, .kpis b, .lu b, .bal { font-variant-numeric: tabular-nums; }
.foot { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 6px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.foot .logo i { width: 20px; height: 20px; font-size: 13px; background: var(--muted); }
.foot .logo b { font-size: 9px; color: var(--muted); }

/* --- motion 19.11 (3): появление при прокрутке, параллакс, волна от пальца, стекло, скелеты --- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.ptitle h2 { transform: translateY(calc(var(--sy, 0) * .35px)); opacity: calc(1 - var(--sy, 0) / 260); will-change: transform, opacity; }
.ptitle p { opacity: calc(1 - var(--sy, 0) / 180); }
.btn, .chip, .tile, .stile, .tabs button, .groupbtn, .avrow, .crow, .seg button { position: relative; overflow: hidden; }
wave-fx.wave { display: block; margin: 0; padding: 0; position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .14; transform: scale(0); animation: wave .65s var(--ease) forwards; }
@keyframes wave { to { transform: scale(1); opacity: 0; } }
img.lz { opacity: 0; filter: blur(6px); }
img.pic, img.hero, img.avthumb, img.othumb, img.thumb { transition: opacity .45s var(--ease), filter .45s var(--ease), transform .6s var(--ease); }
/* нижняя панель — парящее матовое стекло */
body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.tabs { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding-bottom: 0; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px; background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .35);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.tabs button { border-radius: 12px; }
.tabs button::before { top: 0; }
.toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
.badge.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
.enter .bell .badge { animation: bump .6s var(--ease) both; }
/* скелеты загрузки */
.skel { display: grid; gap: 10px; padding: 6px 0; }
.skel i { display: block; height: 74px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--line); }
.skel i.s { height: 22px; width: 55%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
/* мягкие пружинки в мелочах */
.sw::after { transition: left .35s cubic-bezier(.3, 1.6, .5, 1); }
.tag.tap, button.tag { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s; }
.tapped .chip.on { animation: pick .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pick { from { transform: scale(.92); } to { transform: none; } }
.tapped .stile.on { animation: pick .35s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .ptitle h2, .ptitle p { transform: none; opacity: 1; } }

/* ряды фильтров: кнопки не сжимаются (иначе обрезается текст), ряд листается пальцем вбок, у края — затухание */
.chips .chip { flex: none; }
.chips { scroll-padding: 0 24px; }
.chips.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.chips.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 36px), transparent); }
