:root {
  --bg: var(--tg-theme-secondary-bg-color, #f0f1f4);
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #15171a);
  --hint: var(--tg-theme-hint-color, #868a92);
  --accent: var(--tg-theme-button-color, #2a7de1);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --link: var(--tg-theme-link-color, #2a7de1);
  --danger: var(--tg-theme-destructive-text-color, #e0453a);
  --sep: color-mix(in srgb, var(--hint) 22%, transparent);
  --field: color-mix(in srgb, var(--hint) 12%, var(--card));
  --ok: #2c9c4b;
  --warn: #d9820b;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.tg) {
    --bg: #0e0f11;
    --card: #1b1d21;
    --text: #eceef1;
    --hint: #8d929b;
    --accent: #3d8ff0;
    --link: #5aa2f5;
    --ok: #46b865;
    --warn: #f0a23a;
    color-scheme: dark;
  }
}
:root.tg-dark { color-scheme: dark; --ok: #46b865; --warn: #f0a23a; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: var(--text); }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 720px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
#view { padding: 12px 12px 24px; }
.loading, .empty { text-align: center; color: var(--hint); padding: 48px 16px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ---------- tabs ---------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--sep);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabs button {
  flex: 1; max-width: 180px; padding: 7px 0 8px; font-size: 11px; color: var(--hint);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
#tabs .ico { font-size: 20px; line-height: 24px; filter: grayscale(1); opacity: .7; }
#tabs button.active { color: var(--accent); }
#tabs button.active .ico { filter: none; opacity: 1; }

/* ---------- common ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; }
.card + .card, .card + .section-title { margin-top: 12px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--hint); margin: 18px 4px 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-text);
  border-radius: 10px; padding: 10px 14px; font-weight: 600;
}
.btn.small { padding: 7px 11px; font-size: 14px; border-radius: 9px; }
.btn.ghost { background: var(--field); color: var(--link); }
.btn.danger { background: transparent; color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--field); color: var(--hint); }
.pill.draft { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }

.search {
  width: 100%; border: 0; border-radius: 10px; padding: 10px 12px;
  background: var(--card); outline: none; font-size: 16px;
}
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--card); color: var(--text); white-space: nowrap;
}
.chip.active { background: var(--accent); color: var(--accent-text); }
.chip .cnt { opacity: .6; margin-left: 4px; }
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 6px; margin: 0 -12px; padding-inline: 12px; }

/* ---------- order head ---------- */
.oh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oh-title { font-size: 19px; font-weight: 700; }
.oh-sub { margin-top: 3px; color: var(--hint); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; margin-top: 12px; }
.stat { background: var(--field); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.stat b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--hint); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--ok); }
.gsum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.gsum div { font-size: 12px; color: var(--hint); text-align: center; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--sep); min-width: 0; }
.gsum b { display: block; color: var(--text); font-size: 14px; }
.gsum i { font-style: normal; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- order rows ---------- */
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.row { border-bottom: 1px solid var(--sep); }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.row-name { flex: 1; min-width: 0; text-align: left; }
.row-name .name { font-weight: 600; overflow-wrap: anywhere; }
.row-name .meta { font-size: 12.5px; color: var(--hint); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-name .caret { display: inline-block; transition: transform .15s; color: var(--hint); font-size: 11px; }
.row.open .row-name .caret { transform: rotate(90deg); }
.qty { flex: none; width: 92px; text-align: right; }
.qty input, .split input {
  width: 100%; text-align: right; border: 1.5px solid transparent; border-radius: 9px;
  padding: 7px 9px; background: var(--field); font-size: 16px; font-weight: 600; outline: none;
  font-variant-numeric: tabular-nums;
}
.qty input:focus, .split input:focus { border-color: var(--accent); }
.qty input:disabled, .split input:disabled { background: transparent; color: var(--text); opacity: 1; -webkit-text-fill-color: var(--text); }
.qty .sum { font-size: 12px; color: var(--hint); margin-top: 3px; white-space: nowrap; }
.row.has-qty .row-name .name::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }
.row.saving .qty input { opacity: .55; }
.row.inactive .row-name .name { color: var(--hint); }

.split { padding: 0 12px 12px; }
.split-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.split label { font-size: 11.5px; color: var(--hint); min-width: 0; }
.split label span { display: block; margin: 0 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split input { font-size: 15px; padding: 7px 6px; text-align: center; }
.split-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--hint); }

/* ---------- prices ---------- */
.p-group { font-size: 13px; font-weight: 700; color: var(--hint); padding: 12px 12px 4px; letter-spacing: .03em; }
.p-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--sep); text-align: left; }
.p-row .name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.p-row .price { text-align: right; flex: none; }
.p-row .price b { display: block; }
.p-row .price span { font-size: 12.5px; color: var(--hint); }
.p-row.inactive .name, .p-row.inactive .price b { color: var(--hint); text-decoration: line-through; }

