/* Мини-приложение студии красоты. Мотив - лак для ногтей: молочный фон, баклажановый текст,
   вишнёвый «лак» только там, где выбор и главное действие. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(/webapp/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(/webapp/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tenor Sans"; font-weight: 400; font-display: swap;
  src: url(/webapp/fonts/tenor-sans-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tenor Sans"; font-weight: 400; font-display: swap;
  src: url(/webapp/fonts/tenor-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
/* шрифты оформлений: браузер скачивает только те, что нужны выбранному оформлению */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap;
  src: url(/webapp/fonts/cormorant-garamond-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap;
  src: url(/webapp/fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url(/webapp/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url(/webapp/fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap;
  src: url(/webapp/fonts/lora-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap;
  src: url(/webapp/fonts/lora-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-weight: 200 700; font-display: swap;
  src: url(/webapp/fonts/oswald-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 200 700; font-display: swap;
  src: url(/webapp/fonts/oswald-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-display: swap;
  src: url(/webapp/fonts/playfair-display-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-display: swap;
  src: url(/webapp/fonts/playfair-display-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap;
  src: url(/webapp/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap;
  src: url(/webapp/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --milk: #fbf4f5;
  --paper: #ffffff;
  --ink: #2b1726;
  --ink-2: #7a6272;
  --ink-3: #b3a1ab;
  --line: #efdde3;
  --lacquer: #b3245f;
  --lacquer-ink: #ffffff;
  --lacquer-soft: #f8e1ea;
  --sage: #4f8a6a;
  --sage-soft: #e3f0e8;
  --amber: #b86f14;
  --amber-soft: #f8ecd9;
  --gold: #b98a3e;
  --danger: #b3261e;
  --r-cover: 28px;
  --r-card: 20px;
  --r-field: 14px;
  --r-btn: 16px;        /* кнопки в приложении */
  --r-btn-site: 999px;  /* кнопки на сайте */
  --r-chip: 999px;
  --display: "Tenor Sans", "Cormorant", Georgia, serif;
  --text: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: var(--tg-safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --milk: #1a1217;
  --paper: #261b22;
  --ink: #f7eaf0;
  --ink-2: #b79aaa;
  --ink-3: #7c6573;
  --line: #3a2a34;
  --lacquer: #e75a93;
  --lacquer-ink: #1a1217;
  --lacquer-soft: #3d2230;
  --sage: #7cc39b;
  --sage-soft: #1f3329;
  --amber: #e2a24f;
  --amber-soft: #3a2b18;
  --danger: #f2877f;
  color-scheme: dark;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --lacquer-soft: color-mix(in srgb, var(--lacquer) 13%, var(--paper)); }
}

/* ---------- Оформления студии (атрибут data-design на <html>, выбирается в «Ещё → Оформление» и в панели).
   «Лак» - значения выше. У каждого оформления свои цвета (для светлой и тёмной темы), шрифты, скругления и кнопки,
   а на сайте ещё и своя вёрстка первого экрана (site.css). ---------- */
:root[data-design="powder"] {   /* Пудра: нюд и пыльная роза, изящные засечки, мягкие формы */
  --milk: #f8efed; --paper: #fffaf9; --ink: #3d2c2c; --ink-2: #8b7371; --ink-3: #c4aeab; --line: #efdfdb;
  --lacquer: #a85a61; --lacquer-ink: #ffffff; --lacquer-soft: #f6e3e3; --gold: #b08a5a;
  --display: "Cormorant Garamond", Georgia, serif; --display-w: 500;
  --r-cover: 34px; --r-card: 26px; --r-field: 18px; --r-btn: 999px;
}
:root[data-design="powder"][data-theme="dark"] {
  --milk: #1c1514; --paper: #291f1e; --ink: #f7ebe8; --ink-2: #c4aaa6; --ink-3: #87716d; --line: #3e302e;
  --lacquer: #e3a0a4; --lacquer-ink: #1c1514; --lacquer-soft: #45302f;
}
:root[data-design="lavender"] { /* Лаванда: сирень, широкий современный шрифт */
  --milk: #f5f2fb; --paper: #ffffff; --ink: #261f3d; --ink-2: #6f6889; --ink-3: #b1abc7; --line: #e4def3;
  --lacquer: #6a4bc4; --lacquer-ink: #ffffff; --lacquer-soft: #ebe4fb; --gold: #a98a3c;
  --display: "Unbounded", "Manrope", sans-serif; --display-w: 500; --display-scale: .82;
  --r-cover: 22px; --r-card: 20px; --r-field: 14px; --r-btn: 14px; --r-btn-site: 14px;
}
:root[data-design="lavender"][data-theme="dark"] {
  --milk: #15121f; --paper: #201b2e; --ink: #efeaff; --ink-2: #aaa1c8; --ink-3: #6d6589; --line: #322b47;
  --lacquer: #a98cf0; --lacquer-ink: #15121f; --lacquer-soft: #33294f;
}
:root[data-design="sage"] {     /* Шалфей: спокойный зелёный, книжный шрифт с засечками, тонкие рамки */
  --milk: #eef2ec; --paper: #fbfcfa; --ink: #1e2b24; --ink-2: #5e6f65; --ink-3: #a3b1a8; --line: #d3ddd5;
  --lacquer: #3e6b52; --lacquer-ink: #ffffff; --lacquer-soft: #dfeae2; --sage: #2f7d55; --gold: #a5803c;
  --display: "Lora", Georgia, "Noto Serif", serif; --display-w: 500;
  --r-cover: 10px; --r-card: 10px; --r-field: 8px; --r-btn: 8px; --r-btn-site: 6px; --r-chip: 6px;
}
:root[data-design="sage"][data-theme="dark"] {
  --milk: #121915; --paper: #1b241f; --ink: #e8f0ea; --ink-2: #9fb2a6; --ink-3: #627269; --line: #2a3630;
  --lacquer: #8cc5a2; --lacquer-ink: #10160f; --lacquer-soft: #24382c; --sage: #8cc5a2;
}
:root[data-design="graphite"] { /* Графит: строгий серый и синий, узкий плотный шрифт, прямые углы */
  --milk: #eef1f4; --paper: #ffffff; --ink: #14181d; --ink-2: #5b6672; --ink-3: #a0aab4; --line: #d3dae1;
  --lacquer: #1f4f7a; --lacquer-ink: #ffffff; --lacquer-soft: #e1e9f1; --gold: #9a7b3c;
  --display: "Oswald", "Arial Narrow", sans-serif; --display-w: 500;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-cover: 4px; --r-card: 4px; --r-field: 4px; --r-btn: 4px; --r-btn-site: 2px; --r-chip: 2px;
}
:root[data-design="graphite"][data-theme="dark"] {
  --milk: #0f1317; --paper: #191e24; --ink: #e9eef3; --ink-2: #9aa6b2; --ink-3: #5f6b77; --line: #28303a;
  --lacquer: #6fa8dc; --lacquer-ink: #0f1317; --lacquer-soft: #1f3245;
}
:root[data-design="night"],     /* Ночь: всегда тёмная, шампанское золото */
:root[data-design="night"][data-theme="dark"] {
  --milk: #131015; --paper: #1e1a21; --ink: #f2ebe3; --ink-2: #b3a79c; --ink-3: #6f665e; --line: #2f2932;
  --lacquer: #c8a46a; --lacquer-ink: #17130f; --lacquer-soft: #33291d;
  --sage: #8cc7a1; --sage-soft: #1d2e24; --amber: #e0a957; --amber-soft: #33281a; --gold: #c8a46a; --danger: #f08a80;
  --display: "Playfair Display", Georgia, serif; --display-w: 500;
  --r-cover: 18px; --r-card: 16px; --r-field: 12px;
  color-scheme: dark;
}
:root[data-design="marble"] {   /* Мрамор: холодный белый, изумруд, контрастные засечки, тонкие рамки */
  --milk: #f3f5f3; --paper: #ffffff; --ink: #1d2321; --ink-2: #5c6662; --ink-3: #a7b0ac; --line: #d9dfdc;
  --lacquer: #0e6b55; --lacquer-ink: #ffffff; --lacquer-soft: #dcefe8; --gold: #9c7f43;
  --display: "Playfair Display", Georgia, serif; --display-w: 600;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-cover: 6px; --r-card: 6px; --r-field: 6px; --r-btn: 6px; --r-btn-site: 6px; --r-chip: 6px;
}
:root[data-design="marble"][data-theme="dark"] {
  --milk: #101614; --paper: #18201d; --ink: #e6eeea; --ink-2: #9fb0a9; --ink-3: #5e6d67; --line: #2a3531;
  --lacquer: #4fbf9c; --lacquer-ink: #0d1412; --lacquer-soft: #1b3229;
}
:root[data-design="pop"] {      /* Поп: фуксия, смелый широкий шрифт, круглые формы */
  --milk: #fdf0f7; --paper: #ffffff; --ink: #2b1240; --ink-2: #6f5a80; --ink-3: #b8a6c4; --line: #f1d8e7;
  --lacquer: #d6187d; --lacquer-ink: #ffffff; --lacquer-soft: #fbdcec; --gold: #b07a1e;
  --display: "Unbounded", "Manrope", sans-serif; --display-w: 650; --display-scale: .82;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-cover: 36px; --r-card: 28px; --r-field: 18px; --r-btn: 999px;
}
:root[data-design="pop"][data-theme="dark"] {
  --milk: #1a0f22; --paper: #261630; --ink: #fbeaf6; --ink-2: #c7a9c9; --ink-3: #7d6585; --line: #3a2546;
  --lacquer: #ff5fb0; --lacquer-ink: #1a0f22; --lacquer-soft: #4a1d3c;
}
:root[data-design="minimal"] {  /* Минимал: белый, кобальт, один чистый шрифт */
  --milk: #ffffff; --paper: #f4f5f7; --ink: #15171a; --ink-2: #5d636b; --ink-3: #a3a9b1; --line: #e3e6ea;
  --lacquer: #2c5be8; --lacquer-ink: #ffffff; --lacquer-soft: #e3eafd; --gold: #a3802f;
  --display: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif; --display-w: 650;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-cover: 14px; --r-card: 12px; --r-field: 10px; --r-btn: 10px; --r-btn-site: 10px; --r-chip: 8px;
}
:root[data-design="minimal"][data-theme="dark"] {
  --milk: #121418; --paper: #1b1e23; --ink: #eef0f3; --ink-2: #a2a8b0; --ink-3: #636a73; --line: #2b2f36;
  --lacquer: #7c9bff; --lacquer-ink: #0f1218; --lacquer-soft: #222c47;
}
:root[data-design="barber"],    /* Барбер: всегда тёмная, дерево и латунь, узкий шрифт, прямые углы */
:root[data-design="barber"][data-theme="dark"] {
  --milk: #1c1713; --paper: #26201b; --ink: #f1e7da; --ink-2: #b8a894; --ink-3: #75685a; --line: #3a3129;
  --lacquer: #c79a4a; --lacquer-ink: #1c1713; --lacquer-soft: #3a2e1c;
  --sage: #93c49f; --sage-soft: #1f2d22; --amber: #e0a957; --amber-soft: #33281a; --gold: #c79a4a; --danger: #f08a80;
  --display: "Oswald", "Arial Narrow", sans-serif; --display-w: 500;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-cover: 2px; --r-card: 3px; --r-field: 3px; --r-btn: 3px; --r-btn-site: 2px; --r-chip: 2px;
  color-scheme: dark;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root[data-design][data-theme] { --lacquer-soft: color-mix(in srgb, var(--lacquer) 14%, var(--paper)); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--milk); color: var(--ink); font: 400 15px/1.45 var(--text);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--lacquer); text-decoration: none; }
:focus-visible { outline: 2px solid var(--lacquer); outline-offset: 2px; }
img { display: block; max-width: 100%; }

#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 24px); min-height: 100vh; }
#app.no-tabs { padding-bottom: calc(96px + var(--safe-b)); }
#app.with-bar { padding-bottom: calc(var(--tab-h) + var(--safe-b) + var(--bar-h, 76px) + 24px); }
#app.no-tabs.with-bar { padding-bottom: calc(var(--bar-h, 76px) + var(--safe-b) + 24px); }

/* ---------- типографика ---------- */
.display { font-family: var(--display); font-weight: var(--display-w, 400); letter-spacing: -0.01em; line-height: 1.15; }
h1.display { font-size: calc(30px * var(--display-scale, 1)); margin: 22px 0 6px; }
h2.display { font-size: calc(22px * var(--display-scale, 1)); margin: 26px 0 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.lead { font-size: 16px; color: var(--ink-2); margin: 0 0 14px; }
p { margin: 0 0 10px; }

/* ---------- шапка экрана ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; min-height: 52px; }
.topbar .title { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 21px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); flex: none; }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- переключатель ролей ---------- */
.roles { display: flex; gap: 6px; padding: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.roles::-webkit-scrollbar { display: none; }
.roles button { padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.roles button.on { background: var(--ink); color: var(--milk); }
.demo-note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-field); background: var(--amber-soft); color: var(--amber); font-size: 13px; }

/* ---------- обложка студии ---------- */
.cover { position: relative; margin: 12px -4px 0; border-radius: var(--r-cover); overflow: hidden; background: var(--lacquer-soft); aspect-ratio: 16 / 10; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: var(--display-w, 400); font-size: 64px; color: var(--lacquer); }
.hello { margin: 20px 0 4px; }
.hello .display { font-size: calc(32px * var(--display-scale, 1)); margin: 0; }
.hello .muted { margin-top: 2px; }

/* ---------- кнопки ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: var(--r-btn, 16px); font-weight: 700; font-size: 16px; background: var(--lacquer); color: var(--lacquer-ink); transition: transform .12s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.soft { background: var(--lacquer-soft); color: var(--lacquer); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.sm { min-height: 40px; font-size: 14px; border-radius: 12px; padding: 0 14px; width: auto; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }
.link { color: var(--lacquer); font-weight: 700; }
.spacer { height: 12px; }

/* ---------- списки и карточки ---------- */
.card { background: var(--paper); border-radius: var(--r-card); padding: 16px; margin: 10px 0; }
.list { background: var(--paper); border-radius: var(--r-card); overflow: hidden; margin: 10px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list .row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .ttl { font-weight: 650; }
.row .sub { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.row .end { text-align: right; flex: none; font-weight: 650; }
.row .chev { color: var(--ink-3); flex: none; }
.row .chev svg { width: 18px; height: 18px; }
.ico { width: 38px; height: 38px; border-radius: 12px; background: var(--lacquer-soft); color: var(--lacquer); display: grid; place-items: center; flex: none; font-size: 18px; }
.ico svg { width: 20px; height: 20px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tile { background: var(--paper); border-radius: var(--r-card); padding: 16px; text-align: left; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .t1 { font-weight: 700; }
.tile .t2 { font-size: 13px; color: var(--ink-2); }

/* ---------- билет визита ---------- */
.ticket { display: flex; background: var(--paper); border-radius: var(--r-card); overflow: hidden; margin: 10px 0; text-align: left; width: 100%; }
.ticket .date { flex: none; width: 84px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--lacquer); color: var(--lacquer-ink); position: relative; }
.ticket .date::after { content: ""; position: absolute; right: -7px; top: 0; bottom: 0; width: 14px; background: radial-gradient(circle at 7px 7px, var(--paper) 5px, transparent 5.5px) 0 0 / 14px 16px repeat-y; }
.ticket .date .d { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 34px; line-height: 1; }
.ticket .date .m { font-size: 13px; margin-top: 4px; opacity: .9; }
.ticket .date .w { font-size: 12px; opacity: .8; }
.ticket.past .date, .ticket.off .date { background: var(--line); color: var(--ink-2); }
.ticket .body { flex: 1; padding: 14px 16px 14px 20px; min-width: 0; }
.ticket .time { font-weight: 800; font-size: 17px; }
.ticket .tsvc { margin-top: 2px; font-weight: 600; }
.ticket .who { font-size: 13px; color: var(--ink-2); }
.ticket .acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.ticket .acts .btn.ghost { background: var(--milk); }
.ticket .acts .btn.sm { padding: 0 12px; min-height: 36px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lacquer-soft); color: var(--lacquer); }
.badge.done { background: var(--sage-soft); color: var(--sage); }
.badge.noshow { background: var(--amber-soft); color: var(--amber); }
.badge.cancelled { background: var(--line); color: var(--ink-2); }
.badge.gold { background: var(--amber-soft); color: var(--gold); }

/* ---------- лояльность: точки-«капли лака» ---------- */
.stamps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.stamp { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--ink-3); display: grid; place-items: center; font-size: 14px; }
.stamp.on { border: 0; background: var(--lacquer); color: var(--lacquer-ink); }
.stamp.gift { border-color: var(--gold); color: var(--gold); }

/* ---------- чипсы, сегменты ---------- */
.seg { display: flex; background: var(--paper); border-radius: 14px; padding: 4px; margin: 12px 0; }
.seg button { flex: 1; padding: 10px 8px; border-radius: 10px; font-weight: 650; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--milk); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: var(--r-chip, 999px); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.chip.on { background: var(--lacquer); color: var(--lacquer-ink); }

/* ---------- услуги ---------- */
.cat-title { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 20px; margin: 22px 0 8px; scroll-margin-top: 70px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list .svc + .svc { border-top: 1px solid var(--line); }
.svc .grow { flex: 1; min-width: 0; }
.svc .name { font-weight: 650; }
.svc .desc { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc .meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.svc .price { font-weight: 700; color: var(--ink); }
.svc-ph { width: 52px; height: 52px; border-radius: calc(var(--r-card) * .6); object-fit: cover; flex: none; background: var(--lacquer-soft); }
.svc-photo { margin: 6px 0 4px; }
.svc-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); margin-bottom: 10px; }
.svc-photo-empty { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }
.svc-photo-empty svg { width: 26px; height: 26px; flex: none; color: var(--ink-3); }
.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-row { background: var(--paper); border-radius: var(--r-card); padding: 10px 12px; border: 1px solid transparent; }
.pr-row.on, .pr-row:has(.switch.on) { border-color: var(--lacquer-soft); }
.pr-head { display: flex; align-items: center; gap: 12px; }
.pr-head .grow { flex: 1; min-width: 0; }
.pr-head .sub { font-size: 12px; color: var(--ink-2); }
.pr-ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.pr-extra { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.pr-extra[hidden] { display: none; }
.pr-extra .field { margin: 0; }
.pr-extra .field span { font-size: 12px; }
.pr-all { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 10px; }
.pr-all .btn { flex: none; width: auto; min-height: 46px; }
.pick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; transition: background .15s, border-color .15s; }
.pick svg { width: 16px; height: 16px; }
.on > .pick, .pick.on { background: var(--lacquer); border-color: var(--lacquer); color: var(--lacquer-ink); }

/* ---------- мастера ---------- */
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--lacquer-soft); color: var(--lacquer); display: grid; place-items: center; font-family: var(--display); font-weight: var(--display-w, 400); font-size: 22px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 38px; }
.avatar.sm { width: 36px; height: 36px; font-size: 16px; }
.rating { font-size: 13px; color: var(--gold); font-weight: 700; }
.mcards { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.mcards::-webkit-scrollbar { display: none; }
.mcard { flex: none; width: 118px; background: var(--paper); border-radius: var(--r-card); padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 2px solid transparent; }
.mcard.on { border-color: var(--lacquer); }
.mcard .nm { font-weight: 650; font-size: 14px; line-height: 1.2; }
.mcard .pr { font-size: 13px; color: var(--ink-2); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.works img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--lacquer-soft); }

/* ---------- календарь ---------- */
.cal { background: var(--paper); border-radius: var(--r-card); padding: 12px 12px 14px; margin: 10px 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.cal-head .mt { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 19px; }
.cal-head button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--milk); }
.cal-head button[disabled] { opacity: .3; }
.cal-head svg { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--ink-3); padding-bottom: 4px; font-weight: 600; }
.day { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 650; font-size: 15px; position: relative; }
.day.free { background: var(--lacquer-soft); color: var(--lacquer); }
.day.off { color: var(--ink-3); font-weight: 500; }
.day.off::after { content: ""; position: absolute; width: 40%; height: 1.5px; background: currentColor; opacity: .55; transform: rotate(-35deg); }
.day.past { color: var(--ink-3); opacity: .5; font-weight: 500; }
.day.sel { background: var(--lacquer); color: var(--lacquer-ink); }
.day.today:not(.sel) { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.day .hrs { font-size: 9px; font-weight: 600; opacity: .8; line-height: 1; margin-top: 1px; }
.day .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; position: absolute; bottom: 5px; }
.cal.sched .day { border-radius: 12px; aspect-ratio: auto; min-height: 48px; background: var(--milk); color: var(--ink); }
.cal.sched .day.work { background: var(--lacquer-soft); color: var(--lacquer); }
.cal.sched .day.ovr { box-shadow: inset 0 0 0 1.5px var(--lacquer); }
.cal.sched .day.off::after { display: none; }
.cal.sched .day.off { color: var(--ink-3); }
.cal.sched .day .dot { top: 6px; right: 7px; bottom: auto; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); padding: 8px 4px 0; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -2px; margin-right: 5px; }
.legend .lf { background: var(--lacquer-soft); box-shadow: inset 0 0 0 1px var(--lacquer); }
.legend .lo { background: var(--line); }

/* ---------- время ---------- */
.part { font-weight: 700; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 46px; border-radius: 14px; background: var(--lacquer-soft); font-weight: 700; font-size: 15px; color: var(--lacquer); }
.slot.sel { background: var(--lacquer); color: var(--lacquer-ink); box-shadow: none; }
.slot[disabled] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); text-decoration: line-through; font-weight: 500; }

/* ---------- формы ---------- */
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, textarea.input, select.input { width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; font-size: 16px; outline: none; }
.input:focus { border-color: var(--lacquer); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.hint { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.search { position: sticky; top: 0; z-index: 5; background: var(--milk); padding: 8px 0; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--line); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(43, 23, 38, .25); }
.switch.on { background: var(--lacquer); }
.switch.on::after { transform: translateX(20px); }

/* ---------- нижняя панель действия ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--milk); border-top: 1px solid var(--line); }
.actionbar .inner { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.actionbar .sum { flex: 1; min-width: 0; }
.actionbar .sum b { display: block; font-size: 16px; }
.actionbar .btn { width: auto; flex: none; min-width: 150px; }
body.has-tabs .actionbar { bottom: calc(var(--tab-h) + var(--safe-b)); padding-bottom: 10px; }

/* ---------- таббар ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs .inner { max-width: 560px; margin: 0 auto; display: flex; height: var(--tab-h); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--ink-3); }
.tabs button svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--lacquer); }

/* ---------- лист снизу ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(26, 18, 23, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--milk); border-radius: 26px 26px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 10px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- тост ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--milk); padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100% - 32px); animation: fade .2s ease; }

/* ---------- состояния ---------- */
.skel { background: var(--paper); border-radius: var(--r-card); height: 74px; margin: 10px 0; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--milk), transparent); animation: shimmer 1.2s infinite; opacity: .7; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty { text-align: center; padding: 36px 12px; color: var(--ink-2); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty .display { font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.center-screen { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px; }
.center-screen .display { font-size: 28px; margin: 12px 0; }

/* ---------- успех записи: одна «капля лака» ---------- */
.done-mark { width: 104px; height: 104px; margin: 0 auto; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--lacquer); display: grid; place-items: center; animation: drop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.done-mark svg { transform: rotate(45deg); width: 48px; height: 48px; color: var(--lacquer-ink); stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .4s .45s ease forwards; }
@keyframes drop { from { transform: rotate(-45deg) scale(.2); opacity: 0; } to { transform: rotate(-45deg) scale(1); opacity: 1; } }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- админка ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.kpi { background: var(--paper); border-radius: var(--r-card); padding: 14px 16px; }
.kpi .v { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 26px; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.kpi.accent { background: var(--lacquer); color: var(--lacquer-ink); }
.kpi.accent .l { color: inherit; opacity: .85; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 8px 0 0; }
.bars .b { flex: 1; background: var(--lacquer-soft); border-radius: 6px 6px 2px 2px; position: relative; min-height: 3px; }
.bars .b.today { background: var(--lacquer); }
.bars-x { display: flex; gap: 4px; font-size: 10px; color: var(--ink-3); margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; }
.hbar { margin: 10px 0; }
.hbar .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; gap: 8px; }
.hbar .track { height: 8px; background: var(--milk); border-radius: 8px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--lacquer); border-radius: 8px; }
.strip { display: flex; gap: 6px; overflow-x: auto; margin: 6px -16px 4px; padding: 4px 16px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.sday { flex: none; width: 52px; padding: 8px 0; border-radius: 16px; background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sday .w { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.sday .d { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 21px; }
.sday .n { font-size: 11px; font-weight: 700; color: var(--lacquer); min-height: 14px; }
.sday.on { background: var(--ink); color: var(--milk); }
.sday.on .w, .sday.on .n { color: inherit; opacity: .85; }
.master-block { margin: 16px 0 6px; display: flex; align-items: center; gap: 10px; }
.master-block .nm { font-weight: 700; }
.master-block .hr { font-size: 12px; color: var(--ink-2); }
.jempty { padding: 6px 2px 4px; }
.bk { display: flex; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; background: var(--paper); border-radius: 16px; margin: 6px 0; position: relative; overflow: hidden; }
.bk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lacquer); }
.bk.done::before { background: var(--sage); }
.bk.noshow::before { background: var(--amber); }
.bk.cancelled { opacity: .55; }
.bk.cancelled::before { background: var(--ink-3); }
.bk .tm { font-weight: 800; flex: none; width: 50px; }
.bk .tm small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.bk .info { flex: 1; min-width: 0; }
.bk .cl { font-weight: 650; }
.bk .sv { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk .pr { font-weight: 700; flex: none; }
.week { display: grid; gap: 8px; }
.week label { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.week b { font-weight: 700; color: var(--ink-2); }
.about-text { line-height: 1.55; }
.about-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review { padding: 12px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done-mark svg { stroke-dashoffset: 0; }
}
@media (min-width: 420px) { .slots { grid-template-columns: repeat(5, 1fr); } }

/* ---------- новые разделы ---------- */
.rate-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--amber-soft); }
.rate-card .grow { flex: 1; min-width: 0; }
.rate-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; flex: none; }
.ico, .tab-ico { position: relative; }
.tab-ico { display: grid; place-items: center; }
.dotbadge { position: absolute; top: -5px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--lacquer); color: var(--lacquer-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.hot-strip { padding-top: 0; }
.hot { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; border-radius: 16px;
  background: var(--lacquer-soft); color: var(--lacquer); text-align: left; }
.hot b { font-size: 17px; }
.hot span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.faq-q.open .chev { transform: rotate(90deg); }
.faq-q .chev { transition: transform .15s; }
.faq-a { padding: 0 16px 16px; color: var(--ink-2); }
.list > div + div .faq-q { border-top: 1px solid var(--line); }
.btn-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }

.msgs { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 16px; }
.msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 18px; background: var(--paper); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--lacquer); color: var(--lacquer-ink); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.msg .txt { white-space: pre-wrap; word-break: break-word; }
.msg .tm { font-size: 11px; opacity: .65; text-align: right; margin-top: 2px; }
.msg-day { align-self: center; font-size: 12px; color: var(--ink-2); background: var(--paper); padding: 3px 10px; border-radius: 999px; margin: 8px 0 2px; }
.composer .inner { align-items: flex-end; }
.composer .inner.cmp-col { flex-direction: column; align-items: stretch; gap: 8px; }
.cmp-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea.input { min-height: 46px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 16px; flex: 1; }
.composer .btn.send { width: 46px; min-width: 46px; min-height: 46px; padding: 0; border-radius: 50%; flex: none; }
.cmp-attach { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); cursor: pointer; }
.cmp-attach:hover { background: var(--paper); color: var(--ink); }
.cmp-attach svg { width: 22px; height: 22px; }
.cmp-count { font-size: 12px; color: var(--ink-2); text-align: right; margin-top: -2px; font-variant-numeric: tabular-nums; }
.cmp-count.over { color: var(--danger); font-weight: 700; }
.cmp-file { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 14px; padding: 6px 6px 6px 8px; }
.cmp-file[hidden] { display: none; }
.cmp-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.cmp-thumb.vid { display: grid; place-items: center; background: var(--lacquer-soft); color: var(--lacquer); }
.cmp-thumb.vid svg { width: 20px; height: 20px; fill: currentColor; }
.cmp-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cmp-progress[hidden] { display: none; }
.cmp-progress i { display: block; height: 100%; width: 0; background: var(--lacquer); transition: width .2s; }
.msg.has-media { padding: 4px 4px 6px; }
.msg.has-media .txt { padding: 4px 8px 0; }
.msg.has-media .tm { padding: 0 8px; }
.msg-media { display: block; width: 100%; max-width: 280px; max-height: 340px; border-radius: 14px; object-fit: cover; background: rgba(0, 0, 0, .06); }
video.msg-media { object-fit: contain; background: #000; }
.msg-media-btn { display: block; padding: 0; border-radius: 14px; overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 10, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lb-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-x svg { width: 22px; height: 22px; }
.card.warn { background: var(--amber-soft); color: var(--ink); }
.stars-pick { display: flex; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.stars-pick button { font-size: 40px; line-height: 1; color: var(--line); transition: transform .12s, color .12s; }
.stars-pick button.on { color: var(--gold); }
.stars-pick button:active { transform: scale(.9); }

.setup { background: var(--paper); border-radius: var(--r-card); padding: 16px; margin: 12px 0; }
.setup .bar { height: 6px; border-radius: 6px; background: var(--milk); overflow: hidden; margin: 8px 0 12px; }
.setup .bar i { display: block; height: 100%; background: var(--lacquer); border-radius: 6px; }
.step { display: flex; gap: 12px; align-items: center; padding: 10px 0; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.step .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: transparent; }
.step .ck svg { width: 14px; height: 14px; }
.step.done .ck { background: var(--sage); border-color: var(--sage); color: #fff; }
.step.done .t { color: var(--ink-2); text-decoration: line-through; }
.photo-edit { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--lacquer-soft); aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--lacquer); }
.photo-edit img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.works.edit .w { position: relative; }
.works.edit .w button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(26, 18, 23, .6); color: #fff; display: grid; place-items: center; }
.works.edit .w button svg { width: 16px; height: 16px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.list .toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row .grow { flex: 1; min-width: 0; }
.toggle-row .ttl { font-weight: 650; }
.toggle-row .sub { font-size: 13px; color: var(--ink-2); }
.toggle-row.locked { opacity: .55; }
.seg-list { display: grid; gap: 8px; }
.seg-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); text-align: left; width: 100%; border: 2px solid transparent; }
.seg-opt.on { border-color: var(--lacquer); }
.seg-opt .grow { flex: 1; }
.seg-opt .n { font-weight: 700; color: var(--ink-2); }
.linkrow { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.list .linkrow + .linkrow { border-top: 1px solid var(--line); }
.linkrow .grow { flex: 1; min-width: 0; }
.linkrow code { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- салоны (филиалы) ---------- */
.salon-pick { display: grid; gap: 10px; margin: 12px 0; }
.salon-opt { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--r-card); padding: 12px 14px 12px 12px; width: 100%; text-align: left; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.salon-opt:hover { border-color: var(--lacquer-soft); }
.salon-opt.on { border-color: var(--lacquer); }
.salon-opt img, .salon-opt .salon-ico { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.salon-opt .salon-ico { display: grid; place-items: center; background: var(--lacquer-soft); color: var(--lacquer); }
.salon-opt .salon-ico svg { width: 26px; height: 26px; }
.salon-opt .grow { flex: 1; min-width: 0; }
.salon-opt .ttl { font-weight: 700; font-size: 16px; }
.salon-opt .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.salon-opt .chev { color: var(--ink-3); }
.salon-opt .chev svg { width: 18px; height: 18px; }
.salon-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 8px 14px 8px 10px; margin: 2px 0 6px; font-weight: 650; font-size: 14px; }
.salon-chip svg { width: 18px; height: 18px; color: var(--lacquer); }
.salon-chip .link { margin-left: 4px; }
.salon-card { background: var(--paper); border-radius: var(--r-card); overflow: hidden; margin: 10px 0; }
.salon-card .salon-ph { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.salon-card .salon-nm { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 20px; padding: 14px 16px 2px; }
.salon-card .list { margin: 0; border-radius: 0; }
.ticket .salon-line { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ticket .salon-line svg { width: 14px; height: 14px; flex: none; }
.chips.salons .chip { border: 1px solid var(--line); }
.chips.salons .chip.on { border-color: var(--lacquer); }

/* графики главного экрана администратора */
.bars.tall { height: 120px; padding-top: 20px; }
.bars .b .bv { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.hbars { display: grid; gap: 10px; margin-top: 6px; }
.hb { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.hb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 10px; border-radius: 6px; background: var(--milk); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 6px; background: var(--lacquer); }
.hb-v { color: var(--ink-2); font-size: 12px; white-space: nowrap; }

/* выбор оформления */
.dz-list { display: grid; gap: 10px; margin-top: 8px; }
.dz { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r-card); background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); }
.dz.on { border-color: var(--lacquer); box-shadow: 0 0 0 3px var(--lacquer-soft); }
.dz-prev { flex: none; width: 112px; height: 84px; border-radius: 12px; padding: 9px; display: flex; gap: 7px; align-items: center; border: 1px solid rgba(127, 127, 127, .18); position: relative; overflow: hidden; }
.dz-prev .tx { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: center; position: relative; }
.dz-prev .fn { font-size: 19px; line-height: 1; font-weight: 500; }
.dz-prev .ln { display: block; height: 4px; width: 80%; border-radius: 2px; opacity: .8; }
.dz-prev .ln.s { width: 55%; opacity: .35; }
.dz-prev .bt { display: block; height: 9px; width: 50%; border-radius: 5px; margin-top: 2px; }
.dz-prev .ph { flex: none; display: block; }
.dz-prev.dzl-arch .ph { width: 34px; height: 50px; border-radius: 17px 17px 5px 5px; }
.dz-prev.dzl-center { flex-direction: column; justify-content: center; gap: 4px; }
.dz-prev.dzl-center .ph { order: -1; width: 26px; height: 26px; border-radius: 50%; }
.dz-prev.dzl-center .tx { justify-items: center; flex: none; width: 100%; }
.dz-prev.dzl-center .fn { font-size: 15px; }
.dz-prev.dzl-split { padding: 0 0 0 9px; }
.dz-prev.dzl-split .ph { width: 46%; height: 100%; border-radius: 0; }
.dz-prev.dzl-full .ph { position: absolute; inset: 0; width: auto; height: auto; filter: brightness(.55); }
.dz-prev.dzl-full .tx { align-content: end; height: 100%; }
.dz-prev.dzl-editorial { flex-direction: column; align-items: stretch; gap: 5px; }
.dz-prev.dzl-editorial .tx { flex: none; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; }
.dz-prev.dzl-editorial .fn { font-size: 22px; grid-row: span 3; }
.dz-prev.dzl-editorial .ph { height: 26px; width: 100%; border-radius: 5px; }
.dz-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
/* сайт студии: предпросмотр */
.site-hero-prev { width: 100%; overflow: hidden; background: var(--lacquer-soft); border-radius: var(--r-cover); aspect-ratio: 16 / 9; }
.site-hero-prev img { width: 100%; height: 100%; object-fit: cover; }
.site-hero-prev.shp-arch { aspect-ratio: 4 / 5; max-width: 260px; margin: 0 auto; border-radius: 999px 999px var(--r-cover) var(--r-cover); }
.site-hero-prev.shp-circle { aspect-ratio: 1; max-width: 240px; margin: 0 auto; border-radius: 50%; }
.site-hero-prev.shp-full { border-radius: 4px; }
.site-hero-prev.shp-none { opacity: .45; }
.site-hero-prev .svc-photo-empty { height: 100%; margin: 0; border: 0; }
.site-logo-prev { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-card); min-height: 66px; }
.site-logo-prev .s-mono { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lacquer); color: var(--lacquer-ink); font-family: var(--display); font-size: 20px; }
.site-logo-prev .s-logo-img { flex: none; height: 40px; width: 40px; object-fit: cover; }
.site-logo-prev .s-logo-img.shp-circle { border-radius: 50%; }
.site-logo-prev .s-logo-img.shp-square { border-radius: 10px; }
.site-logo-prev .s-logo-img.shp-wide { width: auto; max-width: 170px; object-fit: contain; }
.site-logo-prev .s-logo-t { font-family: var(--display); font-weight: var(--display-w, 400); font-size: 20px; }
.site-about-ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); margin-bottom: 10px; }
textarea.about-edit { min-height: 180px; }
.dz-t { min-width: 0; }
.dz-t .ttl { font-weight: 750; display: flex; align-items: center; gap: 8px; }
.dz-on { font-size: 11px; font-weight: 750; color: var(--lacquer); background: var(--lacquer-soft); padding: 2px 8px; border-radius: 999px; }

/* данные для входа сотрудника */
.cred { display: grid; gap: 10px; }
.cred > div { display: grid; gap: 2px; }
.cred b { font-size: 16px; word-break: break-all; }

/* ===== графики статистики и посещаемости =====
   Цвета рядов подобраны для каждого оформления и проверены на различимость (в том числе при дальтонизме):
   --ch-1 - основной ряд (выручка, посетители, новые), --ch-2 - второй ряд (постоянные). */
:root { --ch-1: #af1f5b; --ch-2: #cd8800; }
:root[data-theme="dark"] { --ch-1: #d0447f; --ch-2: #a36000; }
:root[data-design="powder"] { --ch-1: #a73446; --ch-2: #00a7e2; }
:root[data-design="powder"][data-theme="dark"] { --ch-1: #c95463; --ch-2: #007eb7; }
:root[data-design="lavender"] { --ch-1: #6747c0; --ch-2: #d28500; }
:root[data-design="lavender"][data-theme="dark"] { --ch-1: #896acf; --ch-2: #a75d00; }
:root[data-design="sage"] { --ch-1: #007b41; --ch-2: #a780e6; }
:root[data-design="sage"][data-theme="dark"] { --ch-1: #009a5a; --ch-2: #8059bb; }
:root[data-design="graphite"] { --ch-1: #0066b3; --ch-2: #d6810c; }
:root[data-design="graphite"][data-theme="dark"] { --ch-1: #1885d4; --ch-2: #ab5a00; }
:root[data-design="night"], :root[data-design="night"][data-theme="dark"] { --ch-1: #af7200; --ch-2: #0079bf; }
:root[data-design="marble"] { --ch-1: #007d58; --ch-2: #a780e6; }
:root[data-design="marble"][data-theme="dark"] { --ch-1: #009b71; --ch-2: #8059bb; }
:root[data-design="pop"] { --ch-1: #ba0066; --ch-2: #00b2bd; }
:root[data-design="pop"][data-theme="dark"] { --ch-1: #d5368c; --ch-2: #00a9b1; }
:root[data-design="minimal"] { --ch-1: #2451dd; --ch-2: #da7e1e; }
:root[data-design="minimal"][data-theme="dark"] { --ch-1: #5c79d9; --ch-2: #ae5600; }
:root[data-design="barber"], :root[data-design="barber"][data-theme="dark"] { --ch-1: #ae7300; --ch-2: #0079bf; }

.ch-card h3 { margin: 0; }
.ch-sub { color: var(--ink-2); font-size: 13px; margin: 2px 0 0; line-height: 1.4; }
.ch { margin-top: 12px; }
.ch-plot { position: relative; height: 132px; }
.ch-grid { position: absolute; inset: 0 0 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); pointer-events: none; }
.ch-max { position: absolute; top: -8px; right: 0; background: var(--paper); padding-left: 6px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-cols { position: relative; display: flex; align-items: stretch; height: 100%; gap: 2px; }
.ch-c { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: none; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; cursor: default; border-radius: 6px; }
.ch-c:hover, .ch-c:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); outline: none; }
.ch-s { width: min(100%, 24px); background: var(--ch-1); flex: none; }
.ch-s.k2 { background: var(--ch-2); }
.ch-s.dim { opacity: .42; }
.ch-s.top { border-radius: 4px 4px 0 0; }
.ch-v { font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1; margin-bottom: 3px; white-space: nowrap; }
.ch-x { display: flex; gap: 2px; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.ch-x span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ch-1); display: inline-block; }
.ch-legend i.k2 { background: var(--ch-2); }
.ch-tip { position: fixed; z-index: 90; max-width: 240px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.ch-tip b { font-weight: 750; }
.ch-heat { display: grid; gap: 3px; margin-top: 12px; font-size: 11px; color: var(--ink-3); }
.ch-heat-row { display: grid; grid-template-columns: 22px repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: center; }
.ch-heat-row .lb { color: var(--ink-2); font-weight: 650; }
.ch-cell { aspect-ratio: 1; min-height: 12px; border-radius: 4px; border: 0; padding: 0; background: var(--milk); cursor: default; }
@media (min-width: 700px) { .ch-heat .ch-cell { aspect-ratio: auto; height: 26px; } }
.ch-cell.l1 { background: var(--ch-1); opacity: .22; }
.ch-cell.l2 { background: var(--ch-1); opacity: .42; }
.ch-cell.l3 { background: var(--ch-1); opacity: .64; }
.ch-cell.l4 { background: var(--ch-1); opacity: 1; }
.ch-heat-x { display: grid; grid-template-columns: 22px repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.ch-heat-x span { text-align: left; white-space: nowrap; }
.ch-scale { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.ch-scale .ch-cell { width: 12px; min-height: 12px; aspect-ratio: auto; height: 12px; }
.ch-hb { display: grid; gap: 10px; margin-top: 12px; }
.ch-hb-r { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.ch-hb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hb-t { height: 10px; }
.ch-hb-t i { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--ch-1); }
.ch-hb-v { color: var(--ink-2); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-fun { display: grid; gap: 8px; margin-top: 12px; }
.ch-fun-r { display: grid; gap: 4px; }
.ch-fun-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ch-fun-top b { font-variant-numeric: tabular-nums; }
.ch-fun-t { height: 22px; border-radius: 0 6px 6px 0; background: var(--milk); overflow: hidden; }
.ch-fun-t i { display: block; height: 100%; background: var(--ch-1); border-radius: 0 6px 6px 0; min-width: 3px; }
.ch-fun-r:not(:first-child) .ch-fun-t i { opacity: .8; }
.ch-table { margin-top: 10px; font-size: 13px; }
.ch-table summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.ch-table summary::-webkit-details-marker { display: none; }
.ch-table summary::before { content: "▸"; font-size: 10px; transition: transform .15s; }
.ch-table[open] summary::before { transform: rotate(90deg); }
.ch-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ch-table th, .ch-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.ch-table th:first-child, .ch-table td:first-child { text-align: left; }
.ch-table th { color: var(--ink-2); font-weight: 650; font-size: 12px; }
.ch-online { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; margin: 6px 0; }
.ch-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--ch-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch-1) 20%, transparent); }
.kpi .d { font-size: 12px; margin-top: 3px; color: var(--ink-2); }
.kpi.accent .d { color: inherit; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .ch-table summary::before { transition: none; } }

/* кнопка «показать пароль» */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; box-sizing: border-box; padding-right: 50px !important; }
.pw-wrap > input::-ms-reveal, .pw-wrap > input::-ms-clear { display: none; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.pw-eye svg { width: 21px; height: 21px; }
.pw-eye:hover { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--lacquer); outline-offset: -3px; }

/* финансы: цель месяца и зарплата мастеров */
.goal { display: block; }
.goal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.goal-track { position: relative; height: 26px; border-radius: 999px; background: var(--milk); overflow: hidden; margin: 12px 0 6px; }
.goal-track i { position: absolute; inset: 0 auto 0 0; background: var(--ch-1, var(--lacquer)); border-radius: 999px; }
.goal-track b { position: relative; display: block; text-align: center; line-height: 26px; font-size: 13px; mix-blend-mode: normal; color: var(--ink); }
.kpi .v.neg { color: var(--danger); }
.card.pay { padding: 0; overflow: hidden; }
.pay-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; }
.pay-head .grow { flex: 1; min-width: 0; }
.pay-head b { font-size: 16px; }
.pay-head .chev svg { transition: transform .2s; }
.pay-head.open .chev svg { transform: rotate(90deg); }
.pay-svcs { border-top: 1px solid var(--line); padding: 4px 16px 8px; }
.pay-svcs[hidden] { display: none; }
.pay-svc { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.pay-svc + .pay-svc { border-top: 1px dashed var(--line); }
.pay-svc .grow { flex: 1; min-width: 0; }

.pay-head .chev { color: var(--ink-3); display: grid; place-items: center; }
.pay-head .chev svg { width: 18px; height: 18px; }
