/* Оформление по образцу (видео «Ottership»). Цвета сняты с кадров видео.
   Светлая тема «latte»: кремовый фон, белые карточки, карамельные кнопки, тёмно-коричневые акцентные карточки.
   Тёмная тема «caramel»: почти чёрный коричневый фон, тот же карамельный акцент.
   Без выбора (auto) тема следует за настройкой телефона. Ещё две темы: noir, rose. */
:root,
:root[data-theme="latte"] {
  --bg: #f4eee8;
  --card: #ffffff;
  --card2: #f2e9e2;
  --text: #2b1f18;
  --muted: #8c7b6e;
  --gold: #b88150;
  --gold-soft: #f3e3d2;
  --gold-text: #ffffff;
  --line: #ece1d6;
  --field: #ffffff;
  --chip: #f2e5de;
  --hero: #423329;
  --hero-text: #fdf6ef;
  --hl: #fcf5d3;
  --hl-text: #5a4520;
  --pink: #c9707d;
  --pink-soft: #f7e9ed;
  --ok: #4f8a62;
  --ok-soft: #e3f1e6;
  --warn: #b07a2a;
  --warn-soft: #f8edd9;
  --bad: #c0544b;
  --bad-soft: #f9e3e0;
  --shadow: 0 10px 30px rgba(66, 51, 41, .12);
  --display: -apple-system, system-ui, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #150e09; --card: #1f1511; --card2: #2a1e18; --text: #f4ebe2; --muted: #a8998c;
    --gold: #b67f4e; --gold-soft: #3a2a21; --gold-text: #fff8f0; --line: #2e231c;
    --field: #1a120e; --chip: #2a1e18; --hero: #3a2a21; --hero-text: #f4ebe2;
    --hl: #3b3218; --hl-text: #f1dc9a; --pink: #e08a94; --pink-soft: #3a2328;
    --ok: #7fae8d; --ok-soft: #1e2e23; --warn: #d4a35a; --warn-soft: #33281a; --bad: #e07a70; --bad-soft: #3a1e1b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="caramel"] {
  --bg: #150e09; --card: #1f1511; --card2: #2a1e18; --text: #f4ebe2; --muted: #a8998c;
  --gold: #b67f4e; --gold-soft: #3a2a21; --gold-text: #fff8f0; --line: #2e231c;
  --field: #1a120e; --chip: #2a1e18; --hero: #3a2a21; --hero-text: #f4ebe2;
  --hl: #3b3218; --hl-text: #f1dc9a; --pink: #e08a94; --pink-soft: #3a2328;
  --ok: #7fae8d; --ok-soft: #1e2e23; --warn: #d4a35a; --warn-soft: #33281a; --bad: #e07a70; --bad-soft: #3a1e1b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="noir"] {
  --bg: #0b0b0b; --card: #1a1714; --card2: #24201c; --text: #f5efe6; --muted: #9c9288;
  --gold: #c9a96e; --gold-soft: #3a3024; --gold-text: #14110f; --line: #2a2622;
  --field: #141210; --chip: #26221d; --hero: #3a3024; --hero-text: #f5efe6;
  --hl: #3a3220; --hl-text: #f0dca0; --pink: #e08a94; --pink-soft: #33232a;
  --ok: #7fae8d; --ok-soft: #1d2a21; --warn: #d4b06a; --warn-soft: #302818; --bad: #d07a70; --bad-soft: #36201d;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="rose"] {
  --bg: #1c1416; --card: #2a1f22; --card2: #352729; --text: #f7edea; --muted: #b9a3a3;
  --gold: #d4a5a5; --gold-soft: #3d2e31; --gold-text: #1c1416; --line: #3d2e31;
  --field: #241a1d; --chip: #352729; --hero: #45282f; --hero-text: #f7edea;
  --hl: #3d2a2e; --hl-text: #f3c9cf; --pink: #e8919c; --pink-soft: #45282f;
  --ok: #7fae8d; --ok-soft: #1f2c24; --warn: #e0b07a; --warn-soft: #3a2b20; --bad: #e07a70; --bad-soft: #3e2020;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  -webkit-tap-highlight-color: transparent;
}

/* Шапка: заголовок слева (нажатие — совет дня), погода справа маленькой кнопкой */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; background: var(--bg);
}
.topbar h1 {
  margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700;
  letter-spacing: -.01em; cursor: pointer; text-wrap: balance;
}
.chip-btn {
  flex: none; border: 0; border-radius: 999px; background: var(--card); color: var(--text);
  padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums;
}

main { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }

