/* Исток — мягкий объёмный стиль: выпуклые плитки, вдавленные колодцы, акцент с градиентом.
   Тема — класс на body: pastel (по умолчанию), peach, amber, night. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- темы ---------- */
:root, body.pastel {
  --page: #D9DEEA; --base: #ECEEF2; --hi: #FFFFFF; --lo: #C3C8D3; --deep: #DDE2EC; --cast: rgba(70, 85, 120, .30);
  --acc: #7F9AD8; --acc-hi: #AFC3EE; --acc-lo: #5C77B5; --acc2: #F3BFC4; --sh1: #BFCBEA; --sh2: #F1C3C7;
  --ink: #3A4256; --ink2: #8890A3; --on: #fff;
  --red: #D0574F; --red-soft: #F5D8D7; --amber: #BD7F12; --amber-soft: #F6E5C3; --green: #3F9268; --green-soft: #D3EADC;
  --wa: #2DB45F; --wa-hi: #6BD592; --wa-lo: #1E8A46;
  color-scheme: light;
}
body.peach {
  --page: #EBD9CC; --base: #F4EEE8; --hi: #FFFFFF; --lo: #CDBFB3; --deep: #E6D6C9; --cast: rgba(120, 85, 60, .30);
  --acc: #E58E72; --acc-hi: #F7B9A2; --acc-lo: #B86A52; --acc2: #F2C9B8; --sh1: #E7AE97; --sh2: #D9977E;
  --ink: #4A3A32; --ink2: #9A8578; --on: #fff;
  --red: #C9483E; --red-soft: #F6D3CB; --amber: #B5760B; --amber-soft: #F4E0BC; --green: #4D8C63; --green-soft: #DCEAD6;
}
body.ocean {
  --page: #121924; --base: #1D2633; --hi: #283344; --lo: #0F151D; --deep: #17202B; --cast: rgba(0, 0, 0, .55);
  --acc: #6FA8E8; --acc-hi: #9CC6F4; --acc-lo: #3F78B8; --acc2: #22344B; --sh1: #1B3A60; --sh2: #183044;
  --ink: #E2E8F0; --ink2: #8A97AA; --on: #0D1A2B;
  --red: #FF8A7A; --red-soft: #4A2C2B; --amber: #F2B860; --amber-soft: #463A24; --green: #7BD3A0; --green-soft: #22402F;
  --wa: #2DB45F; --wa-hi: #52C97E; --wa-lo: #1A7A3E;
  color-scheme: dark;
}
body.night {
  --page: #1D2026; --base: #2B2F37; --hi: #373C46; --lo: #1A1C21; --deep: #22252C; --cast: rgba(0, 0, 0, .55);
  --acc: #E8956A; --acc-hi: #F4B48E; --acc-lo: #B5663F; --acc2: #4A3C3A; --sh1: #2E3A55; --sh2: #3C2F3A;
  --ink: #E7E3DE; --ink2: #8E929C; --on: #2B1A10;
  --red: #FF8A7A; --red-soft: #4A2C2B; --amber: #F2B860; --amber-soft: #463A24; --green: #7BD3A0; --green-soft: #22402F;
  --wa: #2DB45F; --wa-hi: #52C97E; --wa-lo: #1A7A3E;
  color-scheme: dark;
}
:root { --tabs-h: 68px; }
/* псевдонимы считаются на body, где уже стоит класс темы */
body { --muted: var(--ink2); --text: var(--ink); }

/* ---------- основа ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--ink);
  font: 500 16px/1.45 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  transition: background .4s, color .4s;
}
a { color: var(--acc); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.bgshapes { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bgshapes i { position: absolute; border-radius: 50%; transition: background .4s; }

/* всё приложение лежит на одной «плите» */
#app {
  position: relative; z-index: 1;
  width: min(460px, calc(100% - 24px));
  margin: calc(12px + env(safe-area-inset-top)) auto calc(var(--tabs-h) + 34px + env(safe-area-inset-bottom));
  background: var(--base); border-radius: 36px;
  padding: 8px 4px 22px;
  box-shadow: -8px -8px 18px rgba(255, 255, 255, .35), 12px 16px 30px var(--cast);
  transition: background .4s;
}
body.night #app, body.ocean #app { box-shadow: -6px -6px 16px rgba(255, 255, 255, .03), 12px 16px 30px var(--cast); }

/* ---------- приёмы объёма ---------- */
.card, .btn, .icon-btn, .chip, .summary .card, .stat-grid .card, .row, .visit, .thumb, .stage-edit, .checkrow, #tabs {
  background: var(--base);
  box-shadow: -6px -6px 13px var(--hi), 6px 7px 14px var(--lo);
  transition: box-shadow .18s, transform .18s, background .4s;
}
.btn:active, .icon-btn:active, .chip:active, .row:active, .visit:active, .thumb:active, a.card:active, .checkrow:active {
  box-shadow: inset -4px -4px 9px var(--hi), inset 4px 5px 10px var(--lo) !important;
  transform: scale(.98);
}
.btn.primary, .chip.on, .avatar, .logo, #tabs .tab-add, .sys-head .ic, .empty > svg {
  background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); color: var(--on);
  box-shadow: -5px -5px 12px var(--hi), 6px 7px 14px var(--lo), inset 2px 2px 3px rgba(255, 255, 255, .35), inset -3px -3px 6px var(--acc-lo);
}
.btn.primary:active, #tabs .tab-add:active {
  box-shadow: inset 3px 4px 8px var(--acc-lo), inset -2px -2px 5px var(--acc-hi) !important;
}
.list, .due-items, .stages, .search, .bar, .thumb.add, .offline {
  background: var(--deep);
  box-shadow: inset 7px 9px 12px var(--cast), inset -2px -2px 3px var(--hi), 0 1px 0 var(--hi);
}
.field, .toggle, .stage-edit input {
  background: var(--base);
  box-shadow: inset -4px -4px 9px var(--hi), inset 4px 5px 10px var(--lo);
}

