:root {
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --line: #E3E5E9;
  --line-strong: #D9DCE1;
  --ink: #15171C;
  --ink-2: #3B3F47;
  --muted: #6B7280;
  --accent: #1F4FD1;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECFF;
  --accent-soft-ink: #1A3DA8;
  --attn: #FFF6DB;
  --attn-line: #E9B949;
  --attn-ink: #6B4A00;
  --danger: #B42318;
  --ok-bg: #DFF3E7;
  --ok-ink: #17613A;
  --err-bg: #FDE7E5;
  --input-bg: #FFFFFF;
  --radius: 16px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115;
    --card: #181B21;
    --line: #262A33;
    --line-strong: #323743;
    --ink: #ECEEF2;
    --ink-2: #C9CDD4;
    --muted: #9AA1AD;
    --accent: #6E8BFF;
    --accent-ink: #0F1115;
    --accent-soft: #1E2A52;
    --accent-soft-ink: #B9C8FF;
    --attn: #2E2610;
    --attn-line: #8A6A1C;
    --attn-ink: #F3D58A;
    --danger: #FF8A80;
    --ok-bg: #12301F;
    --ok-ink: #8FDDB0;
    --err-bg: #3A1714;
    --input-bg: #11141A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; } /* 0.17.6: без зума двойным тапом */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--font);
  min-height: 100vh;
}
body.has-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
.ic { flex: none; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 4px;
  min-height: 60px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.topbar-action { margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border-radius: 12px;
}

.main { max-width: 640px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }

/* Нижнее меню */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a {
  min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 12px;
}
.tabbar a.active { color: var(--accent); font-weight: 600; }

/* Карточки и формы */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form small { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line-strong); border-radius: 12px;
  min-height: 48px; padding: 0 14px; width: 100%;
}
textarea { padding: 12px 14px; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); min-height: 44px; }
.form label.check input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  text-align: center; text-wrap: balance; line-height: 1.25; /* 0.17.6: длинная надпись — по центру и ровными строками */
}
.btn-block { padding-top: 8px; padding-bottom: 8px; }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.toolbar { display: flex; justify-content: flex-end; }

/* Сообщения */
.flash { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-err { background: var(--err-bg); color: var(--danger); }

/* Вход */
.no-nav .main { min-height: 100vh; justify-content: center; }
.auth { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px 6px; }
.brand b { display: block; font-size: 20px; }
.brand span { color: #4B5563; font-size: 14px; }
.logo {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}

/* Фильтры-чипы */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 18px; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px;
}
.chip-active { background: var(--ink); color: var(--bg); border-color: transparent; font-weight: 600; }
.chip-attn { background: var(--attn); border-color: var(--attn-line); color: var(--attn-ink); font-weight: 600; }

/* Пустое состояние */
.empty { padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; }
.empty b { color: var(--ink); font-size: 17px; }
.empty p { margin: 0 0 6px; max-width: 320px; }
.pre { white-space: pre-line; }

/* Списки */
.list { overflow: hidden; }
.list form { margin: 0; }
.list-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 14px;
  border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer;
}
.list > :last-child .list-row, .list > .list-row:last-child { border-bottom: 0; }
.list-row > span:not(.badge):not(.avatar) { flex: 1; min-width: 0; }
.list-row > .ic:last-child { color: var(--muted); width: 20px; height: 20px; }
.list-row-danger { color: var(--danger); }
.user-main { display: flex; flex-direction: column; }
.user-main small { color: var(--muted); font-size: 13px; }
.user-row.is-off { opacity: 0.6; }

.profile { display: flex; align-items: center; gap: 12px; padding: 14px; }
.profile b { display: block; font-size: 17px; }
.profile > div > span { color: #4B5563; font-size: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 24px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; font-size: 18px;
}
.avatar-sm { width: 40px; height: 40px; font-size: 16px; }

.badge { flex: none; display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.badge-admin { background: var(--ink); color: var(--bg); }
.badge-manager { background: var(--accent-soft); color: var(--accent-soft-ink); }
.badge-off { background: var(--err-bg); color: var(--danger); }

.footnote { color: var(--muted); font-size: 13px; text-align: center; margin: 4px 0; }

/* Настройки Авито */
.hint { margin: 0; font-size: 14px; color: var(--muted); font-weight: 400; }
.hint b { color: var(--ink-2); }
.probe { cursor: default; align-items: flex-start; }
.probe > span { display: flex; flex-direction: column; gap: 2px; }
.probe small { color: var(--muted); font-size: 13px; }
.probe-ok > .ic { color: var(--ok-ink); }
.probe-err > .ic { color: var(--danger); }
.row-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.row-buttons form { flex: 1; margin: 0; }
.row-buttons .btn { width: 100%; }
.btn-danger-outline { color: var(--danger); }
.profile .avatar .ic { width: 22px; height: 22px; }

/* Заказы */
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 48px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.search input { border: 0; padding: 0; min-height: 46px; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
a.chip { color: var(--ink); text-decoration: none; gap: 6px; }
a.chip.chip-active { color: var(--bg); }
.chip-n { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip-active .chip-n { color: inherit; opacity: .8; }
.chip-n-accent { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 1px 7px; }
.syncbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 2px; }
.syncbar form { margin: 0; flex: none; }
.syncbar .ic { width: 18px; height: 18px; }
.text-err { color: var(--danger); }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-2); }
.nowrap { white-space: nowrap; }

