:root {
  --blue: #0B3C5D; --orange: #F28C28; --red: #C8372D; --green: #2F7D4F;
  --bg: #EDF0F3; --card: #FFFFFF; --text: #1F2933; --muted: #6B7785; --line: #DDE3E9;
  --peach: #FDE9D3; --sky: #E6EEF5;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.35 -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
button { font: inherit; cursor: pointer; }

/* шапка: тёмно-синяя с оранжевой полосой 4px, как на бланке */
.hdr { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: var(--blue); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 4px solid var(--orange); }
.hdr .logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; padding: 3px; flex: none; }
.hdr .back { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 0 6px 4px 0; }
.hdr .back:not([hidden]) + .logo { display: none; }
.hdr h1 { margin: 0; font-size: 22px; font-weight: 700; }
.hdr p { margin: 2px 0 0; font-size: 14px; color: #C9D6E2; }
.hdr p .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; }

/* вкладки Мои / Все */
.seg { display: flex; background: var(--card); border-bottom: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; padding: 14px 0 12px; font-size: 17px; color: var(--muted);
  border-bottom: 3px solid transparent; }
.seg button.on { color: var(--blue); font-weight: 700; border-bottom-color: var(--orange); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; background: var(--card);
  border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 8px 14px;
  font-size: 15px; color: var(--text); min-height: 40px; }
.chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* строка заявки с колонкой обратного отсчёта */
.list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.row { display: flex; background: var(--card); min-height: 112px; text-align: left; border: 0; padding: 0; width: 100%; }
.cd { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; text-align: center; }
.cd b { font-size: 28px; line-height: 1.05; font-weight: 800; }
.cd small { font-size: 13px; margin-top: 2px; }
.cd.over { background: var(--red); color: #fff; }
.cd.soon { background: var(--orange); color: #fff; }
.cd.today { background: var(--peach); color: #9A4B00; }
.cd.later { background: var(--sky); color: var(--blue); }
.cd.draft { background: #E3E7EC; color: var(--muted); }
.row .body { padding: 12px 14px; flex: 1; min-width: 0; }
.row .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .code { font-weight: 700; font-size: 18px; }
.op { font-size: 12px; font-weight: 700; color: var(--blue); border: 1px solid #9DB3C6; border-radius: 4px; padding: 1px 6px; }
.row .work { margin: 4px 0 2px; }
.row .addr { color: var(--muted); font-size: 14px; }
.row .meta { margin-top: 6px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.st { font-weight: 700; }
.st-new { color: var(--orange); } .st-draft { color: var(--muted); } .st-done { color: var(--green); }
.st-red { color: var(--red); } .st-go { color: #9A4B00; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* карточка */
.sec { background: var(--card); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sec h3 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; }
.sec h3 small { font-weight: 400; color: var(--muted); }
.big { display: flex; align-items: baseline; gap: 10px; }
.big b { font-size: 34px; font-weight: 800; color: var(--orange); }
.big.over b { color: var(--red); }
.bar { height: 6px; background: var(--peach); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); }
.addr-line { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid var(--blue); }
.btn.dark { background: var(--blue); color: #fff; }
.btn.light { background: #fff; color: var(--blue); }
.letter { background: #F5F7F9; border-left: 3px solid var(--blue); padding: 10px 12px; white-space: pre-wrap;
  max-height: 96px; overflow: hidden; position: relative; font-size: 15px; }
.letter.open { max-height: none; }
.link { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 8px 0 0; }
.access { background: #FFF6EC; border: 1px solid #F6C892; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.note { color: var(--muted); font-size: 14px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.steps span.on { color: var(--green); font-weight: 700; }
.action { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); padding: 12px 16px;
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.action button { width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--orange); color: #fff;
  font-size: 19px; font-weight: 700; }
.action button.green { background: var(--green); }
.action button:disabled { opacity: .6; }

/* профиль и выбор пользователя */
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.pick { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.pick button { background: var(--card); border: 0; text-align: left; padding: 14px 16px; min-height: 56px; }
.pick small { display: block; color: var(--muted); }
.testbar { background: #FFF6EC; color: #9A4B00; padding: 8px 16px; font-size: 14px; border-bottom: 1px solid #F6C892; }

/* нижние вкладки */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs button { flex: 1; border: 0; background: none; padding: 8px 0 6px; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; border-top: 3px solid transparent; }
.tabs button.active { color: var(--blue); font-weight: 700; border-top-color: var(--orange); }
.ico { width: 26px; height: 22px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico-list { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h2v2H3zm4 0h14v2H7zM3 11h2v2H3zm4 0h14v2H7zm-4 6h2v2H3zm4 0h14v2H7z'/%3E%3C/svg%3E"); }
.ico-smr { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V9l8-6 8 6v12h-6v-6h-4v6z'/%3E%3C/svg%3E"); }
.ico-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2zm3 5v2h6V7zm0 4v2h6v-2z'/%3E%3C/svg%3E"); }
.ico-user { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-7 8-7s8 3 8 7z'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: 2px; left: 55%; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; padding: 1px 6px; }
.update, .offline { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.update { background: var(--orange); color: #fff; font-weight: 700; }
.update button { background: #fff; color: var(--orange); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.offline { background: #3A4652; color: #fff; justify-content: center; top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(150px + env(safe-area-inset-bottom)); background: #1F2933; color: #fff;
  padding: 12px 14px; border-radius: 10px; z-index: 30; }

/* ---- 0.2 ---- */
.ico-car { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h11l3 4h3l1 2v5h-2a2 2 0 0 1-4 0H9a2 2 0 0 1-4 0H3zm2 2v3h8V8z'/%3E%3C/svg%3E"); }
.hdr-add { margin-left: auto; background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 700; min-height: 40px; }
.urg { font-size: 12px; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 6px; }
.warn { background: #FFF6EC; color: #7A3E00; padding: 10px 16px; border-bottom: 1px solid #F6C892; font-size: 15px; }
.team div { padding: 3px 0; }
.cd.done { background: #E3F1E8; color: var(--green); }
.car-ico { font-size: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.thumb { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #DDE3E9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .vid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--blue); font-weight: 700; }
.thumb .flag { position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 13px; font-weight: 800; }
.viewer { position: fixed; inset: 0; background: #0E1419; z-index: 40; display: flex; flex-direction: column; color: #fff; }
.viewer img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.vtop { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; font-weight: 700; }
.vinfo { padding: 10px 16px; font-size: 15px; } .vinfo .ok { color: #7FD39B; } .vinfo .warnc { color: #FFB27A; }
.vbar { display: flex; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.vbtn { background: #26323C; color: #fff; border: 0; border-radius: 10px; min-height: 48px; min-width: 52px; font-size: 20px; font-weight: 700; }
.vbtn.wide { flex: 1; font-size: 16px; }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 2100; background: var(--blue); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; font-weight: 700; border-bottom: 4px solid var(--orange); }
.sheet-back { position: fixed; inset: 0; background: rgba(14, 20, 25, .45); z-index: 2000; display: flex; align-items: flex-end; }   /* поверх чата, кнопки «ИИ» и карты */
.sheet { background: #fff; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet h3 { margin: 0 0 12px; font-size: 19px; color: var(--blue); }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.sheet-actions .btn { flex: 1; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.fld { display: block; margin-bottom: 12px; }
.fld span, .fld-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea, .sheet textarea, .sec input[type=text] { width: 100%; font: inherit; padding: 12px; border: 1px solid #C9D2DC; border-radius: 10px; background: #fff; min-height: 48px; color: var(--text); }
.checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 40vh; overflow-y: auto; }
.chk { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); min-height: 48px; }
.chk input { width: 22px; height: 22px; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; min-height: 52px; }
.toggle input { position: absolute; opacity: 0; right: 0; width: 52px; height: 32px; margin: 0; }
.toggle i { width: 52px; height: 32px; border-radius: 16px; background: #C9D2DC; position: relative; transition: .2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { left: 23px; }
.remark { padding: 10px 0; border-bottom: 1px solid var(--line); }
.remark.open b { color: var(--red); }
.news { padding-left: 20px; line-height: 1.5; } .news li { margin-bottom: 8px; }
.ghost-red { width: 100%; margin-top: 8px; min-height: 48px; border: 2px solid var(--red) !important; background: #fff !important; color: var(--red) !important; border-radius: 12px; font-weight: 700; }
.sec .btns + .note, .sec > .btn { margin-top: 10px; }
.sec > .btn { width: 100%; }

/* ---- 0.3 чеки ---- */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.mail .note { width: 100%; }
.mail b { font-size: 18px; color: var(--blue); flex: 1; word-break: break-all; }
.btn.small { min-height: 40px; font-size: 15px; padding: 0 12px; }
.note.pad { padding: 8px 16px; margin: 0; background: var(--card); }
.rc-ico { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--sky); }
.rc-sum { margin-left: auto; font-weight: 800; font-size: 18px; }
.row.rc { min-height: 92px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cat { min-height: 52px; border: 2px solid var(--line); background: #fff; border-radius: 10px; font-size: 16px; text-align: left; padding: 0 12px; }
.cat.on { border-color: var(--orange); background: #FFF3E6; font-weight: 700; }
.ok-box { background: #E3F1E8; color: var(--green); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-weight: 700; }
.rc-photo { width: 100%; max-height: 50vh; object-fit: contain; background: #F5F7F9; border-radius: 8px; margin-bottom: 8px; }
.link.center { display: block; width: 100%; text-align: center; padding: 12px 0 0; }
.action button.link { background: none; color: var(--blue); min-height: 40px; font-size: 16px; }

/* ---- 0.4 СМР ---- */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.vbtn.light { background: var(--sky); color: var(--blue); min-height: 40px; min-width: 44px; }
.info { background: var(--sky); color: var(--blue); padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.warn.wide { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #F6C892; font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 12px; background: var(--card); }
.day { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; min-height: 64px; }
.day b { font-size: 20px; color: var(--blue); } .day small { font-size: 11px; color: var(--muted); }
.day.on { background: var(--blue); border-color: var(--blue); } .day.on b, .day.on small { color: #fff; }
.day.empty b { color: #A9B4BF; }
.days.seven { grid-template-columns: repeat(7, 1fr); }
.assign { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.assign:last-child { border-bottom: 0; }
.row.smr { min-height: 96px; border-left: 5px solid #C9D2DC; }
.row.smr.b-green { border-left-color: var(--green); } .row.smr.b-red { border-left-color: var(--red); } .row.smr.b-orange { border-left-color: var(--orange); }
.chg { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tag { flex: none; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 8px; }
.tag.t-новая { background: #E3F1E8; color: var(--green); } .tag.t-изменена { background: #FFF0DC; color: #9A4B00; } .tag.t-убрана { background: #FBE3E1; color: var(--red); }
.warn-box { background: #FFF6EC; border: 1px solid #F6C892; border-radius: 10px; padding: 12px; color: #7A3E00; }
.warn-box div { margin-top: 6px; font-size: 14px; }
.action.two { display: flex; gap: 10px; flex-wrap: wrap; }
.action.two > * { flex: 1; min-height: 56px; }
.action.two .btn.light { background: #fff; color: var(--blue); }
.note.center { text-align: center; }
.hdr-btns { margin-left: auto; display: flex; gap: 6px; } .hdr-btns .hdr-add { margin-left: 0; }
.secrow { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; min-height: 48px; }
.secrow span { font-weight: 700; } .secrow small { grid-column: 1; color: var(--muted); font-size: 12px; } .secrow b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--blue); }
.secrow.on span { color: var(--orange); }
.secpane { padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.secpane .grid > .note { grid-column: 1 / -1; }
.link.att { display: block; text-align: left; padding: 8px 0; color: var(--blue); background: none; border: 0; }
.cd.base { background: var(--green); color: #fff; }   /* машина на базе */
.assign .who { font-weight: 700; color: var(--blue); }
.hdr-add { white-space: nowrap; }
/* ---- карта объектов ---- */
.ico-map { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.mapwrap { position: relative; }
.maptools { padding: 8px 12px 0; background: var(--card); position: relative; z-index: 500; }
.maptools input[type=search] { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.mapres { position: absolute; left: 12px; right: 12px; top: 54px; max-height: 50vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.mres { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); border-left: 5px solid #1E88E5; padding: 8px 10px; }
.mres small { color: var(--muted); font-size: 12px; }
.mapres .note { padding: 8px 10px; }
.map { height: 60vh; min-height: 280px; width: 100%; }
.maptools .chips { flex-wrap: nowrap; overflow-x: auto; }
.mpop { min-width: 200px; } .mpop .btns { margin-top: 8px; } .mpop .btn { min-height: 36px; padding: 0 10px; font-size: 14px; }
/* ---- 0.7 почта и ИИ ---- */
.tabs button { font-size: 11px; }
.ico-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3zm2 2v.5l7 5 7-5V7l-7 5z'/%3E%3C/svg%3E"); }
.row.mail .top .code { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.mail.unseen .work, .row.mail.unseen .code { font-weight: 800; color: var(--blue); }
.row.mail .work { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailsearch { padding: 0 12px 8px; background: var(--card); }
.mailsearch input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.pager { display: flex; gap: 8px; justify-content: space-between; padding: 10px 12px; }
.ai-fab { position: fixed; right: 14px; bottom: 76px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.chat { padding: 12px 12px 140px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.wait { color: var(--muted); font-style: italic; }
.chatin { position: fixed; left: 0; right: 0; bottom: 62px; display: flex; gap: 8px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line); z-index: 800; }
.chatin textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; resize: none; }
.chatin button { min-width: 96px; }
.chatin .mic { min-width: 48px; width: 48px; font-size: 22px; background: var(--orange); color: #fff; border: 0; border-radius: 10px; }
.chatin .mic.on { background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.chatin button:last-child { min-width: 48px; font-size: 20px; }
.bubble .say { display: block; margin-top: 6px; border: 0; background: none; font-size: 18px; padding: 0; cursor: pointer; }
.bubble.act { border: 2px solid var(--orange); max-width: 95%; }
.bubble.act .kv { padding: 6px 0; }

/* подсказки адресов в письме (0.8.0) */
.addr-wrap { position: relative; }
.addr-wrap input { width: 100%; }
.addr-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); max-height: 260px; overflow-y: auto; }
.addr-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: none;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font: inherit; color: var(--text); }
.addr-item small { color: var(--muted); }

/* цвета карточек по статусу (0.8.1): выполнено - зелёный, в работе - жёлтый, просрочено - красный */
:root { --yellow: #E8B400; }
.row.tint { border-left: 6px solid #C9D2DC; }
.row.tint.s-done { border-left-color: var(--green); background: #EEF7F1; }
.row.tint.s-work { border-left-color: var(--yellow); background: #FFF8DE; }
.row.tint.s-over { border-left-color: var(--red); background: #FCEDEC; }
.st-chips { padding-top: 0; }
.st-chips .stf-over.on { background: var(--red); border-color: var(--red); color: #fff; }
.st-chips .stf-work.on { background: var(--yellow); border-color: var(--yellow); color: #3A2E00; }
.st-chips .stf-done.on { background: var(--green); border-color: var(--green); color: #fff; }

/* значки операторов: логотип + фирменный цвет (0.8.2) */
.op.opb { display: inline-flex; align-items: center; gap: 4px; border-color: var(--opc); background: var(--opc); color: var(--opi);
  padding: 1px 7px 1px 3px; border-radius: 10px; }
.op.opb img { width: 16px; height: 16px; background: #fff; border-radius: 50%; padding: 1px; object-fit: contain; }
.hdr p .op { margin-right: 2px; vertical-align: 1px; }
.hdr p .op.on-dark:not(.opb) { color: #fff; border-color: rgba(255,255,255,.6); }
.chips button.opchip { display: inline-flex; align-items: center; gap: 6px; border-color: var(--opc); }
.chips button.opchip.on { background: var(--opc); border-color: var(--opc); color: var(--opi); }
.chips button.opchip .chip-ico { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 1px; object-fit: contain; }
.mpop-top { display: flex; align-items: center; gap: 8px; }
.mres small .op { margin-right: 4px; }

/* права сотрудников и журнал проблем (0.9.0) */
.rights-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rights-row:last-child { border-bottom: 0; }
.rights-name { margin-bottom: 6px; }
.rights-name span { font-weight: 400; }
.rights-checks { display: flex; flex-direction: column; gap: 2px; }
.toggle.sm { min-height: 40px; padding: 6px 0; }
.toggle.sm span { font-size: 14px; }
.toggle.sm i { width: 44px; height: 26px; }
.toggle.sm i::after { width: 20px; height: 20px; }
.toggle.sm input:checked + i::after { left: 21px; }
.toggle.sm input { width: 44px; }
.toggle.sm input:disabled + i { opacity: .45; }
.row.prob { border-left: 6px solid var(--line); cursor: pointer; }
.row.prob .meta { justify-content: flex-start; }
.row.prob .body { flex: 1; }

/* комментарии к заявке и работе СМР (0.9.1) */
.cmbox { display: flex; flex-direction: column; gap: 8px; }
.cm { border-left: 3px solid var(--blue); background: var(--card); border-radius: 8px; padding: 8px 10px; }
.cm-mail { border-left-color: var(--orange); }
.cm-head { margin-bottom: 2px; }
.cm-text { white-space: pre-wrap; font-size: 15px; }