/* ---------- шапка ---------- */
.top { padding: 12px 14px 8px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.top h1 { font-size: 26px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top.sub h1 { font-size: 19px; }
.top > .pill { margin-right: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }

.wrap { padding: 0 12px; }
.sec-title {
  font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: 1.6px; text-transform: uppercase;
  margin: 26px 6px 12px; display: flex; align-items: center; justify-content: space-between;
}
.sec-title a { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; }

/* ---------- карточки и списки ---------- */
.card { border-radius: 26px; }
.card + .card { margin-top: 14px; }
/* в сетках плиток отступы даёт сама сетка, иначе соседние плитки съезжают вниз */
.tiles > .card, .stat-grid > .card, .summary > .card, .w-head > .card { margin: 0; }
.pad { padding: 16px 18px; }

.list { border-radius: 28px; padding: 12px; }
.row, .visit {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 20px; color: var(--ink);
}
.row + .row, .visit + .visit { margin-top: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--ink2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row > svg:last-child { color: var(--ink2); width: 18px; height: 18px; }
.row > svg:first-child { color: var(--acc); }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.avatar.biz { border-radius: 14px; }

/* ---------- список клиентов: строка раскрывается на месте ---------- */
.cl {
  border-radius: 22px; background: var(--base);
  box-shadow: -6px -6px 13px var(--hi), 6px 7px 14px var(--lo); transition: background .4s;
}
.cl + .cl { margin-top: 12px; }
.cl-head {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px 12px 12px;
  border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 22px;
}
.cl-head .grow { flex: 1; min-width: 0; }
.cl-head .t { font-weight: 800; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-head .s, .cl-head .s2 { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-head .s { color: var(--ink2); }
.cl-head .s2 { font-weight: 700; color: var(--ink2); margin-top: 1px; }
.cl-head .s2.over { color: var(--red); }
.cl-head .s2.week { color: var(--amber); }
.cl-head .s2.month { color: var(--acc); }
.cl-head .s2.ok { color: var(--green); }
.debt-dot {
  position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--red);
  box-shadow: 0 0 0 2.5px var(--base);
}
.cl-head > svg:last-child { color: var(--ink2); width: 18px; height: 18px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.cl.on .cl-head > svg:last-child { transform: rotate(90deg); color: var(--acc); }

/* кольцо вокруг инициалов — насколько близко замена */
.ring { position: relative; flex: none; border-radius: 50%; padding: 3px; display: grid; place-items: center;
  background: var(--deep); box-shadow: inset 2px 3px 5px var(--cast), inset -1px -1px 2px var(--hi); }
.ring:has(.biz) { border-radius: 17px; }
.ring .avatar { width: 40px; height: 40px; outline: 3px solid transparent; outline-offset: 1px; }
.ring.over .avatar { outline-color: var(--red); }
.ring.week .avatar { outline-color: var(--amber); }
.ring.month .avatar { outline-color: var(--acc-hi); }
.ring.ok .avatar { outline-color: var(--green); }

.cl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.3, 1.1, .5, 1); }
.cl.on .cl-body { grid-template-rows: 1fr; }
.cl-body > div { overflow: hidden; min-height: 0; }
.cl-in { padding: 2px 12px 14px; }
.cl-in .due-items { margin: 0 0 12px; }
.cl-meta { display: grid; gap: 7px; padding: 0 6px 14px; font-size: 13.5px; font-weight: 600; }
.cl-meta > div { display: flex; gap: 9px; align-items: flex-start; }
.cl-meta svg { width: 16px; height: 16px; color: var(--acc); margin-top: 2px; }
.cl-meta i { font-style: normal; color: var(--ink2); font-weight: 500; }
.cl-meta .debt { color: var(--red); font-weight: 800; }
.cl-act { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cl-act .btn { flex-direction: column; gap: 4px; min-height: 60px; padding: 0 4px; border-radius: 18px; font-size: 11px; color: var(--ink2); }
.cl-act .btn svg { width: 20px; height: 20px; color: var(--acc); }
.cl-act [data-wa] svg { color: var(--wa); }
.cl-act .btn.off { opacity: .45; pointer-events: none; }
.cl-in .btn.primary svg { width: 17px; height: 17px; }

/* ---------- метки ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 12px; white-space: nowrap;
  box-shadow: inset 2px 3px 5px rgba(0, 0, 0, .07), inset -1px -1px 2px rgba(255, 255, 255, .4);
}
.pill.over, .pill.debt { background: var(--red-soft); color: var(--red); }
.pill.week { background: var(--amber-soft); color: var(--amber); }
.pill.month { background: var(--acc2); color: var(--acc-lo); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.gray { background: var(--deep); color: var(--ink2); }
body.night .pill, body.ocean .pill { box-shadow: inset 2px 3px 5px rgba(0, 0, 0, .3); }
body.night .pill.month, body.ocean .pill.month { color: var(--acc-hi); }

/* ---------- сводка ---------- */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary .card { padding: 14px 12px 12px; border-radius: 24px; margin: 0; color: var(--ink); }
.summary b { display: block; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.summary span { font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 1.3; display: block; margin-top: 4px; }
.summary .over b { color: var(--red); }
.summary .week b { color: var(--amber); }
.summary .month b { color: var(--acc); }

/* ---------- «кому менять» ---------- */
.due { padding: 14px; border-radius: 28px; }
.due-head { display: flex; align-items: flex-start; gap: 12px; padding: 2px 2px 0; }
.due-head .grow { flex: 1; min-width: 0; }
.due-head .t { font-weight: 800; font-size: 16.5px; color: var(--ink); line-height: 1.25; }
.due-head .s { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.due-items { margin: 12px 0 0; padding: 6px 14px; list-style: none; border-radius: 18px; }
.due-items li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; font-weight: 600; }
.due-items li + li { border-top: 1px dashed var(--lo); }
.due-items .when { font-size: 13px; color: var(--ink2); white-space: nowrap; font-weight: 600; }
.due-items .when.over { color: var(--red); font-weight: 800; }
.due-items .when.week { color: var(--amber); font-weight: 800; }
.reminded { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 10px 4px 0; display: flex; align-items: center; gap: 6px; }
.reminded svg { width: 15px; height: 15px; color: var(--wa); stroke-width: 2.4; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1; min-width: 0; padding: 0 8px; }
/* на узком телефоне у «Написать» и «Заменил» прячем значки — иначе слова упираются в края кнопки */
@media (max-width: 430px) { .actions .btn:not([aria-label]) svg { display: none; } }
@media (max-width: 370px) { .actions .btn { padding: 0 4px; font-size: 14px; } }
.actions .btn:first-child:not(.wa) { flex: 0 0 50px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 16px; border-radius: 18px; border: 0; cursor: pointer;
  font: 700 14.5px 'Manrope', system-ui, sans-serif; color: var(--acc);
}
.btn svg { width: 19px; height: 19px; stroke-width: 2; }
.btn.wa {
  background: linear-gradient(145deg, var(--wa-hi), var(--wa) 60%); color: #fff;
  box-shadow: -5px -5px 12px var(--hi), 6px 7px 14px var(--lo), inset 2px 2px 3px rgba(255, 255, 255, .3), inset -3px -3px 6px var(--wa-lo);
}
.btn.wa:active { box-shadow: inset 3px 4px 8px var(--wa-lo), inset -2px -2px 5px var(--wa-hi) !important; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 15.5px; border-radius: 20px; }
.btn[disabled] { opacity: .6; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.quick .btn { flex-direction: column; gap: 6px; min-height: 78px; border-radius: 22px; font-size: 12px; color: var(--ink2); }
.quick .btn svg { width: 23px; height: 23px; color: var(--acc); }

/* ---------- карточка клиента ---------- */
.hero { padding: 0 18px; }
.hero h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero .meta { color: var(--ink2); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink2); font-weight: 600; }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; font-weight: 600; }
.note { white-space: pre-wrap; font-size: 14.5px; }

.sys { padding: 14px; border-radius: 28px; }
.sys-head { display: flex; align-items: center; gap: 12px; padding: 2px; }
.sys-head .ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.sys-head .ic svg { width: 20px; height: 20px; }
.sys-head .grow { flex: 1; min-width: 0; }
.sys-head .t { font-weight: 800; line-height: 1.3; }
.sys-head .s { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.sys-head > svg:last-child { color: var(--ink2); width: 18px; }
.stages { margin-top: 14px; border-radius: 20px; padding: 4px 14px; }
.stage { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 14.5px; font-weight: 600; }
.stage + .stage { border-top: 1px dashed var(--lo); }
.stage .grow { flex: 1; min-width: 0; }
.stage .s { color: var(--ink2); font-size: 12px; font-weight: 600; margin-top: 1px; }
.bar { height: 8px; border-radius: 5px; margin-top: 8px; overflow: hidden; box-shadow: inset 2px 2px 4px var(--cast), inset -1px -1px 2px var(--hi); }
.bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green-soft), var(--green)); }
.bar i.month { background: linear-gradient(90deg, var(--acc-hi), var(--acc)); }
.bar i.week { background: linear-gradient(90deg, var(--amber-soft), var(--amber)); }
.bar i.over { background: linear-gradient(90deg, var(--red-soft), var(--red)); }

.visit { display: block; }
.visit .top-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center; }
.visit .t { font-weight: 700; }
.visit .sum { font-weight: 800; white-space: nowrap; display: flex; gap: 6px; align-items: center; margin-left: auto; }
.visit .s { color: var(--ink2); font-size: 13px; margin-top: 3px; }

/* ---------- фото ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.thumbs.small { grid-template-columns: repeat(auto-fill, 60px); gap: 10px; margin-top: 12px; }
.thumb { aspect-ratio: 1; border-radius: 18px; border: 0; padding: 4px; cursor: pointer; position: relative; display: block; }
.thumbs.small .thumb { border-radius: 14px; padding: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.thumbs.small .thumb img { border-radius: 11px; }
.thumb.add { display: grid; place-items: center; color: var(--acc); }
.thumb.add svg { width: 26px; height: 26px; }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.thumb .x svg { width: 14px; height: 14px; }

.viewer { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; color: #fff; }
.viewer .vbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; }
.viewer .vbar .icon-btn { color: #fff; background: transparent; box-shadow: none; }
.viewer .vbar .grow { flex: 1; font-size: 14px; opacity: .8; }
.viewer .vimg { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .cap { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); font-size: 15px; text-align: center; min-height: 44px; }

/* ---------- формы: каждое поле — свой колодец ---------- */
form .card { background: none; box-shadow: none; padding: 0 !important; border-radius: 0; }
form .card + .card, form .card[style] { margin-top: 12px; }
.field { display: block; padding: 10px 16px 11px; border-radius: 20px; }
.field + .field, .field + .two, .two + .field, .field + .toggle, .toggle + .field { margin-top: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); margin-bottom: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 600 16.5px 'Manrope', system-ui, sans-serif; padding: 2px 0; outline: none;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238890A3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat;
}
.field select option { background: var(--base); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink2); opacity: .75; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > .field { min-width: 0; margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.chip { border: 0; color: var(--ink2); padding: 9px 14px; border-radius: 15px; font: 700 13px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.chip.on { color: var(--on); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 6px 12px 12px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.stage-edit { display: grid; grid-template-columns: 1fr 66px 40px; gap: 10px; align-items: center; padding: 12px; border-radius: 22px; margin-bottom: 14px; }
.stage-edit input { border: 0; border-radius: 14px; padding: 10px 12px; color: var(--ink); font: 600 14.5px 'Manrope', system-ui, sans-serif; width: 100%; min-width: 0; outline: none; }
.stage-edit .since { grid-column: 1 / 3; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.stage-edit .since input { flex: 1; }
.stage-edit .icon-btn { width: 40px; height: 40px; color: var(--ink2); }

.checkrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 14.5px; }
.checkrow + .checkrow { margin-top: 12px; }
.checkrow input {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 9px; flex: none; margin: 0; cursor: pointer;
  background: var(--deep); box-shadow: inset 3px 4px 6px var(--cast), inset -1px -1px 2px var(--hi);
}
.checkrow input:checked {
  background: linear-gradient(145deg, var(--acc-hi), var(--acc)) center / cover;
  box-shadow: 2px 3px 6px var(--lo);
}
.checkrow input:checked::after {
  content: ""; display: block; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checkrow .grow { flex: 1; }
.checkrow .s { font-size: 12px; color: var(--ink2); font-weight: 600; }

.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 20px; font-weight: 700; }
.toggle input {
  appearance: none; -webkit-appearance: none; width: 54px; height: 32px; border-radius: 99px; position: relative; cursor: pointer; flex: none; margin: 0;
  background: var(--deep); box-shadow: inset 3px 4px 7px var(--cast), inset -1px -1px 2px var(--hi); transition: background .2s;
}
.toggle input::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--base); box-shadow: 2px 3px 5px var(--lo), inset 1px 1px 1px var(--hi); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.toggle input:checked { background: linear-gradient(145deg, var(--acc-hi), var(--acc)); box-shadow: inset 2px 3px 6px var(--acc-lo); }
.toggle input:checked::after { transform: translateX(22px); }

.form-actions { padding: 24px 0 4px; display: grid; gap: 14px; }
.hint { font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 8px 6px 0; line-height: 1.5; }
form.busy { pointer-events: none; }

/* ---------- поиск ---------- */
.search { display: flex; align-items: center; gap: 10px; border-radius: 22px; padding: 0 16px; }
.search svg { color: var(--acc); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 16px 'Manrope', system-ui, sans-serif; padding: 15px 0; outline: none; color: var(--ink); }
.search input::placeholder { color: var(--ink2); font-weight: 500; }

/* ---------- пусто ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink2); font-weight: 600; }
.empty > svg { width: 64px; height: 64px; padding: 16px; border-radius: 22px; stroke-width: 1.8; }
.empty h3 { color: var(--ink); margin: 16px 0 6px; font-size: 18px; font-weight: 800; }
.empty p { margin: 0 0 20px; }

/* ---------- деньги ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid .card { padding: 16px; border-radius: 24px; margin: 0; }
.stat-grid b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat-grid span { color: var(--ink2); font-size: 12px; font-weight: 600; line-height: 1.35; display: block; margin-top: 3px; }

/* ---------- тема ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.th { border: 0; border-radius: 18px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 11.5px 'Manrope', system-ui, sans-serif; color: var(--ink2); cursor: pointer; background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo); }
.th .sw { display: flex; padding-left: 4px; }
.th .sw i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; box-shadow: 1px 2px 3px rgba(0, 0, 0, .2); }
.th.on { background: var(--deep); box-shadow: inset 5px 6px 10px var(--cast), inset -2px -2px 3px var(--hi); color: var(--acc); }

/* ---------- вход ---------- */
.login { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 28px 12px; }
.login .box { width: 100%; max-width: 360px; }
.logo { width: 82px; height: 82px; border-radius: 28px; display: grid; place-items: center; margin: 0 auto 18px; }
.logo svg { width: 40px; height: 40px; stroke-width: 1.8; }
.login h1 { text-align: center; margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.login p.sub { text-align: center; color: var(--ink2); margin: 4px 0 26px; font-weight: 600; }
.login .err { color: var(--red); font-size: 13.5px; font-weight: 700; min-height: 20px; margin: 12px 6px 0; }

/* ---------- нижняя панель ---------- */
#tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(436px, calc(100% - 24px)); height: var(--tabs-h);
  display: flex; justify-content: space-around; align-items: center; gap: 4px;
  padding: 0 8px; border-radius: 28px;
}
#tabs a { flex: 1; max-width: 86px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink2); border-radius: 18px; transition: background .2s, box-shadow .2s, color .2s; }
#tabs a svg { width: 22px; height: 22px; }
#tabs a.on { color: var(--acc); background: var(--deep); box-shadow: inset 4px 5px 9px var(--cast), inset -2px -2px 3px var(--hi); }
#tabs .tab-add { flex: none; width: 56px; height: 56px; max-width: none; border-radius: 50%; margin-top: -26px; }
#tabs .tab-add svg { width: 26px; height: 26px; stroke-width: 2.4; }

#toast {
  position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); z-index: 60;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--base); color: var(--ink); padding: 11px 18px; border-radius: 20px;
  font-size: 13.5px; font-weight: 700; line-height: 1.4; text-align: center;
  box-shadow: 4px 6px 16px var(--cast), -3px -3px 8px var(--hi);
  transition: opacity .3s, transform .3s cubic-bezier(.3, 1.4, .5, 1); max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.spin { display: grid; place-items: center; min-height: 60vh; color: var(--ink2); font-weight: 700; }
