/* ================= Кабинет мастера ================= */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; scrollbar-width: none;
  background: color-mix(in oklab, var(--surface) 55%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 1px 0 0 var(--border); }
.side::-webkit-scrollbar { display: none; }
.side-top { padding: 4px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
.nav-group:first-child { padding-top: 2px; }
.side-nav a, .menu-list a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14.5px;
  transition: background-color .2s, color .2s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.side-nav a svg, .menu-list a svg { width: 19px; height: 19px; flex: none; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
@media (hover: hover) { .side-nav a:hover { transform: translateX(2px); } }
.side-nav a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.side-nav a.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side-nav a .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn); color: #3a2200; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background-color .2s; }
.side-me:hover { background: var(--surface); }
.side-me .av { width: 34px; height: 34px; border-radius: 11px; }
.side-me b { font-size: 14px; display: block; line-height: 1.2; }
.side-me span { font-size: 12px; color: var(--text-3); }
.side-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 10px; }

/* аватар-инициалы */
.av { display: grid; place-items: center; font-weight: 650; flex: none; color: #ffffff; background: linear-gradient(135deg, #ffd0e1, #e5568f); border-radius: 13px; }
.av.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }

/* карточка тарифа в меню */
.plan-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: 14px; background: var(--panel); color: var(--panel-text); font-size: 13px; }
.plan-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 86, 143, .5), transparent); z-index: -1; animation: drift 16s ease-in-out infinite alternate; }
.plan-card .t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.plan-card .t svg { width: 17px; color: #f27fab; }
.plan-card p { opacity: .7; margin: 6px 0 12px; line-height: 1.4; }
.plan-card .btn { width: 100%; height: 38px; font-size: 14px; }
.plan-card .meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); margin: 10px 0 2px; overflow: hidden; }
.plan-card .meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5568f, #ffd0e1); }

/* главная область */
.main { min-width: 0; padding: 0 32px 48px; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 0;
  background: var(--bg); box-shadow: 0 1px 0 color-mix(in oklab, var(--border) 60%, transparent); }
/* Во встроенном браузере мессенджера закреплённая шапка отрывается от верха — там она прокручивается со страницей */
html.in-webview .bar { position: relative; box-shadow: none; }
.bar-t { min-width: 0; }
.bar h1 { font-size: 26px; letter-spacing: -0.04em; line-height: 1.1; }
.bar-sub { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.bar-sub:empty { display: none; }
.view { max-width: 1120px; }
.view > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) backwards; }
.tabs-bottom { display: none; }

/* VIP-кнопка в шапке */
.vip-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 99px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--a), transparent 0 55%, var(--brand) 75%, #ffd0e1 85%, transparent 95%) border-box, linear-gradient(var(--border), var(--border)) border-box;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.vip-pill .g { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; background: linear-gradient(135deg, #f9a3c4, #e5568f); color: #ffffff; }
.vip-pill .g svg { width: 15px; }
@media (hover: hover) { .vip-pill:hover { transform: translateY(-1px); } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 0 16px calc(100px + env(safe-area-inset-bottom)); }
  .bar { min-height: 64px; }
  .bar h1 { font-size: 23px; }
  .bar .btn span.t { display: none; }
  .vip-pill .lbl { display: none; }
  .vip-pill { padding: 0 5px; }
}
@media (max-width: 900px), (any-pointer: coarse) and (max-width: 1100px) {
  .tabs-bottom {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    border-radius: 22px; padding: 6px; background: color-mix(in oklab, var(--surface) 97%, transparent);
    box-shadow: var(--shadow-l), inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent);
  }
}
.tabs-bottom a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; text-decoration: none; color: var(--text-3); font-size: 10.5px; font-weight: 600; border-radius: 16px; transition: color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.tabs-bottom a svg { width: 22px; height: 22px; }
.tabs-bottom a.on { color: var(--text); background: var(--surface-2); }
.tabs-bottom a.add { justify-content: center; }
.tabs-bottom a.add span.plus { width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: #ffffff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(229, 86, 143, .7); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.tabs-bottom a.add:active span.plus { transform: scale(.9) rotate(90deg); }
.tabs-bottom a.add span.plus svg { width: 22px; }
.tabs-bottom a .dot-n { position: absolute; top: 4px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
html.in-telegram .side { display: none; }
html.in-telegram .shell { grid-template-columns: 1fr; }
html.in-telegram .main { padding: 0 16px calc(100px + env(safe-area-inset-bottom)); }
html.in-telegram .tabs-bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; border-radius: 22px; padding: 6px; background: color-mix(in oklab, var(--surface) 97%, transparent); box-shadow: var(--shadow-l), inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent); }
html.in-telegram .bar h1 { font-size: 23px; }

/* секции и заголовки */
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { font-size: 20px; letter-spacing: -0.03em; }
.sec-h p { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { font-size: 17px; letter-spacing: -0.02em; }
.card-h p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.card .ic-t { display: flex; align-items: center; gap: 12px; }
.ic-box { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text); }
.ic-box svg { width: 20px; }
.ic-box.g { background: var(--brand-soft); color: var(--brand-text); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }

/* VIP-метка у функций */
.vip-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 99px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; color: #ffffff; background: linear-gradient(135deg, #ffd0e1, #e5568f); vertical-align: 2px; margin-left: 6px; }

/* баннеры */
.banner { position: relative; overflow: hidden; isolation: isolate; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); }
.banner.ink { background: var(--panel); color: var(--panel-text); box-shadow: var(--shadow-m); }
.banner.ink::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.banner.ink::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(229, 86, 143, .45), transparent); animation: drift 18s ease-in-out infinite alternate; }
.banner.ink .muted { color: color-mix(in oklab, var(--panel-text) 68%, transparent); }
.banner .ic { width: 46px; height: 46px; border-radius: 15px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.banner.ink .ic { background: linear-gradient(135deg, #f9a3c4, #e5568f); color: #ffffff; }
.banner .ic svg { width: 22px; }
.banner b.big { font-size: 17px; letter-spacing: -0.02em; display: block; }
.banner .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: inherit; opacity: .5; cursor: pointer; display: grid; place-items: center; }
.banner .x:hover { opacity: 1; background: rgba(127,127,127,.15); }
.banner .x svg { width: 15px; }
@media (max-width: 640px) { .banner { flex-wrap: wrap; padding: 16px; } .banner > .btn { width: 100%; } }

/* показатели */
.stat { position: relative; background: var(--surface); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .k svg { width: 15px; color: var(--text-3); }
.stat .v { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat .s .up { color: var(--brand-text); font-weight: 600; } .stat .s .down { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) { .stat { padding: 14px; } .stat .v { font-size: 21px; } }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 8px; }
.bars i { flex: 1; background: var(--surface-3); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transition: background-color .2s; }
.bars i:hover { background: var(--brand); }
.bars i.hl { background: var(--brand); }
.bars i.fut { background: var(--brand-soft); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; font-family: var(--mono); }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5568f, #f9a3c4); }

/* чек-лист */
.todo { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.todo:last-child { border: 0; }
.todo .c { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface-3); display: grid; place-items: center; flex: none; }
.todo.done .c { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.todo.done .c svg { width: 13px; }
.todo.done .t { color: var(--text-3); text-decoration: line-through; }

/* записи списком */
.appt { display: grid; grid-template-columns: 58px 3px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); transition: box-shadow .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
@media (hover: hover) { .appt:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); } }
.appt .tm { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 15.5px; font-family: var(--mono); letter-spacing: -0.03em; }
.appt .tm small { display: block; color: var(--text-3); font-weight: 400; font-size: 11.5px; font-family: var(--font); letter-spacing: 0; }
.appt .line { align-self: stretch; border-radius: 4px; background: var(--info); }
.appt.s-confirmed .line { background: var(--brand); }
.appt.s-pending .line, .appt.c-awaiting .line { background: var(--warn); }
.appt.c-declined .line { background: var(--danger); }
.appt.s-cancelled { opacity: .5; } .appt.s-cancelled .line { background: var(--text-3); }
.appt.s-completed .line { background: var(--text-3); }
.appt.s-no_show .line { background: var(--danger); }
.appt .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt .what { color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .appt { grid-template-columns: 50px 3px minmax(0, 1fr); } .appt > :last-child { grid-column: 3; justify-self: start; } }
.list-gap { display: flex; flex-direction: column; gap: 8px; }

/* журнал: сетка дня */
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-bar .dt { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; margin: 0 6px; min-width: 0; }
.cal-bar .dt small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.tl { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); overflow: hidden; }
.tl-h { position: relative; border-right: 1px solid var(--border); }
.tl-h span { position: absolute; right: 8px; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.tl-c { position: relative; }
.tl-c .hr { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.tl-c .hr.half { border-top-style: dashed; opacity: .55; }
.tl-c .off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in oklab, var(--text) 4%, transparent) 8px 9px); }
.tl-c .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 3; }
.tl-c .now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.tl-c .slot-hit { position: absolute; left: 0; right: 0; cursor: pointer; z-index: 1; border-radius: 8px; transition: background-color .15s; }
.tl-c .slot-hit:hover { background: color-mix(in oklab, var(--brand) 10%, transparent); }
.tl-c .slot-hit:hover::after { content: '+ записать ' attr(data-t); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--brand-text); }
.ev { position: absolute; left: 6px; right: 6px; z-index: 2; border-radius: 12px; padding: 6px 10px; overflow: hidden; cursor: pointer; font-size: 13px; line-height: 1.3;
  background: color-mix(in oklab, var(--info) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--info); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
@media (hover: hover) { .ev:hover { transform: translateX(2px); box-shadow: inset 3px 0 0 var(--info), var(--shadow-m); } }
.ev b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ev .tm { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.ev.s-confirmed { background: color-mix(in oklab, var(--brand) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.ev.s-pending, .ev.c-awaiting { background: color-mix(in oklab, var(--warn) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--warn); }
.ev.c-declined, .ev.s-no_show { background: color-mix(in oklab, var(--danger) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--danger); }
.ev.s-completed { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--text-3); }
.ev.blk { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface-3) 8px 9px); box-shadow: inset 3px 0 0 var(--text-3); }
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.week .wh { position: sticky; top: 76px; z-index: 4; background: var(--surface); text-align: center; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); cursor: pointer; }
.week .wh b { display: block; font-size: 17px; color: var(--text); font-weight: 650; }
.week .wh.today b { color: var(--brand-text); }
.week .tl-c { border-left: 1px solid var(--border); }
.week .ev { left: 3px; right: 3px; padding: 4px 6px; font-size: 11.5px; border-radius: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 56px; height: 68px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; border: 0; scroll-snap-align: start; position: relative; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s; }
.day:active { transform: scale(.94); }
.day small { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.day b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.day.on { background: var(--ink); color: var(--ink-text); box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--ink) 70%, transparent); }
.day.on small { color: color-mix(in oklab, var(--ink-text) 70%, transparent); }
.day .cnt { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.day.off b { color: var(--text-3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }

/* таблицы и списки */
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--text-3); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 99px; flex: none; }
.filters .chip b { font-weight: 600; opacity: .6; margin-left: 6px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); margin-right: 4px; }
.tag.g { background: var(--brand-soft); color: var(--brand-text); }
.tag.r { background: var(--danger-soft); color: var(--danger); }
.tag.y { background: var(--warn-soft); color: #9a5c06; }

.svc { display: flex; gap: 14px; align-items: center; padding: 15px 16px; border-radius: 16px; background: var(--surface); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); transition: box-shadow .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
@media (hover: hover) { .svc:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); } }
.svc .price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc.off { opacity: .55; }

.wk { display: grid; grid-template-columns: 130px auto 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.wk:last-child { border: 0; }
.wk .times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wk .times input { width: 110px; min-width: 0; height: 40px; padding: 8px; }
@media (max-width: 600px) { .wk { grid-template-columns: 1fr auto; } .wk .times { grid-column: 1 / -1; } }
.shift-prev { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.shift-prev div { text-align: center; padding: 6px 0; border-radius: 9px; font-size: 11px; background: var(--surface-2); color: var(--text-3); }
.shift-prev div b { display: block; font-size: 14px; color: var(--text); }
.shift-prev div.w { background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 600px) { .shift-prev { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

.menu-list { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: var(--r-l); padding: 6px; box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); }
.menu-list a { height: 50px; color: var(--text); }
.menu-list a::after { content: '›'; margin-left: auto; color: var(--text-3); font-size: 20px; }
.menu-list a:active { background: var(--surface-2); transform: scale(.99); }

.msg { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; }
.msg:last-child { border: 0; }
.msg .text { white-space: pre-wrap; font-size: 14px; word-break: break-word; }
@media (max-width: 600px) { .msg { grid-template-columns: 1fr; gap: 6px; } }

.copybox { display: flex; gap: 8px; align-items: center; background: var(--surface-2); padding: 6px 6px 6px 14px; border-radius: 14px; min-width: 0; }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px var(--mono); }

.client-av { width: 40px; height: 40px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; font-weight: 650; flex: none; }
@media (max-width: 600px) { .hide-m { display: none; } }

/* шаблоны сообщений */
.tpl-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-vars button { height: 28px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--surface-2); font: 500 12.5px var(--mono); color: var(--text-2); cursor: pointer; transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.tpl-vars button:hover { background: var(--brand-soft); color: var(--brand-text); }
.tpl-vars button:active { transform: scale(.94); }
.bubble-prev { white-space: pre-wrap; background: var(--surface-2); border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 14px; line-height: 1.45; max-width: 420px; }
.tpl-row textarea { overscroll-behavior: contain; min-height: 130px; font-size: 14px; line-height: 1.5; width: 100%; min-width: 0; box-sizing: border-box; }
/* Редактор текстов на телефоне: ничего не вылезает за карточку — ни поле, ни чипы, ни предпросмотр */
.tpl-body .grid > *, .tpl-body .stack { min-width: 0; }
.tpl-vars button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-prev { overflow-wrap: anywhere; word-break: break-word; }

/* тарифы */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); display: flex; flex-direction: column; gap: 16px; }
.plan.vip { background: var(--panel); color: var(--panel-text); box-shadow: var(--shadow-l); }
.plan.vip .muted { color: color-mix(in oklab, var(--panel-text) 65%, transparent); }
.plan .amount { font-size: 38px; font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.plan .amount small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--brand); font-weight: 700; flex: none; }
.plan li.off { opacity: .45; } .plan li.off::before { content: '—'; }
.plan .cur { position: absolute; top: 18px; right: 18px; }

