:root{
  --bg:#F6F4EE; --surface:#FFFFFF; --ink:#1B2421; --muted:#66706C; --line:#E3E0D6;
  --brand:#0E7C66; --brand-ink:#FFFFFF; --accent:#F4C95D; --accent-ink:#4A3700;
  --bubble-me:#0E7C66; --bubble-bot:#FFFFFF; --ok:#1F8A4C; --chip:#ECE8DC;
  --radius:16px; --shadow:0 1px 2px rgba(0,0,0,.06),0 4px 14px rgba(0,0,0,.05);
}
@media (prefers-color-scheme:dark){
  :root{ --bg:#101614; --surface:#18211E; --ink:#E9EFEC; --muted:#93A19B; --line:#26332E;
    --brand:#2BA486; --bubble-me:#1E7E68; --bubble-bot:#18211E; --chip:#1F2B27; --shadow:none; }
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  display:flex;flex-direction:column;max-width:720px;margin:0 auto;}
button{font:inherit;cursor:pointer}
.top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--bg);border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center}
.brand img{width:36px;height:36px;border-radius:10px}
.brand b{font-size:18px;display:block;line-height:1.1}
.brand small{color:var(--muted);font-size:12px}
.top-actions{display:flex;gap:8px;align-items:center}
.lang{display:flex;background:var(--chip);border-radius:999px;padding:3px}
.lang button{border:0;background:none;color:var(--muted);padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600}
.lang button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.ghost{border:1px solid var(--brand);color:var(--brand);background:none;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600}