.offline { margin: 0 12px 12px; padding: 10px 14px; border-radius: 16px; color: var(--amber); font-size: 13px; font-weight: 700; }

/* ---------- шторка выбора со склада ---------- */
body.locked { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 24, 34, .32); opacity: 0; transition: opacity .3s; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: min(460px, 100%); max-height: 86vh;
  transform: translate(-50%, 105%); transition: transform .4s cubic-bezier(.3, 1.15, .5, 1);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--base); border-radius: 32px 32px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px var(--cast);
}
.sheet-wrap.on .sheet { transform: translate(-50%, 0); }
.sheet-wrap.on .sheet-bg { opacity: 1; }
.sheet-top { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sheet-top b { font-size: 18px; font-weight: 800; }
.sheet-top .sheet-count { flex: 1; font-size: 12px; font-weight: 700; color: var(--acc); }
.sheet-top .btn { min-height: 40px; padding: 0 16px; }
.sheet .chips.scroll { margin: -4px -14px 0; padding: 6px 14px 10px; }
.sheet-list { overflow-y: auto; margin: 0 -14px; padding: 4px 14px 8px; display: grid; gap: 10px; align-content: start; }
.pick-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 11px 12px 11px 14px; border-radius: 18px; color: var(--ink); font: inherit;
  background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo); transition: box-shadow .18s, transform .18s;
}
.pick-row:active, .pick-row.flash { box-shadow: inset -3px -3px 7px var(--hi), inset 3px 4px 8px var(--lo); transform: scale(.98); }
.pick-row .grow { flex: 1; min-width: 0; }
.pick-row .t { font-weight: 700; font-size: 14.5px; }
.pick-row .s { font-size: 12px; color: var(--ink2); font-weight: 600; }
.pick-row > svg { width: 20px; height: 20px; color: var(--acc); }
.pick-row.new { color: var(--acc); }
.pick-price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.neg { color: var(--red); font-weight: 800; }
.new-item { padding: 14px; border-radius: 20px; background: var(--deep); box-shadow: inset 5px 6px 10px var(--cast), inset -2px -2px 3px var(--hi); display: grid; gap: 10px; }
.new-item .t { font-weight: 800; }

