/* ============================================================================
   Pochatok — нова дизайн-система на решті сторінок і в кабінеті (27.10)
   Власник: «рознеси новий дизайн на інші сторінки, на кабінет, на редактори,
   але шаблони не чіпай. У логіці не змінюй нічого, просто візьми стилі кнопок,
   іконок, меню і все таке інше і зроби все в одному стилі.»

   Це ШАР ПОВЕРХ наявних стилів: підключається ОСТАННІМ на кожній сторінці
   www/ і www/app/. На головній його немає: там свій landing.css.
   Нічого зі старих файлів не видалено, тож вимкнути редизайн = прибрати
   один <link>. Правила системи: docs/landing-redesign-rules.md

   ЩО ТУТ Є: шрифт, накреслення заголовків, кнопки-пігулки, поля, поверхні
   (білі картки на кремовому, заокруглення 30), жовті шапки замість чорних,
   жовте меню, жовтий підвал.
   ЧОГО ТУТ НЕМА: розміри шрифтів (лишається шкала власника від 16.10),
   геометрія, сітки, будь-яка логіка. Шаблони клієнтів (templates/) не чіпані.
   ========================================================================== */

:root {
  --y: #ffff00;        /* фон жовтих шапок, плашок, підвалу */
  --cream: #f9f8ed;    /* фон сторінки */
  --stone: #e1e1d7;    /* заглушки, другорядні кнопки, неактивні доріжки */
  --mute: #8c8c7b;     /* дрібний сірий на світлому */
  --mute-ink: rgba(0, 0, 0, .65);
  --ink-line: rgba(0, 0, 0, .2);
  --r-card: 30px;      /* картки, блоки, прев'ю */
  --r-pill: 50px;      /* кнопки, плашки, поля в один рядок */
  --r-soft: 16px;      /* дрібні елементи: чипи, рядки списків, пагінація */
  --r-field: 6px;      /* поля вводу: ледь заокруглені (власник 27.10) */
  /* 29.10 (власник: «падінги у картках внутрішні всі мають бути 24 і в попапах … радіуси 16 …
     висота інпутів і дропдаунів у мобайлі = висоті мобайлової кнопки, у десктопі десктопної»):
     ОДИН набір чисел на всі сторінки (шаблони клієнтів сюди не входять — ui.css там не підключений) */
  --card-line: #ebebe5;/* 29.10 (власник): межа білої картки на кремовому — всюди в кабінеті, крім головної */
  --h-ctl: 50px;       /* висота кнопки = висота поля й випадашки (десктоп) */
  --pad-card: 40px;    /* внутрішнє поле картки й вікна (десктоп) */
}

/* ================= шрифт ================= */
body { font-family: "Onest", system-ui, sans-serif; }

/* заголовки: РОЗМІРИ лишаються зі шкали 16.10, міняється лише накреслення */
.h-xxl, .h-xl, .h-l,
.page-search__title, .signup__title, .ob-head__title, .ob-title h1,
.doc__title, .doc-top__title, .nf__title, .req__title, .tpl-head__name, .tpl-head__title,
.acc-title, .acc-first__title, .tpl-list__title, .bld__title, .ready__title {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}
/* заголовки блоків і карток (шкала `--fs-l` 32 / 28) — теж важкі, як `.h3` головної */
.acc-site__name, .acc-sec__title, .bk-empty__title, .bk-drawer__name, .team-form__title,
.faq__title, .pick__name, .pay__title, .set-card__title, .tpl-card__name, .msg__name,
.acc-nosub__name, .ready__done-label, .ed-grp__head {
  font-weight: 900;
  line-height: 1.1;
}
.h-l, .tpl-card__name, .faq__title, .set-card__title, .acc-sec__title, .acc-site__name { letter-spacing: -.02em; }

/* ================= кнопки ================= */
/* усі родини кнопок стають пігулками у верхньому регістрі
   (29.10 — і кнопки банера cookies: власник «і кнопки кукі скруглі») */
.btn, .cbtn, .sbtn, .ck__btn {
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.btn { padding: 20px 36px; }
.btn--sm { padding: 16px 28px; }
/* поле 15, а не 16: так висота кнопки впирається рівно в --h-ctl (50), а не виходить 51 —
   інпут і кнопка мусять бути однакові (власник 29.10) */
.cbtn { height: auto; min-height: var(--h-ctl); padding: 15px 28px; }
.sbtn { height: auto; min-height: 48px; }
.ck__btn { height: auto; min-height: var(--h-ctl); padding: 13px 16px; text-align: center; }
/* сіра другорядна кнопка системи — камінь, а не #d9d9d9 */
.cbtn--grey { background: var(--stone); }

.link-arrow { font-weight: 500; }

/* ================= поля ================= */
/* 27.10 (власник: «всі інпути мають бути з 6 радіусом, а не повністю скруглятись») */
.ob-input, .ob-select, .ob-affix, .signup__input, .rq__input, .page-search__box,
.acc-field input, .bk-drawer input, .bk-drawer select, .bk-cal__btn, .bk-step__date {
  border-radius: var(--r-field);
}
/* 29.10 (власник): висота поля й випадашки = висота кнопки на цьому ж екрані */
.ob-input, .ob-select, .ob-affix, .signup__input, .rq__input,
.acc-field input, .bk-drawer input, .bk-drawer select, .bk-cal__btn {
  height: var(--h-ctl);
}
textarea.ob-input, .rq__area, .bk-drawer textarea { height: auto; min-height: var(--h-ctl); }
.ob-input, .ob-select, .ob-affix, .page-search__box {
  padding-left: 24px;
  padding-right: 24px;
}
.ob-affix > .ob-input { padding-left: 0; padding-right: 0; }
.rq__area, textarea.ob-input { border-radius: var(--r-field); padding-top: 16px; }
.search-hints, .drop__list, .lng__list { border-radius: var(--r-card); overflow: hidden; }

/* ================= поверхні ================= */
/* сторінка кремова, блоки на ній білі картки із заокругленням 30 */
body { background: var(--cream); }

.acc-biz, .acc-site, .acc-tile, .acc-card-form, .acc-stats, .acc-cancel, .acc-first,
.set-card, .team-card, .team-form, .swap, .msg, .bks-m, .bks-q,
.bk-board, .bk-item, .bk-empty, .bk-drawer__facts, .bk-drawer__comment p,
.addr-card, .pay__card, .pick, .acc-services .service, .doc, .req, .nf__box, .inv, .hp-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
}
/* дрібні поверхні — м'якший радіус */
.acc-biz, .bk-item, .bk-drawer__facts, .bk-drawer__comment p { border-radius: var(--r-soft); }

/* прев'ю й рамки */
/* .ed-frame сюди НЕ входить: канвас редактора стоїть до країв, без заокруглення (власник 27.10) */
.tpl-card__preview, .acc-item__preview, .tpl-view__frame, .browser,
.ready__shot, .ph__zone, .acc-site__preview {
  border-radius: var(--r-card);
  overflow: hidden;
}
.tpl-card__preview, .acc-item__preview { background-color: var(--stone); }
/* прев'ю заокруглюємо лише трохи, 6 (власник 27.10): у кадрі видно справжній сайт, велике
   заокруглення 30 з'їдало його власну шапку. Усі кадри з сайтом: картки каталогу, великий кадр на
   сторінці шаблону, вікно браузера в кабінеті («Мій сайт», «Змінити шаблон») і прев'ю теми */
.tpl-card__preview, .tpl-view__frame, .acc-item__preview, .acc-site__preview, .browser,
.ready__shot { border-radius: 6px; }

/* чипи, перемикачі вкладок, пагінація */
.view-tabs, .view-tabs__tab, .ob-chip, .bk-mode, .bk-mode button,
.pag__num, .pag__arrow, .rq__chips label, .tpl-filters .drop__btn {
  border-radius: var(--r-pill);
}

/* жовті плашки системи */
.pick__badge, .bk-drawer__badge, .acc-live, .bk-off, .acc-nav__count, .acc-count { border-radius: var(--r-pill); }
.ready__badge, .plan__soon { border-radius: var(--r-pill); }
.acc-alert, .ob-plate, .cab-plate, .ed-hint, .tpl-empty--soon { border-radius: var(--r-card); }

/* ================= чорні верхи стають жовтими ================= */
/* .page-top тримає рядок шапки на внутрішніх сторінках і в кабінеті */
.page-top { background: var(--y); color: var(--black); }
/* ЖОДНОГО білого тексту чи іконки на жовтому (правило власника 27.10).
   Картинки, намальовані білим, інвертуємо; іконки-SVG на currentColor просто фарбуємо в чорний. */
/* У жовтій шапці картинки намальовані білим (бургер, лупа, шеврони фільтрів), тож інвертуємо їх
   гуртом; `*-dark.svg` і логотип редизайну `*-2026.svg` уже чорні, їх не чіпаємо. */
.page-top img:not([src$="-dark.svg"]):not([src$="-2026.svg"]) { filter: invert(1); }