/* в мини-приложениях */
html.in-telegram .bar { min-height: 60px; }

.save-bar { position: sticky; bottom: 16px; z-index: 5; }
.save-bar .btn { box-shadow: var(--shadow-l); }
@media (max-width: 900px) { .save-bar { bottom: calc(96px + env(safe-area-inset-bottom)); } }
html.in-telegram .save-bar { bottom: calc(96px + env(safe-area-inset-bottom)); }
.tl { padding: 10px 0; }
@media (max-width: 760px) {
  .cal-bar .dt { order: -1; flex-basis: 100%; margin: 0 0 4px; font-size: 20px; }
  .cal-bar #cPick { display: none; }
}

@media (max-width: 600px) { .bar-sub { display: none; } .bar { min-height: 60px; } }

/* меню «Добавить» */
.sheet-it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border: 0; border-radius: 16px; background: var(--surface-2); cursor: pointer; color: var(--text); font: inherit; transition: background-color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.sheet-it:hover { background: var(--surface-3); } .sheet-it:active { transform: scale(.98); }
.sheet-it b { display: block; } .sheet-it > svg { width: 18px; color: var(--text-3); flex: none; }
.sheet-it.dis { opacity: .55; }
.tabs-bottom a.add { flex-direction: column; gap: 2px; padding-top: 0; }
.tabs-bottom a.add span.plus { width: 40px; height: 34px; border-radius: 12px; margin-top: 2px; }
.tabs-bottom a.add .lbl { font-size: 10.5px; font-weight: 600; color: var(--text); }

/* ================= Привязанные мессенджеры ================= */
.mg-card { display: flex; flex-direction: column; padding: 4px 22px; }
.mg-head { padding: 18px 0 14px; }
.mg-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.mg-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.mg-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.mg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mg-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-name b { font-size: 15px; font-weight: 600; }
.mg-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-3); }
.mg-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.mg-pill.ok { background: var(--ok-soft); color: var(--ok); } .mg-pill.ok i { opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 22%, transparent); }
.mg-pill.wait { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 75%, var(--text)); }
.mg-pill.err { background: var(--danger-soft); color: var(--danger); }
.mg-act { display: flex; align-items: center; gap: 12px; flex: none; }
.mg-act .btn.sm { min-width: 112px; height: 36px; justify-content: center; border-radius: 11px; font-weight: 600; }
.mg-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); cursor: pointer; }
.mg-off { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.mg-off:hover { color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--danger) 30%, transparent); }
.mg-on:not(.brand) { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.mg-panel { padding: 2px 0 18px 48px; display: flex; flex-direction: column; gap: 14px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.mg-panel[hidden] { display: none; }
.mg-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.way-pick.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way-body:not(:empty) { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--surface-2); animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.way-body .steps-v { margin-top: 0; }
.pair-code { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text); -webkit-tap-highlight-color: transparent; }
.pair-code span { width: 38px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); font: 700 24px var(--mono); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mg) 45%, var(--border)), 0 4px 14px -8px var(--mg); animation: rise .4s cubic-bezier(.2,.8,.2,1) backwards; }
.pair-code span:nth-of-type(2) { animation-delay: .03s } .pair-code span:nth-of-type(3) { animation-delay: .06s } .pair-code span:nth-of-type(4) { animation-delay: .09s }
.pair-code span:nth-of-type(5) { animation-delay: .12s } .pair-code span:nth-of-type(6) { animation-delay: .15s } .pair-code span:nth-of-type(7) { animation-delay: .18s } .pair-code span:nth-of-type(8) { animation-delay: .21s }
.pair-code em { font-style: normal; color: var(--text-3); font-weight: 600; }
.pair-code:active span { transform: scale(.96); }
@media (max-width: 380px) { .pair-code { gap: 4px; } .pair-code span { width: 32px; height: 44px; font-size: 20px; } }
#wuCopy { gap: 8px; white-space: nowrap; } #wuCopy svg { width: 18px; height: 18px; flex: none; }
#wuCopy.done svg { display: none; } #wuCopy.done span::before { content: '✓ '; } #wuCopy.done { filter: brightness(.94); }
.copy-hint { margin: -4px 0 0; text-align: center; transition: color .2s; } .copy-hint.ok { color: var(--mg-text); font-weight: 600; }
/* кнопки и поля экранов входа не вылезают за край на узких телефонах */
.mg-login .btn.lg { white-space: normal; text-align: center; line-height: 1.25; min-height: 48px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.mg-login .method { min-width: 0; } .mg-login .method b, .mg-login .method > span:not(.mi) { overflow-wrap: anywhere; }
.mg-login .steps-v span { min-width: 0; overflow-wrap: anywhere; }
.mg-login .qr-wrap .steps-v { min-width: 0 !important; flex-basis: 200px; }
/* экран входа в мессенджер: фирменный цвет */
.mg-login { --mg: var(--brand); --mg-soft: var(--brand-soft); --mg-text: var(--brand-text); }
.mg-login.k-tg { --mg: #2aabee; --mg-soft: color-mix(in srgb, #2aabee 14%, transparent); --mg-text: #1d8fcc; }
.mg-login.k-max { --mg: #5b3cf0; --mg-soft: color-mix(in srgb, #5b3cf0 14%, transparent); --mg-text: #6a4ff5; }
.mg-login.k-wa { --mg: #25d366; --mg-soft: color-mix(in srgb, #25d366 15%, transparent); --mg-text: #14a650; }
:root[data-theme="dark"] .mg-login.k-tg { --mg-text: #6cc7f5; } :root[data-theme="dark"] .mg-login.k-max { --mg-text: #a593ff; } :root[data-theme="dark"] .mg-login.k-wa { --mg-text: #5fe39a; }
.mg-login .method { padding: 14px 14px 14px 62px; min-height: 68px; }
.mg-login .method::before { display: none; }
.mg-login .method .mi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mg-soft); color: var(--mg-text); transition: background-color .25s, color .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.mg-login .method .mi svg { width: 20px; height: 20px; }
.mg-login .method.on { box-shadow: inset 0 0 0 1.5px var(--mg), 0 10px 24px -14px var(--mg); }
.mg-login .method.on .mi { background: var(--mg); color: #fff; transform: translateY(-50%) scale(1.06); }
.mg-login .steps-v i { background: var(--mg-soft); color: var(--mg-text); }
.mg-login .way-body:not(:empty), .mg-login .login-box { background: linear-gradient(160deg, var(--mg-soft), transparent 70%), var(--surface-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mg) 18%, transparent); }
.mg-login .qr-scan { background: linear-gradient(90deg, transparent, var(--mg), transparent); box-shadow: 0 0 12px var(--mg); }
.mg-login .qr-c { border-color: var(--mg); }
.mg-login .qr-frame { box-shadow: var(--shadow-m), 0 0 0 6px var(--mg-soft); }
.mg-login .code-in:focus { box-shadow: 0 0 0 3px var(--mg-soft); border-color: var(--mg); }
.mg-foot { padding: 14px 0 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
@media (max-width: 600px) {
  .mg-card { padding: 4px 16px; }
  .mg-row { flex-wrap: wrap; }
  .mg-act { width: 100%; padding-left: 48px; }
  .mg-act .btn.sm { flex: 1; }
  .mg-panel { padding-left: 0; }
  .way-pick.n2 { grid-template-columns: 1fr; }
}
.btn-link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { opacity: .85; }
.btn-link.faint { color: var(--text-3); font-size: 12.5px; text-decoration: none; }
.btn-link.faint:hover { color: var(--text-2); text-decoration: underline; }
.brand-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.brand-ic svg { width: 22px; }
.brand-ic.tg { background: #2aabee; } .brand-ic.max { background: linear-gradient(205deg, #9b45e0 0%, #4b2ff0 50%, #3ab7ff 100%); } .brand-ic.wa { background: #25d366; } .brand-ic.bot { background: var(--panel); color: #f27fab; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }
.method { position: relative; text-align: left; padding: 14px 14px 14px 42px; border-radius: 16px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .25s, background-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.method::before { content: ''; position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface-3); transition: box-shadow .25s; }
.method b { display: block; font-size: 14.5px; } .method span { font-size: 12.5px; color: var(--text-3); }
.method:hover { background: var(--surface-3); } .method:active { transform: scale(.98); }
.method.on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-s); }
.method.on::before { box-shadow: inset 0 0 0 5px var(--brand); }
.steps-v { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.steps-v > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; animation: rise .45s cubic-bezier(.2,.8,.2,1) backwards; }
.steps-v > div:nth-child(2) { animation-delay: .05s } .steps-v > div:nth-child(3) { animation-delay: .1s } .steps-v > div:nth-child(4) { animation-delay: .15s }
.steps-v i { width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 600 12px var(--mono); font-style: normal; background: var(--brand-soft); color: var(--brand-text); }
.tips { border-radius: 14px; background: var(--surface-2); padding: 12px 14px; font-size: 13.5px; }
.tips summary { cursor: pointer; font-weight: 600; list-style: none; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary::after { content: ' ›'; color: var(--text-3); }
.tips ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.7; color: var(--text-2); }
.login-box { padding: 16px; border-radius: 18px; background: var(--surface-2); animation: rise .4s cubic-bezier(.2,.8,.2,1); }
.code-in { font: 600 22px var(--mono); letter-spacing: .3em; text-align: center; }
.qr-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-frame { position: relative; width: 212px; height: 212px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-m); overflow: hidden; flex: none; }
.qr-img { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 8px; }
.qr-img svg { width: 100%; height: 100%; pointer-events: none; user-select: none; }
.qr-scan { position: absolute; left: 10px; right: 10px; height: 2px; top: 10px; background: linear-gradient(90deg, transparent, #e5568f, transparent); box-shadow: 0 0 12px #e5568f; animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12px; } 50% { top: calc(100% - 14px); } }
.qr-c { position: absolute; width: 22px; height: 22px; border: 3px solid #e5568f; }
.qr-c.c1 { left: 6px; top: 6px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; } .qr-c.c2 { right: 6px; top: 6px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.qr-c.c3 { left: 6px; bottom: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; } .qr-c.c4 { right: 6px; bottom: 6px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* ================= Время сообщений ================= */
.day-bar { position: relative; height: 34px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3) 50%, var(--surface-2)); margin-bottom: 8px; }
.day-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.day-lg span { display: inline-flex; align-items: center; gap: 6px; }
.day-lg i.q { width: 18px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--panel) 75%, transparent) 0 4px, color-mix(in oklab, var(--panel) 55%, transparent) 4px 8px); }
.day-lg b { width: 10px; height: 10px; border-radius: 3px; } .day-lg b.t-ev { background: var(--warn); } .day-lg b.t-dg { background: var(--brand); }
.day-bar i.q { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--panel) 75%, transparent) 0 6px, color-mix(in oklab, var(--panel) 60%, transparent) 6px 12px); border-radius: 12px; transition: left .3s, width .3s; }
.day-bar b { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 4px; transition: left .3s; }
.day-bar b.t-ev { background: var(--warn); bottom: 50%; } .day-bar b.t-dg { background: var(--brand); top: 50%; }
.day-bar .lg { position: absolute; left: 0; top: 42px; font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; white-space: nowrap; }
.day-bar .lg i.q { position: static; display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.day-bar .lg b { position: static; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 0 0 8px; }
.example { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); font-size: 13.5px; line-height: 1.5; }

/* График услуги редактируется в узком модальном окне, в том числе на телефоне. */
.wk.svc-week { grid-template-columns: 1fr auto; }
.svc-week .times { grid-column: 1 / -1; min-width: 0; }
.svc-week .times input { width: 110px; min-width: 0; padding: 8px; }
.svc-week .brk { flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
#pTabs button { height: auto; min-height: 48px; min-width: 0; padding: 6px 8px; line-height: 1.3; white-space: normal; }

.wk .brk { flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
.wk .brk > .faint:first-child { flex-basis: 100%; }
.shift-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shift-hours { grid-column: 1 / -1; max-width: 340px; }
.shift-hours input { min-width: 0; flex: 1; }
#shCard .shift-break input { min-width: 0; }
@media (max-width: 600px) {
  .shift-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-anchor { grid-column: 1 / -1; }
}

/* Полный текст пробного тарифа помещается и на узком экране. */
.btn[data-trial], #trGo { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-align: center; }

/* Поддержка */
.side-sup { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 10px 0 4px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface-2); transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.side-sup:hover { background: var(--surface-3); transform: translateY(-1px); }
.side-sup .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #2aabee; color: #fff; flex: none; }
.side-sup .ic svg { width: 16px; } .side-sup > svg { width: 15px; color: var(--text-3); flex: none; }
.side-sup b { display: block; font-size: 13.5px; } .side-sup span span { display: block; font-size: 12px; color: var(--text-3); }
.sup-card { --gap: 14px; text-decoration: none; color: inherit; align-items: center; }
.sup-card b { font-size: 15px; } .sup-card .chev { width: 20px; height: 20px; flex: none; color: var(--text-3); } .sup-card .chev svg { width: 20px; height: 20px; }
.prev-names summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand-text); list-style: none; }
.prev-names summary::-webkit-details-marker { display: none; }
.prev-names summary::before { content: '+ '; }
.prev-names[open] summary::before { content: '− '; }

