:root {
  --bg: #f4f2ec; --card: #ffffff; --ink: #1b2420; --muted: #6b756f; --line: #e7e3d8; --soft: #efece3;
  --brand: #1f7a4d; --brand-2: #17613c; --brand-ink: #ffffff; --brand-soft: #e3f1e9;
  --amber: #e9a31b; --amber-soft: #fbf0d3; --red: #d64545; --red-soft: #fbe5e3; --blue: #2f6fdb; --blue-soft: #e3ecfb; --gray-soft: #ecebe6;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 14px rgba(20, 30, 25, .06);
  --r: 16px; --tab-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e1411; --card: #17201b; --ink: #edf2ee; --muted: #93a39a; --line: #25312a; --soft: #1e2923; --brand: #34b277; --brand-2: #2a9663; --brand-ink: #06130c; --brand-soft: #173326; --amber: #f0b43b; --amber-soft: #3a2f12; --red: #ee6b66; --red-soft: #3a1c1a; --blue: #6ea0f5; --blue-soft: #1a2740; --gray-soft: #222b26; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --bg: #0e1411; --card: #17201b; --ink: #edf2ee; --muted: #93a39a; --line: #25312a; --soft: #1e2923; --brand: #34b277; --brand-2: #2a9663; --brand-ink: #06130c; --brand-soft: #173326; --amber: #f0b43b; --amber-soft: #3a2f12; --red: #ee6b66; --red-soft: #3a1c1a; --blue: #6ea0f5; --blue-soft: #1a2740; --gray-soft: #222b26; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--bg); }
#top { padding: calc(var(--sat) + 10px) 16px 8px; display: flex; align-items: center; gap: 10px; min-height: 52px; }
#top h1 { font-size: 26px; line-height: 1.1; margin: 0; letter-spacing: -.02em; flex: 1; }
#top .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
#main { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(var(--tab-h) + var(--sab) + 24px); display: none; }
.view.on { display: block; }
#v-map.view { padding: 0; overflow: hidden; }

#tabbar { display: flex; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(var(--sab) + 4px); position: relative; z-index: 20; }
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; border-radius: 12px; }
#tabbar button.on { color: var(--brand); }
#tabbar .badge { position: absolute; top: 0; left: 55%; background: var(--red); color: #fff; border-radius: 10px; font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; text-align: center; font-weight: 700; }