/* ---------- строки позиций (визит, установка, закупка) ---------- */
.ln { padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo); }
.ln + .ln { margin-top: 12px; }
.ln-name { display: flex; flex-direction: column; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.ln-name small { font-size: 11.5px; color: var(--ink2); font-weight: 600; margin-top: 2px; }
.ln-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty { display: flex; align-items: center; border-radius: 14px; background: var(--deep); box-shadow: inset 3px 4px 7px var(--cast), inset -1px -1px 2px var(--hi); flex: none; }
.qty button { width: 34px; height: 36px; border: 0; background: none; color: var(--acc); font: 800 18px 'Manrope', sans-serif; cursor: pointer; }
.qty input { width: 38px; border: 0; background: none; text-align: center; color: var(--ink); font: 800 15px 'Manrope', sans-serif; outline: none; padding: 0; }
.ln-x { color: var(--ink2); font-weight: 700; }
.ln-price, .ln-in input {
  width: 100%; min-width: 0; border: 0; border-radius: 12px; padding: 8px 10px; color: var(--ink); outline: none;
  font: 700 14.5px 'Manrope', sans-serif; background: var(--base); box-shadow: inset -3px -3px 7px var(--hi), inset 3px 4px 8px var(--lo);
}
.ln-price { flex: 1 1 70px; }
.ln-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ln-in small { font-size: 10.5px; font-weight: 700; color: var(--ink2); padding-left: 4px; }
.ln-sum { flex: 0 0 auto; min-width: 74px; text-align: right; font-size: 14px; white-space: nowrap; }
.ln-del { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.ln-del svg { width: 16px; height: 16px; }
.add-line { margin-top: 12px; }
.ln-total { margin-top: 14px; padding: 12px 16px; border-radius: 20px; display: grid; gap: 6px; background: var(--deep); box-shadow: inset 5px 6px 10px var(--cast), inset -2px -2px 3px var(--hi); }
.ln-total > div { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink2); }
.ln-total b { color: var(--ink); font-weight: 800; }
.ln-total .profit b { color: var(--green); font-size: 16px; }
.stage-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 9px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 11.5px 'Manrope', sans-serif; color: var(--acc); background: var(--deep); box-shadow: inset 2px 2px 4px var(--cast); }
.stage-link svg { width: 13px; height: 13px; }
.stage-link.linked { color: var(--green); }