/* ================= Окна услуг ================= */
.av-svcs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.av-svcs::-webkit-scrollbar { display: none; }
.av-svc { flex: none; max-width: 240px; text-align: left; padding: 11px 15px; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; box-shadow: var(--shadow-s), inset 0 0 0 1px var(--border); transition: background-color .25s, color .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.av-svc b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-svc span { font-size: 12.5px; color: var(--text-3); }
.av-svc:active { transform: scale(.97); }
.av-svc.on { background: var(--ink); color: var(--ink-text); box-shadow: 0 10px 22px -12px color-mix(in oklab, var(--ink) 80%, transparent); }
.av-svc.on span { color: color-mix(in oklab, var(--ink-text) 65%, transparent); }
.av-rule { display: flex; gap: 14px; align-items: center; }
.av-rule b { display: block; font-size: 15.5px; letter-spacing: -0.01em; margin-top: 2px; }
.av-rule .btn svg { width: 15px; }
@media (max-width: 480px) { .av-rule .btn span { display: none; } }
.av-week { padding-top: 14px; }
.av-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.av-nav > div { flex: 1; text-align: center; }
.av-nav b { display: block; font-size: 15.5px; }
.av-nav span { font-size: 12.5px; color: var(--text-3); }
.av-nav .btn:disabled { opacity: .3; }
.av-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.av-day { border: 0; cursor: pointer; font: inherit; padding: 9px 0 8px; border-radius: 15px; background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 1px; transition: background-color .25s, color .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.av-day:active { transform: scale(.94); }
.av-day small { font-size: 11px; color: var(--text-3); font-weight: 500; }
.av-day b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.25; }
.av-day span { margin-top: 3px; min-width: 22px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 650; background: var(--brand-soft); color: var(--brand-text); }
.av-day.none b { color: var(--text-3); } .av-day.none span { background: transparent; color: var(--text-3); }
.av-day.on { background: var(--ink); color: var(--ink-text); box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--ink) 80%, transparent); }
.av-day.on small { color: color-mix(in oklab, var(--ink-text) 65%, transparent); }
.av-day.on b { color: var(--ink-text); }
.av-day.on span { background: var(--brand); color: #ffffff; }
.av-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 22px 0 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.av-head b { font-size: 16px; } .av-head span { font-size: 13px; color: var(--text-3); }
.av-g { margin-top: 14px; }
.av-g > span { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.av-slot { height: 46px; border: 0; border-radius: 13px; cursor: pointer; font: 600 15.5px var(--font, inherit); font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--text) 13%, transparent); animation: rise .35s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i) * 18ms); transition: background-color .2s, color .2s, box-shadow .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.av-slot:hover { background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand); }
.av-slot:active { transform: scale(.94); }
.av-tip { margin-top: 16px; }
.av-empty { margin-top: 14px; padding: 22px 16px; border-radius: 16px; text-align: center; color: var(--text-3); background: var(--surface-2); font-size: 14px; }

