:root {
  --primary: #1F4E79;
  --accent: #2E75B6;
  --bg: #f5f7fa;
  --text: #333;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { background: var(--primary); color: white; padding: 15px 0; position: sticky; top: 0; z-index: 1100; }
/* Карта — отдельный слой: её кнопки (+/−, z-index 1000 внутри Leaflet) не вылезают поверх шапки; модальные окна (2000) выше всего */
#map { position: relative; isolation: isolate; z-index: 0; }
section { scroll-margin-top: 100px; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; }
.logo span { color: #4fc3f7; }
nav a { color: white; margin-left: 20px; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { background: linear-gradient(135deg, #1F4E79, #2E75B6); color: white; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 42px; margin: 0 0 10px; }
.section { padding: 50px 0; }
.section.alt { background: white; }
h2 { color: var(--primary); text-align: center; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.calc-form label, .calc-result label { display: block; margin-bottom: 12px; }
input, select { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; }
.btn-primary { background: var(--accent); color: white; border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.btn-secondary { background: #eee; border: 1px solid #ccc; padding: 10px 20px; border-radius: 6px; margin-left: 10px; cursor: pointer; }
.btn-primary:hover { background: #1a5a9a; }

.mockup { height: 220px; background: #eef; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.window-mock { width: 160px; height: 160px; border: 12px solid #555; position: relative; }
.window-mock .glass { position: absolute; inset: 8px; background: linear-gradient(180deg, #aee, #fff); }
.price-breakdown { background: white; padding: 15px; border-radius: 8px; }
.price-breakdown h3 { color: var(--primary); }

.steps { display: flex; justify-content: space-around; flex-wrap: wrap; }
.step { text-align: center; max-width: 200px; }
.step strong { display: block; width: 40px; height: 40px; background: var(--accent); color: white; border-radius: 50%; line-height: 40px; margin: 0 auto 10px; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { background: white; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-content.large { max-width: 700px; }
.close { float: right; font-size: 28px; cursor: pointer; }
.checkbox { display: flex; align-items: center; gap: 8px; }

footer { background: #222; color: white; text-align: center; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); margin-top: 40px; }
footer p { margin: 6px 0; }
.footer-rights { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; color: #bbb; }

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  header .container { flex-direction: column; }
  nav a { margin: 5px; display: inline-block; }
  .hero h1 { font-size: 28px; }
}

/* Кабинет менеджера исполнителя и карточки заказов */
.fin-box { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.fin-box .fin { flex: 1 1 140px; background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 10px 12px; }
.fin-box .fin b { display: block; font-size: 18px; color: #1F4E79; margin-top: 2px; }
.fin-box .fin.debt b { color: #c62828; }
.fin-box .fin small { color: #777; }
.fin-box .fin-list { flex: 1 1 100%; font-size: 13px; color: #555; }
.mgr-hint { font-size: 13px; color: #666; margin: 0 0 8px; }
.mgr-card { background: #fff; border: 1px solid #dfe6ee; border-radius: 8px; padding: 12px; margin: 8px 0; font-size: 14px; }
.mgr-wait { background: #fff8e1; border-color: #f3d27a; }
.mgr-ok { background: #e8f5e9; border-color: #a5d6a7; }
.mgr-off { background: #fdecea; border-color: #f5b5ae; }
.order-card { border: 1px solid #ddd; padding: 10px; margin-bottom: 8px; border-radius: 6px; background: #fff; font-size: 14px; }
.order-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.order-tools input[type=datetime-local] { width: auto; padding: 4px 6px; margin: 0; }
.order-tools button { margin: 0; padding: 5px 10px; font-size: 13px; }

/* Окно связи: честные пометки и текст про уведомления вместо alert */
/* v8: сообщения, голосовые, push */
.chat-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 10px; background: #e53935; color: #fff; font-size: 12px; font-weight: bold; line-height: 16px; text-align: center; margin-left: 4px; vertical-align: middle; }
.modal-content.chat-box { max-width: 900px; width: 96%; height: 86vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.chat-box > .close { position: absolute; right: 14px; top: 8px; z-index: 2; font-size: 28px; cursor: pointer; }
.chat-guest { padding: 30px; }
.chat-main { flex: 1; display: flex; min-height: 0; }
.chat-list-pane { width: 300px; border-right: 1px solid #e5e5e5; display: flex; flex-direction: column; min-height: 0; }
.chat-list-pane h2 { margin: 0; padding: 16px 16px 10px; font-size: 20px; }
.chat-list { overflow-y: auto; flex: 1; }
.chat-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid #f0f0f0; padding: 10px 16px; cursor: pointer; font: inherit; }
.chat-item:hover, .chat-item.active { background: #eef4fb; }
.chat-item .ci-t { display: block; font-weight: bold; font-size: 15px; }
.chat-item .ci-s { display: block; font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .ci-l { display: block; font-size: 13px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 48px 10px 14px; border-bottom: 1px solid #e5e5e5; }
.chat-head-t b { display: block; font-size: 16px; }
.chat-head-t small { color: #777; font-size: 12px; }
.chat-back { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 0 6px; }
.chat-thread { flex: 1; overflow-y: auto; padding: 12px 14px; background: #f4f6f9; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { color: #888; text-align: center; margin: auto; padding: 20px; font-size: 14px; }
.cm { max-width: 78%; align-self: flex-start; background: #fff; border-radius: 12px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); font-size: 15px; word-wrap: break-word; }
.cm.mine { align-self: flex-end; background: #dcf1d4; }
.cm.sys { align-self: center; background: #fff7e0; font-size: 13px; color: #6a5200; max-width: 92%; text-align: center; }
.cm-a { font-size: 12px; font-weight: bold; color: #1a5a9a; margin-bottom: 2px; }
.cm.mine .cm-a { color: #2e7d32; }
.cm-t { font-size: 11px; color: #888; text-align: right; margin-top: 2px; }
.chat-note { font-size: 13px; padding: 0 14px; color: #444; }
.chat-note:empty { display: none; }
.chat-note.warn { color: #a33; padding: 6px 14px; background: #fff3f3; }
.chat-input { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #e5e5e5; align-items: flex-end; background: #fff; }
.chat-input textarea { flex: 1; resize: none; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #ccc; border-radius: 18px; max-height: 120px; }
.chat-icon { width: 42px; height: 42px; border-radius: 50%; border: none; background: #eee; font-size: 19px; cursor: pointer; flex: none; }
.chat-icon.send { background: var(--accent); color: #fff; }
.chat-icon:disabled { opacity: .45; cursor: default; }
.chat-rec, .chat-preview { display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid #e5e5e5; background: #fff; flex-wrap: wrap; }
.chat-rec .btn-primary, .chat-preview .btn-primary { padding: 8px 16px; }
.chat-preview .btn-secondary { margin-left: 0; }
.chat-preview audio { height: 36px; max-width: 100%; flex: 1 1 200px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #e53935; animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .2; } }
.rec-len { font-size: 13px; color: #555; }
.vp { display: flex; align-items: center; gap: 8px; width: min(220px, 100%); max-width: 100%; min-width: 0; box-sizing: border-box; }
.cm .vp { width: min(220px, 100%); }
.cm { max-width: 78%; min-width: 0; overflow-wrap: anywhere; }
.vp-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; font-size: 13px; flex: none; }
.vp-btn:disabled { background: #bbb; }
.vp-bar { flex: 1; min-width: 0; height: 4px; background: #cfd8e3; border-radius: 2px; overflow: hidden; }
.vp-fill { display: block; height: 100%; width: 0; background: var(--accent); }
.vp-time { font-size: 12px; color: #555; min-width: 34px; }
.vp-dl { font-size: 13px; }
.vp-err { font-size: 12px; color: #a33; margin-top: 3px; max-width: 260px; }
.push-box { background: #f0f7ff; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.push-box h3 { margin: 0 0 4px; }
.push-state { margin: 4px 0; font-size: 14px; }
.push-state.ok { color: #2e7d32; font-weight: bold; }
.push-state.warn { color: #a33; }
@media (max-width: 700px) {
  .modal-content.chat-box { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .chat-list-pane { width: 100%; border-right: none; }
  .chat-thread-pane { display: none; }
  .chat-main.in-thread .chat-list-pane { display: none; }
  .chat-main.in-thread .chat-thread-pane { display: flex; }
  .chat-back { display: inline-block; }
  .cm { max-width: 88%; }
}

/* Адрес объекта / цеха: поиск, результаты, мини-карта */
.geo-row { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.geo-row input { flex: 1; margin-top: 0; }
.geo-btn { margin-left: 0; white-space: nowrap; padding: 8px 14px; }
.geo-mapbtn { margin: 0 0 10px; }
.geo-results { margin: -6px 0 10px; }
.geo-results button { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #ddd; border-top: 0; padding: 8px 10px; font-size: 13px; cursor: pointer; }
.geo-results button:first-child { border-top: 1px solid #ddd; border-radius: 6px 6px 0 0; }
.geo-results button:last-child { border-radius: 0 0 6px 6px; }
.geo-results button:hover { background: #eef5ff; }
.geo-results .geo-msg { font-size: 13px; color: #a33; padding: 4px 0; }
.geo-map { height: 240px; border-radius: 8px; margin: 0 0 12px; position: relative; isolation: isolate; z-index: 0; }
.geo-info { font-size: 14px; color: #1F4E79; margin: -4px 0 6px; }
.geo-info.approx { color: #a15c00; }
.geo-attr { font-size: 11px; color: #888; margin: 0 0 12px; }
input[readonly] { background: #f1f3f6; color: #333; }

/* Телефон: шапка в две компактные строки — логотип и меню с горизонтальной прокруткой */
@media (max-width: 600px) {
  header { padding: 8px 0 6px; }
  header .container { flex-direction: column; align-items: stretch; padding: 0 12px; }
  .logo { font-size: 20px; text-align: center; }
  nav { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 0 2px; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; margin: 0; padding: 6px 12px; font-size: 14px; background: rgba(255,255,255,0.12); border-radius: 16px; }
  section { scroll-margin-top: 90px; }
}

/* v9: санкции, зона модератора, журнал */
.sanction-banner { background: #fff4e5; border-bottom: 2px solid #f0a020; color: #6b4300; padding: 10px 16px; font-size: 14px; line-height: 1.5; }
.sanction-card { background: #fff4e5; border: 1px solid #f0c27a; border-radius: 8px; padding: 12px; margin: 8px 0 12px; font-size: 14px; line-height: 1.5; color: #5a3a00; }
.sanc-mark { display: inline-block; color: #a33; font-size: 13px; font-weight: 600; margin: 2px 0; }
.sanc-pend { display: inline-block; color: #8a6d00; background: #fff8d6; border-radius: 4px; padding: 4px 8px; font-size: 13px; margin: 4px 6px 4px 0; }
.zone-list { max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 6px; margin-bottom: 12px; }
.zone-list.journal { max-height: 320px; }
.zone-card { border: 1px solid #dfe6ee; border-left: 4px solid #8fb3e0; border-radius: 6px; padding: 8px 10px; margin: 6px 0; font-size: 14px; background: #fff; }
.zone-card.sanc-suspended { border-left-color: #f0a020; background: #fffaf0; }
.zone-card.sanc-blocked { border-left-color: #c33; background: #fff5f5; }
.zone-card.sanc-req { border-left-color: #f0a020; }
.zone-card .order-tools button { font-size: 13px; padding: 6px 10px; }
.zone-hist { margin-top: 6px; padding: 6px; background: #f7f9fc; border-radius: 6px; }
.zone-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.zone-tabs .zt { border: 1px solid #c9d9f0; background: #fff; border-radius: 14px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.zone-tabs .zt.active { background: #1f5fae; color: #fff; border-color: #1f5fae; }
#zone-filter { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; margin: 4px 0; }
.jr { border-bottom: 1px solid #eee; padding: 6px 2px; font-size: 13px; line-height: 1.45; }
.jr:last-child { border-bottom: 0; }
.jr-pending .jr-st { color: #8a6d00; } .jr-applied .jr-st { color: #1a7f37; } .jr-rejected .jr-st { color: #a33; } .jr-ended .jr-st { color: #777; }
.sanc-who { font-size: 14px; margin: 4px 0 8px; }
.sanc-review-note { background: #fff8d6; color: #6b5600; border-radius: 6px; padding: 8px; font-size: 13px; }
.sanc-danger { color: #a33 !important; border-color: #e3a3a3 !important; }
.btn-primary.sanc-danger-btn { background: #c33; }

/* ===== v10: страницы городов и регионов, «Поделиться» ===== */
.hero-actions { margin: 14px 0 0; }
.hero-link { color: #fff; margin-right: 12px; }
.hero-share { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 15px; }
.hero-share:hover { background: rgba(255,255,255,.25); }
.share-card { background: #eef5fc; border: 1px solid #cfe2f3; border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 14px; line-height: 1.5; }
.share-card .share-link-text { word-break: break-all; color: #1F4E79; }
.share-card .share-card-btn { margin: 8px 0 0; }
body.seo { background: var(--bg); }
.seo-main { padding-top: 18px; padding-bottom: 10px; line-height: 1.55; }
.seo-main h1 { color: var(--primary); font-size: 30px; margin: 10px 0 12px; }
.seo-main h2 { text-align: left; font-size: 21px; margin: 0 0 10px; }
.seo-main h3 { color: var(--primary); font-size: 17px; margin: 16px 0 6px; }
.seo-crumbs { font-size: 13px; color: #666; }
.seo-crumbs a { color: var(--accent); }
.seo-lead { font-size: 17px; }
.seo-actions { margin: 14px 0 18px; }
.seo-btn { display: inline-block; text-decoration: none; margin: 4px 8px 4px 0; }
.seo-share { margin-left: 0; }
.seo-box, .seo-group, .seo-cta-exec { background: #fff; border-radius: 10px; padding: 16px 18px; margin: 0 0 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.seo-cta-exec { border-left: 4px solid #ff7a00; }
.seo-facts { margin: 6px 0 8px; padding-left: 20px; }
.seo-note { font-size: 13px; color: #666; }
.seo-list { padding-left: 20px; margin: 6px 0; }
.seo-list.cols { columns: 2; column-gap: 30px; }
.seo-inline a, .seo-list a, .seo-box p a { color: var(--accent); }
.seo-steps { padding-left: 22px; margin: 4px 0; }
.seo-link { color: var(--accent); margin-left: 6px; }
@media (max-width: 700px) {
  .seo-main h1 { font-size: 24px; }
  .seo-list.cols { columns: 1; }
  body.seo nav a { margin-left: 10px; font-size: 14px; }
}

/* v11: «В вашем городе пока нет исполнителя» */
.no-exec { border: 1px solid #f0c36d; background: #fff8e6; border-radius: 8px; padding: 12px 14px; margin: 10px 0 12px; font-size: 14px; color: #5a4300; }
.no-exec[hidden] { display: none; }
.no-exec strong { display: block; font-size: 16px; color: #8a5a00; margin-bottom: 4px; }
.no-exec p { margin: 0 0 10px; }
.no-exec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.no-exec-actions .btn-primary { margin: 0; }
.no-exec-link { color: #1F4E79; font-weight: 600; }
.waiting-box { background: #fff8e6; border: 1px dashed #f0c36d; border-radius: 6px; padding: 6px 8px; margin: 4px 0; }
.offers-title { margin: 14px 0 6px; color: #8a5a00; }
.offer-card { border-color: #f0c36d; background: #fffdf5; }
.seo-none { background: #fff8e6; border-left: 4px solid #f0c36d; padding: 8px 10px; }
/* v13: роли, оферты, налоги, уведомления, «Улучшить сайт» */
.role-hint{font-size:13px;line-height:1.45;color:#234;background:#f0f7ff;border-left:3px solid #2E75B6;padding:8px 10px;border-radius:4px;margin:0 0 8px}
.coop-box{font-size:13px;line-height:1.45;background:#fff8e6;border:1px solid #f0d58c;border-radius:6px;padding:10px 12px;margin:12px 0}
.coop-box a{color:#1F4E79}
.offer-text{font-size:14px;line-height:1.55;color:#222;background:#fafafa;border:1px solid #e3e3e3;border-radius:6px;padding:12px 14px;white-space:normal;word-wrap:break-word}
.offer-scroll{max-height:45vh;overflow-y:auto;margin-bottom:10px}
.net-box{background:#f3fbf5;border:1px solid #cfe9d6;border-radius:8px;padding:10px 14px;margin:12px 0}
.net-box h3{margin:4px 0 6px}
.role-box{margin:14px 0}
.tax-box{flex-wrap:wrap;margin:10px 0}
.zone-card.notif-new{border-left:3px solid #2E75B6;background:#f5f9ff}
.offer-edit{border:1px solid #e3e3e3;border-radius:6px;padding:8px 10px;margin-bottom:8px;background:#fff}
.offer-edit summary{cursor:pointer}
.seo .role-card p{margin:6px 0}
.seo-table{border-collapse:collapse;width:100%;max-width:720px;margin:12px 0;font-size:15px}
.seo-table caption{text-align:left;font-weight:bold;margin-bottom:6px}
.seo-table th,.seo-table td{border:1px solid #dde3ea;padding:8px 10px;text-align:left}
.seo-table td:last-child{white-space:nowrap;font-weight:bold}
.checkbox input[type=checkbox]{width:auto;flex:0 0 auto;margin:0}
.checkbox span{flex:1 1 auto}

/* v13b: «Как выгоднее получать вознаграждение» */
.benefit-box{background:#f3f8ff;border:1px solid #cfe0f5;border-radius:6px;padding:8px 10px;margin:8px 0;font-size:13px;line-height:1.45}
.benefit-box:empty{display:none}

/* v14: ссылки на Политику ПДн в подвале, баннер о cookie / внешних сервисах, согласие в заказе */
.footer-legal { margin: 8px 0 0; font-size: 13px; }
.footer-legal a { color: inherit; opacity: .9; text-decoration: underline; }
.privacy-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9000; max-width: 720px; margin: 0 auto;
  background: #1a3a5c; color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; line-height: 1.45;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.privacy-banner p { margin: 0; flex: 1 1 300px; }
.privacy-banner a { color: #cfe3f7; }
.privacy-banner button { background: #fff; color: #1a3a5c; border: 0; border-radius: 8px; padding: 8px 18px; font-weight: 600; cursor: pointer; }

/* v21 station greeting */
.station-banner{position:relative;z-index:50;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0a1a3a;border-top:2px solid #1e3a8a;border-bottom:2px solid #1e3a8a;color:#ffb020;font-family:"Courier New",monospace;font-weight:700;text-shadow:0 0 6px rgba(255,176,32,.7)}
.station-label{flex:none;color:#fff;background:#c62828;padding:3px 8px;border-radius:4px;font-size:13px;text-shadow:none}
.station-track{flex:1;overflow:hidden;white-space:nowrap;min-width:0}
.station-text{display:inline-block;transform:translateX(var(--station-from,100vw))}
.station-text.run{animation:stationScroll linear 1 forwards}
@keyframes stationScroll{from{transform:translateX(var(--station-from,100vw))}to{transform:translateX(-100%)}}
.station-static .station-track{white-space:normal}
.station-static .station-text{transform:none;display:block;font-size:14px;line-height:1.4}
.station-play{flex:none;cursor:pointer;border:1px solid #ffb020;background:transparent;color:#ffb020;border-radius:6px;padding:4px 10px;font:inherit;min-width:40px}
@media (prefers-reduced-motion: reduce){.station-text.run{animation:none}}

/* v23: компактная строка объявления + голосовые на телефоне (в ряд, не столбик) */
@media (max-width: 700px) {
  .station-banner {
    flex-wrap: nowrap; gap: 6px; padding: 6px 8px; align-items: center;
  }
  .station-label { font-size: 11px; padding: 2px 6px; flex: none; }
  .station-track {
    flex: 1 1 auto; min-width: 0; max-height: none; order: 0; overflow: hidden;
  }
  .station-static .station-track { max-height: none; white-space: nowrap; }
  .station-static .station-text {
    display: block; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 12px; line-height: 1.35;
    transform: none; -webkit-line-clamp: unset;
  }
  .station-play { padding: 4px 8px; font-size: 12px; flex: none; }
  .vp { width: min(200px, 100%); gap: 6px; }
  .vp-time { font-size: 11px; min-width: 30px; }
  .cm { max-width: 85%; padding: 6px 8px 4px; font-size: 14px; }
  #rec-audio { width: 100%; max-width: 100%; height: 36px; }
  .chat-preview audio { max-width: 100%; }
}

/* v31: имя установщика / бригадира на карте */
.exec-name-tip{font-weight:600;font-size:12px;padding:2px 6px}
#reg-city-other,#workshop-city-other{width:100%;margin:-4px 0 10px}

/* v49: выбор конфигурации окна */
#w-scheme-picker { margin: 10px 0 8px; }
#w-scheme-picker .scheme-title { display:block; font-weight:600; margin-bottom:6px; }
.scheme-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:8px; }
.scheme-group-title { grid-column:1/-1; font-size:12px; font-weight:600; color:#3D9B8F; text-transform:uppercase; letter-spacing:.03em; margin:6px 0 -2px; border-bottom:1px solid #e3e8ec; padding-bottom:2px; }
.scheme-card { display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:6px; padding:8px 6px; background:#fff; border:2px solid #dde3e8; border-radius:10px; cursor:pointer; font:inherit; font-size:12px; line-height:1.25; color:#333; text-align:center; transition:border-color .15s, box-shadow .15s, transform .1s; }
.scheme-card svg { max-height:70px; width:auto; max-width:100%; }
.scheme-card:hover { border-color:#3D9B8F; }
.scheme-card:active { transform:scale(.98); }
.scheme-card.active { border-color:#3D9B8F; background:#eef8f6; box-shadow:0 0 0 3px rgba(61,155,143,.2); font-weight:600; }
@media (max-width:480px) { .scheme-grid { grid-template-columns:repeat(2,1fr); } .scheme-card { font-size:11px; } }

/* v51: корзина с галочками */
#items-list .cart-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:6px}
#items-list .cart-count{color:#3D9B8F;font-size:13px}
#items-list .cart-all{margin-left:auto;font-size:13px}
#items-list .cart-all a{color:#3D9B8F}
#items-list .cart-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 8px;margin-bottom:4px;border:1px solid #d8ebe8;border-radius:8px;background:#f6fbfa;cursor:pointer}
#items-list .cart-row.off{opacity:.55;background:#fafafa}
#items-list .cart-row input{accent-color:#3D9B8F;width:18px;height:18px;margin:0}
#items-list .cart-name{flex:1 1 180px}
#items-list .cart-price{font-size:13px;color:#555;white-space:nowrap}
#items-list .cart-del{border:0;background:none;color:#c0392b;font-size:16px;cursor:pointer;padding:0 4px}
@media(max-width:600px){#items-list .cart-all{margin-left:0;width:100%}#items-list .cart-price{white-space:normal}}

/* v52: корзина-модалка */
.modal-content.cart-box{max-width:760px;width:96%;display:flex;flex-direction:column}
.cart-link{color:#3D9B8F;font-weight:600}
.cart-counter{background:#e53935;color:#fff;border-radius:10px;padding:0 7px;font-size:12px;margin-left:4px}
.cart-bar{display:flex;gap:16px;align-items:center;padding:8px 0;border-bottom:1px solid #eee;margin-bottom:8px}
.cart-bar a{color:#3D9B8F}
.cart-card{display:grid;grid-template-columns:24px 110px 1fr auto;gap:12px;align-items:start;padding:12px;border:1px solid #e6e6e6;border-radius:12px;margin-bottom:10px;background:#fff}
.cart-card.off{opacity:.55}
.cart-chk{width:20px;height:20px;accent-color:#3D9B8F;margin-top:4px}
.cart-thumb{width:110px;height:110px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f5f7f7;border-radius:8px;font-size:40px}
.cart-thumb>*{transform:scale(.45);transform-origin:center;flex:none}
.cart-thumb svg{max-width:220px}
.cart-type{font-size:12px;color:#888;text-transform:uppercase}
.cart-desc{font-weight:600;margin:2px 0}
.cart-meta{font-size:13px;color:#666}
.cart-del{background:none;border:0;color:#999;cursor:pointer;padding:6px 0;font-size:13px}
.cart-del:hover{color:#e53935}
.cart-price{font-weight:700;font-size:18px;text-align:right;white-space:nowrap}
.cart-price small{display:block;font-weight:400;font-size:12px;color:#888}
.cart-foot{position:sticky;bottom:-30px;background:#fff;border-top:1px solid #eee;padding:12px 0 0;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cart-sum{display:flex;flex-direction:column}.cart-sum b{font-size:22px}.cart-sum small{color:#888;font-size:12px}
.cart-empty{padding:30px;text-align:center;color:#777}
.cart-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(80px);background:#222;color:#fff;padding:12px 18px;border-radius:10px;z-index:3000;opacity:0;transition:.3s}
.cart-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.cart-toast a{color:#7fe0d2}
@media(max-width:560px){.cart-card{grid-template-columns:22px 80px 1fr}.cart-thumb{width:80px;height:80px}.cart-thumb>*{transform:scale(.33)}.cart-price{grid-column:3;text-align:left}}

/* v60 cfg mode toggle */
.cfg-mode-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;font-size:14px}
.cfg-mode-title{font-weight:600}.cfg-mode-opt{color:#888}.cfg-mode-opt.on{color:#111;font-weight:600}
.cfg-switch{position:relative;display:inline-block;width:46px;height:24px;margin:0}
.cfg-switch input{opacity:0;width:0;height:0}
.cfg-slider{position:absolute;inset:0;background:#bbb;border-radius:24px;cursor:pointer;transition:.2s}
.cfg-slider:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.cfg-switch input:checked+.cfg-slider{background:#2e7d32}.cfg-switch input:checked+.cfg-slider:before{transform:translateX(22px)}
.cfg-open-btn{width:100%;margin:4px 0 10px;padding:10px;cursor:pointer}
.cfg-modal{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:10000;display:flex;align-items:center;justify-content:center;padding:12px}
.cfg-modal[hidden]{display:none}
.cfg-modal-box{background:#fff;border-radius:12px;max-width:760px;width:100%;max-height:90vh;overflow:auto;padding:18px;position:relative}
.cfg-modal-close{position:absolute;top:6px;right:10px;border:0;background:none;font-size:28px;cursor:pointer}
.cfg-modal-done{margin-top:12px;width:100%;padding:10px;cursor:pointer}
body.cfg-modal-open{overflow:hidden}