main{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.msg{max-width:88%;padding:10px 14px;border-radius:var(--radius);white-space:pre-wrap;word-wrap:break-word}
.msg.me{align-self:flex-end;background:var(--bubble-me);color:#fff;border-bottom-right-radius:6px}
.msg.bot{align-self:flex-start;background:var(--bubble-bot);box-shadow:var(--shadow);border:1px solid var(--line);border-bottom-left-radius:6px}
.typing span{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:var(--muted);animation:b 1s infinite}
.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.note{font-size:12px;color:var(--muted);align-self:center;text-align:center}

.cards{display:flex;flex-direction:column;gap:10px;width:100%}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow)}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.al{font-weight:600}.al small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.price{font-size:22px;font-weight:700;white-space:nowrap}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 2px}
.tag{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--chip);color:var(--ink)}
.tag.cheapest{background:var(--accent);color:var(--accent-ink)}
.route{display:flex;align-items:center;gap:10px;margin:10px 0;font-variant-numeric:tabular-nums}
.route .t{font-size:18px;font-weight:600}.route .c{font-size:12px;color:var(--muted)}
.route .line{flex:1;text-align:center;font-size:12px;color:var(--muted);border-top:1px dashed var(--line);padding-top:4px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{flex:1;min-width:140px;border:0;border-radius:12px;padding:11px 12px;font-weight:600;text-align:center;text-decoration:none;font-size:15px}
.btn.primary{background:var(--brand);color:var(--brand-ink)}
.btn.sec{background:var(--chip);color:var(--ink)}
.tip{font-size:13px;color:var(--muted);padding:2px 4px}
.tip a{color:var(--brand)}

.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 16px 8px;scrollbar-width:none}
.chips button{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 12px;font-size:14px}
.composer{display:flex;gap:8px;padding:8px 16px calc(10px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
.composer input{flex:1;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:12px 16px;font-size:16px;outline:none}
.composer input:focus{border-color:var(--brand)}
.composer button{width:46px;height:46px;flex:none;border:0;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center}

.sheet{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet[hidden]{display:none}
.sheet-card{background:var(--surface);width:100%;max-width:720px;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));max-height:90vh;overflow:auto}
.sheet h3{margin:0 0 4px}.sheet p{margin:0 0 12px;color:var(--muted);font-size:14px}
.sheet label{display:block;font-size:13px;color:var(--muted);margin:10px 0 4px}
.sheet input,.sheet select{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;padding:11px 12px;font-size:16px}
.sheet .actions{margin-top:16px}
.msg .from{display:block;font-size:11px;font-weight:700;color:var(--brand);margin-bottom:2px}
.msg.human-msg{border-left:3px solid var(--brand)}
.msg.failed{opacity:.55}
.status{display:flex;align-items:center;gap:8px;margin:0 16px 6px;padding:8px 12px;border-radius:12px;background:var(--chip);font-size:13px}
.status .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.chips .human{border-color:var(--brand);color:var(--brand);font-weight:600}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.price small{font-size:12px;font-weight:500;color:var(--muted)}
.best{width:100%;display:flex;flex-direction:column;gap:6px}
.best-title{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.best-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}
.best-tile{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:10px 12px;box-shadow:var(--shadow)}
.best-tile .bt-l{font-size:12px;color:var(--muted);font-weight:600}
.best-tile .bt-p{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.best-tile .bt-a{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.best-tile[data-k="refund"]{border-color:var(--brand)}
.fares{display:flex;flex-direction:column;gap:6px;margin:4px 0 12px}
.fare{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;padding:9px 12px}
.fare.on{border-color:var(--brand);background:var(--surface);box-shadow:0 0 0 1px var(--brand) inset}
.fare .f-l{display:flex;flex-direction:column;min-width:0;font-size:14px}
.fare .f-l small{font-weight:400;color:var(--muted);font-size:12px}
.fare .f-d{font-size:12px;color:var(--muted)}
.fare .f-p{font-weight:700;font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.fare-unknown{font-size:13px;color:var(--muted);background:var(--chip);border-radius:10px;padding:8px 10px;margin:4px 0 12px}
.card.flash{box-shadow:0 0 0 3px var(--accent)}
.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--brand);text-decoration:none;font-weight:700;font-size:15px}
.icon-btn[hidden]{display:none!important}
.top-actions{flex-wrap:nowrap}
@media (max-width:420px){.lang button{padding:4px 7px}.ghost{padding:5px 9px}}
.composer .mic{background:var(--chip);color:var(--brand)}
.composer .mic.on{background:#C8423B;color:#fff;animation:pulse 1s infinite}
.composer .mic[hidden]{display:none}
@keyframes pulse{50%{opacity:.6}}
@media (prefers-reduced-motion:reduce){.composer .mic.on{animation:none}}
.status a{color:var(--brand);font-weight:600}
.push-ask{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.ghost.small{padding:3px 10px;font-size:12px}
.pax{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pax label{font-size:12px}
.sheet .check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink);margin-top:12px}
.sheet .check input{width:auto}
.sheet .total{font-weight:700;color:var(--ink);margin:10px 0 0}
.sheet .err{color:#C8423B;margin:6px 0 0}
.icon-btn.cur{width:auto;border-radius:999px;padding:0 4px;gap:0;display:inline-flex;align-items:center;background:var(--chip);border:0}
.icon-btn.cur span{padding:4px 7px;border-radius:999px;color:var(--muted);font-size:13px}
.icon-btn.cur span.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
@media (max-width:380px){.top{padding-left:10px;padding-right:10px}.brand img{width:30px;height:30px}.top-actions{gap:5px}.icon-btn{width:30px;height:30px}}
.inst{display:inline-flex;align-items:center;gap:4px}
.inst[hidden]{display:none}
@media (max-width:480px){.inst span{display:none}.inst{width:34px;height:34px;padding:0;justify-content:center;border-radius:50%}}
.install-bar{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 16px 0;padding:12px 16px;border:0;border-radius:14px;
  background:var(--brand);color:#fff;font-weight:700;font-size:15px;box-shadow:0 0 0 0 rgba(14,124,102,.55);animation:glow 2s ease-in-out infinite}
.install-bar[hidden]{display:none}
@keyframes glow{0%{box-shadow:0 0 0 0 rgba(14,124,102,.55)}70%{box-shadow:0 0 0 12px rgba(14,124,102,0)}100%{box-shadow:0 0 0 0 rgba(14,124,102,0)}}
@media (prefers-reduced-motion:reduce){.install-bar{animation:none}}
.pop{text-align:center}.pop img{border-radius:16px;margin:4px auto 8px;display:block;box-shadow:var(--shadow)}
.pop h3{font-size:20px;margin:0 0 6px}.pop p{color:var(--muted);font-size:15px}.pop .pop-how{color:var(--ink);background:var(--chip);border-radius:12px;padding:10px 12px;text-align:left}

.chips .newreq{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:600}
.alts{display:flex;gap:8px;flex-wrap:wrap}
.alts button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1.5px solid var(--brand);background:var(--surface);color:var(--ink);border-radius:14px;padding:8px 12px;font-size:14px}
.alts button span{font-size:12px;color:var(--muted)}

/* ---------- ИИ-консультант (боковой блок) ---------- */
.cs{position:fixed;z-index:15;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 30px rgba(0,0,0,.12)}
.cs-head{display:flex;align-items:center;gap:10px;padding:12px 12px 10px 14px;border-bottom:1px solid var(--line)}
.cs-ava{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:13px}
.cs-ttl{flex:1;min-width:0}.cs-ttl b{display:block;font-size:15px}.cs-ttl small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.cs-x{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:var(--chip);color:var(--ink);display:grid;place-items:center}
.cs-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.cs-msg{max-width:92%;padding:8px 12px;border-radius:14px;font-size:14px;white-space:pre-wrap;word-wrap:break-word}
.cs-msg.bot{align-self:flex-start;background:var(--bg);border:1px solid var(--line);border-bottom-left-radius:5px}
.cs-msg.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:5px}
.cs-msg.typing-cs{color:var(--muted);animation:pulse 1s infinite}
.cs-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.cs-chips:empty{display:none}
.cs-chips button{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:999px;padding:6px 10px;font-size:13px;text-align:left}
.cs-form{display:flex;gap:6px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.cs-form input{flex:1;min-width:0;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:999px;padding:10px 14px;font-size:16px;outline:none}
.cs-form input:focus{border-color:var(--accent)}
.cs-form button{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center}
.cs-fab{position:fixed;z-index:14;right:16px;bottom:calc(132px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:6px;border:0;border-radius:999px;
  padding:10px 14px 10px 12px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
/* телефон и узкий экран: панель выезжает справа */
@media (max-width:1099px){
  .cs{top:0;right:0;bottom:0;width:min(420px,100vw);border-radius:20px 0 0 20px;transform:translateX(105%);transition:transform .25s ease;visibility:hidden}
  body.cs-open .cs{transform:none;visibility:visible}
  body.cs-open .cs-fab{display:none}
  body.cs-open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:13}
}
@media (max-width:420px){.cs{border-radius:0}.cs-fab span{display:none}.cs-fab{padding:12px;bottom:calc(128px + env(safe-area-inset-bottom))}}
/* компьютер: панель всегда видна сбоку */
@media (min-width:1100px){
  body{max-width:1120px;padding-right:396px}
  .cs{top:16px;bottom:16px;width:376px;right:max(16px,calc((100vw - 1120px)/2 + 16px));border-radius:20px}
  .cs-x.cs-close,.cs-fab{display:none}
}
@media (prefers-reduced-motion:reduce){.cs{transition:none}}

.icon-btn.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.sheet .note-l{color:var(--ink);background:var(--chip);border-radius:10px;padding:8px 10px;margin:10px 0 0;font-size:14px}
.sheet input[readonly]{opacity:.75}

.msg a{color:inherit;text-decoration:underline;word-break:break-all;font-weight:600}

/* Календарь цен по датам */
.cal{width:100%;display:flex;flex-direction:column;gap:6px}
.dates{display:flex;gap:5px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none;position:relative}
.dates::-webkit-scrollbar{display:none}
.dates button{flex:1 0 46px;min-width:46px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:7px 6px;text-align:center}
.dates .w{display:block;font-size:11px;color:var(--muted)}.dates .d{display:block;font-size:17px;font-weight:700;line-height:1.15}
.dates .p{display:block;font-weight:700;font-size:13px;margin-top:2px;font-variant-numeric:tabular-nums}
.dates .low{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,var(--surface))}.dates .low .p{color:var(--ok)}
.dates .on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand) inset}
.dates .none{opacity:.6}.dates .none .p{font-weight:500;font-size:11px;color:var(--muted)}
.cal-hint{font-size:12px;font-weight:600;color:var(--ok)}

/* Голосовой режим */
.vpanel{display:flex;align-items:center;gap:14px;margin:0 16px 8px;padding:12px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.vpanel[hidden]{display:none}
.vmic{flex:none;width:64px;height:64px;border-radius:50%;border:0;background:var(--brand);color:#fff;display:grid;place-items:center}
.vpanel[data-state="listen"] .vmic{background:#C8423B;box-shadow:0 0 0 8px rgba(200,66,59,.18),0 0 0 16px rgba(200,66,59,.08);animation:pulse 1.2s infinite}
.vpanel[data-state="think"] .vmic{opacity:.6}
.vpanel[data-state="speak"] .vmic{background:var(--accent);color:var(--accent-ink)}
.vtext{flex:1;min-width:0}.vtext b{display:block;font-size:15px}.vtext small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vx{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:var(--chip);color:var(--ink);display:grid;place-items:center}
body.voice-on .cs-fab{bottom:calc(210px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:reduce){.vpanel[data-state="listen"] .vmic{animation:none}}

.chips .livebtn{border-color:var(--brand);color:var(--brand);font-weight:600}

.upd-bar{position:fixed;top:calc(8px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:30;display:flex;gap:12px;align-items:center;border:0;border-radius:999px;padding:10px 16px;background:var(--ink);color:var(--bg);font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.25);max-width:92vw}
.upd-bar b{color:var(--accent)}

/* Заголовок в начале страницы (меняется в админке) */
.hero{margin:4px 0 0;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:var(--brand)}

/* Боковой раздел «Мессенджеры» — выезжает слева */
.ms-fab{position:fixed;z-index:14;left:16px;bottom:calc(132px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;
  padding:10px 14px 10px 12px;background:var(--surface);color:var(--brand);font-weight:700;font-size:14px;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.ms-fab[hidden]{display:none}
.ms{position:fixed;z-index:16;top:0;left:0;bottom:0;width:min(360px,100vw);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:0 20px 20px 0;box-shadow:0 8px 30px rgba(0,0,0,.14);transform:translateX(-105%);transition:transform .25s ease;visibility:hidden}
body.ms-open .ms{transform:none;visibility:visible}
body.ms-open .ms-fab,body.ms-open .cs-fab{display:none}
body.ms-open::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:15}
.ms-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.ms-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);text-decoration:none;text-align:left}
.ms-ic{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px}
.ms-tx{flex:1;min-width:0}.ms-tx b{display:block;font-size:15px}.ms-tx small{display:block;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-act{flex:none;font-size:12px;font-weight:700;color:var(--brand)}
.ms-note{margin:0;padding:8px 10px;border-radius:10px;background:var(--chip);font-size:13px}
.ms-note[hidden]{display:none}
.ms-empty{color:var(--muted);font-size:14px}
.ms-vcf{display:block;margin-top:6px;padding:12px;border-radius:16px;border:1.5px dashed var(--brand);color:var(--ink);text-decoration:none}
.ms-vcf b{display:block;font-size:14px;color:var(--brand)}.ms-vcf small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
body.voice-on .ms-fab{bottom:calc(210px + env(safe-area-inset-bottom))}
@media (max-width:420px){.ms{border-radius:0}.ms-fab span{display:none}.ms-fab{padding:12px;bottom:calc(128px + env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){.ms{transition:none}}

/* Пошаговая установка (iPhone / Android) */
.pop-steps{text-align:left;margin:10px 0 4px;padding:12px 12px 12px 34px;background:var(--chip);border-radius:14px;color:var(--ink);font-size:15px;line-height:1.45}
.pop-steps li{margin:4px 0}.pop-steps li::marker{font-weight:800;color:var(--brand)}
.pop-steps b{white-space:nowrap}
.pop-copy{width:100%;margin-top:8px}
.pop-copied{color:var(--ok)!important;font-weight:600;font-size:14px!important;margin:8px 0 0}
.pop-copied[hidden]{display:none}
.pop-or{margin:10px 0 6px;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.pop-clip{display:block;width:100%;text-align:center;text-decoration:none}
.pop .pop-clip-how{font-size:13px;margin:6px 0 0;text-align:left}

/* Шапка: стрелка назад */
.top .back{flex:none;margin-right:-2px}
.top .back[hidden]{display:none}

/* Тариф как на сайтах авиакомпаний: базовый + опции багаж / возврат */
.opts{display:flex;gap:8px;margin:10px 0 4px}
.opt{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;padding:9px 8px;font-size:14px;font-weight:600}
.opt small{font-weight:700;color:var(--brand)}
.opt.on{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,var(--surface))}
.opt:disabled{opacity:.45}
.sel-desc{font-size:13px;color:var(--muted);margin:2px 0 8px}
.refresh-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}
.refresh-btn{border:1px solid var(--brand);color:var(--brand);background:none;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}

/* Календарь: число — зелёным, сумма — чёрным; дешевле (рекомендация) — жёлтая рамка; выбранная — зелёная */
.dates .d{color:var(--ok)}
.dates .p{color:var(--ink)}
.dates .low{border-color:var(--line);background:var(--surface)}.dates .low .p{color:var(--ink)}
.dates .rec{border-color:#E0B21C;box-shadow:0 0 0 2px #F4C95D inset;background:color-mix(in srgb,#F4C95D 14%,var(--surface))}
.dates .on{border-color:var(--ok);box-shadow:0 0 0 2px var(--ok) inset;background:color-mix(in srgb,var(--ok) 12%,var(--surface))}
.cal-hint{color:#9A7300}
@media (prefers-color-scheme:dark){.cal-hint{color:#F4C95D}}
@media (max-width:1099px){main{padding-bottom:64px}}

/* Окна и боковые панели — по видимой части экрана: при открытой клавиатуре не «уезжают» вверх/вниз */
.sheet{inset:auto 0 auto 0;top:var(--vvt,0px);height:var(--vvh,100dvh)}
.sheet-card{max-height:calc(var(--vvh,100dvh) - 16px);overscroll-behavior:contain}
@media (max-width:1099px){
  .cs,.ms{top:var(--vvt,0px);bottom:auto;height:var(--vvh,100dvh)}
  .cs-list,.ms-list{overscroll-behavior:contain}
}

/* Заявка: три кнопки в одну линию — Отменить (белая), Позвонить (зелёная), Отправить менеджеру (жёлтая) */
.lead-actions{flex-wrap:nowrap;gap:6px}
.lead-actions .btn{min-width:0;flex:1 1 0;padding:10px 6px;font-size:14px;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center}
.lead-actions .ghost-w{background:#fff;color:#1B2421;border:1.5px solid var(--line)}
.lead-actions .call-g{background:var(--ok);color:#fff}
.lead-actions .call-g small{font-size:10.5px;font-weight:600;opacity:.92;margin-top:2px;white-space:nowrap}
.lead-actions .send-y{background:var(--accent);color:var(--accent-ink)}
body.cs-open,body.ms-open{overflow:hidden}
/* «Следить за ценой» — слева, напротив «Обновить цены» */
.refresh-row{flex-wrap:wrap}
.refresh-row .watch-slot{flex:1;min-width:0;display:flex}
.refresh-row .prices-at{flex-basis:100%;font-size:12px;color:var(--muted);text-align:right;margin-top:-2px}
.watch-row{display:flex;align-items:center}
.watch-btn{border:1px solid #F5B301;background:#FFF6D6;color:#5a4300;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap}
.watch-x{border:1px solid var(--brand);background:#E8F4F0;color:var(--brand);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap}
.watch-x b{margin-left:4px;font-weight:700;opacity:.7}
.refresh-btn{white-space:nowrap}
.watch-show{align-self:flex-start;margin:4px 0}