/* редактор дней и часов услуги */
.wd-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd-pick button { height: 44px; border: 0; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; background: var(--surface-2); color: var(--text-2); transition: background-color .2s, color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.wd-pick button:active { transform: scale(.92); }
.wd-pick button.on { background: var(--brand); color: #ffffff; box-shadow: 0 8px 18px -10px var(--glow, rgba(229, 86, 143,.6)); }
.tr { display: flex; align-items: center; gap: 10px; }
.tr .input { flex: 1; min-width: 0; text-align: center; }
.tr i { color: var(--text-3); font-style: normal; }
.hrs-custom { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.hrs-sum { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); font-size: 13.5px; line-height: 1.45; }
.hrs-sum:empty { display: none; }
.hrs-sum svg { width: 16px; flex: none; margin-top: 2px; }
.hrs-sum.err { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); }
.av-page { min-width: 0; max-width: 100%; } .av-page > * { min-width: 0; max-width: 100%; } .av-svcs { width: 100%; }

/* поле «за сколько» со своим временем */
.dur-own { display: flex; align-items: center; gap: 8px; margin-top: 8px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.dur-own .dur-n { width: 92px; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
.dur-own .dur-u { flex: 1; min-width: 0; }
.tlink { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; --gap: 14px; align-items: center; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.tlink:active { transform: scale(.98); }
.tlink .chev { width: 20px; height: 20px; flex: none; color: var(--text-3); } .tlink .chev svg { width: 20px; height: 20px; }
@media (max-width: 420px) { #nTabs button { font-size: 13px; padding: 0 2px; } }
/* перерывы списком */
.brks { display: flex; flex-direction: column; gap: 8px; flex-basis: 100%; }
.brks:empty { display: none; }
.brk-it { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.brk-it > .faint { flex-basis: 100%; margin-bottom: -2px; }
.brk-it .input { width: 110px; min-width: 0; height: 40px; padding: 8px; }
.brk-it i { color: var(--text-3); font-style: normal; }
#svBrk .brk-it .input { flex: 1; text-align: center; } #svBrk .addBrk { align-self: flex-start; margin-top: 2px; }
#svBrk .brk-it > .faint { display: none; }
/* выпадающий список сохранённых клиентов */
.cl-drop { margin-top: 6px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--border); max-height: 320px; overflow-y: auto; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.cl-drop-h { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 6px 10px 4px; }
.cl-it { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: background-color .15s; }
.cl-it:hover, .cl-it:focus-visible { background: var(--surface-2); }
.cl-it .av { width: 36px; height: 36px; border-radius: 12px; font-size: 13px; flex: none; }
.cl-it b { display: block; font-size: 14.5px; font-weight: 600; }
.cl-it .grow > span { display: block; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-it .grow { min-width: 0; }
/* поля контакта с живой проверкой */
.cin { position: relative; display: flex; align-items: center; }
.cin .input { flex: 1; min-width: 0; padding-right: 44px; transition: box-shadow .25s; }
.cin-pre { position: absolute; left: 14px; font-weight: 650; font-size: 16px; color: var(--brand-text); pointer-events: none; }
.cin:has(.cin-pre) .input { padding-left: 32px; }
.cin-ic { position: absolute; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; pointer-events: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s; transform: scale(0); }
.cin-ic svg { width: 15px; height: 15px; stroke-width: 3; }
.cin[data-state] .cin-ic:not(:empty) { transform: scale(1); }
.cin[data-state=found] .cin-ic { background: var(--brand); color: #ffffff; }
.cin[data-state=not_found] .cin-ic, .cin[data-state=not_person] .cin-ic { background: var(--danger); color: #fff; }
.cin[data-state=restricted] .cin-ic { background: var(--warn); color: #3a2400; }
.cin[data-state=found] .input { box-shadow: inset 0 0 0 1.5px var(--brand); }
.cin[data-state=not_found] .input, .cin[data-state=not_person] .input { box-shadow: inset 0 0 0 1.5px var(--danger); }
.cin-ic .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.contact-peer-wrap:not(:empty), .contact-peer-status { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.contact-peer-wrap:empty { display: none; }
.cs-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; margin-right: 6px; background: var(--surface-3); color: var(--text-2); vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.cstat:empty { display: none; }
.cstat, #naContactStatus { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.cs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 12px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.cs img, .cs .cs-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.cs .cs-av { display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--brand); color: #ffffff; }
.cs.ok { background: var(--brand-soft); color: var(--brand-text); }
.cs.bad { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; }
.cs.info { background: var(--surface-2); color: var(--text-2); }
.cs.wait { color: var(--text-3); padding-left: 2px; }
.cs-note { font-size: 12.5px; color: var(--text-3); padding: 0 4px; }
.why { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.why b { display: block; font-size: 14.5px; margin-bottom: 4px; } .why p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-list .sheet-it .muted { display: block; }
.ic-box.r { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); }
.sheet-it.danger b { color: var(--danger); }
.about-app { display: flex; gap: 12px; align-items: flex-start; padding: 6px 4px 10px; color: var(--text-3); }
.about-app .logo-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.about-app b { display: block; font-size: 13.5px; color: var(--text-2); } .about-app p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; }
.tu-h { font-weight: 650; font-size: 14.5px; margin: 0 0 10px; }

/* ================= живая нижняя панель ================= */
.tabs-bottom { isolation: isolate; }
.tabs-bottom .tab-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; z-index: -1; border-radius: 16px; background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 25%, transparent); transition: transform .45s cubic-bezier(.34,1.45,.5,1), width .3s, opacity .2s; pointer-events: none; }
.tabs-bottom a.on { background: transparent; color: var(--brand-text); }
.tabs-bottom a svg { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.tabs-bottom a.on svg { transform: translateY(-1px) scale(1.08); }
.tabs-bottom a.tap svg { animation: tabPop .45s cubic-bezier(.34,1.56,.64,1); }
.tabs-bottom a.add.tap span.plus { animation: plusSpin .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes tabPop { 0% { transform: scale(1); } 35% { transform: scale(.78) translateY(2px); } 70% { transform: scale(1.18) translateY(-2px); } 100% { transform: scale(1.08) translateY(-1px); } }
@keyframes plusSpin { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(.86) rotate(70deg); } 100% { transform: scale(1) rotate(180deg); } }
.tabs-bottom a.add span.plus { position: relative; }
.tabs-bottom a.add span.plus::after { content: ''; position: absolute; inset: -3px; border-radius: 15px; box-shadow: 0 0 0 0 rgba(229, 86, 143, .5); animation: plusGlow 2.8s ease-out infinite; pointer-events: none; }
@keyframes plusGlow { 0% { box-shadow: 0 0 0 0 rgba(229, 86, 143, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(229, 86, 143, 0); } }

.tabs-bottom a .ripple { opacity: .1; }
.card.row:active, .menu-list a:active, .tlink:active { transform: scale(.985); }
.card.row, .menu-list a { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .2s; }
@media (prefers-reduced-motion: reduce) { .ripple, .tabs-bottom a.tap svg, .tabs-bottom a.add span.plus::after { animation: none; } }
/* окна блоками по 2 часа */
.av-g > span { margin-bottom: 6px; }
.av-bk { border-radius: 16px; background: var(--surface-2); margin-bottom: 8px; overflow: hidden; transition: background-color .2s, box-shadow .2s; }
.av-bk.open { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--brand) 40%, transparent); }
.av-bk-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 0; background: transparent; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.av-bk-h b { font-size: 15.5px; font-variant-numeric: tabular-nums; flex: 1; }
.av-bk-h span { font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); }
.av-bk-h i { width: 18px; height: 18px; color: var(--text-3); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.av-bk-h i svg { width: 18px; height: 18px; }
.av-bk.open .av-bk-h i { transform: rotate(90deg); }
.av-bk-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
.av-bk-b > .av-grid { overflow: hidden; min-height: 0; padding: 0 12px; }
.av-bk.open .av-bk-b { grid-template-rows: 1fr; }
.av-bk.open .av-bk-b > .av-grid { padding: 2px 12px 12px; }
.cs.warn { background: color-mix(in oklab, var(--warn) 16%, transparent); color: color-mix(in oklab, var(--warn) 55%, var(--text)); font-weight: 600; }
.cin[data-state=restricted] .input { box-shadow: inset 0 0 0 1.5px var(--warn); }
.cs-tips { margin: 2px 0 0; padding: 0 4px 0 22px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.cs-sms { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-2); padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.cs-sms svg { width: 15px; flex: none; margin-top: 1px; color: var(--text-3); }
.about-foot { margin-top: 24px; padding: 18px 4px 6px; border-top: 1px solid var(--border); }
/* ================= Отзывы ================= */
.stars-s { color: #f5b301; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.stars-s i { color: var(--surface-3); font-style: normal; }
.stars-s.lg { font-size: 20px; }
.rv-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 480px) { .rv-top { grid-template-columns: 1fr; gap: 16px; } }
.rv-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-score > b { font-size: 46px; line-height: 1; letter-spacing: -0.04em; }
.rv-score > span:last-child { font-size: 13px; color: var(--text-3); }
.rv-dist { display: flex; flex-direction: column; gap: 6px; }
.rv-dist div { display: grid; grid-template-columns: 14px 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.rv-dist i { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rv-dist b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f5b301, #ffd25e); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.rv-dist em { font-style: normal; text-align: right; }
.rv { display: flex; flex-direction: column; gap: 12px; animation: rise .4s cubic-bezier(.2,.8,.2,1) backwards; }
.rv.off { opacity: .6; }
.rv-h { display: flex; gap: 12px; align-items: center; }
.rv-h .av { width: 40px; height: 40px; border-radius: 13px; flex: none; }
.rv-t { margin: 0; line-height: 1.55; white-space: pre-line; }
.rv-reply { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.rv-reply b { font-size: 12px; color: var(--text-3); } .rv-reply p { margin: 2px 0 0; white-space: pre-line; }
/* ================= VIP-блок с замком ================= */
.vip-sec { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.vip-sec-h { display: flex; align-items: center; gap: 10px; }
.vip-lock { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: var(--panel); color: var(--panel-text); box-shadow: var(--shadow-m); }
.vip-lock .vl-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #ffd25e; flex: none; }
.vip-lock .vl-ic svg { width: 20px; }
.vip-lock b { display: block; font-size: 15px; } .vip-lock p { margin: 2px 0 0; font-size: 13px; color: color-mix(in oklab, var(--panel-text) 70%, transparent); }
.vip-lock .grow { min-width: 200px; }
.vip-sec.is-locked .card { position: relative; }
.vip-sec.is-locked .card .setting b, .vip-sec.is-locked .card h3 { color: var(--text-2); }
.vip-sec.is-locked .card .field .input, .vip-sec.is-locked .card .dur-sel { opacity: .55; }
.lock-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); flex: none; }
.lock-ic svg { width: 16px; }
.var-help { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; font-size: 13px; }
.var-help div { display: flex; gap: 8px; align-items: baseline; }
.var-help code { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }
.var-help span { color: var(--text-2); }
.msg-link { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; margin: 2px 0; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.msg-link svg { width: 13px; height: 13px; }
.act-feed { display: flex; flex-direction: column; }
.act-it { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.45; animation: rise .35s cubic-bezier(.2,.8,.2,1) backwards; }
.act-it:last-child { border: 0; }
.act-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; font-size: 15px; }
.act-it .faint { white-space: nowrap; margin-top: 3px; }
.brand-strip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: color-mix(in oklab, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; }
.brand-strip .logo-mark { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.brand-strip div > span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.vip-pill { flex: none; white-space: nowrap; }
/* кнопки «Скопировать приглашение»: две строки, текст не вылезает */
[data-bot-invite] { height: auto; min-height: 50px; padding: 9px 14px; white-space: normal; text-align: left; justify-content: flex-start; gap: 10px; line-height: 1.25; }
[data-bot-invite] > span { display: flex; flex-direction: column; min-width: 0; }
[data-bot-invite] small { font-size: 12px; font-weight: 500; color: var(--text-3); }
[data-bot-invite] svg { flex: none; }
/* заблокированный VIP-переключатель: видно положение, сверху замок */
.switch.sw-locked { cursor: pointer; }
.switch.sw-locked input { pointer-events: none; }
.switch.sw-locked > span { opacity: .55; filter: saturate(.6); cursor: pointer; }
.sw-lock { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: #ffd25e; box-shadow: 0 0 0 2px var(--surface); z-index: 2; pointer-events: none; }
.sw-lock svg { width: 11px; height: 11px; }
.card-h > .btn, .card-h > a.btn { flex: none; white-space: nowrap; }
.card-h > div:first-child { min-width: 0; }
.bars i { min-width: 0; } .bars.dense { gap: 1px; } .bars-x span { min-width: 0; }
.brand-strip .logo-mark svg, .about-app .logo-mark svg { width: 78%; height: 78%; }
.brand-ic.sm { width: 34px; height: 34px; border-radius: 11px; } .brand-ic.sm svg { width: 17px; }
/* адрес с подсказками и выбор на карте */
.addr-in { position: relative; }
.addr-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--border); max-height: 300px; overflow-y: auto; animation: rise .2s cubic-bezier(.2,.8,.2,1); }
.addr-sug button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.addr-sug button:hover { background: var(--surface-2); }
.addr-sug button > span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.addr-sug button > span svg { width: 15px; }
.addr-sug b { display: block; font-size: 14px; } .addr-sug small { color: var(--text-3); font-size: 12px; }
.addr-none { padding: 10px; font-size: 13px; color: var(--text-3); }
.pick-map { height: min(52vh, 420px); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.pick-addr { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; min-height: 42px; }

/* Уточнения к адресу и фото */
.addr-x { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.addr-x-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.addr-x-h b { font-size: 14.5px; }
.addr-x-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .addr-x-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addr-x .input { background: var(--surface); }
.ph-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-cap { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ph-strip.is-locked .ph-add { opacity: .55; }
.ph-main { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); pointer-events: none; }
.ph { position: relative; width: 84px; height: 84px; flex: none; }
.ph-img { width: 100%; height: 100%; border: 0; padding: 0; border-radius: 14px; background: var(--surface-3) center / cover no-repeat; cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--border); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.ph-img:hover { transform: scale(1.04); }
.ph-del { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.ph-del svg { width: 12px; }
.ph-del:hover { color: var(--danger); }
.ph-add { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 14px; border: 1.5px dashed var(--border-strong, var(--border)); color: var(--text-2); cursor: pointer; background: var(--surface); transition: border-color .2s, color .2s; }
.ph-add:hover { border-color: var(--brand); color: var(--brand-text); }
.ph-add span svg { width: 20px; }
.ph-add small { font-size: 11.5px; }
.ph-add.busy { pointer-events: none; opacity: .6; }

/* Поддержка: Telegram или почта */
.sup-card2 { display: grid; gap: 12px; }
.sup-card2 b { font-size: 15px; }
.sup-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sup-acts.n3 > :first-child { grid-column: 1 / -1; } /* три плитки: чат во всю ширину, без пустого места */
@media (min-width: 900px) { .sup-acts.n4 { grid-template-columns: repeat(4, 1fr); } .sup-acts.n3 { grid-template-columns: repeat(3, 1fr); } .sup-acts.n3 > :first-child { grid-column: auto; } }
.sup-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 0; border-radius: 16px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.sup-tile:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); }
.sup-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sup-tile b { font-size: 14px; line-height: 1.25; }
.sup-tile small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-ti { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.sup-ti svg { width: 17px; height: 17px; }
.sup-ti.chat { background: var(--brand); } .sup-ti.tg { background: #2aabee; } .sup-ti.mx { background: linear-gradient(205deg, #9b45e0, #4b2ff0 50%, #3ab7ff); } .sup-ti.mail { background: var(--ink); color: var(--ink-text); }
.sup-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); text-decoration: none; color: var(--text); transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.sup-opt:hover { background: var(--surface-3); transform: translateY(-1px); }
.sup-opt .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--ink-text); }
.sup-opt .ic.tg { background: #2aabee; color: #fff; }
.sup-opt .ic svg { width: 18px; height: 18px; }
.sup-opt b { display: block; font-size: 15px; } .sup-opt small { display: block; color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.sup-opt > svg { width: 15px; color: var(--text-3); flex: none; }

/* Фото мастера */
.av.av-img { padding: 0; overflow: hidden; background: var(--surface-2); }
.av.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-edit { position: relative; border: 0; padding: 0; background: none; cursor: pointer; flex: none; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.av-edit i { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-text); box-shadow: 0 0 0 3px var(--surface); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.av-edit i svg { width: 13px; height: 13px; }
.av-edit:hover i { transform: scale(1.12); }
.av-link { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-text); cursor: pointer; }
.av-big { width: 160px; height: 160px; border-radius: 40px; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow-m); }
.mg-vip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); cursor: pointer; white-space: nowrap; }
.mg-vip svg { width: 12px; height: 12px; }
.mg-lock { margin: 0 0 16px; }
.mg-lock .vip-lock { padding: 14px 16px; }
.side-me-row { display: flex; align-items: center; gap: 4px; }
.side-me-row .side-me { flex: 1; min-width: 0; }
.side-out { flex: none; width: 36px; height: 36px; border: 0; border-radius: 11px; display: grid; place-items: center; background: transparent; color: var(--text-3); cursor: pointer; transition: background-color .2s, color .2s; }
.side-out svg { width: 18px; }
.side-out:hover { background: var(--danger-soft); color: var(--danger); }
.prof-out { color: var(--text-2); }
.prof-out:hover { color: var(--danger); background: var(--danger-soft); }
.na-notify { margin: 0; }

/* Мессенджеры клиента в форме: Telegram / Max / WhatsApp */
.peers { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface-2); padding: 4px 12px; }
.pr-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pr-row + .pr-row { border-top: 1px solid var(--border); }
.brand-ic.xs { width: 30px; height: 30px; border-radius: 10px; box-shadow: none; } .brand-ic.xs svg { width: 16px; }
.pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pr-name { font-size: 13.5px; font-weight: 600; }
.pr-st { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--text-3); }
.pr-st > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-st b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.pr-st i { font-style: normal; }
.pr-st img, .pr-av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.pr-av { display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; background: var(--brand); color: #fff; }
.pr-row[data-state=ok] .pr-st > span:last-child { color: var(--ok); font-weight: 600; }
.pr-row[data-state=bad] .pr-st { color: var(--danger); }
.pr-row[data-state=warn] .pr-st { color: color-mix(in oklab, var(--warn) 60%, var(--text)); }
.pr-row[data-state=wait] .pr-st { color: var(--text-3); }
.pr-sw { flex: none; display: flex; }
.pr-row:not([data-state=ok]) .brand-ic { filter: grayscale(1); opacity: .45; }
.pr-sw input:disabled + span { opacity: .4; cursor: not-allowed; }
.peers-h { padding: 10px 0 4px; font-size: 12px; font-weight: 600; color: var(--text-2); } .peers-h span { font-weight: 400; color: var(--text-3); }
/* Тексты: список с раскрытием */
.tpl-row { padding: 0; overflow: hidden; }
.tpl-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tpl-head h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-head p { margin: 3px 0 0; font-size: 13px; color: var(--text-3); }
.tpl-chev { flex: none; color: var(--text-3); transition: transform .25s; } .tpl-chev svg { width: 18px; }
.tpl-row.open .tpl-chev { transform: rotate(90deg); }
.tpl-body { padding: 0 20px 20px; }
.tpl-dirty { display: none; height: 20px; padding: 0 8px; border-radius: 99px; align-items: center; font-size: 11px; font-weight: 600; background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 65%, var(--text)); }
.tpl-row.dirty .tpl-dirty { display: inline-flex; }
@media (max-width: 600px) { .tpl-head { padding: 14px 16px; } .tpl-body { padding: 0 16px 16px; } }
/* Узкие телефоны (320–360px): действия в мессенджерах переносятся, а не вылезают за экран */
.mg-act { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 360px) { .mg-act { padding-left: 0; } .mg-act .btn.sm { min-width: 96px; } }
.soc-fill:empty { display: none; } .soc-fill { margin-top: 6px; } .soc-fill-btn { font-size: 12.5px; text-align: left; }
/* Шапка раздела — во всю ширину (раньше справа и слева оставалась полоса, похожая на недоделку);
   ленты дней прокручиваются до края экрана, а не обрезаются отступом */
.bar { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 900px) {
  .bar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  #cDays { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
}

/* ---------- Тариф (новый вид) ---------- */
.tp-now { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-xl); background: var(--panel); color: var(--panel-text); box-shadow: var(--shadow-m); }
.tp-now::after { content: ''; position: absolute; right: -90px; top: -130px; width: 340px; height: 340px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(229, 86, 143, .5), transparent); }
.tp-now-main { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 240px; }
.tp-now-ic { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.tp-now-ic svg { width: 24px; color: #f7a8c7; }
.tp-now.on .tp-now-ic { background: linear-gradient(150deg, #f7a1c0, var(--brand)); } .tp-now.on .tp-now-ic svg { color: #fff; }
.tp-kicker { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.tp-now h2 { font-size: 26px; letter-spacing: -0.03em; margin: 2px 0 4px; color: inherit; }
.tp-now p { margin: 0; font-size: 13.5px; opacity: .75; line-height: 1.45; }
.tp-now .tp-sms { margin-top: 6px; font-size: 12.5px; opacity: .55; }
.tp-meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); margin: 10px 0 2px; overflow: hidden; max-width: 340px; }
.tp-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5568f, #ffd0e1); }
.tp-now-acts { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.tp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.tp-plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.tp-plan.vip { box-shadow: var(--shadow-m), inset 0 0 0 2px var(--brand); background: linear-gradient(180deg, color-mix(in oklab, var(--brand-soft) 55%, var(--surface)), var(--surface) 45%); }
.tp-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-plan-h h3 { font-size: 19px; letter-spacing: -0.02em; }
.tp-badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.tp-badge.hot { background: var(--brand); color: #fff; }
.tp-price { font-size: 40px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.tp-price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.tp-alt { margin-top: -8px; font-size: 13px; color: var(--text-3); }
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 14.5px; }
.tp-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.tp-list li svg { width: 18px; flex: none; margin-top: 1px; color: var(--brand); }
.tp-list li.off { color: var(--text-3); } .tp-list li i { width: 18px; flex: none; text-align: center; font-style: normal; }
.tp-link { border: 0; background: none; color: var(--brand-text); font: inherit; font-size: 13.5px; cursor: pointer; padding: 2px; margin-top: -4px; }
.tp-methods { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.tp-methods > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.tp-methods b { font-size: 14.5px; } .tp-methods span { font-size: 12.5px; color: var(--text-3); }
.pmarks { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pmark { width: 44px; height: 28px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); display: block; }
.tp-faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.tp-faq details:first-of-type { border-top: 0; }
.tp-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.tp-faq summary::after { content: '+'; color: var(--text-3); font-weight: 400; }
.tp-faq details[open] summary::after { content: '−'; }
.tp-faq details p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 760px) {
  .tp-plans { grid-template-columns: 1fr; }
  .tp-now { padding: 20px; } .tp-now-acts { width: 100%; min-width: 0; } .tp-now h2 { font-size: 23px; }
  .tp-plan.vip { order: -1; }
}

/* ---------- Окно оплаты ---------- */
.pm { display: flex; flex-direction: column; gap: 12px; }
.pm-sum { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.pm-sum-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, #f7a1c0, var(--brand)); color: #fff; }
.pm-sum-ic svg { width: 19px; }
.pm-sum b { display: block; font-size: 15px; } .pm-sum small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.pm-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.pm-list { display: flex; flex-direction: column; gap: 8px; }
.pm-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.pm-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in oklab, var(--brand-soft) 40%, var(--surface)); }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-opt .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pm-opt b { font-size: 14.5px; } .pm-opt small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.pm-opt .pmarks { margin-top: 3px; } .pm-opt .pmarks .pmark { width: 36px; height: 23px; }
.pm-ic { width: 44px; flex: none; display: grid; place-items: center; }
.pm-ic .pmark { width: 44px; height: 28px; }
.pm-emoji { font-size: 26px; line-height: 1; }
.pm-price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.pm-opt::after { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--border); }
.pm-opt:has(input:checked)::after { box-shadow: inset 0 0 0 5px var(--brand); }
.pm-auto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.pm-auto[hidden] { display: none; }
.pm-auto .grow { display: flex; flex-direction: column; gap: 2px; } .pm-auto b { font-size: 14px; } .pm-auto small { font-size: 12px; color: var(--text-3); }
.pm-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.pm-legal { margin: 0; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.45; }
.pm-legal a { color: inherit; text-decoration: underline; }

/* Эффекты нижней панели выходят за кнопку, как и её свечение. */
.tabs-bottom, .tabs-bottom a.has-ripple { overflow: visible; }
.invite-actions { display: grid; gap: 10px; }
.invite-actions .btn { white-space: normal; height: auto; min-height: 46px; padding: 12px; }

/* «Пригласить коллегу +14 дней VIP» — в одну строку и в меню, и в боковой панели */
.side-nav a[href="#invite"] { gap: 5px; padding: 0 6px 0 9px; } .side-nav a[href="#invite"] > span:not(.nav-gift) { white-space: nowrap; font-size: 13px; letter-spacing: -0.015em; }
.side-nav a[href="#invite"] .nav-gift { margin-left: auto; padding: 2px 4px; font-size: 9.5px; letter-spacing: -0.01em; }
.menu-list a .mi-t { flex: 1; } .mi-t b { white-space: nowrap; } .mi-t .nav-gift { display: inline-block; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 380px) { .mi-t .nav-gift { font-size: 9.5px; padding: 2px 6px; margin-left: 4px; } }

/* Главная: спокойная типографика и отдельная карточка привилегий. */
.home-brand { display:flex; align-items:center; gap:12px; padding:8px 2px 4px; }
.home-brand-mark { width:44px; height:44px; flex:none; }
.home-brand b { display:block; font-size:18px; letter-spacing:-.04em; }
.home-brand span:not(.home-brand-mark):not(.home-brand-detail) { display:block; font-size:12px; color:var(--text-3); }
.home-brand-detail { margin-left:auto; color:var(--text-3); font-size:12px; }
.home-vip { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; gap:30px; padding:32px; border-radius:28px; color:#fff5fa; background:radial-gradient(ellipse at 100% 0, #784052 0, transparent 65%),linear-gradient(120deg,#291521,#3f2233); box-shadow:0 16px 40px -24px #442036; border:1px solid #ffffff24; }
.home-vip::before { content:''; position:absolute; z-index:-1; width:400px; height:400px; border:1px solid #ffd5e329; border-radius:50%; right:-190px; top:-220px; box-shadow:0 0 0 42px #ffd5e30a,0 0 0 84px #ffd5e306; pointer-events:none; }
.home-vip-content { flex:1; min-width:0; }
.home-vip-label { display:inline-flex; align-items:center; gap:7px; color:#efc8d8; font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.home-vip-label svg { width:16px; }
.home-vip h2 { font-size:30px; line-height:1.18; font-weight:500; letter-spacing:-.045em; margin:14px 0 12px; }
.home-vip p { color:#dbc3ce; font-size:13px; line-height:1.6; max-width:400px; }
.home-vip .btn { background:#f7d9e6; color:#3a1929; margin-top:22px; font-size:13px; font-weight:650; box-shadow:0 4px 18px #0a000324; border:1px solid #fff7; }
.home-vip-note { display:block; margin-top:10px; font-size:10.5px; color:#cdb0be; }
.home-vip-pass { width:142px; flex:none; padding:20px 16px; border:1px solid #fff3; border-radius:22px; background:linear-gradient(140deg,#ffe0ed26,#ffb2cf08); box-shadow:inset 0 1px #ffffff30,0 20px 35px #0e000226; transform:rotate(7deg); text-align:center; }
.home-vip-pass > span { font:500 9px var(--mono); letter-spacing:.16em; color:#e6bdcf; }
.home-vip-pass b { display:block; font-size:78px; font-weight:300; line-height:1.2; letter-spacing:-.08em; }
.home-vip-pass small { display:block; color:#e6bdcf; font-size:11px; }
.home-vip-pass i { display:grid; place-items:center; width:32px; height:32px; margin:18px auto 0; color:#ffe2ee; }
.home-vip-pass svg { width:26px; }
.vip-pill .g { background:linear-gradient(145deg,var(--panel),color-mix(in oklab,var(--brand) 45%,var(--panel))); color:#ffe6f1; box-shadow:inset 0 0 0 1px #fff3; }
#bNew { border-radius:14px; background:linear-gradient(145deg,var(--brand),var(--brand-text)); color:#fff; box-shadow:0 6px 18px color-mix(in oklab,var(--brand) 20%,transparent); }
.tabs-bottom a.add span.plus { background:linear-gradient(145deg,#573045,#2e1926); color:#ffe5f0; box-shadow:inset 0 0 0 1px #ffffff40,0 5px 16px #401b3533; border-radius:17px; }
.tabs-bottom a.add span.plus::before { content:''; position:absolute; inset:4px; border:1px solid #f8b8d538; border-radius:13px; pointer-events:none; }
.pmark-logo { object-fit:contain; padding:5px; background:#fff; }
@media(max-width:600px) {
  .home-brand-detail { display:none; }
  .home-vip { padding:24px 20px; gap:8px; align-items:flex-start; }
  .home-vip h2 { font-size:24px; }
  .home-vip-pass { position:absolute; right:-26px; top:24px; width:106px; opacity:.18; transform:rotate(12deg); pointer-events:none; z-index:-1; }
  .home-vip-pass b { font-size:62px; }
  .home-vip .btn { width:100%; text-align:left; justify-content:space-between; }
  .home-vip-note { font-size:10px; }
}

.save-bar { border:1px solid color-mix(in oklab,var(--brand) 18%,var(--border)); background:color-mix(in oklab,var(--surface) 93%,transparent); border-radius:20px; padding:8px; box-shadow:var(--shadow-m); }
.save-bar .btn { border-radius:14px; background:linear-gradient(130deg,var(--brand),var(--brand-text)); color:#fff; border:1px solid #ffffff30; box-shadow:inset 0 1px #ffffff30; min-height:48px; font-weight:600; }
.is-dirty .save-bar::before { content:'Есть несохранённые изменения'; display:block; text-align:center; font-size:11px; color:var(--text-3); padding:1px 0 7px; }
.ai-help-link { display:flex; align-items:center; gap:9px; padding:12px 14px; margin:4px 0 10px; border-radius:12px; color:var(--brand-text); background:var(--brand-soft); font-size:13px; text-decoration:none; }
.ai-help-link svg { width:18px; flex:none; }
.ai-help-link svg:last-child { margin-left:auto; }
.ai-intro h2 { font-size:30px; margin:16px 0 12px; letter-spacing:-.04em; }
.ai-intro p { color:var(--text-2); max-width:640px; margin-bottom:20px; }
.ai-examples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ai-example { border:1px solid var(--border); border-radius:18px; padding:16px; }
.ai-example h3 { font-size:14px; margin-bottom:14px; }
.ai-chat { display:flex; flex-direction:column; gap:6px; }
.ai-chat-caption { font-size:10px; color:var(--text-3); }
.ai-chat-caption.assistant { align-self:flex-end; margin-top:6px; }
.ai-bubble { max-width:92%; padding:11px 14px; font-size:13px; line-height:1.5; white-space:pre-wrap; border-radius:16px 16px 16px 5px; background:var(--surface-2); }
.ai-bubble.assistant { align-self:flex-end; background:var(--brand-soft); color:var(--brand-text); border-radius:16px 16px 5px 16px; }
.ai-effect { display:flex; gap:7px; color:var(--text-3); font-size:11px; line-height:1.5; margin-top:16px; }
.ai-effect svg { width:15px; flex:none; color:var(--brand-text); }
.ai-demo-reply { display:flex; flex-direction:column; gap:12px; margin-top:20px; }
@media(max-width:600px) { .ai-examples { grid-template-columns:1fr; } .ai-intro h2 { font-size:25px; } }

.invite-preview { padding:18px; border-radius:18px; background:var(--surface-2); border:1px solid var(--border); }
.invite-preview .kicker { font-size:10px; margin-bottom:12px; }
.invite-preview p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
.invite-compose .invite-actions { margin-top:4px; }
.invite-compose .invite-actions .btn { justify-content:flex-start; gap:12px; border-radius:14px; min-height:50px; padding:13px 16px; }

/* Персональные приглашения и настройка кабинета */
.studio-flow { display:grid; gap:20px; }
.studio-intro { position:relative; isolation:isolate; overflow:hidden; border-radius:22px; padding:28px; background:linear-gradient(125deg,#291e2d,#483344 70%,#674452); color:#fff5f9; border:1px solid #d4b8c345; }
.studio-intro::after { content:''; position:absolute; width:220px; height:220px; border:1px solid #f2d3e322; border-radius:50%; right:-115px; top:-90px; box-shadow:0 0 0 25px #f2d3e308,0 0 0 65px #f2d3e305; z-index:-1; }
.studio-intro .kicker { color:#e4b8cb; font-size:10px; letter-spacing:.16em; }
.studio-intro h2 { font-size:32px; font-weight:500; line-height:1.15; letter-spacing:-.045em; margin:17px 0 12px; }
.studio-intro p { color:#e7d2df; font-size:13px; line-height:1.65; max-width:340px; margin:0; }
.studio-seal { display:grid; place-items:center; position:absolute; right:22px; top:23px; height:36px; width:36px; border:1px solid #e7bdcf66; border-radius:12px; color:#f2d3df; transform:rotate(-8deg); }
.studio-seal svg { width:20px; }
.studio-choices { display:grid; gap:12px; }
.studio-choice { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:20px 16px; color:var(--text); text-decoration:none; text-align:left; cursor:pointer; width:100%; box-shadow:0 4px 16px -12px var(--shadow-color,#41203033); transition:transform .2s,border-color .2s; }
.studio-choice:hover { border-color:var(--brand); transform:translateY(-2px); }
.studio-choice b { font-size:15px; font-weight:600; display:block; }
.studio-choice small { display:block; color:var(--text-3); line-height:1.5; font-size:12px; margin-top:5px; }
.studio-choice > svg { width:18px; flex:none; color:var(--text-3); }
.choice-number { flex:none; font-family:'Geist Mono',monospace; color:var(--brand-text); font-size:12px; width:38px; height:42px; display:grid; place-items:center; background:var(--surface-2); border-radius:12px; }
.choice-number svg { width:20px; }
.studio-caption { color:var(--text-3); text-align:center; font-size:11px; line-height:1.6; margin:0 10px; }
.invite-letter { border:1px solid var(--border); border-radius:20px; background:var(--surface); box-shadow:0 12px 32px -20px #49223855; padding:20px; position:relative; }
.letter-author { display:flex; align-items:center; gap:10px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.letter-author b { display:block; font-size:13px; }
.letter-author small { display:block; margin-top:3px; font-size:10px; color:var(--text-3); }
.letter-dot { width:6px; height:6px; background:var(--brand); border-radius:50%; margin-left:auto; }
.invite-letter .invite-preview { padding:17px 0; border:0; border-radius:0; background:none; }
.invite-letter .invite-preview p { font-size:13px; line-height:1.75; margin:0; }
.letter-footer { display:flex; align-items:center; gap:8px; color:var(--text-3); border-top:1px solid var(--border); padding-top:13px; font-size:10px; }
.letter-footer svg { width:15px; }
.invite-compose .invite-actions { gap:10px; margin:0; }
.invite-compose .invite-channel { min-height:58px; background:var(--surface); font-size:13px; }
.invite-channel .grow { text-align:left; }
.invite-channel > svg { width:16px; color:var(--text-3); }
.channel-icon { display:grid; place-items:center; width:30px; height:30px; color:var(--brand-text); border-radius:9px; background:var(--surface-2); flex:none; }
.channel-icon svg { width:18px; }
.invite-compose #inviteCopy { background:linear-gradient(125deg,#352333,#614256); color:#fff3fa; border-color:#8b6378; box-shadow:inset 0 1px 0 #ffffff20,0 7px 18px -12px #34202d; justify-content:center; }
.booking-link-tip { padding:24px; border-radius:20px; display:flex; align-items:flex-start; gap:16px; border:1px solid color-mix(in oklab,var(--brand) 28%,var(--border)); background:linear-gradient(120deg,var(--surface),color-mix(in oklab,var(--brand) 8%,var(--surface))); }
.tip-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; flex:none; background:var(--surface); color:var(--brand-text); border:1px solid var(--border); }
.tip-icon svg { width:20px; }
.booking-link-tip .kicker { color:var(--brand-text); font-size:10px; }
.booking-link-tip h3 { font-size:17px; margin:8px 0; }
.booking-link-tip p { font-size:13px; line-height:1.6; color:var(--text-2); margin:0 0 14px; }
.tip-link { display:flex; align-items:center; gap:8px; padding:5px 6px 5px 12px; border:1px solid var(--border); background:var(--surface); border-radius:12px; }
.tip-link a { flex:1; min-width:0; overflow-wrap:anywhere; font-size:12px; color:var(--brand-text); text-decoration:none; }
.vip-membership { padding:24px; border-radius:22px; border:1px solid #a87c9444; background:radial-gradient(ellipse at 110% 0,#85586b77,transparent 65%),linear-gradient(125deg,#291e2d,#47303f); }
.vip-membership::after { animation:none; background:none; width:170px; height:170px; border:1px solid #efc4da33; box-shadow:0 0 0 30px #efc4da08; right:-75px; top:30px; }
.membership-top { display:flex; justify-content:space-between; align-items:center; color:#e9bfd2; font-size:9px; letter-spacing:.14em; }
.membership-top svg { width:23px; }
.membership-days { display:flex; align-items:center; gap:15px; margin-top:20px; }
.membership-days b { font-weight:400; font-size:64px; line-height:.95; letter-spacing:-.07em; color:#ffe6f2; }
.membership-days span { font-size:16px; font-weight:400; line-height:1.4; color:#fff1f8; }
.vip-membership p { font-size:12px; opacity:1; color:#d7bfcc; line-height:1.65; margin:20px 0; }
.vip-membership .btn { background:#f6e1eb; color:#382332; border-color:#fcebf4; justify-content:space-between; padding:10px 13px; font-size:12px; }
.vip-membership > small { display:block; font-size:10px; color:#d2afc1; margin-top:12px; }
.trial-pass { display:flex; align-items:center; gap:16px; margin:22px 0; }
.trial-pass b { font-size:84px; line-height:.9; font-weight:400; letter-spacing:-.07em; color:#ffe3f0; }
.trial-pass span { font-size:21px; line-height:1.4; font-weight:400; }
.trial-pass > svg { width:38px; margin-left:auto; color:#dab0c2; }
.trial-experience #trGo { background:linear-gradient(120deg,#352333,#654659); border:1px solid #977085; color:#fff0f7; white-space:normal; height:auto; min-height:54px; }
.profile-hero { position:relative; overflow:hidden; padding:28px; border-radius:22px; background:linear-gradient(125deg,var(--surface),color-mix(in oklab,var(--brand) 11%,var(--surface))); border-color:color-mix(in oklab,var(--brand) 22%,var(--border)); }
.profile-hero .kicker,.menu-profile .kicker { font-size:9px; color:var(--brand-text); display:block; margin-bottom:8px; letter-spacing:.14em; }
.profile-hero .av-edit { padding:5px; border-radius:50%; border:1px solid color-mix(in oklab,var(--brand) 45%,var(--border)); background:var(--surface); }
.profile-hero .av-link { font-size:11px; margin-top:10px; }
.menu-profile { padding:24px; border-radius:22px; background:linear-gradient(120deg,var(--surface),color-mix(in oklab,var(--brand) 8%,var(--surface))); }
.menu-profile b { font-size:21px; font-weight:500; }
.profile-plan { margin-top:8px; display:inline-flex; gap:5px; align-items:center; padding:4px 8px; border:1px solid var(--border); border-radius:7px; color:var(--text-2); font-size:10px; background:var(--surface); }
.profile-plan svg { width:12px; color:var(--brand-text); }
.bar .vip-pill { border:1px solid color-mix(in oklab,var(--brand) 30%,var(--border)); border-radius:14px; height:42px; background:linear-gradient(135deg,var(--surface),var(--surface-2)); box-shadow:inset 0 1px 0 #ffffff30,0 4px 12px -9px #39213188; }
.bar .vip-pill .g { border-radius:9px; width:30px; height:30px; background:linear-gradient(135deg,#382b3a,#6a475b); color:#ffe1ef; }
.bar .vip-pill .g svg { width:19px; stroke-width:1.35; }
.bar #bNew { height:42px; min-width:42px; border-radius:14px; background:linear-gradient(135deg,#352737,#68465a); border:1px solid #a778903d; color:#ffeaf5; box-shadow:inset 0 1px 0 #ffffff30,0 6px 14px -10px #322030; }
.bar #bNew svg { stroke-width:1.5; width:23px; }
.bar .header-stop { height:42px; width:42px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--text-2); flex:none; }
.bar .header-stop.paused { color:var(--brand-text); border-color:var(--brand); background:var(--surface-2); }
.leave-actions { display:grid; gap:10px; }
.leave-actions .btn { white-space:normal; height:auto; min-height:46px; }
@media(max-width:600px) {
 .studio-intro { padding:24px; }
 .studio-intro h2 { font-size:29px; }
 .studio-choice { padding:18px 14px; gap:12px; }
 .studio-choice b { font-size:14px; }
 .invite-letter { padding:18px; }
 .booking-link-tip { padding:20px; gap:12px; }
 .booking-link-tip h3 { font-size:16px; }
 .profile-hero { padding:22px 18px; gap:12px; }
 .bar { flex-wrap:wrap; gap:8px; }
 .bar .bar-t { flex:1 1 140px; }
 .bar h1 { font-size:21px; }
 #barActions { flex:none; }
 .bar .vip-pill { width:42px; padding:5px; }
 .bar .grow { display:none; }
 .bar-sub { font-size:10px; line-height:1.5; margin-top:5px; }
}
.invite-compose .invite-channel { border:1px solid var(--border); }
@media(max-width:600px) { .invite-intro { padding:22px; } .invite-intro h2 { font-size:27px; margin:15px 0 10px; } .invite-intro p { font-size:12px; } .invite-compose { gap:16px; } }
@media(max-width:600px) { .invite-intro > p { display:none; } .invite-letter .invite-preview p { font-size:12px; line-height:1.65; } .invite-compose .invite-actions .btn { min-height:48px; padding:10px 14px; } }
.profile-hero .profile-plan { margin-right:12px; }
@media(max-width:600px) { .bar #bNew { width:42px; padding:0; } }

/* ---------- «Ещё»: карточка профиля ---------- */
.mp { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; text-decoration: none; color: inherit; background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--brand) 16%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.mp:active { transform: scale(.99); }
.mp .mp-av { width: 60px; height: 60px; flex: none; border-radius: 20px; font-size: 22px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in oklab, var(--brand) 45%, transparent); }
.lk-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); display: flex; flex-direction: column; gap: 8px; }
.lk-h b { display: block; font-size: 15px; } .lk-h small { color: var(--text-3); font-size: 12.5px; }
.lk-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--surface-2); }
.lk-row.best { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--brand) 35%, transparent); }
.lk-t { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); } .lk-t i { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10.5px; }
.lk-row code { display: block; font-size: 15px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0; }
.lk-row small { color: var(--text-3); font-size: 11.5px; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.mp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-t b { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-t small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mp-plan, .mp-link { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.mp-plan { background: var(--surface-2); color: var(--text-2); }
.mp-plan svg { width: 13px; color: var(--brand-text); }
.mp-plan.trial { background: var(--brand-soft); color: var(--brand-text); }
.mp-plan.vip { background: linear-gradient(135deg, #3a1f2e, #6b3a55); color: #ffe1ee; } .mp-plan.vip svg { color: #ffc2da; }
.mp-link { color: var(--brand-text); padding: 0 4px; }
.mp-go { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.mp-go svg { width: 16px; }

/* ---------- «Что добавить?» ---------- */
.as { display: flex; flex-direction: column; gap: 10px; }
.as-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.as-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 0; border-radius: 20px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.as-tile:hover { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--brand) 45%, transparent); }
.as-tile:active { transform: scale(.97); }
.as-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #f58cb4, var(--brand)); box-shadow: 0 8px 18px -10px var(--brand); }
.as-ic svg { width: 22px; }
.as-t { display: flex; flex-direction: column; gap: 3px; }
.as-t b { font-size: 16px; letter-spacing: -0.01em; }
.as-t small { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.as-tile.hero { flex-direction: row; align-items: center; gap: 14px; padding: 20px; color: #fff; background: linear-gradient(135deg, #f27aa8 0%, var(--brand) 45%, #b8336b 100%); box-shadow: 0 16px 30px -18px var(--brand); }
.as-tile.hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); pointer-events: none; }
.as-tile.hero .as-ic { width: 52px; height: 52px; border-radius: 17px; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.as-tile.hero .as-t b { font-size: 18px; } .as-tile.hero .as-t small { color: rgba(255,255,255,.85); }
.as-tile.svc .as-ic { background: linear-gradient(145deg, #a78bfa, #7c5ce0); box-shadow: 0 8px 18px -10px #7c5ce0; }
.as-tile.cl .as-ic { background: linear-gradient(145deg, #5ec8f0, #2a9fd6); box-shadow: 0 8px 18px -10px #2a9fd6; }
.as-tile.line { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.as-tile.line .as-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); box-shadow: none; }
.as-tile.line .as-t b { font-size: 14.5px; }

/* ---------- Кнопка «+ Добавить»: живой розовый градиент со свечением ---------- */
.bar #bNew, #bNew { position: relative; overflow: hidden; border: 0; border-radius: 15px; background: linear-gradient(135deg, #f58cb4 0%, var(--brand) 50%, #c33572 100%); color: #fff; box-shadow: 0 10px 22px -10px var(--brand), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
#bNew::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: addShine 4.5s ease-in-out infinite; pointer-events: none; }
#bNew svg { stroke-width: 2.4; width: 21px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
#bNew:hover svg { transform: rotate(90deg); }
#bNew:active { transform: scale(.94); }
.tabs-bottom a.add span.plus { background: linear-gradient(135deg, #f58cb4 0%, var(--brand) 50%, #c33572 100%); color: #fff; box-shadow: 0 10px 22px -8px var(--brand), inset 0 1px 0 rgba(255,255,255,.35); border-radius: 16px; overflow: hidden; }
.tabs-bottom a.add span.plus::before { inset: 0; border: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: addShine 4.5s ease-in-out infinite; }
.tabs-bottom a.add span.plus svg { stroke-width: 2.6; position: relative; }
@keyframes addShine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { #bNew::before, .tabs-bottom a.add span.plus::before { animation: none; } }

/* Время в графике: в телефонах с 12-часовым форматом «07:00 PM» не обрезается */
.wk .times input[type="time"], .brk-it input[type="time"] { min-width: 118px; flex: 1; }
/* Подарок VIP в шапке — в одном стиле с остальными кнопками шапки (светлая, значок розовый) */
.bar .vip-pill { background: var(--surface); border: 1px solid var(--border); }
.bar .vip-pill .g { background: linear-gradient(145deg, #f9a3c4, var(--brand)); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
/* Подсказки в уточнениях адреса — явно серые, чтобы не путать с заполненными значениями */
.addr-x input::placeholder { color: var(--text-3); opacity: .7; }

/* Длинные подписи кнопок переносятся, а не обрезаются */
.btn.btn-wrap { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
/* Кнопка «Наверх» */
.to-top { position: fixed; right: 16px; bottom: 28px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--border); cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; }
@media (max-width: 900px) { .to-top { bottom: calc(100px + env(safe-area-inset-bottom)); right: 14px; } }
html.in-telegram .to-top, html.in-max .to-top { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* Кадрирование фото */
.crop { display: flex; flex-direction: column; gap: 14px; }
.crop-box { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 24px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.crop-box:active { cursor: grabbing; }
.crop-box img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.85); }
.crop-zoom { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--text-3); font-size: 18px; }
.crop-zoom input { flex: 1; accent-color: var(--brand); }
/* Фото мастера в круглых рамках — тоже круглое, на всю рамку */
.profile-hero .av-edit .av, .profile-hero .av-edit .av-img { border-radius: 50%; }
.mp .mp-av { border-radius: 50%; }
.av-big { border-radius: 50%; }
/* «Ещё»: тема и выход — одной карточкой в стиле меню */
.menu-tail .menu-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; width: 100%; cursor: pointer; }
.menu-tail .menu-row + .menu-row { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); border-radius: 0 0 14px 14px; }
.menu-tail .mr-ic { width: 20px; flex: none; display: grid; place-items: center; color: var(--text-2); }
.menu-tail .mr-ic svg { width: 19px; }
.menu-tail .menu-row.out { color: var(--danger); } .menu-tail .menu-row.out .mr-ic { color: var(--danger); }
.menu-tail .menu-row.out:active { background: color-mix(in oklab, var(--danger) 8%, transparent); }
/* Предпросмотр своей страницы глазами клиента */
.pv-frame { width: 100%; height: min(72dvh, 760px); border: 0; border-radius: 22px; background: var(--bg, #fff); box-shadow: inset 0 0 0 1px var(--border); }
.pv-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; cursor: pointer; font: inherit; text-align: left; color: var(--text); background: linear-gradient(120deg, var(--brand-soft), var(--surface) 75%); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--brand) 25%, var(--border)); }
.pv-cta .grow { display: flex; flex-direction: column; gap: 2px; } .pv-cta b { font-size: 15px; } .pv-cta small { font-size: 12.5px; color: var(--text-3); }
.pv-cta > svg { width: 18px; color: var(--text-3); flex: none; }
.pv-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #f58cb4, var(--brand)); }
.pv-ic svg { width: 21px; }

/* ---------- «Записи»: лента дня ---------- */
.cal-view { max-width: 320px; }
.cal-view button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cal-view svg { width: 15px; }
.ag { display: flex; flex-direction: column; gap: 12px; }
.ag-sum { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { display: inline-flex; align-items: baseline; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px; align-items: center; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.ag-chip b { color: var(--text); font-size: 14px; }
.ag-chip.ok { background: color-mix(in oklab, var(--brand) 12%, var(--surface)); } .ag-chip.ok b { color: var(--brand-text); }
.ag-chip.free { background: color-mix(in oklab, var(--ok, #22a06b) 12%, var(--surface)); }
.ag-hours { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 0; background: none; padding: 0; color: var(--text-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.ag-hours svg { width: 16px; color: var(--text-3); }
.ag-hours span { color: var(--brand-text); font-weight: 600; }
.ag-list { display: flex; flex-direction: column; gap: 8px; }
.ag-list .appt { border-radius: 18px; }
.ag-tm { width: 54px; flex: none; display: flex; flex-direction: column; font: 600 15px var(--mono); }
.ag-tm small { font: 500 11px var(--mono); color: var(--text-3); margin-top: 2px; }
.ag-free, .ag-blk { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; font: inherit; text-align: left; color: var(--text); }
.ag-free { border: 1.5px dashed color-mix(in oklab, var(--brand) 35%, var(--border)); background: color-mix(in oklab, var(--brand) 4%, transparent); cursor: pointer; transition: background-color .15s; }
.ag-free:hover { background: color-mix(in oklab, var(--brand) 9%, transparent); }
.ag-free .grow, .ag-blk .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-free b { font-size: 14.5px; color: var(--text-2); } .ag-free small, .ag-blk small { font-size: 12px; color: var(--text-3); }
.ag-add { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ag-add svg { width: 14px; }
.ag-blk { background: var(--surface-2); cursor: pointer; }
.ag-blk b { font-size: 14.5px; }
.ag-lock { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ag-lock svg { width: 15px; }
.ag-now { display: flex; align-items: center; gap: 10px; color: var(--danger); font: 600 12px var(--mono); }
.ag-now::before, .ag-now::after { content: ''; height: 2px; background: var(--danger); border-radius: 2px; }
.ag-now::before { width: 10px; } .ag-now::after { flex: 1; opacity: .5; }

/* ---------- Примеры переписки «как в Telegram» ---------- */
.ai-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tgs { display: flex; flex-direction: column; gap: 8px; }
.tgs-cap { font-weight: 650; font-size: 15px; padding-left: 4px; }
.tgs-phone { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-m), inset 0 0 0 1px rgba(0,0,0,.06); background: #fff; }
.tgs-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e7e9ec; color: #000; }
.tgs-back { font-size: 26px; line-height: 1; color: #3a8ee6; margin-right: 2px; }
.tgs-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(160deg, hsl(var(--h) 75% 68%), hsl(calc(var(--h) + 20) 65% 52%)); }
.tgs-who { display: flex; flex-direction: column; line-height: 1.2; } .tgs-who b { font-size: 14.5px; } .tgs-who small { font-size: 12px; color: #3a8ee6; }
.tgs-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 14px; min-height: 230px; background-color: #d9e6c5; background-image: radial-gradient(rgba(255,255,255,.35) 1.2px, transparent 1.3px), radial-gradient(rgba(120,150,90,.18) 1px, transparent 1.1px); background-size: 22px 22px, 31px 31px; background-position: 0 0, 11px 7px; }
.tgs-date { align-self: center; padding: 3px 10px; border-radius: 99px; background: rgba(60, 80, 50, .35); color: #fff; font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.tgs-b { position: relative; max-width: 82%; padding: 7px 10px 18px; border-radius: 16px; font-size: 14px; line-height: 1.38; color: #000; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow-wrap: anywhere; }
.tgs-b.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.tgs-b.out { align-self: flex-end; background: #effdde; border-bottom-right-radius: 5px; }
.tgs-t { position: absolute; right: 8px; bottom: 3px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #6e8f63; }
.tgs-b.in .tgs-t { color: #a0a6ad; }
.tgs-tag { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; color: #4f9a3d; }
.tgs-tag svg { width: 12px; }
.tgs-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; margin-top: 4px; padding: 6px 12px; border-radius: 14px; background: rgba(60, 80, 50, .38); color: #fff; font-size: 12px; line-height: 1.35; text-align: center; }
.tgs-sys svg { width: 13px; flex: none; }
.ai-shot-link { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface-2); }
.ai-shot-link > svg { width: 18px; color: var(--text-3); flex: none; }
.ai-shot-link .grow { display: flex; flex-direction: column; gap: 2px; } .ai-shot-link b { font-size: 14px; } .ai-shot-link small { font-size: 12px; color: var(--text-3); }
.ai-shot-mini { width: 92px; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 7px; border-radius: 12px; background: #d9e6c5; }
.ai-shot-mini i { font-style: normal; font-size: 9.5px; line-height: 1.2; padding: 3px 6px; border-radius: 8px; color: #000; box-shadow: 0 1px 1px rgba(0,0,0,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-shot-mini .in { align-self: flex-start; background: #fff; } .ai-shot-mini .out { align-self: flex-end; background: #effdde; }
.crop-box { overscroll-behavior: contain; -webkit-user-select: none; -webkit-touch-callout: none; }
html.modal-open:has(.crop-box) body { overscroll-behavior-y: none; }
/* Понимать ответы клиентов — вложенные настройки */
.rec-opts { margin: 2px 0 10px 14px; padding: 4px 0 4px 14px; border-left: 2px solid color-mix(in oklab, var(--brand) 30%, var(--border)); display: flex; flex-direction: column; gap: 8px; }
.rec-opts .setting.sub { padding: 6px 0; }
.rec-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.rec-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; }
.rec-choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--brand); background: color-mix(in oklab, var(--brand-soft) 45%, var(--surface)); }
.rec-choice input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.rec-choice .grow { display: flex; flex-direction: column; gap: 2px; } .rec-choice b { font-size: 14px; } .rec-choice small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
/* «Наверх» не перекрывает закреплённую кнопку «Сохранить» */
html:has(.save-bar) .to-top { bottom: 92px; }
@media (max-width: 900px) { html:has(.save-bar) .to-top { bottom: calc(172px + env(safe-area-inset-bottom)); } }
html.in-telegram:has(.save-bar) .to-top, html.in-max:has(.save-bar) .to-top { bottom: calc(172px + env(safe-area-inset-bottom)); }
/* Способ записи клиентов */
.bm-opts { display: flex; flex-direction: column; gap: 8px; }
.bm-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background-color .15s; }
.bm-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in oklab, var(--brand-soft) 45%, var(--surface)); }
.bm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bm-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--surface); color: var(--brand-text); }
.bm-opt:has(input:checked) .bm-ic { background: var(--brand); color: #fff; }
.bm-ic svg { width: 20px; }
.bm-opt .grow { display: flex; flex-direction: column; gap: 3px; } .bm-opt b { font-size: 15px; } .bm-opt small { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.card.is-off { opacity: .55; }
/* Подсказка подключить бота для уведомлений */
.bot-nudge { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-xl); background: linear-gradient(120deg, color-mix(in oklab, #2aabee 12%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, #2aabee 30%, var(--border)); }
.bn-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #5ec8f0, #2a9fd6); }
.bn-ic svg { width: 21px; }
.bot-nudge b { font-size: 15px; } .bot-nudge p { margin: 4px 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.bn-acts { display: flex; flex-wrap: wrap; gap: 8px; } .bn-acts .btn svg { width: 15px; }

/* Пакеты SMS и способ оплаты в окне покупки */
.pm-qty { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.pm-opt:has(input:checked) .pm-qty { background: var(--brand); color: #fff; }
.pm-method { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.pm-method b { display: block; font-size: 14.5px; } .pm-method small { display: block; font-size: 12px; color: var(--text-3); }
.pm-method .pmark { width: 36px; height: 23px; }
.pay-wait-ic { display: grid; place-items: center; padding: 6px 0 2px; }

/* Тариф на телефоне: баннер «Пригласите коллегу» и карточка SMS без зажатого текста */
@media (max-width: 560px) {
  .ref-banner { flex-wrap: wrap; }
  .ref-banner .grow { flex: 1 1 calc(100% - 60px); }
  .ref-banner > .btn { width: 100%; justify-content: center; }
  .tp-sms-buy .btn { width: 100%; justify-content: center; }
}

/* Аудит: бот-подсказка в общей палитре; чек-лист настройки на телефоне — кнопка под текстом, а не в узкой колонке */
.bot-nudge { background: linear-gradient(120deg, var(--brand-soft), var(--surface) 65%); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--border); }
@media (max-width: 560px) {
  .todo { flex-wrap: wrap; row-gap: 8px; }
  .todo .t { flex: 1 1 calc(100% - 40px); }
  .todo > .btn { margin-left: 36px; }
}
.bn-ic { background: linear-gradient(145deg, #f7a1c0, var(--brand)); }

/* Оплата внутри мини-приложения: шапка заказа + страница Робокассы во весь экран.
   «Назад» — системная кнопка Telegram/Max. Фон под фреймом — как у Робокассы, чтобы стыка не было. */
.pay-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #f4f5f7; height: var(--tg-viewport-stable-height, 100dvh); }
.pay-sheet .ps-head { padding: 14px 16px 12px; padding-top: max(14px, env(safe-area-inset-top)); background: linear-gradient(160deg, #fff 0%, #fdeef4 100%); border-bottom: 1px solid #f3dbe5; box-shadow: 0 6px 18px -14px rgba(201, 50, 116, .45); }
.pay-sheet .ps-item { display: flex; align-items: center; gap: 12px; }
.pay-sheet .ps-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f07aa8, #c93274); box-shadow: 0 6px 14px -6px rgba(201, 50, 116, .7); }
.pay-sheet .ps-ic svg { width: 22px; height: 22px; }
.pay-sheet .ps-item small { display: block; font-size: 12px; color: #9a7f8b; letter-spacing: .01em; }
.pay-sheet .ps-item b { display: block; font-size: 17px; line-height: 1.25; color: #1d1418; }
.pay-sheet .ps-sum { font-size: 22px; font-weight: 700; color: #1d1418; letter-spacing: -.02em; white-space: nowrap; }
.pay-sheet .ps-safe { display: flex; align-items: center; gap: 7px; margin-top: 11px; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .75); font-size: 12.5px; color: #6e5d65; }
.pay-sheet .ps-safe svg { width: 14px; height: 14px; flex: none; color: #2f9e6a; }
.pay-sheet .ps-safe b { color: #1d1418; font-weight: 600; }
.pay-sheet .ps-body { position: relative; flex: 1; min-height: 0; }
.pay-sheet iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #f4f5f7; }
.pay-sheet .ps-load { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; background: #f4f5f7; color: #7b7177; font-size: 14px; text-align: center; }
.pay-sheet .ps-load b { color: #1d1418; font-size: 16px; margin-top: 10px; }
.pay-sheet .ps-load-logo { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -14px rgba(201, 50, 116, .6); animation: psPulse 1.4s ease-in-out infinite; }
.pay-sheet .ps-load-logo svg { width: 42px; height: 42px; }
.pay-sheet .ps-load .btn { margin-top: 14px; }
@keyframes psPulse { 50% { transform: scale(.94); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .pay-sheet .ps-load-logo { animation: none; } }

/* Окно «Оплата прошла» */
.paid-wow { text-align: center; display: grid; gap: 12px; padding-top: 4px; }
.paid-wow .pw-burst { position: relative; width: 84px; height: 84px; margin: 4px auto 2px; }
.paid-wow .pw-ic { position: absolute; inset: 0; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f07aa8, #c93274); box-shadow: 0 14px 28px -12px rgba(201, 50, 116, .75); animation: pwPop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.paid-wow .pw-ic svg { width: 40px; height: 40px; }
.paid-wow .pw-conf { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.paid-wow .pw-conf i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: pwConf 1.1s cubic-bezier(.2, .7, .3, 1) var(--d) forwards; }
.paid-wow .pw-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--text, #1d1418); }
.paid-wow .pw-sub { margin: -4px 0 0; color: var(--text-2, #6e5d65); font-size: 14.5px; line-height: 1.5; }
.paid-wow .pw-rows { display: grid; border-radius: 16px; background: var(--brand-soft, #fdeef4); padding: 4px 14px; text-align: left; }
.paid-wow .pw-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--text-2, #6e5d65); }
.paid-wow .pw-rows div + div { border-top: 1px solid rgba(201, 50, 116, .14); }
.paid-wow .pw-rows b { color: var(--text, #1d1418); }
.paid-wow .pw-note { margin: 0; font-size: 12.5px; color: var(--text-3, #9a8f94); }
@keyframes pwPop { from { transform: scale(.4); opacity: 0; } }
@keyframes pwConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 140px)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .paid-wow .pw-ic, .paid-wow .pw-conf i { animation: none; } .paid-wow .pw-conf { display: none; } }
/* Ссылка на страницу клиента: адрес и действия наверху (профиль и окно предпросмотра) */
.mp-card { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(130deg, color-mix(in oklab, var(--brand-soft) 70%, var(--surface)), var(--surface) 70%); }
.mp-head { display: flex; gap: 14px; align-items: center; }
.mp-head .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .mp-head b { font-size: 16px; } .mp-head small { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.mp-bar { display: flex; flex-direction: column; gap: 10px; }
.mp-url { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mp-url code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.3 'Geist Mono', ui-monospace, monospace; color: var(--text); }
.mp-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 22%, transparent); }
.mp-acts { display: flex; gap: 8px; flex-wrap: wrap; } .mp-acts .btn { flex: 1 1 0; min-width: max-content; height: 40px; }
.pv-wrap { display: flex; flex-direction: column; gap: 14px; }
.pv-phone { border-radius: 28px; padding: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pv-phone .pv-frame { display: block; height: min(64dvh, 720px); border-radius: 22px; box-shadow: none; }
/* Раздел «Поддержка» в кабинете */
.sup-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px; padding: 26px; background: linear-gradient(140deg, color-mix(in oklab, var(--brand-soft) 80%, var(--surface)), var(--surface) 72%); isolation: isolate; }
.sup-hero::after { content: ''; position: absolute; z-index: -1; right: -100px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 35%, transparent), transparent); opacity: .5; will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.sup-hero img { border-radius: 22px; box-shadow: var(--shadow-m); animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
.sup-hero h2 { font-size: 24px; letter-spacing: -0.03em; margin: 4px 0 6px; } .sup-hero p { margin: 0; color: var(--text-2); line-height: 1.5; }
.sup-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sup-meta span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 99px; background: color-mix(in oklab, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--border); font-size: 12.5px; color: var(--text-2); }
.sup-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 22%, transparent); }
@media (max-width: 760px) { .sup-hero { grid-template-columns: auto 1fr; padding: 22px 18px; } .sup-hero img { width: 60px; height: 60px; align-self: start; } .sup-hero .btn { grid-column: 1 / -1; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sup-hero::after, .sup-hero img { animation: none; } }
/* Меню «Ещё»: значок в плашке и короткое пояснение под названием */
.menu-list a:has(.mi-t) { height: auto; min-height: 60px; padding: 9px 12px; gap: 13px; }
.mi-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand-text); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s; }
.menu-list a .mi-ic svg { width: 18px; height: 18px; }
.mi-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .mi-t b { font-weight: 500; font-size: 15px; } .mi-t small { font-size: 12.5px; color: var(--text-3); font-weight: 400; line-height: 1.3; }
@media (hover: hover) { .menu-list a:hover .mi-ic { transform: scale(1.06); background: var(--brand-soft); } }
.empty .ico svg { width: 26px; height: 26px; color: var(--brand-text); }
/* ---------- Клиенты: компактная сводка, поиск и список без наложений ---------- */
.cl-page { gap: 14px; }
.cl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); overflow: hidden; }
.cl-stats > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; }
.cl-stats > div + div { box-shadow: inset 1px 0 0 var(--border); }
.cl-stats span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cl-stats span svg { width: 14px; flex: none; color: var(--brand-text); }
.cl-stats b { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-stats small { font-size: 11.5px; color: var(--text-3); }
.cl-tools { display: flex; flex-direction: column; gap: 10px; }
.cl-search { position: relative; display: block; } .cl-search svg { position: absolute; left: 14px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.cl-search .input { padding-left: 42px; }
.cl-list { display: flex; flex-direction: column; padding: 6px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px color-mix(in oklab, var(--border) 55%, transparent); }
.cl-head, .cl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 90px 130px 110px; align-items: center; gap: 14px; }
.cl-head { grid-template-columns: minmax(0, 1fr) 90px 130px 110px; padding: 10px 14px 8px 72px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cl-head span:not(:first-child) { text-align: right; }
.cl-row { width: 100%; padding: 10px 14px; border: 0; border-radius: 16px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s, transform .25s cubic-bezier(.34,1.56,.64,1); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.cl-row + .cl-row { box-shadow: 0 -1px 0 var(--border); }
.cl-row:hover { background: var(--surface-2); } .cl-row:active { transform: scale(.99); }
.cl-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cl-av { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 600; font-size: 14.5px; color: var(--c); background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.cl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-main b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cl-main small { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.cl-next { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 500; } .cl-next svg { width: 12px; }
.cl-n, .cl-last, .cl-rev { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-n small { display: none; } .cl-last { color: var(--text-2); font-size: 14px; } .cl-rev { font-weight: 600; }
@media (max-width: 760px) {
  .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-stats > div { padding: 14px 16px; } .cl-stats > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--border); } .cl-stats > div:nth-child(4) { box-shadow: inset 1px 1px 0 var(--border); }
  .cl-stats b { font-size: 21px; }
  .cl-head { display: none; }
  .cl-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'av main rev' 'av main n'; row-gap: 2px; padding: 11px 10px; }
  .cl-av { grid-area: av; } .cl-main { grid-area: main; } .cl-rev { grid-area: rev; align-self: end; } .cl-n { grid-area: n; align-self: start; font-size: 12px; color: var(--text-3); } .cl-n small { display: inline; } .cl-last { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cl-row { animation: none; } }
/* ---------- Главная кабинета: день наверху ---------- */
.today-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 26px; background: linear-gradient(145deg, color-mix(in oklab, var(--brand-soft) 85%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow-m), inset 0 0 0 1px color-mix(in oklab, var(--brand) 16%, var(--border)); animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.today-hero::after { content: ''; position: absolute; z-index: -1; right: -110px; top: -130px; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 38%, transparent), transparent); opacity: .5; will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.th-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.th-top h2 { font-size: clamp(22px, 5.5vw, 28px); letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.th-top .btn { flex: none; }
.th-next { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--border); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.th-next:hover { box-shadow: var(--shadow-m), inset 0 0 0 1px var(--brand); } .th-next:active { transform: scale(.985); }
.th-next .grow { display: flex; flex-direction: column; min-width: 0; } .th-next small { font-size: 12px; color: var(--brand-text); font-weight: 500; } .th-next b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .th-next .grow > span { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-next > svg { width: 18px; color: var(--text-3); flex: none; }
.th-time { flex: none; display: grid; place-items: center; width: 64px; height: 52px; border-radius: 15px; background: var(--ink); color: var(--ink-text); font: 600 18px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.02em; }
.th-free { margin: 0; color: var(--text-2); font-size: 14px; }
.setup-card summary { list-style: none; cursor: pointer; margin-bottom: 0; } .setup-card summary::-webkit-details-marker { display: none; }
.setup-card[open] summary { margin-bottom: 12px; }
.setup-pct { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 'Geist Mono', ui-monospace, monospace; color: var(--brand-text); } .setup-pct svg { width: 16px; transition: transform .25s; } .setup-card[open] .setup-pct svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .today-hero, .today-hero::after { animation: none; } }
/* Записи на телефоне: время и полоса на две строки, статус под услугой — карточка без пустот */
@media (max-width: 520px) {
  .appt { row-gap: 6px; align-items: start; padding: 12px; }
  .appt .tm, .appt .line { grid-row: span 2; } .appt .tm { align-self: center; }
  .appt > :last-child { grid-row: 2; } .appt > :last-child .badge { height: 22px; font-size: 11.5px; }
}
@media (max-width: 520px) { .today-hero { padding: 18px; } .th-top .btn .t { display: none; } .th-top .btn { width: 46px; height: 46px; padding: 0; border-radius: 15px; } .th-top h2 { white-space: nowrap; } }
/* Галочка согласия на автопродление картой в окне оплаты */
.pm-auto { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; line-height: 1.45; color: var(--text); cursor: pointer; }
.pm-auto input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.pm-auto[hidden] { display: none; }
/* Знак T-Pay (Т-Банк) в списке способов оплаты — текстом, без чужого логотипа-картинки */
.pmark-tpay { display: inline-grid; place-items: center; width: 44px; height: 28px; border-radius: 6px; background: #ffdd2d; color: #1c1c1c; font: 700 10.5px/1 var(--font); letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* ===== Окно «Оплата VIP» ===== */
.pv { gap: 14px; }
.pv-hero { position: relative; overflow: hidden; padding: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #f7a1c0 0%, transparent 55%), linear-gradient(150deg, #3a1428 0%, #1d0b14 100%);
  box-shadow: 0 14px 34px -14px rgba(229, 86, 143, .55); }
.pv-hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.pv-hero-top { display: flex; align-items: center; gap: 12px; }
.pv-crown { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, #ffd36b, #f59e0b); color: #3a1428; box-shadow: 0 6px 16px -6px rgba(255, 196, 70, .7); }
.pv-crown svg { width: 21px; }
.pv-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ffc2d8; }
.pv-title { display: block; font-size: 16px; line-height: 1.25; margin-top: 2px; }
.pv-price { display: flex; align-items: flex-start; gap: 2px; font-variant-numeric: tabular-nums; }
.pv-price b { font-size: 34px; line-height: 1; letter-spacing: -.03em; } .pv-price span { font-size: 17px; font-weight: 700; margin-top: 3px; }
.pv-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pv-perks span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 500; backdrop-filter: blur(4px); }
.pv-perks svg { width: 13px; height: 13px; color: #ffd36b; }
.pv-hint { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.62); }
.pv-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.pv-list { display: flex; flex-direction: column; gap: 8px; }
.pv-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); cursor: pointer; transition: box-shadow .18s, background-color .18s, transform .12s; }
.pv-opt:active { transform: scale(.99); }
@media (hover: hover) { .pv-opt:hover { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--brand) 45%, var(--border)); } }
.pv-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand), 0 8px 22px -14px var(--brand); background: color-mix(in oklab, var(--brand-soft) 45%, var(--surface)); }
.pv-opt:has(input:focus-visible) { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.pv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pv-opt .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-opt b { font-size: 14.5px; } .pv-opt small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.pv-opt .pmarks { margin-top: 4px; gap: 5px; } .pv-opt .pmarks .pmark { width: 34px; height: 22px; }
.pvm-ic { width: 46px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; }
.pvm-ic .pmark { width: 46px; height: 30px; }
.pv-card .pvm-ic { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.pv-card .pvm-ic svg { width: 22px; height: 22px; }
.pv-price-s { font-size: 15.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--border); transition: box-shadow .18s; }
.pv-opt:has(input:checked) .pv-radio { box-shadow: inset 0 0 0 6px var(--brand); }
.pv-auto { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--surface-2); }
/* текст согласия со ссылкой на оферту кликается отдельно от переключателя */
.pv-auto small a { color: var(--brand-text); text-decoration: underline; }
.pv-auto[hidden] { display: none; }
.pv-auto .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-auto b { font-size: 14px; } .pv-auto small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.pv-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: color-mix(in oklab, var(--brand-soft) 55%, var(--surface)); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.pv-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px; font-size: 16px; font-weight: 650;
  background: linear-gradient(135deg, #f06a9f 0%, var(--brand) 45%, #c93274 100%); box-shadow: 0 12px 26px -12px rgba(229, 86, 143, .9); }
.pv-go svg { width: 17px; height: 17px; }
.pv-go:disabled { opacity: .7; }
.pv-safe { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--text-3); }
.pv-safe > svg { width: 14px; height: 14px; color: var(--ok, #2f9e6b); }
.pv-safe .pmark { width: 30px; height: 19px; }
@media (max-width: 420px) {
  .pv-hero { padding: 16px; } .pv-price b { font-size: 30px; }
  .pv-opt { padding: 12px; gap: 10px; } .pvm-ic { width: 40px; } .pvm-ic .pmark { width: 40px; height: 26px; }
}
.pv-tpay .pvm-ic svg, .pv-stars .pvm-ic svg { width: 46px; height: 32px; display: block; border-radius: 9px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 420px) { .pv-tpay .pvm-ic svg, .pv-stars .pvm-ic svg { width: 40px; height: 28px; } }

/* ===== Автоответы: «клиент пишет → что делаем» ===== */
.ar-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ar-list.hidden { display: none; }
.ar-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.ar-row.ar-fixed { cursor: default; opacity: .9; }
.ar-msg { flex: none; min-width: 92px; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.ar-arrow { flex: none; display: grid; place-items: center; color: var(--brand-text); }
.ar-arrow svg { width: 16px; height: 16px; }
.ar-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-row b { font-size: 14px; line-height: 1.3; } .ar-row small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.ar-card .ai-shot-link { margin-top: 12px; }
@media (max-width: 480px) {
  .ar-row { flex-wrap: wrap; row-gap: 8px; }
  .ar-msg { min-width: 0; }
  .ar-row .grow { flex: 1 1 calc(100% - 64px); order: 3; }
  .ar-row .switch { order: 2; margin-left: auto; }
}

/* ===== Строка автосохранения настроек ===== */
.autosave { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center; margin: 4px auto 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--border); font-size: 13px; color: var(--text-2); }
.as-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.autosave[data-state="busy"] .as-dot { background: var(--warn, #f5a524); animation: pulse 1s infinite; }
.autosave[data-state="ok"] .as-dot { background: var(--ok, #2f9e6b); }
.autosave[data-state="err"] { color: var(--danger); } .autosave[data-state="err"] .as-dot { background: var(--danger); }
.autosave [hidden] { display: none !important; }
/* На телефоне снизу плавает меню — строка статуса встаёт над ним; при наборе текста меню скрыто, и строка опускается */
@media (max-width: 900px), (any-pointer: coarse) and (max-width: 1100px) {
  .autosave { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
html.in-telegram .autosave { bottom: calc(96px + env(safe-area-inset-bottom)); }
html.kb-open .autosave, html.typing .autosave { bottom: calc(10px + env(safe-area-inset-bottom)); }

/* «Отмена и перенос клиентом»: пример того, что увидит клиент на странице записи */
.ch-prev { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.ch-prev small { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.ch-row { display: flex; gap: 8px; }
.ch-b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; font-weight: 600; color: var(--text); }
.ch-b svg { width: 16px; height: 16px; }
.ch-b.danger { color: var(--danger); background: color-mix(in oklab, var(--danger) 10%, var(--surface)); box-shadow: none; }
.ch-note { font-size: 13px; line-height: 1.45; color: var(--text-2); white-space: pre-line; }
.ch-note b { color: var(--brand); }

/* Отмена / отклонение мастером: что получит клиент */
.cc-prev { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.cc-prev div { white-space: pre-line; }

/* Предложить другое время: выбранные варианты */
.of-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
.of-picked .kicker { flex-basis: 100%; }
/* Тексты автосообщений: своя кнопка «Сохранить» и статус в каждой карточке */
.tpl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tpl-acts [data-save] { display: none; }
.tpl-row.dirty .tpl-acts [data-save] { display: inline-flex; }
.tpl-st { font-size: 12.5px; color: var(--text-3); }
.tpl-acts [data-reset] { margin-left: auto; max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 32px; }

/* плавная прокрутка на телефонах: фоновые пятна стоят на месте (движение пятен на весь экран — лишняя перерисовка) */
@media (max-width: 760px), (hover: none) { .bg-fx i, .sup-hero::after, .today-hero::after { animation: none; } .to-top { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* выбор категории услуги */
.cat-pk > span i { font-style: normal; font-weight: 400; }
.cat-pk .chip.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); }
.cat-pk .chip.sug { background: none; box-shadow: inset 0 0 0 1px dashed var(--border); border: 1px dashed var(--border); color: var(--text-2); }
.cat-pk .chip.add { background: none; border: 1px dashed color-mix(in oklab, var(--brand) 55%, transparent); color: var(--brand-text); }
.cat-pk .chip.add.on { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }
.cat-pk [data-cat-in] { margin-top: 8px; }
.svc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-cat-h .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.bulk-svc { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; padding: 2px; }
.bulk-svc label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.bulk-svc label small { margin-left: auto; color: var(--text-3); white-space: nowrap; }
.bulk-svc input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
/* выбранное место раздела витрины — подсвечено и остаётся после перезахода */
.pl-pick .chip.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); }

/* «Онлайн-запись» в режиме «пишут или звонят мне»: видно и понятно, как включить */
.card.is-off { opacity: 1; } .card.is-off > :not(.card-h):not(.bm-offnote) { opacity: .5; }
.bm-offnote { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: var(--brand-soft); color: var(--text); }
.bm-offnote span { font-size: 13.5px; color: var(--text-2); } .bm-offnote .btn { align-self: flex-start; margin-top: 4px; }