.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard { display: flex; flex-direction: column; gap: 6px; padding: 14px; color: var(--ink); text-decoration: none; }
.ocard:active { transform: scale(.995); }
.ocard-top { display: flex; align-items: center; gap: 8px; }
.ocard-ago { margin-left: auto; font-size: 12px; color: var(--muted); }
.ocard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; }
.ocard-items { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ocard-meta { font-size: 13px; color: var(--muted); }
.ocard-dl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ocard-dl .ic { width: 15px; height: 15px; }
.ocard-dl.is-urgent { color: var(--danger); font-weight: 600; }

.stage-new { background: #E6ECFF; color: #1A3DA8; }
.stage-confirmed { background: #FFEED6; color: #7A4100; }
.stage-assembled { background: #DFF3E7; color: #17613A; }
.stage-shipping { background: #ECE6FA; color: #4F2F9E; }
.stage-awaiting { background: #D9F4F6; color: #0B5F66; }
.stage-done { background: #E8EAEE; color: #3B3F47; }
.stage-canceled { background: #FDE7E5; color: #912018; }
@media (prefers-color-scheme: dark) {
  .stage-new { background: #1E2A52; color: #B9C8FF; }
  .stage-confirmed { background: #3A2A10; color: #F5C98A; }
  .stage-assembled { background: #12301F; color: #8FDDB0; }
  .stage-shipping { background: #2A2148; color: #CDBBFF; }
  .stage-awaiting { background: #0E3236; color: #8BDDE3; }
  .stage-done { background: #262A33; color: #C9CDD4; }
  .stage-canceled { background: #3A1714; color: #FF9E95; }
}

/* Карточка заказа */
.ohead { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ohead-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.ohead-num { font-size: 18px; color: var(--ink); }
.progress { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.progress li { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.progress li span { height: 4px; border-radius: 2px; background: var(--line-strong); }
.progress li.is-done span { background: var(--accent); }
.progress li.is-current { color: var(--accent); font-weight: 600; }
.sect { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sect h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line small { color: var(--muted); font-size: 13px; }
.sum { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 8px; }
.sum > div > span:first-child { color: var(--ink-2); }
.sum-total { font-size: 16px; padding-top: 4px; }
.btn-soft { background: var(--accent-soft); color: var(--accent-soft-ink); border-color: transparent; }
.kv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 12px; font-size: 14px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 5px; background: var(--line-strong); }
.timeline li.ev-created::before, .timeline li.ev-stage::before { background: var(--accent); }
.timeline small { color: var(--muted); font-size: 12px; }

/* 0.2.1 */
.progress-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ocard-items { display: flex; flex-direction: column; gap: 2px; }
.ocard-item { display: flex; justify-content: space-between; gap: 10px; }
.ocard-item > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-item > span:last-child { color: var(--muted); }
.ocard-more { color: var(--muted); font-size: 13px; }
.ocard-top .mono { white-space: nowrap; }
.ocard-ago { white-space: nowrap; }
.badge-pickup { background: #E3F1F7; color: #0B5571; }
@media (prefers-color-scheme: dark) { .badge-pickup { background: #12313D; color: #9BD7EE; } }
.chip-archive:not(.chip-active) { color: var(--muted); }
.ohead-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.ohead-num { white-space: nowrap; } /* 0.17.6: длинный номер Авито не рвём — значки уходят на строку ниже */
.pickup {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid #0B5571; color: #0B5571;
  font-size: 12px; font-weight: 700; line-height: 1;
}
@media (prefers-color-scheme: dark) { .pickup { border-color: #9BD7EE; color: #9BD7EE; } }

/* 0.2.3 — вкладки заказов */
.seg {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.seg-btn {
  min-height: 44px; padding: 4px 2px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; text-align: center; line-height: 1.15;
}
.seg-btn > span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-btn.is-on { background: var(--ink); color: var(--bg); font-weight: 600; }
.seg-n { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg-btn.is-on .seg-n { color: inherit; opacity: .75; }
.seg-n-accent { background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 0 7px; }
.seg-btn.is-on .seg-n-accent { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.subchips { display: flex; gap: 6px; flex-wrap: wrap; }
.subchip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px;
  border-radius: 18px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); text-decoration: none; font-size: 13px;
}
.subchip.is-on { background: var(--card); border-color: var(--ink-2); color: var(--ink); font-weight: 600; }
.subchip-n { font-weight: 600; }

/* 0.2.4 — единые фильтры */
.filters { display: flex; flex-direction: column; gap: 6px; }
.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-quiet { background: var(--card); }
.seg-quiet .seg-btn { min-height: 38px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg-quiet .seg-btn.is-on { background: var(--ink); color: var(--bg); font-weight: 600; }
.seg-n.is-zero { opacity: .45; }
.seg-n-inline { font-size: 12px; font-weight: 500; opacity: .8; }
.syncnote { margin: 0; font-size: 13px; color: var(--muted); padding: 0 2px; }
.ptr {
  position: fixed; top: 0; left: 50%; z-index: 20; width: 36px; height: 36px; margin-left: -18px;
  transform: translateY(-48px); border-radius: 18px; background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.ptr span { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; }
.ptr.is-ready span { border-color: var(--accent); }
.ptr.is-loading span { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* 0.3 — чаты */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-ic { position: relative; display: inline-flex; }
.tab-badge {
  position: absolute; top: -5px; left: 15px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; background: #E9A300; color: #15171C; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.badge-sm { font-size: 11px; padding: 1px 7px; }
.clist { overflow: hidden; }
.crow { display: flex; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.cavatar { width: 46px; height: 46px; border-radius: 23px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.av-1 { background: #DCE6FF; color: #1A3DA8; } .av-2 { background: #DFF3E7; color: #17613A; } .av-3 { background: #F6E7D8; color: #7A4100; }
.av-4 { background: #ECE6FA; color: #4F2F9E; } .av-5 { background: #E8EAEE; color: #3B3F47; } .av-6 { background: #FDE2E1; color: #912018; }
@media (prefers-color-scheme: dark) {
  .av-1 { background: #1E2A52; color: #B9C8FF; } .av-2 { background: #12301F; color: #8FDDB0; } .av-3 { background: #3A2A10; color: #F5C98A; }
  .av-4 { background: #2A2148; color: #CDBBFF; } .av-5 { background: #262A33; color: #C9CDD4; } .av-6 { background: #3A1714; color: #FF9E95; }
}
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ctop { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cname { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctime { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); }
.citem { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clast { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.clast > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted-inline { color: var(--muted); }
.crow.is-unread .clast { color: var(--ink); font-weight: 600; }
.cdot { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); flex: none; }

/* экран чата */
body.is-chat { padding-bottom: 0; }
body.is-chat .main { padding-bottom: 190px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.chat-item-img { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; flex: none; }
.chat-item { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.chat-item a { color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item small { color: var(--muted); font-size: 12px; }
.chat-orders { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
.chat-order { flex: none; width: 82%; max-width: 320px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.chat-orders .chat-order:only-child { width: 100%; max-width: none; }
.chat-order-sum { margin-left: auto; font-size: 14px; }
.chat-order-items { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thread { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.msg-day-mark { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; }
.msg { display: flex; flex-direction: column; max-width: 84%; gap: 2px; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 12px; border-radius: 18px; font-size: 15px; line-height: 1.38; white-space: normal; overflow-wrap: anywhere; }
.msg-in .bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-out .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg-out .bubble a { color: inherit; }
.bubble img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; }
.msg-link { text-decoration: underline; }
.msg-meta { font-size: 11px; color: var(--muted); padding: 0 4px; }
.msg-read { margin-left: 2px; color: var(--accent); }
.msg-system { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: var(--muted); background: var(--line); padding: 6px 10px; border-radius: 10px; }

.composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 12px calc(10px + env(safe-area-inset-bottom));
}
.composer > * { max-width: 616px; margin-left: auto; margin-right: auto; }
.typing { position: absolute; left: 12px; bottom: calc(100% + 8px); max-width: calc(100% - 24px) !important; margin: 0 !important;
  font-size: 12px; color: var(--accent); font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing:empty { display: none; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 10px 14px; border-radius: 22px; line-height: 1.35;
  background: var(--bg);
}
.send-btn {
  width: 44px; height: 44px; flex: none; border-radius: 22px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
}
.send-btn:disabled { opacity: .5; }
.send-btn .ic { width: 20px; height: 20px; }
.composer-err { font-size: 13px; padding: 4px 4px 0; }
.composer-err:empty { display: none; }
.cavatar { position: relative; overflow: hidden; }
.cavatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 0.3.2 */
.composer textarea { border-radius: 20px; overflow-y: hidden; scrollbar-width: none; font-size: 16px; padding: 11px 16px; }
.composer textarea::-webkit-scrollbar { display: none; }
.composer textarea.is-scroll { overflow-y: auto; }
.crow-wrap { position: relative; border-bottom: 1px solid var(--line); }
.crow-wrap:last-child { border-bottom: 0; }
.crow-wrap .crow { border-bottom: 0; }
.crow.has-close { padding-right: 64px; }
.crow-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin: 0; }
.crow-close button {
  width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line-strong); background: var(--card);
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.crow-close button:active { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.crow-close .ic { width: 20px; height: 20px; }
.close-dialog { display: flex; justify-content: center; margin: 6px 0 0; }
.close-dialog .btn { color: var(--muted); font-weight: 500; }
.close-dialog .ic { width: 18px; height: 18px; }

/* 0.3.3 */
.chat-actions { display: flex; gap: 6px; justify-content: center; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.chat-actions::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip:active { background: var(--line); }
body.kb-open .chat-actions, body.ta-focus .chat-actions { display: none; }
a.msg-event { text-decoration: none; font-size: 12px; padding: 4px 10px; background: transparent; border: 1px solid var(--line); line-height: 1.35; }
a.msg-event:active { opacity: .7; }
body.kb-open .composer { padding-bottom: 8px; }
.order-cancel { margin: 0; }
.btn-danger-outline .ic, .order-cancel .ic { width: 18px; height: 18px; }
.sect > p { margin: 0; }

/* 0.3.6 — фото, файлы, голосовые */
.attach-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 22px; color: var(--muted); cursor: pointer; }
.attach-btn:active { background: var(--line); }
.attach-btn .ic { width: 24px; height: 24px; }
.photo-pick { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; }
.photo-pick[hidden] { display: none; }
.photo-pick img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line); }
.photo-pick-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.photo-pick-text small { color: var(--muted); font-size: 12px; }
.photo-pick.is-sending { opacity: .55; }
.photo-pick.is-sending .photo-pick-text b::after { content: ' — отправляем…'; font-weight: 400; }
.msg-file { display: block; }
.msg-file + .msg-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.msg-in .msg-link { color: var(--accent); }
.msg-audio { display: block; margin-top: 6px; width: 240px; max-width: 100%; height: 36px; }
.photo-pick .icon-btn { border: 0; background: transparent; color: var(--muted); }

/* 0.4.0 — шаги заказа и радужная подсветка «подготовлено сообщение» */
@property --rb { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rainbow {
  position: relative; border: 2px solid transparent !important;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--rb), #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #af52de, #ff2d55, #ff3b30) border-box !important;
  animation: rb-spin 3s linear infinite;
}
.rainbow::after {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--rb), #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #af52de, #ff2d55, #ff3b30);
  filter: blur(10px); opacity: .35; animation: rb-spin 3s linear infinite;
}
.btn.rainbow { color: var(--ink); }
@keyframes rb-spin { to { --rb: 360deg; } }
@media (prefers-reduced-motion: reduce) { .rainbow, .rainbow::after { animation: none; } }
.ocard-pend { font-size: 13px; font-weight: 600; color: var(--ink); }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.steps .btn { min-height: 48px; }
.step-head { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.step-form textarea { min-height: 150px; font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.4; }
.step-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.step-form legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 6px; }
.hint-warn { color: var(--danger); font-weight: 600; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
.photo-drop { position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 140px; border: 2px dashed var(--line-strong); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--bg); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-drop img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.photo-drop img[hidden] { display: none; }
.photo-drop-text { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; text-align: center; color: var(--accent); }
.photo-drop-text .ic { width: 32px; height: 32px; }
.photo-drop.has-photo .photo-drop-text { display: none; }
.ev-photo { display: block; margin-top: 6px; width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.draft { margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.draft-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.draft-text { font-size: 15px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.draft-actions form { margin: 0; }
.tpl-list { display: flex; flex-direction: column; gap: 14px; }
.tpl-help { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tpl-help code { background: var(--line); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.crow.rainbow { border-radius: 14px; margin: 4px 6px; }
.progress-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* 0.5.0 — МойСклад, этикетки */
.pick-list { display: flex; flex-direction: column; }
.form label.pick { align-items: flex-start; border-bottom: 1px solid var(--line); padding: 8px 0; font-weight: 500; }
.form label.pick:last-child { border-bottom: 0; }
.form label.pick input { margin-top: 2px; flex: none; }
.form label.pick span { display: flex; flex-direction: column; gap: 2px; }
.ms-box { display: flex; flex-direction: column; gap: 8px; }
.ms-box form { margin: 0; }
.ms-ok { color: var(--ok, #17613A); font-weight: 600; }
.unmapped { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg, #FFF4D6); }
.unmapped .line { padding: 0; border: 0; }
/* 0.5.4 — один клиент, несколько объявлений */
/* несколько объявлений у клиента: выбор сверху, разделители в ленте */
.lst-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.lst-bar::-webkit-scrollbar { display: none; }
.lst { flex: none; display: flex !important; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--line); cursor: pointer; max-width: 70%; }
.lst input { position: absolute; opacity: 0; pointer-events: none; }
.lst img { width: 36px; height: 36px; object-fit: cover; border-radius: 9px; flex: none; }
.lst span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.lst b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.lst small { color: var(--muted); font-size: 12px; }
.lst.is-on { border-color: var(--accent); background: var(--accent-soft); }
.lst.is-on b { color: var(--ink); }
.lst:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.msg-chat-mark { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 8px 0 2px; }
.msg-chat-mark img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
/* 0.5.5 — подгрузка списков */
.more { display: block; text-align: center; padding: 14px; margin: 10px 0 4px; color: var(--accent); font-weight: 600; text-decoration: none; border-radius: 14px; }
.more.is-loading { color: var(--muted); }
.chat-order[hidden], .ord-mini[hidden] { display: none !important; }
.ord-mini-list { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; }
.ord-mini { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-strong);
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ord-mini span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-mini .mono { font-size: 12px; }
.ord-mini:active { background: var(--line); }
/* 0.6.0 — заказ вне Авито */
.ni-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.ni-list { display: flex; flex-direction: column; gap: 8px; }
.ni-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 36px 10px 12px; border-radius: 12px; background: var(--bg); }
.ni-title { grid-column: 1 / -1; font-weight: 600; font-size: 14px; color: var(--ink); }
.form .ni-row label { font-size: 12px; font-weight: 500; gap: 3px; }
.ni-row input[type=number] { min-height: 40px; padding: 6px 10px; }
.ni-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.ni-pick { display: flex; flex-direction: column; gap: 8px; }
.ni-sub { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ni-cat { display: flex; flex-direction: column; gap: 6px; }
.ni-add { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.ni-add:active { background: var(--line); }
.ni-add img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.ni-add span { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.ni-add small { color: var(--muted); font-size: 12px; }
.ni-pay { margin: 0; }
.ni-pay .seg-btn { cursor: pointer; }
.ni-pay input { position: absolute; opacity: 0; pointer-events: none; }
.badge-crm { background: #FFF1E0; color: #8A4B00; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.form legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 6px; }
.lst, .ni-pay .seg-btn { position: relative; }
.lst input, .ni-pay input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.link-row { align-items: center; }
.link-actions { display: flex; gap: 2px; align-items: center; flex: none; }
.link-actions form { margin: 0; }
.list-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.link-row .btn { white-space: nowrap; }
.order-cancel-real { margin-bottom: 10px; }
/* 0.6.7 — состав заказа компактнее */
.item-line b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.item-line small { font-size: 12px; }
.item-line > b { font-size: 15px; white-space: nowrap; }
.sum-total { font-size: 15px; }
.ms-ok { font-size: 15px; }
.ms-ok a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ms-ok { color: var(--ink); font-weight: 500; }
.ms-ok a { color: var(--accent); font-weight: 600; }

/* 0.6.9 — флаг «нужно действие», кнопки чата в три колонки */
.chat-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
.chat-actions .chip { justify-content: center; font-size: 13px; padding: 6px 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.chip.is-action { background: #FFE8CC; border-color: #F5A54A; color: #8A4B00; font-weight: 600; }
.crow.needs-action { box-shadow: inset 4px 0 0 #F08A24; background: #FFF7EE; }
.action-tag { font-size: 13px; font-weight: 700; color: #B35C00; }
@media (prefers-color-scheme: dark) {
  .chip.is-action { background: #3A2410; border-color: #B8721F; color: #F7C58C; }
  .crow.needs-action { background: #2A1F14; }
  .action-tag { color: #F7B067; }
}
.chat-actions a.chip { color: var(--muted); }

/* 0.7.0 — заметка и исполнитель у флага */
.action-line { display: block; width: 100%; text-align: left; border: 0; background: #FFF1E0; color: #8A4B00; font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 10px; border-radius: 10px; margin-bottom: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
.action-sheet[hidden] { display: none; }
.action-sheet > * { max-width: 616px; margin: 0 auto; }
.action-form { display: flex; flex-direction: column; gap: 10px; }
.action-form-title { font-size: 16px; }
.action-form input[type=text] { width: 100%; }
.action-to { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.action-to select { flex: 1; }
.action-btns { display: flex; gap: 8px; }
.action-btns .btn { flex: 1; }
@media (prefers-color-scheme: dark) { .action-line { background: #3A2410; color: #F7C58C; } }

.mention-wrap { position: relative; }
.mention-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px; display: flex; flex-direction: column; }
.mention-list[hidden] { display: none; }
.mention-list button { border: 0; background: transparent; text-align: left; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 8px; color: var(--accent); font-weight: 600; cursor: pointer; }
.mention-list button:active, .mention-list button:hover { background: var(--accent-soft); }
.action-to { display: none !important; }
.chat-actions { grid-template-columns: 1fr 1.3fr 0.8fr; }
.chat-actions a.chip.is-action { color: #8A4B00; }
@media (prefers-color-scheme: dark) { .chat-actions a.chip.is-action { color: #F7C58C; } }
/* 0.7.2 — дата в карточке не сжимается, выбранный фильтр не обрезается */
.ocard-top { flex-wrap: nowrap; min-width: 0; }
.ocard-ago { flex: none; padding-left: 6px; }
.ocard-top .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-quiet .seg-btn.is-on { font-weight: 500; }
.seg-quiet .seg-btn { padding-left: 4px; padding-right: 4px; }
/* 0.7.2 — второй ряд фильтров как первый; дата в карточке не сжимается */
.ocard-top { flex-wrap: nowrap; min-width: 0; }
.ocard-ago { flex: none; padding-left: 6px; }
.ocard-top .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 0.7.4 — фото/PDF над полем ввода, редкое — под «+» */
.chat-actions { grid-template-columns: 1fr 1fr 44px; }
.chat-actions .chip-attach { cursor: pointer; gap: 6px; }
.chat-actions .chip-attach .ic { width: 16px; height: 16px; }
.chat-actions .chip-more { padding: 0; font-size: 20px; font-weight: 400; color: var(--muted); position: relative; }
.chat-actions .chip-more.is-open { background: var(--line); }
.chat-actions .chip-more.has-flag::after { content: ''; position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 4px; background: #F08A24; }
.more-menu { position: absolute; right: 12px; bottom: calc(100% - 4px); z-index: 15; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; min-width: 230px; max-width: calc(100% - 24px) !important; margin: 0 !important; left: auto; }
.more-menu[hidden] { display: none; }
.more-item { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.more-item:active, .more-item:hover { background: var(--line); }
.more-item.is-action { color: #8A4B00; font-weight: 600; }

.msg-svc a { color: var(--accent); font-weight: 600; }
.photo-pick img { border: 1px solid var(--line); }

/* 0.7.7 — переключатель объявлений прилипает под шапкой */
.lst-bar { position: sticky; top: var(--topbar-h, 61px); z-index: 4; background: var(--bg); margin: -12px -12px 0; padding: 10px 12px 8px;
  box-shadow: 0 1px 0 var(--line); }

/* 0.7.9 — служебные карточки в переписке одного вида */
.sys-card { align-self: center; width: min(100%, 340px); max-width: 92% !important; display: flex; flex-direction: column; gap: 2px;
  background: var(--line); color: var(--ink-2); border-radius: 14px; padding: 8px 12px; text-align: center; text-decoration: none; }
.sys-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.sys-body { font-size: 12px; color: var(--muted); line-height: 1.35; }
.sys-body a { color: var(--accent); font-weight: 600; }
a.sys-card:active { opacity: .75; }
.more-item input { display: none; }
.more-item { cursor: pointer; }
a.sys-card.msg-event { background: var(--line); border: 0; padding: 8px 12px; font-size: inherit; line-height: inherit; }
body.is-chat .main { padding-bottom: calc(var(--composer-h, 190px) + 16px); }
/* 0.7.10 — больше воздуха над полем ввода (и с кнопками, и без них) */
.composer { padding-top: 10px; }
.chat-actions { padding-bottom: 10px; }
.action-line { margin-bottom: 8px; }

/* 0.7.11 — «Фото» и «Отложить» по ширине текста слева, «＋» справа */
.chat-actions { display: flex; justify-content: flex-start; align-items: center; gap: 6px; }
.chat-actions .chip { flex: 0 0 auto; padding: 6px 12px; }
.chat-actions .chip-more { margin-left: auto; width: 40px; padding: 0; justify-content: center; align-self: stretch; }

/* 0.7.17 — поиск товара в заказе вне Авито и сброс поиска в списках */
.ni-where { grid-template-columns: 1fr 1fr; }
.ni-searchbox { position: relative; }
.ni-searchbox input { padding-right: 40px; }
.ni-clear, .search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 16px; background: var(--line); color: var(--muted); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.search { position: relative; }
.search input { padding-right: 40px; }
.search input::-webkit-search-cancel-button { display: none; }
.ni-searchbox input::-webkit-search-cancel-button { display: none; }
.ni-cat[hidden], .ni-add[hidden], .ni-clear[hidden] { display: none; }
.ni-where .seg-btn { border: 0; font: inherit; background: transparent; color: inherit; cursor: pointer; }
.ni-where .seg-btn.is-on { background: var(--ink); color: var(--bg); }
/* 0.7.18 — переключатель «Авито / МойСклад» ровно по ширине поля поиска */
.ni-where { padding: 0; gap: 6px; background: transparent; border: 0; }
.ni-where .seg-btn { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ni-where .seg-btn.is-on { border-color: var(--ink); }
.ni-searchbox input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* 0.7.19 — быстрые ответы */
button.more-item { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.qr-sheet { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); z-index: 16; max-height: 55vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.qr-sheet[hidden] { display: none; }
.qr-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.qr-item:active, .qr-item:hover { background: var(--line); }
.qr-item b { font-size: 15px; }
.qr-item span { font-size: 13px; color: var(--muted); }
.qr-edit-link { padding: 10px 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
.qr-edit { display: flex; flex-direction: column; gap: 6px; }
.qr-edit input { font-weight: 600; }

/* 0.7.20 — сколько заказ лежит в пункте выдачи */
.ocard-pvz { font-weight: 400; }
.ocard-pvz.is-warn { color: #8A4B00; }
.ocard-pvz.is-urgent { color: var(--danger); }
@media (prefers-color-scheme: dark) { .ocard-pvz.is-warn { color: #F7C58C; } }

/* 0.7.22 — меню заказов: «В работе» крупно, «Едет к клиенту» мелко, уведомления отдельно */
.stages { padding: 6px; margin-bottom: 8px; }
.st-group { display: flex; justify-content: space-between; padding: 6px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-radius: 8px; }
.st-group.is-on { color: var(--ink); }
.st-group-quiet { cursor: default; }
.st-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.st-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.st-tile:active { background: var(--line); }
.st-tile.is-on { background: var(--ink); color: var(--bg); }
.st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-n { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; line-height: 1; }
.st-n.is-zero { opacity: .35; }
.st-big .st-tile { padding: 10px 4px; }
.st-big .st-name { font-size: 16px; font-weight: 600; }
.st-big .st-n { font-size: 15px; height: 18px; }
.st-small .st-name { font-size: 13.5px; color: var(--muted); }
.st-small .st-tile.is-on .st-name { color: inherit; }
.st-small .st-n { font-size: 13px; color: var(--muted); height: 16px; }
.st-small .st-tile.is-on .st-n { color: inherit; }
/* оранжевый кружок — ровно высотой с цифру */
.st-ping { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15em; height: 1.15em; padding: 0 .3em; border-radius: .6em;
  background: #F08A24; color: #fff; font-size: .8em; font-weight: 700; line-height: 1; opacity: 1; }
.st-big .st-ping { font-size: 12.5px; min-width: 18px; height: 18px; border-radius: 9px; }
.st-small .st-ping { font-size: 11px; min-width: 16px; height: 16px; border-radius: 8px; }
.st-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.notify-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(90deg, #fff3e6, #ffe9f3, #eaf1ff); border: 1px solid #F5D7B8; font-size: 14px; font-weight: 600; }
.notify-bar span { margin-left: auto; color: #8A4B00; }
.notify-bar.is-on { border-color: #F08A24; box-shadow: inset 0 0 0 1px #F08A24; }
@media (prefers-color-scheme: dark) { .notify-bar { background: linear-gradient(90deg, #3a2a1a, #3a1f2c, #1d2740); border-color: #5a4126; } .notify-bar span { color: #F7C58C; } }
.canceled-link { display: block; text-align: right; font-size: 13px; color: var(--muted); text-decoration: none; margin: 0 6px 10px; }
.canceled-link.is-on { color: var(--ink); font-weight: 600; }
.st-ping { padding-top: 1px; font-variant-numeric: tabular-nums; }
.canceled-link { margin-top: -2px; }

/* 0.7.23 — несколько фото в шаге заказа, камера / галерея */
.more-menu.photo-menu { left: 12px !important; right: auto; min-width: 190px; }
.more-item .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; }
.chat-actions .chip-attach.is-open { background: var(--line); }
.pics-title { font-size: 15px; }
.pics { display: flex; flex-direction: column; gap: 8px; }
.pics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pics-grid[hidden] { display: none; }
.pic { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 13px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; cursor: pointer; }
.pics-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pics-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; cursor: pointer; }
.pics-btn .ic { width: 18px; height: 18px; }
.pics-btn { flex-direction: row !important; white-space: nowrap; }

/* 0.8.0 — автозагрузка */
.feed-url { font-size: 12px; }
.feed-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed-row input[type=file] { flex: 1; min-width: 0; font-size: 13px; }
.feed-list summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px 0; }
.feed-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed-item > span { display: flex; flex-direction: column; min-width: 0; }
.feed-custom.is-off { opacity: .55; }
.feed-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.feed-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 0.8.1 — комплект для клиента */
.kit-head { display: flex; flex-direction: column; gap: 6px; }
.kit-title { font-size: 18px; }
.kit-link { font-size: 14px; font-weight: 600; }
.kit-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.kit-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.kit-desc { font-size: 14px; color: var(--ink); padding-top: 6px; }
.kit-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 14px; }
.kit-line .badge { margin-left: auto; }
.badge.kit-draft { background: var(--line); color: var(--muted); }
.badge.kit-listed { background: #FDE9D4; color: #8A4B00; }
.badge.kit-published { background: #DDEBFF; color: #1D4FC4; }
.badge.kit-sold { background: #DFF3E4; color: #1E6B35; }
.badge.kit-canceled { background: var(--line); color: var(--muted); }
.draft textarea { min-height: 150px; }
.kit-sec { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kit-head { padding: 14px 16px; }

/* 0.8.3 — открытые комплекты */
.kit-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: #1D4FC4; background: #E8F0FF; border-radius: 8px; padding: 2px 8px; margin-top: 2px; }
.kit-tag.is-stale { color: #8A4B00; background: #FDE9D4; }
.kits-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.kits-bar span { margin-left: auto; color: var(--muted); }
.kit-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin-bottom: 10px; }
.kit-row.is-stale { border-color: #F5C08A; box-shadow: inset 0 0 0 1px #F5C08A; }
.kit-row-main { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.kit-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kit-age-stale { color: #8A4B00; font-weight: 600; }
@media (prefers-color-scheme: dark) { .kit-tag { background: #1d2740; color: #9DBBFF; } .kit-tag.is-stale { background: #3a2a1a; color: #F7C58C; } }

/* 0.8.4 — остатки при подтверждении */
.stock-box { display: flex; flex-direction: column; gap: 6px; }
.stock-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stock-sum { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.stock-sum.is-short { color: var(--danger); }
.stock-list { margin: 0; }
.stock-list li > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; }
.stock-qty { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.stock-qty small { font-size: 11px; color: var(--muted); }
.stock-list li.is-short .stock-qty small { color: var(--danger); }
.stock-list li.is-muted { color: var(--muted); }
.stock-other { font-size: 11px; color: var(--muted); }
.stock-note { font-size: 12px; color: var(--muted); }

.kit-ico { font-size: 13px; margin-left: 2px; line-height: 1; }

/* 0.8.8 — плотнее между блоками на «Заказах» */
.stages { margin-bottom: 6px; }
.notify-bar { margin-bottom: 6px; padding: 10px 14px; }
.orders-links { display: flex; align-items: center; gap: 8px; margin: 2px 4px 8px; }
.olink { font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.olink-end { margin-left: auto; }
.olink.is-on { color: var(--ink); font-weight: 600; }
.syncnote { margin: 0 4px 8px; }
.stages, .notify-bar { margin-bottom: 0; }
.orders-links { margin: -6px 4px -4px; }
.orders-links .olink { padding: 2px 0; }

/* состав комплекта под строкой заказа */
.kit-comp { list-style: none; margin: 2px 0 6px; padding: 6px 10px; background: #F3F6FC; border-radius: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.kit-comp li { display: flex; justify-content: space-between; gap: 10px; }
.kit-comp b { white-space: nowrap; }
.cname + .kit-ico { margin-left: -2px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .kit-comp { background: #1f2533; } }

.lst-kit { font-weight: 600; color: #1D4FC4; white-space: nowrap; text-decoration: none; padding: 6px 0; }
.lst small { white-space: nowrap; }
a.msg-chat-mark.is-kit { color: #1D4FC4; text-decoration: none; }
@media (prefers-color-scheme: dark) { .lst-kit, a.msg-chat-mark.is-kit { color: #9DBBFF; } }

/* миниатюры товаров */
.thumb { flex: none; object-fit: cover; border-radius: 8px; background: #E9EDF3; display: block; }
.thumb-s { width: 36px; height: 36px; border-radius: 7px; }
.thumb-m { width: 48px; height: 48px; border-radius: 10px; }
.thumb-empty { background: #EEF1F5; color: #B4BCC8; display: flex; align-items: center; justify-content: center; }
.thumb-empty svg { width: 62%; height: 62%; }
.ocard-item { align-items: center; }
.ocard-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-items { gap: 6px; }
.item-line { display: flex; align-items: center; gap: 12px; }
.item-line > span { flex: 1; min-width: 0; }
.kit-comp li { align-items: center; }
.kit-comp li > span { flex: 1; min-width: 0; }
.kit-comp { gap: 6px; padding: 8px 10px; }
.kit-line-row { align-items: center; gap: 12px; }
.kit-line-row > span { flex: 1; min-width: 0; }
.thumb-strip { display: flex; gap: 4px; }
@media (prefers-color-scheme: dark) { .thumb, .thumb-empty { background: #2a3040; } .thumb-empty { color: #5b6476; } }
/* заглушка фото — всегда квадрат, не растягивается в строке */
span.thumb.thumb-empty { flex: 0 0 auto; aspect-ratio: 1; }
span.thumb-s.thumb-empty { width: 36px; height: 36px; }
span.thumb-m.thumb-empty { width: 48px; height: 48px; }
.stock-list li > span.stock-qty { flex: none; }

/* списки состава и наличия — плотнее, чтобы название влезало в строку */
.kit-comp { font-size: 12.5px; line-height: 1.3; gap: 5px; padding: 7px 10px; }
.kit-comp .thumb-s, .kit-comp span.thumb-s.thumb-empty { width: 30px; height: 30px; border-radius: 6px; }
.kit-comp li { gap: 9px; }
.stock-other { font-size: 11px; line-height: 1.25; }
.stock-qty { flex-direction: row; align-items: baseline; gap: 8px; }
.stock-qty small { font-size: 12px; }

/* сканер штрихкодов */
.ni-scan-btn { margin-top: 8px; gap: 8px; }
.scan { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
.scan[hidden] { display: none; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 10%; right: 10%; top: 34%; height: 22%; border: 2px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scan-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 14px; color: #fff; }
.scan-hint { font-size: 14px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scan-close { flex: none; border: 0; border-radius: 16px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: rgba(20,22,28,.7); color: #fff; cursor: pointer; }
.scan-log { position: absolute; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.scan-msg { padding: 10px 12px; border-radius: 12px; background: rgba(20,22,28,.82); color: #fff; font-size: 14px; line-height: 1.3; animation: scanIn .18s ease-out; }
.scan-msg.is-ok:first-child { background: rgba(22,120,60,.92); }
.scan-msg.is-err:first-child { background: rgba(190,40,40,.92); }
@keyframes scanIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
body.scan-on { overflow: hidden; }

/* инвентаризация */
.inv-head { display: flex; flex-direction: column; gap: 8px; }
.inv-stat { font-size: 15px; }
.inv-scan-btn { gap: 8px; margin-top: 4px; }
.inv-intro { display: flex; flex-direction: column; gap: 10px; padding: 16px; } /* 0.17.9: отступы внутри карточки */
.inv-intro p { margin: 0; }
.inv-list li.inv-row { cursor: pointer; }
.inv-qty { flex: none; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.inv-qty small { font-size: 11px; color: var(--muted); }
.inv-qty small.inv-diff { color: #A0560B; }
.inv-qty b { min-width: 22px; text-align: right; }
.inv-plus { color: #16783C; }
.inv-miss { flex-wrap: wrap; }
.inv-miss > span:nth-child(2) { display: flex; flex-direction: column; }
.inv-miss-act { flex: none !important; display: flex; gap: 6px; align-items: center; }
.inv-miss-act form { margin: 0; }
.chip-sm { padding: 4px 10px; font-size: 12px; }
.chip-danger { color: var(--danger); border-color: #F1C7C7; }
.inv-undo { margin: 0; }
.inv-undo button { border: 0; background: none; color: var(--muted); font-size: 16px; padding: 2px 4px; cursor: pointer; }
.inv-hist { color: var(--ink); text-decoration: none; }
.inv-hist > span:first-child { display: flex; flex-direction: column; }
.inv-sheet { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.inv-sheet[hidden] { display: none; }
.inv-sheet-box { width: 100%; max-width: 560px; margin: 0 auto; background: var(--card, #fff); border-radius: 18px 18px 0 0; padding: 18px 16px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.inv-sheet-title { font-size: 16px; line-height: 1.3; }
.inv-sheet-sub { font-size: 13px; }
.inv-qty-row { display: flex; gap: 8px; align-items: stretch; }
.inv-qty-row input { flex: 1; text-align: center; font-size: 22px; font-weight: 600; }
.inv-step { flex: none; width: 52px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; font-size: 22px; color: var(--ink); cursor: pointer; }
.inv-quick { display: flex; gap: 8px; }
.inv-quick .chip { flex: 1; justify-content: center; font-size: 15px; padding: 8px 0; }
.inv-sheet-alt { display: flex; justify-content: space-between; }
@media (prefers-color-scheme: dark) { .inv-sheet-box { background: #171b24; } }
.kit-comp li > span.inv-qty { flex: none; }
.inv-sheet [hidden] { display: none !important; }
/* сканер: весь кадр без обрезки (раньше портретный экран «приближал» картинку), зум и смена камеры */
.scan video { object-fit: contain; background: #000; }
.scan-tools { position: absolute; left: 0; right: 0; top: calc(max(14px, env(safe-area-inset-top)) + 74px); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; gap: 10px; }
.scan-zoom { display: flex; gap: 6px; }
.scan-zoom button, .scan-cam { border: 0; border-radius: 16px; padding: 7px 12px; font-size: 13px; font-weight: 600; background: rgba(20,22,28,.7); color: #fff; cursor: pointer; }
.scan-zoom button.is-on { background: #fff; color: #111; }
.scan-cam[hidden] { display: none; }
/* инвентаризация: вёрстка и счёты */
.inv-head { padding: 14px; }
.inv-list:empty { display: none; }
.btn-danger-text { color: var(--danger); }
.inv-total { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.inv-total input { width: 100%; text-align: center; font-size: 34px; font-weight: 700; padding: 8px; font-variant-numeric: tabular-nums; }
.inv-tape { font-size: 13px; color: var(--muted); min-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.inv-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inv-pad button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.inv-pad button:active, .inv-pad button.is-tap { background: #E4ECFF; border-color: #B9CCFA; }
.inv-pad .inv-undo-btn { color: var(--muted); font-size: 20px; }
.inv-list[hidden] { display: none; }
/* инвентаризация: число справа узкое, «по учёту» — под названием */
.inv-list li { align-items: center; }
.inv-list li > span.inv-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-name small { font-size: 11.5px; color: var(--muted); }
.inv-name small.inv-diff { color: #A0560B; }
.inv-list li > b.inv-n { flex: none; min-width: 28px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.inv-miss-act { display: flex; gap: 6px; margin-top: 4px; flex: none; }
/* факт крупно, учёт мелко прямо под ним */
.inv-list li > span.inv-fact { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-variant-numeric: tabular-nums; }
.inv-fact b { font-size: 15px; }
.inv-fact small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.inv-fact small.inv-diff { color: #A0560B; }
/* рамка сканера: держим код — синяя, засчитали — зелёная */
.scan-frame { transition: border-color .15s, box-shadow .15s; }
.scan-frame.is-hold { border-color: #5B8CFF; }
.scan-frame.is-ok { border-color: #34C759; border-width: 3px; }
/* рамка теперь рабочая — делаем её больше, чтобы было легко попасть */
.scan-frame { left: 7%; right: 7%; top: 27%; height: 36%; }

/* уведомления */
.push-prefs { display: flex; flex-direction: column; }
.push-prefs[hidden], #push-box .btn[hidden] { display: none; }
.push-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.push-row input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.push-row span { display: flex; flex-direction: column; }
.push-row small { font-size: 12px; color: var(--muted); }
.push-note { padding: 0 6px; }
/* связывание: сколько штук в объявлении — таблетки */
.mult-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.mult-pill { position: relative; cursor: pointer; }
.mult-pill input { position: absolute; opacity: 0; pointer-events: none; }
.mult-pill span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); }
.mult-pill input:checked + span { background: #E8F0FF; border-color: #9DB6F5; color: #1D4FC4; }
.mult-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .mult-pill input:checked + span { background: #1d2740; border-color: #3b5aa8; color: #9DBBFF; } }

.draft-warn { display: block; font-size: 12.5px; color: #8A4B00; background: #FFF6EA; border: 1px solid #F3D9B6; border-radius: 10px; padding: 6px 10px; margin: 2px 0 6px; }
@media (prefers-color-scheme: dark) { .draft-warn { background: #2e2418; border-color: #4d3a22; color: #F2B36B; } }

/* ---------- Продажи ---------- */
.sales { --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#e87ba4; --s6:#008300; --s7:#6250d6; display: flex; flex-direction: column; gap: 12px; }
@media (prefers-color-scheme: dark) { .sales { --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181; --s6:#008300; --s7:#9085e9; } }
.sales .s1 { fill: var(--s1); background: var(--s1); } .sales .s2 { fill: var(--s2); background: var(--s2); }
.sales .s3 { fill: var(--s3); background: var(--s3); } .sales .s4 { fill: var(--s4); background: var(--s4); }
.sales .s5 { fill: var(--s5); background: var(--s5); } .sales .s6 { fill: var(--s6); background: var(--s6); }
.sales .s7 { fill: var(--s7); background: var(--s7); }
.sales .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
.sales .chips::-webkit-scrollbar { display: none; }
.sales .chip { text-decoration: none; }
.sales .chip.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; flex: none; vertical-align: 0; }
.sales-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.kpi:first-child:last-child { grid-column: 1 / -1; }
.kpi:first-child b { font-size: 28px; }
.sales-chart { position: relative; padding-top: 16px; }
.sales-chart svg { display: block; width: 100%; height: 150px; }
.sc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-hit { fill: transparent; }
.sc-day.is-hover .sc-hit { fill: rgba(127,127,127,.12); }
.sc-max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--muted); }
.sc-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sc-tip { position: absolute; top: 18px; z-index: 2; background: var(--ink); color: var(--card); border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.4; display: flex; flex-direction: column; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.sc-tip[hidden] { display: none; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.sc-legend span { display: inline-flex; align-items: center; }
.sales-ch-list { display: flex; flex-direction: column; }
.sch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name num" "bar num"; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; align-items: center; }
.sch-row:first-child { border-top: 0; }
.sch-row.is-on .sch-name { font-weight: 700; }
.sch-name { grid-area: name; display: flex; align-items: center; font-size: 14px; }
.sch-bar { grid-area: bar; display: block; width: 100%; height: 6px; }
.sch-bg { fill: var(--bg); }
.sch-num { grid-area: num; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.sch-num b { font-size: 15px; } .sch-num small { font-size: 11.5px; color: var(--muted); }
.sales-top li { align-items: center; }
.sales-top li > span.inv-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sales-top .inv-name small { font-size: 11.5px; color: var(--muted); }
.sales-top li > span.st-n { flex: none; width: 18px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sales-top li > b.inv-n { flex: none; font-variant-numeric: tabular-nums; }
.sales-foot { gap: 8px; }
.sales-load { font-size: 13px; }
.sca-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); margin: 0; }
.sca-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sca-name small { font-size: 12px; color: var(--muted); }
.sca-row select { flex: none; width: 150px; font-size: 13px; padding: 6px 8px; }
.sca-auto { flex: none; width: 150px; font-size: 12px; color: var(--muted); text-align: right; }

/* 0.18.0 — сервисы: переключатель в шапке */
.svc-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 6px; margin-left: -2px;
  border: 0; border-radius: 14px; background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.svc-btn:active { background: #EEF1F6; }
.svc-name { display: flex; flex-direction: column; font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.svc-name small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.svc-caret { font-size: 14px; color: var(--muted); align-self: center; }
.svc-dot { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; }
.svc-dot.svc-avito { background: #00AAFF; }
.svc-dot.svc-ozon { background: #005BFF; }
.svc-dot.svc-market { background: #FFCC00; color: #1B1B1B; }
body.svc-ozon .topbar { box-shadow: inset 0 3px 0 #005BFF; }
.svc-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 80vh; border: 0;
  border-radius: 22px 22px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); background: var(--card); color: var(--ink);
  box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.svc-sheet::backdrop { background: rgba(10,14,25,.35); }
.svc-grab { width: 40px; height: 4px; border-radius: 2px; background: #D3D8E0; margin: 2px auto 10px; }
.svc-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 16px; }
.svc-item b { flex: 1; min-width: 0; }
.svc-item.is-on { background: #EEF3FF; }
.svc-item.is-soon { opacity: .45; }
.svc-check { color: var(--accent); font-weight: 700; }
.svc-badge { position: static; }
.tabbar.tabs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Ozon */
.oz-h { display: flex; align-items: center; gap: 8px; margin: 6px 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.oz-n { background: #005BFF; color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; letter-spacing: 0; }
.oz-n.is-muted { background: #DDE3EC; color: var(--ink-2); }
.oz-list { display: flex; flex-direction: column; gap: 10px; }
.oz-empty { margin: 0 4px; }
.oz-late { color: var(--danger); font-weight: 600; }
.oz-soon { color: #B45309; font-weight: 600; }
.oz-foot { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 6px; }
.oz-comp li { padding: 4px 0; }
.badge.oz-st-awaiting_packaging { background: #E5EDFF; color: #0047CC; }
.badge.oz-st-awaiting_deliver { background: #E3F6EC; color: #11734B; }
.oz-comp .inv-name { display: flex; flex-direction: column; gap: 1px; }
.oz-comp .inv-name small { color: var(--muted); font-size: 12px; }
.flash-warn { background: #FFF6E0; color: #8A5A00; }
.thumb-l { width: 64px; height: 64px; border-radius: 12px; }
.oz-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ozg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.ozg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ozg-main b { font-size: 16px; }
.ozg-main small { font-size: 13px; }
.ozg-n { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.1; }
.ozg-n b { font-size: 24px; color: #005BFF; }
.ozg-n small { font-size: 12px; color: var(--muted); }
.ozg-head { display: flex; align-items: center; gap: 12px; padding: 14px; }
.ozs { display: flex; flex-direction: column; gap: 12px; }
.ozs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ozs-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.ozs-list li:first-child { border-top: 0; }
.ozs-list label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ozs-list label.check input { width: 22px; height: 22px; accent-color: #005BFF; }
.ozs-list label.check small { margin-left: auto; font-size: 13px; }
.ozs-count { display: flex; align-items: baseline; gap: 8px; }
.ozs-count > b { font-size: 34px; line-height: 1; }
.ozs-count span { color: var(--muted); }
.ozs-count span b { color: var(--ink); }
.ozs-bar { height: 8px; border-radius: 4px; background: #E6EAF0; overflow: hidden; }
.ozs-bar span { display: block; height: 100%; width: 0; background: #005BFF; transition: width .2s; }
.ozs-bar span.is-full { background: #16A34A; }
.ozs-scan .hint { margin: 0; }
.oz-log li > span { font-size: 14px; }
label.check span small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* 0.18.5 — Ozon: разделители по сериям пластика */
.oz-ser { margin: 14px 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; }
.oz-list > .oz-ser:first-child { margin-top: 4px; }

/* 0.18.6 — Ozon: «на катушке» / refill, окно после скана */
.oz-kind { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.4; }
.oz-kind.is-spool { background: #E6F0FF; color: #0B4FC2; }
.oz-kind.is-refill { background: #FFEFD6; color: #9A5200; }
.oz-ser .oz-kind { margin-left: 6px; vertical-align: 1px; }
.ozg-main { display: flex; flex-direction: column; gap: 3px; }
.oz-sheet { max-height: 88vh; overflow-y: auto; }
.ozq-head { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 4px 4px 12px; }
.ozq-head b { font-size: 18px; }
.ozq-ok { color: #16783C; font-weight: 700; font-size: 14px; }
.oz-sheet .btn { margin-top: 8px; }
.ozq-note { display: block; text-align: center; margin-top: 6px; }
.ozq-list { display: flex; flex-direction: column; max-height: 40vh; overflow-y: auto; margin-top: 6px; border-top: 1px solid var(--line, #E5E8EE); }
.ozq-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px; border-bottom: 1px solid var(--line, #E5E8EE); }
.ozq-row input { width: 22px; height: 22px; flex: none; }
.ozq-row small { margin-left: auto; }

/* 0.19.0 — Ozon: деление заказов */
.oz-splitlink { display: flex; align-items: center; gap: 10px; margin-top: 10px; text-decoration: none; color: inherit; }
.ozsp-row { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.ozsp-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ozsp-row > small { white-space: nowrap; }

/* 0.20.0 — сборка нескольких плиток сразу */
.ozm-toggle { margin: 0 0 10px; }
.ozm-bar { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 11; background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px 12px; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.ozm-bar[hidden] { display: none; }
.ozm-cnt { font-size: 14px; text-align: center; color: var(--ink); margin-bottom: 8px; }
body.oz-multi .oz-list { padding-bottom: 120px; }
body.oz-multi a.ozg[data-quick] { position: relative; border: 2px solid transparent; }
body.oz-multi a.ozg[data-quick]::before { content: ''; position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9c0cc; background: #fff; z-index: 1; }
body.oz-multi a.ozg.is-sel { border-color: #005BFF; background: #eef4ff; }
body.oz-multi a.ozg.is-sel::before { content: '✓'; background: #005BFF; border-color: #005BFF; color: #fff; font-size: 14px; line-height: 18px; text-align: center; font-weight: 700; }
body.oz-multi a.ozg.is-off { opacity: .4; }
.scan-slot:empty { display: none; }
.scan-slot { position: absolute; left: 0; right: 0; bottom: 0; max-height: 38vh; overflow-y: auto; background: #fff; color: #111; border-radius: 16px 16px 0 0; padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
body.scan-multi .scan-log { bottom: calc(38vh + 8px); }
.ozm-chk-h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ozm-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.ozm-row:last-child { border-bottom: 0; }
.ozm-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.ozm-row span.t { flex: 1; min-width: 0; }
.ozm-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #bbb; flex: none; text-align: center; line-height: 18px; font-size: 13px; color: #fff; }
.ozm-row.is-done { color: #7a7f88; }
.ozm-row.is-done .ozm-tick { background: #2a9d4a; border-color: #2a9d4a; }
.ozm-row.is-done span.t { text-decoration: line-through; }
.ozm-sum { list-style: none; margin: 0 0 8px; padding: 0 4px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

body.scan-single .scan-log { bottom: calc(200px + 8px); }
.scan-slot .oz-kind { margin-top: 2px; }
.scan-slot .ozs-manual { margin-top: 10px; }
.ozm-manual { flex: none; border: 1px solid var(--line, #d5d9e0); background: #fff; color: #333; border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* 0.21.0 — «Сборка»: пустой экран, радужная карточка деления, большие заказы */
.ozm-toggle[hidden] { display: none; }
.oz-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.oz-done b { font-size: 16px; }
.oz-done small { font-size: 13px; }
.oz-done-ic { width: 44px; height: 44px; border-radius: 50%; background: #E3F5E9; color: #16783C; font-size: 24px; line-height: 44px; font-weight: 700; }
.oz-splitlink.rainbow { margin: 4px 0 12px; }
.oz-splitlink.rainbow .ozg-main b { font-size: 17px; }
.ozb { display: flex; gap: 10px; align-items: flex-start; padding: 12px; cursor: pointer; }
.ozb input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.ozb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ozb-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ozb-line.is-bad { color: #B3261E; font-weight: 600; }
.ozb-st { font-size: 12px; font-weight: 700; margin-top: 2px; }
.ozb-st.is-ok { color: #16783C; } .ozb-st.is-warn { color: #A05A00; } .ozb-st.is-bad { color: #B3261E; }
.ozb.is-short { opacity: .75; }

/* 0.22.0 — коробки */
.bx-boxes { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.bx-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.bx-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.bx-line:last-child { border-bottom: 0; }
.bx-line.is-zero { opacity: .55; }
.bx-stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.bx-stepper b { min-width: 22px; text-align: center; font-size: 16px; }
.bx-step { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 20px; font-weight: 600; color: var(--ink); cursor: pointer; }
.bx-step:disabled { opacity: .35; }
.bx-rm { width: auto; height: auto; padding: 6px 10px; font-size: 13px; }
.bx-warn { display: block; color: #A05A00; font-weight: 600; margin-bottom: 4px; }
.bx-ok { color: #16783C; }
#bx-pool { margin-top: 10px; }
.ozbx-open { margin-top: 8px; font-weight: 700; }

/* 0.22.1 — «Разделить заказы»: карточки */
.ozsp-warn { font-size: 13px; font-weight: 600; color: #B3261E; background: #FCE8E6; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.ozsp-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ozsp-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; cursor: pointer; }
.ozsp-card input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.ozsp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ozsp-unit { display: flex; align-items: center; gap: 10px; }
.ozsp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ozsp-name b { font-size: 14px; line-height: 1.25; }
.ozsp-n { font-size: 15px; font-weight: 700; color: #005BFF; flex: none; }

/* 0.22.2 — «Выбрать несколько» липнет к верху экрана под шапкой, радужная карточка прокручивается */
.ozm-toggle { position: sticky; top: var(--topbar-h, 61px); z-index: 4; background: var(--bg); box-shadow: 0 0 0 8px var(--bg); }
.ozm-toggle.btn-ghost { border: 1px solid var(--line); }

/* 0.22.3 — «Последние 15 этикеток» */
.ozl-row { display: flex; align-items: stretch; padding: 0; overflow: hidden; margin-top: 12px; }
.ozl-main { flex: 1; padding: 16px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.ozl-main.is-busy { opacity: .6; }
.ozl-more { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none; }

/* 0.22.5 — галочки в карточках без «сломанной» рамки, кнопки выбора */
.ozsp-card input[type=checkbox], .ozb input[type=checkbox], .ozq-row input[type=checkbox] { min-height: 0; padding: 0; margin: 2px 0 0; width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.ozsp-card input:focus, .ozb input:focus, .ozq-row input:focus { outline: none; }
.ozsp-card:has(input:checked), .ozb:has(input:checked) { border-color: #005BFF; background: #F2F7FF; }
.ozsp-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.ozsp-tools .btn { flex: 1; margin: 0; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
.ozsp-tools .btn:disabled { opacity: .45; }

.ozsp-whole-note { display: block; margin: 4px 2px 12px; font-size: 12px; }
#ozsp-whole { border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
#ozsp-whole:disabled { opacity: .45; }

/* 0.22.7 — вкладка «Большие»: плитки заказов */
.ozb-note { display: block; margin: -2px 2px 10px; font-size: 12px; }
.ozb-q { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.15; }
.ozb-q b { font-size: 15px; color: #005BFF; }
.ozb-q small { font-size: 11px; color: var(--muted); }
.ozb-q small.is-bad { color: #B3261E; font-weight: 700; }
.ozsp-card.ozb { opacity: 1; }
.ozsp-card.ozb.is-short { opacity: .7; }
.ozb-many { text-decoration: none; color: var(--ink); cursor: pointer; }
.ozsp-body .ozb-st { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 0; }

/* 0.22.8 — экран «Коробки» и пустая страница деления */
.bx-top { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 12px; }
.bx-sum { font-size: 14px; color: var(--muted); }
.bx-sum b { color: var(--ink); }
.bx-pool { margin: 12px 0; padding: 12px 14px; }
.bx-pool.is-done { background: #E8F5EC; border-color: #BFE3CB; }
.bx-ok { color: #16783C; font-weight: 700; font-size: 15px; }
.bx-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.bx-box { padding: 12px 14px; }
.bx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bx-head b { font-size: 16px; }
.bx-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: #EEF1F6; color: #445; }
.bx-pill.is-over { background: #FFF1D6; color: #A05A00; }
.bx-rm { margin-left: auto; border: 0; background: transparent; color: #B3261E; font-size: 13px; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.bx-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bx-item.is-zero { opacity: .55; }
.bx-ih { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bx-th { width: 40px; height: 40px; border-radius: 10px; background: #E7EAF0; flex: none; overflow: hidden; }
.bx-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-nm { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.bx-nm b { font-size: 14px; line-height: 1.25; font-weight: 600; }
.bx-left { font-size: 16px; color: #005BFF; flex: none; }
.bx-addbtn { border: 1px dashed #B9C0CC; background: transparent; color: var(--ink); font-weight: 600; margin: 4px 0 12px; }
.bx-foot { display: block; margin: 10px 2px 0; font-size: 12px; line-height: 1.4; }
.bx-stepper b { font-size: 17px; }
.bx-step { background: #fff; }
.ozsp-empty-act { margin-top: 14px; }

/* 0.23.0 */
.ozbs-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.ozbs-box { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ozbs-box b { font-size: 15px; }
.ozbs-manual { border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; margin-top: 8px; text-align: center; text-decoration: none; display: block; }
.ozb-tile { color: var(--ink); text-decoration: none; cursor: pointer; }
.ozb-tile.is-short { cursor: default; }

.ozb-st.is-plain { color: var(--muted); font-weight: 600; }
.ozs-comp { font-size: 13px; color: var(--muted); font-weight: 400; }

.ozbt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ozbt { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ozbt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ozbt-h b { color: var(--ink); font-size: 14px; }
body.svc-market .topbar { box-shadow: inset 0 3px 0 #FFCC00; }

.ozbt-box { font-size: 13px; color: var(--ink); margin-top: 2px; }
.ozbt-lbl { font-size: 13px; font-weight: 600; color: #005BFF; text-decoration: none; }
.ozbs-manual[hidden] { display: none; }

/* 0.25.0 — выбор нескольких больших заказов */
body.oz-multi .ozsp-cards { padding-bottom: 120px; }
body.oz-multi a.ozb-tile { position: relative; border: 2px solid transparent; }
body.oz-multi a.ozb-tile::before { content: ''; position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9c0cc; background: #fff; z-index: 1; }
body.oz-multi a.ozb-tile.is-sel { border-color: #005BFF; background: #eef4ff; }
body.oz-multi a.ozb-tile.is-sel::before { content: '✓'; background: #005BFF; border-color: #005BFF; color: #fff; font-size: 14px; line-height: 18px; text-align: center; font-weight: 700; }
body.oz-multi a.ozb-tile.is-off { opacity: .4; }
.oz-seg .seg-btn span:first-child { font-size: 14px; }
.oz-seg.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 0.26.0 — отложенное напоминание: тихо, без оранжевого */
.action-line.is-sleep { background: var(--card); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.sleep-tag { font-size: 13px; color: var(--muted); }
.action-when { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.action-when select, .action-when input[type=date] { flex: 1; min-width: 0; }

/* 0.27.0 — компактные кнопки срока напоминания */
.action-when { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.action-when-t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.when-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.when-chip { cursor: pointer; }
.when-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.when-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.when-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.when-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.when-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.when-date input[type=date] { flex: 0 1 auto; width: auto; min-height: 36px; padding: 0 10px; font-size: 14px; }

/* 0.27.0 — страница уведомлений */
#push-box .sect { margin-bottom: 12px; }
#push-box .sect h2 { display: flex; align-items: center; gap: 8px; }
.svc-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
#push-box .push-row:first-of-type, .push-row-first { border-top: 0; padding-top: 4px; }
.snooze-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.snooze-btns .chip { justify-content: center; min-height: 44px; font-size: 14px; }
.snooze-btns[hidden], #snooze-off[hidden] { display: none; }
.quiet-times { display: flex; gap: 10px; margin-top: 8px; }
.quiet-times label { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.quiet-times input[type=time] { flex: 1; min-width: 0; min-height: 40px; font-size: 16px; padding: 0 10px; }
.quiet-times.is-off { opacity: .4; pointer-events: none; }
.push-foot { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

/* 0.27.0 — меню «Ещё» по площадкам */
.menu-h { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.menu-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0; }
.menu-dot-avito { background: #0AF; }
.menu-dot-ozon { background: #005BFF; }
.menu-dot-market { background: #FFCC00; color: #1b1b1b; }

.seg:not(.seg-3):not(.oz-seg) .seg-btn { font-size: 13px; padding-left: 0; padding-right: 0; }

/* 0.27.1 — галочки на странице уведомлений: не растягивать, ровные строки */
.push-row { padding: 12px 0; gap: 14px; min-height: 0; }
.push-row input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: none; align-self: center; }
.push-row span { gap: 2px; }
.push-row b { font-size: 16px; line-height: 1.25; }
.push-row small { line-height: 1.3; }
#push-box .sect h2 { margin-bottom: 4px; }

/* 0.27.3 — задачи: молния рядом с поиском; вкладки как раньше */
.seg:not(.seg-3):not(.oz-seg) .seg-btn { font-size: inherit; }
.search-row { display: flex; gap: 8px; align-items: stretch; }
.search-row .search { flex: 1; min-width: 0; margin: 0; }
.task-btn { position: relative; flex: none; width: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); text-decoration: none; }
.task-ic { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .6; }
.task-btn.has-n .task-ic { filter: none; opacity: 1; }
.task-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #F08A24; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); box-sizing: content-box; }
.task-btn.is-on { background: #FFF1E0; border-color: #F5A54A; }
.task-btn.is-on .task-ic { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .task-btn.is-on { background: #3A2410; border-color: #B8721F; } }

.task-btn .task-ic { filter: none; opacity: 1; }

/* 0.28.0 — кнопка задач всегда на месте; свободные задачи */
.task-btn .task-ic { filter: grayscale(1); opacity: .55; }
.task-btn.has-n .task-ic, .task-btn.is-on .task-ic { filter: none; opacity: 1; }
.task-add { margin: 4px 0 10px; }
.ftasks { margin-bottom: 12px; }
.ftask { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ftask:first-child { border-top: 0; }
.ftask-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ftask-body b { font-size: 16px; font-weight: 600; }
.ftask-body small { font-size: 13px; color: var(--muted); }
.ftask.is-active { box-shadow: inset 4px 0 0 #F08A24; background: #FFF7EE; }
.ftask.is-active small { color: #B35C00; font-weight: 700; }
.ftask-ok { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 20px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .ftask.is-active { background: #2A1F14; } .ftask.is-active small { color: #F7B067; } }

/* 0.28.1 — карточка формы (инлайн-стили запрещены CSP) */
.form-card { padding: 16px; margin-bottom: 24px; }
.form-card .action-form { gap: 12px; }
.form-card input[type=text] { box-sizing: border-box; }
.form-card .when-chips { gap: 4px; flex-wrap: nowrap; } .form-card .when-chip span { padding: 0 9px; font-size: 14px; white-space: nowrap; }
.form-card .when-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .form-card .when-chip span { display: flex; justify-content: center; padding: 0 2px; font-size: 13px; }

/* галочка «оставить как образец» в форме комплекта */
.keep-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.keep-row input[type=checkbox] { width: 22px; height: 22px; min-height: 0; flex: none; margin: 2px 0 0; }
.keep-row span { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.keep-row small { font-weight: 400; line-height: 1.35; }

/* печать этикеток через «Мост печати» */
#prt-btn[hidden], #prt-box[hidden], #prt-prod[hidden], #prt-nobridge[hidden] { display: none; }
.prt-state { padding: 10px 12px; border-radius: 12px; background: var(--line); font-weight: 600; }
.prt-state.is-bad, #prt-msg.is-bad { color: #B3261E; }
.prt-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#prt-form .btn { margin-top: 0; }

/* «Другое» под главной кнопкой сборки: редкие варианты спрятаны */
.ozbs-more { margin-top: 8px; }
.ozbs-more summary { text-align: center; color: var(--muted); font-weight: 600; padding: 10px; cursor: pointer; list-style: none; }
.ozbs-more summary::-webkit-details-marker { display: none; }

/* «Другое» — серая кнопка по центру; напоминание о необратимости заметнее */
.ozbs-more > summary { border: 1px solid var(--line); background: var(--card); border-radius: 14px; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ozbs-more[open] > summary { margin-bottom: 8px; }
.oz-sheet .ozq-note { color: #8A4B00; font-weight: 600; }
@media (prefers-color-scheme: dark) { .oz-sheet .ozq-note { color: #F7C58C; } }
#prt-avito[hidden] { display: none; }
#prt-box, #prt-prod { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#prt-box[hidden], #prt-prod[hidden] { display: none; }
.prt-p { font-weight: 500; opacity: .7; font-size: 13px; }

.ozh-prog { margin-top: 10px; display: grid; gap: 6px; }
.ozh-prog[hidden] { display: none; }
.ozh-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ozh-bar i { display: block; height: 100%; width: 0; background: #1F4FD8; border-radius: 6px; transition: width .4s ease; }
.ozh-bar i.is-bad { background: #B3261E; }
.ozs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 0.36.0 — сотруднику с обязательным сканированием кнопки «без скана» не показываем (сервер всё равно проверяет) */
/* без сканирования: камеры нет, блок скана и пометка «без скана» не нужны */
.no-scan .ozs-scan, .no-scan #ozq-ok, .no-scan #ozbs-ok, .no-scan #ozbm-ok { display: none !important; }
.who-mode { font-size: .8rem; }
.who-mode.is-skip { color: #b36b00; font-weight: 600; }

/* 0.36.2 — «Разделить заказы»: «Другое» — серая кнопка по центру, предупреждение — спокойная надпись по центру внизу */
.ozsp-more > summary { background: #E6E8EC; border-color: transparent; }
@media (prefers-color-scheme: dark) { .ozsp-more > summary { background: #232730; } }
.ozsp-more[open] > summary { margin-bottom: 8px; }
.ozsp-info { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 8px 4px; }

/* 0.36.3 — метка «сканирует» в списке пользователей: штрихкод с красным лучом (цветной — сканирует, серый — может не сканировать) */
.scan-ic { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; }
.scan-ic svg { display: block; }
.scan-ic .sc-bars { fill: none; stroke: #B4B9C2; stroke-width: 1.6; stroke-linecap: butt; }
.scan-ic .sc-thin { stroke-width: 1; }
.scan-ic .sc-laser { fill: none; stroke: #B4B9C2; stroke-width: 1.8; stroke-linecap: round; opacity: .55; }
.scan-ic.is-on .sc-bars { stroke: #1F2937; }
.scan-ic.is-on .sc-laser { stroke: #E5202E; opacity: 1; }
@media (prefers-color-scheme: dark) {
  .scan-ic .sc-bars { stroke: #5B6270; } .scan-ic .sc-laser { stroke: #5B6270; }
  .scan-ic.is-on .sc-bars { stroke: #E5E7EB; } .scan-ic.is-on .sc-laser { stroke: #FF4A57; }
}
.user-row .user-main { flex: 1; min-width: 0; }
.user-row > span.scan-ic:not(.badge):not(.avatar) { flex: 0 0 26px; margin: 0 10px; }
.user-row .badge { min-width: 78px; text-align: center; }

/* покупатели Ozon: отказы */
.bsearch { display: flex; gap: 8px; margin: 0 0 10px; }
.bsearch input { flex: 1; min-width: 0; }
.bsort { display: flex; gap: 6px; margin: 0 0 8px; }
.bsort a { flex: 1; text-align: center; padding: 7px 2px; border-radius: 10px; background: #E6E8EC; color: inherit; font-size: 12px; font-weight: 600; text-decoration: none; }
.bsort a.on { background: #111827; color: #fff; }
.list-row > i.bdot, i.bdot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; background: #B4B9C2; }
i.bdot.is-r { background: #E5202E; } i.bdot.is-y { background: #F2B705; } i.bdot.is-g { background: #22A55B; }
.list-row > span.bmain, .bmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bmain small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
em.btag { font-style: normal; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 2px 7px; background: #FDE2E4; color: #B3121F; white-space: nowrap; }
em.btag.is-y { background: #FFF1C2; color: #8A6500; } em.btag.is-g { background: #D8F3E3; color: #157A43; } em.btag.is-n { background: #E6E8EC; color: #4B5563; }
.bord { background: var(--card, #fff); border-radius: 14px; border-left: 5px solid #B4B9C2; padding: 8px 12px; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.bord.is-r { border-left-color: #E5202E; } .bord.is-y { border-left-color: #F2B705; } .bord.is-g { border-left-color: #22A55B; }
.bord-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.bord-i { display: flex; align-items: center; gap: 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bsort a { background: #2A2F3A; }
  :root:not([data-theme="light"]) .bsort a.on { background: #E5E7EB; color: #111827; }
  :root:not([data-theme="light"]) em.btag { background: #5A1D22; color: #FFB4B9; }
  :root:not([data-theme="light"]) em.btag.is-y { background: #4D3C00; color: #FFD866; }
  :root:not([data-theme="light"]) em.btag.is-g { background: #0F3B24; color: #7EE2A8; }
  :root:not([data-theme="light"]) em.btag.is-n { background: #2A2F3A; color: #C9CED6; }
}

/* список покупателей: строка с полосой заказов */
.brow { align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brow .bmain { gap: 6px; }
.brow-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bnum { font-size: 18px; letter-spacing: .2px; }
.bseq { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bseq i { width: 16px; height: 16px; border-radius: 4px; background: #C9CED6; }
.bseq i.is-g { background: #2FB36B; } .bseq i.is-y { background: #F5B301; } .bseq i.is-r { background: #D92D20; }
.bseq small { font-size: 12px; color: var(--muted); margin-right: 2px; }
.bstat { font-size: 14px; color: var(--muted); }
.bstat b { color: var(--ink, #111); font-size: 15px; }
.bbad { font-size: 14px; font-weight: 700; color: #D92D20; }
.bsum { font-size: 13px; color: var(--muted); }
.bpct { font-size: 22px; font-weight: 800; flex: none; }
.bpct.is-bad { color: #D92D20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bseq i { background: #4B5563; } :root:not([data-theme="light"]) .bbad, :root:not([data-theme="light"]) .bpct.is-bad { color: #FF7A70; } }


/* риск покупателя при сборке и карантин */
.qwarn { display: flex; gap: 10px; align-items: flex-start; }
.qwarn .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ozs-list li.is-risk { background: #FDF3F2; margin: 0 -14px; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.qrisk { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: #FDE7E5; border: 1px solid #E7A39C; color: #8E1A10; text-decoration: none; font-size: 14px; font-weight: 500; }
.qrisk span { flex: 1; }
.qrisk .ic { width: 18px; height: 18px; flex: none; }
.qbadge { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 26px; padding: 0 8px; border-radius: 13px; background: #FDE7E5; color: #8E1A10; font-size: 13px; font-weight: 700; }
.qbadge .ic { width: 14px; height: 14px; }
.ozq-row.is-risk { background: #FDF3F2; }
.qrisk-m { color: #8E1A10; font-weight: 600; }
.qlink { display: flex; align-items: center; gap: 10px; justify-content: flex-start; text-align: left; }
.qlink span { flex: 1; }
.qlink .ic { width: 20px; height: 20px; flex: none; }
.qn { min-width: 24px; height: 24px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.qcard { display: flex; flex-direction: column; gap: 10px; }
.qcard-h { display: flex; gap: 12px; align-items: center; }
.qdl { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--attn); border: 1px solid var(--attn-line); color: var(--attn-ink); font-size: 14px; }
.qdl.is-late { background: var(--err-bg); border-color: #E7A39C; color: #8E1A10; }
.qdl .ic { width: 18px; height: 18px; flex: none; }
.qact { display: flex; flex-direction: column; gap: 10px; }
.btn.btn-danger { background: var(--danger); color: #fff; border-color: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.btn-danger .ic { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ozs-list li.is-risk, :root:not([data-theme="light"]) .ozq-row.is-risk { background: #2E1A18; }
  :root:not([data-theme="light"]) .qrisk, :root:not([data-theme="light"]) .qbadge { background: #3A1714; border-color: #7A3A34; color: #FFB4AB; }
  :root:not([data-theme="light"]) .qrisk-m { color: #FFB4AB; }
}

/* агент печати */
.ptoken { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px; word-break: break-all; font-size: 14px; }
.pstate { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pstate i { width: 12px; height: 12px; border-radius: 50%; background: #9AA1AD; flex: none; }
.pstate.is-on i { background: #22A55B; } .pstate.is-off i { background: #D92D20; }
.pprn { display: flex; flex-direction: column; gap: 8px; }
.pprn-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdot { width: 12px; height: 12px; border-radius: 50%; background: #9AA1AD; flex: none; }
.pdot.is-ok { background: #22A55B; } .pdot.is-warn { background: #F2B705; } .pdot.is-off { background: #D92D20; }
.pprn-msg { font-size: 15px; }
.pcmds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pj { align-items: flex-start; }
.pj-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pj-main .mono { word-break: break-all; }
.agent-off { display: block; margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: var(--attn); border: 1px solid var(--attn-line); color: var(--attn-ink); font-size: 14px; }

/* 0.40.3 — номер с этикетки Ozon рядом с номером отправления */
.ozbt-n { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.ozlno { background: #15171C; color: #fff; font: 700 14px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; }
.ozlno[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .ozlno { background: #F3F4F6; color: #15171C; } }

/* 0.40.4 — заказ уже собирает другой сотрудник */
.qclaim { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6B4A00; background: #FFF6DB; border: 1px solid #E9B949; border-radius: 8px; padding: 2px 8px; }
.qclaim svg { width: 12px; height: 12px; }
.qb-claim { background: #FFF6DB; color: #6B4A00; border-color: #E9B949; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li.is-claimed .mono, .ozq-row.is-claimed .mono { opacity: .55; }
@media (prefers-color-scheme: dark) { .qclaim, .qb-claim { background: #3A2E10; color: #F3D98B; border-color: #7A5E1C; } }

/* 0.41.0 — отзывы клиентам */
.rvban { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; background: #FFF6DB; border: 1px solid #E9B949; border-radius: 14px; color: #6B4A00; }
.rvban-a { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px 6px 14px; color: inherit; text-decoration: none; min-width: 0; }
.rvban-a span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rvban-a small { font-size: 12px; opacity: .8; }
.rvban-x { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.rv-text { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.rv-text p { margin: 0; font-size: 15px; line-height: 1.45; user-select: all; }
.rv-card { display: flex; flex-direction: column; gap: 10px; }
.rv-h { display: flex; gap: 12px; align-items: flex-start; }
.rv-q { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line); color: #4B5563; font-size: 14px; }
.rv-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-act .btn { flex: 1; }
@media (prefers-color-scheme: dark) { .rvban { background: #3A2E10; color: #F3D98B; border-color: #7A5E1C; } }

/* 0.42.1 — фото комплекта */
.kit-imgs { display: grid; grid-template-columns: repeat(auto-fill, 92px); gap: 8px; margin-top: 8px; }
.kit-img { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--line); }
.kit-imgs .kit-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; }
.kit-img-main { position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(31,79,209,.92); color: #fff; font-size: 10px; font-weight: 600; }
.kit-img-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; margin: 0; background: rgba(21,23,28,.62); }
.kit-img-bar button { flex: 1; height: 28px; border: 0; background: none; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.kit-img-bar button:disabled { opacity: .3; cursor: default; }
.kit-photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.kit-photo-form .btn { width: auto; min-height: 36px; padding: 0 14px; }
.kit-photo-form .btn .ic { width: 18px; height: 18px; }
.kit-photo-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.kit-photo-btn.is-busy { opacity: .55; pointer-events: none; }
.kit-photo-note { flex-basis: 100%; }
.kit-details { margin-top: 12px; border-top: 1px solid var(--line); }
.kit-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 500; cursor: pointer; list-style: none; }
.kit-details summary::-webkit-details-marker { display: none; }
.kit-details summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; opacity: .55; transition: transform .15s; }
.kit-details[open] summary::after { transform: rotate(-135deg); }
.kit-details .kit-desc { padding-bottom: 6px; }

.ozm-row span.t .oz-kind { margin-top: 3px; }

/* отзывы: ссылки одной строкой, кнопки «готово / не нужно» */
.rv-links { display: flex; gap: 8px; }
.rv-links a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.2; }
.rv-links a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-act { flex-wrap: nowrap; }
.rv-act .rv-done { flex: 2; white-space: nowrap; background: #E4F6EA; border-color: #8FD1A4; color: #17753A; font-weight: 700; }
.rv-act .rv-skip { flex: 1; white-space: nowrap; color: #6B7280; }
.rv-edit { margin-left: auto; margin-right: 12px; font-size: 13px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .rv-act .rv-done { background: #14301F; border-color: #2F6B45; color: #7BD79B; } }
.sect > .kit-details { border-top: 0; margin-top: 0; }

.ozbt { position: relative; }
.ozbt-go { color: inherit; text-decoration: none; }
.ozbt-go::after { content: ''; position: absolute; inset: 0; }
.ozbt .qrisk { position: relative; z-index: 1; }
.ozbt:active { background: var(--bg, #f2f3f5); }
#bx-magic[hidden], #ozbs-single[hidden] { display: none; }
.prt-row{display:flex;gap:8px;margin-top:8px}
.prt-row .btn{flex:1;min-width:0;padding:10px 6px;font-size:.88rem;line-height:1.2;text-align:center}
.prt-row .btn[hidden]{display:none}

.scan-sticker{position:absolute;left:50%;bottom:calc(37% - 56px);transform:translateX(-50%);display:none;flex-direction:column;align-items:center;z-index:5;cursor:pointer;width:min(70vw,300px)}
.scan-sticker.is-on{display:flex;animation:stkIn .25s cubic-bezier(.2,1.4,.4,1)}
.scan-sticker img{width:min(46vw,200px);height:auto;filter:drop-shadow(0 4px 12px rgba(0,0,0,.5))}
.scan-sticker b{margin-top:-34px;position:relative;background:#d62d2d;color:#fff;padding:8px 14px;border-radius:12px;font-size:17px;line-height:1.2;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.4)}
@keyframes stkIn{from{transform:translateX(-50%) translateY(40px) scale(.7);opacity:0}to{transform:translateX(-50%);opacity:1}}
.chk{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
.chk input[type=checkbox]{width:22px;height:22px;min-height:0;padding:0;margin:0;flex:none}

.sold-h{margin:14px 0 6px;font-size:15px}
.sold-row{padding:10px 0;border-top:1px solid var(--line,#e6e8ec)}
.sold-top{display:flex;justify-content:space-between;gap:10px}
.sold-p{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sold-p span{display:flex;flex-direction:column;padding:4px 9px;border-radius:10px;background:var(--bg,#f2f3f5);font-size:13px}
.sold-p span i{font-style:normal;font-size:11px;opacity:.7}
.sold-p span.is-main{background:#e4efff}
.sold-p span.is-odd{opacity:.5}

/* Цены Ozon */
.pr-zones{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.pr-z{display:flex;flex-direction:column;padding:4px 10px;border-radius:10px;background:var(--bg);font-size:13px;min-width:64px}
.pr-z i{font-style:normal;font-size:11px;opacity:.75}
.pr-z-red{background:#F7C9C4;color:#6D1209}.pr-z-yellow{background:#FFF0A6;color:#5B4A00}.pr-z-white{background:#F1F2F4;color:var(--ink)}.pr-z-green{background:#C9EBC4;color:#17501F}.pr-z-purple{background:#E2C9F4;color:#4A1A6B}
@media (prefers-color-scheme: dark){.pr-z-red{background:#5A2420;color:#FFD9D5}.pr-z-yellow{background:#5A4B14;color:#FFF0B3}.pr-z-white{background:#2A2D33;color:var(--ink)}.pr-z-green{background:#1F4423;color:#CFF0CB}.pr-z-purple{background:#40245A;color:#EBD6FA}}
.pr-row{display:block;padding:10px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.pr-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}
.pr-cell{display:flex;flex-direction:column;padding:4px 9px;border-radius:10px;background:var(--bg);font-size:13px}
.pr-cell i{font-style:normal;font-size:11px;opacity:.7}
.pr-bad{outline:2px solid var(--danger)}.pr-bad-t{color:var(--danger);display:block;margin-top:4px}
.pr-spark{margin-left:auto}.pr-spark polyline{stroke:var(--muted);stroke-width:2}.pr-spark circle{fill:var(--muted)}
.pr-spark.pr-down polyline{stroke:var(--danger)}.pr-spark.pr-down circle{fill:var(--danger)}.pr-spark.pr-up polyline{stroke:#17613A}.pr-spark.pr-up circle{fill:#17613A}
.pr-spark-none{font-size:11px;color:var(--muted)}
.pr-badge{padding:3px 9px;border-radius:10px;font-size:13px;white-space:nowrap}
.pr-field{display:flex;flex-direction:column;gap:3px;margin:10px 0}
.pr-cost{padding:10px 0;border-top:1px solid var(--line);display:grid;gap:6px}
.pr-bars{margin-left:auto;display:flex;gap:5px;align-items:flex-end;height:46px}.pr-bar-w{display:flex;flex-direction:column;align-items:center;gap:2px;justify-content:flex-end}.pr-bar-w small{font-size:10px;color:var(--muted);line-height:1}.pr-bar{display:block;width:16px;border-radius:3px 3px 0 0;background:var(--line-strong)}.pr-bar-none{height:3px}
.pr-h8{height:8px}.pr-h9{height:9px}.pr-h10{height:10px}.pr-h11{height:11px}.pr-h12{height:12px}.pr-h13{height:13px}.pr-h14{height:14px}.pr-h15{height:15px}.pr-h16{height:16px}.pr-h17{height:17px}.pr-h18{height:18px}.pr-h19{height:19px}.pr-h20{height:20px}.pr-h21{height:21px}.pr-h22{height:22px}.pr-h23{height:23px}.pr-h24{height:24px}.pr-h25{height:25px}.pr-h26{height:26px}.pr-h27{height:27px}.pr-h28{height:28px}.pr-h29{height:29px}.pr-h30{height:30px}
.pr-bar.pr-z-white{background:#A9AFB8}.pr-bar.pr-z-red{background:#D64535}.pr-bar.pr-z-yellow{background:#F0C419}.pr-bar.pr-z-green{background:#3FA34D}.pr-bar.pr-z-purple{background:#9B4FD0}
.pr-filters .chips{margin:6px 0;flex-wrap:wrap;overflow:visible}.pr-fl b{font-size:13px}.pr-act{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.pr-row[hidden],.pr-group[hidden]{display:none}.pr-row a{color:inherit;text-decoration:none}
.pr-chip-red{border-color:#D64535}.pr-chip-yellow{border-color:#F0C419}.pr-chip-white{border-color:#A9AFB8}.pr-chip-green{border-color:#3FA34D}.pr-chip-purple{border-color:#9B4FD0}
.pr-filters .chips{flex-wrap:nowrap;overflow-x:auto}.pr-filters .chip{flex:none}
.pr-filters .chip.chip-active{background:var(--ink);color:var(--bg);border-color:var(--ink)}

.pr-row{display:flex;gap:10px;align-items:flex-start;border-top:0;border-left:6px solid var(--line-strong);border-radius:6px;padding:10px 0 10px 10px;margin:8px 0;background:var(--bg)}
.pr-row[hidden]{display:none}
.pr-zb-red{border-left-color:#D64535}.pr-zb-yellow{border-left-color:#F0C419}.pr-zb-white{border-left-color:#A9AFB8}.pr-zb-green{border-left-color:#3FA34D}.pr-zb-purple{border-left-color:#9B4FD0}
.pr-thumb{flex:none}.pr-main{flex:1;min-width:0;display:grid;gap:6px;padding-right:10px}
.pr-fix{justify-self:start;display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:12px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);font:inherit;font-size:16px;cursor:pointer}
.pr-now{font-size:16px;display:flex;gap:6px;align-items:center}
.pr-dot{display:inline-block;width:12px;height:12px;border-radius:50%}
.pr-mid{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.pr-avg{font-size:13px}.pr-avg i{font-style:normal;color:var(--muted)}
.pr-stock{color:var(--muted);font-size:12px}
.pr-main .pr-bars{margin-left:0;height:40px}
.pr-main .sold-top span{white-space:nowrap}.pr-avg{white-space:nowrap}.pr-main .sold-top b{font-size:15px}

.pr-group{margin:12px 0}.pr-group .sold-h{margin:6px 4px}
.pr-row{display:flex;flex-direction:column;gap:8px;background:var(--card);border-radius:14px;border-left:6px solid var(--line-strong);padding:10px 12px;margin:0 0 10px}
.pr-row[hidden]{display:none}
.pr-head{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.pr-name{flex:1;min-width:0;font-size:15px}.pr-qty{flex:none;font-size:22px;white-space:nowrap}
.pr-cells{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.pr-c{display:flex;flex-direction:column;font-size:15px}.pr-c i{font-style:normal;font-size:11px;color:var(--muted)}
.pr-c u{text-decoration:none;vertical-align:middle}
.pr-up{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:12px;border:1px solid var(--line-strong);background:var(--bg);color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.pr-edit{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.pr-edit[hidden]{display:none}.pr-up[hidden]{display:none}
.pr-new{width:84px;padding:6px 8px;border:1px solid var(--line-strong);border-radius:10px;font:inherit;background:var(--input-bg);color:var(--ink)}
.pr-cancel{background:none;border:0;color:var(--muted);font:inherit;cursor:pointer}
.pr-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.pr-weeks{display:flex;flex-direction:column;gap:3px;flex:1;max-width:220px}
.pr-wk{display:flex;align-items:center;gap:6px}.pr-wk small{font-size:10px;color:var(--muted);white-space:nowrap}
.pr-wb{display:block;height:5px;border-radius:3px;background:var(--line-strong)}.pr-wb-none{opacity:.4}
.pr-wb.pr-z-white{background:#A9AFB8}.pr-wb.pr-z-red{background:#D64535}.pr-wb.pr-z-yellow{background:#F0C419}.pr-wb.pr-z-green{background:#3FA34D}.pr-wb.pr-z-purple{background:#9B4FD0}
.pr-w20{width:12%}.pr-w25{width:15%}.pr-w30{width:18%}.pr-w35{width:21%}.pr-w40{width:24%}.pr-w45{width:27%}.pr-w50{width:30%}.pr-w55{width:33%}.pr-w60{width:36%}.pr-w65{width:39%}.pr-w70{width:42%}.pr-w75{width:45%}.pr-w80{width:48%}.pr-w85{width:51%}.pr-w90{width:54%}.pr-w95{width:57%}.pr-w100{width:60%}

.pr-wb{flex:none}
.pr-w20{width:28px}.pr-w25{width:35px}.pr-w30{width:42px}.pr-w35{width:49px}.pr-w40{width:56px}.pr-w45{width:62px}.pr-w50{width:70px}.pr-w55{width:77px}.pr-w60{width:84px}.pr-w65{width:91px}.pr-w70{width:98px}.pr-w75{width:105px}.pr-w80{width:112px}.pr-w85{width:118px}.pr-w90{width:125px}.pr-w95{width:133px}.pr-w100{width:140px}
.pr-zb-red{border-left-color:#D64535}.pr-zb-yellow{border-left-color:#F0C419}.pr-zb-white{border-left-color:#A9AFB8}.pr-zb-green{border-left-color:#3FA34D}.pr-zb-purple{border-left-color:#9B4FD0}
.pr-wk small{min-width:34px}

.pr-filters .pr-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.pr-filters .chip.is-sel{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.pr-zchips{gap:10px}.pr-zc{width:40px;height:40px;border-radius:50%;border:2px solid var(--line-strong);background:var(--card);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.pr-zc .pr-dot{width:22px;height:22px}.pr-zc.is-sel{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.pr-up,.pr-edit{width:100%;max-width:340px;box-sizing:border-box}
.pr-up{justify-content:center}.pr-edit{display:flex;flex-wrap:nowrap;align-items:center}.pr-edit .pr-new{flex:1;min-width:0}
.pr-edit[hidden]{display:none}
.pr-wk small{white-space:nowrap}
a.chip.chip-active{color:var(--bg)}
.pr-weeks{flex:none;max-width:none}.pr-stock{margin-left:auto}

.pr-filters h2{font-size:15px;text-transform:none;letter-spacing:0;color:var(--ink);margin:0 0 8px}
.pr-filters .pr-zones{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 0 12px}
.pr-filters button.pr-z{border:2px solid transparent;font:inherit;cursor:pointer;min-width:0;padding:8px 4px;align-items:center;text-align:center;min-height:56px}
.pr-filters button.pr-z i{font-size:12px}.pr-filters button.pr-z b{font-size:20px}
.pr-filters button.pr-z.is-sel{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.pr-filters .chip{min-height:46px;padding:0 18px;font-size:17px}
.pr-fl b{font-size:15px}
a.chip.chip-active{background:var(--ink);color:var(--bg);border-color:var(--ink)}.pr-filters button.pr-z i{font-size:11px}
.pr-up{min-height:52px;font-size:18px;padding:10px 14px}.pr-up b{font-size:18px}
.pr-edit{min-height:52px}.pr-edit .pr-new{min-height:52px;font-size:18px}.pr-edit .pr-save{min-height:52px;font-size:17px;padding:0 16px}.pr-cancel{min-height:52px;font-size:16px;padding:0 8px}

.pr-cells{display:flex;justify-content:space-between;gap:8px}.pr-cells .pr-c{flex:1;min-width:0}
.pr-cells .pr-c:last-child{align-items:flex-end;text-align:right}
.pr-head .pr-qty{margin-left:auto;text-align:right}
.pr-set{display:flex;gap:10px;align-items:center}
.pr-set .pr-up{flex:1;width:auto;max-width:none;justify-content:center;min-height:52px}
.pr-price{display:flex;align-items:center;gap:6px;font-size:18px}
.pr-price .pr-new{width:104px;min-height:52px;font-size:18px;text-align:right}
.pr-set .pr-save{min-height:52px;font-size:17px;padding:0 16px}.pr-set .pr-save[hidden]{display:none}
.pr-foot{justify-content:flex-end}

.pr-c b{white-space:nowrap}.pr-c small{font-size:12px;line-height:1}
.pr-set{flex-wrap:wrap}.pr-set .pr-up{flex:1 1 0;white-space:nowrap;min-width:0}
.pr-price{flex:none}.pr-price .pr-new{width:100px}
.pr-set .pr-save{flex:1 0 100%}
.pr-foot{margin-top:-2px}
.pr-c i{white-space:nowrap}.pr-cells .pr-c{flex:0 1 auto}.pr-cells .pr-c:nth-child(2){align-items:center;text-align:center}
.pr-cells{display:grid;grid-template-columns:1fr auto 1fr;gap:8px}.pr-cells .pr-c:first-child{align-items:flex-start;text-align:left}.pr-cells .pr-c:last-child{align-items:flex-end;text-align:right}
.pr-row{align-items:stretch}

.pr-cells{display:flex;justify-content:flex-start;align-items:center;gap:18px;padding:6px 0}
.pr-cells .pr-c,.pr-cells .pr-c:first-child,.pr-cells .pr-c:last-child,.pr-cells .pr-c:nth-child(2){align-items:flex-start;text-align:left;flex:none;gap:2px}
.pr-magic{margin-left:auto;min-height:56px;min-width:104px;padding:0 14px;border:0;border-radius:14px;font:inherit;font-size:20px;font-weight:700;color:#fff;cursor:pointer;text-shadow:0 1px 2px #0006;background:linear-gradient(90deg,#E5484D,#F2994A,#F2D14B,#4CB26A,#3B82F6,#9B59D0)}
.pr-set{display:flex;gap:10px;align-items:center}.pr-set .pr-price{flex:1}.pr-price .pr-new{flex:1;width:auto;min-width:0}
.pr-set .pr-save{flex:none;min-width:150px;flex-basis:auto}.pr-set .pr-save:disabled{opacity:.35}
.pr-set{flex-wrap:nowrap}
.pr-set .pr-price{flex:1 1 0;min-width:0}.pr-set .pr-price .pr-new{width:100%;min-width:0;flex:1 1 0}.pr-set .pr-save{min-width:0;width:150px}

.pr-row{isolation:isolate}
.pr-magic,.pr-magic.rainbow{background:linear-gradient(var(--card),var(--card)) padding-box,conic-gradient(from var(--rb),#ff3b30,#ff9500,#ffcc00,#34c759,#00c7be,#007aff,#af52de,#ff2d55,#ff3b30) border-box !important;color:var(--ink);text-shadow:none;border:2px solid transparent !important;font-size:21px}

.pr-cells{align-items:center;gap:20px}
.pr-cells .pr-c b{font-size:19px}.pr-cells .pr-c i{font-size:12px}
.pr-cells .pr-c-avg b{font-size:21px}
.pr-cells .pr-c small{font-size:13px;min-height:16px;display:flex;align-items:center}
.pr-cells .pr-c .pr-dot{width:13px;height:13px}
.pr-magic,.pr-magic.rainbow{min-height:46px;min-width:88px;padding:0 10px;font-size:17px;border-radius:12px}
.pr-set .pr-save{width:128px;min-height:46px;font-size:15px;font-weight:600;padding:0 10px}
.pr-set .pr-save:disabled{opacity:.3}.pr-set .pr-price .pr-new{min-height:46px;font-size:17px}
.pr-cells{align-items:flex-start}
.pr-cells .pr-c,.pr-cells .pr-c:first-child,.pr-cells .pr-c:nth-child(2),.pr-cells .pr-c:last-child{align-items:center;text-align:center}
.pr-cells .pr-c b,.pr-cells .pr-c-avg b{font-size:20px}
.pr-cells .pr-c small{justify-content:center}
.pr-magic{align-self:center}
/* 0.44.1: три цифры и радужная кнопка — в одну строку */
.pr-cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:stretch;gap:4px;padding:4px 0}
.pr-cells .pr-c,.pr-cells .pr-c:first-child,.pr-cells .pr-c:nth-child(2),.pr-cells .pr-c:last-child{align-items:center;text-align:center;gap:2px}
.pr-cells .pr-c b,.pr-cells .pr-c-avg b{font-size:17px}
.pr-cells .pr-c-avg b{margin-block:0}
.pr-magic,.pr-magic.rainbow{align-self:center;min-height:40px;min-width:0;padding:0 8px;font-size:15px;border-radius:11px;white-space:nowrap;margin-left:4px}
/* 0.44.2: столбцы одинаковые с кнопкой и без — место под кнопку есть всегда */
.pr-cells{grid-template-columns:repeat(3,minmax(0,1fr)) 80px}
.pr-magic,.pr-magic.rainbow{grid-column:4;width:100%;margin-left:0;padding:0 4px}
/* 0.44.3: один пластик за раз, отметка изменённых карточек */
.pr-pick summary{list-style:none;cursor:pointer;font-size:17px;padding:6px 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pr-pick summary::-webkit-details-marker{display:none}
.pr-pick .pr-chg{margin-left:auto;font-size:14px;color:var(--accent,#2B5BE0);font-weight:600}
.pr-pick details[open] .pr-chg{display:none}
.pr-pick .btn{margin-top:12px}
.pr-radio{position:relative;cursor:pointer;min-height:40px;display:inline-flex;align-items:center;gap:6px;font-size:15px}
.pr-radio input{position:absolute;opacity:0;pointer-events:none}
.pr-radio small{opacity:.7;font-size:12px;display:inline-flex;align-items:center;gap:3px}
.pr-radio small .pr-dot{width:9px;height:9px}
.pr-radio:has(input:checked){background:var(--ink);color:var(--bg);border-color:var(--ink)}
.pr-z[hidden]{display:none}
.pr-z-done{background:#D7F0DA;color:#17501F}
.pr-row.pr-done{box-shadow:0 0 0 2px #3FA34D inset}
.pr-ok{margin:6px 0 0;padding:6px 10px;border-radius:10px;background:#D7F0DA;color:#17501F;font-size:14px;font-weight:600}
.pr-ok[hidden]{display:none}
@media (prefers-color-scheme: dark){.pr-z-done,.pr-ok{background:#1F4423;color:#CFF0CB}}
.pr-magic[hidden]{display:none !important}
/* 0.44.4: изменённая карточка — без обводки, левая полоса гаснет */
.pr-row.pr-done{box-shadow:none}[data-mode=avg] .pr-row.pr-done{border-left-color:var(--line,#E3E5E8) !important}
.prices > nav.chips{gap:4px;padding:0}.prices > nav.chips .chip{padding:5px 9px;flex:none}
/* 0.44.6: «Цвет по цене сейчас» — переключатель */
.pr-tog{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 4px;border-top:1px solid var(--line);margin-top:8px;color:var(--ink);text-decoration:none;font-size:15px}
.pr-tog span{display:flex;flex-direction:column}.pr-tog small{color:var(--muted);font-size:12px}
.pr-tog u{flex:none;position:relative;width:46px;height:28px;border-radius:14px;background:var(--line);transition:background .15s}
.pr-tog u::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:left .15s}
.pr-tog.is-on u{background:#3FA34D}.pr-tog.is-on u::after{left:21px}
/* 0.45.0: Ozon → «Аналитика» */
.an-days{display:flex;align-items:center;justify-content:space-between;margin:4px 0 10px}
.an-days b{display:flex;flex-direction:column;align-items:center;font-size:18px}.an-days small{font-size:12px;color:var(--muted);font-weight:400}
.an-days .an-next svg{transform:rotate(180deg)}
.an-sum{padding:12px 14px;margin-bottom:12px}
.an-tot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;text-align:center}
.an-tot span{display:flex;flex-direction:column}.an-tot i{font-style:normal;font-size:12px;color:var(--muted)}.an-tot b{font-size:17px;white-space:nowrap}
.an-neg{color:#C2372A}
.an-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;margin:12px 0 6px;gap:2px}.an-bar i{flex:0 0 0;min-width:4px}
.an-leg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted)}.an-leg span{display:inline-flex;align-items:center;gap:4px}.an-leg .pr-dot{width:9px;height:9px}
.an-row{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:14px;border-left:6px solid var(--line-strong);padding:10px 12px;margin:0 0 8px;color:inherit;text-decoration:none}
.an-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.an-mid b{font-size:14px;line-height:1.25}.an-mid small{font-size:13px}
.an-pr{display:flex;flex-direction:column;align-items:flex-end;flex:none}.an-pr b{font-size:17px;white-space:nowrap}.an-pr small{font-size:12px;color:var(--muted)}
.pr-t-red b{color:#C2372A}.pr-t-yellow b{color:#9A7A00}.pr-t-green b{color:#2E8A3B}.pr-t-purple b{color:#7B35B0}
@media (prefers-color-scheme: dark){.pr-t-red b,.an-neg{color:#FF8A7E}.pr-t-yellow b{color:#F0C419}.pr-t-green b{color:#7CD08A}.pr-t-purple b{color:#C99BEB}}
.an-row.pr-zb-red{border-left-color:#D64535}.an-row.pr-zb-yellow{border-left-color:#F0C419}.an-row.pr-zb-white{border-left-color:#A9AFB8}.an-row.pr-zb-green{border-left-color:#3FA34D}.an-row.pr-zb-purple{border-left-color:#9B4FD0}
.ozg.an-g{border-left:6px solid var(--line-strong);gap:10px;padding:12px 12px 12px 10px}
.ozg.an-g.pr-zb-red{border-left-color:#D64535}.ozg.an-g.pr-zb-yellow{border-left-color:#F0C419}.ozg.an-g.pr-zb-white{border-left-color:#A9AFB8}.ozg.an-g.pr-zb-green{border-left-color:#3FA34D}.ozg.an-g.pr-zb-purple{border-left-color:#9B4FD0}
.an-g .ozg-n{min-width:44px}
.an-time{flex:none;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;width:44px}
.an-g .oz-kind{align-self:flex-start}
.an .oz-seg{margin-bottom:12px}
.an-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}.an-meta .oz-kind{align-self:center}
.an-g{gap:8px}.an-g .ozg-main{gap:3px}.an-g .ozg-main b{font-size:15px;line-height:1.25}
.thumb.an-th{width:40px;height:40px;flex:none}
.an-time{width:40px;font-size:14px}
.an-meta{flex-wrap:nowrap;white-space:nowrap}.an-meta .oz-kind{font-size:10px;padding:2px 6px}
.ozg .thumb.an-th,.an-g .thumb.an-th{width:40px;height:40px;min-width:40px}
/* 0.45.3: товар внутри «Аналитики» */
.an-art{padding:12px 14px;margin-bottom:12px}
.an-art-h{display:flex;align-items:center;gap:10px;margin-bottom:10px}.an-art-h b{flex:1;min-width:0;font-size:16px;line-height:1.25}
.an-art .oz-seg{margin:0 0 8px}
.an-more{display:block;font-size:14px;color:var(--accent,#2B5BE0);text-decoration:none;font-weight:600;padding:4px 0}
.an-time{display:flex;flex-direction:column;line-height:1.15}.an-time small{font-size:11px;font-weight:500;color:var(--muted)}
.an-art .oz-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
/* 0.46.0: блок цены в «Аналитике», акции Ozon */
.an-pbox{margin:4px 0 12px}
.pr-row.an-prow{background:none;border:0;border-radius:0;padding:0;margin:0}
.an-prow .pr-cells{padding:4px 0}
.an-promo{margin:6px 0 2px;padding:7px 10px;border-radius:10px;font-size:13px;line-height:1.35;background:#FFF0A6;color:#5B4A00}
.an-promo.pr-zt-red{background:#F7C9C4;color:#6D1209}.an-promo.pr-zt-white,.an-promo.pr-zt-green,.an-promo.pr-zt-purple{background:var(--bg);color:var(--ink)}
@media (prefers-color-scheme: dark){.an-promo{background:#5A4B14;color:#FFF0B3}.an-promo.pr-zt-red{background:#5A2420;color:#FFD9D5}}
.an-hist{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}
.an-hist summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--accent,#2B5BE0);list-style:none;padding:4px 0}
.an-hist summary::-webkit-details-marker{display:none}
.an-hist ul{list-style:none;margin:6px 0 0;padding:0}
.an-hist li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}
.an-hist li small{grid-column:1/-1;color:var(--muted);font-size:12px}
.an-hist li b{white-space:nowrap}
.an-hist .an-h-error{color:var(--muted)}.an-hist .an-h-ext span{color:#9A5B00}.an-hist .an-h-promo span{color:#C2372A}
.an-art-h b small{display:block;font-size:12px;font-weight:400;margin-top:2px}
.an-drop{margin-bottom:12px}
/* 0.46.1: стрелки дней — рядом с датой (не путать с «Назад»); место под полосу прокрутки — всегда, чтобы страницы не прыгали */
@media (hover:hover) and (pointer:fine){html{scrollbar-gutter:stable}}
.an-days{justify-content:center;gap:18px}
.an-days b{min-width:130px}
.an-days .icon-btn{width:40px;height:40px;border-radius:50%;background:var(--card);display:inline-flex;align-items:center;justify-content:center}
.an-days span.icon-btn{background:none}
/* 0.46.2: метка «цену уже поменяли после этой продажи» */
.an-chg{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#D7F0DA;color:#17501F;font-size:12px;font-weight:600;white-space:nowrap}
.an-chg.is-down{background:#FFE8CC;color:#8A4B00}
@media (prefers-color-scheme: dark){.an-chg{background:#1F4423;color:#CFF0CB}.an-chg.is-down{background:#3A2410;color:#F7C58C}}
.an-meta{flex-wrap:wrap;white-space:normal}
/* 0.47.0: «Аналитика → Продажи» — залежавшиеся товары */
.an .an-sect{margin-bottom:8px}
.an-tot3{grid-template-columns:repeat(3,minmax(0,1fr))}
.an-bk{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.an-bkb{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-size:14px;text-decoration:none}
.an-bkb b{font-weight:700}.an-bkb.is-on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.an-bkb.st-y1{background:#E2C9F4;color:#4A1A6B}.an-bkb.st-m6{background:#F7C9C4;color:#6D1209}.an-bkb.st-m3{background:#FFE3B8;color:#7A4100}.an-bkb.st-w2{background:#FFF0A6;color:#5B4A00}
.ozg.an-g.st-b-y1{border-left-color:#9B4FD0}.ozg.an-g.st-b-m6{border-left-color:#D64535}.ozg.an-g.st-b-m3{border-left-color:#F08C2B}.ozg.an-g.st-b-w2{border-left-color:#F0C419}.ozg.an-g.st-b-ok{border-left-color:#3FA34D}
.st-t-y1 b{color:#7B35B0}.st-t-m6 b{color:#C2372A}.st-t-m3 b{color:#B35F00}.st-t-w2 b{color:#9A7A00}.st-t-ok b{color:#2E8A3B}
.an-g .ozg-main small+small{margin-top:1px}
@media (prefers-color-scheme: dark){.an-bkb.st-y1{background:#40245A;color:#EBD6FA}.an-bkb.st-m6{background:#5A2420;color:#FFD9D5}.an-bkb.st-m3{background:#4A2E10;color:#FFD6A3}.an-bkb.st-w2{background:#5A4B14;color:#FFF0B3}}
.an-bkb.st-none{background:#E2C9F4;color:#4A1A6B}.an-bkb.st-d3{background:#FFF0A6;color:#5B4A00}.an-bkb.st-w1{background:#FFE3B8;color:#7A4100}.an-bkb.st-w2{background:#F7C9C4;color:#6D1209}
.ozg.an-g.st-b-none{border-left-color:#9B4FD0}.ozg.an-g.st-b-w2{border-left-color:#D64535}.ozg.an-g.st-b-w1{border-left-color:#F08C2B}.ozg.an-g.st-b-d3{border-left-color:#F0C419}
.st-t-none b{color:#7B35B0}.st-t-w2 b{color:#C2372A}.st-t-w1 b{color:#B35F00}.st-t-d3 b{color:#9A7A00}
@media (prefers-color-scheme: dark){.an-bkb.st-none{background:#40245A;color:#EBD6FA}.an-bkb.st-d3{background:#5A4B14;color:#FFF0B3}.an-bkb.st-w1{background:#4A2E10;color:#FFD6A3}.an-bkb.st-w2{background:#5A2420;color:#FFD9D5}}
/* 0.48.2: вид списка — лёгкие вкладки-ссылки, не второй сегмент */
.an-view{display:flex;justify-content:flex-end;gap:4px;margin:-2px 0 6px}
.an-view a{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 10px;border-radius:10px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:500}
.an-view a svg{width:16px;height:16px}
.an-view a.is-on{color:var(--ink);font-weight:700;background:var(--card)}
/* 0.49.0: витрина «Аналитики» */
.an-hub .oz-ser{margin:14px 4px 8px}.an-hub .oz-ser:first-child{margin-top:4px}
.an-tile{margin-bottom:10px;gap:10px}.an-tile .ozg-main b{font-size:16px}
.an-tile-n{flex:none;text-align:right}.an-tile-n b{font-size:22px;font-weight:800;white-space:nowrap}
.an-tile svg{flex:none;width:18px;height:18px;color:var(--muted)}
.an-view-l{justify-content:flex-start;margin:4px 0 8px}
/* 0.49.1: радужные плашки — заголовок ближе к подписи, вокруг плашки больше воздуха (сияние не липнет к соседям) */
.ozg.rainbow .ozg-main,.an-tile .ozg-main{gap:1px}
.ozg.rainbow .ozg-main b,.ozg.rainbow .ozg-main small,.an-tile .ozg-main b,.an-tile .ozg-main small{line-height:1.25}
.oz-splitlink.rainbow,.an-tile.rainbow{margin:18px 0 20px}
.an-tile{margin-bottom:14px}
.an-stock{display:block;font-size:13px;font-weight:500;margin-top:2px}
/* 0.49.5: артикул (нажать — скопировать) и ссылка на товар в Ozon */
.an-ids{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:5px;font-weight:500}
.an-copy{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}
.an-copy::after{content:"⧉";color:var(--muted)}
.an-ozlink{font-size:13px;font-weight:600;color:#005BFF;text-decoration:none;min-height:30px;display:inline-flex;align-items:center}
.an-ids small{font-size:13px}
/* 0.49.7: история цены — часть блока цены; черта — между ценой и выбором периода */
.an-hist{border-top:0;padding-top:0;margin-top:6px}
.an-art .an-view-l{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
/* 0.50.1: лента «по времени» — на телефоне время под картинкой, названию больше места; на широком экране — время слева */
.an-tcol{display:flex;align-items:center;gap:10px;flex:none;flex-direction:row-reverse}
@media (max-width:600px){
  .an-tcol.has-th{flex-direction:column;gap:4px;width:44px}
  .an-tcol.has-th .an-time{width:auto;font-size:13px;text-align:center;align-items:center}
}
/* 0.50.2: «Продаётся по 1–2 в неделю» — артикул сверху, темп крупно, строка запаса во всю ширину */
.an-slow{flex-wrap:wrap;align-items:center}
.an-slow .ozg-main{gap:4px}
.an-slow .an-copy{align-self:flex-start;min-height:26px;font-size:12px;padding:0 8px}
.an-slow-name,.an-slow-th{color:inherit;text-decoration:none}
.an-week{flex:none;display:flex;flex-direction:column;align-items:center;min-width:52px;line-height:1.1}
.an-week b{font-size:24px;font-weight:800}.an-week small{font-size:12px;color:var(--muted)}
.an-foot{flex:1 1 100%;font-size:13px;padding-top:8px;margin-top:2px;border-top:1px solid var(--line)}
/* 0.51.0: удалить своё сообщение (в течение часа) */
.msg-del{border:0;background:none;padding:2px 0;font:inherit;font-size:inherit;color:var(--muted);text-decoration:underline;cursor:pointer}
.msg-del:disabled{text-decoration:none}
.msg-deleted .bubble{font-style:italic;opacity:.65}
/* 0.52.0: после сохранения — предложение поднять до фиолетовой зоны */
.pr-purple-offer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:8px 10px;border-radius:12px;background:#F3E8FB;color:#4A1A6B;font-size:13px;line-height:1.3}
.pr-purple-offer .pr-magic{flex:none;min-height:38px;min-width:0;padding:0 10px;font-size:15px}
@media (prefers-color-scheme: dark){.pr-purple-offer{background:#2E1A40;color:#EBD6FA}}
.pr-purple-offer .pr-magic,.pr-purple-offer .pr-magic.rainbow{width:auto;grid-column:auto;margin:0;flex:none}
/* 0.52.3: блок цены — колонки шире, «Вход в пурпурную» без волшебной кнопки; дата открывает календарь */
.an-pcells{grid-template-columns:repeat(3,minmax(0,1fr)) auto !important;column-gap:10px}
.an-pcells .pr-c i{white-space:normal;line-height:1.2;min-height:2.4em;display:flex;align-items:flex-end;justify-content:center}
.an-pcells .pr-magic,.an-pcells .pr-magic.rainbow{grid-column:3 / 5;width:auto;justify-self:end}
.an-date{cursor:pointer;position:relative;padding:4px 10px;border-radius:12px}
.an-date:active,.an-date:focus-visible{background:var(--card)}
.an-date small{text-decoration:underline dotted;text-underline-offset:3px}
.an-date-input{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.an-pcells .pr-c i{white-space:nowrap;min-height:0;display:block}
/* 0.52.5: подтверждение смены цены — своё окно снизу */
.pr-ask{text-align:center;padding-left:20px;padding-right:20px}
.pr-ask-ic{width:56px;height:56px;margin:6px auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;line-height:1}
.pr-ask-ic.is-up{background:#D7F0DA;color:#2E8A3B}.pr-ask-ic.is-down{background:#FFE8CC;color:#B35F00}.pr-ask-ic.is-warn{background:#F7C9C4;color:#C2372A}
.pr-ask-prices{display:flex;align-items:baseline;justify-content:center;gap:12px;font-variant-numeric:tabular-nums}
.pr-ask-prices s{font-size:20px;color:var(--muted);font-weight:600}
.pr-ask-prices b{font-size:34px;font-weight:800}
.pr-ask-arr{font-size:22px;color:var(--muted)}
.pr-ask-title{display:block;font-size:24px;font-weight:800}
.pr-ask-sub{margin:6px 0 18px;color:var(--muted);font-size:15px;line-height:1.35}
.pr-ask-btns{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.pr-ask-btns .btn{min-height:52px;font-size:17px;font-weight:700}
@media (min-width:600px){.pr-ask{max-width:420px;inset:auto 0 24px 0;margin:0 auto;border-radius:22px}}
@media (prefers-color-scheme: dark){.pr-ask-ic.is-up{background:#1F4423;color:#7CD08A}.pr-ask-ic.is-down{background:#3A2410;color:#F7C58C}.pr-ask-ic.is-warn{background:#5A2420;color:#FF8A7E}}
.an-pcells .pr-magic,.an-pcells .pr-magic.rainbow{justify-self:stretch;width:100%;margin-left:6px}
.an-th-row{margin:6px 0 2px}

/* FBO: возвраты, которые Ozon продал со своего склада */
.oz-kind.is-fbo { background: #E6E8EC; color: #4B5563; margin-left: 4px; }   /* OZ-022: плашка «Склад Ozon» нейтральная серая; фиолетовый — только «Возврат после получения» (OZ-020) */
.an-tot .an-fboq { display: block; font-size: 11px; color: #5B2DB3; font-weight: 600; margin-top: 2px; }
/* 0.56.0: подтверждение шторкой для всех форм с data-confirm */
.crm-ask .pr-ask-title{font-size:21px;line-height:1.25}
.crm-ask .pr-ask-sub{white-space:pre-line}
/* 0.56.0: инвентаризация — крупные карточки как в «Аналитике», группировка */
.inv-sec{margin:12px 0}
.inv-sec-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 8px}
.inv-sec-h h2{margin:0;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.inv-sec-h .an-view{margin:0}
.inv-cards{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:8px}
.inv-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border-left:5px solid #C9CFD8;margin:0;cursor:pointer}
.inv-card.is-ok{border-left-color:#34A853}.inv-card.is-plus{border-left-color:#1A73E8}.inv-card.is-minus{border-left-color:#F2B705}
.inv-card .thumb-m{flex:none}
.inv-c-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.inv-c-main b{font-size:16px;line-height:1.25;font-weight:700}
.inv-c-main .an-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inv-c-num{flex:none;display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;font-variant-numeric:tabular-nums}
.inv-c-num b{font-size:26px;font-weight:800}
.inv-c-num small{font-size:13px;color:var(--muted);white-space:nowrap;margin-top:3px}
.inv-c-num i{font-style:normal;font-weight:700}
.inv-d-plus{color:#1A73E8}.inv-d-minus{color:#B35F00}
.inv-card .inv-undo{flex:none}
.inv-card .inv-undo button{border:0;background:var(--chip,#EEF1F5);border-radius:10px;width:36px;height:36px;font-size:18px}
.inv-sec .oz-ser{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.inv-gq{margin-left:auto;font-weight:500;font-size:12px;text-transform:none;letter-spacing:0}
.inv-diffhead{margin-bottom:8px}
.inv-miss-cards{margin-top:10px}
.inv-miss-cards .inv-card{cursor:default}
.inv-miss-act{display:flex;gap:8px;margin-top:4px}
.inv-miss-act form{margin:0}
/* 0.56.2: число по факту + разница в скобках, ниже — сколько на складе; полоска: красная — недобор, синяя — перебор, совпало — без полоски */
.inv-card{border-left-color:transparent}
.inv-card.is-ok{border-left-color:transparent}
.inv-card.is-plus{border-left-color:#1A73E8}
.inv-card.is-minus{border-left-color:#D93025}
.inv-c-top{display:flex;align-items:baseline;gap:6px}
.inv-c-top b{font-size:28px;font-weight:800}
.inv-c-top i{font-style:normal;font-size:15px;font-weight:700}
.inv-d-plus{color:#1A73E8}.inv-d-minus{color:#D93025}
.inv-c-book{font-size:19px;font-weight:700;color:var(--muted);margin-top:2px}
/* 0.56.2: чуть мельче и свободнее */
.inv-c-top{gap:5px}
.inv-c-top b{font-size:23px}
.inv-c-top i{font-size:13px}
.inv-c-book{font-size:16px;margin-top:4px}
.inv-c-main b{font-size:15px}
.inv-card{gap:12px;padding:12px 14px 12px 12px}
/* 0.57.0: офлайн-продажи (шоурум) — в стиле экранов Ozon */
.svc-dot.svc-shop{background:#0E8C80}
body.svc-shop .topbar{box-shadow:inset 0 3px 0 #0E8C80}
.shop-new-btn{margin:4px 0 12px;min-height:52px;font-size:17px}
.shop-day{display:flex;justify-content:space-between;align-items:baseline}
.shop-day small{font-weight:600;text-transform:none;letter-spacing:0}
.shop-pay{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#EEF1F5;color:#4A5568}
.shop-pay.is-cash{background:#E3F5E8;color:#1E7B3A}.shop-pay.is-card{background:#E6F0FF;color:#0B4FC2}.shop-pay.is-transfer{background:#FFF1DB;color:#9A5200}.shop-pay.is-qr{background:#F1E8FD;color:#5B2DB3}
.shop-client-line{display:flex;align-items:center;gap:6px;font-size:14px;margin:2px 0 6px}
.shop-client-line .ic{width:16px;height:16px;color:var(--muted)}
.shop-ava{flex:none;width:40px;height:40px;border-radius:50%;background:#DDF3F0;color:#0B6B62;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.shop-ava.is-big{width:64px;height:64px;font-size:26px}
.shop-add-box{display:flex;flex-direction:column;gap:10px}
.shop-h{display:flex;justify-content:space-between;align-items:baseline;margin-top:16px}
.shop-h small{text-transform:none;letter-spacing:0;font-weight:500}
.shop-empty{margin:4px 6px}
.shop-line{align-items:flex-start}
.shop-line .thumb-m{margin-top:2px}
.shop-line .an-meta s{font-size:13px}
.shop-ctl{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.shop-step{display:inline-flex;align-items:center;border:1px solid var(--line,#E2E6EC);border-radius:12px;overflow:hidden}
.shop-step button{border:0;background:transparent;width:38px;height:36px;font-size:20px;font-weight:700;color:var(--accent,#1A56DB)}
.shop-step b{min-width:28px;text-align:center;font-size:16px}
.shop-step .shop-qty{width:46px;min-height:36px;border:0;border-left:1px solid var(--line,#E2E6EC);border-right:1px solid var(--line,#E2E6EC);border-radius:0;background:transparent;text-align:center;font-size:16px;font-weight:700;color:var(--ink);padding:0}
.shop-step .shop-qty:focus{outline:0;box-shadow:none;border-left-color:var(--line,#E2E6EC);border-right-color:var(--line,#E2E6EC);background:transparent}
.shop-price{display:inline-flex;align-items:center;gap:4px;font-size:15px}
.shop-price input{width:92px;height:36px;padding:0 10px;border:1px solid var(--line,#E2E6EC);border-radius:12px;font-size:16px;text-align:right;font-variant-numeric:tabular-nums}
.shop-price.is-bad input{border-color:#D93025;background:#FDECEA}
.shop-line .an-pr{align-items:flex-end;gap:8px}
.shop-del{border:0;background:#F1F3F6;border-radius:10px;width:30px;height:30px;color:var(--muted);font-size:14px}
.shop-pay-seg{margin:0 0 4px}
.shop-pay-seg .seg-btn{cursor:pointer}
.shop-client-box{display:flex;flex-direction:column;gap:10px}
.shop-picked{display:flex;align-items:center;gap:12px}
.shop-cmode{margin:0 0 6px}
.shop-client-box input[type=search]{width:100%}
.shop-cres{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.shop-cpick{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line,#E2E6EC);background:var(--card);border-radius:14px;padding:8px 10px;color:var(--ink)}
.shop-cpick .ozg-main b{font-size:15px}
.shop-cnew{display:flex;flex-direction:column;gap:8px}
.shop-comment summary{cursor:pointer;font-weight:600}
.shop-comment textarea{width:100%;margin-top:8px}
.shop-bar{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));z-index:5;padding:10px 0 4px;background:linear-gradient(transparent,var(--bg,#F2F4F7) 30%)}
.shop-bar .btn{min-height:54px;font-size:17px;font-weight:700}
.shop-o-head{display:flex;flex-direction:column;gap:4px}
.shop-o-top{display:flex;justify-content:space-between;align-items:center}
.shop-o-top b{font-size:20px}
.shop-o-total{font-size:28px;font-weight:800;display:flex;align-items:baseline;gap:10px;margin-top:4px}
.shop-o-total small{font-size:14px;color:var(--muted);font-weight:600}
.shop-c-card{margin:10px 0}
.shop-note{margin:12px 6px}
.shop-find input{width:100%}
.shop-add summary{cursor:pointer;font-weight:600;display:flex;align-items:center;gap:6px}
.shop-add .form{margin-top:10px}
.shop-c-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.shop-c-head > b{font-size:20px}
.shop-c-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.shop-c-stat{display:flex;gap:28px;margin:4px 0 6px}
.shop-c-stat span{display:flex;flex-direction:column}
.shop-c-stat b{font-size:20px}
.shop-c-stat small{color:var(--muted);font-size:12px}
@media (prefers-color-scheme: dark){.shop-ava{background:#13362F;color:#7FD9CC}.shop-del{background:#232836}}
.shop-o-head,.shop-client-box,.shop-comment,.shop-add-box,.shop-c-head,.shop-add,.shop-find{padding:14px}
.shop-line{position:relative;padding-right:46px}
.shop-line .shop-del{position:absolute;top:10px;right:10px}
.shop-ctl{flex-wrap:wrap;gap:8px;width:100%}
.shop-price span{color:var(--muted)}
.shop-price input{width:78px}
.shop-sum{margin-left:auto;font-size:16px;white-space:nowrap}
.shop-step button{width:34px}
.shop-line{display:flex;flex-direction:column;gap:10px;padding:12px 14px}
.shop-l-top{display:flex;gap:12px;align-items:flex-start;padding-right:30px}
.shop-l-top .ozg-main b{font-size:15px;line-height:1.25}
.shop-ctl{display:flex;align-items:center;gap:10px;margin:0;padding-left:68px}
.shop-step,.shop-price{flex:none}
.shop-step button{width:38px}
.shop-price input{width:84px}
@media (max-width:360px){.shop-ctl{padding-left:0}}
.shop-ctl{padding-left:0;gap:8px;min-width:0}
.shop-price input{width:76px}
.shop-sum{font-size:15px}
[id^="shop-"][hidden], .shop-cnew[hidden], [data-pane][hidden] { display: none !important; }

/* 0.58.0 — фирменный цвет раздела «Офлайн»: бирюзовый (Transformative Teal, цвет 2026 по WGSN) */
body.svc-shop{--accent:#0E8C80;--accent-ink:#FFFFFF;--accent-soft:#DDF3F0;--accent-soft-ink:#0B6B62}
@media (prefers-color-scheme: dark){body.svc-shop{--accent:#3CC4B5;--accent-ink:#06201C;--accent-soft:#13362F;--accent-soft-ink:#A6E8DF}}
/* этапы офлайн-заказа */
.shop-st{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#EEF1F5;color:#4A5568;white-space:nowrap}
.shop-st.is-new{background:#FFF1DB;color:#9A5200}.shop-st.is-reserved{background:#E6F0FF;color:#0B4FC2}
.shop-st.is-done{background:#DDF3F0;color:#0B6B62}.shop-st.is-cancelled{background:#F1F3F6;color:#8A94A6;text-decoration:line-through}
.shop-st.is-gift{background:#FDECF3;color:#B0215F}
.shop-o-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shop-steps{list-style:none;margin:12px 0 0;padding:0;display:flex;gap:6px}
.shop-steps li{flex:1;display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);padding-top:8px;border-top:3px solid #E2E6EC}
.shop-steps li span{flex:none;width:20px;height:20px;border-radius:50%;background:#E2E6EC;color:#5A6474;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.shop-steps li.is-done,.shop-steps li.is-on{color:var(--ink);border-top-color:var(--accent)}
.shop-steps li.is-done span,.shop-steps li.is-on span{background:var(--accent);color:var(--accent-ink)}
.shop-steps li.is-on{font-weight:700}
.shop-ms{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:14px}
.shop-ms a{color:var(--accent);text-decoration:none;font-weight:600}
.shop-paid{margin:8px 0 0;font-size:15px}
.shop-pay-list{display:flex;flex-direction:column;gap:8px}
.shop-pay-opt{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border-radius:14px;background:#F2F4F7;cursor:pointer;border:1.5px solid transparent}
.shop-pay-opt input{position:absolute;opacity:0;pointer-events:none}
.shop-pay-ic{flex:none;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#3A4250}
.shop-pay-ic svg{width:26px;height:26px}
.shop-pay-opt.is-qr .shop-pay-ic{color:#7B3FE4}.shop-pay-opt.is-online .shop-pay-ic{color:#1A73E8}.shop-pay-opt.is-cash .shop-pay-ic{color:#1E7B3A}
.shop-pay-tx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.shop-pay-tx b{font-size:16px;font-weight:600}
.shop-pay-tx small{font-size:12.5px;color:var(--muted);margin-top:2px}
.shop-pay-box{flex:none;width:28px;height:28px;border-radius:8px;border:1.5px solid #5A6474;background:transparent;display:flex;align-items:center;justify-content:center}
.shop-pay-opt.is-on{border-color:var(--accent);background:var(--accent-soft)}
.shop-pay-opt.is-on .shop-pay-box{background:var(--accent);border-color:var(--accent)}
.shop-pay-opt.is-on .shop-pay-box::after{content:"";width:12px;height:7px;border:solid var(--accent-ink);border-width:0 0 2.5px 2.5px;transform:translateY(-2px) rotate(-45deg)}
@media (prefers-color-scheme: dark){.shop-pay-opt{background:#1B1F29}.shop-pay-ic{color:#C9D1DE}.shop-pay-box{border-color:#8A94A6}}
.shop-conduct .shop-manual,.shop-conduct .shop-auto{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.shop-conduct .shop-manual[hidden],.shop-conduct .shop-auto[hidden],.shop-diff[hidden]{display:none!important}
.shop-conduct input[name=paid]{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.shop-diff{margin:0;color:#9A5200;font-weight:600}.shop-diff.is-bad{color:#D93025}
.shop-wait{margin:0;font-weight:600}
.shop-oline{align-items:flex-start}.shop-oline .an-meta s{font-size:13px}
.shop-diff.is-gift{color:#B0215F}
.form .shop-pay-opt,.shop-pay-list .shop-pay-opt{flex-direction:row;align-items:center;text-align:left;margin:0;font-weight:400;color:var(--ink)}
.form .shop-pay-opt .shop-pay-tx{align-items:flex-start}
.pr-ask-ic.is-pic{background:#FDECF3;font-size:34px;line-height:1}
@media (prefers-color-scheme: dark){.pr-ask-ic.is-pic{background:#3A1A2A}}
.shop-ms{gap:2px}
.shop-ms-row{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap;font-size:14px}
.shop-ms-row span{flex:none;color:var(--muted)}
.shop-ms-row a{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600;color:var(--accent);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent);text-underline-offset:3px}
.shop-tg{display:flex;align-items:flex-end;gap:8px}
.shop-tg label{flex:1;min-width:0}
.shop-tg .shop-tg-find{flex:none;min-height:44px;padding:0 12px;font-size:14px;white-space:nowrap;margin-bottom:0}
/* 0.59.0 — акции Маркета на карточке товара */
.ym-promo{display:flex;flex-direction:column;gap:3px;margin:10px 0 2px;padding:10px 12px;border-radius:12px;background:#FFF4E5;font-size:14px;line-height:1.35}
.ym-promo b{font-weight:700}
.ym-promo small{font-size:13px}
.ym-promo.pr-zt-yellow{background:#FFF6D6}.ym-promo.pr-zt-red{background:#FDECEA}.ym-promo.pr-zt-green,.ym-promo.pr-zt-purple{background:#E6F6EC}.ym-promo.pr-zt-white{background:#F2F4F7}
@media (prefers-color-scheme: dark){.ym-promo{background:#2A2418}.ym-promo.pr-zt-red{background:#3A1E1C}.ym-promo.pr-zt-green,.ym-promo.pr-zt-purple{background:#16301F}.ym-promo.pr-zt-white{background:#1B1F29}}
/* 0.62.3 — настройки Ozon и Маркета: выключатели строками, подстраницы */
a.set-head{text-decoration:none;color:var(--ink)}
.set-head > div:nth-child(2){flex:1;min-width:0}
.set-head > .ic:last-child{color:var(--muted);width:20px;height:20px;flex:none}
.set-list{padding:4px 16px}
.set-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line,#E2E6EC);cursor:pointer;margin:0}
.set-list > .set-row:last-of-type{border-bottom:0}
.set-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.set-tx b{font-weight:600;font-size:16px}
.set-tx small{font-size:13px;color:var(--muted);line-height:1.35}
.set-warn{font-style:normal;color:#B35F00}
.set-note{margin:6px 4px 14px}
.set-select{flex:none;width:auto;max-width:55%;min-height:40px;padding:6px 10px;border:1px solid var(--line,#E2E6EC);border-radius:10px;background:var(--card);color:var(--ink);font:inherit}
.list-row .set-sub{display:block;font-size:13px;margin-top:1px}
input.switch{appearance:none;-webkit-appearance:none;flex:none;width:50px;height:30px;border-radius:15px;background:#D3D8E0;position:relative;cursor:pointer;transition:background .15s;margin:0;padding:0;border:0;min-height:0}
input.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
input.switch:checked{background:var(--accent)}
input.switch:checked::after{transform:translateX(20px)}
input.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-color-scheme: dark){input.switch{background:#3A4152}}
/* 0.62.4 — журнал запросов */
.api-sum{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.api-sum span{display:flex;flex-direction:column;gap:2px}
.api-sum small{font-size:12px;color:var(--muted)}
.api-sum b{font-size:20px;font-variant-numeric:tabular-nums}
.api-bad{color:var(--danger,#D93025)!important}
.api-tabs{justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:0 0 10px;padding-bottom:2px}
.api-tabs::-webkit-scrollbar{display:none}
.api-tabs a{white-space:nowrap}
.api-list{list-style:none;margin:0;padding:0}
.api-row{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid var(--line,#E2E6EC)}
.api-list > .api-row:first-child{border-top:0}
.api-what{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;color:var(--ink);text-decoration:none}
.api-path{font-size:13px;overflow-wrap:anywhere;color:var(--ink)}
.api-what small{font-size:12px}
.api-n{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.api-n b{font-size:17px;font-variant-numeric:tabular-nums}
.api-n small{font-size:12px;white-space:nowrap}
.api-ev{display:flex;flex-direction:column;gap:3px;padding:10px 0;border-top:1px solid var(--line,#E2E6EC);font-size:13px}
.api-list > .api-ev:first-child{border-top:0}
.api-ev small{font-size:12px;overflow-wrap:anywhere}
.api-more summary{cursor:pointer;color:var(--accent);font-weight:600;padding:8px 0;list-style:none}
.api-more summary::-webkit-details-marker{display:none}

/* 0.62.4 — история покупателя в шторке сборки */
.ozq-risk { margin: 4px 6px 8px; min-height: 40px; font-size: 13px; }
.ozq-risk b { font-size: 20px; line-height: 1; }


/* 0.62.9 — что взять: фото, название, тип, количество */
.ozq-what { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 12px; border: 1px solid var(--line, #E5E8EE); border-radius: 14px; background: var(--card, #fff); }
.ozq-what img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: #f2f3f5; }
.ozq-what-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ozq-what-t b { font-size: 18px; line-height: 1.25; }
.ozq-what-q { display: flex; flex-direction: column; align-items: center; flex: none; }
.ozq-what-q b { font-size: 30px; line-height: 1; color: var(--accent, #1F4FD1); }
.ozq-what-q small { font-size: 12px; color: #7a7f88; }
.ozbs-item { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.ozbs-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: #f2f3f5; }
.ozbs-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.ozbs-item-q { font-size: 20px; color: var(--accent, #1F4FD1); flex: none; }

/* 0.62.10 — автопечать рядом с кнопкой печати; шторки на планшете; тихая пометка «отменить нельзя» */
.prt-line { display: flex; align-items: stretch; gap: 8px; }
.prt-line > .btn { flex: 1; min-width: 0; margin: 0; }
.prt-line > .btn[hidden] { display: none; }
.prt-auto { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; padding: 6px 8px;
  border: 1px solid var(--line, #E5E8EE); border-radius: 14px; background: var(--card, #fff); cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.1; text-align: center; color: var(--ink); }
.prt-auto input.switch { margin: 0; }
.oz-sheet .ozq-note, .ozq-note { color: #8a8f98; font-weight: 400; font-size: 12px; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .oz-sheet .ozq-note { color: #9aa0aa; } }
@media (min-width: 600px) {
  /* шторка на планшете — аккуратное окно по центру, а не полоса во всю ширину */
  .svc-sheet { inset: 0; margin: auto; width: calc(100% - 48px); max-width: 520px; height: fit-content; max-height: 90vh; border-radius: 22px; padding: 10px 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
  .svc-sheet .svc-grab { display: none; }
  .ozq-what img { width: 84px; height: 84px; }
  .ozq-list { max-height: 34vh; }
}
@media (min-width: 600px) and (max-height: 620px) {
  .svc-sheet { max-height: 94vh; }
  .ozq-what { margin-bottom: 8px; }
}

/* 0.62.13 — окно подтверждения: компактное на планшете/ПК, заголовок не налезает на кнопки */
.crm-ask .pr-ask-title { margin-bottom: 18px; }
.crm-ask .pr-ask-sub { margin-top: -10px; }
@media (min-width: 600px) {
  .svc-sheet.pr-ask { max-width: 380px; height: fit-content; max-height: 90vh; padding: 18px 20px 20px; }
  .pr-ask .pr-ask-ic { width: 48px; height: 48px; font-size: 26px; margin: 0 auto 10px; }
  .crm-ask .pr-ask-title { font-size: 19px; }
  .pr-ask-btns .btn { min-height: 46px; font-size: 16px; }
}

/* 0.63.0 — вкладка «Цены» */
.tabbar.tabs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pb-sum { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.pb-sum-zones { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.pb-zc { display: inline-flex; align-items: center; gap: 6px; }
.pb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: 0; }
.pb-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 4px; }
.pb-filters::-webkit-scrollbar { display: none; }
.pb-filters a { white-space: nowrap; }
.pb-filters a small { opacity: .6; font-weight: 500; }
.pb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-all { border: 1px solid var(--line); background: var(--card); color: var(--accent, #1F4FD1); border-radius: 10px; min-height: 32px; padding: 0 12px; font: 600 13px inherit; }
.pb-all[hidden] { display: none; }
.pb-list { padding: 0; overflow: hidden; }
.pb-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.pb-row:last-child { border-bottom: 0; }
.pb-row.is-picked { background: #EEF3FF; }
@media (prefers-color-scheme: dark) { .pb-row.is-picked { background: #1C2A4A; } }
.pb-chk { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; margin: -6px 0; }
.pb-chk[hidden] { display: none; }
.pb-chk input { width: 22px; height: 22px; accent-color: var(--accent, #1F4FD1); margin: 0; }
.pb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; }
.pb-name { font-size: 15px; line-height: 1.25; }
.pb-guide { font-size: 12px; color: var(--muted); }
.pb-guide .pb-g { color: #2E8A3B; font-weight: 600; }
.pb-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.pb-ad-on { color: #2E8A3B; font-weight: 600; }
.pb-ad-off, .pb-zero { color: #B35F00; }
.pb-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.pb-price > b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pb-price small { font-size: 12px; color: var(--muted); }
.pb-buyer b { font-size: 12px; }
.pb-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 616px; margin: 0 auto; font-weight: 600; }
body.pb-select .main { padding-bottom: 96px; }
.pb-sheet-t { display: block; font-size: 19px; margin: 2px 4px 10px; }
.pb-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-modes label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.pb-modes label:has(input:checked) { border-color: var(--accent, #1F4FD1); background: #EEF3FF; font-weight: 600; }
@media (prefers-color-scheme: dark) { .pb-modes label:has(input:checked) { background: #1C2A4A; } }
.pb-modes input { accent-color: var(--accent, #1F4FD1); margin: 0; }
.pb-val { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pb-val[hidden] { display: none; }
.pb-val input { font-size: 18px; }
.pb-prev { display: flex; flex-direction: column; max-height: 36vh; overflow-y: auto; margin-top: 10px; border-top: 1px solid var(--line); }
.pb-pv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pb-pv.is-bad { background: #FDF3F2; }
@media (prefers-color-scheme: dark) { .pb-pv.is-bad { background: #2E1A18; } }
.pb-pv-n { flex: 1; min-width: 0; }
.pb-pv-p { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pb-pv-p s { color: var(--muted); }
.pb-warn { margin: 8px 4px 0; font-size: 13px; font-weight: 600; }
.pb-refresh { margin-top: 4px; }

.pb-modes input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }
.pb-guide { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.pb-guide span { display: inline-flex; align-items: center; gap: 4px; }
.pb-guide .pb-dot { width: 8px; height: 8px; }
/* 0.63.2 — «Выбрать несколько» во вкладке «Цены» не прилипает к шапке (наезжал на заголовок) */
#pb-toggle.ozm-toggle { margin: 0 0 4px; }
.pb-stock { margin: 0; }
.pb-stock a { font-size: 15px; }
/* 0.63.4 — раскрывашка цены под товаром во вкладке «Цены» */
.pb-row.is-open{background:var(--bg)}
.pb-drop{padding:4px 12px 12px;background:var(--bg);border-top:1px dashed var(--line)}
.pb-drop .an-pbox{margin:4px 0 6px}
.pb-drop .pb-more{display:inline-block;font-size:14px;font-weight:600;color:var(--accent,#2B5BE0);text-decoration:none;padding:6px 0}
/* 0.63.7 — окно «Изменить цену»: сегменты вместо карточек-радио, сводка, кнопки в одну строку */
.svc-sheet.pb-sheet { display: none; flex-direction: column; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: hidden; }
.svc-sheet.pb-sheet[open] { display: flex; }
.pb-sh-head { display: flex; align-items: baseline; gap: 8px; padding: 4px 2px 12px; }
.pb-sh-head b { font-size: 19px; }
.pb-sh-head span { font-size: 14px; }
.pb-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); }
.pb-seg label { position: relative; display: block; cursor: pointer; }
.pb-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pb-seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 4px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.pb-seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pb-seg input:focus-visible + span { outline: 2px solid var(--accent, #1F4FD1); outline-offset: 1px; }
.pb-mode-h { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.pb-val { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pb-val:focus-within { border-color: var(--accent, #1F4FD1); box-shadow: 0 0 0 3px rgba(31,79,209,.15); }
.pb-val[hidden] { display: none; }
.pb-val input { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: none; padding: 10px 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-val i { font-style: normal; font-size: 18px; color: var(--muted); }
.pb-stat { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.pb-stat:empty { display: none; }
.pb-stat span { padding: 3px 9px; border-radius: 99px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); }
.pb-stat .is-chg { background: #E8F5EC; color: #16783C; }
.pb-stat .is-bad { background: #FDECEA; color: #B3261E; }
@media (prefers-color-scheme: dark) { .pb-stat .is-chg { background: #16301F; color: #7FD39A; } .pb-stat .is-bad { background: #3A1C19; color: #F2A39B; } }
.pb-prev { flex: 1 1 auto; min-height: 60px; max-height: none; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; scrollbar-width: thin; }
.pb-pv { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pb-pv:last-child { border-bottom: 0; }
.pb-pv-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pv-p { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pb-pv-p s { color: var(--muted); font-size: 13px; }
.pb-pv-arr { color: var(--muted); font-size: 12px; }
.pb-pv-p b { font-size: 15px; }
.pb-pv-p .pb-dot { width: 9px; height: 9px; }
.pb-pv.is-same, .pb-pv.is-none { color: var(--muted); }
.pb-pv.is-same .pb-pv-p, .pb-pv.is-none .pb-pv-p { font-size: 13px; }
.pb-pv.is-bad { background: #FDF3F2; }
.pb-warn { margin: 8px 2px 0; font-size: 13px; font-weight: 600; color: #B3261E; }
.pb-sh-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 12px; }
.pb-sh-foot .btn { margin: 0; min-height: 48px; }
.pb-sh-note { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 600px) { .svc-sheet.pb-sheet { max-height: min(720px, 90vh); padding: 18px 20px 18px; } }
.pb-sheet .pb-val { flex-direction: row; }
.pb-sheet .pb-warn { display: none; }
.pb-pv-n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
@media (max-width: 420px) { .pb-seg span { font-size: 13px; padding: 0 2px; } .pb-pv { padding: 8px 10px; gap: 8px; } .pb-pv-n { font-size: 13px; } .pb-pv-arr { display: none; } }
/* 0.63.8 — остаток, продажи, запас в днях; акция и последняя смена цены */
.pb-stats { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; }
.pb-st { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 7px; border-radius: 6px; background: var(--bg); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pb-st b { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-st.is-zero b { color: var(--muted); font-weight: 600; }
.pb-days.is-amb { background: #FFF4DE; color: #8A5A00; } .pb-days.is-amb b { color: #8A5A00; }
.pb-days.is-red { background: #FDECEA; color: #B3261E; } .pb-days.is-red b { color: #B3261E; }
@media (prefers-color-scheme: dark) { .pb-days.is-amb { background: #3A2E12; } .pb-days.is-amb, .pb-days.is-amb b { color: #F2C66D; } .pb-days.is-red { background: #3A1C19; } .pb-days.is-red, .pb-days.is-red b { color: #F2A39B; } }
.pb-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.pb-promo { color: #B4531A; font-weight: 600; }
@media (prefers-color-scheme: dark) { .pb-promo { color: #F0A46B; } }
.pb-last { font-variant-numeric: tabular-nums; }
/* 0.63.9 — раскрывашка цены: кнопки зон ставят цену, компактная вёрстка */
.pb-row.is-open .pb-st { background: var(--card); }
.pb-drop { padding: 10px 12px 12px; }
.pb-drop .an-pbox { margin: 0; }
.pb-drop .pr-row.an-prow { gap: 10px; }
.pb-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pb-pick { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pb-pick span { font-size: 12px; color: var(--muted); }
.pb-pick b { grid-column: 1 / -1; font-size: 17px; font-variant-numeric: tabular-nums; }
.pb-pick .pb-dot { width: 9px; height: 9px; }
.pb-pick:hover { border-color: var(--line-strong); }
.pb-pick.is-cur { border-color: var(--accent, #1F4FD1); box-shadow: 0 0 0 1px var(--accent, #1F4FD1) inset; }
.pb-drop .pr-set { gap: 8px; flex-wrap: nowrap; }
.pb-drop .pr-price { flex: 1; min-width: 0; }
.pb-drop .pr-price .pr-new { flex: 1; width: auto; min-width: 0; min-height: 46px; font-size: 18px; font-weight: 600; }
.pb-drop .pr-set .pr-save { min-height: 46px; font-size: 16px; padding: 0 18px; }
.pb-drop .an-promo, .pb-drop .ym-promo { margin: 0; font-size: 13px; }
.pb-drop .an-hist { margin-top: 2px; padding-top: 6px; }
.pb-drop .an-hist summary { font-size: 13px; }
.pb-drop .pb-more { font-size: 13px; padding: 4px 0 0; }
.pb-drop .pr-ok { margin: 0; font-size: 13px; }
.pb-drop .an-pbox { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 16px; }
.pb-drop .an-pbox > .pr-row { flex: 1 1 100%; }
.pb-drop .an-pbox > .an-hist { flex: 1 1 auto; border-top: 0; margin-top: 4px; padding-top: 4px; }
.pb-drop .an-pbox > .an-hist[open] { flex-basis: 100%; order: 2; }
.pb-drop .an-pbox > .pb-more { flex: none; margin-left: auto; padding-top: 8px; }
.pb-drop .an-pbox > .pr-row { min-width: 0; max-width: 100%; }
.pb-drop .pb-picks, .pb-drop .ym-promo, .pb-drop .pr-set, .pb-drop .pr-ok { min-width: 0; max-width: 100%; }
.pb-drop .ym-promo span, .pb-drop .ym-promo small { white-space: normal; overflow-wrap: anywhere; }
.pb-drop .pb-pick { min-width: 0; }
@media (max-width: 420px) { .pb-pick { padding: 7px 8px; } .pb-pick b { font-size: 16px; } .pb-pick span { font-size: 11px; } }
/* 0.63.10 — товар в акции: крупно цена для покупателя, наша — мелко */
.pb-price.is-promo .pb-p-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #B4531A; }
.pb-price.is-promo .pb-p-our { font-size: 12px; color: var(--muted); }
.pb-price.is-promo .pb-p-our s { text-decoration-thickness: 1px; }
@media (prefers-color-scheme: dark) { .pb-price.is-promo .pb-p-lbl { color: #F0A46B; } }
.pb-row[hidden], .pb-grp[hidden], .pb-filters a[hidden], .pb-zc[hidden], #pb-empty[hidden], #pb-toggle[hidden] { display: none !important; }
/* 0.63.11 — «Реклама Ozon»: статус карточкой, ключ — под раскрывашкой */
.ads-st { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ads-st-h { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ads-ok { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E8F5EC; color: #16783C; font-weight: 800; flex: none; }
@media (prefers-color-scheme: dark) { .ads-ok { background: #16301F; color: #7FD39A; } }
.ads-st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ads-st-grid span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); min-width: 0; }
.ads-st-grid b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ads-st-grid i { font-style: normal; font-size: 12px; color: var(--muted); }
.ads-st-id { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-st-err { margin: 0; font-size: 13px; }
.ads-st .btn { margin: 0; }
.ads-key { padding: 0; }
.ads-key summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.ads-key summary::-webkit-details-marker { display: none; }
.ads-key summary::after { content: '›'; color: var(--muted); transition: transform .15s; }
.ads-key[open] summary::after { transform: rotate(90deg); }
.ads-key .ads-form { padding-top: 0; }
.ads-new { padding: 16px 0 0; }
.ads-new > .hint { margin: 0 16px; }
.ads-off { text-align: center; margin: 4px 0; }
.ads-off .btn-link { background: none; border: 0; padding: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ads-form input[name=perf_id] { font-size: 15px; text-overflow: ellipsis; }
.ads-st .btn-ghost { border: 1px solid var(--line); min-height: 44px; }
/* 0.63.12 — «Сборка»: радужный «Разделить на одиночные» крупнее, меньше пустоты вокруг */
.oz-splitlink.rainbow { margin: 12px 0 12px; padding: 16px 16px 16px 18px; min-height: 80px; }
.oz-splitlink.rainbow .ozg-main { gap: 3px; }
.oz-splitlink.rainbow .ozg-main b { font-size: 19px; }
.oz-splitlink.rainbow .ozg-main small { font-size: 14px; }
.ozm-toggle.btn { min-height: 44px; }
#ozm-toggle { margin: 0 0 6px; }
/* 0.63.13 — зоны в сводке — фильтры */
.pb-sum-zones .pb-zc { font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 99px; padding: 4px 10px 4px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pb-sum-zones .pb-zc:hover { background: var(--bg); }
.pb-sum-zones .pb-zc.is-on { background: var(--bg); border-color: var(--ink); font-weight: 600; }
.pb-sum-zones { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -8px; }
@media (max-width: 420px) { .pb-sum-zones .pb-zc { padding: 3px 8px 3px 6px; font-size: 13px; gap: 4px; } }
/* 0.63.16 */
.pb-promo.is-flat { color: var(--muted); font-weight: 500; }
.pb-price .pb-p-lbl.is-our { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.an-promo-flat { margin: 0; font-size: 13px; color: var(--muted); }
.pb-drop .an-pbox > .an-hist { flex-basis: 100%; }
.pb-drop .an-hist > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-drop .an-hist > summary .pb-more { padding: 0; font-size: 13px; font-weight: 600; }
/* 0.63.17 — лучшие покупатели */
.qloyal { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: #FDE8F0; border: 1px solid #F5C2D6; color: #8E2450; text-decoration: none; font-size: 14px; font-weight: 600; }
.qloyal span { flex: 1; } .qloyal .ic { width: 18px; height: 18px; flex: none; }
.qloyal-m { color: #8E2450; font-weight: 700; }
.qbadge.qb-loyal { background: #FDE8F0; border-color: #F5C2D6; color: #8E2450; }   /* OZ-009: ❤️ любимых покупателей — мягкий розовый */
.bpct.is-loyal { color: #A87400; }
.bsort-n { align-items: center; gap: 6px; margin-top: -4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qloyal, :root:not([data-theme="light"]) .qbadge.qb-loyal { background: #3A1A2A; border-color: #6B2F4A; color: #F8B4CE; } :root:not([data-theme="light"]) .qloyal-m { color: #F8B4CE; } :root:not([data-theme="light"]) .bpct.is-loyal { color: #F7D774; } }
.qloyal-m { flex: none; white-space: nowrap; padding: 1px 8px; border-radius: 99px; background: #FDE8F0; color: #8E2450; font-size: 13px; }
.ozq-row.is-loyal, .oz-group li.is-loyal { background: #FFF5F9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qloyal-m { background: #3A1A2A; color: #F8B4CE; } :root:not([data-theme="light"]) .ozq-row.is-loyal, :root:not([data-theme="light"]) .oz-group li.is-loyal { background: #2A1520; } }
.pb-ozsync { margin: 0 0 8px; min-height: 44px; border: 1px solid var(--line); }
.pb-seg:has(input[value=oz]) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 420px) { .pb-seg:has(input[value=oz]) span { font-size: 12px; } }
.bseg { margin: 4px 0 8px; }
.bpct.is-loyal small { font-size: 12px; font-weight: 600; }
.bsort { flex-wrap: wrap; }
.bsort a { flex: 0 1 auto; white-space: nowrap; padding: 7px 12px; font-size: 13px; }
.bsort-n { margin-top: 0; }
.bsort-n > span { flex: 0 0 100%; font-size: 12px; }
/* 0.63.19 */
.bseg .seg-btn { flex: 1 1 0; min-width: 0; }
.ozh-wrap { padding: 0; margin-bottom: 12px; }
.ozh-wrap > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.ozh-wrap > summary::-webkit-details-marker { display: none; }
.ozh-wrap > summary > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ozh-wrap > summary small { font-size: 12px; }
.ozh-act { flex: none; font-size: 14px; font-weight: 600; color: var(--accent, #2B5BE0); }
.ozh-wrap[open] .ozh-act { visibility: hidden; }
.ozh-wrap .form-card { padding-top: 0; }
.seg.bseg { grid-template-columns: 1fr 1fr; }

/* R12 (0.63.28) — планшет и ПК: шапка, нижнее меню и нижние панели — над колонкой контента 640 px.
   Фон и граница полос по-прежнему во всю ширину, сдвигаем только содержимое. На телефоне (до 699 px) ничего не меняется. */
@media (min-width: 700px) {
  .topbar { padding-left: calc((100% - 640px) / 2 + 12px); padding-right: calc((100% - 640px) / 2 + 12px); }
  .tabbar { padding-left: calc((100% - 640px) / 2); padding-right: calc((100% - 640px) / 2); }
  .ozm-bar { padding-left: calc((100% - 640px) / 2 + 14px); padding-right: calc((100% - 640px) / 2 + 14px); }
  .typing { left: calc((100% - 616px) / 2); }   /* «печатает…» — над полем ввода, а не у края окна */
}

/* R12 — фото в чате до загрузки: серая карточка 4:3, а не пустой цветной пузырь */
.bubble img { min-width: 120px; min-height: 90px; background: var(--line); object-fit: contain; font-size: 0; }   /* font-size 0 — не показывать alt-ссылку поверх заглушки */
.bubble a:has(> img) { display: block; }

/* R6 (0.63.30–32) — плашка «Цены: 1 мин назад ⟳» над страницами аналитики и цен */
.snap-at { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 6px; margin: 0 0 12px; padding: 3px 3px 3px 12px;
  background: var(--attn); color: var(--attn-ink); border-radius: 16px; font-size: 13px; line-height: 1.3; }
.snap-t { min-width: 0; }
.snap-btn { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; }
.snap-btn svg { width: 16px; height: 16px; }
.snap-btn:hover, .snap-btn:focus-visible { background: color-mix(in srgb, var(--attn-ink) 12%, transparent); }
.snap-btn:active svg { transform: rotate(90deg); }
.snap-at.is-busy .snap-btn svg { animation: snap-spin .9s linear infinite; }
@keyframes snap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snap-at.is-busy .snap-btn svg { animation: none; } .snap-at.is-busy .snap-btn { opacity: .5; } }

/* B1 (0.63.35) — карточка покупателя Ozon: заказы одной покупки стопкой, между покупками — отступ */
.bord.bg-more { margin-bottom: -9px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }   /* .main gap 12px − 9px = 3px внутри покупки */
.bord.bg-cont { border-top-left-radius: 4px; border-top-right-radius: 4px; }   /* между покупками — как раньше (10px + 12px) */

/* B2 (0.63.36) — город доставки у отказа (поиск по катушке, карточка покупателя) */
.bplace { font-size: 12px; color: var(--muted); }
.bord .bplace { margin-top: -4px; }
.rtrack { font-size: 12px; color: var(--muted); }
.rtrack summary { cursor: pointer; }
.rtrack ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.rtrack b { color: var(--ink-2); font-weight: 600; }

/* B6 (0.63.41) — чёрный список покупателей Ozon */
.bl-on { border: 1px solid var(--danger); }
.bl-on > b { color: var(--danger); }
.bl-on small { display: block; }
.bl-add summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.bl-add .form { margin-top: 10px; }
.qrisk.is-black { background: var(--danger); border-color: var(--danger); color: var(--card); font-weight: 700; }
.qrisk.is-black .ic { color: var(--card); }
.qbadge.qb-black { background: var(--danger); color: var(--card); }
/* 0.63.43: несколько агентов печати, принтер 4 */
.pdot.is-none { background: #C9CED6; }
.pprn.is-none .pprn-msg { color: var(--muted, #8A919C); }
.pagent { align-items: flex-start; gap: 10px; }
.pagent .pdot { margin-top: 5px; }
.pagent-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pagent-edit { margin-top: 6px; }
.pagent-edit summary { cursor: pointer; color: var(--accent, #2563EB); font-size: 14px; }
.pagent-edit form { margin-top: 8px; }
.pagent-form { display: flex; gap: 8px; }
.pagent-form input[type=text] { flex: 1; min-width: 0; }
.list-row.pagent > span.pdot { flex: none; }

/* 0.64.0 — «Объявления» Авито */
.av-sum { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.av-sum-n { display: flex; align-items: baseline; gap: 6px; font-size: 15px; }
.av-sum-n b { font-size: 22px; font-variant-numeric: tabular-nums; }
.av-row { gap: 10px; }
.av-row .pb-main { gap: 2px; }
.av-row.is-on { border-left-color: var(--accent, #1F4FD1); }
.av-row.is-wait { border-left-color: #E0A100; }
.av-row.is-busy { opacity: .6; }
.av-row:not(.is-on) .pb-name { color: var(--muted); font-weight: 600; }
.av-price b { font-size: 13px; }
.av-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.av-art { font-variant-numeric: tabular-nums; opacity: .8; }
.av-tag { color: #2E8A3B; font-weight: 600; }
.av-why { color: #B35F00; }
.av-why[hidden] { display: none; }
.av-sw-l { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -6px -4px -6px 0; cursor: pointer; }
input.switch.av-sw { width: 36px; height: 22px; border-radius: 11px; }
input.switch.av-sw::after { top: 2px; left: 2px; width: 18px; height: 18px; }
input.switch.av-sw:checked::after { transform: translateX(14px); }
input.switch.av-sw:disabled { opacity: .4; cursor: not-allowed; }
.av-site { padding: 12px 14px; margin-top: 14px; }
.av-site summary { cursor: pointer; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.av-site form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.av-site-r { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.av-site-r span { flex: 1; min-width: 0; }
.av-site-r input { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.av-site-r i { font-style: normal; color: var(--muted); }
.av-filters { margin: 4px 0 6px; }
.av-grp[hidden], .av-row[hidden], #av-empty[hidden] { display: none !important; }
/* 0.64.1 — карточка объявления Авито, строка списка — ссылка */
.av-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.av-open:active .pb-name { text-decoration: underline; }
.av-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.av-card-head { display: flex; gap: 12px; align-items: center; }
.av-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-card-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.av-card-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.av-card-sw > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-card-sw .btn { width: auto; flex: none; padding: 0 16px; }
.av-title { margin: 6px 0 12px; font-size: 15px; }
.av-desc { white-space: normal; line-height: 1.45; }
.av-dl { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 6px 12px; margin: 8px 0 0; font-size: 14px; }
.av-dl dt { color: var(--muted); }
.av-dl dd { margin: 0; overflow-wrap: anywhere; }
.kit-img.is-broken, .kit-img.is-pending, .kit-img.is-blocked { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); }
.kit-img.is-pending::before { content: "загружается…"; font-size: 12px; color: var(--muted); }
.kit-img.is-broken::before { content: "фото Авито"; font-size: 11px; color: var(--muted); }
/* 0.64.3 — цена на плитке, массовая смена цены, фото крупнее */
.av-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.av-side .av-sw-l { margin: -6px -4px -6px 0; }
button.av-price { border: 0; cursor: pointer; font: inherit; color: var(--ink); min-height: 30px; padding: 0 10px; }
button.av-price::after { content: '✎'; margin-left: 5px; font-size: 11px; color: var(--muted); }
button.av-price.is-custom { background: #EEF3FF; color: var(--accent, #1F4FD1); }
button.av-price.is-custom::after { color: var(--accent, #1F4FD1); }
@media (prefers-color-scheme: dark) { button.av-price.is-custom { background: #1C2A4A; } }
.av-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-pe .btn { width: auto; min-height: 44px; padding: 0 16px; margin: 0; }
.av-pe-in { display: flex; align-items: center; gap: 6px; flex: 1 1 120px; min-width: 110px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.av-pe-in:focus-within { border-color: var(--accent, #1F4FD1); box-shadow: 0 0 0 3px rgba(31,79,209,.15); }
.av-pe-in input { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: none; padding: 10px 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.av-pe-in i { font-style: normal; color: var(--muted); }
.av-pe-msg { flex-basis: 100%; color: #B3261E; }
.av-pe-msg[hidden], .av-pe .btn[hidden] { display: none; }
.av-row.is-open { background: var(--bg); }
.av-card-price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.av-card-price label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; font-size: 13px; color: var(--muted); }
.av-card-price .btn { width: auto; min-height: 44px; padding: 0 16px; margin: 0; }
.av-card-price small { flex-basis: 100%; }
.av-photos .kit-imgs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.av-photos .kit-img { width: auto; height: auto; aspect-ratio: 1; }
.av-photos .kit-img-bar button { height: 36px; font-size: 18px; }
.av-photos .kit-img-main { font-size: 12px; padding: 2px 8px; }
.av-photos .kit-photo-form .btn { min-height: 44px; }
/* 0.64.4 — правка заголовка и текста в карточке */
.av-text-form { display: flex; flex-direction: column; gap: 12px; }
.av-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.av-f input, .av-f textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.45; }
.av-f textarea { min-height: 280px; resize: vertical; }
.av-text-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.av-text-btns .btn { width: auto; min-height: 44px; padding: 0 18px; margin: 0; }
.av-tag.is-mine { color: var(--accent, #1F4FD1); }
.kit-img.is-blocked::before { content: "фото Авито"; font-size: 11px; color: var(--muted); text-align: center; }
/* 0.64.7 — общие фото линейки */
.av-common-link { margin: 0 0 6px; }
.av-common-h { margin: 14px 0 0; }
.av-common-t { background: rgba(21,23,28,.7); }
.av-common-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.av-common-f .btn { width: auto; min-height: 40px; margin: 0; }

/* 0.64.8 — плитки «что собрать» у заказов Авито (как группы на Ozon) */
.pk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid #E3E8F0; border-radius: 14px; }
.pk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-main b { font-size: 16px; line-height: 1.25; }
.pk-main .oz-kind { font-size: 12px; padding: 3px 10px; }
.pk-qty { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.05; }
.pk-qty b { font-size: 28px; color: #005BFF; }
.pk-qty small { font-size: 12px; color: var(--muted); }
.pk-s { padding: 6px 8px; gap: 10px; border-radius: 12px; }
.pk-s .thumb-l { width: 48px; height: 48px; border-radius: 10px; }
.pk-s span.thumb-l.thumb-empty { width: 48px; height: 48px; }
.pk-s .pk-main b { font-size: 14.5px; }
.pk-s .pk-main .oz-kind { font-size: 11px; padding: 2px 8px; }
.pk-s .pk-qty b { font-size: 22px; }
.pk-s .pk-qty { min-width: 40px; }
.ocard-items .pk-list { gap: 6px; }
.pk-sec { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.pk-h { margin: 0; font-size: 15px; }
.pk-need.is-ok { border-color: #2E9E4F; background: #EAF7EE; }
.pk-need.is-ok .pk-main b::before { content: '✓ '; color: #2E9E4F; }
.pk-nocode .pk-main::after { content: 'штрихкода нет — без скана'; font-size: 12px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .pk { background: #1f2533; border-color: #2d3548; } .pk-need.is-ok { background: #17301f; } }
/* 0.64.9 — статус загрузки файла в Авито */
.av-up { margin: 0 2px 8px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.av-up.is-err { color: #B3261E; font-weight: 600; }
.av-up.is-wait { color: #9A5200; }
.pk-sub { font-size: 12.5px; color: var(--muted); }
.sect .pk-list { margin-bottom: 8px; }
.pk-scan .pk-need { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-scan .pk-need:not(.is-ok):active { background: #EEF4FF; border-color: #005BFF; }
/* 0.64.14 — пока не отсканировано, это видно сразу */
.pk-scan.is-locked { border: 2px solid #F5A524; border-radius: 14px; padding: 12px; background: #FFF8EB; }
.pk-scan.is-locked .pk-lock { color: #9A5200; font-weight: 600; margin: 0; }
.pk-scan:not(.is-locked) .pk-lock { color: #2E9E4F; font-weight: 600; margin: 0; }
#step-submit:disabled { background: #D8DCE3; color: #5b6476; }
@media (prefers-color-scheme: dark) { .pk-scan.is-locked { background: #3a2c10; } }
/* 0.64.15 — плитка «что собрать»: название до 2 строк, метка «без катушки» в одну строку */
.pk-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.25; }
.pk-main .oz-kind { white-space: nowrap; }
.pk-main { gap: 3px; }
.pk .thumb-l { width: 56px; height: 56px; }
.pk span.thumb-l.thumb-empty { width: 56px; height: 56px; }
.pk-qty b { font-size: 26px; }
.pk-s .pk-main b { font-size: 14px; }
.pk-s .thumb-l, .pk-s span.thumb-l.thumb-empty { width: 48px; height: 48px; }
.pk-need.is-ok .pk-main b::before { display: inline; }
.scan-slot .ozm-row .t .oz-kind { margin-top: 2px; white-space: nowrap; }
.pk-need.is-manual { border-color: #F5A524; background: #FFF8EB; }
.pk-need.is-manual .pk-main b::before { content: "✋ "; color: #9A5200; }
.ozq-ok.is-manual { color: #9A5200; }
.scan-slot .ozm-row .ozm-manual { margin-left: auto; flex: none; }

/* 0.64.18 — откуда фото: своё / из МойСклад / с Авито / общие */
.av-src { position: absolute; right: 4px; top: 4px; z-index: 1; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.94); color: #444; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.av-src.is-crm { color: #2E8A3B; }
.av-src.is-ms { color: #B26A00; }
.av-src.is-avito { color: #9a3412; }
.av-src.is-common { color: #5a4fcf; }
.kit-img { position: relative; }
.av-nocopy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-size: 11px; color: #777; background: #f1f1ef; }
.av-photos .av-src { font-size: 12px; padding: 2px 8px; }
.av-tag.is-ms { color: #B26A00; }
.av-tag.is-nophoto { color: #C0392B; }
/* 0.64.21: «Отложить» в отзывах — фальстарт клиента */
.rv-later { margin-top: 6px; }
.rv-later-btn { width: 100%; background: none; border: 1px dashed var(--line-strong, #C9CED6); color: #6B7280; font-size: 13px; white-space: normal; line-height: 1.3; padding: 8px 10px; }
/* 0.64.21: «У вас новый отзыв» в переписке — заметная карточка с кнопкой */
.sys-review { background: var(--accent-soft, #E8F3FF); border: 1px solid var(--accent); gap: 6px; padding: 10px 12px; }
.sys-review.is-done { background: var(--line); border-color: transparent; }
.sys-review .sys-title { font-size: 14px; }
.sys-review-btn { display: block; text-align: center; text-decoration: none; margin-top: 2px; }
.sys-review-more { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; }
/* 0.64.23: скидка клиента шоурума */
.shop-sums{display:grid;gap:4px;margin:0 0 10px;padding:10px 12px;border-radius:12px;background:var(--bg-soft,var(--line))}
.shop-sums div{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--muted)}
.shop-sums .is-disc b{color:#B0215F}
.shop-sums .is-total{font-size:18px;font-weight:800;color:var(--ink);border-top:1px solid var(--line);padding-top:6px;margin-top:2px}
.shop-sums .is-total b{font-weight:800}
.shop-disc-form{display:flex;align-items:flex-end;gap:8px;margin-bottom:8px}
.shop-disc-form label,.shop-disc-in{flex:1}
.shop-disc-in{display:block;margin:0 0 10px}
.shop-o-disc{font-size:13px;color:#B0215F;font-weight:600}.shop-o-disc s{color:var(--muted);font-weight:500}
.shop-c-disc{display:inline-block;align-self:center;padding:3px 10px;border-radius:999px;background:#FCE4EE;color:#B0215F;font-weight:700;font-size:13px}
/* 0.64.24: шоурум → «Поиск» */
.sr-card{width:100%;text-align:left;cursor:pointer;position:relative}
.sr-card.is-picked{opacity:.55}
.sr-card.is-pinned{cursor:default;border-color:var(--accent)}
.sr-x{position:absolute;top:6px;right:8px;font-size:14px;color:var(--muted);padding:2px 6px;cursor:pointer}
.sr-card.is-pinned .an-pr{margin-right:18px}
.sr-st{font-weight:700}
.sr-st.is-ok,.sr-st.is-many{color:#0F8A5F}.sr-st.is-few{color:#9A5200}.sr-st.is-low{color:#D93025}.sr-st.is-zero{color:var(--muted)}.sr-st.is-unk{color:var(--muted)}
.sr-copy{display:grid;gap:8px;margin:10px 0 6px}
.sr-msg{margin:6px 0 12px;font-weight:600}
.oz-ser[hidden],#sr-pins-box[hidden]{display:none!important}
/* 0.64.29: «Тексты для отзыва» на главной «Отзывов» — блоки «клик — скопировано» */
.rv-texts { display: grid; gap: 8px; }
.rv-texts-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-edit-btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.rv-code { position: relative; display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; line-height: 1.4; color: var(--ink);
  background: var(--bg-soft, var(--line)); border: 1px solid var(--line); border-radius: 10px; padding: 8px 36px 8px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-code:active { border-color: var(--accent); }
.rv-code.is-copied { border-color: var(--accent); background: var(--accent-soft, var(--line)); }
.rv-code-ic { position: absolute; top: 8px; right: 9px; width: 18px; height: 18px; color: var(--muted); font-weight: 700; line-height: 18px; text-align: center; }
.rv-code.is-copied .rv-code-ic { color: var(--accent); }
.rv-code-ic svg { width: 18px; height: 18px; display: block; }
.rv-more > summary { list-style: none; cursor: pointer; text-align: center; padding: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more .rv-more-close, .rv-more[open] .rv-more-open { display: none; }
.rv-more[open] .rv-more-close { display: inline; }
.rv-more-list { display: grid; gap: 8px; margin-top: 4px; }
.an-revnote{margin:8px 2px 0;font-size:12px}
.pb-cover { margin: 0 0 4px; flex-wrap: wrap; overflow: visible; }
.pb-cover a.is-zero { opacity: .45; }
.pb-cover-note { display: block; margin: 0 2px 8px; font-size: 12px; }
.pb-cover[hidden], .pb-cover-note[hidden] { display: none !important; }
.pb-search { margin: 0 0 8px; }
/* 0.64.40 — строка товара: количество и цена в две колонки, итог позиции под ними */
.shop-h{margin-top:24px}
.shop-line{gap:14px}
.shop-line .shop-fields{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:end;margin:0;padding:0}
.shop-line .shop-f{display:flex;flex-direction:column;gap:4px;min-width:0}
.shop-line .shop-fl{font-size:12px;color:var(--muted);margin-left:2px}
.shop-line .shop-step{height:44px;border-radius:12px;background:var(--card)}
.shop-line .shop-step button{width:40px;height:42px;font-size:22px}
.shop-line .shop-step .shop-qty{width:54px;min-height:42px;font-size:17px}
.shop-line .shop-price{display:flex;align-items:center;gap:6px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:15px}
.shop-line .shop-price:focus-within{border-color:var(--accent)}
.shop-line .shop-price input,.shop-line .shop-price.is-bad input{flex:1;min-width:0;width:auto;height:auto;border:0;background:transparent;padding:0;font-size:17px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;box-shadow:none;outline:0}
.shop-line .shop-price span{color:var(--muted);font-size:15px}
.shop-line .shop-price.is-bad{border-color:#D93025;background:#FDECEA}
.shop-line .shop-lsum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0;padding-top:12px;border-top:1px dashed var(--line)}
.shop-line .shop-lsum small{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.shop-line .shop-lsum .shop-sum{margin:0;font-size:20px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
/* блок «Оплата»: одна карточка — сумма, скидка (число), крупное поле «К оплате» */
.shop-sumcard{padding:14px 16px;margin:0 0 24px}
.shop-sc-row{display:flex;justify-content:space-between;align-items:center;min-height:40px;font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.shop-sc-row b{color:var(--ink);font-weight:600}
.shop-sc-disc{display:flex;align-items:center;gap:12px}
.shop-sc-disc b{min-width:84px;text-align:right;color:#B0215F}
.shop-pct{display:flex;align-items:center;gap:6px;width:92px;height:40px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.shop-pct:focus-within{border-color:var(--accent)}
.shop-pct input{flex:1;min-width:0;width:auto;height:auto;border:0;background:transparent;padding:0;text-align:right;font-size:16px;font-weight:600;outline:0;box-shadow:none}
.shop-pct i{font-style:normal;color:var(--muted)}
.shop-sc-total{margin-top:8px;padding-top:14px;border-top:1px solid var(--line)}
.shop-sc-total label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin:0 0 8px 2px}
.shop-sc-total label small{font-weight:400;color:var(--muted)}
.shop-big{display:flex;align-items:center;gap:8px;height:64px;padding:0 16px;border:2px solid transparent;border-radius:14px;background:var(--accent-soft)}
.shop-big:focus-within{border-color:var(--accent)}
.shop-big input{flex:1;min-width:0;width:auto;height:auto;border:0;background:transparent;padding:0;text-align:right;font-size:32px;font-weight:800;letter-spacing:-.02em;color:var(--accent-soft-ink);font-variant-numeric:tabular-nums;outline:0;box-shadow:none}
.shop-big span{font-size:26px;font-weight:800;color:var(--accent-soft-ink)}
.shop-sc-total .hint{margin:8px 2px 0;font-size:12px}
.shop-h-first{margin-top:4px}
.shop-client-box+.shop-add-box{margin-top:24px}
.shop-line .shop-fields,.shop-line .shop-lsum{align-self:stretch;width:100%}
/* 0.64.42 — кнопка «Сохранить заказ» не закреплена, а стоит в конце формы */
.shop-bar{position:static;padding:8px 0 4px;background:none}
/* 0.64.45 — «Не участвовать в акциях» на карточке товара Ozon */
.pr-skip{display:flex;flex-direction:column;gap:6px;margin:12px 0 4px;padding:12px 14px;border-radius:14px;background:var(--bg-soft,#F2F4F7)}
.pr-skip-l{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;cursor:pointer}
.pr-skip-l input{-webkit-appearance:checkbox;appearance:auto;width:20px;height:20px;margin:0;flex:none;accent-color:var(--accent)}
.pr-skip small{font-size:12.5px;line-height:1.4}
.pr-skip-auto{border:0;background:none;padding:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}

/* Покупатели Ozon: карточка клиента (поиск по коду / номеру отправления) */
.ccard { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 12px; border-left: 5px solid #22A55B; }
.ccard.is-warn { border-left-color: #F2B705; } .ccard.is-stop { border-left-color: #D92D20; }
.ccard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccard-code { font-size: 20px; letter-spacing: .02em; overflow-wrap: anywhere; }
.cstat { font-style: normal; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 4px 12px; background: #D8F3E3; color: #157A43; white-space: nowrap; }
.cstat.is-warn { background: #FFF1C2; color: #8A6500; } .cstat.is-stop { background: #FDE2E4; color: #B3121F; }
.cwhy { margin: 0; font-size: 14px; }
.ctags { display: flex; gap: 6px; flex-wrap: wrap; } .ctags:empty { display: none; }
.cgrid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cgrid > div, .cdates > div { min-width: 0; }
.cgrid dt, .cdates dt { font-size: 12px; color: var(--muted); }
.cgrid dd, .cdates dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cdates { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.cdates dd { font-size: 14px; }
.cord-r { flex: none; display: grid; justify-items: end; gap: 2px; text-align: right; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cstat { background: #0F3B24; color: #7EE2A8; }
  :root:not([data-theme="light"]) .cstat.is-warn { background: #4D3C00; color: #FFD866; }
  :root:not([data-theme="light"]) .cstat.is-stop { background: #5A1D22; color: #FFB4B9; }
}

/* ОБЩ-001: передача файлов */
.dfile { display: grid; gap: 8px; }
.dfile-name { overflow-wrap: anywhere; font-size: 16px; }
.dfile-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dfile-act .btn, .dfile-act form { min-height: 46px; }
.dfile-act form { margin: 0; }
/* поле выбора файла: рамка с одинаковыми отступами, кнопка как у остальных кнопок CRM и имя файла в одну линию (только внутри #drop-form) */
#drop-form .drop-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#drop-form .drop-cap { font-size: 14px; font-weight: 600; color: var(--ink-2); }
#drop-form .drop-pick { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--input-bg); cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); }
#drop-form .drop-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
#drop-form .drop-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
#drop-form .drop-btn { flex: none; min-height: 48px; padding: 0 16px; white-space: nowrap; pointer-events: none; }
#drop-form .drop-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); pointer-events: none; }
#drop-form .drop-pick.is-set .drop-name { color: var(--ink); }
#drop-go { min-height: 48px; }

/* OT-004, OT-005: «Сводка» — три карточки; на компьютере колонка шире (760 px вместо 640), остальные страницы не затронуты */
.svc-dot.svc-summary { background: #5B3FD0; color: #fff; }
.summary-cards .an-tile { margin-bottom: 12px; }
@media (max-width: 420px) { .summary-cards .an-tile-n b { font-size: 19px; } }   /* на телефоне крупная цифра чуть меньше, чтобы заголовку и подписи осталось больше места */
.summary-cards .an-tile { padding-left: 18px; box-shadow: inset 4px 0 0 var(--mp); }   /* OT-007: слева полоса в цвет площадки (как в переключателе сервисов), 4 px */
.summary-cards .mp-av { --mp: #00AAFF; }
.summary-cards .mp-oz { --mp: #005BFF; }
.summary-cards .mp-ym { --mp: #FFCC00; }
.sum-ln { display: block; }
@media (max-width: 420px) { .sum-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }   /* на телефоне подписи «новых/принято/к отгрузке» скрыты, но остаются для скринридера */
.summary-h { margin: 4px 2px 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.summary-prev { margin-top: 22px; }   /* OT-007: все дни после «Сегодня» оформлены скромно (цвета те же, что и везде, — читаются и в тёмной теме) */
.summary-day:first-child + .summary-prev { margin-top: 34px; }   /* «Вчера» заметно отбит от «Сегодня» */
.summary-prev .summary-h { font-size: 15px; font-weight: 700; color: var(--muted); }
.summary-prev .an-tile { padding: 9px 14px 9px 18px; margin-bottom: 8px; }
.summary-prev .an-tile .ozg-main b { font-size: 14px; }
.summary-prev .an-tile .ozg-main small { font-size: 12px; }
.summary-prev .an-tile-n b { font-size: 17px; }
@media (max-width: 420px) { .summary-prev .an-tile-n b { font-size: 16px; } }   /* на телефоне крупная цифра чуть меньше, чтобы заголовку и подписи осталось больше места */
@media (min-width: 800px) {
  body.is-summary .main { max-width: 760px; }
  body.is-summary .topbar { padding-left: calc((100% - 760px) / 2 + 12px); padding-right: calc((100% - 760px) / 2 + 12px); }
  body.is-summary .tabbar { padding-left: calc((100% - 760px) / 2); padding-right: calc((100% - 760px) / 2); }
}
/* MK-001: «Продажи за день → По времени» — карточка того же заказа, что и предыдущая: промежуток 2 px вместо 10 (gap у .oz-list) */
.oz-list > .is-same-order { margin-top: -8px; }

/* OZ-005, OZ-006: заказы Ozon, которые нельзя собрать (⛔ автоматически в карантине, риск без решения), и карточка заказа в карантине */
.ozs-list li.is-hold label.check { opacity: .65; }
.ozq-row.is-hold { opacity: .7; }
.ozb-tile.is-hold { border-color: #E7A39C; }
.qbadge.qb-dec { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.qpost { display: flex; flex-direction: column; gap: 2px; padding-left: 4px; border-left: 3px solid var(--line-strong); }
.qcancel { gap: 8px; }
.ozb-tile .qrisk { margin: 6px 0; }
.qbadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }   /* значки заказа на плитке сборки переносятся, а не сжимают название */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qdl.is-late { color: #FFB4AB; border-color: #7A3A34; } }   /* просроченный срок и «отменится в течение минуты» читаются и в тёмной теме */
/* OZ-007: страница «Принятые заказы» */
.acc { display: flex; flex-direction: column; gap: 6px; }
.acc-main { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.acc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-top b { font-size: 16px; }
.acc.is-need { border: 2px solid #E5202E; background: #FFF4F4; }
.acc-rec { margin: 2px 0 0; font-weight: 700; color: #B3121F; }
.acc-form { display: flex; flex-direction: column; gap: 8px; }
.acc-need-sum { margin: 6px 0; color: #B3121F; }
.acc-chips { gap: 6px; }
.acc-chips .chip { padding-left: 9px; padding-right: 9px; }
.acc-form input[type=text] { font-size: 15px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .acc.is-need { border-color: #FF6B76; background: #2A1517; }
  :root:not([data-theme="light"]) .acc-rec, :root:not([data-theme="light"]) .acc-need-sum { color: #FFB4B9; }
}
/* AV-006: кнопка «Ответ не нужен» в строке действий чата — на узком экране «Фото» остаётся значком, всё помещается в одну строку */
.chat-actions.has-close { gap: 4px; }
.chat-actions.has-close .chip { padding-left: 8px; padding-right: 8px; }
.chat-actions.has-close .chip-lbl { display: none; }
.chat-actions.has-close .chip-more { width: 36px; padding: 0; }
.chat-actions .chip-close { color: var(--ok-ink); }
@media (min-width: 480px) { .chat-actions.has-close { gap: 6px; } .chat-actions.has-close .chip { padding-left: 12px; padding-right: 12px; } .chat-actions.has-close .chip-lbl { display: inline; } .chat-actions.has-close .chip-more { width: 40px; } }
/* OZ-009: на карточке покупателя с заказом кнопки, подпись под ними и «Назад» — с обычным отступом; плашка любимого покупателя мягкого розового цвета */
.qact form { display: flex; flex-direction: column; gap: 10px; }
.heart { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDE8F0; border: 1px solid #F5C2D6; color: #8E2450; font-weight: 600; }
.acc .heart { padding: 8px 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .heart { background: #3A1A2A; border-color: #6B2F4A; color: #F8B4CE; } }

/* SR-001, вариант 2: «Из брака» через свайп влево + запасная кнопка «⋯».
   Только классы, без style="" и <style> в разметке. Положение строки при перетаскивании
   JS задаёт через element.style.transform (CSSOM, CSP это разрешает); в покое всё на классах.
   Цвета — токены из :root, отдельных правил для тёмной темы не нужно. */

/* --- метка и подпись в строке позиции (как в варианте 1) --- */
.oz-kind.is-defect{background:var(--ink);color:var(--card)}
.shop-defect-note{font-size:12px;line-height:1.3;color:var(--muted)}
.shop-line.is-defect,.shop-oline.is-defect{box-shadow:inset 3px 0 0 var(--ink)}

/* --- итоги: «из них из брака: 2 шт · 2 780 ₽» (как в варианте 1) --- */
.shop-o-defect,.shop-sc-row.is-defect span{display:inline-flex;align-items:center;gap:7px}
.shop-o-defect::before,.shop-sc-row.is-defect span::before{content:"";flex:none;width:8px;height:8px;border-radius:2px;background:var(--ink)}
.shop-o-defect{font-size:13px;font-weight:600;color:var(--ink-2)}
.shop-sc-row.is-defect{font-size:14px}
.shop-o-ms-note{margin:6px 0 0;font-size:12.5px;color:var(--muted)}
.shop-o-defect[hidden],.shop-sc-row.is-defect[hidden]{display:none}

/* --- строка со свайпом --- */
.swp{--swp-w:176px;position:relative;border-radius:var(--radius);overflow:hidden}
.swp.is-one{--swp-w:96px}
.swp.is-one .swp-btn{flex-basis:var(--swp-w)}
/* карточка едет влево, кнопки лежат под ней */
.swp-body{position:relative;touch-action:pan-y;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.swp.is-open .swp-body{transform:translateX(calc(-1 * var(--swp-w)))}
.swp.is-drag .swp-body{transition:none}
/* подложка на всю строку, под карточкой (того же скругления, что у строки): скруглённые углы карточки ложатся на цвет крайней кнопки,
   серых «хвостиков» нет; кнопки прижаты вправо и занимают ту же ширину, что раньше (--swp-w).
   Пока строка закрыта, подложка скрыта: не просвечивает в скруглённых углах и не берёт фокус с клавиатуры */
.swp-act{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:flex-end;background:var(--danger);visibility:hidden;transition:visibility 0s .2s}
.swp-act.is-defect{background:var(--ink)}
.swp-act.is-defect.is-off{background:var(--line-strong)}
.swp.is-open .swp-act,.swp.is-drag .swp-act{visibility:visible;transition:none}
.swp-btn{flex:0 0 calc(var(--swp-w) / 2);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;padding:0 4px;font:inherit;font-size:13px;font-weight:600;line-height:1.15;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.swp-btn svg{width:24px;height:24px}
.swp-btn svg[hidden]{display:none}
.swp-btn.is-defect{background:var(--ink);color:var(--card)}
.swp-btn.is-defect.is-off{background:var(--line-strong);color:var(--ink)}
.swp-btn.is-del{background:var(--danger);color:var(--bg)}
.swp-btn:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}

/* --- запасная кнопка «⋯» (десктоп, клавиатура, да и просто подсказка, что у позиции есть меню) --- */
.swp-more{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:var(--muted);cursor:pointer;-webkit-tap-highlight-color:transparent}
.swp-more:hover{background:var(--bg)}
.swp-more:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.swp-more svg{width:22px;height:22px}
/* сборка заказа: «⋯» стоит там, где раньше был «✕» */
.shop-line .swp-more{position:absolute;top:4px;right:4px}
.shop-line .shop-l-top{padding-right:36px}
/* карточка заказа: «⋯» под суммой позиции */
.shop-oline .an-pr{gap:2px}
.shop-oline .an-pr .swp-more{margin:0 -8px -8px 0}

@media (prefers-reduced-motion:reduce){.swp-body,.swp-act{transition:none}}

/* --- «Брак за месяц» в списке заказов --- */
.shop-defect-month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:6px 6px;font-size:14px}
.shop-dm-text{flex:1;text-align:center;color:var(--ink-2)}
.shop-dm-text b{color:var(--ink)}
.shop-dm-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:12px;color:var(--ink-2);-webkit-tap-highlight-color:transparent}
.shop-dm-arrow svg{width:20px;height:20px}
.shop-dm-arrow:not(.is-next) svg{transform:rotate(180deg)}
a.shop-dm-arrow:hover{background:var(--bg)}
.shop-dm-arrow.is-off{opacity:.25}

/* --- «Позиция убрана — Отменить» (сборка заказа) --- */
.shop-toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:6px 6px 6px 16px;border-radius:14px;background:var(--ink);color:var(--card);font-size:14px;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.shop-toast span{white-space:nowrap}
.shop-toast button{flex:none;min-height:40px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.shop-toast button:focus-visible{outline:2px solid var(--card);outline-offset:-2px}
.shop-toast[hidden]{display:none}

/* OZ-017: лист подтверждения «Выбрать несколько» (#ozm-sheet): компактный вид — плитки и одна кнопка; режим правки («Нашёл N из M», заказы с отметками) открывается по «Изменить» или по значку ⚠.
   Только классы, без style="" и <style>; цвета — токены из :root (светлая и тёмная темы). Класс .ozm-row занят (камера со списком), поэтому здесь .ozm-or / .ozm-kr. */
/* --- шапка листа --- */
.ozm-head{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 10px;padding:2px 4px 8px}
.ozm-head .ozq-ok{grid-column:1/-1}
.ozm-head .ozq-ok{color:var(--ok-ink)}
.ozm-head .ozq-ok.is-manual{color:var(--attn-ink)}
.ozm-head b{white-space:nowrap}
.ozm-head small{font-size:12.5px;text-align:right;white-space:nowrap}

/* --- плитка товара --- */
.ozm-tiles{display:flex;flex-direction:column;gap:10px}
.ozm-t{padding:10px 12px;display:flex;flex-direction:column;gap:0}
.ozm-tiles.is-edit .ozm-t{padding:12px 12px 4px}
.ozm-t.is-zero .ozm-t-top{opacity:.55}
.ozm-t-top{display:flex;align-items:center;gap:12px}
.ozm-tiles.is-edit .ozm-t-top{align-items:flex-start}
.ozm-t-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.ozm-t-main b{font-size:15px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ozm-scan{font-size:13px;font-weight:600;color:var(--ok-ink)}
.ozm-scan.is-no{color:var(--attn-ink)}
/* крупно: сколько штук искать на полке */
.ozm-need{flex:none;display:flex;flex-direction:column;align-items:center;min-width:54px;line-height:1.05}
.ozm-need small{font-size:12px;color:var(--muted)}
.ozm-need b{font-size:32px;font-variant-numeric:tabular-nums;color:var(--accent)}
.ozm-need .ozm-need-l{display:none}
.ozm-tiles.is-edit .ozm-need .ozm-need-l{display:block}
.ozm-need .ozm-need-of{font-size:12px;color:var(--attn-ink);font-weight:700}
.ozm-need .ozm-need-of:empty{display:none}

/* --- режим правки: степпер и заказы показываются только в нём --- */
.ozm-ed{display:none}
.ozm-tiles.is-edit .ozm-ed{display:flex;flex-direction:column;gap:8px;margin-top:8px}

/* --- «Нашёл: 3 из 4» --- */
.ozm-find{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 12px;border-radius:12px;background:var(--bg)}
.ozm-find-l{flex:1;min-width:0;font-weight:600;font-size:15px}
.ozm-st{flex:none;display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:12px;background:var(--card);overflow:hidden}
.ozm-st button{width:48px;height:44px;padding:0;border:0;background:transparent;color:var(--accent);font:inherit;font-size:26px;font-weight:700;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ozm-st button:active:not(:disabled){background:var(--accent-soft)}
.ozm-st button:disabled{color:var(--line-strong);cursor:default}
.ozm-st input{width:46px;height:44px;margin:0;padding:0;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:20px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums}
.ozm-st input:focus{outline:0;background:var(--accent-soft)}
.ozm-find-of{flex:none;min-width:34px;color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums}
.ozm-find.is-part{background:var(--attn)}
.ozm-find.is-part .ozm-find-of{color:var(--attn-ink);font-weight:700}
.ozm-cut{margin:-4px 2px 0;font-size:12.5px;line-height:1.35;color:var(--attn-ink)}

/* --- заказы под плиткой: свёрнуты, в строке заголовка — счётчик и значки --- */
.ozm-ord>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 2px;list-style:none;font-weight:600;font-size:14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ozm-ord>summary::-webkit-details-marker{display:none}
.ozm-ord>summary::after{content:"";flex:none;margin-left:auto;width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.ozm-ord[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.ozm-ord-c{color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums}
.ozm-ord-b{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto;padding-right:6px}
.ozm-or{display:flex;align-items:center;gap:12px;min-height:50px;padding:4px 2px;border-top:1px solid var(--line);cursor:pointer}
.ozm-or input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--accent)}
.ozm-or-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ozm-or-d{font-size:12.5px;color:var(--muted)}
.ozm-or-d.oz-late{color:var(--danger)}
.ozm-or.is-off .ozm-or-t{opacity:.55}
.ozm-or.is-lock{cursor:default}
.ozm-or.is-lock .ozm-or-t{opacity:.7}
.ozm-bds{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.ozm-bd{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px;border-radius:12px;font-size:12.5px;font-weight:700;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.ozm-bd[hidden]{display:none}
.ozm-bd.is-risk,.ozm-bd.is-late{background:var(--err-bg);color:var(--danger)}
.ozm-bd.is-love{background:#FDE8F0;color:#8E2450}
.ozm-bd.is-lock{background:var(--attn);color:var(--attn-ink);box-shadow:inset 0 0 0 1px var(--attn-line)}

/* --- низ листа: кнопка всегда на виду, список прокручивается под ней --- */
.ozm-foot{position:sticky;bottom:calc(-1 * (16px + env(safe-area-inset-bottom)));z-index:2;margin:8px -12px calc(-1 * (16px + env(safe-area-inset-bottom)));padding:8px 12px calc(12px + env(safe-area-inset-bottom));background:var(--card);box-shadow:0 -10px 14px -8px rgba(0,0,0,.14)}
.ozm-foot .btn{margin-top:0}
.ozm-edit{display:block;width:100%;min-height:36px;margin:0 0 4px;padding:2px 0;border:0;background:none;color:var(--accent);font:inherit;font-size:12.5px;font-weight:600;line-height:1.3;text-wrap:balance;text-align:center;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ozm-send{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:56px;line-height:1.25;font-size:15px}
.ozm-send small{font-size:14px;font-weight:600;opacity:.9}
.ozm-send span{white-space:nowrap}
.ozm-foot .ozq-note{margin:4px 0 0}
.ozm-foot .ozm-back{margin-top:0;min-height:42px}

/* --- компактный вид: единственный значок на плитке — ⚠ (покупатель с отказами, которому решили «собрать»); касание открывает правку на этом заказе --- */
.ozm-bd.is-btn{position:relative;height:28px;padding:0 10px;border:0;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ozm-bd.is-btn::after{content:"";position:absolute;inset:-8px -6px}
.ozm-tiles.is-edit .ozm-bd.is-btn{display:none}
.ozm-or.is-focus{background:var(--attn);border-radius:8px}
.ozm-t-main .ozm-kr{display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* --- тёмная тема: то, чего в app.css для листа ещё нет --- */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .ozm-bd.is-love{background:#3A1A2A;color:#F8B4CE}
  :root:not([data-theme="light"]) .ozm-t .oz-kind.is-spool{background:#1E2A52;color:#B9C8FF}
  :root:not([data-theme="light"]) .ozm-t .oz-kind.is-refill{background:#3A2A10;color:#F7C58C}
  :root:not([data-theme="light"]) .ozm-foot{box-shadow:0 -10px 14px -8px rgba(0,0,0,.5)}
}
:root[data-theme="dark"] .ozm-bd.is-love{background:#3A1A2A;color:#F8B4CE}
:root[data-theme="dark"] .ozm-t .oz-kind.is-spool{background:#1E2A52;color:#B9C8FF}
:root[data-theme="dark"] .ozm-t .oz-kind.is-refill{background:#3A2A10;color:#F7C58C}

/* YM-004: кнопки «300 ₽» и «+10% Ozon» над полем цены Маркета, подсказка с прибылью */
.pr-fills{display:flex;gap:8px;margin:2px 0 8px}
.pr-fill{flex:1 1 0;min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;padding:4px 8px}
.pr-fill b{font-size:16px}.pr-fill small{font-size:12px;color:var(--muted,#6B7280)}
.pr-fill:disabled{opacity:.45;cursor:not-allowed}
.pr-profit{display:block;margin-top:6px;font-size:14px}.pr-profit:empty{display:none}
.pr-profit .pr-dot{width:10px;height:10px;vertical-align:baseline}

/* OT-014: плашка «уведомления выключены браузером», блок для админа, ответ проверки */
.push-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px;padding:10px 12px;border-radius:14px;background:#FFF3CD;color:#5B4A00;border:1px solid #F0D77A}
.push-bar-t{flex:1 1 100%;font-size:14px;font-weight:600;line-height:1.3}
.push-bar-on{flex:1 1 0;min-height:40px}
.push-bar-x{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer}
.push-sum{margin:0 0 12px;border-left:6px solid #D64535}
.push-alerts .push-alert-row{margin:8px 0}.push-alerts .push-alert-row small{display:block;margin-top:2px}
.push-res{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.push-res-i{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:10px;background:var(--bg);border-left:5px solid #3FA34D;font-size:14px}
.push-res-i.is-bad{border-left-color:#D64535}
.push-res-i span{color:var(--muted);font-size:13px}
@media (prefers-color-scheme: dark){.push-bar{background:#3A3115;color:#FFE9A6;border-color:#5A4B14}}

/* AV-010: форма самовывоза внутри карточки — без двойного отступа */
.cnc-form{padding:0;margin-top:4px}

/* SR-003: шторка с количеством (crmAsk number), изменить заказ, незакрытые заказы клиента */
.pr-ask-numbox{display:flex;flex-direction:column;align-items:center;gap:4px;margin:4px 0 12px}
.pr-ask-num{width:120px;min-height:52px;text-align:center;font-size:24px;font-weight:700;border:1px solid var(--line-strong);border-radius:12px;background:var(--input-bg,var(--card));color:var(--ink)}
.pr-ask-num.is-bad{border-color:#D64535;box-shadow:0 0 0 2px #F7C9C4}
.pr-ask-numhint{color:var(--muted);font-size:13px}
.shop-edit-btn{margin:0 0 12px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;font-weight:700}
.shop-edit-note{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
.shop-carry{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#E8F0FE;color:#1A3A8A}
.shop-open{display:flex;flex-direction:column;gap:8px}
.shop-open-h{margin:0;font-size:15px}
.shop-open-list{display:flex;flex-direction:column;gap:8px}
.shop-open-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.shop-open-list .shop-open-row:first-child,.shop-open-card .shop-open-h + .shop-open-row{border-top:0}
.shop-open-t{flex:1 1 auto;min-width:0;font-size:14px;line-height:1.35;text-align:left}
.shop-open-go{flex:none;min-height:40px;padding:0 14px;font-weight:700}
.shop-open-card{width:100%;align-items:stretch;text-align:left;padding:4px 0 6px}
@media (prefers-color-scheme: dark){.pr-ask-num.is-bad{box-shadow:0 0 0 2px #5A2420}.shop-carry{background:#1F2A44;color:#C9D8FF}}
.card.shop-open{padding:14px}

/* SR-003: скрытые радио способа оплаты не должны растягивать страницу вбок (на «Новом заказе» была прокрутка на 6 px) */
.shop-pay-opt input{width:1px;height:1px;left:0;top:0;margin:0;overflow:hidden}

/* OZ-018: метка покупателя (новый / покупал N раз / заказов N) — в «Сборке», в аналитике и в карточке */
.qtag { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-size: 14px; font-weight: 600; }
.qtag span { flex: 1; min-width: 0; } .qtag .ic { width: 18px; height: 18px; flex: none; }
.qtag.is-new { background: #DDF3E6; border-color: #A8DDBC; color: #14633A; }
.qtag.is-repeat { background: #E1ECFF; border-color: #B3CBF5; color: #1B4A9B; }
.qtag.is-other { background: #ECEEF2; border-color: #D5D9E0; color: #4B5563; }
.qtag.is-black { background: var(--danger); border-color: var(--danger); color: var(--card); }
.qtag.is-risk { background: #FDE7E5; border-color: #E7A39C; color: #8E1A10; }
.qtag.is-loyal { background: #FDE8F0; border-color: #F5C2D6; color: #8E2450; }
.qtag.an-tag { min-height: 32px; padding: 0 10px; font-size: 13px; margin-top: -6px; margin-left: 16px; }
.oz-list > .qtag.an-tag { align-self: flex-start; max-width: calc(100% - 16px); }
.an-tag-today { margin: 0 0 8px; }
.qtag.is-lg { display: inline-flex; align-self: flex-start; min-height: 32px; font-size: 13px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .qtag.is-new { background: #12301F; border-color: #2A5B3E; color: #8EE0B0; }
  :root:not([data-theme="light"]) .qtag.is-repeat { background: #1B2A4A; border-color: #34508A; color: #A9C4F7; }
  :root:not([data-theme="light"]) .qtag.is-other { background: #262A33; border-color: #3A404C; color: #C0C6D0; }
  :root:not([data-theme="light"]) .qtag.is-risk { background: #3A1714; border-color: #7A3A34; color: #FFB4AB; }
  :root:not([data-theme="light"]) .qtag.is-loyal { background: #3A1A2A; border-color: #6B2F4A; color: #F8B4CE; }
}
:root[data-theme="dark"] .qtag.is-new { background: #12301F; border-color: #2A5B3E; color: #8EE0B0; }
:root[data-theme="dark"] .qtag.is-repeat { background: #1B2A4A; border-color: #34508A; color: #A9C4F7; }
:root[data-theme="dark"] .qtag.is-other { background: #262A33; border-color: #3A404C; color: #C0C6D0; }
:root[data-theme="dark"] .qtag.is-risk { background: #3A1714; border-color: #7A3A34; color: #FFB4AB; }
:root[data-theme="dark"] .qtag.is-loyal { background: #3A1A2A; border-color: #6B2F4A; color: #F8B4CE; }
/* «Сегодня и ещё не в истории» */
.fresh-ord { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.fresh-ord:first-of-type { border-top: 0; }
.fresh-ord .bord-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fresh-ord .fresh-sum { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }

/* OZ-020: возврат после получения — фиолетовый (как зона «пурпурная» в ценах); у частичного возврата заказ зелёный, а подпись — «вернул N из M» */
i.bdot.is-v { background: #9B4FD0; }
em.btag.is-v { background: #EBDDF7; color: #5B2A86; }
.bord.is-v { border-left-color: #9B4FD0; }
.bseq i.is-v { background: #9B4FD0; }
.bmain small.bret, .bord small.bret { color: #6B3A94; font-size: 12px; }
.bret-why { font-style: normal; color: var(--muted); font-size: 11px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) em.btag.is-v { background: #3A2352; color: #D9B8F5; }
  :root:not([data-theme="light"]) .bseq i.is-v, :root:not([data-theme="light"]) i.bdot.is-v { background: #B46FE8; }
  :root:not([data-theme="light"]) .bord.is-v { border-left-color: #B46FE8; }
  :root:not([data-theme="light"]) .bmain small.bret, :root:not([data-theme="light"]) .bord small.bret { color: #D9B8F5; }
}
:root[data-theme="dark"] em.btag.is-v { background: #3A2352; color: #D9B8F5; }
:root[data-theme="dark"] .bseq i.is-v, :root[data-theme="dark"] i.bdot.is-v { background: #B46FE8; }
:root[data-theme="dark"] .bord.is-v { border-left-color: #B46FE8; }
:root[data-theme="dark"] .bmain small.bret, :root[data-theme="dark"] .bord small.bret { color: #D9B8F5; }
/* OZ-020: в тёмной теме общий фон квадратов полоски перекрывал зелёный/жёлтый/красный — возвращаем цвета, иначе фиолетовый «возврат» не с чем сравнить */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bseq i.is-g { background: #2FB36B; }
  :root:not([data-theme="light"]) .bseq i.is-y { background: #F5B301; }
  :root:not([data-theme="light"]) .bseq i.is-r { background: #D92D20; }
}
:root[data-theme="dark"] .bseq i.is-g { background: #2FB36B; }
:root[data-theme="dark"] .bseq i.is-y { background: #F5B301; }
:root[data-theme="dark"] .bseq i.is-r { background: #D92D20; }
/* OZ-022: плашка «Склад Ozon» (FBO) в тёмной теме — нейтральная серая */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oz-kind.is-fbo { background: #2A2F3A; color: #C9CED6; } }
:root[data-theme="dark"] .oz-kind.is-fbo { background: #2A2F3A; color: #C9CED6; }

/* OZ-021: поиск по коду с этикетки Ozon — кнопка камеры, подсветка найденного заказа */
.bsearch .bsearch-cam { flex: none; min-width: 44px; font-size: 18px; line-height: 1; }
.scan-hit { display: flex; flex-direction: column; gap: 2px; border: 1px solid #A8DDBC; background: #F1FAF4; }
.scan-hit a.mono { text-decoration: underline; }
.list-row.is-hit { background: #FFF6D6; box-shadow: inset 4px 0 0 #F0C419; }
.bord.is-hit { outline: 3px solid #F0C419; outline-offset: 0; background: #FFFBEA; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scan-hit { border-color: #2A5B3E; background: #12301F; }
  :root:not([data-theme="light"]) .list-row.is-hit { background: #3A3210; box-shadow: inset 4px 0 0 #F0C419; }
  :root:not([data-theme="light"]) .bord.is-hit { outline-color: #F0C419; background: #2E2A14; }
}
:root[data-theme="dark"] .scan-hit { border-color: #2A5B3E; background: #12301F; }
:root[data-theme="dark"] .list-row.is-hit { background: #3A3210; box-shadow: inset 4px 0 0 #F0C419; }
:root[data-theme="dark"] .bord.is-hit { outline-color: #F0C419; background: #2E2A14; }

/* AV-013: «Изменить» у выставленного комплекта — подсказка и ссылки «Заменяет №… / Заменён комплектом №…» */
.kit-repl-note { display: block; padding: 0 4px; font-size: 13px; }
.kit-link.kit-repl { font-weight: 600; }

/* AV-014: «Скидка, %» и «Цена комплекта» рядом, подпись с суммой скидки под ними */
.kit-price-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: end; }
.kit-price-row input { min-width: 0; }
.kit-disc { display: block; margin-top: -4px; }

/* AV-019: «Предложить ответ» в чате — кнопка, панель с вопросами клиента, вариантами-фишками и письмом */
.ai-row { display: flex; align-items: center; gap: 10px; padding: 6px 0 2px; }
.chip-ai { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chip-ai:disabled { opacity: .6; }
.ai-status { font-size: 13px; color: var(--muted); }
.ai-status.is-busy::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: ai-spin .8s linear infinite; vertical-align: -1px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-panel { margin-top: 4px; margin-bottom: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; max-height: min(62vh, 560px); max-height: min(62dvh, 560px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }   /* точную высоту при открытой клавиатуре ставит ai_suggest.js (visualViewport) */
body.ai-kb .chat-actions { display: none; }
.composer .ai-letter { max-height: none; min-height: 92px; }   /* общее правило «.composer textarea» (max-height 160px) обрезало длинное письмо без прокрутки */
.ai-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ai-hint { color: var(--muted); font-size: 12px; text-align: right; }
.ai-q { padding: 10px 0; border-top: 1px solid var(--line); }
.ai-q:first-child { border-top: 0; }
.ai-qtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ai-qt { font-weight: 600; font-size: 14px; flex: 1 1 200px; min-width: 0; }
.ai-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--accent-soft); color: var(--accent-soft-ink); }
.ai-t-ms { background: var(--ok-bg); color: var(--ok-ink); }
.ai-t-gen { background: var(--attn); color: var(--attn-ink); }
.ai-t-ask { background: var(--err-bg); color: var(--danger); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-chip { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; line-height: 1.25; cursor: pointer; text-align: left; min-height: 34px; }
.ai-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }
.ai-chip.is-on::before { content: '✓ '; }
.ai-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.ai-lab { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ai-letter { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; resize: none; overflow: hidden; min-height: 92px; }   /* высоту по тексту ставит ai_suggest.js: у письма своей прокрутки нет, листается панель */
.ai-actions [hidden] { display: none; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-actions .btn { flex: 0 1 auto; }
.ai-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 14px; }
.ai-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--danger); font-size: 14px; }