/* ---------- orders history ---------- */
.o-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--sep); text-align: left; }
.o-row:first-child { border-top: 0; }
.o-row .d { flex: 1; min-width: 0; }
.o-row .d b { font-size: 16px; }
.o-row .d div { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.o-row .s { text-align: right; flex: none; }
.o-row .s b { display: block; }
.o-row.current { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- forms / sheet ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--hint); margin: 0 2px 5px; }
.field input[type=text], .field input[type=date], .field input:not([type]), .field input[inputmode], .field select {
  width: 100%; border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px;
  background: var(--field); font-size: 16px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input:disabled { color: var(--hint); }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--hint); margin: -6px 2px 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); animation: fade .15s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 720px; margin: 0 auto;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: up .2s ease-out;
}
.sheet h3 { margin: 0 0 14px; font-size: 18px; }
.sheet .actions { display: flex; gap: 8px; margin-top: 6px; }
.sheet .actions .btn { flex: 1; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.log-item { padding: 10px 12px; border-top: 1px solid var(--sep); font-size: 14px; }
.log-item:first-child { border-top: 0; }
.log-item div { font-size: 12px; color: var(--hint); margin-top: 2px; }

#toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; max-width: calc(100% - 32px); background: rgba(20,20,22,.92); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
#toast.err { background: var(--danger); }
.demo-banner { background: color-mix(in srgb, var(--warn) 18%, var(--card)); color: var(--text); font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }
.gate { text-align: center; padding: 80px 24px; }
.gate b { display: block; font-size: 18px; margin-bottom: 6px; }

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .qty { width: 80px; }
}

/* ---------- splash / greeting ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; transition: opacity .35s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.wave { font-size: 60px; line-height: 1; animation: wave 1.8s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.splash-title { font-size: 25px; font-weight: 700; margin-top: 18px; animation: up .3s ease-out; }
.splash-sub { color: var(--hint); margin-top: 8px; min-height: 20px; font-size: 15px; }
.dots i { font-style: normal; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- friendlier order rows ---------- */
.row-name { cursor: pointer; }
.meta2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.split-link { color: var(--link); font-size: 13px; font-weight: 600; padding: 2px 0; }
.row.saved { animation: saved 1s ease-out; }
@keyframes saved { 0% { background: color-mix(in srgb, var(--ok) 22%, transparent); } 100% { background: transparent; } }
.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; font-size: 12px; color: var(--hint); border-bottom: 1px solid var(--sep);
  text-transform: uppercase; letter-spacing: .03em;
}
.legend-btn { color: var(--link); font-size: 12.5px; text-transform: none; letter-spacing: 0; font-weight: 600; }

.tip { margin-top: 12px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.tip ol { margin: 8px 0 0; padding-left: 20px; }
.tip li { margin: 5px 0; }
.tip-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.legend > div { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--sep); font-size: 14px; }
.legend > div:first-child { border-top: 0; }
.legend > div > :first-child { flex: none; min-width: 92px; display: inline-flex; justify-content: flex-start; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 5px 0 0 4px; min-width: 9px !important; }
.legend > div:first-child > :first-child { min-width: 92px; }
.legend-word { font-size: 14px; }