/* ---------- история закупок ---------- */
.sec-title span { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.buy-row { display: block; color: var(--ink); padding: 12px 14px; border-radius: 18px; background: var(--deep);
  box-shadow: inset 4px 5px 9px var(--cast), inset -2px -2px 3px var(--hi); }
.buy-row + .buy-row { margin-top: 10px; }
.buy-top { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.buy-top .buy-sum { margin-left: auto; white-space: nowrap; }
.buy-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); padding: 3px 0; }
.buy-line span:first-child { color: var(--ink); min-width: 0; }
.buy-line span:last-child { white-space: nowrap; }
.buy-line.hit span:first-child { color: var(--acc); font-weight: 800; }

/* ---------- главная ---------- */
.hello { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 6px; }
.hello small { font-size: 13px; font-weight: 700; color: var(--ink2); }
.hello h1 { margin: 2px 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hello p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); line-height: 1.45; }
.w-head { display: grid; grid-template-columns: 1fr 1.08fr; gap: 12px; margin-top: 10px; }
.w-clock { padding: 12px; border-radius: 28px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-height: 168px; }
.clock-pill { flex: 1; border-radius: 20px; padding: 10px 6px 8px; text-align: center; display: flex; flex-direction: column; justify-content: center;
  background: var(--acc2); box-shadow: inset 5px 7px 10px var(--cast), inset -2px -2px 3px rgba(255, 255, 255, .45); }