/* Карточки */
.card { background: var(--card); border-radius: 20px; padding: 16px; margin: 0; }
.card h2 { margin: 0 0 10px; font-family: var(--display); font-size: 17px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.card > button { width: 100%; margin-top: 8px; }
.muted { color: var(--muted); font-size: 13px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row > span { min-width: 0; }
.row button { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; border-radius: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot.red { background: var(--bad); }
.dot.yellow { background: var(--warn); }
.dot.green { background: var(--ok); }

/* Кнопки: крупные, скруглённые, основная — акцентная, второстепенная — тёмная */
button, .btn {
  font: inherit; font-size: 15px; font-weight: 600;
  border: 0; border-radius: 16px; padding: 14px 18px;
  background: var(--gold); color: var(--gold-text); cursor: pointer;
}
button.secondary { background: var(--card2); color: var(--text); font-weight: 500; }
button.link { background: none; color: var(--gold); padding: 0; font-size: 14px; font-weight: 600; border-radius: 0; }
button.back { align-self: flex-start; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* Поля ввода */
input, select, textarea {
  font: inherit; font-size: 16px; width: 100%;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--field); color: var(--text); margin-bottom: 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
label {
  font-size: 11px; font-weight: 600; color: var(--muted); display: block;
  margin: 0 0 6px 2px; letter-spacing: .08em; text-transform: uppercase;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; margin: 0;
  font-size: 15px; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0;
}
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--gold); }

/* Нижнее меню-«остров» с круглой кнопкой по центру */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; justify-content: space-around; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 8px 6px; z-index: 20; box-shadow: var(--shadow);
}
.tabbar button {
  flex: 1; min-width: 0; background: transparent; color: var(--muted);
  padding: 6px 2px; font-size: 11px; font-weight: 500; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.active { color: var(--text); background: var(--gold-soft); font-weight: 600; }
.tabbar .fab {
  flex: none; width: 60px; height: 60px; border-radius: 50%; padding: 0;
  margin-top: -32px; justify-content: center;
  background: var(--gold); color: var(--gold-text);
  border: 4px solid var(--bg); box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.tabbar .fab svg { width: 26px; height: 26px; }

/* Главная: плитки с крупными цифрами и быстрые действия */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card); border-radius: 18px; padding: 14px 6px; text-align: center; }
.tile-num { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-card, .more-tile {
  text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 118px; background: var(--card); color: var(--text); border-radius: 20px; padding: 16px;
}
.quick-card.hi { background: var(--gold-soft); }
.quick-card b, .more-tile b { font-size: 16px; }
.quick-card span, .more-tile span { font-size: 12px; color: var(--muted); font-weight: 400; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--card2);
  display: flex; align-items: center; justify-content: center; margin-bottom: auto; color: var(--gold);
}
.ico svg { width: 20px; height: 20px; }
.wide-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: var(--card); color: var(--text); border-radius: 20px; padding: 16px; font-weight: 400;
}
.wide-card b { display: block; font-size: 15px; font-weight: 600; }
.chev { font-size: 24px; color: var(--muted); line-height: 1; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Пилюли, чипы, переключатель-сегмент */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  width: auto; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--card2); color: var(--text);
}
.chip.on { background: var(--gold); color: var(--gold-text); }
.seg { display: flex; background: var(--card2); border-radius: 999px; padding: 4px; gap: 2px; margin-top: 4px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 999px; font-size: 13px; font-weight: 500; background: transparent; color: var(--muted); }
.seg button.on { background: var(--gold); color: var(--gold-text); font-weight: 600; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--text); }
.pill.gold { background: var(--gold); color: var(--gold-text); }
.bar { height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* Раскрывающиеся блоки (коммуналка, авто, женский цикл) */
details.fold { background: var(--card); border-radius: 20px; padding: 0 16px; }
details.fold summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 0; font-weight: 700; font-size: 16px; cursor: pointer;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary .muted { font-weight: 400; margin-left: auto; }
details.fold summary::after { content: "›"; font-size: 22px; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
details.fold[open] summary::after { transform: rotate(-90deg); }
.fold-body { padding-bottom: 16px; }
.fold-body > button { width: 100%; }
details.fold.pink { background: var(--pink-soft); }
details.fold.pink summary { color: var(--pink); }
details.fold.pink .fold-body > button { background: var(--pink); color: #1c1013; }

/* Шторка снизу */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(0, 0, 0, .55);
}
.sheet {
  background: var(--card); border-radius: 26px 26px 0 0;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  max-height: 88vh; overflow-y: auto;
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } details.fold summary::after { transition: none; } }
.grab { width: 40px; height: 5px; border-radius: 999px; background: var(--card2); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.sheet-close { flex: none; width: 38px; height: 38px; border-radius: 50%; padding: 0; background: var(--card2); color: var(--text); font-size: 16px; }

/* Погода в шторке */
.weather-now { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.weather-now .big { font-size: 46px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.hour { flex: none; min-width: 72px; background: var(--card2); border-radius: 16px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hour b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* Темы в настройках */
.theme-list { display: flex; flex-direction: column; gap: 8px; }
.theme-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card2); color: var(--text); font-weight: 500; }
.theme-opt.on { outline: 2px solid var(--gold); }
.sw { width: 34px; height: 22px; border-radius: 8px; flex: none; }
.sw-auto { background: linear-gradient(90deg, #f4eee8 50%, #150e09 50%); }
.sw-latte { background: linear-gradient(90deg, #f4eee8 50%, #b88150 50%); }
.sw-caramel { background: linear-gradient(90deg, #150e09 50%, #b67f4e 50%); }
.sw-noir { background: linear-gradient(90deg, #0b0b0b 50%, #c9a96e 50%); }
.sw-rose { background: linear-gradient(90deg, #1c1416 50%, #d4a5a5 50%); }

/* История визитов и фото */
.visit { border-bottom: 1px solid var(--line); padding: 10px 0; }
.visit:last-child { border-bottom: 0; }
.photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; flex: none; }
.client-row { cursor: pointer; }

/* ---------- Наполнение: записи, статусы, график, коммуналка, авто, подписка ---------- */
.tabbar button { position: relative; }
.badge {
  position: absolute; top: 0; left: 50%; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.quick-card.hi { background: var(--hero); color: var(--hero-text); }
.quick-card.hi span { color: inherit; opacity: .75; }
.quick-card.hi .ico { background: rgba(255, 255, 255, .12); color: var(--hero-text); opacity: 1; }
.wide-card.attention { background: var(--hl); color: var(--hl-text); }
.wide-card.attention .muted, .wide-card.attention .chev { color: inherit; opacity: .8; }
.banner { background: var(--hl); color: var(--hl-text); border-radius: 18px; padding: 12px 16px; font-weight: 600; }
.note-box { background: var(--card2); border-radius: 16px; padding: 12px 14px; margin-top: 10px; }
.warn-text { color: var(--bad); font-weight: 600; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.bk { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bk .row { border: 0; padding: 0 0 6px; }
.bk.over { background: var(--bad-soft); border-radius: 16px; padding: 12px; margin: 6px 0; border-bottom: 0; }
.bk.cancelled { opacity: .55; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bk-actions button, .btn-sm { width: auto; margin: 0; padding: 9px 13px; font-size: 13px; border-radius: 12px; }
.btn-sm { display: inline-block; background: var(--card2); color: var(--text); text-decoration: none; font-weight: 500; }
.clash { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--bad-soft); font-size: 13px; }
.row-actions { display: flex; gap: 6px; flex: none; }
h3.sub { font-size: 12px; margin: 16px 0 2px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.sched { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.chip.paid { background: var(--ok-soft); color: var(--ok); }
.chip.unpaid { background: var(--bad-soft); color: var(--bad); }
.util { padding: 10px 0; border-bottom: 1px solid var(--line); }
.car-line { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--card2); font-size: 14px; }
.car-line.ok { background: var(--ok-soft); color: var(--ok); }
.car-line.warn { background: var(--warn-soft); color: var(--warn); }
.car-line.bad { background: var(--bad-soft); color: var(--bad); }
.goal { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.plan { background: var(--card2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.plan b { font-size: 19px; }
.plan.hi { background: var(--hero); color: var(--hero-text); }
.plan.hi .muted { color: inherit; opacity: .8; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.pick { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--gold); }
textarea { resize: vertical; }
.two > button { width: 100%; margin-top: 8px; }

/* Пересечение задачи с записью: блок на всю ширину, кнопки строки — под ним */
.row:has(.clash) { flex-wrap: wrap; }
.row:has(.clash) > span:first-child { flex-basis: 100%; }
.row:has(.clash) > .row-actions { margin-left: auto; }

/* Записная книжка */
.ci-row { border-bottom: 1px solid var(--line); }
.ci-row input:disabled + span { opacity: .55; }
details.howto { margin-top: 12px; }
details.howto summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 14px; }

/* Этап 1: краски, покупки, приёмы пищи */
.paint-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.paint-row:last-child { border-bottom: 0; }
.g-in { width: 84px; flex: none; margin: 4px 0; padding: 9px 10px; text-align: center; }
.sched.meal { grid-template-columns: 1fr 150px; }
button:disabled { opacity: .6; cursor: default; }

.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--text,#2a1d14);color:var(--bg,#fff);padding:10px 18px;border-radius:999px;font-size:15px;z-index:1000;box-shadow:0 6px 20px rgba(0,0,0,.25);pointer-events:none}
.acc-chip{flex:none;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:999px;background:var(--card);color:var(--text);padding:7px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.topbar h1{flex:1;min-width:0}
/* Экран входа */
.login{position:fixed;inset:0;z-index:50;background:var(--bg);overflow-y:auto;display:flex;justify-content:center;padding:max(40px,env(safe-area-inset-top)) 16px 32px}
.login-in{width:100%;max-width:380px;text-align:center}
.login-logo{width:72px;height:72px;margin:10px auto 8px;border-radius:20px;display:grid;place-items:center;font-family:var(--display);font-size:40px;font-weight:700;color:#f4eee8;background:linear-gradient(145deg,#b07a4f,#6e4428)}
.login h1{font-family:var(--display);font-size:32px;margin:6px 0 4px}
.lg-btn{display:block;width:100%;margin:0 0 10px;padding:14px;border-radius:14px;border:1px solid var(--line,#e2d6ca);background:var(--card);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.lg-btn:disabled{opacity:.55;cursor:default}
.lg-slot{display:flex;justify-content:center;margin-bottom:10px;min-height:0}
.lg-slot:empty{display:none}
#lg-form{text-align:left;margin-top:6px}

/* Цветовые схемы TalantTime (по профессии): Beauty, Service, Medical, Sales, Creative.
   Действуют в темах «Как в телефоне», «Светлая», «Тёмная». */
:root[data-scheme="beauty"]:not([data-theme]), :root[data-scheme="beauty"][data-theme="latte"] { --bg: #f7eff1; --card2: #f3e5e9; --text: #2e1a20; --muted: #8d7479; --gold: #9e4f68; --gold-soft: #f5e1e7; --gold-text: #ffffff; --line: #efdfe4; --chip: #f4e4e9; --hero: #4a2230; --hero-text: #fbf0f3; --pink: #c26f86; --pink-soft: #f8e6ec; }
@media (prefers-color-scheme: dark) { :root[data-scheme="beauty"]:not([data-theme]) { --bg: #170d10; --card: #22151a; --card2: #2d1c22; --text: #f6eaee; --muted: #b09aa1; --gold: #d690a4; --gold-soft: #43262f; --gold-text: #1f0f14; --line: #33222a; --field: #1c1115; --chip: #2d1c22; --hero: #4a2533; --hero-text: #f6eaee; --pink: #e39aae; --pink-soft: #45262f; } }
:root[data-scheme="beauty"][data-theme="caramel"] { --bg: #170d10; --card: #22151a; --card2: #2d1c22; --text: #f6eaee; --muted: #b09aa1; --gold: #d690a4; --gold-soft: #43262f; --gold-text: #1f0f14; --line: #33222a; --field: #1c1115; --chip: #2d1c22; --hero: #4a2533; --hero-text: #f6eaee; --pink: #e39aae; --pink-soft: #45262f; }
:root[data-scheme="service"]:not([data-theme]), :root[data-scheme="service"][data-theme="latte"] { --bg: #eef1f5; --card2: #e6ebf1; --text: #1c2430; --muted: #6f7b8a; --gold: #4d6889; --gold-soft: #dfe6ef; --gold-text: #ffffff; --line: #dde3ea; --chip: #e4e9f0; --hero: #2c3a4e; --hero-text: #f1f4f8; --pink: #5f7fa6; --pink-soft: #e3eaf3; }
@media (prefers-color-scheme: dark) { :root[data-scheme="service"]:not([data-theme]) { --bg: #0d1117; --card: #161c24; --card2: #1f2731; --text: #e8edf3; --muted: #96a2b1; --gold: #8aa5c8; --gold-soft: #26313f; --gold-text: #0d1117; --line: #252e39; --field: #121820; --chip: #1f2731; --hero: #2a3646; --hero-text: #e8edf3; --pink: #9db6d6; --pink-soft: #26313f; } }
:root[data-scheme="service"][data-theme="caramel"] { --bg: #0d1117; --card: #161c24; --card2: #1f2731; --text: #e8edf3; --muted: #96a2b1; --gold: #8aa5c8; --gold-soft: #26313f; --gold-text: #0d1117; --line: #252e39; --field: #121820; --chip: #1f2731; --hero: #2a3646; --hero-text: #e8edf3; --pink: #9db6d6; --pink-soft: #26313f; }
:root[data-scheme="medical"]:not([data-theme]), :root[data-scheme="medical"][data-theme="latte"] { --bg: #edf5f7; --card2: #e2eff2; --text: #12262c; --muted: #67808a; --gold: #237f94; --gold-soft: #d6ecf1; --gold-text: #ffffff; --line: #d8e8ec; --chip: #e0eef1; --hero: #0f4553; --hero-text: #eef8fa; --pink: #3a9bb0; --pink-soft: #dbeff3; }
@media (prefers-color-scheme: dark) { :root[data-scheme="medical"]:not([data-theme]) { --bg: #08141a; --card: #10202a; --card2: #182b36; --text: #e6f3f6; --muted: #8fa9b1; --gold: #5cbfd3; --gold-soft: #173a45; --gold-text: #06141a; --line: #1d323c; --field: #0c1a21; --chip: #182b36; --hero: #134454; --hero-text: #e6f3f6; --pink: #7ccfe0; --pink-soft: #173a45; } }
:root[data-scheme="medical"][data-theme="caramel"] { --bg: #08141a; --card: #10202a; --card2: #182b36; --text: #e6f3f6; --muted: #8fa9b1; --gold: #5cbfd3; --gold-soft: #173a45; --gold-text: #06141a; --line: #1d323c; --field: #0c1a21; --chip: #182b36; --hero: #134454; --hero-text: #e6f3f6; --pink: #7ccfe0; --pink-soft: #173a45; }
:root[data-scheme="sales"]:not([data-theme]), :root[data-scheme="sales"][data-theme="latte"] { --bg: #f6f0e6; --card2: #f1e8da; --text: #2a2016; --muted: #8a7a63; --gold: #a9823c; --gold-soft: #f1e4c8; --gold-text: #ffffff; --line: #ebe0cf; --chip: #efe4d3; --hero: #2e2419; --hero-text: #fbf3e3; --pink: #c59a4e; --pink-soft: #f5e9d0; }
@media (prefers-color-scheme: dark) { :root[data-scheme="sales"]:not([data-theme]) { --bg: #110d09; --card: #1c1712; --card2: #26201a; --text: #f5ede0; --muted: #a39783; --gold: #d1ad6a; --gold-soft: #3a3022; --gold-text: #15100b; --line: #2b241c; --field: #16120e; --chip: #26201a; --hero: #3a2e20; --hero-text: #f5ede0; --pink: #e0c085; --pink-soft: #3a3022; } }
:root[data-scheme="sales"][data-theme="caramel"] { --bg: #110d09; --card: #1c1712; --card2: #26201a; --text: #f5ede0; --muted: #a39783; --gold: #d1ad6a; --gold-soft: #3a3022; --gold-text: #15100b; --line: #2b241c; --field: #16120e; --chip: #26201a; --hero: #3a2e20; --hero-text: #f5ede0; --pink: #e0c085; --pink-soft: #3a3022; }
:root[data-scheme="creative"]:not([data-theme]), :root[data-scheme="creative"][data-theme="latte"] { --bg: #f4eff7; --card2: #ece3f2; --text: #241a2c; --muted: #7d7088; --gold: #7d4f9c; --gold-soft: #ebdff3; --gold-text: #ffffff; --line: #e6dcee; --chip: #ebe1f2; --hero: #3c1f4f; --hero-text: #f7f0fb; --pink: #a873c6; --pink-soft: #efe3f6; }
@media (prefers-color-scheme: dark) { :root[data-scheme="creative"]:not([data-theme]) { --bg: #120c17; --card: #1d1524; --card2: #281e31; --text: #f1e9f6; --muted: #a697b2; --gold: #c39ad9; --gold-soft: #382745; --gold-text: #140c19; --line: #2e2338; --field: #17101d; --chip: #281e31; --hero: #3f2654; --hero-text: #f1e9f6; --pink: #d3aee6; --pink-soft: #382745; } }
:root[data-scheme="creative"][data-theme="caramel"] { --bg: #120c17; --card: #1d1524; --card2: #281e31; --text: #f1e9f6; --muted: #a697b2; --gold: #c39ad9; --gold-soft: #382745; --gold-text: #140c19; --line: #2e2338; --field: #17101d; --chip: #281e31; --hero: #3f2654; --hero-text: #f1e9f6; --pink: #d3aee6; --pink-soft: #382745; }
.login-logo{background:none!important;padding:0;overflow:hidden}
.login-logo img,.brand-logo{width:100%;height:100%;display:block;border-radius:inherit}
.scheme-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.scheme-opt{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;border:2px solid transparent;background:var(--card2);color:var(--text);font:inherit;text-align:left;cursor:pointer;margin:0;width:auto}
.scheme-opt.on{border-color:var(--gold)}
.scheme-opt .sw2{flex:none;width:30px;height:30px;border-radius:9px}
.about-brand{display:flex;align-items:center;gap:12px}
.about-brand img{width:52px;height:52px;border-radius:13px}

/* Меню «Сервисы» и «Настройки» по образцу «Дії» */
.m-search{display:flex;align-items:center;gap:8px;background:var(--card);border-radius:999px;padding:0 14px;height:42px}
.m-search svg{width:18px;height:18px;color:var(--muted);flex:none}
.m-search input{border:0;background:transparent;margin:0;padding:0;height:40px;box-shadow:none;outline:none;flex:1;font:inherit;color:var(--text)}
.svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.svc-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:18px;min-height:104px;margin:0;width:auto;
  padding:14px;border:0;border-radius:18px;background:var(--card);color:var(--text);font:inherit;text-align:left;cursor:pointer;box-shadow:none}
.svc-tile[hidden]{display:none}
.svc-tile b{font-size:14px;font-weight:600;line-height:1.25}
.svc-tile:active,.m-row:active{opacity:.7}
.svc-ico{width:36px;height:36px;border-radius:50%;background:var(--text);color:var(--bg);display:grid;place-items:center}
.svc-ico svg{width:19px;height:19px}
.m-head{display:flex;align-items:center;gap:12px;background:none;border:0;padding:4px 0;margin:0;width:auto;color:var(--text);font:inherit;font-size:18px;font-weight:600;cursor:pointer;box-shadow:none}
.m-head svg{width:24px;height:24px}
.m-wrap{display:flex;flex-direction:column;gap:12px}
.m-group{background:var(--card);border-radius:18px;padding:0 14px}
.m-row{display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:15px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:none;color:var(--text);font:inherit;font-size:15px;font-weight:500;text-align:left;cursor:pointer;box-shadow:none}
.m-row:last-child{border-bottom:0}
.m-row > span:not(.m-ico):not(.m-arrow){flex:1}
.m-ico{width:22px;height:22px;flex:none;display:grid;place-items:center}
.m-ico svg{width:21px;height:21px}
.m-arrow{width:24px;height:24px;flex:none;border-radius:50%;background:var(--text);color:var(--card);display:grid;place-items:center}
.m-arrow svg{width:14px;height:14px}
.m-exit{display:block;margin:10px auto 0;width:auto;min-width:150px;padding:13px 36px;border:0;border-radius:999px;background:var(--text);color:var(--bg);font:inherit;font-weight:600;cursor:pointer}

/* Календарь на весь экран */
body.cal-mode .topbar { display: none; }
body.cal-mode main { padding-top: 0; }
.cal2 { display: flex; flex-direction: column; gap: 10px; }
.cal-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); padding: 12px 0 6px; }
.cal-title { background: none; border: 0; margin: 0; padding: 0; width: auto; color: var(--text); font: inherit; font-family: var(--display); font-size: 22px; font-weight: 700; text-align: left; cursor: pointer; box-shadow: none; }
.cal-title::first-letter { text-transform: uppercase; }
.cal-title .caret { font-size: 14px; color: var(--muted); }
.cal-nav { display: flex; gap: 4px; flex: none; }
.cal-nav button { margin: 0; width: auto; padding: 7px 11px; border: 0; border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; box-shadow: none; }
.cal-seg { margin: 0; }
.cal-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-strip button { margin: 0; padding: 6px 0; border: 0; border-radius: 14px; background: transparent; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; box-shadow: none; }
.cal-strip span { font-size: 11px; color: var(--muted); }
.cal-strip b { font-size: 16px; }
.cal-strip .today b { color: var(--gold); }
.cal-strip .sel { background: var(--gold); }
.cal-strip .sel b, .cal-strip .sel span { color: var(--gold-text); }
.cal-body { background: var(--card); border-radius: 20px; padding: 10px 8px 10px 0; }
.cal-grid { display: grid; grid-template-columns: 46px 1fr; }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-times span:first-child { transform: none; }
.cal-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.cal-hl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.cal-hl.half { border-top-style: dashed; opacity: .55; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--card2) 6px 8px); }
.cal-off.lunch { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--warn-soft) 5px 8px); }
.cal-off span { position: absolute; right: 6px; top: 2px; font-size: 10px; color: var(--muted); }
.cal-now { position: absolute; left: -4px; right: 0; border-top: 2px solid var(--bad); z-index: 3; }
.cal-now::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.cal-blk { position: absolute; z-index: 2; margin: 0 0 0 2px; padding: 4px 6px; border: 0; border-left: 3px solid var(--c); border-radius: 8px;
  background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--text); font: inherit; font-size: 12px; line-height: 1.25; text-align: left;
  overflow: hidden; display: flex; flex-direction: column; gap: 1px; box-shadow: none; cursor: pointer; }
.cal-blk.event, .cal-blk.task { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--card)) 0 8px, color-mix(in srgb, var(--c) 22%, var(--card)) 8px 10px); }
.cal-blk.done { opacity: .5; text-decoration: line-through; }
.cal-blk b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-blk .t { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-blk .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-grid.week .cal-blk { padding: 2px 3px; margin-left: 1px; }
.cal-grid.week .cal-blk b { font-size: 10px; white-space: normal; }
.cal-whead { display: grid; grid-template-columns: 46px repeat(7, 1fr); margin-bottom: 6px; }
.cal-whead button { margin: 0; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; display: flex; flex-direction: column; align-items: center; box-shadow: none; border-radius: 10px; }
.cal-whead b { font-size: 15px; color: var(--text); }
.cal-whead .today b { color: var(--gold); }
.cal-whead .sel { background: var(--gold-soft); }
.cal-month { padding-left: 8px; }
.cal-mh, .cal-mg { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-mh span { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.cal-mc { margin: 0; min-height: 76px; padding: 3px 2px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font: inherit;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; box-shadow: none; overflow: hidden; }
.cal-mc .n { font-size: 13px; font-weight: 600; text-align: center; }
.cal-mc.other { opacity: .35; }
.cal-mc.off .n { color: var(--muted); }
.cal-mc.today .n { color: var(--gold-text); background: var(--gold); border-radius: 999px; align-self: center; min-width: 22px; }
.cal-mc .bar { font-size: 9px; line-height: 1.3; padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--c) 18%, var(--card)); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-mc .more { font-size: 9px; color: var(--muted); text-align: center; }
.cal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-foot button { margin: 0; width: 100%; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b::first-letter { text-transform: uppercase; }
.dp-head button { margin: 0; width: 40px; padding: 6px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-grid button { margin: 0; padding: 9px 0; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; box-shadow: none; }
.dp-grid .other { opacity: .35; }
.dp-grid .today { color: var(--gold); font-weight: 700; }
.dp-grid .sel { background: var(--gold); color: var(--gold-text); }
.dp-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-v { margin: 0; padding: 14px 0; border-radius: 14px; background: var(--card2); color: var(--text); border: 2px solid transparent; box-shadow: none; }
.dp-v.on { border-color: var(--gold); background: var(--gold-soft); }
.add-choose { display: grid; gap: 10px; }
.add-choose button { margin: 0; padding: 16px; border-radius: 16px; background: var(--card2); color: var(--text); border: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; box-shadow: none; }
.add-choose span { font-size: 13px; color: var(--muted); font-weight: 400; }
.ev-cats .chip.on { background: var(--c); color: #fff; }
.vd-card { background: color-mix(in srgb, var(--c) 12%, var(--card)); border-left: 4px solid var(--c); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.bs-res { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bs-hit { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: var(--card2); color: var(--text); font: inherit; text-align: left; box-shadow: none; }
.bs-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--gold-soft); margin-bottom: 4px; }
.bs-chosen button { margin: 0; width: auto; padding: 7px 12px; }
.svc-tile { position: relative; }
.svc-tile.alert .svc-ico { background: var(--bad); color: #fff; }
.svc-badge { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.uc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.uc-row:last-child { border-bottom: 0; }
.uc-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
.uc-act button { margin: 0; width: auto; padding: 7px 12px; font-size: 13px; }
/* Сервисы по категориям — в стиле карточек TalantTime */
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-card { position: relative; border-radius: 22px; padding: 16px 16px 10px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--card) 62%); box-shadow: 0 1px 0 var(--line) inset; }
.cat-card.alert { box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent) inset; }
.cat-top { display: flex; align-items: center; gap: 14px; }
.cat-mark { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--gold-soft);
  background: linear-gradient(150deg, color-mix(in srgb, var(--hero) 70%, var(--gold)) 0%, var(--hero) 70%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--hero) 30%, transparent); }
.cat-mark svg { width: 27px; height: 27px; stroke-width: 1.7; }
.cat-mark.big { width: 64px; height: 64px; border-radius: 19px; }
.cat-mark.big svg { width: 32px; height: 32px; }
.cat-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cat-txt b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.cat-txt span { font-size: 13px; color: var(--gold); font-weight: 500; }
.cat-icons { display: flex; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.cat-ic { flex: 1; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--text); display: grid; place-items: center; box-shadow: none; position: relative; }
.cat-ic + .cat-ic { border-left: 1px solid var(--line); }
.cat-ic svg { width: 23px; height: 23px; }
.cat-ic.hot::after, .m-ico.hot::after { content: ""; position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.m-ico { position: relative; }
.m-ico.hot::after { top: -2px; right: -3px; }
.cat-hero { display: flex; align-items: center; gap: 14px; padding: 6px 2px 4px; }
.cat-list[hidden], #svc-found[hidden] { display: none; }
.m-row .svc-badge { flex: none !important; }
.cat-mark { color: color-mix(in srgb, var(--gold) 35%, #fff); }
/* Главная: новая запись с полосой занятости, клиенты сегодня, блокнот */
.hb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.hb-days button { margin: 0; padding: 6px 0; border: 0; border-radius: 12px; background: var(--card2); color: var(--text); display: flex; flex-direction: column; align-items: center; font: inherit; box-shadow: none; }
.hb-days span { font-size: 10px; color: var(--muted); }
.hb-days b { font-size: 15px; }
.hb-days .off { opacity: .45; }
.hb-days .sel { background: var(--gold); }
.hb-days .sel span, .hb-days .sel b { color: var(--gold-text); }
.hb-bar { position: relative; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 18%, var(--card)); overflow: hidden; }
.hb-bar i { position: absolute; top: 0; bottom: 0; }
.hb-off { background: repeating-linear-gradient(135deg, var(--card2) 0 5px, var(--line) 5px 7px); }
.hb-lunch { background: repeating-linear-gradient(135deg, var(--warn-soft) 0 5px, color-mix(in srgb, var(--warn) 35%, var(--card)) 5px 7px); }
.hb-busy { background: var(--c); border-left: 1px solid var(--card); border-right: 1px solid var(--card); }
.hb-busy.event, .hb-busy.task { background: repeating-linear-gradient(135deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 60%, var(--card)) 5px 8px); }
.hb-now { width: 2px; background: var(--bad); }
.hb-ticks { position: relative; height: 16px; margin: 2px 0 4px; }
.hb-ticks span { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.hb-ticks span:first-child { transform: none; }
.hb-ticks span:last-child { transform: translateX(-100%); }
.hb-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.hb-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.lg.busy { background: var(--gold); } .lg.free { background: color-mix(in srgb, var(--ok) 35%, var(--card)); } .lg.lunch { background: var(--warn-soft); border: 1px solid var(--warn); }
.hb-gaps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hb-gaps button { margin: 0; width: auto; padding: 7px 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); font: inherit; font-size: 13px; font-weight: 600; box-shadow: none; font-variant-numeric: tabular-nums; }
.ht-row { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; box-shadow: none; }
.ht-row:last-of-type { border-bottom: 0; }
.ht-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.ht-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 22%, transparent); }
.ht-dot.ok { background: var(--ok); } .ht-dot.warn { background: var(--warn); }
.ht-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ht-main .muted { font-size: 12px; }
.ht-time { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-add { display: flex; gap: 8px; margin-bottom: 4px; }
.nb-add input { margin: 0; flex: 1; }
.nb-add button { margin: 0; width: 46px; flex: none; font-size: 22px; padding: 0; }
.nb-list { display: flex; flex-direction: column; }
.nb-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 15px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 400; }
.nb-row input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.nb-row.done span { text-decoration: line-through; color: var(--muted); }
.nb-more { display: block; margin: 8px auto 0; }
/* Склад */
.st-row { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; box-shadow: none; cursor: pointer; }
.st-row:last-of-type { border-bottom: 0; }
.st-main { display: flex; flex-direction: column; }
.st-main .muted { font-size: 12px; }
.st-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-nums > span { background: var(--card2); border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; }
.st-nums b { font-size: 17px; font-variant-numeric: tabular-nums; }
.st-nums i { font-style: normal; font-size: 11px; color: var(--muted); }
.st-nums .low { background: var(--bad-soft); }
.st-nums .low b { color: var(--bad); }
.pr-in { width: 92px; }
/* Финансы: доход по категориям */
.inc-cat { background: var(--card2); margin-top: 8px; }
.inc-cat summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.inc-name { font-weight: 600; }
.inc-sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.inc-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.inc-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.inc-cat > summary { display: grid !important; }
.inc-cat .row > span:last-child, .card .row > span:last-child { white-space: nowrap; }
.rg-profs { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-profs .chip { margin: 0; }
.rg-profs .chip.on { background: var(--gold); color: var(--gold-text); }
.login-in label { text-align: left; display: block; }

/* ---------- Замечания тестировщика 04.11: размер нажатия, отклик, ошибки полей, вопрос при закрытии ---------- */
/* 1. Область нажатия не меньше 44 px (Apple HIG / Material). */
.chip-btn, .chip, button.link, .hb-gaps button, .row button, .row .btn-sm, .row-actions .secondary, .row-actions .btn-sm, .cat-ic, .m-search input { min-height: 44px; }
.chip { padding: 10px 16px; }
button.link { display: inline-flex; align-items: center; }
.row-actions .secondary, .row-actions .btn-sm, .cal-nav button { min-width: 44px; justify-content: center; }
.cal-nav button { min-height: 44px; }
.sheet-close { width: 44px; height: 44px; }
.seg button { min-height: 40px; }
.hb-days { gap: 3px; } .hb-days button { min-height: 52px; }
.cal-strip { gap: 3px; }
a.muted, .card a.link, a.link { display: inline-block; padding-block: 12px; }
/* 3. Отклик на нажатие у всех кнопок и ссылок-кнопок. */
* { -webkit-tap-highlight-color: transparent; }
button, .btn, .btn-sm, a.btn-sm, .chip, .wide-card, .m-row, .svc-tile, .cat-card, .row[data-open], [role="button"] { transition: transform .08s ease, filter .08s ease, opacity .08s ease; }
button:active:not(:disabled), .btn:active, .btn-sm:active, .chip:active, .wide-card:active, .cat-card:active, [role="button"]:active { transform: scale(.96); filter: brightness(.9); }
button.link:active, a.link:active { opacity: .6; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { button:active:not(:disabled), .btn:active, .btn-sm:active, .chip:active, .wide-card:active, .cat-card:active, [role="button"]:active { transform: none; } }
/* 2. Ошибки заполнения прямо у поля. */
.field-err { border-color: var(--bad) !important; box-shadow: 0 0 0 2px var(--bad-soft) !important; }
.field-hint { display: block; color: var(--bad); font-size: 12px; margin: -4px 0 8px; }
/* 4. Вопрос при закрытии заполненной формы. */
.ask-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ask { background: var(--card); color: var(--text); border-radius: 20px; padding: 18px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.ask h3 { margin: 0; font-size: 17px; } .ask p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.ask button { width: 100%; margin: 0; justify-content: center; }
.row > span { overflow-wrap: anywhere; } .row > span:first-child { flex: 1 1 auto; } .row > span:last-child:not(:first-child) { flex: 0 1 auto; text-align: right; }
main { overflow-x: clip; }

/* Шапка главной: логотип + название, под ним салон или мастер */
.brand-row { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.brand-sub { display: block; margin-top: 2px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Погода в шапке: иконка с движением по типу погоды (отключается при «уменьшить движение») */
.wx { display: inline-block; transform-origin: 50% 60%; }
.wx-sun { animation: wx-spin 12s linear infinite; }
.wx-cloud { animation: wx-drift 4s ease-in-out infinite; }
.wx-fog { animation: wx-drift 6s ease-in-out infinite; opacity: .8; }
.wx-rain { animation: wx-bob 1.6s ease-in-out infinite; }
.wx-snow { animation: wx-spin 8s linear infinite; }
.wx-storm { animation: wx-flash 1.8s steps(2, end) infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-drift { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes wx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes wx-flash { 0% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .wx { animation: none !important; } }

/* Сервисы: компактная сетка значков без крупных карточек */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-list[hidden] { display: none; }
.svc-sec { background: var(--card); border-radius: 18px; padding: 8px 8px 4px; }
.svc-h { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 4px; padding: 4px 6px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; box-shadow: none; }
.svc-h.alert { color: var(--bad); }
.svc-more { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; }
.svc-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.svc-grid4 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.svc-ic { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 6px 2px; min-width: 0; min-height: 0; border: 0; background: none; color: var(--text); box-shadow: none; }
.svc-glyph { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--text); }
.svc-glyph svg { width: 18px; height: 18px; }
.svc-lbl { font-size: 10.5px; line-height: 1.15; text-align: center; color: var(--muted); max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-ic.hot::after { content: ""; position: absolute; top: 4px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

/* Масштаб дневной сетки календаря */
.cal-zoom { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 4px; }
.cal-zoom .muted { font-size: 12px; margin-right: 4px; }
.cal-zoom button { width: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: 18px; font-weight: 600; box-shadow: none; }


/* Дела и заметки: вкладки категорий, «Срочно», переносы (tasks2.js) */
.tt-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 10px; padding: 2px 4px; }
.tt-tabs::-webkit-scrollbar { display: none; }
.tt-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; box-shadow: none; }
.tt-tab.on { background: var(--c); border-color: var(--c); color: #fff; }
.tt-tab i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.tt-tab.on i { background: rgba(255,255,255,.25); color: #fff; }
.tt-tab.edit { color: var(--muted); padding: 6px 10px; }
.tt-add select { flex: none; width: auto; max-width: 112px; margin: 0; }
.tt-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tt-row:last-child { border-bottom: 0; }
.tt-cb { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c); }
.tt-txt { flex: 1; min-width: 0; width: auto; min-height: 0; margin: 0; padding: 2px 0; border: 0; background: none; box-shadow: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 400; text-align: left; }
.tt-row.done .tt-txt { color: var(--muted); }
.tt-row.done .tt-txt { text-decoration: line-through; text-decoration-color: var(--line); }
.tt-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.tt-tag.ok { background: var(--ok-soft); color: var(--ok); }
.tt-cat { margin-left: 6px; font-size: 11px; color: var(--muted); }
.tt-urg { flex: none; width: 28px; height: 28px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: 8px; background: none; box-shadow: none; color: var(--line); font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.tt-urg.on { border-color: #a4503f; color: #a4503f; background: color-mix(in srgb, #a4503f 12%, transparent); }
.tt-q { margin: 0 0 8px; }
.tt-nadd textarea { margin: 0; }
.tt-nbar { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.tt-nbar button { margin: 0; width: auto; }
.tt-nbar #tt-rec { flex: 1; font-size: 13px; }
.tt-mic.rec { background: #a4503f; color: #fff; }
.tt-note { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.tt-note[hidden], .tt-q + .tt-nadd [hidden] { display: none; }
.tt-note p { margin: 0; white-space: pre-wrap; cursor: pointer; }
.tt-note audio { display: block; width: 100%; height: 36px; margin-top: 6px; }
.tt-note small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.tt-crow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tt-crow input { flex: 1; margin: 0; }
.tt-crow .muted { font-size: 12px; }
.tt-cdel { width: 40px; min-height: 40px; margin: 0; padding: 0; flex: none; }
.tt-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.tt-sh { margin: 14px 0 6px; font-size: 15px; }
.tt-sh:first-child { margin-top: 0; }
/* Знак TalantTime в шапке — кнопка шторки «Сегодня» */
.logo-btn { position: relative; flex: none; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.logo-btn img { display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.logo-btn b { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #a4503f; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Названия страниц — фирменная бронза как на логотипе (металлический отлив) */
:root { --brand-grad: linear-gradient(100deg, #8a6436 0%, #b48a52 34%, #d4b27c 50%, #a8804a 66%, #7e5b31 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --brand-grad: linear-gradient(100deg, #b08550 0%, #d0aa70 34%, #ecd09c 50%, #c69e64 66%, #a07642 100%); } }
.topbar h1:not(:has(.brand-row)), .topbar h1 .brand-row, .cal-title {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #9a7240;
}
.topbar h1 .brand-sub, .cal-title .caret { -webkit-text-fill-color: var(--muted); }
.cal-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Шапка календаря со знаком: заголовок в одну строку */
.cal-brand { flex: 1; }
.cal-brand .logo-btn { width: 34px; height: 34px; }
.cal-brand .logo-btn img { border-radius: 10px; }
.cal-brand .cal-title { min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar .cal-nav { flex: none; }
.cal-bar .cal-nav button { min-width: 38px; padding-left: 10px; padding-right: 10px; }

/* Долгое нажатие на дело: выбор цвета категории */
.tt-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tt-row.picking { background: color-mix(in srgb, var(--gold) 10%, transparent); border-radius: 10px; }
.tt-pick { position: fixed; z-index: 60; max-width: calc(100vw - 16px); padding: 10px; border-radius: 16px; background: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid var(--line); }
.tt-pick p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.tt-pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-pick-row button { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 36px; margin: 0; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; box-shadow: none; }
.tt-pick-row button span { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.tt-pick-row button.on { border-color: var(--text); }

/* Справи: «Позже», дата в правке, подсказка с отменой, новая категория в панели */
.tt-later { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.tt-later summary { cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
.tt-later summary::-webkit-details-marker { display: none; }
.tt-later summary::before { content: "›"; display: inline-block; transition: transform .15s; }
.tt-later[open] summary::before { transform: rotate(90deg); }
.tt-later summary i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; display: grid; place-items: center; }
.tt-dt { display: flex; gap: 10px; }
.tt-dt > div { flex: 1; min-width: 0; }
.tt-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tt-toast span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-toast button { flex: none; width: auto; min-height: 36px; margin: 0; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: inherit; font-weight: 700; box-shadow: none; }
.tt-pick-new { color: var(--muted) !important; }
.tt-pick-form { display: flex; gap: 6px; margin-top: 8px; }
.tt-pick-form[hidden] { display: none; }
.tt-pick-form input { flex: 1; min-width: 0; margin: 0; }
.tt-pick-form button { width: auto; margin: 0; padding: 0 16px; }

/* Справи: правка в строке, «Все дела», подходящий срок */
.tt-row.editing { display: block; padding: 6px 0 10px; }
.tt-ed input { margin: 0; }
.tt-ed-text { width: 100%; font-size: 16px; }
.tt-ed-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tt-ed-bar input[type="time"] { flex: 0 0 96px; min-width: 0; }
.tt-ed-bar input[type="date"] { flex: 1; min-width: 0; }
.tt-ed-bar button { flex: none; width: auto; min-height: 44px; margin: 0; padding: 0 14px; box-shadow: none; }
.tt-ed-del { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.tt-tag.soon { background: var(--warn-soft, #f6ead6); color: var(--warn, #b7832f); }
.tt-tag.late { background: color-mix(in srgb, #a4503f 14%, transparent); color: #a4503f; }
.tt-cat { white-space: nowrap; }

/* Клиенты: группы, связь (clients2.js) */
.cg-head { margin: 0 0 6px; }
.cg-add { width: 100%; margin: 2px 0 8px; }
.cg-empty { margin: 6px 0; }
.client-row[hidden] { display: none !important; }
.cg-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.cg-dots i { width: 8px; height: 8px; border-radius: 50%; }
.tt-pick-row button span { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.cm-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cm-btn { display: inline-flex; align-items: center; gap: 5px; width: auto; min-height: 40px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: none; }
.cm-btn.off { opacity: .45; }
.cm-btn.add { color: var(--muted); min-width: 40px; justify-content: center; }
.cg-card { margin: 6px 0 10px; }

/* Запись: новый клиент, источники поиска */
.tag-new { display: inline-block; margin: 0 6px 0 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--olive, #7d8452) 18%, transparent); color: var(--olive, #6f7746); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.bs-src { display: flex; gap: 6px; margin-top: 6px; }
.bs-src button { flex: 1; margin: 0; width: auto; font-size: 14px; }
.bs-src button.on { background: var(--gold-soft); }
.bs-hint { margin: 6px 0 0; font-size: 13px; }
.bs-newtag { margin: 10px 0 0; font-size: 14px; }
.bs-res.all { max-height: 46vh; overflow-y: auto; }
.cg-newbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 2px; font-size: 13px; }
.cg-newbar .link { margin-left: auto; }

/* Аккаунт и способы входа */
.acc-list { display: flex; flex-direction: column; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-row:first-child { border-top: 0; }
.acc-row .link { margin: 0; width: auto; }
.acc-uid { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.acc-warn { margin: 10px 0 6px; padding: 8px 12px; border-radius: 12px; background: var(--warn-soft, #f6ead6); color: var(--warn, #9a6a1f); font-size: 14px; }
.acc-btn { display: block; width: 100%; margin: 8px 0 0; text-align: center; padding: 12px; box-sizing: border-box; }

/* Сервисы: плитки категорий; переход между разделами свайпом */
.svc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.svc-tiles[hidden] { display: none; }
.svc-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; width: auto; min-width: 0; min-height: 0; margin: 0; padding: 14px 6px 12px; border: 0; border-radius: 18px; background: var(--card); color: var(--text); box-shadow: none; font: inherit; }
.svc-tile .svc-glyph { position: relative; width: 48px; height: 48px; border-radius: 15px; }
.svc-tile .svc-glyph svg { width: 24px; height: 24px; }
.svc-tile .svc-glyph b { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; }
.svc-tile .svc-lbl { font-size: 13px; font-weight: 600; color: var(--text); }
@keyframes nav-l { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes nav-r { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
.nav-in-l { animation: nav-l .22s ease-out; }
.nav-in-r { animation: nav-r .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .nav-in-l, .nav-in-r { animation: none; } }

/* Основной логотип (прозрачный) на фоне цветовой схемы; одинаковые значки тем и схем */
.logo-btn img, .login-logo img, .about-brand img { background: var(--gold-soft); padding: 3px; box-sizing: border-box; object-fit: contain; }
.login-logo { border-radius: 20px; }
.theme-opt .sw, .scheme-opt .sw2 { flex: none; width: 40px; height: 40px; border-radius: 12px; background-color: transparent;
  background-image: url("logo-mark.png"), var(--sw-bg); background-size: 78%, cover; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2px var(--sw-acc, var(--line)); }
.sw-auto { --sw-bg: linear-gradient(135deg, #f4eee8 50%, #150e09 50%); --sw-acc: #b88150; }
.sw-latte { --sw-bg: linear-gradient(#f4eee8, #f4eee8); --sw-acc: #b88150; }
.sw-caramel { --sw-bg: linear-gradient(#150e09, #150e09); --sw-acc: #b67f4e; }
.sw-noir { --sw-bg: linear-gradient(#0b0b0b, #0b0b0b); --sw-acc: #c9a96e; }
.sw-rose { --sw-bg: linear-gradient(#1c1416, #1c1416); --sw-acc: #d4a5a5; }
.scheme-opt .sw2[style*="--sw-bg:#"] { background-image: url("logo-mark.png"), linear-gradient(var(--sw-bg), var(--sw-bg)); }

.svc-tile .svc-lbl { line-height: 1.2; text-align: center; overflow-wrap: anywhere; }

/* Курсы */
.cr-list { display: flex; flex-direction: column; gap: 10px; }
.cr-card h2 { margin: 6px 0 4px; }
.cr-card.draft { opacity: .7; }
.cr-top { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-type { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 700; }
.cr-desc { margin: 0 0 6px; white-space: pre-wrap; }
.cr-meta { margin: 0 0 10px; font-size: 14px; }
.cr-actions { display: flex; gap: 8px; }
.cr-actions button { flex: 1; margin: 0; }
#cr-type { flex-wrap: wrap; }

/* Магазин: категории товаров */
.sc-bar { margin: 10px -4px 4px; }
.sc-h { margin: 18px 4px 4px; font-size: 15px; color: var(--muted); }

.sc-tabs { margin: 10px 0 8px; }
#si-cat-sel { margin-bottom: 6px; }
.st-row[hidden] { display: none !important; }

/* Настройки плитками по группам */
.st-menu { display: flex; flex-direction: column; gap: 6px; }
.st-group[hidden] { display: none; }
.st-gt { margin: 14px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-tiles .m-row.st-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; width: auto; min-width: 0; min-height: 0; margin: 0; padding: 14px 6px 12px; border: 0; border-radius: 18px; background: var(--card); color: var(--text); text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; box-shadow: none; }
.st-tiles .m-row.st-tile[hidden] { display: none; }
.st-tiles .m-row.st-tile .m-ico { width: 48px; height: 48px; border-radius: 15px; background: var(--bg); display: grid; place-items: center; margin: 0; }
.st-tiles .m-row.st-tile .m-ico svg { width: 24px; height: 24px; }
.st-tiles .m-row.st-tile .m-arrow { display: none; }
/* Уведомления по категориям */
.nt-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px 14px; }
.nt-grid > b { font-size: 12px; color: var(--muted); text-align: center; }
.nt-grid > input { width: 22px; height: 22px; margin: 0 auto; accent-color: var(--gold); }
.nt-grid > span { font-size: 15px; }
/* Публичная карточка мастера */
.pc-contacts { display: grid; gap: 6px; }
.pc-contacts input { margin: 0; }
.pc-status { margin: 8px 0 0; }
#pc-radius-box[hidden] { display: none; }
/* Карточки клиентов (08.11.2026) */
.cc-bar { display: flex; gap: 8px; margin: 8px 0; }
.cc-bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cc-bar svg { width: 18px; height: 18px; }
.cc-search { margin: 0 0 6px; }
.cc-count { margin: 4px 2px 8px; font-size: 13px; }
.cc-list { display: flex; flex-direction: column; gap: 6px; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; box-shadow: none; }
.cc-main { display: flex; flex-direction: column; min-width: 0; }
.cc-main b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-sub { color: var(--muted); font-size: 12.5px; }
.cc-bot { margin-left: 6px; color: #2a8bc9; font-size: 12px; }
.cc-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 48%; }
.cc-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); white-space: nowrap; }
.cc-tag.none { --c: #9a8f84; font-weight: 600; }
.cc-h { margin: 12px 2px 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.cc-h i { font-style: normal; color: var(--muted); font-weight: 600; }
/* Направления работы: каталог профессий (08.11.2026) */
.pp-selbox { margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-sel { display: contents; }
.pp-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pp-search { flex: 1; margin: 0; }
.pp-add { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; padding: 0; font-size: 22px; }
.pp-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font: inherit; }
.pp-cat .svc-glyph svg { width: 26px; height: 26px; }
.pp-cl { font-size: 12px; line-height: 1.2; text-align: center; }
.pp-cat i { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--gold); color: #fff; border-radius: 999px; padding: 0 6px; }
.pp-plus { border-style: dashed; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pp-ct { margin: 4px 0 6px; }
.pp-sub { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pp-back { padding: 0; margin: 0 0 4px; }
.cal-free-note { text-align: center; margin: 0 0 6px; font-size: 13px; }
.ht-row.ht-free { border-style: dashed; background: transparent; }
.ht-free .ht-main b { color: #4f8a62; font-weight: 700; }
.ht-free .ht-dot { background: #4f8a62; }
.cal-blk.one { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.cal-blk.one .t { flex: 0 0 auto; }
.cal-blk.one b { flex: 1; min-width: 0; }
/* Календарь: «−/+» в строке вида — больше места под день (08.11.2026) */
.cal-segrow { display: flex; align-items: center; gap: 6px; }
.cal-segrow .cal-seg { flex: 1; margin-bottom: 0; }
.cal-segrow .cal-zoom { padding: 0; gap: 4px; }
.cal-segrow .cal-zoom button { width: 34px; min-height: 34px; }
.cal-segrow .cal-zoom button:disabled { opacity: .35; }
.cal-strip { margin-top: 6px; }
/* Визит и история клиента (08.11.2026) */
.v-sub { margin: 12px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.v-crow { display: flex; gap: 8px; margin-bottom: 6px; }
.v-crow .v-cn { flex: 1; margin: 0; }
.v-crow .v-cp { width: 92px; margin: 0; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.v-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--gold-soft, #f3e6ea); font-size: 14px; }
.v-chip button { border: 0; box-shadow: none; min-height: 28px; padding: 0 8px; border-radius: 999px; font: inherit; font-size: 12px; }
.v-chip .v-x { background: transparent; color: var(--muted); }
.v-chip .v-sell { background: var(--accent, #9e4f66); color: #fff; font-weight: 700; }
.v-add { display: flex; gap: 8px; }
.v-add input { flex: 1; margin: 0; }
.v-add button { width: 46px; min-height: 46px; padding: 0; border-radius: 14px; font-size: 20px; }
.v-prev { border: 1.5px dashed var(--gold); }
.v-line { margin: 4px 0; }
.v-all { margin-top: 6px; font-weight: 700; }
.ch-fin { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; margin: 4px 0 10px; border-radius: 14px; background: var(--gold-soft, #f3e6ea); color: var(--ink); border: 0; box-shadow: none; font: inherit; }
.ch-fin > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ch-fin .muted { font-size: 12.5px; }
.ch-list { display: flex; flex-direction: column; gap: 6px; }
.ch-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font: inherit; }
.ch-ic { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft, #f3e6ea); }
.ch-ic.order { background: color-mix(in srgb, #4f8a62 18%, transparent); }
.ch-ic svg { width: 20px; height: 20px; }
.ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-main .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-sum { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 13.5px; }
.ch-sum i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; margin-left: 4px; }
.ch-total { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 8px; }
.cf-table { padding: 8px 12px; }
.cf-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); box-shadow: none; font: inherit; font-size: 14px; text-align: right; border-radius: 0; min-height: 0; }
.cf-row > span:first-child { text-align: left; }
.cf-head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cf-foot { border-bottom: 0; font-weight: 800; }
.v-next-chips { margin: 6px 0 2px; }
.v-next-chips .chip { min-width: 46px; }
/* Карточка клиента: мини-отчёт, алерты, условия (08.11.2026) */
.cm-alert { background: #a8433f; color: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 700; margin: 0 0 10px; font-size: 14px; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.cm-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft, #f3e6ea); color: var(--gold, #9a6a2c); }
.cm-tag.good { background: color-mix(in srgb, #4f8a62 16%, transparent); color: #3f7d55; }
.cm-tag.bad { background: color-mix(in srgb, #a8433f 16%, transparent); color: #a8433f; }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.cm-stats button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--gold-soft, #f3e6ea); color: var(--ink); border: 0; box-shadow: none; font: inherit; min-height: 0; }
.cm-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cm-stats span { font-size: 10.5px; color: var(--muted); line-height: 1.15; text-align: center; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chips .chip.on { background: #a8433f; color: #fff; border-color: #a8433f; }
.cm-line { margin: 8px 0 4px; font-size: 13.5px; }
.cm-gap { display: inline-block; padding: 3px 9px; margin: 2px 2px 2px 0; border-radius: 999px; background: color-mix(in srgb, #4f8a62 16%, transparent); color: #3f7d55; font-weight: 700; font-size: 13px; }
/* Пакет 2 (08.11.2026) */
.p2-collage { margin-top: 10px; }
.p2-collage img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 14px; margin: 6px 0 8px; }
.p2-collage .btn-sm { text-align: center; }
.rv-top { display: flex; justify-content: space-between; align-items: center; }
.rv-stars { color: #d39a2c; letter-spacing: 1px; } .rv-stars span { color: var(--line, #ddd); }
/* Пакет 3: дашборд, сертификаты (08.11.2026) */
.p3-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.p3-t { background: var(--card2, var(--gold-soft)); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p3-t span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p3-t b { font-size: 20px; font-variant-numeric: tabular-nums; }
.p3-t.big b { font-size: 24px; }
.p3-t i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.p3-d { font-size: 12px; font-weight: 700; } .p3-d.up { color: #3f7d55; } .p3-d.down { color: #a8433f; }
.p3-svc { display: grid; }
.p3-row { display: grid; grid-template-columns: 1.6fr 1fr .6fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p3-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.p3-row.head { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p3-sup { margin-top: 10px; }
/* Промокоды (08.11.2026) */
.pa-list { display: grid; gap: 6px; }
.pa-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: grid; gap: 4px; font-size: 14px; }
.pa-row.rev { opacity: .55; }
.pa-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.pa-rv { justify-self: start; min-height: 32px; padding: 4px 12px; font-size: 13px; }
/* Пакет 4: объекты, анкета (08.11.2026) */
.p4-objs { display: flex; flex-wrap: wrap; gap: 6px; }
.p4-obj { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); border: 0; box-shadow: none; font: inherit; font-size: 14px; min-height: 0; }
.p4-obj .svc-glyph svg { width: 18px; height: 18px; }
.p4-obj.add { padding: 6px 12px; background: transparent; border: 1px dashed var(--line); }
.p4-yes { margin: 4px 0 8px; padding-left: 18px; color: #a8433f; font-size: 14px; }
.p4-same { width: 100%; margin: 0 0 12px; }
.fm-q { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.fm-yn { margin: 0; max-width: 200px; }
.fm-note { margin: 0; }
.cs-steps { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.pl-tbl .row { padding: 6px 0; }
/* Тарифы (08.11.2026) */
.pl-tiers{display:grid;gap:10px}
.pl-tier{border:1px solid var(--line,#e5ddd3);border-radius:14px;padding:10px 12px}
.pl-tier.hot{border-color:var(--gold,#b8894a);box-shadow:0 0 0 1px var(--gold,#b8894a) inset}
.pl-th{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.pl-tier ul{margin:6px 0 0;padding-left:18px}.pl-tier li{margin:2px 0;font-size:14px}
/* ИИ, промо-пост, приглашения (09.11.2026) */
.ai-card{border:1px solid var(--gold-soft);background:linear-gradient(180deg,var(--gold-soft),var(--card) 70%)}
.ai-row{display:flex;gap:8px;align-items:flex-start}.ai-row textarea{flex:1;margin:0}
.ai-mic{flex:none;width:52px;height:52px;border-radius:50%;font-size:22px;padding:0}
.ai-mic.on{background:var(--bad);animation:aiPulse 1.2s infinite}
@keyframes aiPulse{50%{box-shadow:0 0 0 8px rgba(192,84,75,.18)}}
.ai-list{margin:0;padding-left:18px}.ai-list li{margin:4px 0}
.ai-meter{height:10px;border-radius:6px;background:var(--chip);overflow:hidden}.ai-meter span{display:block;height:100%;background:var(--gold)}
.iv-code{font:700 26px/1.2 ui-monospace,monospace;letter-spacing:3px;padding:10px 12px;border-radius:12px;background:var(--card2);text-align:center;margin-bottom:6px}
button.danger{background:var(--bad);color:#fff}