/* карточки и элементы */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin: 0 0 10px; }
.h2 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 20px 4px 8px; display: flex; align-items: center; gap: 8px; }
.h2 .n { background: var(--soft); color: var(--ink); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.h2.red { color: var(--red); } .h2.amber { color: #b57d0a; } @media (prefers-color-scheme: dark) { .h2.amber { color: var(--amber); } }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 700; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .gap6 { gap: 6px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre { white-space: pre-wrap; word-break: break-word; }

.contact { display: flex; gap: 12px; align-items: center; padding: 12px; cursor: pointer; }
.contact:active { transform: scale(.992); }
.av { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; position: relative; }
.av.supplier { background: var(--brand-soft); color: var(--brand); } .av.buyer { background: var(--blue-soft); color: var(--blue); }
.av .st { position: absolute; right: -4px; bottom: -4px; background: var(--card); border-radius: 8px; font-size: 9px; letter-spacing: -1px; color: var(--amber); padding: 0 2px; line-height: 12px; box-shadow: 0 0 0 1px var(--line); }
.cname { font-weight: 700; font-size: 16px; }
.cmeta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.cnote { font-size: 13px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; flex-direction: column; gap: 8px; }
.rb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; box-shadow: 0 2px 6px rgba(31, 122, 77, .35); }
.rb.alt { background: var(--soft); color: var(--ink); box-shadow: none; }
.rb:active { transform: scale(.94); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--gray-soft); color: var(--muted); white-space: nowrap; }
.pill.g-new { background: var(--blue-soft); color: var(--blue); } .pill.g-retry { background: var(--amber-soft); color: #9a6a05; } .pill.g-active { background: var(--brand-soft); color: var(--brand); } .pill.g-lost { background: var(--red-soft); color: var(--red); }
@media (prefers-color-scheme: dark) { .pill.g-retry { color: var(--amber); } }
.pill.red { background: var(--red-soft); color: var(--red); } .pill.amber { background: var(--amber-soft); color: #9a6a05; } .pill.green { background: var(--brand-soft); color: var(--brand); } .pill.blue { background: var(--blue-soft); color: var(--blue); }
.late { color: var(--red); font-weight: 600; }

.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 2px; margin: 4px 0 10px; }
.seg button { flex: 1; padding: 8px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { padding: 8px 13px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.on.red { background: var(--red); border-color: var(--red); color: #fff; }
.chip.on.amber { background: var(--amber); border-color: var(--amber); color: #2b1d00; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 14px; font-weight: 700; background: var(--brand); color: var(--brand-ink); min-height: 48px; }
.btn:active { background: var(--brand-2); }
.btn.block { display: flex; width: 100%; } .btn.alt { background: var(--soft); color: var(--ink); } .btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.danger { background: var(--red-soft); color: var(--red); } .btn.sm { padding: 8px 12px; min-height: 36px; font-size: 14px; border-radius: 11px; }
.fab { position: absolute; right: 16px; bottom: calc(var(--tab-h) + var(--sab) + 16px); width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(31, 122, 77, .4); z-index: 5; }
.fab svg { width: 26px; height: 26px; }

.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 2px 5px; }
.in { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); outline: none; min-height: 46px; appearance: none; -webkit-appearance: none; }
.in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.in { min-height: 90px; resize: vertical; }
select.in { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.search { position: relative; margin: 2px 0 10px; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search .in { padding-left: 42px; border-radius: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.kv > div > span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .kv > div > b { font-size: 15px; }

/* сводка */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.stat { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; } .stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.red b { color: var(--red); } .stat.green b { color: var(--brand); } .stat.amber b { color: #b57d0a; }
.bar { height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--amber-soft); margin: 4px 0 10px; font-size: 14px; }
.banner.green { background: var(--brand-soft); } .banner.blue { background: var(--blue-soft); }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.empty .big { font-size: 40px; }
.menu { padding: 0; overflow: hidden; }
.menu button, .menu a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; }
.menu > :last-child { border-bottom: 0; } .menu svg.i:first-child { color: var(--brand); } .menu .go { margin-left: auto; color: var(--muted); }
.toggle { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 16px; background: var(--line); position: relative; flex: none; transition: .2s; outline: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: .2s; }
.toggle:checked { background: var(--brand); } .toggle:checked::after { left: 23px; }

/* шторки */
#sheets { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.sheet-wrap { position: fixed; inset: 0; pointer-events: auto; display: flex; align-items: flex-end; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 14, 10, .5); animation: fade .2s; }
.sheet { position: relative; width: 100%; max-width: 760px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 0 16px calc(var(--sab) + 24px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet.fresh { animation: up .26s cubic-bezier(.2, .8, .2, 1); }
.sheet.full { height: 94dvh; }
.sheet-h { position: sticky; top: 0; z-index: 3; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; }
.sheet-h::before { content: ''; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 3px; background: var(--line); }
.sheet-h h3 { margin: 6px 0 0; font-size: 19px; flex: 1; min-width: 0; letter-spacing: -.01em; }
.sheet-h .x { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; margin-top: 6px; flex: none; }
.sticky-b { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 24%); padding: 20px 0 4px; z-index: 2; }
.sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 2px 8px; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.qa button, .qa a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.qa .main { background: var(--brand); color: var(--brand-ink); }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; }
.tl > div { position: relative; padding: 0 0 12px; font-size: 14px; } .tl > div::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--bg); }

@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* карта */
#map { position: absolute; inset: 0; z-index: 1; }
.map-top { position: absolute; z-index: 400; top: calc(var(--sat) + 8px); left: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.map-chips .chip { box-shadow: var(--shadow); border-color: transparent; }
.map-card { position: absolute; z-index: 400; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--sab) + 10px); background: var(--card); border-radius: 18px; padding: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.map-radius { background: var(--card); border-radius: 14px; padding: 8px 14px; box-shadow: var(--shadow); font-size: 13px; }
.map-radius input { width: 100%; accent-color: var(--brand); }
.leaflet-container { font-family: inherit; background: #d8e2dc; }
.legend { display: flex; gap: 12px; font-size: 12px; font-weight: 600; background: var(--card); padding: 6px 12px; border-radius: 12px; box-shadow: var(--shadow); width: fit-content; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

/* подбор */
.pair { display: flex; gap: 12px; align-items: center; }
.margin { text-align: right; flex: none; } .margin b { font-size: 18px; display: block; letter-spacing: -.02em; } .margin.pos b { color: var(--brand); } .margin.neg b { color: var(--red); }
.kanban { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; }
.kcol { flex: 0 0 82%; max-width: 330px; scroll-snap-align: start; background: var(--soft); border-radius: 16px; padding: 10px; }
.kcol > .kh { font-weight: 800; font-size: 14px; padding: 2px 4px 8px; display: flex; justify-content: space-between; }
.kcol .card { margin-bottom: 8px; padding: 12px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; margin: 6px 0; background: var(--card); box-shadow: var(--shadow); width: fit-content; word-break: break-word; }
.msg.me { margin-left: auto; background: var(--brand); color: var(--brand-ink); }
.msg .who { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.msg .ref { display: inline-block; background: rgba(0, 0, 0, .1); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--sab) + 24px); transform: translate(-50%, 20px); background: #1b2420; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.hide { display: none !important; }
@media (min-width: 761px) { body { background: #dfdcd2; } #app { box-shadow: 0 0 40px rgba(0, 0, 0, .15); } }

/* вход и синхронизация */
.auth { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.auth-box { width: 100%; max-width: 380px; text-align: center; }
.auth-box h2 { margin: 12px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.auth-box .field { text-align: left; }
.syncdot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.syncdot.ok { background: var(--brand); } .syncdot.sync { background: var(--amber); } .syncdot.err { background: var(--red); } .syncdot.offline { background: var(--muted); }

/* чат отдельной вкладкой */
.chatwrap { height: calc(94dvh - 20px); display: flex; flex-direction: column; }
#v-chat.view { padding-bottom: 8px; overflow: hidden; }
#v-chat .chatwrap { height: 100%; }
#tabbar button { font-size: 10.5px; }
#tabbar .badge { left: 52%; }

/* плашки и панели Netlify (видны только тем, кто вошёл в Netlify на этом устройстве) не должны закрывать приложение */
[id*="netlify" i], [class*="netlify" i], iframe[src*="netlify.com" i], netlify-drawer { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* компьютер: меню слева, окна по центру */
@media (min-width: 900px) {
  :root { --tab-h: 0px; }
  #app { max-width: 1180px; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; }
  #tabbar { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 16px 6px; border-top: 0; border-right: 1px solid var(--line); }
  #tabbar button { flex: none; padding: 12px 0; }
  #top { grid-column: 2; grid-row: 1; padding-top: 18px; }
  #main { grid-column: 2; grid-row: 2; min-height: 0; }
  .view { padding-left: max(24px, calc((100% - 780px) / 2)); padding-right: max(24px, calc((100% - 780px) / 2)); padding-bottom: 40px; }
  #v-map.view { padding: 0; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; max-height: 88vh; max-width: 600px; }
  .chatwrap { height: 80vh; }
}

/* плашка «Powered by Netlify» (бесплатный тариф): оставляем под приложением свободную полосу, чтобы она ничего не закрывала */
body.nlbadge #app { bottom: 64px; }
body.nlbadge .sheet-wrap { bottom: 64px; }
body.nlbadge .backdrop { bottom: 0; }
body.nlbadge #toast { bottom: calc(var(--tab-h) + var(--sab) + 88px); }

.note-f{position:relative}
.mic-btn{position:absolute;right:0;top:-6px;width:40px;height:40px;border-radius:50%;border:0;background:#e5394b;color:#fff;display:grid;place-items:center;box-shadow:0 2px 8px rgba(229,57,75,.4);cursor:pointer}
.mic-btn svg{width:20px;height:20px;stroke:#fff}
.mic-btn.rec{animation:micp 1s infinite}
@keyframes micp{0%{box-shadow:0 0 0 0 rgba(229,57,75,.7)}100%{box-shadow:0 0 0 14px rgba(229,57,75,0)}}

/* компактный список: контакт занимает одну-две строки */
.card.contact.cmp { padding: 7px 10px; margin: 0 0 5px; gap: 10px; border-radius: 12px; }
.cmp .av { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.cmp .av .st { display: none; }
.cmp .cname { font-size: 15px; line-height: 1.2; }
.cmp .cmeta { font-size: 12px; margin-top: 1px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.cmp .cmeta .pill { padding: 0 6px; font-size: 11px; flex: none; }
.cmp .acts { flex-direction: row; gap: 6px; }
.cmp .acts .rb { width: 34px; height: 34px; }
.cmp .acts .rb svg.i { width: 18px; height: 18px; }
.cmp .cst { color: var(--amber); font-size: 11px; letter-spacing: -1px; flex: none; }

body.notop #top .rb { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer.on { pointer-events: auto; }
.dr-back { position: absolute; inset: 0; background: rgba(8, 14, 10, .5); opacity: 0; transition: opacity .2s; }
.drawer.on .dr-back { opacity: 1; }
.dr-panel { touch-action: pan-y; position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 82vw); background: var(--card); box-shadow: var(--shadow); transform: translateX(-100%); transition: transform .2s; padding: calc(var(--sat) + 14px) 10px 20px; overflow-y: auto; }
.drawer.on .dr-panel { transform: none; }
.dr-head { display: flex; flex-direction: column; padding: 4px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 18px; }
.dr-panel > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 10px; border-radius: 12px; font-weight: 600; text-align: left; }
.dr-panel > button:active { background: var(--soft); }

/* ===== v1.20: новый вид ===== */
:root { --bg: #f2f4f1; --line: #e3e8e3; --soft: #eaefea; --r: 20px; --tab-h: 86px; --brand: #14855a; --brand-2: #0f6d4a; --brand-soft: #def2e8; --shadow: 0 1px 2px rgba(15, 40, 28, .05), 0 8px 24px rgba(15, 40, 28, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b110e; --card: #141c17; --line: #212c25; --soft: #1b251f; --brand: #38b985; --brand-2: #2da572; --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4); } }
:root[data-theme="dark"] { --bg: #0b110e; --card: #141c17; --line: #212c25; --soft: #1b251f; --brand: #38b985; --brand-2: #2da572; --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4); }
body { background: var(--bg); }
.card { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn, .rb { background-image: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.btn.alt, .rb.alt, .btn.danger, .btn.ghost { background-image: none; }
.btn { border-radius: 16px; letter-spacing: .01em; }
.rb { box-shadow: 0 4px 12px rgba(20, 133, 90, .35); }
.chip { border-radius: 22px; }
.chip.on { background-image: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.seg { border-radius: 14px; } .seg button.on { border-radius: 11px; }
.stat { border: 1px solid var(--line); border-radius: 18px; }
.sheet { border-radius: 26px 26px 0 0; }

#top { padding: calc(var(--sat) + 10px) 14px 8px; gap: 12px; }
#top h1 { font-size: 24px; font-weight: 800; }
.mb { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); flex: none; }
.mb:active { transform: scale(.94); }
#mapMenu { display: none; position: fixed; z-index: 30; top: calc(var(--sat) + 10px); left: 10px; }
body.onmap #mapMenu { display: grid; }
body.onmap .map-top { left: 62px; }

@media (max-width: 899px) {
  #tabbar { margin: 0 12px calc(var(--sab) + 10px); padding: 6px; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10, 30, 20, .16); background: color-mix(in srgb, var(--card) 94%, transparent); }
  #tabbar button { padding: 7px 0 6px; border-radius: 20px; transition: background .2s, color .2s; }
  #tabbar button.on { background: var(--brand-soft); color: var(--brand); }
  #tabbar button.on svg.i { stroke-width: 2.4; }
  #toast { bottom: calc(var(--tab-h) + var(--sab) + 16px); }
}

/* шторка меню */
.drawer .dr-back { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dr-panel { width: min(340px, 88vw); border-radius: 0 28px 28px 0; background: var(--bg); padding: calc(var(--sat) + 12px) 12px calc(var(--sab) + 16px); }
.dr-head { flex-direction: row; align-items: center; gap: 12px; padding: 6px 4px 14px; border-bottom: 0; margin-bottom: 4px; }
.dr-head .grow { display: flex; flex-direction: column; min-width: 0; }
.dr-head .grow b { font-size: 18px; }
.dr-av { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, #25a870, #0a4a31); flex: none; }
.dr-head .x { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.dr-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.dr-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--brand); box-shadow: var(--shadow); }
.dr-quick button span { color: var(--ink); }
.dr-panel > .card, .dr-panel > .menu { margin-bottom: 10px; }
.dr-panel .menu button, .dr-panel .menu a { padding: 13px 14px; }
.dr-panel > button.btn { width: 100%; }

/* заставка */
#splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 18%, #1d9a66 0%, #0d5a3c 48%, #062f20 100%); transition: opacity .55s ease, transform .55s ease; overflow: hidden; }
#splash::before { content: ''; position: absolute; inset: -20%; background: repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 2px, transparent 2px 34px); transform: rotate(-8deg); }
#splash.off { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-in { position: relative; text-align: center; color: #fff; }
.sp-in .logo { width: 128px; height: 128px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.35)); animation: spPop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.sp-name { margin-top: 20px; font-size: 38px; font-weight: 800; letter-spacing: .16em; padding-left: .16em; display: flex; justify-content: center; }
.sp-name span { opacity: 0; transform: translateY(10px); animation: spLet .5s ease forwards; }
.sp-tag { margin-top: 8px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.72); opacity: 0; animation: spLet .6s ease 1.05s forwards; }
.logo .pl { animation: plIn .55s cubic-bezier(.2,.9,.3,1) both; }
.logo .pl0 { animation-delay: .35s; } .logo .pl1 { animation-delay: .22s; } .logo .pl2 { animation-delay: .1s; } .logo .pl3 { animation-delay: 0s; }
@keyframes plIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes spLet { to { opacity: 1; transform: none; } }
@keyframes spPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* экран входа */
.auth { background: radial-gradient(130% 60% at 50% 0%, #178a5d 0%, var(--bg) 62%); }
.hero { margin-bottom: 18px; }
.hero .logo { width: 92px; height: 92px; filter: drop-shadow(0 10px 22px rgba(10,60,40,.35)); }
.hero .logo .pl { animation: none; }
.hero .brand { margin-top: 12px; font-size: 30px; font-weight: 800; letter-spacing: .14em; padding-left: .14em; color: var(--ink); }
.hero .tag { margin-top: 4px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.auth-box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 22px; box-shadow: 0 20px 50px rgba(8, 40, 28, .18); }
@media (min-width: 900px) { #tabbar { margin: 0; } }

/* ===== v1.21: стиль «как у Яндекса» — светлый фон, чёрный текст, жёлтый акцент ===== */
:root { --bg: #f5f5f5; --card: #ffffff; --line: #ececec; --soft: #f0f0f0; --ink: #1a1a1a; --muted: #858585; --accent: #ffdb4d; --accent-2: #f5c800; --accent-ink: #1a1a1a; --brand-ink: #ffffff; --r: 20px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121212; --card: #1e1e1e; --line: #2b2b2b; --soft: #262626; --ink: #f2f2f2; --muted: #9b9b9b; --brand-ink: #06130c; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.35); } }
:root[data-theme="dark"] { --bg: #121212; --card: #1e1e1e; --line: #2b2b2b; --soft: #262626; --ink: #f2f2f2; --muted: #9b9b9b; --brand-ink: #06130c; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.35); }
.btn, .rb, .chip.on { background: var(--accent); background-image: none; color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }
.btn:active, .rb:active { background: var(--accent-2); }
.btn.alt, .rb.alt { background: var(--soft); color: var(--ink); border-color: transparent; }
.btn.danger { background: var(--red-soft); color: var(--red); } .btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn { font-weight: 700; border-radius: 16px; }
.fab, .qa .main { background: var(--accent); color: var(--accent-ink); }
.msg.me { background: var(--accent); color: var(--accent-ink); }
.in:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.toggle:checked { background: var(--ink); }
.bar > i { background: var(--ink); }
@media (max-width: 899px) { #tabbar button.on { background: var(--accent); color: var(--accent-ink); } #tabbar button.on svg.i { stroke-width: 2.2; } #tabbar { box-shadow: 0 8px 28px rgba(0,0,0,.14); } }
@media (min-width: 900px) { #tabbar button.on { background: var(--accent); color: var(--accent-ink); } }
.stat.green b { color: var(--ink); }
.dr-quick button { color: var(--ink); } .dr-quick button svg { color: var(--ink); }
.dr-av { background: var(--accent); color: var(--accent-ink); position: relative; overflow: visible; border: 0; }
.dr-av img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; }
.dr-av i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-style: normal; }
.dr-av i svg { width: 11px; height: 11px; }

/* меню: плитки и секции */
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.mc { text-align: left; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 124px; }
.mc small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.mc b { font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.mc span { font-size: 12px; opacity: .75; margin-top: auto; line-height: 1.35; }
.mc.g { background: #1a1a1a; color: #fff; } .mc.a { background: var(--accent); color: #1a1a1a; }
.dr-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 16px 6px 8px; }
.menu button em { font-style: normal; background: var(--soft); border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: auto; }
.menu button em + .go { margin-left: 8px; }
.menu svg.i:first-child { color: var(--ink); }
.syncrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 10px; }

/* аватарки, вложения */
.ava { width: 40px; height: 40px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; object-fit: cover; flex: none; }
.ava.sm { width: 18px; height: 18px; border-radius: 6px; font-size: 10px; vertical-align: -4px; margin-right: 5px; } .ava.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.msg .att { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin: 4px 0; cursor: zoom-in; }
.attf { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.07); border-radius: 12px; padding: 8px 10px; margin: 4px 0; color: inherit; text-decoration: none; }
.attf span { display: flex; flex-direction: column; min-width: 0; } .attf b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .attf i { font-style: normal; font-size: 11px; opacity: .7; }
.imgv { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.imgv img { max-width: 100%; max-height: 82vh; border-radius: 10px; } .imgv a { color: #fff; font-weight: 700; padding: 10px 18px; background: rgba(255,255,255,.15); border-radius: 14px; text-decoration: none; }

/* калькулятор */
.calc-hero { background: #1a1a1a; color: #fff; border-radius: 22px; padding: 16px; text-align: center; }
.calc-hero .kmv { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--accent); margin: 4px 0; } .calc-hero .kmv span { font-size: 20px; color: #fff; }

/* ===== v1.21.1: лес и пиломатериалы ===== */
#splash .forest { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; pointer-events: none; }
#splash .forest .fb { animation: fUp 1.1s ease .1s both; } #splash .forest .ff { animation: fUp 1.1s ease .3s both; }
@keyframes fUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.sp-tag { max-width: 280px; margin-left: auto; margin-right: auto; line-height: 1.5; letter-spacing: .22em; font-size: 11px; }
.logo .tr { transform-box: fill-box; transform-origin: 50% 100%; animation: trIn .6s cubic-bezier(.2,.9,.3,1.2) both; }
.logo .tr0 { animation-delay: .5s; } .logo .tr1 { animation-delay: .38s; } .logo .tr2 { animation-delay: .26s; }
@keyframes trIn { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
.hero .logo .tr { animation: none; }
.auth .forest { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; pointer-events: none; opacity: .95; }
.auth-box { position: relative; z-index: 1; }
.hero .tag { max-width: 260px; margin: 4px auto 0; line-height: 1.5; letter-spacing: .2em; font-size: 10.5px; }

/* ===== плитки меню ===== */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); min-height: 112px; }
.tile:active { transform: scale(.97); }
.tile b { font-size: 15px; line-height: 1.2; margin-top: 8px; } .tile small { font-size: 12px; color: var(--muted); }
.ti { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-style: normal; }
.ti.amber { background: #fff1c2; color: #8a5a00; } .ti.green { background: #dcf3e6; color: #11663f; } .ti.blue { background: #dfeafd; color: #2457b8; }
.ti.violet { background: #eadffc; color: #5b34b0; } .ti.rose { background: #fde0e0; color: #b53434; } .ti.teal { background: #d8f1f1; color: #176a6a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ti { background: #2a2a2a; color: #ffdb4d; } }
:root[data-theme="dark"] .ti { background: #2a2a2a; color: #ffdb4d; }
.menu svg.i:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.menu button, .menu a { gap: 12px; }
.dr-panel .card.menu { border-radius: 20px; }
.dr-quick button svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }

/* ===== таблицы в меню ===== */
.wbtn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.wbtn:active { transform: scale(.98); }
.wbtn b { display: block; font-size: 15px; } .wbtn small { color: var(--muted); font-size: 12px; } .wbtn .go { color: var(--muted); }
.ti.gs { background: #1e8e3e; color: #fff; } .ti.gs2 { background: #1a73e8; color: #fff; }
.wbtn .ti { width: 44px; height: 44px; flex: none; } .wbtn .ti svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ti.gs { background: #1e8e3e; color: #fff; } :root:not([data-theme="light"]) .ti.gs2 { background: #1a73e8; color: #fff; } }
:root[data-theme="dark"] .ti.gs { background: #1e8e3e; color: #fff; } :root[data-theme="dark"] .ti.gs2 { background: #1a73e8; color: #fff; }

.mic-btn.chatmic { position: static; width: 42px; height: 42px; background: var(--soft); box-shadow: none; color: var(--ink); flex: none; }
.chatmic svg { width: 22px; height: 22px; stroke: currentColor; }
.mic-btn.chatmic.rec { background: #e5394b; color: #fff; }

.msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.msg .att, .msg .attf { -webkit-user-drag: none; }

/* ===== цвет приложения и «живость» ===== */
:root[data-accent="blue"] { --accent: #2787f5; --accent-2: #1d73d8; --accent-ink: #ffffff; }
:root[data-accent="green"] { --accent: #1f9d63; --accent-2: #178452; --accent-ink: #ffffff; }
.seg .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot.yellow { background: #ffdb4d; } .dot.blue { background: #2787f5; } .dot.green { background: #1f9d63; }
.mc.a { color: var(--accent-ink); }
.dr-av, .ava { color: var(--accent-ink); }
.chip.on { background: var(--ink); color: var(--bg); }
button:active { opacity: .85; }
.view.on { animation: vIn .18s ease; }
@keyframes vIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card.contact { transition: transform .12s ease, box-shadow .12s ease; }
.card.contact:active { transform: scale(.985); }
#tabbar button { transition: background .2s, color .2s, transform .12s; } #tabbar button:active { transform: scale(.92); }

/* ===== v1.23.2: как в Telegram ===== */
:root { --accent: #3390ec; --accent-2: #2b7fd4; --accent-ink: #ffffff; }
:root[data-accent="blue"] { --accent: #3390ec; --accent-2: #2b7fd4; --accent-ink: #ffffff; }
:root[data-accent="yellow"] { --accent: #ffdb4d; --accent-2: #f5c800; --accent-ink: #1a1a1a; }
:root[data-accent="green"] { --accent: #1f9d63; --accent-2: #178452; --accent-ink: #ffffff; }
.dot.blue { background: #3390ec; }
/* нижняя панель: активная вкладка подсвечена цветом, без плашки */
@media (max-width: 899px) { #tabbar button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); } }
@media (min-width: 900px) { #tabbar button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); } }
#tabbar button.on { color: var(--accent); }
/* шапка бокового меню: цветная, как в Telegram */
.dr-panel { padding-top: 0; }
.dr-head { margin: 0 -12px 12px; padding: calc(var(--sat) + 18px) 16px 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); align-items: center; border-radius: 0 28px 0 0; }
.dr-head .grow b { font-size: 19px; } .dr-head .small, .dr-head .muted { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.dr-head .x { background: rgba(255,255,255,.22); color: var(--accent-ink); }
.dr-av { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.25); color: var(--accent-ink); font-size: 24px; }
.dr-av img { border-radius: 50%; }
.dr-av i { background: #fff; color: var(--accent); }
.dr-quick button svg { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.mc.a { background: var(--accent); color: var(--accent-ink); } .mc.g { background: #17212b; color: #fff; }
.ti { background: color-mix(in srgb, var(--accent) 14%, transparent) !important; color: var(--accent) !important; }
.ti.gs { background: #1e8e3e !important; color: #fff !important; } .ti.gs2 { background: #3390ec !important; color: #fff !important; }
.menu svg.i:first-child { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
/* чат: пузыри как в Telegram */
#v-chat.view { background: linear-gradient(180deg, #d6e4f0, #e6efdc); }
.msg { box-shadow: 0 1px 1px rgba(0,0,0,.08); border-radius: 18px 18px 18px 6px; background: #fff; color: #111; }
.msg.me { background: #eeffde; color: #0b1a07; border-radius: 18px 18px 6px 18px; margin-left: auto; }
.msg .who { color: var(--accent); opacity: 1; } .msg.me .who { color: #3f8f2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #v-chat.view { background: #0e1621; } :root:not([data-theme="light"]) .msg { background: #182533; color: #fff; } :root:not([data-theme="light"]) .msg.me { background: #2b5278; color: #fff; } :root:not([data-theme="light"]) .msg.me .who { color: #8cc4ff; } }
:root[data-theme="dark"] #v-chat.view { background: #0e1621; } :root[data-theme="dark"] .msg { background: #182533; color: #fff; } :root[data-theme="dark"] .msg.me { background: #2b5278; color: #fff; } :root[data-theme="dark"] .msg.me .who { color: #8cc4ff; }
.chatwrap .in { border-radius: 22px; }

/* ===== инструменты ===== */
.tiles.t3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.t3 .tile { min-height: 100px; padding: 12px 10px; } .tiles.t3 .tile b { font-size: 13px; margin-top: 6px; } .tiles.t3 .tile small { font-size: 11px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ===== доска рейсов ===== */
.dots { display: inline-flex; gap: 4px; align-items: center; } .dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); display: block; } .dots i.on { background: var(--accent); }

/* ===== чат: строка ввода ===== */
.chatbar { padding-top: 8px; gap: 8px; align-items: flex-end; }
.chatbar #chatIn { font-size: 16px; min-height: 46px; padding: 10px 16px; border-radius: 24px; background: var(--card); }
.chatbar .rb { width: 46px; height: 46px; flex: none; }
.chatbar .mic-btn.chatmic { width: 46px; height: 46px; }
.plusm { position: fixed; left: 12px; bottom: calc(var(--sab) + 84px); z-index: 120; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 6px; min-width: 220px; }
.plusm button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border-radius: 12px; font-weight: 600; text-align: left; }
.plusm button:active { background: var(--soft); } .plusm svg { color: var(--accent); }

/* ===== v1.26: фон чата ===== */
:root {
  --cw-forest-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20transform%3D%22translate%2820%2026%29%20rotate%28-8%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2878%2020%29%20rotate%2810%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2850%2068%29%20rotate%284%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-15.400000000000002%20L9.9%20-3.0800000000000005%20H-9.9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-8.470000000000002%20L12.870000000000001%206.9300000000000015%20H-12.870000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.9300000000000015%20V12.320000000000002%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28102%2078%29%20rotate%28-6%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12.6%20L8.1%20-2.52%20H-8.1%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.930000000000001%20L10.53%205.67%20H-10.53%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.67%20V10.08%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2814%20102%29%20rotate%288%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2872%20108%29%20rotate%28-3%29%22%20fill%3D%22none%22%20stroke%3D%22%231f7a4d%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%2222%22%20r%3D%221.6%22%20fill%3D%22%231f7a4d%22%20fill-opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2244%22%20r%3D%221.6%22%20fill%3D%22%231f7a4d%22%20fill-opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2270%22%20r%3D%221.6%22%20fill%3D%22%231f7a4d%22%20fill-opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2296%22%20r%3D%221.6%22%20fill%3D%22%231f7a4d%22%20fill-opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%2254%22%20cy%3D%22100%22%20r%3D%221.6%22%20fill%3D%22%231f7a4d%22%20fill-opacity%3D%220.22%22%2F%3E%3C%2Fsvg%3E"); --cw-forest-base: linear-gradient(180deg,#d9ebe0,#e9f1de);
  --cw-wood-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M0%2018%20C25%208%2050%2028%2080%2016%20S110%2012%20120%2016%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2046%20C20%2038%2052%2056%2084%2044%20S112%2040%20120%2044%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2076%20C28%2066%2048%2086%2078%2074%20S108%2070%20120%2074%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%20104%20C22%2096%2056%20114%2086%20102%20S112%2098%20120%20102%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23a8691a%22%20fill-opacity%3D%220.22%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23a8691a%22%20fill-opacity%3D%220.22%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23a8691a%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23a8691a%22%20fill-opacity%3D%220.22%22%2F%3E%3C%2Fsvg%3E"); --cw-wood-base: linear-gradient(180deg,#f3e6d0,#ead7b8);
  --cw-sky-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M22%2018%20L23.8%2022.2%20L28%2024%20L23.8%2025.8%20L22%2030%20L20.2%2025.8%20L16%2024%20L20.2%2022.2%20Z%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.55%22%2F%3E%3Cpath%20d%3D%22M84%2012%20L85.2%2014.8%20L88%2016%20L85.2%2017.2%20L84%2020%20L82.8%2017.2%20L80%2016%20L82.8%2014.8%20Z%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.55%22%2F%3E%3Cpath%20d%3D%22M60%2055%20L61.5%2058.5%20L65%2060%20L61.5%2061.5%20L60%2065%20L58.5%2061.5%20L55%2060%20L58.5%2058.5%20Z%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.55%22%2F%3E%3Cpath%20d%3D%22M104%2082%20L105.8%2086.2%20L110%2088%20L105.8%2089.8%20L104%2094%20L102.2%2089.8%20L98%2088%20L102.2%2086.2%20Z%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.55%22%2F%3E%3Cpath%20d%3D%22M18%2090%20L19.2%2092.8%20L22%2094%20L19.2%2095.2%20L18%2098%20L16.8%2095.2%20L14%2094%20L16.8%2092.8%20Z%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.55%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2222%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%220.55%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2250%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%220.55%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2266%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%220.55%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2276%22%20cy%3D%22100%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%220.55%22%20stroke-width%3D%221.3%22%2F%3E%3C%2Fsvg%3E"); --cw-sky-base: linear-gradient(180deg,#b9d6ef,#d9e9cf);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --cw-forest-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20transform%3D%22translate%2820%2026%29%20rotate%28-8%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2878%2020%29%20rotate%2810%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2850%2068%29%20rotate%284%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-15.400000000000002%20L9.9%20-3.0800000000000005%20H-9.9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-8.470000000000002%20L12.870000000000001%206.9300000000000015%20H-12.870000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.9300000000000015%20V12.320000000000002%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28102%2078%29%20rotate%28-6%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12.6%20L8.1%20-2.52%20H-8.1%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.930000000000001%20L10.53%205.67%20H-10.53%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.67%20V10.08%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2814%20102%29%20rotate%288%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2872%20108%29%20rotate%28-3%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%2222%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2244%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2270%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2296%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2254%22%20cy%3D%22100%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3C%2Fsvg%3E"); --cw-forest-base: linear-gradient(180deg,#0e1a15,#0b1410);
  --cw-wood-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M0%2018%20C25%208%2050%2028%2080%2016%20S110%2012%20120%2016%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2046%20C20%2038%2052%2056%2084%2044%20S112%2040%20120%2044%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2076%20C28%2066%2048%2086%2078%2074%20S108%2070%20120%2074%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%20104%20C22%2096%2056%20114%2086%20102%20S112%2098%20120%20102%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3C%2Fsvg%3E"); --cw-wood-base: linear-gradient(180deg,#1d1710,#16110b);
  --cw-sky-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M22%2018%20L23.8%2022.2%20L28%2024%20L23.8%2025.8%20L22%2030%20L20.2%2025.8%20L16%2024%20L20.2%2022.2%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M84%2012%20L85.2%2014.8%20L88%2016%20L85.2%2017.2%20L84%2020%20L82.8%2017.2%20L80%2016%20L82.8%2014.8%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M60%2055%20L61.5%2058.5%20L65%2060%20L61.5%2061.5%20L60%2065%20L58.5%2061.5%20L55%2060%20L58.5%2058.5%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M104%2082%20L105.8%2086.2%20L110%2088%20L105.8%2089.8%20L104%2094%20L102.2%2089.8%20L98%2088%20L102.2%2086.2%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M18%2090%20L19.2%2092.8%20L22%2094%20L19.2%2095.2%20L18%2098%20L16.8%2095.2%20L14%2094%20L16.8%2092.8%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2222%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2250%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2266%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2276%22%20cy%3D%22100%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3C%2Fsvg%3E"); --cw-sky-base: linear-gradient(180deg,#0e1621,#0b1119);
} }
:root[data-theme="dark"] {
  --cw-forest-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20transform%3D%22translate%2820%2026%29%20rotate%28-8%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2878%2020%29%20rotate%2810%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2850%2068%29%20rotate%284%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-15.400000000000002%20L9.9%20-3.0800000000000005%20H-9.9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-8.470000000000002%20L12.870000000000001%206.9300000000000015%20H-12.870000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.9300000000000015%20V12.320000000000002%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28102%2078%29%20rotate%28-6%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12.6%20L8.1%20-2.52%20H-8.1%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.930000000000001%20L10.53%205.67%20H-10.53%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.67%20V10.08%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2814%20102%29%20rotate%288%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-11.200000000000001%20L7.2%20-2.24%20H-7.2%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-6.160000000000001%20L9.360000000000001%205.040000000000001%20H-9.360000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%205.040000000000001%20V8.96%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2872%20108%29%20rotate%28-3%29%22%20fill%3D%22none%22%20stroke%3D%22%236fd3a0%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-14%20L9%20-2.8000000000000003%20H-9%20Z%22%2F%3E%3Cpath%20d%3D%22M0%20-7.700000000000001%20L11.700000000000001%206.3%20H-11.700000000000001%20Z%22%2F%3E%3Cpath%20d%3D%22M0%206.3%20V11.200000000000001%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%2222%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2244%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2270%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2296%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3Ccircle%20cx%3D%2254%22%20cy%3D%22100%22%20r%3D%221.6%22%20fill%3D%22%236fd3a0%22%20fill-opacity%3D%220.1%22%2F%3E%3C%2Fsvg%3E"); --cw-forest-base: linear-gradient(180deg,#0e1a15,#0b1410);
  --cw-wood-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M0%2018%20C25%208%2050%2028%2080%2016%20S110%2012%20120%2016%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2046%20C20%2038%2052%2056%2084%2044%20S112%2040%20120%2044%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%2076%20C28%2066%2048%2086%2078%2074%20S108%2070%20120%2074%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M0%20104%20C22%2096%2056%20114%2086%20102%20S112%2098%20120%20102%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2232%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2292%22%20cy%3D%2260%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%227%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%23e0a45a%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.2%22%2F%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2290%22%20rx%3D%222.5%22%20ry%3D%221.4%22%20fill%3D%22%23e0a45a%22%20fill-opacity%3D%220.1%22%2F%3E%3C%2Fsvg%3E"); --cw-wood-base: linear-gradient(180deg,#1d1710,#16110b);
  --cw-sky-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cpath%20d%3D%22M22%2018%20L23.8%2022.2%20L28%2024%20L23.8%2025.8%20L22%2030%20L20.2%2025.8%20L16%2024%20L20.2%2022.2%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M84%2012%20L85.2%2014.8%20L88%2016%20L85.2%2017.2%20L84%2020%20L82.8%2017.2%20L80%2016%20L82.8%2014.8%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M60%2055%20L61.5%2058.5%20L65%2060%20L61.5%2061.5%20L60%2065%20L58.5%2061.5%20L55%2060%20L58.5%2058.5%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M104%2082%20L105.8%2086.2%20L110%2088%20L105.8%2089.8%20L104%2094%20L102.2%2089.8%20L98%2088%20L102.2%2086.2%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpath%20d%3D%22M18%2090%20L19.2%2092.8%20L22%2094%20L19.2%2095.2%20L18%2098%20L16.8%2095.2%20L14%2094%20L16.8%2092.8%20Z%22%20fill%3D%22%238cc4ff%22%20fill-opacity%3D%220.12%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2222%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2250%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2266%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3Ccircle%20cx%3D%2276%22%20cy%3D%22100%22%20r%3D%225%22%20fill%3D%22none%22%20stroke%3D%22%238cc4ff%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.3%22%2F%3E%3C%2Fsvg%3E"); --cw-sky-base: linear-gradient(180deg,#0e1621,#0b1119);
}
:root[data-chatbg="forest"] #v-chat.view, :root[data-chatbg="forest"] .sheet .chatwrap { background: var(--cw-forest-img), var(--cw-forest-base); background-size: 120px 120px, cover; }
:root[data-chatbg="wood"] #v-chat.view, :root[data-chatbg="wood"] .sheet .chatwrap { background: var(--cw-wood-img), var(--cw-wood-base); background-size: 120px 120px, cover; }
:root[data-chatbg="sky"] #v-chat.view, :root[data-chatbg="sky"] .sheet .chatwrap { background: var(--cw-sky-img), var(--cw-sky-base); background-size: 120px 120px, cover; }
:root[data-chatbg="plain"] #v-chat.view { background: var(--bg); }
.sheet .chatwrap { border-radius: 18px; padding: 0 10px 8px; }
.seg.cbg button { font-size: 13px; padding: 8px 4px; }

/* ===== OLED: чистый чёрный, экономит батарею ===== */
:root[data-oled="1"] { --bg: #000000; --card: #0c0c0e; --line: #1b1b1f; --soft: #151518; --ink: #f4f4f5; --muted: #8b8b92; --shadow: 0 0 0 1px #1b1b1f; --brand-ink: #000; --cw-forest-base: #000; --cw-wood-base: #000; --cw-sky-base: #000; }
:root[data-oled="1"] body, :root[data-oled="1"] html, :root[data-oled="1"] #app { background: #000; }
:root[data-oled="1"] .card, :root[data-oled="1"] .stat, :root[data-oled="1"] .tile, :root[data-oled="1"] .wbtn, :root[data-oled="1"] .dr-quick button, :root[data-oled="1"] .mb, :root[data-oled="1"] .chip { box-shadow: none; }
:root[data-oled="1"] #tabbar { background: rgba(0, 0, 0, .92); border-color: #1b1b1f; box-shadow: none; }
:root[data-oled="1"] .dr-panel { background: #000; }
:root[data-oled="1"] .sheet { background: #000; box-shadow: 0 -10px 40px rgba(0,0,0,.8); }
:root[data-oled="1"] .sheet-h, :root[data-oled="1"] .sticky-b { background-color: #000; }
:root[data-oled="1"] .mc.g { background: #121214; border: 1px solid #1b1b1f; }
:root[data-oled="1"] .in { background: #0c0c0e; border-color: #1b1b1f; }
:root[data-oled="1"] .msg { background: #101013; color: #f4f4f5; box-shadow: none; }
:root[data-oled="1"] .msg.me { background: #14365a; color: #fff; }
:root[data-oled="1"] #v-chat.view { background: var(--cw-forest-img), #000; background-size: 120px 120px, cover; }
:root[data-oled="1"][data-chatbg="wood"] #v-chat.view { background: var(--cw-wood-img), #000; background-size: 120px 120px, cover; }
:root[data-oled="1"][data-chatbg="sky"] #v-chat.view { background: var(--cw-sky-img), #000; background-size: 120px 120px, cover; }
:root[data-oled="1"][data-chatbg="plain"] #v-chat.view { background: #000; }
:root[data-oled="1"] .leaflet-container { background: #000; }
:root[data-oled="1"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.75); }
:root[data-oled="1"] .banner { background: #14141a; }
:root[data-oled="1"] .banner.green { background: #0f2217; } :root[data-oled="1"] .banner.blue { background: #0e1b2e; }
:root[data-oled="1"] .auth { background: radial-gradient(130% 60% at 50% 0%, #0d5a3c 0%, #000 62%); }
:root[data-oled="1"] .seg button.on { background: #1f1f24; color: #fff; }

/* ===== погода ===== */
.wxhero { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 22px; padding: 14px 16px; margin: 0 0 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow); }
.wxhero:active { transform: scale(.985); }
.wxg { font-size: 18px; font-weight: 800; letter-spacing: -.01em; } .wxs { font-size: 13px; opacity: .88; margin-top: 2px; }
.wxt { display: flex; align-items: center; gap: 6px; font-size: 30px; } .wxt b { font-size: 28px; letter-spacing: -.02em; } .wxe { font-size: 32px; line-height: 1; }
:root[data-accent="yellow"] .wxhero { color: #1a1a1a; }
.wxbig { border-radius: 22px; padding: 16px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
:root[data-accent="yellow"] .wxbig { color: #1a1a1a; }
.wxn { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; display: flex; align-items: center; justify-content: center; gap: 10px; } .wxn span { font-size: 48px; }

/* карта: чипы-кнопки */
.map-chips .chip[data-act="mapFind"] { background: #c2691b; border-color: #c2691b; color: #fff; }
.map-card a:not(.btn) { color: var(--accent); }

/* карта: подпись источника тихая, без значков */
.leaflet-control-attribution { font-size: 9px !important; opacity: .55; background: transparent !important; box-shadow: none; padding: 0 6px; }
.leaflet-control-attribution a { color: inherit; }

/* потяни-обновить и плашка сети */
#ptr { position: fixed; left: 50%; top: calc(var(--sat) + 52px); width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 20px; font-weight: 700; opacity: 0; transform: translate(-50%, 0); pointer-events: none; z-index: 40; }
#offline { position: fixed; left: 0; right: 0; top: 0; padding: calc(var(--sat) + 6px) 12px 6px; background: #b45309; color: #fff; font-size: 12px; font-weight: 700; text-align: center; z-index: 900; transform: translateY(-110%); transition: transform .25s; pointer-events: none; }
#offline.on { transform: none; }
.dr-sec { margin: 22px 6px 10px; }
.tiles { gap: 12px; margin-bottom: 6px; }
.tile { min-height: 124px; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, var(--card), rgba(127,127,127,.07)); }
.tile .ti { width: 44px; height: 44px; border-radius: 15px; }
.tile b { margin-top: 12px; font-size: 15.5px; }
.wbtn { margin-top: 10px; }
.docico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(127,127,127,.15); color: var(--muted); }

.dr-sec { display: flex; align-items: baseline; justify-content: space-between; text-transform: none; font-size: 15px; font-weight: 800; letter-spacing: 0; color: var(--ink); margin: 24px 6px 10px; }
.dr-sec em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.tiles .ti.amber { background: rgba(245,166,35,.16) !important; color: #f5a623 !important; }
.tiles .ti.green { background: rgba(46,204,113,.16) !important; color: #2ecc71 !important; }
.tiles .ti.blue { background: rgba(51,144,236,.16) !important; color: #3390ec !important; }
.tiles .ti.violet { background: rgba(155,108,240,.18) !important; color: #a77bf5 !important; }
.tiles .ti.rose { background: rgba(255,92,92,.16) !important; color: #ff6b6b !important; }
.tiles .ti.teal { background: rgba(26,188,188,.16) !important; color: #1fc2c2 !important; }
.tile { min-height: 116px; }
.tile small { line-height: 1.25; }

.dr-sec .dr-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--accent, #3390ec); background: transparent; border: 0; padding: 4px 8px; border-radius: 10px; }
.dr-sec .dr-btn svg { width: 14px; height: 14px; }
.tile { position: relative; }
.tile .bdg { position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #3390ec; }
.tile .bdg.red { background: #e5484d; } .tile .bdg.amber { background: #f5a623; color: #1a1a1a; }
.tile .star { position: absolute; top: 10px; right: 12px; font-size: 22px; color: var(--muted); }
.tile .star.on { color: #f5c518; }
.tile.pinned { outline: 2px solid rgba(245,197,24,.55); }
.btn.dc-open { background: #3390ec !important; color: #fff !important; border-color: transparent !important; }
.btn.dc-send { background: #2e9d62 !important; color: #fff !important; border-color: transparent !important; }
.btn.dc-wa { background: rgba(37,211,102,.18) !important; color: #25d366 !important; border-color: rgba(37,211,102,.45) !important; }
.btn.dc-mail { background: rgba(245,166,35,.18) !important; color: #f5a623 !important; border-color: rgba(245,166,35,.45) !important; }
.btn.dc-del { background: rgba(229,72,77,.16) !important; color: #ff6b6b !important; border-color: rgba(229,72,77,.4) !important; }
.chip.st-signed { background: rgba(46,204,113,.18) !important; color: #2ecc71 !important; border-color: rgba(46,204,113,.45) !important; }
.chip.st-sent { background: rgba(245,166,35,.18) !important; color: #f5a623 !important; border-color: rgba(245,166,35,.45) !important; }
.chip.st-draft { background: rgba(127,127,127,.16) !important; color: var(--muted) !important; }
.chip.st-closed { background: rgba(229,72,77,.16) !important; color: #ff6b6b !important; border-color: rgba(229,72,77,.4) !important; }


/* ===== v1.58: темы, цвета, шрифты, скругления, плотность, анимации, плитки выбора ===== */
:root[data-skin="graphite"] { --bg: #14171c; --card: #1d2229; --line: #2a313a; --soft: #252b33; --ink: #e9edf2; --muted: #8e99a7; --shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.35); }
:root[data-skin="midnight"] { --bg: #0a1020; --card: #121a2e; --line: #1f2a45; --soft: #18223a; --ink: #e8eefc; --muted: #8a98b8; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.4); }
:root[data-skin="forest"] { --bg: #0a1410; --card: #112019; --line: #1d3328; --soft: #16281f; --ink: #e6f2ea; --muted: #8aa597; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.4); }
:root[data-skin="sand"] { --bg: #f3eee3; --card: #fffaf0; --line: #e4dac6; --soft: #efe6d2; --ink: #2b261d; --muted: #7b705c; --shadow: 0 1px 2px rgba(60,40,10,.08), 0 6px 18px rgba(60,40,10,.08); }
:root[data-skin] body, :root[data-skin] #app { background: var(--bg); color: var(--ink); }
:root[data-accent="orange"] { --accent: #f08a24; --accent-2: #d9771a; --accent-ink: #ffffff; }
:root[data-accent="red"] { --accent: #e5484d; --accent-2: #cf3a3f; --accent-ink: #ffffff; }
:root[data-accent="pink"] { --accent: #e255a1; --accent-2: #cc4390; --accent-ink: #ffffff; }
:root[data-accent="purple"] { --accent: #8b5cf6; --accent-2: #7545e0; --accent-ink: #ffffff; }
:root[data-accent="teal"] { --accent: #14a8a0; --accent-2: #0f8f88; --accent-ink: #ffffff; }
.dot.orange { background: #f08a24; } .dot.red { background: #e5484d; } .dot.pink { background: #e255a1; } .dot.purple { background: #8b5cf6; } .dot.teal { background: #14a8a0; }
:root[data-font="humanist"] body, :root[data-font="humanist"] button, :root[data-font="humanist"] input, :root[data-font="humanist"] textarea, :root[data-font="humanist"] select { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
:root[data-font="rounded"] body, :root[data-font="rounded"] button, :root[data-font="rounded"] input, :root[data-font="rounded"] textarea, :root[data-font="rounded"] select { font-family: ui-rounded, Nunito, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; }
:root[data-font="serif"] body, :root[data-font="serif"] button, :root[data-font="serif"] input, :root[data-font="serif"] textarea, :root[data-font="serif"] select { font-family: Georgia, "Times New Roman", serif; }
:root[data-font="mono"] body, :root[data-font="mono"] button, :root[data-font="mono"] input, :root[data-font="mono"] textarea, :root[data-font="mono"] select { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:root[data-round="sharp"] .card, :root[data-round="sharp"] .stat, :root[data-round="sharp"] .tile, :root[data-round="sharp"] .wbtn, :root[data-round="sharp"] .btn, :root[data-round="sharp"] .in, :root[data-round="sharp"] .seg, :root[data-round="sharp"] .seg button, :root[data-round="sharp"] .chip, :root[data-round="sharp"] .msg, :root[data-round="sharp"] .sw, :root[data-round="sharp"] .banner { border-radius: 6px !important; }
:root[data-round="sharp"] .sheet { border-radius: 10px 10px 0 0 !important; }
:root[data-round="round"] .card, :root[data-round="round"] .stat, :root[data-round="round"] .tile, :root[data-round="round"] .wbtn, :root[data-round="round"] .banner, :root[data-round="round"] .sw { border-radius: 26px !important; }
:root[data-round="round"] .btn, :root[data-round="round"] .chip, :root[data-round="round"] .seg, :root[data-round="round"] .seg button { border-radius: 999px !important; }
:root[data-round="round"] .in { border-radius: 18px !important; }
:root[data-density="compact"] .card { padding: 9px 12px; } :root[data-density="compact"] .stat { padding: 8px 10px; } :root[data-density="compact"] .h2 { margin-top: 12px; }
:root[data-density="roomy"] .card { padding: 18px 18px; } :root[data-density="roomy"] .stat { padding: 16px 14px; } :root[data-density="roomy"] .h2 { margin-top: 26px; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
.swgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swgrid.sw3 { grid-template-columns: repeat(3, 1fr); }
.sw { border: 2px solid var(--line); border-radius: 14px; padding: 6px 6px 7px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; min-width: 0; }
.sw span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw.on { border-color: var(--accent, #3390ec); box-shadow: 0 0 0 1px var(--accent, #3390ec); }
.sw i { display: block; height: 34px; border-radius: 9px; margin-bottom: 6px; border: 1px solid rgba(128, 128, 128, .25); }
.sw i.fnt { display: grid; place-items: center; font-size: 20px; font-style: normal; background: var(--soft); }
.wbtn.lockd { opacity: .75; }

/* ===== v1.60: высокий контраст, готовые стили ===== */
:root[data-contrast="high"] { --muted: var(--ink); --line: rgba(128, 128, 128, .55); }
:root[data-contrast="high"] .card, :root[data-contrast="high"] .stat, :root[data-contrast="high"] .wbtn { border: 1px solid var(--ink); }
:root[data-contrast="high"] .muted, :root[data-contrast="high"] .tiny, :root[data-contrast="high"] .small { opacity: 1; }
.sw i.pre { position: relative; }
.sw i.pre b { position: absolute; right: 6px; bottom: 5px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); }
.chkl { padding: 5px 0; font-size: 13px; line-height: 1.35; border-top: 1px solid var(--line); }
.fh { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; line-height: 1.3; }

/* ===== v1.61: код на вход ===== */
#pinlock { position: fixed; inset: 0; z-index: 99999; background: var(--bg, #0e1411); color: var(--ink, #fff); display: grid; place-items: center; padding: 20px; }
#pinlock .pin-box { width: min(320px, 100%); text-align: center; }
#pinlock .pin-t { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
#pinlock .pin-dots { font-size: 26px; letter-spacing: 10px; margin-bottom: 18px; min-height: 34px; color: var(--accent, #3390ec); }
#pinlock .pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#pinlock .pin-pad button { height: 62px; border-radius: 18px; background: var(--card, #17201b); color: var(--ink, #fff); font-size: 24px; font-weight: 700; border: 1px solid var(--line, #25312a); }
#pinlock .pin-pad button:active { background: var(--soft, #1e2923); }
#pinlock .pin-forgot { margin-top: 18px; color: var(--muted, #93a39a); font-size: 13px; text-decoration: underline; }
#pinlock.shake .pin-box { animation: pinshake .35s; }
@keyframes pinshake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.sw.cust { position: relative; overflow: hidden; }
.sw.cust input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ===== v1.62: вид менеджера, чат ===== */
#asMgr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; transform: translateX(-50%); z-index: 99998; background: #d64545; color: #fff; border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); white-space: nowrap; }
#asMgr button { background: #fff; color: #d64545; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 12px; }
.dsep { text-align: center; margin: 10px 0 6px; } .dsep span { background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.msg .quote { border-left: 3px solid var(--accent, #3390ec); background: rgba(128,128,128,.14); padding: 4px 8px; border-radius: 8px; margin: 4px 0; font-size: 12px; opacity: .9; }
.msg.pinned { box-shadow: 0 0 0 1px var(--amber, #f0b43b); }
.rxrow { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.rxc { background: rgba(128,128,128,.18); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.rxc.me { background: var(--accent, #3390ec); color: var(--accent-ink, #fff); }
.msgact { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(128,128,128,.25); }
.rxpick { display: flex; gap: 4px; margin-bottom: 8px; } .rxpick button { font-size: 20px; padding: 3px 7px; border-radius: 10px; background: rgba(128,128,128,.18); }
.pinbar { background: var(--amber-soft, #3a2f12); color: var(--ink); border-radius: 10px; padding: 7px 10px; font-size: 12px; margin: 4px 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; } .qrow button { flex: none; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }

/* ===== v1.62.5: реквизиты под кнопкой ===== */
.reqs{margin:6px 0 12px}
.reqs>summary{cursor:pointer;list-style:none;text-align:center}
.reqs>summary::-webkit-details-marker{display:none}
.reqs>summary::after{content:' ▾'}
.reqs[open]>summary::after{content:' ▴'}
.reqs>.card{margin-top:8px}

/* ===== потребность и кнопка «Редактировать» (v1.63.0) ===== */
.edit-big { background: #1f9d57 !important; border-color: #1f9d57 !important; color: #fff !important; font-size: 17px; font-weight: 800; padding: 14px 16px; margin: 6px 0 14px; box-shadow: 0 2px 10px rgba(31,157,87,.35); }
.needs-box { padding: 12px; border: 1.5px solid #f0a04b; background: rgba(240,160,75,.08); }
.need-chip { background: #f28c28 !important; border-color: #f28c28 !important; color: #fff !important; font-weight: 700; }
.need-view b { color: #c2691b; }

/* ===== цветные кнопки быстрых действий в карточке контакта (v1.63.3) ===== */
.qa button[data-act="call"], .qa button.main { background: #1f9d57 !important; color: #fff !important; }
.qa button[data-act="result"] { background: #0f766e !important; color: #fff !important; }
.qa button[data-act="offer"] { background: #475569 !important; color: #fff !important; }
.qa button[data-act="wa"] { background: #25d366 !important; color: #fff !important; }
.qa button[data-act="tg"] { background: #229ed9 !important; color: #fff !important; }
.qa button[data-act="mx"] { background: linear-gradient(135deg, #2d8cff, #8b3dff) !important; color: #fff !important; }
.qa button[data-act="showOnMap"] { background: #e5484d !important; color: #fff !important; }
.qa button svg { color: #fff; stroke: currentColor; }
a.btn[href^="https://wa.me"] { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
a.btn[href^="https://t.me"] { background: #229ed9 !important; border-color: #229ed9 !important; color: #fff !important; }
a.btn[href^="sms:"] { background: #475569 !important; border-color: #475569 !important; color: #fff !important; }

/* --- Команда: роли и цвета --- */
:root { --tm-owner: #0e8f8f; --tm-owner-s: #d8f1f1; --tm-director: #7a4fd6; --tm-director-s: #ece6fb; --tm-buy: #14855a; --tm-buy-s: #def2e8; --tm-sell: #2f6fdb; --tm-sell-s: #e3ecfb; --tm-pending: #b87a06; --tm-pending-s: #fbf0d3; --tm-mgr: #6b756f; --tm-mgr-s: #ecebe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tm-owner: #4fd1d1; --tm-owner-s: #143333; --tm-director: #a98bf0; --tm-director-s: #2a2142; --tm-buy: #38b985; --tm-buy-s: #173326; --tm-sell: #6ea0f5; --tm-sell-s: #1a2740; --tm-pending: #f0b43b; --tm-pending-s: #3a2f12; --tm-mgr: #93a39a; --tm-mgr-s: #222b26; } }
:root[data-theme="dark"] { --tm-owner: #4fd1d1; --tm-owner-s: #143333; --tm-director: #a98bf0; --tm-director-s: #2a2142; --tm-buy: #38b985; --tm-buy-s: #173326; --tm-sell: #6ea0f5; --tm-sell-s: #1a2740; --tm-pending: #f0b43b; --tm-pending-s: #3a2f12; --tm-mgr: #93a39a; --tm-mgr-s: #222b26; }
.tm-owner { --c: var(--tm-owner); --s: var(--tm-owner-s); } .tm-director { --c: var(--tm-director); --s: var(--tm-director-s); }
.tm-buy { --c: var(--tm-buy); --s: var(--tm-buy-s); } .tm-sell { --c: var(--tm-sell); --s: var(--tm-sell-s); }
.tm-pending { --c: var(--tm-pending); --s: var(--tm-pending-s); } .tm-mgr { --c: var(--tm-mgr); --s: var(--tm-mgr-s); }
.tm-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.tm-sum span { padding: 5px 12px; border-radius: 20px; background: var(--soft); font-size: 13px; color: var(--muted); }
.tm-sum span b { color: var(--ink); } .tm-sum .tm-wait { background: var(--tm-pending-s); color: var(--tm-pending); font-weight: 600; } .tm-sum .tm-wait b { color: inherit; }
.tm-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--r, 18px); box-shadow: var(--shadow); padding: 14px; margin: 0 0 12px; }
.tm-head { display: flex; gap: 12px; align-items: center; }
.tm-av { width: 46px; height: 46px; border-radius: 14px; background: var(--s); color: var(--c); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.tm-name { font-weight: 700; font-size: 16px; }
.tm-badge { display: inline-flex; margin-top: 3px; padding: 2px 10px; border-radius: 20px; background: var(--s); color: var(--c); font-size: 12px; font-weight: 700; }
.tm-desc { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tm-lab { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-r { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.tm-r b { display: flex; align-items: center; gap: 7px; width: 100%; font-size: 14px; }
.tm-r b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.tm-r small { font-size: 12px; color: var(--muted); font-weight: 500; }
.tm-r:active { transform: scale(.98); }
.tm-r.on { background: var(--s); border-color: var(--c); cursor: default; opacity: 1; }
.tm-r.on b::after { content: "✓"; margin-left: auto; color: var(--c); font-weight: 800; }
.tm-x { margin-top: 12px; width: 100%; padding: 11px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 14px; }

/* --- Кто звонил: цветная метка с именем сотрудника --- */
.who { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; background: hsl(var(--h) 70% 90%); color: hsl(var(--h) 65% 30%); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 75% 74%); } }
:root[data-theme="dark"] .who { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 75% 74%); }