.clock-pill .t { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -1px; color: var(--ink); }
.clock-pill .d { font-size: 12px; font-weight: 700; color: var(--ink); opacity: .7; margin-top: 4px; white-space: nowrap; }
.w-week { display: flex; justify-content: space-between; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink2); width: 22px; }
.wd small { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.wd i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.wd.now i { background: linear-gradient(145deg, var(--acc-hi), var(--acc)); color: var(--on); box-shadow: 2px 3px 6px var(--lo); }
.wd u, .sd u { display: flex; gap: 2px; height: 5px; text-decoration: none; }
.wd u s, .sd u s { width: 4px; height: 4px; border-radius: 50%; background: var(--c, var(--acc)); }
.sd u s.dd { background: none; box-shadow: inset 0 0 0 1.2px var(--amber); }

/* погода — живая картинка */
.w-wx { display: flex; }
.scene { flex: 1; min-height: 168px; border-radius: 28px; position: relative; overflow: hidden; cursor: pointer;
  background: var(--deep); box-shadow: inset 7px 9px 12px var(--cast), inset -2px -2px 3px var(--hi), 0 1px 0 var(--hi); }
.scene .sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sh1), var(--deep)); transition: background .6s; }
.scene.cloud .sky, .scene.fog .sky { background: linear-gradient(180deg, color-mix(in srgb, var(--sh1) 45%, #9aa3b5), var(--deep)); }
.scene.rain .sky, .scene.storm .sky { background: linear-gradient(180deg, color-mix(in srgb, var(--sh1) 30%, #6f7a90), var(--deep)); }
.scene.snow .sky { background: linear-gradient(180deg, color-mix(in srgb, var(--sh1) 40%, #c9d3e6), var(--deep)); }
.scene.night .sky { background: linear-gradient(180deg, #1c2540, color-mix(in srgb, var(--deep) 60%, #2a3350)); }
.scene .hill { position: absolute; border-radius: 50% 50% 0 0; }
.scene .h1 { bottom: -46%; height: 95%; left: -40%; right: 10%; background: var(--acc2); box-shadow: 0 -8px 16px var(--cast); }
.scene .h2 { bottom: -62%; height: 95%; left: 10%; right: -50%; background: var(--sh2); box-shadow: 0 -8px 16px var(--cast); }
.scene .h3 { bottom: -80%; height: 100%; left: -20%; right: -20%; background: var(--acc); box-shadow: 0 -10px 18px var(--cast), inset 0 6px 8px var(--acc-hi); }
.scene.snow .h1, .scene.snow .h2 { background: color-mix(in srgb, #fff 70%, var(--acc2)); }
.scene .orb { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #FFE7A8); box-shadow: 0 0 22px rgba(255, 220, 140, .8), 4px 6px 10px var(--cast); }
.scene.night .orb { background: radial-gradient(circle at 35% 35%, #fff, #cfd6e6); box-shadow: 0 0 18px rgba(220, 230, 255, .5); }
.scene.cloud .orb, .scene.rain .orb, .scene.snow .orb, .scene.storm .orb, .scene.fog .orb { opacity: .45; filter: blur(1px); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.wtxt { position: absolute; left: 14px; top: 12px; z-index: 2; color: var(--ink); }
.scene.night .wtxt { color: #f1f3f8; }
.wtxt span { display: block; font-size: 12px; font-weight: 700; opacity: .8; }
.wtxt b { display: block; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.wx-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.3, 1.1, .5, 1); }
.wx-more.on { grid-template-rows: 1fr; }
.wx-more > div { overflow: hidden; min-height: 0; }
.wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 14px 0 2px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 16px; background: var(--base);
  box-shadow: -4px -4px 9px var(--hi), 4px 5px 10px var(--lo); font-size: 12px; }
.wx-day.now { background: var(--deep); box-shadow: inset 3px 4px 7px var(--cast), inset -1px -1px 2px var(--hi); }
.wx-day small { font-size: 10px; font-weight: 700; color: var(--ink2); text-transform: uppercase; }
.wx-day b { font-weight: 800; }
.wx-day i { font-style: normal; color: var(--ink2); font-weight: 600; }
.wx-ico { width: 18px; height: 18px; border-radius: 50%; background: #FFD36A; box-shadow: 0 0 8px rgba(255, 200, 90, .6); }
.wx-ico.cloud, .wx-ico.fog { background: #b8c0cf; box-shadow: none; border-radius: 9px; width: 22px; height: 13px; margin: 2px 0 3px; }
.wx-ico.rain, .wx-ico.storm { background: linear-gradient(#8f9ab0 55%, transparent 55%), repeating-linear-gradient(100deg, #6FA8E8 0 2px, transparent 2px 5px); border-radius: 6px; box-shadow: none; }
.wx-ico.snow { background: radial-gradient(circle, #fff 30%, #cfe0f7 32%); box-shadow: 0 0 0 2px #cfe0f7; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 18px; font-size: 13.5px; font-weight: 700; color: var(--acc-lo);
  background: var(--deep); box-shadow: inset 4px 5px 9px var(--cast), inset -2px -2px 3px var(--hi); }
body.night .tip, body.ocean .tip { color: var(--acc-hi); }
.tip svg { width: 18px; height: 18px; color: var(--acc); flex: none; margin-top: 1px; }

/* сегодня */
.w-today { padding: 12px; border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ap { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 20px; background: var(--deep);
  box-shadow: inset 4px 5px 9px var(--cast), inset -2px -2px 3px var(--hi); position: relative; }
.ap::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.ap.next { background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo), inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.ap.done { opacity: .55; }
.ap.done .t { text-decoration: line-through; }
.ap-check { width: 30px; height: 30px; flex: none; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: transparent;
  background: var(--base); box-shadow: inset 3px 4px 6px var(--cast), inset -1px -1px 2px var(--hi); margin-left: 4px; }
.ap.done .ap-check { color: var(--on); background: linear-gradient(145deg, var(--acc-hi), var(--acc)); box-shadow: 2px 3px 6px var(--lo); }
.ap-check svg { width: 16px; height: 16px; stroke-width: 3; }
.ap-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.ap-time { font-weight: 800; font-size: 15px; min-width: 44px; padding-top: 1px; }
.ap .grow { min-width: 0; flex: 1; }
.ap .t { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap .s { font-size: 12px; font-weight: 600; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-soon { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--c); }
.ap-btn { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--acc);
  background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); }
.ap-btn svg { width: 17px; height: 17px; }
.free { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 14px; font-weight: 800; color: var(--green); }
.free svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tomorrow { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.tomorrow svg { width: 15px; height: 15px; margin-left: auto; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; margin-top: 16px; }
.tile { padding: 14px; border-radius: 24px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.tile small { font-size: 12px; font-weight: 700; color: var(--ink2); }
.tile b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.tile span { font-size: 11.5px; font-weight: 600; color: var(--ink2); }
.btn.sq { flex: 0 0 46px !important; width: 46px; padding: 0; }
.actions .btn.sq, .actions .btn:first-child:not(.wa) { flex: 0 0 46px !important; }
.btn.off { opacity: .45; pointer-events: none; }
.row.more { justify-content: center; color: var(--acc); font-weight: 700; font-size: 13.5px; }
.cl-act { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cl-act .btn { font-size: 10.5px; }

/* ---------- календарь ---------- */
.plan-title h1 { font-size: 26px; font-weight: 800; margin: 0; }
.plan-title small { font-size: 13px; font-weight: 700; color: var(--ink2); }
.seg { display: flex; padding: 5px; border-radius: 22px; background: var(--deep); box-shadow: inset 5px 6px 10px var(--cast), inset -2px -2px 3px var(--hi); }
.seg a { flex: 1; text-align: center; padding: 9px 0; border-radius: 17px; font-weight: 700; font-size: 13.5px; color: var(--ink2); transition: all .2s; }
.seg a.on { color: var(--on); background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); box-shadow: 3px 4px 8px var(--lo), inset 1px 1px 2px rgba(255, 255, 255, .35); }
.strip { display: flex; align-items: center; gap: 4px; margin: 14px -4px 4px; }
.strip .icon-btn { width: 34px; height: 34px; flex: none; }
.strip .icon-btn svg { width: 16px; height: 16px; }
.sd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 16px; color: var(--ink2); min-width: 0;
  background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); }
.sd small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.sd b { font-size: 15px; font-weight: 800; color: var(--ink); }
.sd.now b { color: var(--acc); }
.sd.on { background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); color: var(--on); box-shadow: 3px 4px 8px var(--lo); }
.sd.on b { color: var(--on); }
.sd.on u s { background: var(--on); }
.mnav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.mnav b { font-size: 16px; font-weight: 800; }
.tl { position: relative; margin: 18px 0 8px; }
.tl-h { position: absolute; left: 0; right: 0; height: 56px; border-top: 1px dashed var(--lo); display: block; }
.tl-h span { position: absolute; left: 0; top: -9px; font-size: 11.5px; font-weight: 700; color: var(--ink2); background: var(--base); padding-right: 6px; }
.tl-ev { position: absolute; z-index: 2; border-radius: 14px; padding: 6px 10px; overflow: hidden; color: var(--ink);
  background: color-mix(in srgb, var(--c) 22%, var(--base)); box-shadow: 3px 4px 9px var(--lo), inset 3px 0 0 var(--c); display: flex; flex-direction: column; }
.tl-ev b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev small { font-size: 11px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev.done { opacity: .5; }
.tl-ev.done b { text-decoration: line-through; }
.tl-now { position: absolute; left: 44px; right: 0; height: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.pa { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; color: var(--ink); margin-top: 10px;
  background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo); }
.pa .grow { flex: 1; min-width: 0; }
.pa .t { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa .s { font-size: 12px; font-weight: 600; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pa > svg { width: 18px; height: 18px; color: var(--green); }
.pa.done { opacity: .55; }
.gh { display: flex; align-items: baseline; gap: 8px; margin: 20px 4px 2px; color: var(--ink); }
.gh b { font-size: 15px; font-weight: 800; }
.gh span { font-size: 12.5px; font-weight: 600; color: var(--ink2); flex: 1; }
.gh i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--acc); }
.gh i.dd { color: var(--amber); }
.gh.now b { color: var(--acc); }
.gh-empty { display: block; margin-top: 8px; padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--ink2);
  background: var(--deep); box-shadow: inset 3px 4px 7px var(--cast), inset -1px -1px 2px var(--hi); }
.mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mh { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink2); text-transform: uppercase; padding: 4px 0; }
.mc { min-height: 58px; min-width: 0; border-radius: 14px; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink);
  background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); }
.mc.blank { visibility: hidden; }
.mc.past { opacity: .55; }
.mc.now { background: var(--deep); box-shadow: inset 3px 4px 7px var(--cast), inset -1px -1px 2px var(--hi); }
.mc.now b { color: var(--acc); }
.mc b { font-size: 13px; font-weight: 800; }
.mc-n, .mc-due { font-style: normal; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; }
.mc-n { background: var(--acc); color: var(--on); }
.mc-due { background: var(--amber-soft); color: var(--amber); }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: 5px; }
.qa { position: sticky; bottom: calc(var(--tabs-h) + 22px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 10px; margin-top: 18px; }
.qa-in { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 22px; background: var(--base);
  box-shadow: inset -4px -4px 9px var(--hi), inset 4px 5px 10px var(--lo), 0 6px 16px var(--cast); }
.qa-in svg { width: 18px; height: 18px; color: var(--acc); }
.qa-in input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; font: 600 15px 'Manrope', sans-serif; color: var(--ink); outline: none; }
.qa-add { width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--on); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); box-shadow: 4px 6px 14px var(--cast), inset 2px 2px 3px rgba(255, 255, 255, .35); }
.qprev { min-height: 20px; margin: 8px 6px 0; font-size: 12.5px; font-weight: 700; color: var(--acc); }
.pick-client { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 22px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); background: var(--base); box-shadow: -6px -6px 13px var(--hi), 6px 7px 14px var(--lo); }
.pick-client .grow { flex: 1; min-width: 0; }
.pick-client .t { font-weight: 800; }
.pick-client .s { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.pick-client > svg { color: var(--ink2); width: 18px; }
.pick-client .avatar svg { width: 20px; height: 20px; }
.qm-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--on);
  background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); box-shadow: 2px 3px 6px var(--lo); }
.qm-ic svg { width: 20px; height: 20px; }
#tabs button.tab-add { border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.gh-empty.past { opacity: .55; box-shadow: none; background: none; padding: 4px 14px; }

/* ---------- календарь на главной: ящик ---------- */
.w-clock.pressed { box-shadow: inset -4px -4px 9px var(--hi), inset 4px 5px 10px var(--lo); }
.w-clock.pressed .clock-pill { transform: scale(.97); }
.clock-pill { transition: transform .3s; }
.tray-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3, 1.1, .5, 1), margin .45s; }
.tray-wrap.on { grid-template-rows: 1fr; margin-top: 14px; }
.tray-wrap > div { overflow: hidden; min-height: 0; }
.tray { border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 12px;
  background: var(--deep); box-shadow: inset 7px 9px 12px var(--cast), inset -2px -2px 3px var(--hi), 0 1px 0 var(--hi); }
.cstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 10px; margin: 0 -4px; scroll-snap-type: x proximity; }
.cstrip::-webkit-scrollbar { display: none; }
.cstrip .sd { flex: none; width: 46px; border: 0; cursor: pointer; scroll-snap-align: center; font: inherit; }
.seg.mini { padding: 4px; border-radius: 16px; }
.seg button { flex: 1; border: 0; background: none; cursor: pointer; padding: 8px 0; border-radius: 12px; font: 700 12.5px 'Manrope', sans-serif; color: var(--ink2); transition: all .2s; }
.seg button.on { color: var(--on); background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); box-shadow: 3px 4px 8px var(--lo), inset 1px 1px 2px rgba(255, 255, 255, .35); }
.csum { font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 0 4px; }
.csum b { color: var(--ink); }
.clist { display: flex; flex-direction: column; gap: 8px; }
.tk { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--base);
  box-shadow: -4px -4px 9px var(--hi), 4px 5px 10px var(--lo); animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.clist .tk:nth-child(2) { animation-delay: .04s; } .clist .tk:nth-child(3) { animation-delay: .08s; } .clist .tk:nth-child(4) { animation-delay: .12s; }
.clist .tk:nth-child(n+5) { animation-delay: .16s; }
@keyframes pop { from { opacity: 0; transform: translateY(-18px) scale(.8); } }
.tk .cb { width: 28px; height: 28px; flex: none; border: 0; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0;
  background: var(--deep); box-shadow: inset 3px 4px 6px var(--cast), inset -1px -1px 2px var(--hi); }
.tk .cb svg { width: 15px; height: 15px; stroke-width: 3; }
.tk .cb.add { color: var(--acc); background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); }
.tk.done .cb { color: var(--on); background: linear-gradient(145deg, var(--acc-hi), var(--acc)); box-shadow: 2px 3px 6px var(--lo); }
.tk .tx { flex: 1; min-width: 0; color: var(--ink); display: flex; flex-direction: column; }
.tk .tx b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .tx small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .tx small s { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.tk.done .tx b { color: var(--ink2); text-decoration: line-through; }
.tk.due-tk { order: 0; box-shadow: -4px -4px 9px var(--hi), 4px 5px 10px var(--lo), inset 3px 0 0 var(--amber); }
.cgh { display: flex; align-items: baseline; gap: 8px; margin: 6px 4px 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); }
.cgh span { font-weight: 600; text-transform: none; letter-spacing: 0; }
.cgh i { margin-left: auto; font-style: normal; color: var(--acc); }
.cgh.now b { color: var(--acc); }
.cempty { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); padding: 10px 0 4px; }
.qa.in-cal { position: static; margin-top: 2px; }
.qa.in-cal .qa-in { box-shadow: inset -4px -4px 9px var(--hi), inset 4px 5px 10px var(--lo); }
.qa.in-cal + .qprev { margin-top: -4px; }
.cfull { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--acc); padding: 2px 0; }
.cfull svg { width: 15px; height: 15px; }

/* ---------- календарь на главной: циферблат ---------- */
.w-head.dial-open > * { grid-column: 1 / -1; }
.w-head.dial-open .scene { min-height: 110px; }
.w-clock.has-dial { cursor: default; gap: 12px; animation: grow .45s cubic-bezier(.3, 1.1, .5, 1); }
@keyframes grow { from { opacity: .3; transform: scale(.96); } }
.dial-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0 6px; }
.dial-head b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.dial-head span { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.dialw { display: flex; gap: 12px; align-items: center; }
.dial { width: min(186px, 50%); height: auto; flex: none; touch-action: none; cursor: crosshair; display: block; stroke: none; stroke-width: 0; }
.dial .dl { font: 700 9px 'Manrope', sans-serif; fill: var(--ink2); }
.dial .dt { font: 800 19px 'Manrope', sans-serif; fill: var(--ink); }
.dial .ds { font: 700 8.5px 'Manrope', sans-serif; fill: var(--ink2); letter-spacing: .6px; text-transform: uppercase; }
.dinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dinfo small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
.dinfo b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.dinfo span { font-size: 12px; font-weight: 600; color: var(--acc); }
.w-clock.has-dial .clist { max-height: 300px; overflow-y: auto; margin: 0 -6px; padding: 4px 6px 8px; scrollbar-width: none; }
.cal-styles .th svg { width: 22px; height: 22px; color: var(--acc); }
.cal-styles { grid-template-columns: repeat(3, 1fr); }

/* ---------- погода: на месте и на весь экран ---------- */
.w-wx.pressed .scene { box-shadow: inset 9px 12px 16px var(--cast), inset -2px -2px 3px var(--hi); }
.wxp { border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--base);
  box-shadow: -6px -6px 13px var(--hi), 6px 7px 14px var(--lo); margin: 2px 2px 14px; }
.wxh { display: flex; align-items: center; gap: 8px; }
.wxh b { display: block; font-size: 16px; font-weight: 800; }
.wxh span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.wxh .icon-btn { width: 38px; height: 38px; }
.wxh .icon-btn svg { width: 17px; height: 17px; }
.wdays { display: flex; gap: 6px; }
.wdd { flex: 1; min-width: 0; border-radius: 15px; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700; color: var(--ink2); background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); }
.wdd svg { width: 19px; height: 19px; color: var(--acc); stroke-width: 1.8; }
.wdd b { font-size: 13px; color: var(--ink); }
.wdd span { font-size: 10.5px; }
.wdd i { font-style: normal; font-size: 9.5px; color: #5C8FD6; min-height: 12px; }
.wdd.on { background: linear-gradient(145deg, var(--acc-hi), var(--acc) 60%); box-shadow: 3px 4px 8px var(--lo); }
.wdd.on, .wdd.on b, .wdd.on svg, .wdd.on i { color: var(--on); }
.whrs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.whrs::-webkit-scrollbar { display: none; }
.whr { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--ink2); }
.whr svg { width: 18px; height: 18px; color: var(--acc); }
.whr b { font-size: 13px; color: var(--ink); }
.wfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf { display: flex; align-items: center; gap: 9px; border-radius: 14px; padding: 8px 10px; min-width: 0;
  background: var(--base); box-shadow: inset -3px -3px 7px var(--hi), inset 3px 4px 8px var(--lo); }
.wf svg { width: 18px; height: 18px; color: var(--acc); flex: none; }
.wf div { min-width: 0; }
.wf small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink2); }
.wf b { display: block; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whero { display: flex; align-items: center; gap: 14px; margin: 10px 2px 14px; }
.whero > svg { width: 56px; height: 56px; color: var(--acc); stroke-width: 1.4; }
.whero b { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.whero div { flex: 1; min-width: 0; }
.whero div span { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; }
.whero div small { font-size: 12px; font-weight: 600; color: var(--ink2); }
.wsum { font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--ink2); margin: 14px 2px 12px; }
.wsum b { color: var(--ink); }
.wchart { overflow-x: auto; scrollbar-width: none; border-radius: 20px; padding: 10px 6px 4px;
  background: var(--deep); box-shadow: inset 7px 9px 12px var(--cast), inset -2px -2px 3px var(--hi); }
.wchart::-webkit-scrollbar { display: none; }
.wchart svg { stroke-width: 0; }
.wicons { display: flex; }
.wicons svg { width: 46px; height: 18px; color: var(--acc); flex: none; stroke-width: 1.8; }
.wl { font: 800 10.5px 'Manrope', sans-serif; fill: var(--ink); }
.wl2 { font: 700 9.5px 'Manrope', sans-serif; fill: var(--ink2); }
.wl3 { font: 700 8.5px 'Manrope', sans-serif; fill: #5C8FD6; }
.wtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.wt { border-radius: 20px; padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  background: var(--base); box-shadow: -5px -5px 11px var(--hi), 5px 6px 12px var(--lo); }
.wt.w2 { grid-column: span 2; }
.wt small { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
.wt small svg { width: 14px; height: 14px; color: var(--acc); }
.wt b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.wt span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink2); line-height: 1.4; }
.wt > svg { display: block; margin: 4px auto 0; stroke-width: 0; }
.wrow2 { display: flex; align-items: center; gap: 10px; }
.wrow2 > svg { flex: none; margin-left: auto; stroke-width: 0; }
.wrow { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 10px;
  background: var(--base); box-shadow: -4px -4px 9px var(--hi), 4px 5px 10px var(--lo); }
.wrow .wrd { width: 104px; flex: none; }
.wrow .wrd b { display: block; font-size: 13px; font-weight: 800; }
.wrow .wrd span { font-size: 10.5px; color: var(--ink2); }
.wrow > svg { width: 22px; height: 22px; color: var(--acc); flex: none; }
.wrow .wpp { width: 30px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #5C8FD6; flex: none; }
.wrow .wlo, .wrow .whi { width: 32px; font-weight: 800; font-size: 12.5px; flex: none; }
.wrow .wlo { color: var(--ink2); text-align: right; }
.wbar { flex: 1; height: 6px; border-radius: 3px; background: var(--deep); position: relative; box-shadow: inset 1px 1px 2px var(--cast); }
.wbar s { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7F9AD8, var(--acc)); }
.wmg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wmg .wh { font-size: 10px; font-weight: 800; color: var(--ink2); text-align: center; text-transform: uppercase; }
.wmc { border-radius: 12px; padding: 5px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; font-weight: 700; color: var(--ink2); min-width: 0;
  background: var(--base); box-shadow: -3px -3px 7px var(--hi), 3px 4px 8px var(--lo); text-align: center; }
.wmc u { text-decoration: none; font-size: 12px; font-weight: 800; color: var(--ink); }
.wmc svg { width: 16px; height: 16px; color: var(--acc); }
.wmc.est { opacity: .5; }
.wmc.now { box-shadow: 0 0 0 2px var(--acc); }
.wmc.blank { visibility: hidden; }
.wnote { font-size: 11.5px; font-weight: 600; color: var(--ink2); text-align: center; padding: 12px 4px 4px; line-height: 1.5; }
.icon-btn.off { opacity: .35; pointer-events: none; }
.wrow2 b { white-space: nowrap; }
.wrow2 > div { min-width: 0; }

/* ---------- скорость ----------
   Длинные списки: телефон рисует только то, что видно на экране, остальное — по мере прокрутки.
   Размеры — средняя высота карточки, чтобы полоса прокрутки не прыгала. */
.cl, .list > .row, .visit { content-visibility: auto; contain-intrinsic-size: auto 84px; }
.card.due { content-visibility: auto; contain-intrinsic-size: auto 316px; }

/* Лёгкий режим для слабых телефонов: без размытых теней и фоновых пятен — их рисовать дороже всего.
   Анимации и снег остаются. Вид тот же, только плоский: объём держится на тонкой тени и фоне колодцев. */
body.lite *, body.lite *::before, body.lite *::after { box-shadow: none !important; }
body.lite .bgshapes { display: none; }
body.lite .scene .orb { filter: none; }
body.lite :is(#app, .card, .btn, .icon-btn, .chip, .row, .visit, .thumb, .stage-edit, .checkrow, #tabs, .cl, .tk, .pick-row, .sheet, .th, .w-clock, .seg a.on, .seg button.on) {
  box-shadow: 0 1px 2px var(--lo), 0 0 0 1px var(--lo) !important;
}
body.lite :is(.list, .due-items, .stages, .search, .bar, .thumb.add, .offline, .field, .toggle, .seg, .tray, .qty, .ln-total, .new-item, .th.on, #tabs a.on, .wx-day.now, .mc.now) {
  box-shadow: inset 0 1px 2px var(--cast) !important;
}
body.lite :is(.btn, .icon-btn, .chip, .row, .visit, .thumb, a.card, .checkrow, .pick-row, .cl-head):active { filter: brightness(.94); }
body.lite .toggle input::after { box-shadow: 0 1px 2px var(--lo), 0 0 0 1px var(--lo) !important; }
/* раскрытие ящика, карточки клиента и погоды: высота меняется сразу, а содержимое мягко выезжает —
   так же живо, но телефону не нужно пересчитывать страницу в каждом кадре */
body.lite :is(.tray-wrap, .cl-body, .wx-more) { transition: none; }
body.lite :is(.tray-wrap.on, .cl.on .cl-body, .wx-more.on) > div { animation: liteIn .4s cubic-bezier(.3, 1.25, .5, 1) both; }
@keyframes liteIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

/* переезд на новый адрес */
.moved { display: grid; gap: 14px; }
.moved .logo { justify-self: center; }
.login .moved p.sub { margin: 0 0 8px; }
.moved .hint { text-align: center; margin: 0; padding: 0 6px; }
.moved .card.pad { text-align: center; color: var(--ink2); font-weight: 600; font-size: 14.5px; }