/* ---------- help ---------- */
.help-hero-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.help-hero div:last-child { color: var(--hint); font-size: 14px; }
.help { margin-top: 12px; }
.help details { border-top: 1px solid var(--sep); }
.help details:first-child { border-top: 0; }
.help summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; font-weight: 600;
}
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "▾"; margin-left: auto; color: var(--hint); transition: transform .15s; }
.help details[open] summary::after { transform: rotate(180deg); }
.help-ico { font-size: 18px; width: 24px; text-align: center; flex: none; }
.help-body { padding: 0 14px 14px 46px; font-size: 14.5px; }
.help-body p { margin: 0 0 8px; }
.help-body ol { margin: 0 0 8px; padding-left: 18px; }
.help-body li { margin: 4px 0; }
.help-body .btn { margin-top: 4px; }
.help-body .legend { margin-left: -34px; }
.example { background: var(--field); border-radius: 10px; padding: 9px 11px; margin: 0 0 8px; font-size: 14px; }

/* ---------- tabs: до 6 штук, бейдж новых запросов ---------- */
#tabs button { position: relative; font-size: 10.5px; }
.tab-badge {
  position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px;
}

/* ---------- прайс: строка с ползунком ---------- */
.p-row { padding: 0 12px 0 0; gap: 6px; }
.p-main { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 10px 0 10px 12px; text-align: left; }
.p-main .name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.p-main .price { text-align: right; flex: none; }
.p-main .price b, .p-main .price span { display: block; }
.p-main .price span { font-size: 12.5px; color: var(--hint); }
.p-main .price .client { color: var(--ok); }
.p-row.out .p-main .name { color: var(--hint); }
.switch { position: relative; flex: none; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: color-mix(in srgb, var(--hint) 38%, transparent); transition: background .2s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- запросы и заказы ---------- */
.r-list { display: flex; flex-direction: column; gap: 10px; }
.r-card { display: block; width: 100%; text-align: left; background: var(--card); border-radius: var(--radius); padding: 12px 14px; }
.r-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 16px; }
.r-line { font-size: 13.5px; color: var(--hint); margin-top: 4px; overflow-wrap: anywhere; }
.r-line b { color: var(--text); }
.margin { color: var(--ok); font-size: 12.5px; margin-left: 4px; white-space: nowrap; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--sep); font-size: 14px; }
.kv > div:first-child { border-top: 0; }
.kv span { color: var(--hint); flex: none; }
.kv b { text-align: right; overflow-wrap: anywhere; }
.kv.totals { margin-top: 6px; }
.kv.totals b { font-size: 15.5px; }
.r-items { margin: 10px 0; border-radius: 10px; background: var(--field); padding: 2px 10px; }
.r-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sep); font-size: 14px; }
.r-item:first-child { border-top: 0; }
.notice { border-radius: 10px; padding: 9px 11px; font-size: 13.5px; margin: 10px 0; background: var(--field); }
.notice.warn { background: color-mix(in srgb, var(--warn) 15%, var(--card)); }
.notice.ok { background: color-mix(in srgb, var(--ok) 15%, var(--card)); }
.sheet-section { font-weight: 700; font-size: 14px; margin: 16px 2px 8px; }
.c-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--sep); flex-wrap: wrap; }
.c-row:first-child { border-top: 0; }
.c-info { min-width: 0; flex: 1; }
.c-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- заказчик: каталог и корзина ---------- */
.s-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--sep); }
.s-row:first-child { border-top: 0; }
.s-row.in-cart { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.s-info { flex: 1; min-width: 0; }
.s-info .name { font-weight: 600; overflow-wrap: anywhere; }
.s-price { font-size: 13px; color: var(--hint); margin-top: 2px; }
.s-price b { color: var(--text); }
.stepper { flex: none; display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; background: var(--field); color: var(--accent); font-size: 20px; font-weight: 600; line-height: 1; }
.stepper input {
  width: 56px; text-align: center; border: 1.5px solid transparent; border-radius: 9px; padding: 7px 4px;
  background: var(--field); font-size: 16px; font-weight: 600; outline: none;
}
.stepper input:focus { border-color: var(--accent); }
#cartbar {
  position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 19;
  max-width: 720px; margin: 0 auto; padding: 10px 12px; display: flex; gap: 10px; align-items: center;
  background: var(--card); border-top: 1px solid var(--sep); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
#cartbar[hidden] { display: none; }
.cb-info { flex: 1; min-width: 0; }
.cb-info b { display: block; font-size: 13.5px; color: var(--hint); font-weight: 500; }
.cb-info span { font-size: 17px; font-weight: 700; }
body:has(#cartbar:not([hidden])) #toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
.preview { background: var(--field); border-radius: 10px; padding: 9px 11px; font-size: 14px; margin: 4px 0 6px; }
.success { text-align: center; padding: 6px 4px 4px; }
.success .big { font-size: 52px; line-height: 1.1; }
.success h3 { margin: 8px 0 10px; }
.success p { margin: 0 0 8px; font-size: 14.5px; }

/* ---------- выбранная тема (поверх темы Telegram) ---------- */
:root[data-theme="light"] {
  --bg: #f0f1f4; --card: #ffffff; --text: #15171a; --hint: #7d828b;
  --accent: #2a7de1; --accent-text: #ffffff; --link: #2a7de1; --danger: #e0453a;
  --ok: #2c9c4b; --warn: #d9820b; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1013; --card: #1a1d22; --text: #eceef1; --hint: #8d929b;
  --accent: #3d8ff0; --accent-text: #ffffff; --link: #5aa2f5; --danger: #ef5a4f;
  --ok: #46b865; --warn: #f0a23a; color-scheme: dark;
}
:root[data-theme="dark"] .switch span::after { background: #f2f3f5; }

/* переключатель «Светлая / Тёмная / Как в Telegram» */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--field); }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--hint); white-space: nowrap; }
.seg button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* полноэкранный выбор (тема, кабинет) */
.chooser {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px; animation: fade .25s;
  transition: opacity .25s;
}
.chooser.hide { opacity: 0; pointer-events: none; }
.ch-box { width: 100%; max-width: 420px; }
.ch-title { font-size: 22px; font-weight: 700; text-align: center; }
.ch-sub { color: var(--hint); text-align: center; margin: 6px 0 0; font-size: 14px; }
.ch-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; margin-top: 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--card); text-align: left;
  border: 1.5px solid var(--sep); transition: transform .1s, border-color .15s;
}
.ch-card:active { transform: scale(.98); border-color: var(--accent); }
.ch-card b { font-size: 16.5px; }
.ch-card > span:last-child { color: var(--hint); font-size: 13.5px; }
.ch-ico { font-size: 30px; line-height: 1.1; }
.ch-preview { display: flex; gap: 4px; width: 100%; height: 34px; padding: 6px; border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--sep); }
.ch-preview i { flex: 1; border-radius: 5px; }
.ch-preview.light { background: #f0f1f4; } .ch-preview.light i { background: #ffffff; } .ch-preview.light i:first-child { background: #2a7de1; flex: .5; }
.ch-preview.dark { background: #0e1013; } .ch-preview.dark i { background: #1a1d22; } .ch-preview.dark i:first-child { background: #3d8ff0; flex: .5; }
.ch-preview.auto { background: linear-gradient(90deg, #f0f1f4 50%, #0e1013 50%); }
.ch-preview.auto i { background: linear-gradient(90deg, #ffffff 50%, #1a1d22 50%); } .ch-preview.auto i:first-child { background: #2a7de1; flex: .5; }

/* телефон */
a.tel { color: var(--link); text-decoration: none; }
.btn.call { margin: 4px 0 6px; text-decoration: none; background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }

/* строка прайса уезжает в «Сняты с продажи» / обратно */
.p-row.leaving { opacity: 0; transform: translateX(24px); transition: opacity .25s, transform .25s; }
.legend .switch { transform: scale(.8); transform-origin: left center; }