/* ================= шапка = як на головній (власник 27.10) ================= */
/* логотип редизайну: той самий блок 181 × 32 і ті самі частки, що в landing.css */
.logo--2026 { width: 181px; height: 32px; }
.logo--2026 .logo__mark { left: 0; top: 0; width: 18.087%; height: 100%; }
.logo--2026 .logo__word { left: 21.547%; top: 6.231%; width: 78.453%; height: 87.5%; }
/* бічні поля шапки як на головній (--sx 40; на телефоні лишаються свої 20) */
@media (min-width: 901px) { .page-top .header { padding-left: 20px; padding-right: 20px; } }
/* привітання = підпис системи, як на головній */
.header__greet { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
/* бургер того, хто увійшов: чорний кружечок з білим знаком (на головній так само) */
.header--cabinet .header__burger { border-radius: 50%; background: var(--black); color: var(--white); }
/* у лінійних іконок усередині кнопки 44 лишається по 9 px повітря, а заливка кружечка доходить
   до краю, тож до нього додаємо ці 9, щоб просвіт між ВИДИМИМИ знаками був однаковий (власник 27.10) */
.header--cabinet .hdrop + .header__burger { margin-left: 9px; }
/* дві смужки складаються в хрестик, поки меню відкрите — той самий знак і та сама анімація, що на
   головній (власник 27.10). ПОРЯДОК ВАЖЛИВИЙ: спершу rotate, потім translateY, інакше хрестик кривий. */
.header--cabinet .header__burger path {
  transform-origin: 12px 12px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.header--cabinet .header__burger[aria-expanded="true"] path:first-child { transform: rotate(45deg) translateY(3.5px); }
.header--cabinet .header__burger[aria-expanded="true"] path:last-child  { transform: rotate(-45deg) translateY(-3.5px); }

/* ================= ліва панель кабінету: краї й форми (власник 27.10) ================= */
/* активний пункт тягнеться від краю до краю панелі, а не пігулкою */
/* бічне поле всередині панелі = поле секції головної, 40 (власник 27.10); саме поле стоїть на дітях,
   щоб підсвічування активного пункту йшло від краю до краю. На телефоні шторка вузька, там лишається 20 */
.acc-nav { padding-left: 0; padding-right: 0; }
.acc-nav > *, .acc-nav__list > * { padding-left: 20px; padding-right: 20px; }
@media (min-width: 1101px) {
  /* 27.10, пізніше того ж дня (власник: «давай падінги в кабінеті в хедері в сайдбарі зробимо по 20,
     а не по 40»): бічне поле панелі й шапки кабінету 20; на головній поле секції лишається 40 */
  .acc-nav > *, .acc-nav__list > * { padding-left: 20px; padding-right: 20px; }
  /* сама панель 340 (власник 27.10: спершу 360, потім «давай не 360 сайдбар, а 340»): 40 + 260 + 40.
     Була за найдовшим пунктом (260…380), тепер стала, тож вміст праворуч не стрибає між сторінками */
  .acc-nav { width: 340px; min-width: 0; max-width: none; }
  .acc.is-folded .acc-nav { width: 88px; }
  .acc.is-folded .acc-nav > *, .acc.is-folded .acc-nav__list > * { padding-left: 16px; padding-right: 16px; }
}
/* 901–1100: вузький десктоп, панель лишається компактною (поле 20, 280 = 7 × 40) */
@media (min-width: 901px) and (max-width: 1100px) {
  .acc-nav { width: 280px; min-width: 0; max-width: none; }
}
/* 31.10 (власник: «згортання лівого сайдбару робити повністю, а не залишати вертикальну полосу з іконками … як на
   мобайлі»): значок біля лого ховає панель цілком — вона від'їжджає ліворуч, вміст займає всю ширину (як у редакторах).
   Збережений стан застосовується без анімації (.acc--still). Рейка 88 (is-folded) більше не вмикається. */
@media (min-width: 901px) {
  .acc-nav { transition: margin-left .3s cubic-bezier(.4, 0, .2, 1); }
  .acc.is-nav-off .acc-nav { margin-left: -340px; visibility: hidden; transition: margin-left .3s cubic-bezier(.4, 0, .2, 1), visibility 0s .3s; }
  .acc.acc--still .acc-nav { transition: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .acc.is-nav-off .acc-nav { margin-left: -280px; }
}
.acc-nav__item { border-radius: 0; }
.acc-nav__list { padding-left: 0; padding-right: 0; }
/* знак сайту круглий */
.acc-biz__ava { border-radius: 50%; }
/* перемикач мов у підвалі панелі — пігулка, як у підвалі головної */
.acc-foot .lng__btn { border-radius: var(--r-pill); padding: 12px 24px; }
/* підвал панелі дихає: рівні 20 між перемикачем мов і копірайтом (власник 27.10) */
.acc-foot { gap: 20px; padding-top: 20px; }
/* «Згорнути панель» стоїть унизу, за 20 від відсічної лінії підвалу (власник 27.10). Проміжок у панелі
   40, тож для цієї пари забираємо 20 назад */
.acc-fold { margin-bottom: -20px; }
.acc-foot__links { gap: 12px 20px; }

/* випадні списки панелі (вибір сайту, мова) — картки нової системи замість чорної рамки з гострими
   кутами (власник 27.10: «дроп з вибором чи додаванням сайту теж має бути в нашому новому стилі») */
.acc-sites__list, .lng__list {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  overflow: hidden;
}
/* список стоїть рівно під карткою сайту, а не в край панелі (бічні поля панелі тепер на дітях) */
.acc-sites__list { left: 20px; right: 20px; padding: 8px 0; }
@media (min-width: 1101px) { .acc-sites__list { left: 20px; right: 20px; } }
/* підсвічування рядка сайту йде від краю до краю списку, як у списку мов (власник 27.10) */
.acc-sites__item { border-radius: 0; }
.acc-sites__label, .acc-sites__item { padding-left: 16px; padding-right: 16px; }
/* «Додати сайт» — це дія, а не рядок списку, тож при наведенні лишається пігулкою
   (власник 27.10); відступ 8 від країв, текст на одній лінії з рядками сайтів */
.acc-sites__add { border-radius: var(--r-pill); margin-left: 8px; margin-right: 8px; padding-left: 8px; padding-right: 8px; }
.acc-sites__label { text-transform: uppercase; letter-spacing: .04em; color: var(--mute-ink); }
.acc-sites__item:hover, .acc-sites__add:hover { background: var(--stone); }
/* розділової лінії більше немає: у нової системи просвіт замість риски, а риска ще й стирчала
   за заокруглені кути рядка */
.acc-sites__add { margin-top: 6px; padding-top: 12px; padding-bottom: 12px; border-top: 0; }
/* рядок обраного сайту видно одразу */
.acc-sites__item[aria-current="true"], .acc-sites__item.is-current { background: var(--cream); }
.lng__list li:hover, .lng__list li:focus { background: var(--stone); }
/* Контентна частина кабінету (власник 27.10): до 1920 тягнеться на всю вільну ширину з полем 40
   по краях, як секції головної; від 1921 ширина вмісту лишається такою ж, як на 1920, і він
   центрується в контентній частині (бічне поле росте на половину залишку, тож колонка стоїть
   посередині праворуч від панелі). Колонка 1140 з 06.10 більше не діє.
   Сторінка «Мої курси» (.acc-main--wide) лишається на всю ширину: там живий редактор. */
@media (min-width: 901px) {
  .acc-main {
    max-width: none;
    margin-inline: 0;
    padding-left: calc(40px + max(0px, (100vw - 1920px) / 2));
    padding-right: calc(40px + max(0px, (100vw - 1920px) / 2));
  }
  .acc-main--wide { padding-left: 40px; padding-right: 40px; }
}
/* Те саме для сторінок кабінету без бічної панелі (профіль, підписка, послуги, «Шаблон») і для каталогу
   шаблонів (власник 27.10): до 1920 вони тягнуться на всю ширину з полем 40, далі ширина лишається такою ж
   і колонка центрується. Колонки 1400 (.acc-solo) і 1204 (.acc-services) більше не діють. */
@media (min-width: 901px) {
  .acc-solo, .acc-solo.acc-services, .tpl-list {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-left: calc(40px + max(0px, (100vw - 1920px) / 2));
    padding-right: calc(40px + max(0px, (100vw - 1920px) / 2));
  }
}
/* Картки «Послуг» = картки «Отримай більше» головної (власник 28.10: «зроби такими ж самими як на
   головній за стилем»): біла картка 570 заввишки, текст по центру внизу, під ним темна пігулка.
   Ілюстрації прибрано — на головній їх теж більше немає. Дві картки ділять колонку порівну. */
.acc-services .services { gap: 40px; }
.acc-services .service {
  justify-content: flex-end;
  overflow: hidden;
  text-align: center;
}
/* 29.10 (власник: «немає картинок на послугах … і на десктопі їх нема»): картка знову з фото й
   накладкою, як «Отримай більше» на головній — те саме фото, той самий шар .lu (css/lu.css) */
.acc-services .service__media {
  position: relative;
  container-type: inline-size;
  flex: none;
  width: 100%;
  aspect-ratio: 47 / 32;
  overflow: hidden;
  background: var(--stone);
}
.acc-services .service__media > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.acc-services .service__body { flex: 1 1 auto; justify-content: flex-end; gap: 40px; padding: 40px; }
.acc-services .service__info { gap: 20px; }
.acc-services .service .h-l { font-size: 28px; line-height: 1; letter-spacing: normal; }
.acc-services .service .text { font-size: 14px; }
.acc-services .service .cbtn { padding: 20px 36px; }
@media (min-width: 901px) {
  .acc-services .service { flex: 1 1 0; }
}
@media (max-width: 900px) {
  .acc-services .services { gap: 20px; }
  .acc-services .service .cbtn { width: 100%; }
}
.page-top .header--cabinet .header__burger img { filter: none; }
/* на телефоні в кружечку стоїть знак людини — він теж білий, а не чорний */
.page-top .header--cabinet .header__burger .header__user-ic { color: var(--white); }
/* 27.10 (власник: «в мобайлі на бургер меню теж ставимо значок горизонтальних полосок точно так же, як
   і в десктопі, так же як і на головній»): у кружечку скрізь дві смужки; знак людини, який cabinet.css
   показував на телефоні, більше не потрібен */
@media (max-width: 900px) {
  .header--cabinet .header__burger > svg:not(.header__user-ic) { display: block; }
  .header--cabinet .header__user-ic { display: none; }
}
/* на телефоні шапка кабінету показує лише знак (своє правило в cabinet.css) — частки блоку 181 × 32
   його б сплющили, тож тут їх знімаємо */
@media (max-width: 900px) {
  .header--cabinet .logo--2026 { width: auto; }
  .header--cabinet .logo--2026 .logo__mark {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: 100%;
    aspect-ratio: 36.8443 / 36.0145;
  }
}
.page-top .header__help,
.page-top .header__user-ic,
.page-top .hdrop__btn { color: var(--black); }
/* лічильник у шапці: жовтий на жовтому не видно → чорна плашка */
.page-top .hdrop__count { background: var(--black); color: var(--white); }

.page-search__box { border-color: var(--ink-line); }
.page-search__box:focus-within { border-color: var(--black); }
.page-search__input { color: var(--black); }
.page-search__input::placeholder { color: var(--mute-ink); }

/* світлі тексти, намальовані для чорного верху, на жовтому не читаються */
.page-top .crumbs, .page-top .doc-top__lead,
.page-top .ob-steps__later, .page-top .ob-title p { color: var(--mute-ink); }
.page-top .crumbs a:hover, .page-top .crumbs [aria-current],
.page-top .ob-steps__later:hover { color: var(--black); }
.page-top .ob-steps__bars span { background: var(--ink-line); }
.page-top .ob-steps__bars .is-done::before { background: var(--black); }

/* шапка, прибита зверху, поки відкрите бічне меню */
body.menu-side-open .header--cabinet { background: var(--y); }

/* ================= меню (повноекранне й бічне кабінету) ================= */
/* повноекранне меню жовте, бічне меню акаунта лишається чорним (як на головній) */
.menu:not(.menu--side) { background: var(--y); color: var(--black); }
/* бургер і хрестик = один знак у обох станах (власник 29.10): чорний кружечок 44, у ньому
   смужки 1.5. Раніше невввійдений стан мав смужки без підкладки, а хрестик приходив картинкою */
.header__burger { border-radius: 50%; background: var(--black); color: var(--white); }
.menu:not(.menu--side) .menu__close {
  width: 44px;
  height: 44px;
  /* той самий зсув, що й у бургера (style.css), щоб хрестик став точно на його місце */
  margin: -8px -8px 0 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
}
.menu--side .logo img { filter: invert(1); }   /* чорний логотип на чорному меню → білий */
.menu:not(.menu--side) .menu__nav { font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.menu__user { color: var(--mute-ink); }

/* ================= підвал ================= */
.footer { background: var(--y); }
.footer__head { text-transform: uppercase; letter-spacing: .04em; color: var(--mute-ink); }
.footer .lng__btn { border-radius: var(--r-pill); padding: 12px 24px; }

/* ================= кеглі як на головній (власник 27.10) ================= */
/* На головній: лід секції 16, основний текст 14, кнопка 14 (дрібна 12), меню й підписи 12.
   Тут ті самі числа для решти сторінок і кабінету. ПОЛЯ ВВОДУ лишаються 16: менший кегль
   змушує iOS збільшувати сторінку під час набору. */
/* кнопки */
.btn, .cbtn, .sbtn, .ck__btn, .ed-logo__acts .cbtn, .ed-take__acts .cbtn { font-size: 14px; }
.btn--sm { font-size: 12px; }
/* ліди під заголовком */
.acc-lead, .acc-first__lead, .doc-top__lead, .ob-title p, .bld__lead, .ready__lead,
.signup__sub, .signup__desc, .rq__lead, .tpl-head__desc, .pick__desc, .ob-sec__desc { font-size: 16px; }
/* основний текст сторінок і кабінету */
.text, .faq__text, .doc-sec p, .doc-steps p, .doc-sec ul, .doc-sec ol, .doc-plate, .doc__ask,
.doc__side > a, .req__done-text, .tpl-card__desc, .tpl-empty, .search-hints li, .drop__btn,
.drop__list li, .pag__num, .acc-biz__name, .acc-sites__item .acc-biz__ava, .acc-sites__add,
.acc-fold, .acc-nav__item, .acc-site__url, .acc-tile__sub, .acc-sec__note, .acc-table,
.acc-alert__list, .acc-alert__sub, .acc-steps b, .acc-steps span, .acc-econ li, .acc-offer,
.acc-timeline b, .acc-timeline span, .acc-done-plate, .acc-nosub__price, .set-card__lines li,
.set-card__sub, .team-card__role, .team-card__lines, .team-card__row, .team-add, .swap-list li,
.bk-sum, .bk-ev__top, .bk-item__time, .bk-item__name, .bk-agenda__sum, .bk-empty__text,
.bk-drawer__phone, .bk-drawer__facts dt, .bk-drawer__facts dd, .bk-drawer__label,
.bk-drawer__comment p, .bk-off, .off-item__when, .off-empty, .pay-svc, .bks-f, .bks-status,
.bks-m__on, .msg__contacts, .msg__text, .addr__status, .addr-card__label, .addr-card__url,
.addr-card__list li, .pick__per, .pick__year, .pick__list li, .pay__sum, .pay__line, .live__tip,
.live__addr, .ob-label, .ob-label small, .ob-add, .ob-day__name, .ob-day__time, .ob-day__off,
.ob-toggle__desc, .ob-chip, .ob-range, .ob-plate, .ob-error, .ob-steps__label, .ob-steps__later,
.dt-foot__line, .bld__item, .ready__done-label, .ready__done li, .ready__skip, .ed-bar__back,
.ed-bar__saved, .ed-hint, .ed-sub, .ed-add, .ed-toggle, .ed-grp__head, .ph__sub, .ph__label,
.header__user, .hdrop__row-t, .acc-back, .cab-plate, .view-tabs__tab,
.tpl-side__back, .footer a, .footer .text, .footer__brand .text { font-size: 14px; }
/* підписи й службові рядки — як `.label` головної */
.footer__head, .header__nav, .header__auth { font-size: 12px; }
/* поля вводу лишаються 16 (iOS) */
.ob-input, .ob-select, .ob-affix, .ob-affix span, .page-search__input, .rq__input, .signup__input,
.addr .addr__input, .acc-field input, .bk-drawer input, .bk-drawer select,
:is(.ed-panel, .ed-pop) .ob-input, :is(.ed-panel, .ed-pop) .ob-select { font-size: 16px; }

/* ================= кабінет: ліва панель ================= */
.acc-menu-btn { border-radius: var(--r-pill); }
.acc-nav__item { border-radius: 0; }   /* від краю до краю панелі (власник 27.10) */
.acc-nav__item:hover { background: var(--stone); }
.acc-nav__count, .hdrop__count { border-radius: var(--r-pill); }
.hdrop__panel { border-radius: var(--r-card); }

/* дрібні круглі кнопки кабінету */
.bk-drawer__close, .ob-del, .acc-copy { border-radius: var(--r-pill); }
/* квадратні іконки-кнопки = радіус поля (власник 29.10: «іконки телефонів теж 6 скруглення») */
.bk-item__call, .bk-step__btn, .bk-empty__icon { border-radius: var(--r-field); }
.bk-step__btn { background: var(--stone); }
/* порожній рядок помилки не тримає місце під карткою (власник 29.10: «в низ карток якийсь відступ великий») */
.acc-err:empty, .team-form__error:empty, .off-form__error:empty, .bk-drawer__error:empty { display: none; }

/* ================= вікна ================= */
.rq__panel, .bk-drawer, .ph__dialog, .ck { border-radius: var(--r-card); }
.st__opt { border-radius: var(--r-field); }     /* «Який сайт вам потрібен?» — варіанти як поля (28.10) */

/* ================= телефон ================= */
/* 29.10 (власник): на телефоні картка й вікно = радіус 16 і поле 24, поле вводу = висота кнопки 56 */
@media (max-width: 900px) {
  :root { --r-card: 16px; --h-ctl: 56px; --pad-card: 24px; }
  /* одне внутрішнє поле на всі картки й вікна (власник 29.10: «як закон») */
  .acc-biz, .acc-site, .acc-tile, .acc-card-form, .acc-stats, .acc-cancel, .acc-first,
  .set-card, .team-card, .team-form, .swap, .msg, .bks-m, .bks-q,
  .bk-item, .bk-empty, .bk-drawer__facts, .bk-drawer__comment p,
  .addr-card, .pay__card, .pick, .acc-services .service, .nf__box, .hp-card,
  .acc-alert, .ob-plate, .cab-plate, .ed-hint, .tpl-empty--soon,
  .rq__panel, .bk-drawer, .ph__dialog, .ck, .bk-cal, .hdrop__panel {
    padding: var(--pad-card);
  }
  /* календар: кнопка-дата як поле, стрілки місяця й дні з тим самим радіусом 6 (власник 29.10) */
  .bk-cal__step, .bk-cal__day { border-radius: var(--r-field); }
  /* рядок запису: поле 24 з боків, але без подвійного падінга всередині (власник 29.10) */
  .bk-item { min-height: 0; }
  .bk-item__open { padding: 0; }
}
/* на десктопі календар теж у радіусі полів, а не кружечками */
.bk-cal__step, .bk-cal__day { border-radius: var(--r-field); }
@media (max-width: 900px) {
  .btn { padding: 16px 28px; }
  .cbtn { padding: 14px 24px; }
  /* ≤900 заголовок шаблону має власний чорний фон */
  .tpl-head { background: var(--y); color: var(--black); }
  .tpl-head .tpl-head__back img { filter: invert(1); }
  .bk-week, .bk-day { border-radius: var(--r-pill); }
  .bk-week { background: var(--stone); }
  .acc-biz, .acc-site, .acc-tile, .acc-card-form, .acc-stats, .acc-cancel, .acc-first,
  .set-card, .team-card, .team-form, .swap, .msg, .bks-m, .bks-q,
  .bk-board, .bk-empty, .addr-card, .pay__card, .pick, .doc, .req, .nf__box, .hp-card {
    border-radius: var(--r-card)   /* 13.11: card radius (16 on a phone); was --r-soft, equal until the soft one became 12 */;
  }
}

/* ================= єдина сходинка полів та інтервалів (власник 27.10) =================
   У макеті головної крок один: 20 / 40 / 60 / 80 / 120 (секція 120 зверху і знизу, поле з боків 40,
   падінг картки 40, ряд карток 40, телефон 80 / 20). Тут підтягуємо до нього сторінки кабінету й
   решти сайту там, де число випадало зі сходинки. Дрібні відступи всередині компонентів (знак і
   текст 12 / 14, рядки поля 10) лишаються як були: вони не з цієї сходинки. */
@media (min-width: 901px) {
  /* низ сторінки 120 замість 140 */
  .acc-main, .acc-solo, .tpl-list, .faq, .ob, .ready { padding-bottom: 120px; }
  /* верх вмісту 40 — рівно там, де починається картка сайту в панелі (власник 27.10: «на один рівень
     постав контентну частину зверху»); у панелі падінг зверху теж 40. Було 60 у сторінках із панеллю
     і 48 у профілі та підписці */
  .acc-main, .acc-solo, .tpl-list { padding-top: 40px; }
  /* інтервали в самій панелі теж зі сходинки (було 32) */
  .acc-nav { gap: 40px; }
  /* секція довідки починалась із 140 зверху */
  .faq { padding-top: 120px; }
  /* падінг блока 40 (було 32 і 28) */
  .acc-alert, .acc-nosub__plan { padding: 40px; }
  /* інтервал між блоками сторінки 40 (було 32) */
  .bk, .bk-agenda, .acc-stats { gap: 40px; }
  /* рядок керування записами переноситься, а не вилазить за екран: із панеллю 360 він не вміщався
     у вузьке вікно (на 1280 сторінка їхала вбік на 6) */
  .bk-bar { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  /* телефон: низ сторінки 80, як поле секції головної на телефоні (було 100) */
  .acc-main, .acc-solo, .tpl-list, .faq, .ob, .ready { padding-bottom: 80px; }
}

/* Юридичні посилання переїхали з підвалу панелі в НИЗ бургер-меню (власник 27.10). Той самий набір,
   що в колонці «Корисне» підвалу головної; «Налаштування cookies» додає main.js після політики. */
.menu__legal { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; line-height: 1.35; }
.menu__legal a { color: var(--grey-soft); transition: color .2s; }
.menu__legal a:hover { color: var(--white); }
/* жовте меню головної: лінія і написи чорні (на жовтому білого не буває) */
.menu:not(.menu--side) .menu__legal { border-top-color: var(--ink-line); }
.menu:not(.menu--side) .menu__legal a { color: var(--black); }
.menu:not(.menu--side) .menu__legal a:hover { color: var(--black); opacity: .7; }

/* Дрібні відступи теж зі сходинки макета (власник 27.10: «зведи до сходинки й дрібні відступи всередині
   компонентів»). У лендінгу дрібний крок один: 8 / 12 / 16 / 20 / 24. У кабінеті лишались 10 і 14 —
   обидва стають 12. Падінги кнопок, полів і чипів НЕ чіпаємо: це розмір самого елемента, і він уже
   збігається з макетом (кнопка 16 / 28 і 20 / 36). */
.acc-body .cbtn, .acc-biz, .acc-fold, .acc-foot, .acc-nav__item, .bk-drawer__comment, .acc-econ,
.team-add b, .swap__side, .acc-first__go, .acc-nosub__plan, .bks-q .ed-req,
.signup__field, .tpl-side__back, .drop__btn,
.ob-steps, .ob-sec__head, .ob-field, .ob-add, .ob-logo__side, .ob-toggle__text,
.ready__actions .cbtn, .ed-bar__back, .ed-bar__go, .ed-hint, .ph__zoom, .ed-grp__body, .ed-bk,
.ed-fieldrow__line, .ed-svc__online, .ed-take, .pick__list, .pick__list li, .live__actions .cbtn,
.live__url { gap: 12px; }

/* Прев'ю сайту заповнює картку «Мій сайт» по висоті (власник 27.10: «при невеликих розмірах десктопної
   ширини … додавай висоти превью, щоб не було просвіту білого в рамці під ним»). Було: кадр завжди
   показував перший екран 1440 × 900, тож при меншому масштабі він меншав і під ним лишалась біла смуга.
   Тепер кадр розтягується на висоту картки, а main.js каже iframe, скільки сторінки показати (--vh). */
@media (min-width: 901px) {
  .acc-site__preview { display: flex; flex-direction: column; }
  .acc-site__preview .browser__screen { flex: 1 1 auto; height: auto; min-height: calc(900px * var(--k)); }
  .acc-site__preview .browser__screen iframe { height: calc(var(--vh, 900) * 1px); }
}

/* Пункти лівого меню стоять впритул одне до одного: висота 56, проміжку немає (власник 27.10) */
.acc-nav__list { gap: 0; }

/* Правий стовпчик картки «Мій сайт» — кеглі як у картках головної (власник 27.10: «в цьому блоці давай
   збільшимо шрифти за принципами головної сторінки як в картках там»): текст у картці 18, адреса 18,
   посилання в ній теж 18. Назва лишається 32 зі шкали заголовків. Телефон не чіпаємо: там 16 / 14. */
@media (min-width: 901px) {
  .acc-site__url, .acc-site__note, .acc-site__note .set-card__link { font-size: 18px; }
  .acc-site__url svg { width: 22px; height: 22px; }
}

/* Шторка лівої панелі на телефоні виїжджає З-ПІД шапки й не накриває її (власник 27.10), а знак кнопки
   стає стрілкою «назад», тобто закрити шторку. Висоту шапки тримає --acc-head (кабінетна шапка на
   телефоні 60). Шапка піднята над шторкою та її затемненням. */
@media (max-width: 900px) {
  .acc { --acc-head: 60px; }
  /* шторка того ж кольору, що й панель на десктопі (кремовий фон сторінки), а не біла (власник 27.10) */
  .acc-nav { top: var(--acc-head); padding-top: 24px; background: var(--cream); }
  .acc-menu-close { display: none; }            /* хрестик усередині більше не потрібен: закриває та сама кнопка */
  /* підвал шторки стоїть унизу, як на десктопі (там його опускає «Згорнути панель», а на телефоні її немає) */
  .acc-foot { margin-top: auto; }
  body:has(.acc.is-menu) .page-top { position: sticky; top: 0; z-index: 140; }
  .acc-menu-btn .ic-back { display: none; }
  .acc-menu-btn[aria-expanded="true"] .ic-panel { display: none; }
  .acc-menu-btn[aria-expanded="true"] .ic-back { display: block; }
}

/* Лічильник символів під полем («28 / 60») не ламається по рядках (власник 27.10: «тут цифри в мобайлі
   шось поїхали»): .ob-hint — флекс-рядок, і на вузькому екрані другий елемент стискався до однієї цифри
   в рядку. Тепер він не стискається й не переноситься, а при потребі падає під текст цілим. */
.ob-hint > :last-child:not(:first-child) { flex: none; white-space: nowrap; }
.ob-hint { flex-wrap: wrap; }

/* флажок смуги інструментів: на десктопі його немає (смуга завжди відкрита) */
.ed-bar__flag {
  position: absolute;
  left: 50%;
  bottom: -26px;
  display: none;
  place-items: center;
  width: 64px;
  height: 26px;
  margin-left: -32px;
  background: var(--cream);
  border: 1px solid var(--ink-line);
  border-top: 0;
  border-radius: 0 0 var(--r-soft) var(--r-soft);
  color: var(--black);
}
.ed-bar__flag svg { transform: rotate(180deg); transition: transform .3s; }

/* Редактор на телефоні (власник 27.10) */
@media (max-width: 900px) {
  /* 1. Жовта підказка — флажок при правому краї: видно лише знак олівця, тап розгортає й згортає текст */

  /* 2. Кнопки «Зберегти» й «Продовжити» переїжджають під рядок шапки, щоб та лишалась ціла
        (раніше в один рядок вони не вміщались і налазили на «До шаблону») */
  /* 2. 29.10 (власник: «стрілка має бути в одному ряду з кнопками, кнопку зберегти зроби іконкою з діскетою»):
        смуга — ОДИН ряд: стрілка назад зліва, дискета й «Продовжити» при правому краї */
  .ed-bar {
    position: relative;
    z-index: 40;                 /* нижче за липку шапку (50): смуга ховається ПІД неї */
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: margin-top .3s cubic-bezier(.4, 0, .2, 1);
  }
  .ed-bar__left { display: flex; align-items: center; gap: 12px; }
  .ed-bar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  /* «Зберегти» = кружечок із дискетою. Текст лишається в кнопці (його переписує скрипт і читає екранний
     диктор), але має нульовий кегль, тож на екрані видно лише знак. */
  .ed-bar__save {
    width: var(--h-ctl);          /* кружечок на висоту сусідньої кнопки (56 на телефоні, 50 на планшеті) */
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    background: var(--stone) url("../assets/floppy-dark.svg") center / 20px 20px no-repeat;   /* 20 — розмір знаків кабінету, як стрілка
       «назад» поруч. Знак перемальовано 29.10 (власник: «не у нашому стилі зовсім»): поле 3.75…20.25, як у
       знаків «комп'ютер» і «телефон» поруч, кути заокруглені на 2.25, обведення 1.5 з круглими кінцями.
       Нова НАЗВА файлу навмисно: картинки віддаються з кешем на 30 днів і версії в адресі не мають. */
  }

  /* 3. Згортання смуги під шапку (власник 29.10): флажок видно завжди, бо він висить під нижнім краєм
        смуги, тож разом із нею доїжджає рівно під жовту шапку. */
  .ed-bar__flag { display: grid; }
  .ed.is-bar-off .ed-bar { margin-top: calc(-1 * var(--ed-bar-h, 68px)); }
  .ed.is-bar-off .ed-bar__flag svg { transform: none; }
  /* 31.10: while the editor's panel is in (course and site editor), the bar stays folded and its flag would lie over the panel */
  .ed.is-panel-open .ed-bar__flag { display: none; }
}


/* Вікна «Записи» й «Звернення» на телефоні — шторка знизу (власник 27.10: «має бути шторкою знизу, не доходячи
   в стик до хедера навіть коли переповнений, на 20 пікселів; а коли не заповнена висота, до низу екрану вверх
   виїжджає»): висота за вмістом, стеля — екран мінус шапка (60) мінус 20, далі список гортається всередині. */
/* поки шторка «Записи» чи «Звернення» відкрита, шапка (а з нею й шторка, бо вона всередині шапки) стоїть
   над прапорцем «Запуск сайту»: сама шапка липка з z-index 50, тож інакше прапорець лягав на кнопку «Всі записи» */
body:has(.hdrop__panel:not([hidden])) .page-top { z-index: 140; }
@media (max-width: 900px) {
  .hdrop__panel {
    top: auto;
    bottom: 0;
    max-height: calc(100svh - 80px);
    padding: 20px;
    border-radius: var(--r-card) var(--r-card) 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Знак людини в картці «Про бізнес» — на світлому кружечку --stone (власник 27.10). Сам знак у новому стилі:
   коло голови й плечі однією дугою, обведення 1.5 із круглими кінцями. Решта карток зі знаками лишається як є. */
.acc-bizcard .acc-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--stone);
  color: var(--black);
}

/* Кнопки першої картки «Мій сайт» на десктопі в один ряд (власник 27.10): головна дія («Запустити сайт»
   у чернетки) тягнеться на всю ширину, «Редагувати» й «Видалити сайт» стають круглими кнопками зі знаком;
   підпис лишається в розмітці для читачів з екрана, просто схований. Телефон не чіпаємо.
   Коли головної дії немає (сайт уже працює), лишаються дві звичайні кнопки, як було. */
@media (min-width: 901px) {
  .acc-site__actions:has(.acc-site__launch) {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .acc-site__actions:has(.acc-site__launch) .acc-site__launch { flex: 1 1 auto; }
  .acc-site__actions:has(.acc-site__launch) .cbtn:not(.acc-site__launch) {
    flex: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
  }
  .acc-site__actions:has(.acc-site__launch) .cbtn:not(.acc-site__launch) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ================= редактор у новій системі (власник 27.10) =================
   Чорна смуга зверху, канвас із сайтом і підказка вже в новому вигляді; тут доводимо ліву панель,
   шухляду даних і дрібні елементи всередині: кремові поверхні замість білих, лінії --ink-line,
   заголовки груп вагою 900, рядки та блоки з радіусом 16, круглі кнопки-знаки. */
.ed-panel, .ed-pop { background: var(--cream); }
.ed-panel { border-right-color: var(--ink-line); }
.ed-pop { border-left-color: var(--ink-line); }
.ed-grp { border-bottom-color: var(--ink-line); }
.ed-grp__head { font-size: 16px; font-weight: 900; letter-spacing: -.02em; }   /* назва групи над текстом 14 */
.ed-grp__head:hover { background: var(--stone); }
/* блоки й рядки всередині панелі */
.ed-svc, .ed-toggle, .ed-plate, .ed-day, .ed-link, .ed-fieldrow, .crs-cover { border-radius: var(--r-soft); }
.ed-svc, .ed-toggle, .ed-day { background: var(--stone); }
.ed-states { border-radius: var(--r-soft); overflow: hidden; }
.ed-state { border-color: var(--ink-line); }
.ed-state:hover { background: var(--stone); }
/* обраний рядок (стан вікна чи поточна сторінка) заливкою, а не чорною рамкою: у новій системі вона надто важка */
.ed-state[aria-pressed="true"], .ed-page.is-current { background: var(--stone); border-color: var(--ink-line); }
/* кнопки-знаки круглі, як решта знаків системи */
.ed-ibtn { border-radius: 50%; }
.ed-ibtn:hover:not(:disabled) { background: var(--stone); }
/* палітри: кути як у дрібних елементів, рамка лінією системи */
.ed-pal { border-radius: var(--r-soft); border-color: var(--ink-line); }
/* шухляда даних: заголовок як решта назв блоків («×» у шапці — це .ed-ibtn, він уже круглий) */
.ed-pop__title { font-weight: 900; letter-spacing: -.02em; }
/* 29.10 (власник: «передивись кнопки додати, вони мають бути як на скрині»): усі «Додати …» = сіра
   пігулка, як «+ Додати перерву» (.cbtn--grey), а не пунктирна рамка */
.ob-add, .ed-add { border-radius: var(--r-pill); border: 0; background: var(--stone); color: var(--black); }
.ob-add:hover, .ed-add:hover { background: var(--stone); opacity: .85; }
/* 10.11 (owner: «кнопки додати мають мати єдину іконку плюсика та єдиний шрифт, не мінятись. ось такі» = «Додати
   питання»): ONE look for every «Додати …» — height 64, sides 30, gap 12, 14 / 400 as written, no capitals, the 20 px plus;
   the editor's .ed-add and links (<a class="ob-add">) included. A new add button = class ob-add + PLUS (main.js) */
.ob-add, .ed-add { height: var(--h-ctl); padding: 0 30px; gap: 12px; font-size: 14px; font-weight: 400; letter-spacing: 0;
  text-transform: none; text-decoration: none; color: var(--black); white-space: nowrap; }
.ob-add > svg, .ed-add > svg { flex: none; width: 20px; height: 20px; }
/* (owner 10.11: «висота цих кнопок (будь яких, не тільки цих в кабінеті) має бути однакова з висотою інпуту»): every
   button in the cabinet = the field's height, one token --h-ctl (50 desktop, 56 phone); the editor's panel and drawer
   have 48 px fields, so the token is 48 there and every button inside follows it */
:is(.ed-panel, .ed-pop) { --h-ctl: 48px; }
:is(.ed-panel, .ed-pop) .cbtn { height: auto; min-height: var(--h-ctl); padding-top: 0; padding-bottom: 0; }
.set-card__btn, .msg__btn, .ed-logo__acts .cbtn, .ed-take__acts .cbtn { height: var(--h-ctl); min-height: var(--h-ctl); }
/* (owner 10.11: «по вмісту в десктопі, не розтягу. тільки в мобайлі розтягуй по батьківському контейнеру») */
@media (min-width: 901px) {
  .ob-add, .ob-add.ob-add--full, .ed-add { width: auto; max-width: 100%; align-self: flex-start; justify-self: start; }
}
@media (max-width: 900px) {
  .ob-add, .ed-add { display: flex; width: 100%; align-self: stretch; justify-self: stretch; }
}
.ed-pal.is-on, .ed-pal:hover { border-color: var(--black); }

/* Знак у підказці стоїть по верху, а не посередині (власник 27.10) */
.ed-hint, .ed-plate { align-items: flex-start; }
.ed-hint > svg { margin-top: 2px; }

/* Кнопка «назад» у смузі редактора — сама стрілка, без підпису (власник 27.10: «вона повертає насправді
   не до шаблону, а в кабінет»): підпис лишається в розмітці для читача з екрана, кнопка стає кружечком
   44 з підсвічуванням, стрілка перемальована за нашими іконками (24, обведення 1.5, круглі кінці). */
.ed-bar__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  gap: 0;
  border-radius: 50%;
}
.ed-bar__back:hover { opacity: 1; background: var(--stone); }
.ed-bar__back [data-ed-back-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Кнопка шторки — тільки на телефоні. У кабінеті її ховає account.css, а редактор його не підключає,
   через що на десктопі вона висіла в шапці з обома знаками й зсувала логотип (власник 27.10). */
.page-top .acc-menu-btn { display: none; }
.acc-menu-btn .ic-back { display: none; }
.acc-menu-btn[aria-expanded="true"] .ic-panel { display: none; }

/* ================= редактор під звичайною шапкою кабінету (власник 27.10) =================
   «не має зникати наша звична шапка кабінету; а те, що зараз у шапці (назад, таби, індикатор і кнопки),
   має вписатись у контентну секцію сторінки». Тож сторінка редактора тепер має ту саму жовту шапку, що
   решта кабінету, а чорна смуга стала світлою панеллю інструментів під нею. */
.ed { height: calc(100svh - 82px); }
.page-top:has(+ .ed) { position: sticky; top: 0; z-index: 50; }
.ed-bar {
  gap: 20px;
  height: auto;
  padding: 20px 40px;
  background: var(--cream);
  color: var(--black);
  border-bottom: 1px solid var(--ink-line);
}
.ed-bar__back { color: var(--black); }
.ed-bar__back:hover { background: var(--stone); }
.ed-bar__panel { color: var(--black); }
.ed-bar__saved { color: var(--mute); }
.ed-bar__saved.is-dirty { color: var(--black); }
/* таби «Комп'ютер / Телефон» на світлому — як на сторінці шаблону */
.ed-bar .view-tabs { background: var(--stone); }
.ed-bar .view-tabs__tab { color: var(--mute-ink); }
.ed-bar .view-tabs__tab.is-active, .ed-bar .view-tabs__tab[aria-selected="true"] { background: var(--black); color: var(--white); }
/* головна дія чорна, «Зберегти» лишається світлою */
.ed-bar__go { background: var(--black); color: var(--white); }
.ed-bar__go:hover { background: var(--black); }
/* шухляда даних виїжджає з-під шапки */
.ed-pop { top: 82px; }
@media (max-width: 900px) {
  .ed { height: calc(100svh - 60px); }
  .ed-bar { padding: 12px 20px; }
  .ed-pop { top: 60px; }
  /* панель відкриває кнопка шторки в шапці (та сама, що в кабінеті), тож «Налаштування» в смузі зайві */
  .ed-bar__panel { display: none; }
  /* розміри кнопки шторки: у кабінеті їх дає account.css, а редактор його не підключає */
  .page-top .acc-menu-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0 12px 0 -8px; }
}

/* ================= сторінка перегляду шаблону (власник 27.10) =================
   Кадр із сайтом уже заокруглений на 6; тут доводимо праву колонку: поля зі сходинки, лінія системи,
   доріжка табів --stone, назва вагою 900 з трекінгом (вона в списку заголовків вище). */
@media (min-width: 901px) {
  .tpl-side { padding: 40px 40px 120px; border-left-color: var(--ink-line); }
}
/* вага селектора не менша за cabinet.css (.view-tabs.view-tabs--light) */
.view-tabs.view-tabs--light { background: var(--stone); }
.view-tabs.view-tabs--light .view-tabs__tab { color: var(--mute-ink); }
.view-tabs.view-tabs--light .view-tabs__tab.is-active, .view-tabs.view-tabs--light .view-tabs__tab[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
}
.tpl-head__desc { color: var(--mute-ink); }

/* Смуга інструментів стоїть НАД ПОЛОТНОМ, тобто завширшки з шаблон, а панель іде від самої шапки
   (власник 27.10). Тому .ed-body ділить сторінку на панель і праву колонку .ed-main. */
.ed-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ed-main > .ed-stage { flex: 1 1 auto; min-height: 0; }
@media (min-width: 901px) {
  /* на десктопі кнопка «назад» із підписом «До кабінету», пігулкою */
  .ed-bar__back {
    display: inline-flex;          /* grid із place-items ставив підпис ПІД стрілкою */
    align-items: center;
    width: auto;
    height: 44px;
    gap: 10px;
    padding: 0 20px 0 14px;
    border-radius: var(--r-pill);
  }
  .ed-bar__back [data-ed-back-label] {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

/* Дропдауни в панелі й шухляді редактора успадковують вигляд полів: радіус 6, біле тло, лінія системи
   (власник 27.10). Фільтри каталогу лишаються пігулками — там це чипи, а не поле. */
:is(.ed-panel, .ed-pop) .drop__btn,
:is(.ed-panel, .ed-pop) .drop__list { border-radius: var(--r-field); }
:is(.ed-panel, .ed-pop) .drop__list { border-color: var(--ink-line); }

/* Перелік сторінок — одна рамка навколо списку, а не обрізані рамки рядків (власник 27.10) */
.ed-states {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-field);
  overflow: hidden;
}
.ed-state { margin-top: 0; border: 0; }
.ed-state + .ed-state { border-top: 1px solid var(--ink-line); }
/* «Сторінка курсу» з кількома курсами (власник 31.10: «випадашка спойлера … стрілочкою дропа біля заголовку справа.
   За замовчуванням вона відкрита»): заголовок рядка розгортає список сторінок курсів. Шеврон — еталон 12 × 12, як у
   групах панелі; вкладені рядки починаються під назвою сторінки (14 + перемикач 52 + 12 = 78). */
.ed-page__chev { flex: none; width: 12px; height: 12px; background: url("../assets/chevron-down-dark.svg") center / contain no-repeat; transition: transform .2s; }
.ed-page__fold[aria-expanded="true"] .ed-page__chev { transform: rotate(180deg); }
.ed-page__subs { border-top: 1px solid var(--ink-line); }
.ed-page__subs[hidden] { display: none; }
.ed-page__subs + .ed-state { border-top: 1px solid var(--ink-line); }
.ed-state.ed-page__sub { width: 100%; grid-template-columns: minmax(0, 1fr) auto; min-height: 46px; padding: 10px 14px 10px 78px; }
.ed-page__subs.is-off .ed-page__sub > span:first-child { color: var(--grey-text); }

/* Дрібниці смуги редактора (власник 27.10): поле 20 (було 40), проміжок між кнопками 10,
   шеврон групи в панелі менший (12 замість 16) — великий виглядав чужорідним. */
.ed-bar { padding: 20px; }
.ed-bar__right { gap: 10px; }
/* ЕТАЛОН ШЕВРОНА (власник 27.10): той самий знак, що в перемикачі мов на головній — коробка 12,
   шлях M1.5 3.5L6 8l4.5-4.5, обведення 1.5 з круглими кінцями. Малюється 12 × 12. */
.ed-grp__head::after { width: 12px; height: 12px; }
.ob-select { background-size: 12px 12px; }   /* знак перемальовано в коробці 24, тож тут трохи більший */
@media (max-width: 900px) {
  .ed-bar { padding: 12px 20px; }
}

/* Індикатор «Збережено» відступає від кнопки на 20 (проміжок ряду 10 + ці 10) — власник 27.10 */
.ed-bar__saved { margin-right: 10px; }

/* Палітри вдвічі нижчі (власник 27.10): 64 → 32 */
.ed-pal { height: 32px; }
/* «Оригінальні кольори» відліплена від сітки палітр: разом із проміжком групи 12 виходить 30 (власник 27.10) */
.ed-pal-orig { margin-top: 18px; }

/* Підказка редактора — флажок при правому краї НА ВСІХ ШИРИНАХ (власник 27.10: «в десктопі зроби як і
   в мобайлі флажочком до правого краю з можливістю згортати й розгортати»). Згорнута показує лише знак
   олівця, клік розгортає текст і згортає назад. `.ed .ed-hint` у site.css тримає left: 50%, тож селектор
   тут не слабший. */
.ed .ed-hint, .ed-hint {
  left: auto;
  right: 0;
  bottom: 20px;
  max-width: min(29rem, calc(100% - 20px));
  border-radius: var(--r-card) 0 0 var(--r-card);
  transform: none;
  cursor: pointer;
}
.ed-hint:not(.is-open) { gap: 0; padding: 12px 16px 12px 20px; }
.ed-hint:not(.is-open) > span { display: none; }
.ed-hint.is-open { padding: 16px 20px; }

/* Жовтий верх другорядних сторінок нижчий (власник 28.10: «зменш висоту цієї і подібних секцій на второстепенних
   сторінках … тими ж гепами»): над і під заголовком поле секції 40, як поле вмісту кабінету й секцій головної
   (було 60 / 80); на телефоні 20 / 40, як поле телефона. Тарифи, документи, довідка, запит, шаблони, курси. */
.doc-top { padding-top: 40px; padding-bottom: 40px; }
.page-search { padding-top: 40px; }
.page-search--end { padding-bottom: 40px; }
@media (max-width: 900px) {
  .doc-top { padding-top: 20px; padding-bottom: 40px; }
  .page-search { padding-top: 20px; }
}

/* ================= Підвал = підвал головної (власник 28.10: «футер еталон на головній рознеси на всі сторінки»).
   Розмітка та сама, що в index.html (жовтий верх: лого + мова, три колонки, «Задати питання»; знизу кремовий рядок
   копірайту); тут лише px замість rem (на цих сторінках немає росту --k) і бічне поле сторінки --pad-wide.
   Перебиває старий підвал зі style.css (сітка 453 / 1fr, сірий фон). */
.footer { display: block; padding: 0; gap: 0; grid-template-columns: none; background: var(--cream); }
.l-foot__top { display: flex; align-items: flex-start; gap: 40px; padding: 60px var(--pad-wide); background: var(--y); }
.footer .footer__brand { flex: none; width: 350px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__brand .logo { width: 181px; height: 32px; }
.footer .footer__cols { flex: 1 1 0; min-width: 0; display: flex; gap: 40px; }
.footer .footer__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 40px; font-size: inherit; line-height: inherit; white-space: normal; }
.footer .footer__head { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--mute-ink); }
.footer__links { display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 1.35; }
.footer__links a { transition: opacity .2s; }
.footer__links a:hover { opacity: .6; }
.l-foot__cta { flex: none; width: 350px; display: flex; justify-content: flex-end; }
.l-foot__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  border-radius: var(--r-pill);
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.l-foot__cta a:hover { opacity: .8; }
.l-foot__bottom { margin: 0; padding: 20px var(--pad-wide); text-align: center; font-size: 12px; line-height: 1.35; color: #8b8b7b; }
.footer .lng__btn { height: auto; padding: 12px 24px; border-radius: var(--r-pill); font-size: 14px; line-height: 1.35; }
.footer .lng__list li { height: 44px; padding: 0 24px; font-size: 12px; }
.footer .footer__bottom { gap: 0; }
@media (max-width: 900px) {
  .l-foot__top { flex-direction: column; align-items: stretch; gap: 40px; padding: 40px var(--pad); }
  /* logo 181 + gap 20 + language pill ~145 = 346: one row from 386 px up; narrower (320, 360) the pill wraps under the logo
     instead of widening the page (30.10) */
  .footer .footer__brand { order: 0; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
  .footer .footer__cols { flex-direction: column; gap: 40px; }
  .footer .footer__col { gap: 20px; }
  .l-foot__cta { width: auto; }
  .l-foot__cta a { width: 100%; }
  .l-foot__bottom { padding: 20px var(--pad); }
}

/* ================= документи: оферта, політика, DPA, довідка (власник 29.10: «на сторінках політики,
   оферти і тд підложка поприлипала до футера і хедера і криві відступи, зверстай як треба») =================
   Біла картка документа більше не торкається жовтого верху й підвалу, а поле всередині — те саме, що в усіх
   картках системи (40 на десктопі, 24 на телефоні), замість старих 80 / 20 / 140. */
.doc {
  gap: 40px;
  margin: 60px auto 120px;
  padding: var(--pad-card);
}
/* риски всередині документа — тонка межа системи, а не чорна лінія старого дизайну */
.doc-sec, .doc-steps li { border-top-color: var(--card-line); }
/* блок «залишилось питання» — кремовий на білому, як картка в картці */
.doc__ask { padding: 24px; background: var(--cream); border-radius: var(--r-soft); }
.doc-plate { border-radius: var(--r-soft); }
@media (max-width: 900px) {
  .doc { gap: 32px; margin: 20px auto 60px; padding: var(--pad-card); }
}

/* ================= «Розкажіть, що потрібно» (request.html; власник 28.10: «імпути зависокі, форма прилипла до гори,
   зроби нормально у нашому дизайні»): біла картка з полями 60 від жовтого верху, поля 50 (як пошук і кнопки), підписи
   14 (body), між полями 24, без лінії над кнопками. */
.req {
  width: min(888px, calc(100% - 2 * var(--pad)));
  margin: 60px auto 120px;
  padding: 40px;
}
.req__form { gap: 24px; }
.req .ob-field { gap: 8px; }
.req .ob-label, .req .ob-label small { font-size: 14px; }
.req .ob-input, .req .ob-select { height: var(--h-ctl); font-size: 14px; }
.req .req__area { height: auto; min-height: 140px; padding: 14px 24px; }
.req .req__error { margin: -8px 0 0; }
.req .req__nav { justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 0; }
.req .req__nav .cbtn { width: auto; }
.req__done { padding: 0; background: none; }
@media (max-width: 900px) {
  .req { width: auto; margin: 20px var(--pad) 80px; padding: 24px; }
  .req .req__nav { flex-direction: column-reverse; }
  .req .req__nav .cbtn { width: 100%; }
}

/* Ряд пошуку й фільтрів (шаблони, курси) і список курсів — від краю до краю того самого контенту, що й картки
   каталогу шаблонів (власник 28.10: «ширина фільтру має розширюватися від краю до краю контенту … у пошуку курсів
   ширина контенту така сама, як у пошуку сайтів»): поле 40, понад 1920 колонка центрується (правило .tpl-list вище). */
@media (min-width: 901px) {
  .tpl-filters, .cat-main {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-left: calc(40px + max(0px, (100vw - 1920px) / 2));
    padding-right: calc(40px + max(0px, (100vw - 1920px) / 2));
  }
}

/* календар дати в «Записах» (29.10): картка з радіусом сторінки, пігулка-кнопка, круглі дні */
.bk-cal { border-radius: var(--r-card); border-color: var(--ink-line); }
.bk-cal__btn { border-color: var(--ink-line); }

/* шухляда запису на телефоні = шторка знизу (власник 29.10), тож заокруглені лише верхні кути */
@media (max-width: 900px) {
  .bk-drawer { border-radius: var(--r-card) var(--r-card) 0 0; }
}

/* ================= вхід, реєстрація, пароль (власник 29.10) =================
   «Зроби у нашому новому стилі вхід і реєстрацію. Справа поля, зліва хай
   крутитиметься пів колеса з шаблонами нашими, як ми на скрині.»
   Ліворуч — чорна половина з половиною кільця «Сайт на зараз»: та сама геометрія,
   що й на головній (style.css .ring), але центр колеса стоїть на ЛІВОМУ краї
   панелі, тож видно його праву половину. Праворуч — кремова сторінка нової
   системи: чорні пігулки, білі поля радіусом 6 заввишки з кнопку.
   Картки кільця додає js/main.js ([data-auth-ring]) зі списку шаблонів. */
.signup { background: var(--cream); }
/* сітка, а не відсотки: нульова коробка кільця стає по центру заввишки і на лівому краї.
   (top: 50% тут рахувався не від смуги, а від усієї розкладки — на телефоні колесо їхало вниз) */
.signup__media { flex: 0 0 50%; display: grid; align-items: center; justify-items: start;
  background: var(--black); container-type: inline-size; }
/* 1 px макета кільця: зовнішній радіус (678.3) + 56 = ширина панелі, тож між колесом і формою
   завжди лишається відступ (власник 29.10: «прилипло кільце до краю, має трохи відстань бути»);
   зверху й знизу колесо ріже екран — це й є «пів колеса» */
.signup__ring { --u: calc((100cqw - 56px) / 678.3); position: relative; left: auto; top: auto; animation-duration: 160s; }
/* 16.11 (owner, Figma Screens & Flows 176:5145): the wheel moves LEFT by 150 of the 720 half (its farthest card ends at 516,
   not 667), the same size; in cqw so it keeps the proportion on any width. The phone layout below puts it back. */
@media (min-width: 901px) { .signup__ring { left: -20.83cqw; } }

.signup__panel { background: var(--cream); color: var(--black); }
/* 80 зверху й знизу не лишали форму в одному екрані на ноутбуці (900) — 60, як поля решти сторінок */
@media (min-width: 901px) { .signup__panel { padding: 60px 140px; } }
.signup__mark { color: var(--black); }
.signup__sub, .signup__label, .signup__or, .signup__note, .signup__hint,
.signup__forgot, .signup__eye, .signup__change { color: var(--mute); }
.signup__or::before, .signup__or::after { background: var(--ink-line); }
.signup__note a, .signup__who, .signup__agree, .signup__agree a { color: var(--black); }
.signup__forgot:hover, .signup__change:hover, .signup__eye:hover, .signup__note a:hover { color: var(--black); opacity: .7; }
.signup__agree input { accent-color: var(--black); }

/* поле = поле системи: біле на кремовому, межа тонка, висота як у кнопки поруч */
.signup__input {
  padding: 0 24px;
  border-color: var(--ink-line);
  background: var(--white);
  color: var(--black);
}
.signup__input:focus { border-color: var(--black); }
.signup__input[aria-invalid="true"], .signup__error { color: #c4320a; }
.signup__input[aria-invalid="true"] { border-color: #c4320a; color: var(--black); }
.signup__pass .signup__input { padding-right: 120px; }
.signup__eye { right: 24px; }

/* кнопки: соцмережі — камінь, головна дія — чорна пігулка */
/* поле 13, а не 16: так кнопка впирається рівно в --h-ctl (50 на десктопі, 56 на телефоні), як і поле поруч */
.signup .sbtn { height: auto; min-height: var(--h-ctl); padding: 13px 28px; background: var(--stone); color: var(--black); }
.signup .sbtn:hover { background: #d7d7ca; }
.signup .sbtn:disabled, .signup .sbtn:disabled:hover { background: var(--stone); }
.signup__email .sbtn { background: var(--black); color: var(--white); }
.signup__email .sbtn:hover { background: var(--black); opacity: .85; }

/* телефон (власник 29.10: «а мобайл ти зробив вхід і реєстрацію? зроби мобайл теж»):
   колесо стає чорною смугою зверху, під нею — форма. Центр колеса так само на лівому краї,
   тож крізь смугу пропливає та сама дуга карток; відступ до правого краю лишається. */
@media (max-width: 900px) {
  .signup { flex-direction: column; }
  /* центр колеса — на верхньому краї смуги по її середині, тож униз іде дуга, як на малюнку власника */
  .signup__media { display: grid; align-items: start; justify-items: center; flex: none; width: 100%;
    height: clamp(260px, 40svh, 360px); }
  /* тут розмір дає ВИСОТА смуги, а не ширина: уся дуга має вміститися, і знизу лишається ті самі 40 px
     (власник 29.10: «ну а відстань» — картки впиралися в кремовий край) */
  .signup__ring { --u: calc((clamp(260px, 40svh, 360px) - 40px) / 678.3); }
  .signup__panel { flex: 1 1 auto; padding: 40px var(--pad) 60px; }
}

/* ================= кабінет: розділи сторінок = білі картки (власник 29.10) =================
   «Прибери чорні лінії звідти, це зі старого дизайну. Кожен пункт на білу карточку із відступами
   як положено.» Чорна риска згори + падінг 40 були зі старої системи; тепер `.acc-sec` — звичайна
   картка системи (білий, радіус 30 / 16, поле 40 / 24), а контейнери тримають між ними 20. */
.acc-sec {
  padding: var(--pad-card);
  border: 1px solid var(--card-line);
  background: var(--white);
  border-radius: var(--r-card);
}
.acc-sec--quiet { border-top: 0; }
.bks, .acc-solo { gap: 20px; }
/* блок людини й вихідних усередині картки більше не окрема сіра коробка */
.bks-m { padding: 0; border: 0; background: none; }
/* картка в картці (тарифи, рахунок) — кремова, інакше біле по білому не видно */
.acc-sec .pick, .acc-sec .pay__card, .acc-sec .acc-tile { background: var(--cream); }

/* працівники (власник 29.10): заголовок, пояснення і смуга карток стоять на кремовому фоні,
   біла картка нижче — лише графік активного. Картка працівника трохи вужча за смугу, тож
   сусідні визирають і зрізаються краєм; активна завжди по центру (scroll-snap center). */
/* ширина картки працівника рахується від КОЛОНКИ (біла картка), а не від самої смуги: трохи вужча
   за білу, тож сусідні визирають і зрізаються краєм екрана. Саме `cqw` (секція = контейнер), бо
   відсоток усередині смуги залежав би від її ж бічного поля, яке ставить скрипт — вийшла б петля. */
.bks-staff-sec { container-type: inline-size; display: flex; flex-direction: column; gap: 20px; }
.bks-staff-sec__head { display: flex; flex-direction: column; gap: 12px; }
.bks-staff {
  display: flex;
  gap: 12px;
  /* смуга йде до країв екрана: на телефоні за поле сторінки, на десктопі за поле колонки */
  margin-inline: calc(-1 * var(--pad));
  /* бічне поле ставить js/main.js (padCards): рівно стільки, щоб картка стала по центру смуги */
  padding-block: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.bks-staff::-webkit-scrollbar { display: none; }
.bks-staff-wrap { position: relative; }
/* 29.10 (власник, лише десктоп): стрічка від лівого краю колонки, картки під обрізом згасають до нуля,
   а на краях — стрілки в білих кружечках із тінню */
@media (min-width: 901px) {
  .bks-staff { margin-inline: 0; scroll-padding-inline: 0; }
  .bks-card { scroll-snap-align: start; }
  .bks-staff[data-fade="right"] { mask-image: linear-gradient(to right, #000 calc(100% - 140px), transparent); }
  .bks-staff[data-fade="left"] { mask-image: linear-gradient(to left, #000 calc(100% - 140px), transparent); }
  .bks-staff[data-fade="both"] { mask-image: linear-gradient(to right, transparent, #000 140px, #000 calc(100% - 140px), transparent); }
}
.bks-staff__arr {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  transition: background-color .2s;
}
.bks-staff__arr:hover { background: var(--cream); }
.bks-staff__arr[hidden] { display: none; }
.bks-staff__arr--prev { left: 8px; }
.bks-staff__arr--next { right: 8px; }
.bks-card {
  position: relative;
  flex: none;
  scroll-snap-align: center;
  width: min(100cqw - 40px, 520px);
  /* без бежевої межі: у картки працівника лишається тільки жовта рамка активної (власник 29.10) */
  border: 0;
  border-radius: var(--r-card);
  background: var(--white);
  opacity: .55;
  transition: opacity .25s, box-shadow .2s;
}
/* активна картка — жовта рамка 4 px усередині, тож розмір не стрибає (власник 29.10) */
.bks-card.is-active { opacity: 1; box-shadow: inset 0 0 0 4px var(--y); }
.bks-card__pick { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; text-align: left; }
/* олівець правує ім'я, опис, нотатку й колір (власник 29.10) */
.bks-card__pen {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--black);
  transition: background-color .2s;
}
.bks-card__pen:hover { background: var(--stone); }
/* на десктопі картка працівника — фіксовані 320 (власник 29.10); телефон лишається на своїй ширині.
   Правило стоїть ПІСЛЯ базового `.bks-card`, інакше та сама вага виграє нижчим у файлі. */
@media (min-width: 901px) { .bks-card { width: 320px; } }
.bks-card__ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--stone);
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
/* типова (кам'яна) аватарка активної картки — чорна з білими літерами */
.bks-card.is-active .bks-card__ava { background: var(--black); color: var(--white); }
.bks-card__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bks-card__name { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bks-card__role { font-size: 14px; line-height: 1.35; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bks-card.is-active .bks-card__role { color: var(--mute-ink); }
.bks-card--add .bks-card__ava { background: none; box-shadow: inset 0 0 0 1px var(--ink-line); }
.bks-card--add .bks-card__name { color: var(--mute); white-space: normal; }
.bks-card__note { font-size: 14px; line-height: 1.35; color: var(--mute-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* шість кольорів аватарки (сервер приймає лише ці ключі: app.py AVATAR_COLORS) */
/* обраний колір сильніший за «активну» (інакше виходили чорні літери на чорному — власник 29.10:
   «літери на аватарці чогось відсутні») */
.bks-card__ava[data-c="yellow"], .bks-card.is-active .bks-card__ava[data-c="yellow"] { background: var(--y); color: var(--black); }
.bks-card__ava[data-c="mint"], .bks-card.is-active .bks-card__ava[data-c="mint"] { background: #cfe7d7; color: var(--black); }
.bks-card__ava[data-c="sky"], .bks-card.is-active .bks-card__ava[data-c="sky"] { background: #cfddf0; color: var(--black); }
.bks-card__ava[data-c="rose"], .bks-card.is-active .bks-card__ava[data-c="rose"] { background: #f2d7d7; color: var(--black); }
.bks-card__ava[data-c="lilac"], .bks-card.is-active .bks-card__ava[data-c="lilac"] { background: #ddd6ef; color: var(--black); }

/* вікно «хто це»: ім'я, опис, нотатка, колір аватарки */
.bks-id {
  width: 520px;
  max-width: calc(100% - 2 * var(--pad));
  padding: var(--pad-card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--black);
}
.bks-id::backdrop { background: rgba(0, 0, 0, .45); }
.bks-id__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.bks-id__title { font-size: var(--fs-l); font-weight: 900; line-height: 1.1; }
.bks-id__close { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%; background: var(--black); color: var(--white); line-height: 1; }
.bks-id__fields { display: flex; flex-direction: column; gap: 20px; }
/* «Зберегти» стоїть над «Прибрати», в самому низу полів (власник 29.10) */
.bks-id__save { width: 100%; }
/* питання при закритті щойно доданої картки */
.bks-ask { width: 420px; }
.bks-ask .bks-id__title { margin-bottom: 12px; }
.bks-ask__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bks-ask__btns .cbtn { flex: 1 1 160px; }
/* вікно з інформацією картки: тільки показує, нічого не правує */
.bks-info__who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bks-info__ava { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--stone); color: var(--black); font-size: 16px; font-weight: 500; line-height: 1; }
.bks-info__ava[data-c="yellow"] { background: var(--y); }
.bks-info__ava[data-c="mint"] { background: #cfe7d7; }
.bks-info__ava[data-c="sky"] { background: #cfddf0; }
.bks-info__ava[data-c="rose"] { background: #f2d7d7; }
.bks-info__ava[data-c="lilac"] { background: #ddd6ef; }
.bks-info__role { font-size: 16px; line-height: 1.5; color: var(--mute); }
.bks-info__note { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.bks-info__role[hidden], .bks-info__note[hidden] { display: none; }
.bks-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.bks-colors__c { width: 36px; height: 36px; border-radius: 50%; background: var(--stone); transition: box-shadow .2s; }
.bks-colors__c[data-m-color="yellow"] { background: var(--y); }
.bks-colors__c[data-m-color="mint"] { background: #cfe7d7; }
.bks-colors__c[data-m-color="sky"] { background: #cfddf0; }
.bks-colors__c[data-m-color="rose"] { background: #f2d7d7; }
.bks-colors__c[data-m-color="lilac"] { background: #ddd6ef; }
.bks-colors__c[aria-checked="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
@media (max-width: 900px) {
  /* на телефоні вікно — шторка знизу, як решта вікон кабінету */
  .bks-id { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0; }
}
/* крок запису: чипи на десктопі, випадашка на телефоні */
.bks-step__sel { display: none; }   /* (the old chips + phone select; 10.11 the page has a plain dropdown) */
@media (max-width: 900px) {
  .bks-step { display: none; }
  .bks-step__sel { display: block; width: 100%; }
  .bks-pick__add { width: 100%; }
}

/* випадашка з галочками (послуги майстра) */
.msel { position: relative; display: block; }
/* своя стрілка — рідну з `.ob-select` прибираємо, інакше їх дві (власник 29.10) */
.msel__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background-image: none; text-align: left; }
.msel__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__chev { flex: none; display: grid; place-items: center; transition: transform .25s; }
.msel__btn[aria-expanded="true"] .msel__chev { transform: rotate(180deg); }
.msel__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-field);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.msel__list[hidden] { display: none; }
.msel__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-field); text-align: left; font-size: 16px; line-height: 1.35; }
.msel__opt:hover { background: var(--cream); }
.msel__box { flex: none; width: 20px; height: 20px; border: 1px solid var(--ink-line); border-radius: var(--r-field); background: var(--white); }
.msel__opt[aria-checked="true"] .msel__box {
  border-color: var(--black);
  background: var(--black) center / 12px 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 5.5L9 17l-5.5-5.5'/%3E%3C/svg%3E");
}

/* ================= редактор курсу: ліва панель згортається й на комп'ютері (власник 31.10) =================
   «в десктопі треба давати можливість згорнути ліву сайд панель, як зроблено зараз в мобайлі … не налаштування додавати,
   а як в мобайлі - іконку біля лого в хедері»: значок шторки перед лого (та сама кнопка, що на телефоні) видно й на
   комп'ютері; клік ховає панель (вона від'їжджає ліворуч, сторінка курсу займає всю ширину) і повертає її. */
@media (min-width: 901px) {
  /* 31.10 (власник: «зробимо так само і для інших лівих панелей в кабінеті … по іконці біля логотипа»): той самий значок
     і в редакторі сайту, і на сторінках кабінету з лівим меню (там він згортає меню до стовпчика іконок замість
     посилання «Згорнути панель» унизу меню) */
  :is(.page-top:has(+ .ed), .page-top:has(+ .acc)) .acc-menu-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0 12px 0 -8px; }
  :is(.page-top:has(+ .ed), .page-top:has(+ .acc)) .acc-menu-btn[aria-expanded="true"] .ic-back { display: block; }
  :is(.page-top:has(+ .ed), .page-top:has(+ .acc)) .header .logo { margin-right: auto; }   /* шапка space-between: лого лишається біля значка, не в центрі */
  .ed[data-editor] .ed-panel { transition: margin-left .3s cubic-bezier(.4, 0, .2, 1); }
  .ed[data-editor].is-panel-off .ed-panel { margin-left: -380px; visibility: hidden; transition: margin-left .3s cubic-bezier(.4, 0, .2, 1), visibility 0s .3s; }
  .acc-foot { margin-top: auto; }   /* підвал меню внизу: раніше його опускало «Згорнути панель» */
  /* 31.10 (власник: «продовжимо мобайл принцип і з меню під хедером в десктопі на сторінці редактору курсу - воно має
     скриватись спойлером так само, але за замовчуванням показуватись у розкритому стані»): смуга «Мої продукти · Зберегти»
     їде під шапку по флажку зі стрілкою, як на телефоні; редактор щоразу відкривається з розгорнутою смугою */
  .ced .ed-bar { position: relative; z-index: 40; transition: margin-top .3s cubic-bezier(.4, 0, .2, 1); }
  .ced .ed-bar__flag { display: grid; }
  .ced.is-bar-off .ed-bar { margin-top: calc(-1 * var(--ed-bar-h, 82px)); }
  .ced.is-bar-off .ed-bar__flag svg { transform: none; }
  .ced .ed-panel { transition: margin-left .3s cubic-bezier(.4, 0, .2, 1); }
  .ced.is-panel-off .ed-panel { margin-left: -380px; visibility: hidden; transition: margin-left .3s cubic-bezier(.4, 0, .2, 1), visibility 0s .3s; }
}

/* ================= редактор курсу без вкладок (власник 31.10) =================
   «прибираємо можливість редагування сторінки курсу … таби не треба»: у смузі лише «назад» зліва й «Зберегти» справа.
   Сітка смуги 1fr auto 1fr лишається, тож права група стає в третю колонку, а не в середину. */
.ced .ed-bar__right { grid-column: 3; }

/* ================= панель редактора курсу = панель редактора сайту (власник 30.10) =================
   «панель з налаштуваннями треба підігнати під стиль аналогічної панелі в редакторі сайту — шрифти, відступи, зайві
   отчерки прибрати». Панель курсу була зібрана з деталей кабінету (рядки .acc-row 20 з лініями, бічна панель .crs-side
   з обнуленими полями — «Курс» і «Крок 1» стояли впритул до краю). Тут — мова панелі сайту: шапка як рядок мови
   (поля 20 / 24, лінія знизу, підпис 14 сірим), групи 16 / 900, тіло групи 4 / 24 / 28 з проміжком 14, перемикачі —
   плашки --stone з радіусом 16 без ліній між ними, підписи 14 сірим, жовта плашка як .ed-plate. */
.ced .ed-panel .ced-head { gap: 8px; padding: 20px 24px; border-bottom: 1px solid var(--ink-line); }
.ced .ed-panel .ced-kicker { font-size: 14px; line-height: 1.5; color: var(--grey-text); }
.ced .ed-panel .ced-name { font-size: 16px; line-height: 1.35; font-weight: 900; letter-spacing: -.02em; }
.ced .ed-panel .acc-row { flex-wrap: nowrap; align-items: flex-start; gap: 16px; padding: 16px; border: 0; border-radius: var(--r-soft); background: var(--stone); }
.ced .ed-panel .acc-row__title { font-size: 16px; line-height: 1.35; }
.ced .ed-panel .acc-row__sub { font-size: 14px; line-height: 1.5; }
.ced .ed-panel .crs-side { gap: 14px; padding: 4px 24px 28px; }
.ced .ed-panel .crs-side__title { margin: 0; font-size: 16px; line-height: 1.35; }
.ced .ed-panel .crs-side__label { font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--grey-text); }
.ced .ed-panel .crs-side__rules { padding-top: 0; border-top: 0; }
.ced .ed-panel .crs-side__msg.is-bad, .ced .ed-panel .acc-plate { border-radius: var(--r-soft); }
.ced .ed-panel .ced-note { padding: 20px 24px 28px; }
@media (max-width: 900px) {
  .ced .ed-panel .ced-head, .ced .ed-panel .crs-side, .ced .ed-panel .ced-note { padding-left: var(--pad); padding-right: var(--pad); }
}

/* 30.10 (власник): перемикачі в плашках «Курс у Pochatok» притиснуті до верху — навпроти назви, а не посередині опису */
.ced .ed-panel .acc-row > .ob-switch { margin-top: 0; }

/* 30.10 (owner: «в мобайлі там де замінюється фото, при завантажені фото, погано адаптувалась ця сторінка»): «Замінити фото».
   On a phone the column was `1fr` (min = content), so the 400 px crop frame and the drop zone ran past a 390 screen.
   Also the new system's corners: the zone and the frame 16, the icon box and the zoom buttons 6. */
.ph__drop, .ph__crop { border-radius: 16px; }
.ph__drop-icon, .ph__zoom button { border-radius: 6px; }
@media (max-width: 900px) {
  .ph__body { grid-template-columns: minmax(0, 1fr); }
  .ph__crop { width: 100%; }
}

/* ================= незаповнене для запуску (власник 31.10) =================
   «треба його кидати на це поле і підсвічувати … давати повний перелік що не заповнено, давати посилання» — main.js FIX:
   перелік на сторінці тарифу (.acc-fix), поля з ?fix=… обведені червоним з рядком під ними, доки їх не заповнять. */
.acc-fix { flex-direction: column; gap: 12px; }
.acc-fix__title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.acc-fix__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.acc-fix__list a, .acc-fix__back a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.acc-fix__back a { white-space: nowrap; }
.acc-fix__back { margin: 0; padding: 16px 20px; border-radius: var(--r-field); background: var(--accent); font-size: 16px; line-height: 1.5; }
.ob-input.is-missing, .ob-input.is-missing:focus { border-color: #c4320a; box-shadow: 0 0 0 3px rgba(196, 50, 10, .15); }
.ob-miss { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: #c4320a; }

/* 31.10 (власник: «відміть там зірочками це в лейбах»): обов'язкове поле тримача — зірочка після підпису (класом, щоб
   текст підпису й переклади не мінялись); адреса обов'язкова лише для підприємця й фірми (main.js HOLDER) */
.ob-label.is-req::after { content: " *"; color: #c4320a; }
.acc-fix__list--dlg { margin-top: 16px; color: var(--black); }   /* the launch dialog's list (main.js) */

/* 31.10 (власник: «стару ціну робити перекреслену … типу знижка чи акція»): поле «Стара ціна» у рядку курсу / посібника
   шухляди «Послуги й ціни» (editor.js); в інших категоріях його немає */
.ed-svc__old { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ed-cat:not([data-cat="courses"]):not([data-cat="tariffs"]):not([data-cat="guide"]):not([data-cat="promo"]) .ed-svc__old { display: none; }
.ed-svc__promo { margin: 0 0 4px; }
/* 01.11: how many services are ticked for the home page's section, out of what this template fits */
.ed-home-count { font-weight: 500; color: var(--ink, #000); }
.ed-home-count.is-full { color: var(--grey-text); }
.ed-home-n { font-weight: 700; white-space: nowrap; }
.ed-home-n.is-full { color: #c4320a; }
/* 01.11: why the old price is not crossed out on the site (it is not above the real price) */
.ed-svc__why { margin: 0; font-size: 12px; line-height: 1.4; color: var(--grey-text); }
.ed-svc__why:empty { display: none; }
/* 01.11 (owner): a PDF has no duration, so the guide row has no duration picker */
.ed-cat[data-cat="guide"] .ed-svc__line select { display: none; }

/* ===== 06.11 (власниця: «задизайнь всі вспливашки та сторінки помилок в новому стилі, обережно та адекватно») =====
   Сторінки помилок (404 і error.html) були чорні ще зі старої системи, а новий шар уже робив їхню коробку білою
   карткою: виходив білий текст на білому і майже невидима друга кнопка. Тепер вони в новій системі: кремова сторінка,
   біла картка радіусом 30 з нашою межею, чорний знак, важкий заголовок, сіре пояснення, чорна й біла пігулки. */
.nf { background: var(--cream); color: var(--black); }
.nf__box { gap: 16px; width: min(560px, 100%); padding: 40px; box-shadow: var(--sh-card, 0 1px 2px rgba(0, 0, 0, .04)); }
.nf__mark { color: var(--black); }
.nf__code { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-text); }
.nf__text { font-size: 16px; color: var(--grey-text); }
.nf__actions { gap: 12px; margin-top: 8px; }
.nf .cbtn--white { background: var(--black); color: var(--white); }
/* 16.11 (owner): «Допомога» on the error pages = the grey secondary button (stone fill, no border), as .cbtn--grey */
.nf .cbtn--soft { background: var(--stone); color: var(--black); border: 0; }
.nf .cbtn--soft:hover { background: var(--stone); }
@media (max-width: 900px) {
  .nf { padding: 40px 20px; }
  .nf__box { padding: 24px; }
  .nf__actions { width: 100%; flex-direction: column; }
  .nf__actions .cbtn { width: 100%; min-width: 0; }
}

/* Вспливашки: та сама картка, що всюди в новій системі (біла, радіус 30, наша межа, м'яка тінь), заголовки важкі,
   підложка однакова. Вміст і поведінку не чіпаємо. */
.rq, .ph, .bk-drawer { border: 1px solid var(--card-line); box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
/* 09.11 (власниця): вспливашки були квадратні, бо радіус стояв лише в landing.css. Шухляда прибита до
   правого краю, тож заокруглюється лише лівий бік. */
.rq, .ph { border-radius: var(--r-card); }
.bk-drawer { border-radius: var(--r-card) 0 0 var(--r-card); }
@media (max-width: 900px) {
  .rq, .ph { border-radius: var(--r-card); }
}
.rq::backdrop, .ph::backdrop, .bk-drawer::backdrop { background: rgba(0, 0, 0, .45); }
.rq__title, .ph__title { font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.rq__lead, .ph__sub { font-size: 16px; color: var(--grey-text); }

/* ================= «Ваш сайт працює»: екран лишається ЧОРНИМ =================
   09.11 на слово «роби кремовими» я зробив його кремовим; подивившись, власниця сказала «Поверни чорний».
   Повернуто як з 27.10: чорне полотно, білий знак і заголовок, поле адреси з прозорою межею, світла головна
   кнопка. Від тієї спроби лишилися ТІЛЬКИ заокруглення за системою (поле адреси пігулкою, жовта плашка
   поради радіусом картки): кольорів вони не чіпають. Фон міняти лише за її прямим словом. */
.live__url { border-radius: var(--r-pill); }
.live__tip { border-radius: var(--r-card); }
@media (max-width: 900px) {
  .live__tip { border-radius: var(--r-card); }
}

/* ================= Вхід, реєстрація, відновлення пароля: смуга лишається ЧОРНОЮ =================
   09.11 я зробив її кремовою разом з екраном запуску, і власниця, побачивши живий екран на телефоні,
   сказала: «так було краще». Повернуто як було з 27.10: чорна смуга, на ній дуга карток шаблонів без
   межі й тіні. Чіпати це без її слова не можна: контраст тут і є задумом. Екран запуску («Ваш сайт
   працює») лишається кремовим, це вона бачила й лишила. */

/* ================= дрібне, що лишалось квадратним (власниця 09.11: «всі екрани») =================
   Знайдено прогоном по 19 екранах: елементи з власним фоном і нульовим радіусом. */
.addr-card__bar { border-radius: var(--r-pill); }            /* смужка «браузера» в картці адреси */
.dt-foot {                                                    /* «так буде внизу вашого сайту» */
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
}
.acc-plate { border-radius: var(--r-soft); }                  /* жовті плашки-підказки в кабінеті */
.st__promo input { border-radius: var(--r-field); border-color: var(--card-line); }
@media (max-width: 900px) {
  .dt-foot { border-radius: var(--r-soft); }
}

/* ================= довгий напис на кнопці переноситься, а не обрізається (власниця 09.11) =================
   `.cbtn` з cabinet.css має `white-space: nowrap`, тож довга назва («Увімкнути двофакторну автентифікацію»)
   вилазила за пігулку й була обрізана. Висота в цьому шарі вже `auto` з `min-height`, тож кнопка просто стає
   на два рядки. */
.btn, .cbtn, .sbtn, .ck__btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

/* ================= «Клієнти» (10.11): список карток, картка у правій шухляді, поля картки =================
   Система кабінету: білі картки .acc-sec на кремовому, рядки списку радіусом --r-soft, кнопки-пігулки,
   жовта плашка лише для пояснення про двофакторну автентифікацію. */
.cl { display: flex; flex-direction: column; gap: 20px; }
.cl[hidden] { display: none; }
.cl-tools { gap: 20px; }
.cl-tools__row { display: flex; gap: 12px; align-items: center; }
.cl-search { position: relative; flex: 1 1 auto; display: block; }
.cl-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.cl-search .ob-input { width: 100%; padding-left: 48px; }
.cl-export { display: flex; flex-direction: column; gap: 8px; }
.cl-export[hidden] { display: none; }
.cl-export__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cl-small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--grey-text); }
.cl-count { margin: 0; font-size: 14px; color: var(--grey-text); }
.cl-count:empty { display: none; }
.cl-list { display: flex; flex-direction: column; gap: 8px; }
.cl-list:empty { display: none; }
.cl-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 4px 20px; align-items: center;
  width: 100%; padding: 16px 20px; border: 0; border-radius: var(--r-soft); background: var(--cream);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.cl-row:hover, .cl-row:focus-visible { background: var(--stone); }
.cl-row__name { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-row__contact, .cl-row__meta { font-size: 14px; color: var(--grey-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-empty[hidden] { display: none; }
.cl-empty { display: flex; flex-direction: column; gap: 12px; }

.cl-card__form { display: flex; flex-direction: column; gap: 20px; }
.cl-card__fields { display: flex; flex-direction: column; gap: 20px; }
.cl-card__fields:empty { display: none; }
.cl-card__notes { min-height: 120px; resize: vertical; }
.cl-card__more { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.cl-card__more[hidden] { display: none; }
.cl-card__sec { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--card-line); }
.cl-card__h { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.cl-card__strong { display: flex; flex-direction: column; gap: 12px; }
.cl-card__strong[hidden] { display: none; }
.cl-card__strong > .cbtn--danger { align-self: flex-start; }
.cl-merge { display: flex; gap: 12px; }
.cl-merge .ob-select { flex: 1 1 auto; min-width: 0; }
.cl-hist, .cl-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 12px 16px;
  border-radius: var(--r-soft); background: var(--cream); font-size: 14px; }
.cl-hist li.cl-small { display: block; background: none; padding: 0; }
.cl-hist__what { color: var(--grey-text); overflow: hidden; text-overflow: ellipsis; }
.cl-hist__st.is-off { color: var(--grey-text); text-decoration: line-through; }
.cl-log li { font-size: 12px; color: var(--grey-text); }

.bk-drawer__client { display: flex; flex-direction: column; gap: 4px; }
.bk-drawer__client[hidden] { display: none; }
.bk-drawer__client-notes { white-space: pre-wrap; }

.clf { display: flex; flex-direction: column; gap: 12px; }
.clf:empty { display: none; }
.clf-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 12px; align-items: center; }
.clf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .cl-tools__row { flex-direction: column; align-items: stretch; }
  .cl-export__btns .cbtn, .cl-tools__row .cbtn { width: 100%; }
  .cl-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .cl-row__meta, .cl-row__contact { white-space: normal; }
  .cl-hist li { grid-template-columns: 1fr auto; }
  .cl-hist__what { grid-column: 1 / -1; grid-row: 2; }
  .cl-merge { flex-direction: column; }
  .clf-row { grid-template-columns: minmax(0, 1fr) auto; }
  .clf-row .ob-input { grid-column: 1 / -1; }
}

/* ================= «Записи» по колонках (10.11, етап 2 бази клієнтів) =================
   Десктоп: таблиця «час × працівник» у білій картці, над колонкою — маленька картка працівника (аватарка його
   кольору з «Налаштувань записів», ім'я, записи й сума дня); запис — м'яка картка кольору працівника.
   Телефон: смуга карток працівників, як у «Налаштуваннях записів» (свайп, активна по центру), під нею день активного. */
/* 10.11 (owner: «колоники максимум 4 … на планшеті 2–3 … і гортаються у бік»): a column is --bk-col wide, so that at
   most --bk-k fit the board (4 desktop, 3 small desktop, 2 tablet); with more workers the board scrolls sideways */
.bk-board { container-type: inline-size; overflow-x: auto; overflow-y: hidden; }
/* 10.11 (owner, the screenshot: «прибери скрол системний знизу»): the columns scroll by the arrows, a swipe or the touchpad,
   without the browser's bar under the table */
.bk-board { scrollbar-width: none; }
.bk-board::-webkit-scrollbar { display: none; }
/* how many columns are in view follows the BOARD's own width (the left menu takes part of the window) */
.bk-cols, .bk-time { --bk-k: 4; }
@container (max-width: 960px) { .bk-cols, .bk-time { --bk-k: 3; } }
@container (max-width: 700px) { .bk-cols, .bk-time { --bk-k: 2; } }
.bk-cols, .bk-time { --bk-col: calc((100cqw - 88px) / min(var(--bk-w, var(--bk-n, 1)), var(--bk-k))); width: calc(88px + var(--bk-col) * var(--bk-n, 1)); }
/* the hour lines run the whole table even when the search leaves fewer columns than fit */
.bk-time { min-width: 100%; }
.bk-cols { display: grid; grid-template-columns: repeat(var(--bk-n, 1), var(--bk-col)); gap: 0; margin: 0 0 12px; padding-left: 80px; }
/* the column head = the worker card of «Налаштування записів» (same avatar, name, role, colour), full strength */
.bk-cols .bks-card { width: auto; margin-right: 8px; opacity: 1; box-shadow: none; background: var(--cream); }   /* card in a white card = cream */
.bk-cols .bks-card__pick { padding: 16px; gap: 12px; cursor: default; }
.bk-cols .bks-card__ava { width: 44px; height: 44px; font-size: 14px; }
/* the old account.css rule `.bk-cols span` stretched every span of the head; reset inside the card */
.bk-cols .bks-card span { flex: none; color: inherit; font-size: inherit; }
.bk-cols .bks-card .bks-card__text { flex: 1 1 auto; min-width: 0; }
.bk-cols .bks-card .bks-card__name { font-size: 16px; }
.bk-cols .bks-card .bks-card__role, .bk-cols .bks-card .bks-card__note { font-size: 14px; color: var(--mute); }
.bk-hour::after { background: var(--card-line); }
.bk-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--card-line); pointer-events: none; }
.bk-ev {
  border: 0; border-left: 0; border-radius: var(--r-soft); padding: 8px 12px; gap: 2px;
  background: var(--cream); box-shadow: inset 3px 0 0 var(--ev-line, var(--black));
}
.bk-ev:hover { background: var(--stone); }
.bk-ev__top { font-size: 14px; font-weight: 500; gap: 8px; }
.bk-ev__time { font-weight: 400; }
.bk-ev__sub { font-size: 12px; }
.bk-ev[data-c="yellow"] { background: #ffffd6; --ev-line: #e6e600; }
.bk-ev[data-c="mint"] { background: #e7f3eb; --ev-line: #7fbf95; }
.bk-ev[data-c="sky"] { background: #e7eef8; --ev-line: #7fa3d6; }
.bk-ev[data-c="rose"] { background: #f9ebeb; --ev-line: #d99a9a; }
.bk-ev[data-c="lilac"] { background: #eeebf7; --ev-line: #a596d1; }
.bk-ev[data-c]:hover { filter: brightness(.97); }
.bk-now::before { border-radius: 50%; }
.bk-staff[hidden] { display: none; }
@media (min-width: 601px) { .bk-staff { display: none; } }
@media (min-width: 601px) and (max-width: 900px) {
  .bk-board { padding: 24px 16px 24px 8px; background: var(--white); }
  .bk-time { display: block; }
  .bk-list { display: none; }
  .bk-cols { display: grid; }
}
@media (max-width: 600px) {
  /* the phone shows the strip + the day's list: no column heads (the grid rule above would bring them back) */
  .bk-cols { display: none; }
  .bk--staff .bk-who { display: none; }
  .bk-staff { margin-top: -8px; }
  .bk-staff .bks-card__ava svg { display: block; }
}
/* дата між стрілками = поле-випадашка (власниця 10.11: «календар там має ще бути хотяб випадашкой»): біле поле,
   тонка межа, стрілка вниз; клік відкриває той самий календар із крапками на днях, де є записи */
.bk-step__date { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--h-ctl); padding: 0 16px; border: 1px solid var(--ink-line); border-radius: var(--r-field);
  background: var(--white); font-size: 16px; cursor: pointer; }
.bk-step__date:hover { border-color: var(--black); }
.bk-step__date .bk-cal__chev { flex: none; transition: transform .2s; }
.bk-step__date[aria-expanded="true"] .bk-cal__chev { transform: rotate(180deg); }
.bk-cal__day i { width: 5px; height: 5px; background: var(--black); }
.bk-cal__day[aria-pressed="true"] i { background: var(--y); }
.bk-own { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; border-top: 1px solid var(--card-line); }
.bk-own__row { display: flex; flex-direction: column; gap: 10px; }
.bk-own__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* 11.11: the booking's bill (main.js billDraw) — lines with a hairline like the settings rows, the sums on a cream
   plate, payment methods as chips, one black main action */
.bk-bill { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; border-top: 1px solid var(--card-line); }
.bk-bill[hidden] { display: none; }
.bk-bill__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-bill__lines { display: flex; flex-direction: column; }
.bk-bill__line { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--card-line); font-size: 16px; }
.bk-bill__line:first-child { border-top: 1px solid var(--card-line); }
.bk-bill__name, .bk-bill__name-in { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bk-bill .bk-bill__price { flex: none; width: 112px; text-align: right; }
.bk-bill__sum, .bk-bill__del { flex: none; }
.bk-bill__sums { margin: 0; padding: 4px 20px; border-radius: var(--r-soft); background: var(--cream); }
.bk-bill__sums div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; }
.bk-bill__sums div + div { border-top: 1px solid var(--card-line); }
.bk-bill__sums dt { color: var(--grey-text); }
.bk-bill__sums dd { display: flex; align-items: center; gap: 12px; margin: 0; text-align: right; }
.bk-bill__sums .is-total, .bk-bill__sums .is-due { font-size: 16px; font-weight: 500; }
.bk-bill__sums .is-total dt, .bk-bill__sums .is-due dt { color: var(--black); }
.bk-bill__sums .is-void dd { color: var(--grey-text); text-decoration: line-through; }
.bk-bill__undo { padding: 0; border: 0; background: none; color: var(--grey-text); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.bk-bill__undo:hover { color: var(--black); }
.bk-bill__undo.is-confirm { color: #c4320a; }
.bk-bill__pay { display: flex; flex-direction: column; gap: 12px; }
.bk-bill__methods { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-bill__methods .ob-chip { height: 40px; padding: 0 16px; background: var(--white); }
.bk-bill__methods .ob-chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.bk-bill__amt-row { display: flex; gap: 12px; }
.bk-bill__amt { flex: 1 1 auto; min-width: 0; }
.bk-bill__amt-row .cbtn { flex: none; }
.bk-bill__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.bk-bill__hint { flex-basis: 100%; margin: 0; }
.bk-bill__go { align-self: flex-start; gap: 8px; }
.cl-paysum { margin-bottom: 12px; }
/* 11.11: «Бухгалтерія» (account-books.html, main.js [data-books]) */
.bo { display: flex; flex-direction: column; gap: 40px; }
.bo[hidden] { display: none; }
.bo-period { display: flex; flex-direction: column; gap: 16px; }
/* 11.11 (owner): the period dropdown and the date carousel in one row; stacked on a phone */
.bo-period__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bo-period__mode { flex: none; width: 220px; max-width: 100%; }
@media (max-width: 600px) {
  .bo-period__row { flex-direction: column; align-items: stretch; }
  .bo-period__mode { width: 100%; }
}
.bo-range { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bo-range__label { min-width: 0; font-size: 18px; font-weight: 500; }
.bo-range__label::first-letter { text-transform: uppercase; }
.bo-range__step[hidden], .bo-range__label[hidden], .bo-range__custom[hidden] { display: none; }
.bo-range__custom { display: flex; align-items: center; gap: 8px; }
.bo-range__custom .ob-input { width: 170px; }
.bo-range__csv { margin-left: auto; }
/* 11.11: «Каса» — every payment method its own column (the tiles' look), the total under them */
.bo-till .bo-till__nums { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.bo-till .bo-till__nums > div { padding-left: 16px; border-left: 1px solid var(--card-line); }
.bo-till .bo-till__nums > div:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.bo-till__total { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--card-line); font-size: 18px; font-weight: 700; }
/* 11.11: the accountant's file card — a month's name fits its field */
/* (owner 11.11: «тут в тебе нахлест вийшов»): the min width sits on the FIELD, not the select — a 220 select in a 180 field
   ran over «Формат» */
.bo-form.bo-export > [data-bo-x-wrap="month"] { flex-basis: 220px; min-width: 220px; }
.bo-form.bo-export > [data-bo-x-wrap="range"] { flex-basis: 170px; min-width: 170px; }
.bo-export .ob-select, .bo-export .ob-input { width: 100%; min-width: 0; }
.bo .acc-stats__nums dd { font-size: 32px; }
.bo-scroll { max-width: 100%; overflow-x: auto; }
.bo-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.bo-table th { padding: 0 12px 12px 0; color: var(--grey-text); font-weight: 400; text-align: left; white-space: nowrap; }
.bo-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--card-line); white-space: nowrap; }
.bo-table td:first-child { white-space: normal; font-size: 16px; }
.bo-table td.is-due { font-weight: 500; }
.bo-table .bo-pay { height: 36px; padding: 0 14px; font-size: 12px; }
.bo-sub { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.bo-table tr.is-total td { font-weight: 500; border-top: 1px solid var(--black); }
.bo-table tr.is-paid td { color: var(--grey-text); }
.bo-table td:last-child .bk-new { vertical-align: 1px; }
.bo-table input.bo-check { appearance: auto; flex: none; width: 22px; min-width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0;
  border-radius: 4px; accent-color: var(--black); cursor: pointer; }
/* the worker's drawer: its day table always as cards (the drawer is 480 wide): the tick at the left edge, the day on
   top, the numbers three in a row, the «Виплачено» tag under them */
.bo-worker .bk-drawer__view { gap: 20px; }
.bo-worker .bo-table { min-width: 0; }
.bo-worker .bo-table thead { display: none; }
.bo-worker .bo-table tr { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: 8px 16px; padding: 14px 0 14px 36px; border-top: 1px solid var(--card-line); }
.bo-worker .bo-table td { padding: 0; border: 0; white-space: normal; grid-column: auto; }
.bo-worker .bo-table td[data-label]::before { content: attr(data-label); display: block; color: var(--grey-text); font-size: 12px; }
/* grid-column auto: an absolutely placed grid child with a grid area would be positioned inside that area, not the row */
.bo-worker .bo-table td:first-child { position: absolute; left: 0; top: 14px; grid-column: auto; grid-row: auto; }
.bo-worker .bo-table td:nth-child(2) { grid-column: 1 / -1; font-weight: 500; font-size: 16px; }
.bo-worker .bo-table td:nth-child(2)::before, .bo-worker .bo-table td:last-child::before { display: none; }
.bo-worker .bo-table td:last-child { grid-column: 1 / -1; }
.bo-worker .bo-table td:last-child:empty { display: none; }
.bo-worker .bo-table td[colspan] { position: static; grid-column: 1 / -1; }
.bo-worker .bo-table tr:has(td[colspan]) { padding-left: 0; }
.bo-wpay { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-soft); background: var(--cream); }
.bo-wpay .bo-form--inline > .ob-field { flex: 1 1 140px; }
.bo-wpay > .cbtn { align-self: flex-start; }
.bo-wpay .bk-bill__undo { align-self: flex-start; }
.sal__more { display: inline-block; color: var(--black); text-decoration: underline; }
.sal__base { max-width: 360px; }
/* 11.11: services with their cost, the monthly costs */
.bo-table .bo-cost { width: 110px; min-width: 0; height: 40px; text-align: right; }
.bo-svc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* a monthly cost: name and sum on one line, a grey line of details, one quiet line a month, small actions */
.bo-list li.bo-fixed { flex-direction: column; align-items: stretch; gap: 8px; }
.bo-fixed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bo-fixed__name { font-weight: 500; overflow-wrap: anywhere; }
.bo-fixed__meta { margin: 0; }
.bo-fixed__month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.bo-fixed__mname { min-width: 150px; color: var(--grey-text); }
.bo-fixed__mname::first-letter { text-transform: uppercase; }
/* 11.11 (owner): the month row ends on the right with a «Сплачено» tick and the cost's two round tools */
.bo-fixed__paid { margin: 0 0 0 auto; height: 32px; padding: 0; border: 0; background: none; gap: 8px; font-size: 14px; cursor: pointer; }
.bo-fixed__paid:has(input:disabled) { cursor: default; color: var(--grey-text); }
.bo-fixed__tools { display: flex; align-items: center; gap: 8px; }
.bo-tool { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: var(--cream); color: var(--black); transition: background-color .2s; }
.bo-tool:hover { background: var(--stone); }
.bo-tool.is-confirm { width: auto; padding: 0 14px; border-radius: 50px; background: var(--black); color: var(--white); font-size: 14px; white-space: nowrap; }
.bo-tool:disabled { opacity: .5; }
/* 11.11 (owner: «на жовту плашку із заокругленими краями»): «Залишок N» in «Незакриті рахунки» */
.bo-due { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 50px;
  background: var(--accent); color: var(--black); font-size: 14px; line-height: 1; white-space: nowrap; }
/* 11.11: folded cards (the editor's spoiler look: the head is the whole line, the 12 px chevron on the right) */
details.bo-fold { display: block; }
.bo-fold__head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; list-style: none; cursor: pointer; }
.bo-fold__head::-webkit-details-marker { display: none; }
.bo-fold__head::after { content: ""; flex: none; width: 12px; height: 12px; margin-left: auto;
  background: url("../assets/chevron-down-dark.svg") center / contain no-repeat; transition: transform .2s; }
.bo-fold[open] > .bo-fold__head::after { transform: rotate(180deg); }
.bo-fold__sum { color: var(--grey-text); font-size: 14px; }
.bo-fold__body { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.bo-fold--inner { padding-top: 16px; border-top: 1px solid var(--card-line); }
.bo-fold--inner > .bo-fold__head { font-size: 16px; font-weight: 500; }
.bo-fold--inner > .bo-scroll { margin-top: 16px; }
.bo-fold[hidden], .bo-scroll[hidden] { display: none; }
.bo-form { display: flex; flex-direction: column; gap: 12px; }
.bo-form[hidden] { display: none; }
.bo-form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.bo-form--inline > .ob-field { flex: 0 1 180px; min-width: 140px; margin: 0; }
.bo-form--inline > .bo-form__note { flex: 1 1 240px; }
/* (owner 11.11: «змісти row з інпутами на всю доступну ширину, розтягнувши перший інпут Назва»): «Постійні витрати» —
   «Назва» takes whatever the row has left, so the row reaches the card's right edge */
.bo-form--inline[data-bo-fixed-form] > .ob-field:first-child { flex: 1 1 180px; }
.bo-form--inline > .bo-sub { flex-basis: 100%; }
.bo-form--payout { padding: 20px; border-radius: var(--r-soft); background: var(--cream); }
.bo-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--card-line); font-size: 16px; }
.bo-list li:first-child { border-top: 1px solid var(--card-line); }
.bo-list li.is-void .bo-list__sum, .bo-list li.is-void .bo-list__what { color: var(--grey-text); text-decoration: line-through; }
.bo-list__when { flex: none; min-width: 110px; color: var(--grey-text); }
.bo-list__what { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.bo-list__sum { flex: none; font-weight: 500; }
.bo-list .bo-open { height: 36px; padding: 0 14px; font-size: 12px; }
.bo-list li.bo-list__empty, .bo-list li.bo-list__cats { display: block; color: var(--grey-text); font-size: 14px; }
@media (max-width: 900px) {
  .bo { gap: 32px; }
  .bo-range { flex-wrap: wrap; }
  .bo-range__label { flex: 1 1 0; text-align: center; font-size: 16px; }
  .bo-range__csv { order: 5; flex-basis: 100%; margin-left: 0; }
  .bo .acc-stats__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo .acc-stats__nums dd { font-size: 20px; }
  .bo-range__custom { flex-wrap: wrap; }
  .bo-range__custom .ob-input { width: 150px; }
  .bo-form--inline > .ob-field { flex: 1 1 100%; }
}
/* the tables become cards when THEIR card is too narrow for the columns (a phone, but also a laptop with the side panel):
   never a sideways scroll bar (owner 10.11 about «Записи»: no system scroll bar under a table) */
.bo-scroll { container: bo / inline-size; overflow-x: visible; }
@container bo (max-width: 760px) {
  .bo-table { min-width: 0; }
  .bo-table thead { display: none; }
  .bo-table tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--card-line); }
  .bo-table td { padding: 0; border: 0; white-space: normal; }
  .bo-table td[data-label]::before { content: attr(data-label); display: block; color: var(--grey-text); font-size: 12px; }
  .bo-table td:first-child { grid-column: 1 / -1; font-weight: 500; }
  .bo-table td:first-child::before { display: none; }
  .bo-table td:last-child:not(:first-child) { grid-column: 1 / -1; }
  .bo-table td[colspan] { grid-column: 1 / -1; }
  .bo-table td:empty { display: none; }
}
.cl-hist__st .bk-new { vertical-align: 1px; }
/* the «$» on a booking card (board: round 28 like the smiley; list row: 44 on cream); yellow = a debt, black = paid */
.bk-paybtn { position: absolute; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .75); color: var(--black); cursor: pointer; transition: background-color .2s, color .2s; }
.bk-paybtn:hover { background: var(--white); }
.bk-paybtn--row { position: static; flex: none; align-self: center; width: 44px; height: 44px; margin-right: 8px; background: var(--cream); }
.bk-paybtn--row svg { width: 22px; height: 22px; }
.bk-paybtn.is-paid { background: var(--black); color: var(--white); }
@media (max-width: 600px) {
  .bk-bill__amt-row { flex-direction: column; }
  .bk-bill .bk-bill__price { width: 96px; }
}
/* the hour labels stay at the left edge while the columns scroll sideways */
.bk-board .bk-hour span { position: sticky; left: 0; z-index: 2; background: var(--white); }

/* 10.11: the client's smiley on every booking card (drawn SVG) + one dropdown with the five; the colour of the client */
.bk-mark { position: absolute; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .75); color: var(--mute); transition: background-color .2s, color .2s; }
.bk-mark:hover { background: var(--white); color: var(--black); }
.bk-mark.is-set { background: transparent; }
.bk-mark.is-set:hover { background: rgba(255, 255, 255, .75); }
.bk-mark--row { position: static; flex: none; width: 44px; height: 44px; background: var(--cream); align-self: center; margin-right: 8px; }
.bk-mark--row svg { width: 26px; height: 26px; }
.bk-mark-pop { position: absolute; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 8px;
  border: 1px solid var(--card-line); border-radius: var(--r-soft); background: var(--white); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.bk-mark-pop[hidden] { display: none; }
.bk-mark-pop { max-width: calc(100vw - 16px); flex-wrap: wrap; justify-content: center; }   /* a narrow phone: «Прибрати» wraps */
.bk-mark-pop button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.bk-mark-pop button svg { width: 28px; height: 28px; }
.bk-mark-pop button:hover, .bk-mark-pop button[aria-pressed="true"] { background: var(--cream); }
.bk-mark-pop button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--black); }
.bk-mark-pop .bk-mark-pop__off { width: auto; height: 40px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; color: var(--mute); }
.bk-item[data-c="yellow"] { box-shadow: inset 4px 0 0 #e6e600; }
.bk-item[data-c="mint"] { box-shadow: inset 4px 0 0 #7fbf95; }
.bk-item[data-c="sky"] { box-shadow: inset 4px 0 0 #7fa3d6; }
.bk-item[data-c="rose"] { box-shadow: inset 4px 0 0 #d99a9a; }
.bk-item[data-c="lilac"] { box-shadow: inset 4px 0 0 #a596d1; }
.cl-row__mark { display: inline-grid; vertical-align: -5px; margin-right: 8px; }
.cl-row[data-c="yellow"] { box-shadow: inset 4px 0 0 #e6e600; }
.cl-row[data-c="mint"] { box-shadow: inset 4px 0 0 #7fbf95; }
.cl-row[data-c="sky"] { box-shadow: inset 4px 0 0 #7fa3d6; }
.cl-row[data-c="rose"] { box-shadow: inset 4px 0 0 #d99a9a; }
.cl-row[data-c="lilac"] { box-shadow: inset 4px 0 0 #a596d1; }
/* 10.11 (власниця зі скрина): прибрано ряд кнопок-працівників, «День / Список», стрілки біля дати й підсумок
   «N записів · сума» праворуч; лишились календар-випадашка й «Додати запис». Працівників видно в колонках
   (десктоп, планшет) і на смузі карток (телефон). */
.bk-who, .bk-mode, .bk-step__btn, .bk-sum { display: none !important; }
.bk-bar { justify-content: space-between; }
/* 10.11: the phone shows the time scale too — one column, the worker of the card in the middle of the strip
   (the strip is the column's head, so the board's own heads stay hidden) */
@media (max-width: 600px) {
  .bk-board { padding: 16px 12px 16px 4px; background: var(--white); }
  .bk-time { display: block; }
  .bk-list { display: none; }
}
/* 10.11 (власниця: «на телефоні при натисканні на запис дивний попап, давай зробимо шторкою знизу»): шухляда запису
   й картки клієнта на телефоні = шторка знизу. Правило десктопу «радіус лише зліва» стояло нижче й перебивало
   телефонне; тепер обидва верхні кути 30, «язичок» угорі, висота за вмістом (до 88 % екрана), свайп униз закриває. */
@media (max-width: 900px) {
  .bk-drawer { border-radius: var(--r-card) var(--r-card) 0 0; max-height: 88dvh; padding-top: 12px; border-bottom: 0; }
  .bk-drawer[open] { animation: bk-up .32s cubic-bezier(.2, .7, .2, 1); }
  .bk-drawer::before { content: ""; flex: none; align-self: center; width: 44px; height: 5px; margin-bottom: -16px;
    border-radius: 3px; background: var(--stone); }
  .bk-drawer.is-dragging { transition: none; }
  .bk-drawer.is-closing { transition: transform .22s ease-in; transform: translateY(100%); }
}
/* 10.11 (власниця зі скрина: «на мобайлі картка дивна, зроби нормально»): на телефоні картка запису в стовпчик —
   час дрібно, ім'я окремим рядком (до двох рядків), послуга · тривалість; праворуч місце для смайлика, щоб він нічого
   не перекривав; телефон клієнта не в картці, а в шторці з «Подзвонити» */
@media (max-width: 600px) {
  .bk-ev { justify-content: flex-start; padding: 8px 42px 8px 12px; gap: 2px; }
  .bk-ev__top { flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; }
  .bk-ev__time { font-size: 12px; color: var(--grey-text); }
  .bk-ev__top > span:nth-child(2) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 15px; line-height: 1.25; }
  .bk-ev__sub { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .bk-ev.is-short { flex-direction: row; align-items: center; }
  .bk-ev.is-short .bk-ev__top { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
  .bk-ev.is-short .bk-ev__top > span:nth-child(2) { -webkit-line-clamp: 1; }
}

/* 10.11: the client's dated notes (NOTES_LOG): «+ Нова нотатка», then each note = date + text, a pencil to edit */
.nl { display: flex; flex-direction: column; gap: 10px; }
.nl-add { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--stone); font-size: 14px; font-weight: 500; }
.nl-add:hover { background: var(--black); color: var(--white); }
.nl-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-soft); background: var(--cream); }
.nl-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nl-item__date { font-size: 12px; color: var(--grey-text); }
.nl-item__pen { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  transition: background-color .2s; }
.nl-item__pen:hover { background: var(--stone); }
.nl-item__text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.nl-edit { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-soft); background: var(--cream); }
.nl-edit__date { max-width: 200px; }
.nl-edit__text { min-height: 90px; resize: vertical; }
.nl-edit__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nl-edit__btns .cbtn { min-height: 40px; padding: 8px 18px; }
.nl-more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 0; font-size: 14px; font-weight: 500; }
.nl-more svg { transition: transform .2s; }
.nl-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.bks-card[hidden] { display: none; }

/* 10.11: suggestions under «Телефон» / «Ім'я клієнта» in a manual booking (from 3 characters) */
.bk-sug-host { position: relative; }
.bk-sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; padding: 6px; display: flex; flex-direction: column;
  border: 1px solid var(--card-line); border-radius: var(--r-soft); background: var(--white); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.bk-sug[hidden] { display: none; }
.bk-sug__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; text-align: left; }
.bk-sug__item:hover, .bk-sug__item:focus-visible { background: var(--cream); }
.bk-sug__name { font-size: 15px; font-weight: 500; }
.bk-sug__phone { font-size: 13px; color: var(--grey-text); }

/* 10.11 (second word): the search card = a field in the site's style + two equal tabs «Працівники» / «Клієнти» */
.bk-find { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 16px; opacity: 1; }
/* the strip's cards take the search card's height: a worker's avatar and name stay in the middle of it */
.bks-staff:has(.bk-find) .bks-card__pick { height: 100%; }
.bk-find__box { position: relative; display: block; width: 100%; }
.bk-find__box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mute); }
.bk-find .bk-find__input { width: 100%; height: 44px; padding: 0 44px 0 46px; border: 1px solid var(--ink-line); border-radius: var(--r-field);
  background: var(--white); font: inherit; font-size: 16px; }
.bk-find .bk-find__input:focus { outline: none; border-color: var(--black); }
/* the browser's own (blue) clear cross is off; ours is the site's black cross, 1.5 px */
.bk-find__input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; display: none; }
.bk-find .bk-find__box .bk-find__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; color: var(--black); }
.bk-find .bk-find__box .bk-find__clear svg { position: static; transform: none; color: var(--black); pointer-events: none; }
.bk-find .bk-find__box .bk-find__clear:hover { background: var(--cream); }
.bk-find__clear[hidden] { display: none !important; }
.bk-find__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--cream); }
.bk-find__tabs button { min-width: 0; height: 36px; padding: 0 8px; border-radius: var(--r-pill); text-align: center; font-size: 14px; font-weight: 500;
  color: var(--mute-ink); }
.bk-find__tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
.bks-card__name mark { background: var(--y); color: inherit; border-radius: 3px; padding: 0 1px; }
/* the clients found: their colour cards (the booking cards' colours) in place of the day */
.bk--find .bk-board, .bk--find .bk-empty, .bk--find .bk-off { display: none !important; }
.bk-fc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.bk-fc-list[hidden] { display: none; }
.bk-fc-none { margin: 8px 0; color: var(--mute); font-size: 14px; }
.bk-fc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: var(--r-soft);
  background: var(--white); box-shadow: inset 3px 0 0 var(--ev-line, var(--black)); }   /* on the cream page: white */
.bk-fc[data-c="yellow"] { background: #ffffd6; --ev-line: #e6e600; }
.bk-fc[data-c="mint"] { background: #e7f3eb; --ev-line: #7fbf95; }
.bk-fc[data-c="sky"] { background: #e7eef8; --ev-line: #7fa3d6; }
.bk-fc[data-c="rose"] { background: #f9ebeb; --ev-line: #d99a9a; }
.bk-fc[data-c="lilac"] { background: #eeebf7; --ev-line: #a596d1; }
.bk-fc__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.bk-fc__name { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.bk-fc__mark { flex: none; display: grid; place-items: center; }
.bk-fc__sub { margin: 0; font-size: 13px; color: var(--mute-ink); overflow-wrap: anywhere; }
.bk-fc__btn { margin-top: 6px; min-height: 36px; padding: 6px 16px; border-radius: var(--r-pill); background: var(--cream); font-size: 13px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .02em; transition: background-color .2s, color .2s; }
.bk-fc__btn:hover, .bk-fc__btn[aria-expanded="true"] { background: var(--black); color: var(--white); }
.bk-fc__hist { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 6px; }
.bk-fc__hist[hidden] { display: none; }
.bk-fc__row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .7); text-align: left; }
button.bk-fc__row:hover { background: var(--white); }
.bk-fc[data-c] .bk-fc__btn:not([aria-expanded="true"]) { background: var(--white); }
/* (owner: «кнопка при наведенні: текст стає білим, якщо показати, потім сховати») the white button of a coloured card
   kept its white background on hover (the rule above is stronger), so the hover's white text vanished: hover and the open
   state now win on every card */
.bk-fc .bk-fc__btn.bk-fc__btn:hover, .bk-fc .bk-fc__btn.bk-fc__btn[aria-expanded="true"] { background: var(--black); color: var(--white); }
/* (owner: «картка пацієнта не має розтягуватися на ширину, як і лікар») the found clients / workers keep one card width,
   side by side on a desktop, one per line on a phone */
.bk-fc-list { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.bk-fc, .bk-fw.bks-card { width: min(100%, 360px); }
.bk-fc:not([data-c]) .bk-fc__row { background: var(--cream); }
.bk-fc:not([data-c]) button.bk-fc__row:hover { background: var(--stone); }
.bk-fc__when { font-size: 13px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bk-fc__what { font-size: 13px; color: var(--mute-ink); }
/* 10.11 (third word): the workers found = the strip's cards in a list under it */
.bk-fw.bks-card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; opacity: 1; text-align: left; border-radius: var(--r-soft); }
.bk-fw .bks-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-fw .bks-card__name { font-size: 16px; font-weight: 500; }
.bk-fw .bks-card__role { font-size: 13px; color: var(--mute-ink); }
.bk-fw:hover { box-shadow: inset 0 0 0 2px var(--y); }

/* 10.11 (owner): the desktop / tablet search = a normal field in the bar next to the date, the tabs inside it on the right */
.bk-dfind { position: relative; flex: 1 1 0; min-width: 260px; max-width: 640px;   /* the free space only: text in it never pushes «Додати запис» down */
  display: flex; align-items: center; gap: 4px; height: var(--h-ctl);
  padding: 0 5px 0 48px; border: 1px solid var(--ink-line); border-radius: var(--r-field); background: var(--white); }
.bk-dfind:focus-within { border-color: var(--black); }
.bk-dfind > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mute); }
.bk-dfind__input { flex: 1 1 0; width: 0; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.bk-dfind__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.bk-dfind__input::placeholder { color: var(--mute); opacity: 1; }
.bk-dfind .bk-find__clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--black); }
.bk-dfind .bk-find__clear:hover { background: var(--cream); }
.bk-dfind__tabs { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--cream); }
.bk-dfind__tabs button { height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--mute-ink); white-space: nowrap; }
.bk-dfind__tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
@media (max-width: 600px) { .bk-dfind { display: none; } }
@media (min-width: 601px) and (max-width: 900px) { .bk-dfind { max-width: none; } }
/* the board's arrows (the same as «Працівники для запису»), set at the middle of the column heads by main.js */
.bk-board-wrap { position: relative; }
.bk-board__arr { z-index: 6; }
.bk-board__arr.bks-staff__arr--prev { left: 104px; }
.bk-board__arr.bks-staff__arr--next { right: 8px; }
/* 10.11 (owner: «години в таблиці мають бути на окремому шарі зі слабкою тінню»): the hours column is its own white
   layer, stuck to the left while the columns scroll, with a soft shadow on its right edge */
/* it covers the board's own left padding (--bk-pl) and reaches up over the column heads (--bk-up), both measured by main.js,
   so nothing that scrolls sideways shows to the left of it */
.bk-time .bk-gutter { position: sticky; left: calc(-1 * var(--bk-pl, 8px)); z-index: 4;   /* over the smiley buttons (3) */
  width: calc(72px + var(--bk-pl, 8px));
  height: calc(100% + var(--bk-up, 0px)); margin-left: calc(-1 * var(--bk-pl, 8px)); transform: translateY(calc(-1 * var(--bk-up, 0px)));
  background: var(--white);
  box-shadow: 8px 0 16px -10px rgba(0, 0, 0, .18); pointer-events: none; }
.bk-board .bk-hour span { z-index: 5; background: transparent; }
.bk-cols .bks-card.is-hit { box-shadow: inset 0 0 0 4px var(--y); transition: box-shadow .2s; }

/* 10.11: «Підтвердіть кодом» before a worker / a client's card is deleted (CODE_ASK in main.js) */
/* self-contained: the pages that ask it («Клієнти», «Налаштування записів») do not load site.css, where .ph lives */
dialog.code-ask { width: 520px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 0; background: var(--white);
  color: var(--black); overflow: auto; border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
dialog.code-ask::backdrop { background: rgba(0, 0, 0, .45); }
.code-ask .ph__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 32px 32px 0; }
.code-ask .ph__title { font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.code-ask .ph__sub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--grey-text); }
.code-ask .ph__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; color: var(--black); }
.code-ask .ph__foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding: 20px 32px 24px; border-top: 1px solid var(--card-line); }
.code-ask .ph__foot .cbtn { min-width: 160px; }
.code-ask .ph__foot .cbtn:disabled { opacity: .35; cursor: default; }
.code-ask__body { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding: 0 32px; }
@media (max-width: 600px) {
  .code-ask .ph__head { padding: 24px 20px 0; }
  .code-ask__body { padding: 0 20px; }
  .code-ask .ph__foot { flex-direction: column; padding: 16px 20px 20px; }
  .code-ask .ph__foot .cbtn { width: 100%; }
  .code-ask .ph__foot .cbtn--black { order: -1; }
}
.code-ask__in { max-width: 220px; font-size: 22px; letter-spacing: .3em; text-align: center; }
.code-ask__err:empty { display: none; }

/* 10.11 (owner): «Онлайн-запис на сайті» and «Крок запису» side by side on a desktop, one under the other below 900 */
.bks-pair { display: grid; gap: 20px; }
@media (min-width: 901px) { .bks-pair { grid-template-columns: 1fr 1fr; align-items: stretch; } }
/* in a half-width card the switch stays on the title's line (the title wraps instead) */
.bks-pair .acc-sec__row { flex-wrap: nowrap; align-items: flex-start; gap: 16px; }
.bks-pair .acc-sec__title { flex: 1 1 auto; min-width: 0; }
.bks-pair .ob-switch { flex: none; margin-top: 4px; }
/* 10.11 (owner): the booking switch sits on a cream pill under the note, labelled «Увімкнено / Вимкнено» */
/* the same cream pill as the «Проміжок / Свій час» tabs (.bks-tabs): 50 tall, padding 4, r-pill */
.bks-onplate { display: flex; width: fit-content; align-items: center; gap: 16px; box-sizing: border-box;
  height: 50px; margin-top: 20px; padding: 4px 10px 4px 24px; border-radius: var(--r-pill); background: var(--cream); }
.bks-onplate__label { font-size: 14px; font-weight: 500; color: var(--mute-ink); }
.bks-pair .bks-onplate .ob-switch { margin-top: 0; }
.bks-m__on.bks-onplate { margin-top: 0; justify-content: flex-start; }
/* (owner: «перенеси це обратно вправо вверх») the site switch's pill stands on the title's line, at the right edge */
.bks-onplate--head { flex: none; margin: -8px 0 0 auto; }   /* centred on the title's first line (35 vs 50) */   /* the worker card's «Приймає записи онлайн» */
/* (owner 10.11: «в мобайлі під заголовок постав»; then «в планшетній версії перенеси сюди» = back on the title's line at
   the right on a tablet; then «в десктопі не треба було вправо переносити, тільки в планшеті»): the switch pill stands
   under the title, by its content, on a DESKTOP (≥ 901) and a PHONE (≤ 600); only a tablet (601–900) keeps it at the right */
@media (max-width: 600px), (min-width: 901px) {
  .acc-sec__row:has(> .bks-onplate--head) { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 24px; }
  .bks-onplate--head { margin: 0; }
}
@media (max-width: 600px) { .acc-sec__row:has(> .bks-onplate--head) { gap: 20px; } }   /* = title → note on a phone */
.bks-gap .ob-input { max-width: 160px; }
.bks-gap .ob-error:empty { display: none; }
/* 10.11: «Крок» and «Перерва після запису» — two dropdowns side by side (one under the other on a narrow phone) */
.bks-time { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bks-time .ob-select { width: 100%; }
@media (max-width: 420px) { .bks-time { grid-template-columns: 1fr; } }
/* 10.11 (owner): «Проміжок / Свій час» = a tab switch (cream track, the active one black), not two buttons */
.bks-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 400px; padding: 4px; border-radius: var(--r-pill); background: var(--cream); }
.bks-tabs__btn { height: 42px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--mute-ink); text-align: center; }
.bks-tabs__btn[aria-pressed="true"] { background: var(--black); color: var(--white); }
/* the worker's card split in two on a desktop: online + days + hours + breaks | services + days off */
.bks-m__cols { display: flex; flex-direction: column; gap: 24px; }
.bks-m__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* 10.11 (owner): the worker's services on their own plate at the bottom of the card — the plan cards' surface (.pick in a
   card: cream, 1 px --card-line, --r-card, padding 32; phone --r-soft / 24) */
.bks-m__svc { margin: 0 0 8px; padding: 32px; background: var(--cream); border: 1px solid var(--card-line); border-radius: var(--r-soft); }   /* owner: radius 16 for such inner plates */
@media (max-width: 900px) { .bks-m__svc { margin: 0; padding: 24px; border-radius: var(--r-soft); } }
/* the plate = «Приймає записи онлайн» + «Послуги» side by side (the pill white on the cream plate), stacked on a phone */
.bks-m__svc { display: flex; flex-direction: column; gap: 24px; }
/* (owner: «тут білу плашку прибери»): on the cream plate the switch row has no pill of its own — text + switch on the plate */
.bks-m__svc > .bks-onplate { height: auto; min-height: 0; background: none; padding: 0; border-radius: 0; }   /* no pill here: its 50 height would push the text down */
/* the plate's title «Розклад» (owner 10.11); one line */
.bks-m__title { margin: 0; min-width: 0; }   /* the size and weight of every title on the page: .acc-sec__title (owner 10.11) */
/* (owner 10.11: «заголовок і права частина картки мають вирівнюватись по верхньому краю … інтервал заголовка та блоку
   з тумблером як і в інших блоках від заголовку до найближчого контенту»): title → switch = the sections' 24 (20 on a
   phone); on a desktop «Послуги» stands in the right half from the plate's top, level with the title */
/* (owner 10.11: «під Розклад має бути такий самий інтервал до айтема з тумблером як і під Працівники до підпису»): 12 */
@media (max-width: 900px) { .bks-m__svc > .bks-m__title { margin-bottom: -12px; } }
@media (min-width: 901px) {
  /* (owner: «рівноцінно займати ширину, дроп не більше середини»): two equal halves, the pill by its content in the left
     one, the dropdown fills the right one and never goes past it; the plate is the card's first item (main.js) */
  .bks-m__svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px; }
  /* (owner 10.11: «не треба такий великий інтервал, має бути звичайний стандартний»): 24 under the title (the card's
     standard gap), the switch right under it at the top of its half, «Послуги» beside it */
  .bks-m__svc { row-gap: 12px; align-items: start; grid-template-rows: auto 1fr; }   /* the taller «Послуги» never widens the title row */
  .bks-m__svc > .bks-onplate { justify-self: start; align-self: start; }
  .bks-m__svc > .bks-m__title { grid-column: 1; grid-row: 1; }
  .bks-m__svc > .bks-onplate { grid-column: 1; grid-row: 2; }
  .bks-m__svc > .ob-field { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
}
/* (owner 10.11: «ці дві сущності постав у один ряд»): «Дні для запису» | «Години для запису» = two equal halves ≥ 901 */
.bks-m__dh { display: flex; flex-direction: column; gap: 24px; }
/* «Проміжок / Свій час» dropdown + «з … до …» in one row, the same height as «Дні для запису» beside it */
.bks-hrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bks-hrow > .bks-hmode { flex: 0 0 auto; width: 170px; max-width: none; }
.bks-hrow > .ob-range { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.bks-hrow > .ob-range .ob-select { flex: 1 1 0; width: auto; min-width: 0; }
@media (max-width: 500px) {
  .bks-hrow { flex-wrap: wrap; }
  .bks-hrow > .bks-hmode { width: 100%; }
}
@media (min-width: 901px) {
  .bks-m__dh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}
/* (owner 10.11, later: «цей пункт постав вниз, не справа, тут не буде ділитись на дві колонки»): the worker card is ONE
   column on every width — «Вихідні й відпустки» (.bks-m__col--r) stands under the hours and breaks, no vertical line */
@media (max-width: 900px) { .bks-tabs { max-width: none; } }

/* 10.11 (owner: «розбий ці два пункти на окремі білі картки»): «Вихідні для всіх» and «Перерва для всіх» are two white
   cards in a .bks-pair (side by side ≥ 901, one under the other below); .bks-split only keeps their inner rhythm */
.bks-split__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bks-split__col .ob-error:empty { display: none; }
.bks-split__col .bks-br__add { align-self: flex-start; }
/* (owner 10.11: «в десктопі якщо картки різні, то кнопка додати в тій де контента менше має прибиватись до низу»): the two
   cards stand equal in a row, so each «Додати …» sits at its card's bottom and both buttons line up */
@media (min-width: 901px) {
  .bks-split__col > .bks-br__add { margin-top: auto; }
  .bks-split__col > [data-bks-off-all] { flex: 1 1 auto; display: flex; flex-direction: column; }
  .bks-split__col > [data-bks-off-all] > .bks-off { flex: 1 1 auto; }
  .bks-split__col .bks-off__add { margin-top: auto; }
}
/* (owner: «чого такі різні висоти, порівняй») the days-off half had an empty list with a 16 px gap above its text, 16 px
   between its parts and a 21 px line: now the same rhythm as the break half — 24 px, the note's line */
.bks-split .bks-off { gap: 24px; }
.bks-split .off-list:empty, .bks-split .bks-br__list:empty { display: none; }
.bks-split .off-empty { margin: 0; line-height: 1.65; }

/* 10.11 (owner): a saved break / day off reads as text with a pencil and a bin; editing shows the fields and a tick */
.bks-br__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bks-br__row.is-edit { flex-direction: column; align-items: stretch; gap: 6px; }
.bks-br__row.is-edit .ob-range { flex-wrap: nowrap; }
.bks-br__text { min-width: 110px; font-size: 16px; font-weight: 500; }
.bks-br__err { font-size: 13px; color: #c4320a; }
.bks-br__err:empty { display: none; }
.bks-br__ok { color: var(--black); }
.bks-br__list { display: flex; flex-direction: column; gap: 12px; }
.off-item .ob-icon { flex: none; }
/* 10.11 (owner, RULE for every such list in the cabinet): each saved row (a day off, a break) has a hairline UNDER it,
   and its tools (pencil, bin, tick) are pinned to the RIGHT edge; the text takes the rest of the line */
.bks-br__list { gap: 0; }
.bks-br__row, .bks-off .off-item, .bks-off .off-item:first-child { padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--card-line); }
.bks-br__text, .off-item__text { flex: 1 1 auto; min-width: 0; }
.bks-br__row.is-edit .ob-range > .ob-icon:first-of-type { margin-left: auto; }
/* (owner: «нехай і ті іконки теж лежать на плашках біжових, як у працівників зверху») the row tools wear the worker
   card's pencil look (.bks-card__pen): a 32 cream circle, stone on hover */
.bks-br__row .ob-icon, .bks-off .off-item .ob-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0;
  border-radius: 50%; background: var(--cream); color: var(--black); transition: background-color .2s; }
.bks-br__row .ob-icon:hover, .bks-off .off-item .ob-icon:hover { background: var(--stone); }
/* 10.11 «Поля форми» = ONE list (owner: «ці картки треба об'єднати»): the owner's own fields are rows of it (.bks-fq), the
   same hairline and the same 32 cream tools on the right; «Додати поле» (.bks-f--add) = the last row, a «+» in an outlined
   circle and grey text, as «Додати працівника» at the end of the worker cards */
.bks-fields .bks-f { border-color: var(--card-line); }
.bks-fq { gap: 8px; }
.bks-fq .bks-f__name { display: flex; flex-direction: column; gap: 2px; }
.bks-fq__meta { font-size: 14px; line-height: 1.4; color: var(--mute-ink); }
.bks-fq .ob-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0;
  border-radius: 50%; background: var(--cream); color: var(--black); transition: background-color .2s; }
.bks-fq .ob-icon:hover { background: var(--stone); }
.bks-fq .ob-icon svg { width: 18px; height: 18px; }
.bks-fq.is-edit { flex-direction: column; align-items: stretch; gap: 12px; }
.bks-fq__line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bks-fq__line .ob-select { width: 220px; }
.bks-fq__line .ed-req { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.bks-fq__line .ed-check { width: 20px; height: 20px; margin: 0; accent-color: var(--black); }
.bks-fq__line > .ob-icon:first-of-type { margin-left: auto; }
.bks-fq__line > .ob-icon + .ob-icon { margin-left: -12px; }   /* tick and bin 8 apart, as the saved row's tools */
@media (max-width: 600px) { .bks-fq__line .ob-select { width: 100%; } }
.bks-f--add { width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--card-line); background: none;
  font: inherit; text-align: left; color: var(--mute); cursor: pointer; }
.bks-f--add[hidden] { display: none; }
.bks-f__plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 20px; line-height: 1; color: var(--black); }
.bks-f--add:hover .bks-f__plus { background: var(--cream); }
.bks-fields__status { margin: 0; font-size: 14px; color: var(--mute-ink); }
.bks-fields__status:empty { display: none; }
.bks-br__row .ob-icon svg, .bks-off .off-item .ob-icon svg { width: 18px; height: 18px; }
.bks-br__row:not(.is-edit), .bks-off .off-item:not(.is-edit) { gap: 8px; }
/* (owner 10.11: «відрегулюй інтервал між лейблом та контентом а також між двома сущностями … між сущностями має бути
   більший, внутрішній менший»): the worker card keeps the field's own 12 from a label to its content (as «Дні для запису»), 16
   between the parts of one entity (list → «Додати …» → hint) and 40 between entities (plate, days / hours, breaks,
   days off) = the card padding; the first saved row loses its top padding so its text sits 12 under the label too */
.bks-m .bks-m__cols, .bks-m .bks-m__col { gap: 40px; }
.bks-m .bks-m__svc { margin-bottom: 16px; }
.bks-m .bks-br, .bks-m .bks-off { gap: 16px; }
.bks-m :is(.bks-br, .bks-off) > .ob-label + * { margin-top: -4px; }
.bks-m :is(.bks-br__list, .bks-off .off-list) > :first-child { padding-top: 0; }
@media (max-width: 900px) { .bks-m .bks-m__dh { gap: 40px; } }
.off-item.is-edit { flex-direction: column; align-items: stretch; gap: 6px; }
.off-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto auto; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .off-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .off-edit > .ob-input[type="text"] { grid-column: 1 / -1; }
}

/* 10.11 «Зарплата» (owner): the worker's pay in their card («Налаштування записів») and in the popup on «Записи» — a cream
   plate like «Розклад» (radius 16), the percent with a pencil on the right, three white tiles today / week / month */
.sal { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--cream); border: 1px solid var(--card-line);
  border-radius: var(--r-soft); }
@media (max-width: 900px) { .sal { padding: 24px; } }
.sal__title { margin: 0; }
.sal__pct, .sal__edit { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.sal__pct-text { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.4; }
.sal__btn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: var(--white); color: var(--black); transition: background-color .2s; }
.sal__btn:hover { background: var(--stone); }
.sal__btn svg { width: 18px; height: 18px; }
.sal__edit .ob-input { width: 120px; }
.sal__unit { font-size: 16px; }
.sal__edit .sal__btn { margin-left: auto; }
.sal__err { margin: 0; }
.sal__err:empty { display: none; }
.sal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 600px) { .sal__grid { grid-template-columns: minmax(0, 1fr); } }
.sal__grid--one { grid-template-columns: minmax(0, 1fr); margin-top: 0; }   /* 11.11: «Записи» shows today only */
.sal__tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 20px; background: var(--white);
  border: 1px solid var(--card-line); border-radius: var(--r-soft); }
.sal__label, .sal__count { font-size: 14px; line-height: 1.4; color: var(--mute-ink); }
.sal__sum { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.sal__note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--mute-ink); }
/* 11.11 the kind of pay (owner: «Відсоток», «Ставка за місяць», «Ставка за зміну», «Ставка + відсоток»): one field per row,
   only those the kind needs; Save / Cancel at the bottom */
.sal__form { display: flex; flex-direction: column; gap: 16px; }
.sal__field { margin: 0; }
.sal__field[hidden] { display: none; }
.sal__kind { max-width: 360px; }
.sal__edit { flex-wrap: wrap; }
.sal__edit .ob-select { width: auto; flex: 1 1 200px; max-width: 360px; }
.sal__edit .ob-select[hidden] { display: none; }
.sal__foot { display: flex; flex-wrap: wrap; gap: 12px; }
.off-form__unpaid { margin: 4px 0 0; }
.off-form__unpaid[hidden] { display: none; }
.off-item__unpaid { align-self: flex-start; }
/* the shift of a day in the worker's drawer: its sum or a tag, the switch «За свій рахунок» under it */
.bo-shift { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bo-shift__btn { font-size: 13px; }
.bo-shift .bk-new { white-space: nowrap; }
/* 11.11 «the same client?» (owner): a yellow plate in the new-booking form under the e-mail and in the booking drawer;
   on «Записи» a plate over the board lists the bookings whose time has come */
.bk-dup { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--accent); border-radius: var(--r-soft); }
.bk-dup[hidden] { display: none; }
.bk-dup__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--black); }
.bk-dup__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-dup__btns .cbtn { white-space: normal; }
.bk-dup__link { font-size: 14px; color: var(--black); text-decoration: underline; align-self: flex-start; }
.bk-dup__status:empty { display: none; }
.bk-dup--card { margin: 0 0 16px; }
.bk-dupnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.bk-dupnote[hidden] { display: none; }
.bk-dupnote p { flex: 1 1 100%; margin: 0; }
.bk-dupnote__item { padding: 6px 14px; border: 1px solid var(--black); border-radius: 50px; background: transparent; color: var(--black);
  font: inherit; font-size: 14px; cursor: pointer; }
.bk-dupnote__item:hover { background: var(--black); color: var(--accent); }
.bks-m > .sal { margin-bottom: 16px; }
/* 11.11 (owner: «ці два блоки зробимо в дві колонки … дропдаун стає під низ розкладу та тумблеру»): «Розклад» | «Зарплата»
   as two equal columns ≥ 901, both plates the same height; inside «Розклад» the title, the switch and «Послуги» stack.
   Without «Зарплата» (a new worker, a draft) the plate keeps its full-width two-halves layout. */
.bks-m__top { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.bks-m__top > .bks-m__svc, .bks-m .bks-m__top > .bks-m__svc, .bks-m__top > .sal { margin: 0; }
@media (min-width: 901px) {
  .bks-m__top:has(> .sal) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .bks-m__top:has(> .sal) > .bks-m__svc { display: flex; flex-direction: column; gap: 24px; }
  .bks-m__top:has(> .sal) > .bks-m__svc > .bks-m__title { margin-bottom: -12px; }
  .bks-m__top:has(> .sal) > .bks-m__svc > .bks-onplate { align-self: flex-start; }
  .bks-m__top:has(> .sal) > .bks-m__svc > .ob-field { align-self: stretch; width: 100%; max-width: none; }
}
/* the popup on «Записи» (WORKER_POP): self-contained like dialog.code-ask (these pages do not load site.css) */
dialog.sal-pop { width: 720px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 0 0 32px;
  background: var(--white); color: var(--black); overflow: auto; border: 1px solid var(--card-line); border-radius: var(--r-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
dialog.sal-pop::backdrop { background: rgba(0, 0, 0, .45); }
.sal-pop .ph__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 32px 32px 0; }
.sal-pop .ph__title { font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.sal-pop .ph__sub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--grey-text); }
.sal-pop .ph__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; color: var(--black); }
.sal-pop .sal { margin: 24px 32px 0; }
@media (max-width: 600px) {
  dialog.sal-pop { padding-bottom: 20px; }
  .sal-pop .ph__head { padding: 24px 20px 0; }
  .sal-pop .sal { margin: 20px 20px 0; }
}
.bk-colh .bks-card__pick[data-bk-pop] { cursor: pointer; }

/* 11.11 a place «Тю» sent the owner to (main.js SPOT): a yellow ring that pulses three times, then fades */
@keyframes spot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 0, 0); } 30% { box-shadow: 0 0 0 6px #ff0; } 60% { box-shadow: 0 0 0 3px #ff0; } }
.spot-flash { animation: spot-pulse 1.4s ease-in-out 3; border-radius: var(--r-soft); position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .spot-flash { animation: none; box-shadow: 0 0 0 4px #ff0; } }
.spot-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px; background: var(--accent); color: var(--black); border-radius: var(--r-soft); font-size: 14px; line-height: 1.5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }

/* 11.11: «Каса» on a phone = two columns, the left one without its line */
@media (max-width: 900px) {
  .bo-till .bo-till__nums > div { padding-left: 16px; border-left: 1px solid var(--card-line); }
  .bo-till .bo-till__nums > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* 11.11: the tiles card got its title and a one-line lead */
.bo-sum__head { display: flex; flex-direction: column; gap: 12px; }
.bo-sum__head .acc-sec__note { margin: 0; }

/* 11.11: «Каса й EET» (shown only when the server's EET is on) and the EET line under a payment */
.bo-eet__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
/* 14.11 (owner: «викласти еет … з поміткою бета версія»): the yellow beta pill next to the card's title */
.bo-eet__betanote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bo-eet__beta { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 50px; background: var(--accent); color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.2; text-transform: uppercase; }
.bo-eet__form { margin-top: 16px; }
.bo-eet__check { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.bk-bill__eet { display: block; margin-top: 2px; color: var(--grey-text); }
.bk-bill__eet.is-bad { color: #c4320a; }
/* 17.11: «Каса й Checkbox» — the rules table «Які оплати пробивати» (a name, a white dropdown) and the receipt line's link */
.bo-cbx__rules { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 560px; }
.bo-cbx__group { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: var(--grey-text); }
.bo-cbx__rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bo-cbx__rule > span { font-size: 16px; }
.bo-cbx__rule .ob-select { flex: 0 1 240px; min-width: 0; }
.bo-cbx__lp { margin-top: 8px; max-width: 560px; display: flex; flex-direction: column; gap: 6px; }
.bk-bill__eet a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .bo-cbx__rule { flex-direction: column; align-items: stretch; gap: 4px; } .bo-cbx__rule .ob-select { flex-basis: auto; } }

/* 11.11: a payment's document number + its receipt (main.js rcptBtn / openReceipt, server receipts.py) */
.bk-bill__doc { display: block; margin-top: 2px; color: var(--grey-text); }
.rcpt-dlg { width: min(480px, calc(100vw - 32px)); padding: 32px 24px 24px; position: relative; }
.rcpt-dlg .rcpt-dlg__x { position: absolute; top: 12px; right: 12px; }
.rcpt-dlg__lang { display: flex; align-items: center; gap: 8px; margin: 0 40px 16px 0; }
.rcpt-dlg__lang[hidden] { display: none; }
.rcpt-dlg__lang .ob-select { flex: 0 1 200px; }
.rcpt-dlg__status { min-height: 18px; margin: 12px 0 0; color: var(--grey-text); }
.rcpt-dlg__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rcpt-dlg__btns .cbtn { flex: 1 1 160px; }
.rcpt { color: var(--black); font-size: 14px; line-height: 1.45; }
.rcpt__title { margin: 0 32px 16px 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.rcpt__seller { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-soft); }
.rcpt dl { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--grey-soft); }
.rcpt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.rcpt dt { color: var(--grey-text); }
.rcpt dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.rcpt__items dt { color: var(--black); }
.rcpt dl > .is-total dt, .rcpt dl > .is-total dd { color: var(--black); font-weight: 700; }
.rcpt__pok { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.rcpt__note { margin: 12px 0 0; font-size: 12px; color: var(--grey-text); }
@media print {
  /* only the document, black on white, the page's width (A4 or a till's roll alike) */
  html:has(body.is-rcpt-print), body.is-rcpt-print { background: #fff !important; }
  body.is-rcpt-print > *:not(.rcpt-dlg) { display: none !important; }
  body.is-rcpt-print .rcpt-dlg { position: static; inset: auto; transform: none; width: 100%; max-width: 180mm; max-height: none;
    overflow: visible; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  body.is-rcpt-print .rcpt-dlg::backdrop { background: none; }
  body.is-rcpt-print .rcpt-dlg__x, body.is-rcpt-print .rcpt-dlg__btns, body.is-rcpt-print .rcpt-dlg__status,
  body.is-rcpt-print .rcpt-dlg__lang { display: none !important; }
  body.is-rcpt-print .rcpt dt, body.is-rcpt-print .rcpt__cap, body.is-rcpt-print .rcpt__note { color: #000; }
}

/* 11.11: an invoice on request (main.js openInvoice, server receipts.py) */
.bk-bill__inv { width: 100%; margin-top: 8px; }
.rcpt__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-soft); }
.rcpt__parties .rcpt__seller { padding: 0; border: 0; }
.rcpt__cap { font-size: 12px; color: var(--grey-text); }
.rcpt-form { display: flex; flex-direction: column; gap: 12px; }
.rcpt-form .rcpt__title { margin-bottom: 0; }
.rcpt-form__lead { margin: 0; color: var(--grey-text); }
.rcpt-form__field { display: flex; flex-direction: column; gap: 6px; }
.rcpt-form__field .ob-input { width: 100%; }
.rcpt-form__vat { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.rcpt-form__vat input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--black); }
@media (max-width: 600px) { .rcpt__parties { grid-template-columns: 1fr; } }

/* 11.11 (owner: «змінити валюту … одним перемикачем у шухляді»): the editor's EUR / CZK / UAH switch — three equal parts
   on the full width of the drawer, the cabinet's 44 tall tabs, one line each */
.ed-cur__tabs.view-tabs { display: flex; width: 100%; max-width: 100%; }
.ed-cur__tabs .view-tabs__tab { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 14px; white-space: nowrap; }

/* 13.11 (owner: «на внутрішніх блоках у картці не має бути такий самий радіус, як зовнішній … менший, наприклад 16 …
   у мобайлі пропорційно»): a block with its own surface inside a card takes the soft radius (16, phone 12), never the card's */
.acc-sec :is(.pick, .set-card, .addr-card, .pay__card, .dt-foot, .bks-card),
.set-card :is(.set-card, .pick), .bk-board .bks-card { border-radius: var(--r-soft); }
@media (max-width: 900px) { :root { --r-soft: 12px; } }

/* 13.11 (owner: «зменшити весь внутрішній інтерфейс кабінету пропорційно, крім хедера та сайд меню … адекватно, але
   помітно»): the cabinet's content column at 87.5 % on a computer (16 → 14). The header and the side panel keep their
   size; the live course editor (.acc-main--wide) and the phone (inputs stay 16 so iOS does not zoom) are not touched. */
@media (min-width: 901px) {
  .acc-main:not(.acc-main--wide) { zoom: .875; }
  /* the drawers and windows of the cabinet sit outside the column (top layer), so they get the same scale; a zoomed fixed
     drawer is 87.5 % of the screen tall, hence its height divided back */
  .acc-body .bk-drawer, .acc-body dialog { zoom: .875; }
  .acc-body .bk-drawer { height: calc(100dvh / .875); max-height: none; }
}

/* 13.11 (owner: «ти не відрегулював стилі, котрі мають застосовуватись на одні й ті самі елементи та інтервали. Уніфікуй»):
   the cabinet's spacing from the design system (Figma Size: cab/gap, cab/card-padding, cab/page-x, cab/page-y). One gap
   between every card and big block of a page, one padding inside every card, one page field. Desktop values (the column is
   at zoom .875, so on screen they read as the Figma «Cabinet» mode); a phone takes the smaller ones. */
:root { --cab-gap: 24px; --cab-pad: 32px; --cab-x: 32px; --cab-y: 32px; }
@media (max-width: 900px) { :root { --cab-gap: 16px; --cab-pad: 24px; --cab-x: 16px; --cab-y: 24px; } }
.acc-body :is(.acc-main, .acc-solo, .bks, .bks-pair, .bks-staff-sec, .bo, .cl, .services, .crs-guides) { gap: var(--cab-gap); }
.acc-body .acc-main :is(.acc-sec, .set-card, .acc-site, .acc-stats, .acc-first) { padding: var(--cab-pad); }
.acc-body .acc-main { padding-top: var(--cab-y); padding-left: var(--cab-x); padding-right: var(--cab-x); }
/* the phone's staff strip bleeds to the screen edges by the page field, which is --cab-x now */
.acc-body .bks-staff { margin-inline: calc(-1 * var(--cab-x)); }
@media (min-width: 901px) { .acc-body .bks-staff { margin-inline: 0; } }

/* 13.11 (owner: «тумблери з підписами мають бути поруч, а не розносити на всю доступну ширину»): a switch stands right after
   its label (16 apart); tools of a row, if any, still go to the right edge */
.acc-sec__row:has(> .ob-switch) { justify-content: flex-start; column-gap: 16px; }
.bks-f__name { flex: 0 1 auto; }
.bks-f > .ob-switch + * { margin-left: auto; }

/* 13.11 (owner: «ти не виправив всі чорні випадашки … переперевір взагалі на цей предмет всі такі можливі місця»): every
   dropdown / popover is the system's white list (Figma Dropdown/List, Dropdown/Option): white, a 1 px rgba(0,0,0,.2) line,
   the soft radius (16 / phone 12), the dropdown shadow, black text; hover = stone, the chosen row = cream. Found by a sweep of
   every page for dark lists / menus / popovers: the cabinet header's «Записи» / «Звернення» panel, the catalogue filters
   (templates, courses, the editor), the catalogue search hints, the landing's step 01 scene. */
.drop__list, .search-hints, .hdrop__panel {
  background: var(--white); color: var(--black);
  border: 1px solid var(--ink-line); border-radius: var(--r-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}
.drop__list, .search-hints { padding-block: 8px; }
.drop__list li, .search-hints li { color: var(--black); }
.drop__list li:hover, .drop__list li:focus-visible, .search-hints li:hover { background: var(--stone); }
.drop__list li[aria-selected="true"], .search-hints li[aria-selected="true"] { background: var(--cream); }
.search-hints small { color: var(--mute-ink); }
.hdrop__row:hover { background: var(--stone); }
.hdrop__row { border-radius: var(--r-field); }
.hdrop__row-s, .hdrop__empty { color: var(--mute-ink); }
.hdrop__panel .hdrop__all { background: var(--black); color: var(--white); }
@media (max-width: 900px) { .hdrop__panel { border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 0; } }

/* 13.11 (owner, «Тариф сайту» in billing: «тут можна три в ряд, а не по дві в ряду»): three plans stand in one row on a
   computer, the card gap between them */
/* 16.11 (owner: «на малих розмірах коли вже не влазить, картку тут треба вже в вертикаль перестроювати»): the row is decided
   by the CARD's own width, not the window's (the side panel and the cabinet zoom leave too little room on small laptops):
   three in a row only from 760 px of the section, below that one under another */
.acc-sec:has(> .picks) { container: picks / inline-size; }
.pick__badge { white-space: nowrap; }
@container picks (max-width: 759px) {
  .acc-sec .picks:not(.is-one):has(> .pick:nth-of-type(3)) { grid-template-columns: minmax(0, 1fr); }
}
@container picks (min-width: 760px) {
  .acc-sec .picks:not(.is-one):has(> .pick:nth-of-type(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cab-gap); }
}

/* 16.11 (owner: «якась неактуальна шапка в тарифах, в системі така», Figma DS 72:294 «Site/Header · Desktop inner»):
   the inner page's header = the landing's: 91 tall, sides 40, items 14 / 500 UPPER .02em through 40, one black Button S
   «Починай зараз» (no «Увійти»). Phone keeps its own header. */
@media (min-width: 901px) {
  .page-top .header--site { min-height: 91px; padding: 20px 40px; }
  .header--site .header__nav { top: 50%; translate: 0 -50%; gap: 40px; font-size: 14px; font-weight: 500; line-height: 1.35;
    letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
  .header--site .header__auth { gap: 24px; }
}

/* 16.11 «Свій домен» на «Мій сайт» (власниця: «збери її з наявних компонентів кабінету»): Settings card (.set-card) зі
   знаком на кружечку --stone, як «Про бізнес»; Tag (.acc-live) зі станом; Input + Button M; Tabs (.bks-tabs) «Основна
   адреса»; записи DNS = List row (.bks-br__row) з тим самим кремовим круглим інструментом копіювання; Plate (.acc-plate). */
.acc-domcard .acc-tile__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--stone); color: var(--black); }
.acc-domcard .set-card__head .dom-tag { margin-left: auto; }
.dom-tag.is-bad i { animation: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--black); }
.dom-form { display: flex; align-items: flex-start; gap: 16px; }
.dom-form__field { flex: 1 1 auto; min-width: 0; }
.dom-form__btn { flex: none; margin-top: 29px; }      /* level with the input under its 14 / 1.65 label + 6 gap */
.dom-on { display: flex; flex-direction: column; gap: 24px; }
.dom-on__msg { margin: 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.dom-on__msg.acc-plate { font-size: 14px; line-height: 1.5; }
.dom-on__msg a { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.dom-on__block { display: flex; flex-direction: column; gap: 12px; }
.dom-on__tabs .bks-tabs__btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-recs { display: flex; flex-direction: column; border-top: 1px solid var(--card-line); }
.dom-rec { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 2fr) 32px; align-items: center; gap: 16px; }
.dom-rec__type { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.dom-rec__cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dom-rec__cap { font-size: 12px; line-height: 1.35; color: var(--mute-ink); }
.dom-rec code { font: inherit; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.dom-rec .ob-icon.is-done { background: var(--accent); }
.dom-on__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.cbtn.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 900px) {
  .dom-form { flex-direction: column; align-items: stretch; }
  .dom-form__btn { margin-top: 0; }
  .dom-rec { grid-template-columns: minmax(0, 1fr) 32px; row-gap: 8px; }
  .dom-rec__type { grid-column: 1 / -1; }
  .dom-rec__cell { grid-column: 1; }
  .dom-rec .ob-icon { grid-column: 2; grid-row: 2 / span 2; }
  .dom-on__acts .cbtn { flex: 1 1 100%; }
  .acc-domcard .set-card__head .dom-tag { margin-left: 0; }
}

/* 16.11 the owner's unlinked payment accounts («Підключити знову» each, then «Підключити інший рахунок»): List rows of
   the cabinet (.acc-row) and the grey Button under them */
.pay-old { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pay-old .acc-row { width: 100%; padding: 16px 0; }
.pay-old .acc-row:first-child { padding-top: 0; }
@media (max-width: 900px) { .pay-old__other { width: 100%; } }

/* 16.11 (owner: «лейбли = Tag з Figma: pill; варіанти жовтий, без фону, кремовий, чорний; розміри й шрифт з компонента Tag,
   числами»): ONE rule for every small label / badge of the site and the cabinet. Tag (DS): 28 high, 14 at the sides,
   Text/Body 14 / 400, line 1.35, pill (999px). Yellow = --accent + black, «без фону» = no fill + a 1px stone line,
   cream = --cream + black, black = --black + white. Counts (.acc-nav__count, .hdrop__count) are the Count component:
   the same pill, their own 18 / 26 size. Big plates (.acc-plate, .acc-alert, .cab-plate, .acc-offer) are not labels. */
.tag, .acc-first__kicker, .acc-saved, .acc-live, .off-item__warn, .hdrop__new, .bk-new, .bk-drawer__badge, .pick__badge,
.mfa-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 28px; height: auto; padding: 4px 14px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: nowrap;
  background: var(--accent); color: var(--black);
}
.bk-drawer__badge, .off-item__warn { white-space: normal; text-align: left; justify-content: flex-start; }
.tag--yellow, .tag--y { background: var(--accent); color: var(--black); }
.tag--none { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1px var(--stone); }
.tag--cream, .mfa-badge { background: var(--cream); color: var(--black); }
.tag--black { background: var(--black); color: var(--white); }
.mfa-badge.is-on { background: var(--accent); }
.bk-new.bk-new--wait { background: var(--cream); color: var(--black); }   /* «Очікує оплати» / «Повернено»: was grey */
.acc-saved:empty, .bk-drawer__badge[hidden], .tag[hidden] { display: none; }
.acc-nav__count, .hdrop__count { border-radius: 999px; }
/* the catalogue card's category (a click picks that theme in «Тема») */
.tpl-card__tag { align-self: flex-start; margin-top: 12px; cursor: pointer; transition: background-color .2s;
  box-shadow: inset 0 0 0 1px var(--card-line); }   /* the catalogue's page is cream too: the line keeps the pill visible */
.tpl-card__tag:hover, .tpl-card__tag:focus-visible { background: var(--stone); }

/* 17.11 (owner: «Так, прибрати»): the 16.11 «Почати навчання» block of the side panel is gone; «Навчання» shows only
   for an account with a bought course or guide (main.js). */

/* 16.11 (owner): the template page on a phone / small tablet — the description goes to the very bottom, under «Обрати
   сайт» / «Переглянути шаблон». The head block falls apart (display: contents): its row keeps the yellow band on top,
   the description becomes the last item of the column. */
@media (max-width: 900px) {
  /* main.js moves the description under the buttons on these widths (.tpl-head__desc--low) and back on wider ones */
  .tpl-head__desc--low { width: 100%; box-sizing: border-box; margin: 0; padding: 0 var(--pad) 140px; color: var(--mute-ink); }
  .tpl-view__actions:has(+ .tpl-head__desc--low) { padding-bottom: 24px; }
}
.acc-biz__ava.is-plus { background: var(--black); color: var(--white); }
.acc-biz__ava.is-plus svg { width: 20px; height: 20px; }

/* 17.11 (owner: «Курси без реєстрації: доступ за посиланням»): /buy, /learn-access (inside the .req card) and the
   «Курс уже ваш» page on the preview host (.lk). Only the system's pieces: Onest from the page, pill buttons, the grey
   secondary #d9d9d9, the yellow only on plates, white card on cream with the #ebebe5 line. */
.lbuy__card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lbuy__card[hidden], .lbuy__wait[hidden], .lbuy__plate[hidden], .lbuy [data-cbuy-row][hidden], .lbuy__ts[hidden] { display: none; }
.lbuy__wait { margin: 0; font-size: 14px; color: var(--grey-text); }
.lbuy__kicker { margin: 0; font-size: 12px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-text); }
.lbuy__title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 900; letter-spacing: -.04em; }
.lbuy__line { margin: 0; font-size: 16px; line-height: 1.5; }
.lbuy__price { margin: 8px 0 0; font-size: 48px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.lbuy__seller { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 20px; border: 1px solid var(--card-line);
  border-radius: var(--r-soft); background: var(--cream); }
.lbuy__seller p { margin: 0; font-size: 14px; line-height: 1.5; }
.lbuy__seller [data-cbuy-rules] { white-space: pre-line; }
.lbuy__agree { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.lbuy__agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.lbuy__agree input[aria-invalid="true"] { outline: 1px solid #c4320a; outline-offset: 2px; }
.lbuy .req__error { margin: -8px 0 0; }
.lbuy__go { width: auto; gap: .35em; }
.lbuy__how { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--grey-text); }
.lbuy__how a, .lbuy__more a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.lbuy__more { margin: 0; font-size: 14px; }
.lbuy__plate { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--r-soft); background: var(--accent); font-size: 14px; line-height: 1.5; }
.lbuy__ts { min-height: 65px; }
@media (max-width: 900px) {
  .lbuy__title { font-size: 28px; }
  .lbuy__price { font-size: 32px; }
  .lbuy__go { width: 100%; justify-content: center; }
}

.lk-page { min-height: 100vh; min-height: 100svh; background: var(--cream); }
.lk { display: flex; flex-direction: column; align-items: center; gap: 40px; width: min(640px, calc(100% - 2 * var(--pad))); margin: 0 auto;
  padding: 60px 0 120px; }
.lk__logo { align-self: center; }
.lk__card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; padding: var(--pad-card);
  border: 1px solid var(--card-line); border-radius: var(--r-card); background: var(--white); }
.lk__card[hidden], .lk__pw[hidden], .lk__plate[hidden], .lk__pwform[hidden], .lk [data-lk-m][hidden] { display: none; }
.lk__title { margin: 0; font-size: 48px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.lk__sub { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.lk__course { margin: 0; font-size: 16px; line-height: 1.5; }
.lk__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey-text); }
.lk__plate { margin: 0; padding: 12px 16px; border-radius: var(--r-soft); background: var(--accent); font-size: 14px; line-height: 1.5; }
.lk__go { width: auto; margin-top: 8px; }
.lk__pw { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--card-line); }
.lk__pwform { display: flex; flex-direction: column; gap: 16px; }
.lk__pwform .ob-field { gap: 8px; }
.lk__pwform .ob-label { font-size: 14px; }
.lk__pwform .ob-input { height: var(--h-ctl); font-size: 14px; }
.lk__pwform .req__error { margin: -8px 0 0; min-height: 0; font-size: 14px; color: #c4320a; }
.lk__row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .lk { gap: 24px; padding: 32px 0 80px; }
  .lk__title { font-size: 32px; }
  .lk__go, .lk__row .cbtn { width: 100%; justify-content: center; }
}

/* 17.11: «Покупці» of a course (main.js BUYERS) — the cabinet window .ph */
dialog.byr { width: 720px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 0 0 32px;
  background: var(--white); color: var(--black); overflow: auto; border: 1px solid var(--card-line); border-radius: var(--r-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
dialog.byr::backdrop { background: rgba(0, 0, 0, .45); }
.byr .ph__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 32px 32px 0; }
.byr .ph__title { font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.byr .ph__sub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--grey-text); }
.byr .ph__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; color: var(--black); }
.byr__list { display: flex; flex-direction: column; gap: 12px; margin: 24px 32px 0; }
.byr__note { margin: 16px 32px 0 !important; font-size: 14px; }
.byr__item { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border: 1px solid var(--card-line); border-radius: var(--r-soft); }
.byr__top { display: flex; flex-direction: column; gap: 8px; }
.byr__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byr__mail { font-size: 16px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.byr__who .acc-sec__note, .byr__devs .acc-sec__note { margin: 0; }
.byr__devs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.byr__dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.byr__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.byr__fix { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.byr__fix[hidden], .byr__ok[hidden] { display: none; }
.byr__fix .ob-input { width: 100%; height: var(--h-ctl); font-size: 14px; }
.byr__fix .acc-sec__note { margin: 0; }
.byr__dup, .byr__ok { margin: 0; }
.byr .ob-error:empty { display: none; }
@media (max-width: 600px) {
  dialog.byr { padding-bottom: 20px; }
  .byr .ph__head { padding: 24px 20px 0; }
  .byr__list { margin: 20px 20px 0; }
  .byr__note { margin: 16px 20px 0 !important; }
  .byr__item { padding: 16px; }
  .byr__dev { flex-direction: column; align-items: flex-start; }
  .byr__acts .cbtn, .byr__fix .cbtn { width: 100%; justify-content: center; }
}

/* 17.11 (owner: «Вхід через Google»): the button follows Google's rules for a custom one — the standard colour «G» 20 px,
   the neutral theme (#F2F2F2 fill, #1F1F1F text, no stroke), pill shape, sentence case (not our upper case), 12 px
   before the logo; the text in Onest 500. Used on log-in, sign-up and «Вже купили?». */
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--h-ctl, 56px);
  padding: 0 20px 0 12px; border: 0; border-radius: var(--r-pill); background: #f2f2f2; color: #1f1f1f;
  font-family: inherit; font-size: 16px; line-height: 1.25; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
.gbtn:hover { filter: brightness(.97); }
.gbtn:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.gbtn:disabled { opacity: .5; cursor: default; }
.gbtn__g { flex: none; width: 20px; height: 20px; }
.signup__oauth[hidden], .signup__oauth-in[hidden] { display: none; }
.signup__oauth-in { display: flex; flex-direction: column; gap: 16px; }
.signup__oauth-in .signup__error { margin: 0; }
.signup__or { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 1.2; color: var(--grey-text); }
.signup__or::before, .signup__or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--card-line); }
.acc-row__title .gbtn__g { display: inline-block; vertical-align: -4px; margin-right: 6px; }
.lbuy__terms { color: var(--grey-text); line-height: 1.5; }

/* 17.11 (owner: «Підключити оплату» + the list of the site's payment methods). The list rows follow the Stripe card
   (acc-row, ob-switch, black / stone buttons); the popups are the DS «Modal» and «List row». js/main.js PM_DRAW / PM_POPUP */
.pm-list { display: flex; flex-direction: column; }
.pm-list[hidden] { display: none; }
.pm-row .acc-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.pm-row__test { margin-left: 8px; font-size: 12px; color: var(--mute); }
.pm-row__sw { display: inline-flex; flex: none; align-items: center; gap: 12px; font-size: 14px; color: var(--mute-ink); }
.pm-add { align-self: flex-start; margin-top: 24px; }
.pm-list > .acc-plate { margin-top: 24px; }
/* DS «Tag» (Yellow): pill 6 / 16, 14 / 400, not a button */
.pm-tag { display: inline-flex; align-items: center; margin-left: 8px; padding: 6px 16px; border-radius: var(--r-pill); background: var(--accent);
  color: var(--black); font-size: 14px; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: nowrap; }
/* DS «Modal»: white, line #ebebe5, radius 30 / 16, padding 40 / 24, the Popup shadow, the cross on the title's row (a cream
   32 circle like the list tools), buttons black + stone; phone: full width, the main one on top. These pages don't load
   site.css, so the whole frame is here. */
dialog.pm-dlg { width: 640px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 40px; overflow: auto;
  background: var(--white); color: var(--black); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
dialog.pm-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.pm-dlg .ph__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0; }
.pm-dlg .ph__title { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.pm-dlg .ph__sub { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--mute-ink); }
.pm-dlg .ph__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0;
  border-radius: 50%; background: var(--cream); color: var(--black); cursor: pointer; transition: background .2s; }
.pm-dlg .ph__close:hover { background: var(--stone); }
.pm-dlg .ph__close svg { width: 16px; height: 16px; }
.pm-dlg .ph__foot { display: flex; justify-content: flex-end; gap: 12px; margin: 0; padding: 0; border: 0; }
.pm-dlg .ph__foot .cbtn { min-width: 160px; }
.pm-dlg > .ph__foot { margin-top: 32px; }
.pm-dlg__body { padding: 24px 0 0; }
/* DS «List row»: a hairline under each provider, text 16 / 500 left, a cream 32 circle with the arrow right (stone on hover) */
.pm-pick { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--card-line); }
.pm-pick li { border-bottom: 1px solid var(--card-line); }
.pm-pick__item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 0; border: 0; background: none; color: var(--black);
  font: inherit; text-align: left; cursor: pointer; }
.pm-pick__item:disabled { cursor: default; }
.pm-pick__item:disabled .pm-pick__title { color: var(--mute-ink); }
.pm-pick__txt { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.pm-pick__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 16px; font-weight: 500; line-height: 1.3; }
.pm-pick__text { font-size: 14px; line-height: 1.5; color: var(--mute-ink); }
.pm-pick__why { font-size: 14px; line-height: 1.5; color: var(--mute); }
.pm-pick__go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); transition: background .2s; }
.pm-pick__item:hover .pm-pick__go { background: var(--stone); }
.pm-step { display: flex; flex-direction: column; gap: 24px; }
.pm-step > .acc-sec__note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute-ink); }
.pm-step .ob-field { width: 100%; }
.pm-step__plate { margin: 0; }
.pm-step__sandbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute-ink); }
.pm-step .acc-err:empty { display: none; }
@media (max-width: 900px) {
  dialog.pm-dlg { padding: 24px; }
  .pm-dlg .ph__title { font-size: 20px; }
  .pm-dlg .ph__foot { flex-direction: column; }
  .pm-dlg .ph__foot .cbtn { width: 100%; }
  .pm-dlg .ph__foot .cbtn--black { order: -1; }
  .pm-row__sw { width: 100%; justify-content: space-between; }
  .pm-add { width: 100%; }
}
/* 17.11: /buy — the buyer picks the author's payment method; the e-mail field for every method but Stripe */
.lbuy__methods { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.lbuy__methods[hidden] { display: none; }
.lbuy__mlist { display: flex; flex-wrap: wrap; gap: 8px; }
.lbuy__m { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--card-line); border-radius: 50px; background: var(--white); font-size: 14px; line-height: 1.2; cursor: pointer; }
.lbuy__m:has(input:checked) { border-color: var(--black); }
.lbuy__m input { width: 16px; height: 16px; margin: 0; accent-color: var(--black); }
.lbuy__email { width: 100%; }
.lbuy__email[hidden] { display: none; }
.lbuy__hint { font-size: 12px; line-height: 1.4; color: var(--grey-text); }

/* 17.11: Pochatok's own invoice under the accountant's file (the «Файл для бухгалтера» card) */
.bo-ours { margin-top: 16px; padding: 16px; background: var(--cream, #f9f8ed); border-radius: var(--r-soft, 16px); }
.bo-ours__title { margin: 0 0 8px; font-weight: 700; }
.bo-ours__row { margin: 0; line-height: 1.6; }
.bo-ours__pdf { text-decoration: underline; }
