/* =====================================================================
   ТЕМА «СТОМАТОЛОГИЯ» — единый финальный слой для всех кабинетов врачей (рабочий и тестовые) и ассистента.
   Палитра: эмаль (белый), клинический бирюзовый, мята, глубокий тёмно-синий текст.
   Окна ровные: белые карточки с тонкой рамкой и одинаковым скруглением, без «стекла» и размытия.
   Подключается после cabinet.css, поэтому переопределяет переменные и ключевые компоненты.
   ===================================================================== */
:root {
  --bg: #efe5d8; --bg-tint: #e9dccb; --white: #ffffff; --dark: #3b2f26; --ink2: #7d6b5c;
  --line: #e8dccd; --line-strong: #d9c6b1;
  --brown: #8a5d3b;            /* основной цвет действий (раньше кофейный) — глубокий бирюзовый */
  --accent: #b0773f;           /* акцент — клинический бирюзовый */
  --mint: #c99a68; --mint-soft: #f5e8d8; --aqua-soft: #f4e8da;
  --good: #1e8e5a; --bad: #c8423e; --warn: #c98a12;
  --r: 18px;                   /* единое скругление карточек */
  --glass: #ffffff; --glass-strong: #ffffff; --glass-soft: #fbf6ef;
  --glass-hi: inset 0 0 0 1px var(--line);
  --glass-shadow: 0 1px 2px rgba(70, 48, 30, .04), 0 10px 28px -18px rgba(70, 48, 30, .22);
  --glass-shadow-lg: 0 2px 6px rgba(70, 48, 30, .06), 0 28px 70px -24px rgba(70, 48, 30, .38);
  --glass-blur: none;
  --seg-track: #eadfd0; --seg-on: #ffffff;
  --shadow: var(--glass-shadow); --shadow-lg: var(--glass-shadow-lg);
}
html body { background: var(--bg); color: var(--dark); }
/* фон: едва заметное бирюзовое и мятное свечение + силуэт зуба в углу */
body::before {
  background:
    radial-gradient(38% 34% at 100% 0%, rgba(176, 119, 63, .12), transparent 72%),
    radial-gradient(36% 38% at 0% 100%, rgba(201, 154, 104, .10), transparent 72%) !important;
}
body::after {
  content: ""; position: fixed; right: -60px; bottom: -70px; width: 420px; height: 420px; z-index: -1; pointer-events: none; opacity: .045;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a5d3b'%3E%3Cpath d='M8 3.5C5.5 3.5 4 5.4 4 7.8c0 2 .8 3.3 1.2 5.2.4 1.9.6 5.5 2.3 5.5 1.4 0 1.4-3.2 2.3-4.3.5-.6 1.2-.6 1.7 0 .9 1.1.9 4.3 2.3 4.3 1.7 0 1.9-3.6 2.3-5.5.4-1.9 1.2-3.2 1.2-5.2 0-2.4-1.5-4.3-4-4.3-1.2 0-2.1.6-3.3.6S9.2 3.5 8 3.5z'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }

/* ---------- карточки: белые, ровные, одинаковые ---------- */
.tile:not(.brand), .kpi, .panel:not(.brand):not(.brand--brown), .cc:not(.brand):not(.brand--brown), .cta-line, .cal, .plist, .pcard, .ps-tile:not(.ps-tile--dark), .ps-cr {
  background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important;
  box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow) !important; border-radius: var(--r) !important;
}
.tile:not(.brand):hover, .panel:not(.brand):not(.brand--brown):hover, .cc:not(.brand):not(.brand--brown):hover {
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 4px rgba(70, 48, 30, .05), 0 16px 36px -20px rgba(70, 48, 30, .3) !important;
}
.panel .panel, .cc .panel, .pcard .stage, .pcard .visit, .pstats, .ledger, .fill, .ro, .gbox {
  background: #fbf6ef !important; box-shadow: inset 0 0 0 1px var(--line) !important; border-radius: 14px !important;
}
.tile:not(.brand) b, .kpi:not(.brand) b, .ps-tile:not(.ps-tile--dark) b { color: var(--dark); font-variant-numeric: tabular-nums; }
.tile:not(.brand) span, .kpi:not(.brand) span, .ps-tile:not(.ps-tile--dark) small, .panel:not(.brand):not(.brand--brown):not(.ps-dark) .panel__sub, .dform__hint { color: var(--ink2) !important; }
.panel > h3, .panel__head h3, .cc h3 { color: var(--dark); }

/* цветные панели (обзор финансов, «Эта неделя», 12 недель): бирюзовая и тёмно-синяя */
.brand { background: linear-gradient(140deg, #d29a63 0%, #b0773f 42%, #8a5d3b 100%) !important; box-shadow: 0 20px 44px -24px rgba(138, 93, 59, .75) !important; }
.brand--brown, .ps-tile--dark { background: linear-gradient(140deg, #6f4a2e 0%, #5a4030 50%, #3b2a1f 100%) !important; box-shadow: 0 20px 44px -24px rgba(59, 42, 31, .8) !important; }
.brand, .brand--brown, .ps-tile--dark { border-radius: var(--r) !important; }
#tab-personal .panel.ps-dark, #tab-overview .panel.ps-dark { background: linear-gradient(155deg, #5e3f28, #4a3324) !important; }
.ps-tile--dark .ps-meter em { background: var(--mint) !important; }

/* ---------- шапка, меню, аватар ---------- */
.top { background: rgba(255, 255, 255, .94) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: inset 0 -1px 0 var(--line) !important; }
.top__brand em { background: linear-gradient(95deg, var(--dark) 15%, var(--brown) 55%, var(--accent)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.ti__pill { background: var(--aqua-soft) !important; color: var(--brown) !important; }
.ti__next { background: linear-gradient(135deg, #b0773f, #8a5d3b) !important; box-shadow: 0 10px 22px -12px rgba(138, 93, 59, .9) !important; border-radius: 16px !important; }
.me-av, .tabs__av { background: linear-gradient(140deg, #c99a68 0%, #b0773f 55%, #8a5d3b 100%) !important; box-shadow: 0 0 0 3px rgba(176, 119, 63, .2), 0 6px 16px -6px rgba(138, 93, 59, .55) !important; color: #fff !important; }
@media (min-width: 701px) {
  #tabs { background: #fffaf4 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow) !important; }
  #tabs > button:hover { background: var(--aqua-soft) !important; color: var(--brown) !important; }
  #tabs > button.is-active { background: var(--aqua-soft) !important; color: var(--brown) !important; box-shadow: inset 0 0 0 1px rgba(176, 119, 63, .25) !important; }
  #tabs > button.is-active .ic { color: var(--accent) !important; }
}
@media (max-width: 700px) {
  .top { background: #fffaf4 !important; }
  .tabs { background: #fffaf4 !important; box-shadow: inset 0 1px 0 var(--line), 0 -8px 26px rgba(70, 48, 30, .1) !important; }
  .tabs > button.is-active { background: var(--aqua-soft) !important; color: var(--brown) !important; }
  .tabs > button.is-active .ic { color: var(--accent) !important; }
}

/* ---------- кнопки, сегменты, поля ---------- */
.btn:not(.btn--ghost):not(.btn--danger):not(.btn--light) { background: var(--brown) !important; border-color: var(--brown) !important; color: #fff !important; box-shadow: 0 6px 16px -8px rgba(138, 93, 59, .7) !important; }
.btn:not(.btn--ghost):not(.btn--danger):not(.btn--light):hover { background: #6f4a2e !important; }
.btn--ghost { background: rgba(255, 251, 246, .82) !important; color: var(--brown) !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.btn--ghost:hover { background: var(--aqua-soft) !important; color: var(--brown) !important; }
.ibtn { background: #fffaf4 !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; color: var(--dark) !important; }
.ibtn:hover { background: var(--aqua-soft) !important; }
.seg { background: var(--seg-track) !important; box-shadow: none !important; }
.seg button.is-active { color: var(--brown) !important; box-shadow: 0 1px 2px rgba(70, 48, 30, .1), 0 3px 10px rgba(70, 48, 30, .1) !important; }
.seg button:hover:not(.is-active) { background: rgba(255, 255, 255, .6) !important; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea {
  background: #fffaf4 !important; border: 1px solid var(--line-strong) !important; color: var(--dark);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(176, 119, 63, .16) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
a { color: var(--accent); }

/* ---------- календарь ---------- */
.cal { border-radius: var(--r) !important; }
.wk__head { background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important; border-bottom: 1px solid var(--line) !important; }
.wk__day, .wk__col, .mo__c { border-color: #ece0d1 !important; }
.wk__col { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), #efe4d6 calc(var(--hour) - 1px), #efe4d6 var(--hour)) !important; }
.wk__col.is-today { background-color: rgba(176, 119, 63, .05) !important; }
.wk__day.is-today b, .mo__c.is-today .mo__n { background: var(--accent) !important; color: #fff !important; }
.wk__day.is-today small { color: var(--accent); opacity: 1; font-weight: 700 !important; }
.ev { border-radius: 9px !important; box-shadow: 0 1px 2px rgba(70, 48, 30, .08) !important; }
.ev:hover { box-shadow: 0 6px 16px -6px rgba(70, 48, 30, .35) !important; z-index: 3; }
.now { background: var(--bad) !important; }
.legend { color: var(--ink2); }

/* ---------- окна и шторка: белые, ровные ---------- */
dialog { background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important; border-radius: 22px !important; box-shadow: var(--glass-shadow-lg) !important; }
dialog::backdrop { background: rgba(70, 48, 30, .38) !important; -webkit-backdrop-filter: blur(3px) !important; backdrop-filter: blur(3px) !important; }
.drawer { background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important; border-radius: 22px 0 0 22px !important; }
.overlay { background: rgba(70, 48, 30, .3) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.status-btns button { background: #fffaf4 !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
.status-btns button.is-active { background: var(--brown) !important; color: #fff !important; box-shadow: none !important; }
.toast { background: rgba(70, 48, 30, .92) !important; }
@media (max-width: 700px) { dialog { border-radius: 22px 22px 0 0 !important; } .drawer { border-radius: 22px 22px 0 0 !important; } }

/* ---------- вход ---------- */
.gate { background: radial-gradient(900px 520px at 85% -10%, rgba(210, 154, 99, .55), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(201, 154, 104, .35), transparent 60%), #3b2a1f !important; }
.gate__box { background: #fffaf4 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 26px !important; }
.gate__logo { background: linear-gradient(140deg, #d29a63, #8a5d3b) !important; color: #fff !important; }

/* ---------- метки, статусы, предупреждения ---------- */
.st.planned { background: #dcedf6 !important; color: #7a5034; } .st.done { background: #dcf1e6 !important; color: #1d6a43; }
.st.cancelled, .st.noshow { background: #f8e1df !important; color: #9b2f2a; } .st.moved { background: #efe8d6 !important; color: #6d5a26; }
.alert { background: #fdecea !important; border-left-color: var(--bad) !important; border-radius: 12px; } .alert b { color: var(--bad) !important; }
.alert--warn { background: #fff4dc !important; border-left-color: var(--warn) !important; } .alert--warn b { color: #8a5f00 !important; }
.badge, .badge-n { border-radius: 999px !important; }
.fb { background: var(--mint-soft) !important; color: #6f4a2e !important; } .fb:not(.ok) { background: #fff4dc !important; color: #8a5f00 !important; }
.plist li.is-active { background: var(--aqua-soft) !important; box-shadow: inset 3px 0 0 var(--accent) !important; }
.plist li button:hover { background: #faf3ea !important; }
.tbl th { color: var(--ink2) !important; background: #fbf6ef; }
.fill__bar i { background: linear-gradient(90deg, var(--mint), var(--accent)) !important; }
.gc__d.is-on { background: var(--mint-soft) !important; border-color: #e2c29c !important; }
.gc__w.is-ok { background: #efdcc6 !important; color: #6f4a2e !important; }

/* ---------- форма приёма: время с точностью до минуты ---------- */
.dform__row--time { grid-template-columns: 1.25fr 1fr 1fr .8fr; }
.durchips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px; }
.durchips button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--seg-track); color: var(--dark); font: 600 12.5px var(--body); cursor: pointer; transition: background .15s, color .15s; }
.durchips button:hover { background: var(--aqua-soft); color: var(--brown); }
.durchips button.is-on { background: var(--brown); color: #fff; }
#timeHint { font-weight: 600; color: var(--brown) !important; }
#timeHint.is-warn { color: #9b2f2a !important; }
@media (max-width: 700px) { .dform__row--time { grid-template-columns: 1fr 1fr; } }

/* ---------- телефон: компактная шапка календаря ---------- */
@media (max-width: 700px) {
  .toolbar__title { font-size: 21px !important; line-height: 1.2 !important; }
  .toolbar { gap: 10px !important; }
  .legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .legend::-webkit-scrollbar { display: none; }
  .legend span { white-space: nowrap; }
}

/* телефон: сетка календаря прокручивается внутри своего блока — шапка и плитки остаются на месте */
@media (max-width: 700px) {
  .cal { max-height: max(420px, calc(100dvh - 210px)) !important; overflow: auto !important; }
  .wk__head { position: sticky; top: 0; z-index: 4; }
}
/* «Бюджет»: скрытые переключатели категорий не растягивают страницу на телефоне */
.sp-cats, .sp-cat { position: relative; }

/* окно «Пациент»: галочки занимают одну колонку (стиль grid-column из справочника раздвигал форму в три колонки) */
.dform > .cat__chk { grid-column: auto !important; }

/* тёмные плитки и панели: белый текст */
.ps-tile--dark b, .ps-tile--dark strong { color: #fff !important; }
.ps-tile--dark small, .ps-tile--dark span { color: rgba(255, 255, 255, .78) !important; }
.brand b, .brand--brown b, .brand strong, .brand--brown strong { color: #fff; }
/* телефон: кнопки внизу окна — на белой подложке, поля под ними не просвечивают */
@media (max-width: 700px) {
  .dform__btns { background: linear-gradient(rgba(255, 255, 255, 0), #fff 34%) !important; padding-top: 18px !important; }
}
/* телефон: крупнее подписи нижнего меню, времени в сетке и мелких меток */
@media (max-width: 700px) {
  .tabs > button { font-size: 11px !important; }
  .wk__times div { font-size: 11px !important; }
  .pstats span, .plan__t th, .works__t th, .stage label, .stage .field-label { font-size: 11px !important; }
  .ev { font-size: 12px !important; }
}
/* телефон: шапка ассистента — плашка про ограниченный доступ не сдвигает шапку под закреплённые кнопки, длинное название обрезается */
@media (max-width: 700px) {
  #roleNote { display: none !important; }
  .top__brand { min-width: 0; flex: 1 1 auto; }
  .top__brand em, .top__brand span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-role="assistant"] .top__brand em { font-size: 19px !important; }
}
/* телефон: шапка ассистента — плашка про ограниченный доступ не сдвигает шапку под закреплённые кнопки, длинное название обрезается */
@media (max-width: 700px) {
  #roleNote { display: none !important; }
  .top__brand { min-width: 0; flex: 1 1 auto; }
  .top__brand em, .top__brand span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-role="assistant"] .top__brand em { font-size: 19px !important; }
}
/* телефон: метки, статусы и подписи тепловых карт — не мельче 11px */
@media (max-width: 700px) {
  .tag, .st, .pst, .badge, .warnnote, .dn__t, .ht__r, .ht em, .gc__h, .tabs__badge, #bkBadge { font-size: 11px !important; }
}
#prSex { width: 100%; font: 400 14px/1.5 var(--body); padding: 10px 12px; border-radius: 12px; }

/* окна: длинные подписи галочек переносятся, ничего не шире экрана */
.dform > *, .dform label { min-width: 0; }
.dform .cat__chk, .dform .cat__chk span { white-space: normal !important; }
@media (max-width: 700px) {
  dialog { overflow-x: hidden !important; }
  /* шапка: название и подпись врача не заходят под закреплённые кнопки «+ Приём» и «Выход» */
  .top__brand { max-width: calc(100vw - 236px); }
  .top__brand em { font-size: 18px !important; }
}
/* поле пароля на входе: кнопка «Показать» в палитре темы */
.pw__eye { background: var(--aqua-soft, #f4e8da) !important; color: var(--brown, #8a5d3b) !important; }
.pw__eye:hover, .pw__eye:focus-visible { background: var(--brown, #8a5d3b) !important; color: #fff !important; }

/* =====================================================================
   ФИШКИ: быстрый поиск, «Мой день», «Найти окно», перенос мышью, WhatsApp, памятки, приложение
   ===================================================================== */
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #f6eee3; box-shadow: inset 0 -1px 0 var(--line-strong), inset 0 0 0 1px var(--line); font: 600 11px/1 var(--body); color: var(--ink2); }
/* кнопка поиска: в боковом меню — как остальные; на телефоне — круглая рядом с «+ Приём» */
#btnSearch .ic { width: 20px; height: 20px; }
@media (max-width: 700px) {
  #tabs #btnSearch { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 104px; z-index: 71; width: 40px; height: 40px; min-height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #fffaf4; border: 1px solid var(--line-strong); color: var(--brown); }
  #tabs #btnSearch span { display: none !important; }
  #tabs #btnNew { width: 40px !important; min-height: 40px; height: 40px; padding: 0 !important; justify-content: center; right: 56px; }
  #tabs #btnNew span { display: none !important; }
  #tabs #btnNew .ic { width: 20px !important; height: 20px !important; }
  .top__brand { max-width: calc(100vw - 210px) !important; }
}
/* быстрый поиск */
.cmdk { position: fixed; inset: 0; z-index: 400; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; background: rgba(70, 48, 30, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cmdk__box { width: min(640px, 100%); background: #fffaf4; border-radius: 20px; box-shadow: var(--glass-shadow-lg); overflow: hidden; animation: cmdkIn .16s ease-out; }
@keyframes cmdkIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.cmdk__in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink2); }
.cmdk__in .ic { width: 20px; height: 20px; flex: none; }
.cmdk__in input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; font: 500 17px var(--body) !important; padding: 4px 0 !important; color: var(--dark); }
.cmdk__list { max-height: min(56vh, 460px); overflow: auto; padding: 6px; }
.cmdk__it { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.cmdk__it em { flex: none; width: 74px; font: 600 11px var(--body); font-style: normal; color: var(--ink2); }
.cmdk__it span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cmdk__it b { font: 600 14.5px var(--body); color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__it small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__it.is-sel, .cmdk__it:hover { background: var(--aqua-soft); }
.cmdk__it.is-sel b { color: var(--brown); }
.cmdk__empty { padding: 18px 14px; font-size: 13.5px; color: var(--ink2); }
.cmdk__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink2); background: #fbf6ef; }
.cmdk__foot kbd { margin: 0 2px; }
@media (max-width: 700px) { .cmdk { padding-top: 12px; } .cmdk__foot span:last-child { display: none; } .cmdk__it em { width: 62px; } }
body.cmdk-on { overflow: hidden; }
/* «Мой день» */
.myday { margin: 0 0 14px; background: #fffaf4; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow); overflow: hidden; }
.myday__head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 16px; position: relative; }
.myday__title { display: inline-flex; align-items: baseline; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.myday__title span { font: 700 18px var(--head); letter-spacing: -.02em; color: var(--dark); }
.myday__title small { font: 500 12.5px var(--body); color: var(--ink2); }
.myday__chev { width: 9px; height: 9px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg) translateY(-3px); transition: transform .2s; display: inline-block; }
.myday.is-open .myday__chev { transform: rotate(-135deg) translateY(-1px); }
.myday__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.myday__chips span { padding: 4px 10px; border-radius: 999px; background: #f6eee3; font: 600 12px var(--body); color: var(--dark); white-space: nowrap; }
.myday__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #f3e9dd; }
.myday__prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--accent)); }
.myday__tm { flex: none; }
.myday__list { display: none; padding: 4px 10px 12px; gap: 6px; }
.myday.is-open .myday__list { display: grid; }
.myday__empty { padding: 6px 6px 4px; font-size: 13.5px; color: var(--ink2); }
.md-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 14px; background: #fbf6ef; box-shadow: inset 4px 0 0 var(--c); cursor: pointer; transition: background .15s; }
.md-row:hover { background: var(--aqua-soft); }
.md-row time { font: 700 15px var(--head); color: var(--dark); display: grid; line-height: 1.15; }
.md-row time small { font: 500 11.5px var(--body); color: var(--ink2); }
.md-row__m { display: grid; gap: 2px; min-width: 0; }
.md-row__m b { font: 600 14px var(--body); color: var(--dark); }
.md-row__m small { font-size: 12.5px; color: var(--ink2); }
.md-row__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.mtag { padding: 2px 8px; border-radius: 999px; background: #f3e9dd; font: 600 11px var(--body); color: var(--ink2); white-space: nowrap; }
.mtag--bad { background: #fdecea; color: #a8322d; } .mtag--warn { background: #fff4dc; color: #8a5f00; } .mtag--new { background: #f4e8da; color: var(--brown); }
.mtag--bd { background: #fdf0f6; color: #a03a6d; } .mtag--risk { background: #fde7df; color: #a43a17; } .mtag--ok { background: #dcf1e6; color: #1d6a43; }
.md-row__st { font: 700 12px var(--body); font-style: normal; color: var(--accent); }
.md-row.is-done { opacity: .62; } .md-row.is-done .md-row__st { color: var(--good); }
.md-row.is-now { background: var(--aqua-soft); box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px rgba(176, 119, 63, .35); }
@media (max-width: 700px) { .myday__head { padding: 10px 12px; } .myday__chips { order: 3; flex-basis: 100%; } .md-row { grid-template-columns: 52px minmax(0, 1fr); } .md-row__st { display: none; } }
/* метка «риск неявки» на приёме в календаре */
.risk-m { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: #e2533f; color: #fff; font: 800 10px/1 var(--body); font-style: normal; vertical-align: 1px; }
/* «Найти окно» */
.free-dlg { width: min(620px, calc(100% - 24px)); }
.dform__row--free { grid-template-columns: .7fr 1fr 1.2fr; }
.free-part { align-self: start; }
.free-set summary { cursor: pointer; font: 600 12.5px var(--body); color: var(--accent); padding: 4px 0; }
.free-set[open] summary { margin-bottom: 8px; }
.free-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.free-days label { display: inline-flex; }
.free-days input { position: absolute; opacity: 0; pointer-events: none; }
.free-days span { padding: 6px 11px; border-radius: 999px; background: var(--seg-track); font: 600 12.5px var(--body); cursor: pointer; }
.free-days input:checked + span { background: var(--brown); color: #fff; }
.free-out { display: grid; gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.free-day b { display: block; font: 600 13px var(--body); color: var(--dark); margin-bottom: 6px; text-transform: none; }
.free-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.free-slots button { border: 1px solid #e2c29c; background: var(--mint-soft); color: #8a5d3b; border-radius: 12px; padding: 8px 12px; font: 600 13.5px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.free-slots button:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.free-none { font-size: 13.5px; color: var(--ink2); padding: 8px 0; }
@media (max-width: 700px) { .dform__row--free { grid-template-columns: 1fr 1fr; } }
/* перенос мышью */
@media (hover: hover) and (pointer: fine) {
  #cal .wk__col .ev[data-appt] { cursor: grab; }
  #cal .wk__col .ev[data-appt]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
}
body.dnd-on, body.dnd-on * { user-select: none !important; cursor: grabbing !important; }
#cal .ev.is-dragging { z-index: 20 !important; opacity: .95; box-shadow: 0 14px 30px -10px rgba(70, 48, 30, .45), 0 0 0 2px var(--accent) !important; transition: none; }
.dnd-time { position: absolute; right: 6px; top: 4px; padding: 2px 7px; border-radius: 999px; background: var(--brown); color: #fff; font: 700 11px var(--body); font-style: normal; pointer-events: none; }
.undo-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 320; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(70, 48, 30, .94); color: #fff; font: 500 13.5px var(--body); box-shadow: var(--glass-shadow-lg); }
.undo-toast button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--mint); color: #2e2219; font: 700 13px var(--body); cursor: pointer; flex: none; }
@media (max-width: 700px) { .undo-toast { bottom: calc(96px + env(safe-area-inset-bottom)); border-radius: 18px; } }
/* карточка приёма: WhatsApp и быстрый перенос */
.dx-wa, .dx-move { margin: 4px 0 14px; }
.dx-wa__b, .dx-move__b { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-wa__go { background: #1f9d55 !important; border-color: #1f9d55 !important; }
.dx-wa__done { display: block; margin-top: 6px; font-size: 12px; color: var(--good); }
.dx-move__b button { border: 1px solid var(--line-strong); background: #fffaf4; border-radius: 999px; padding: 7px 12px; font: 600 12.5px var(--body); color: var(--brown); cursor: pointer; }
.dx-move__b button:hover { background: var(--aqua-soft); }
/* напоминания на завтра */
.tm-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.tm-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fbf6ef; }
.tm-row time { font: 700 15px var(--head); }
.tm-row span { display: grid; gap: 2px; min-width: 0; } .tm-row b { font: 600 14px var(--body); } .tm-row small { font-size: 12px; color: var(--ink2); }
.tm-row.is-done { background: #eef8f2; }
.tm-row .btn:not(.btn--ghost) { background: #1f9d55 !important; border-color: #1f9d55 !important; }
/* памятки пациенту */
.memos { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; background: #fffaf4; }
.memos__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.memos__head b { display: block; font: 700 17px var(--head); letter-spacing: -.02em; } .memos__head small { font-size: 12px; color: var(--ink2); }
.memos__list { display: grid; gap: 6px; margin-top: 10px; }
.memos__list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #fbf6ef; }
.memos__list li span { flex: 1; min-width: 0; display: grid; } .memos__list li b { font: 600 14px var(--body); } .memos__list li small { font-size: 12px; color: var(--ink2); }
.memos__empty { margin-top: 8px; font-size: 13px; color: var(--ink2); }
#memoDlg textarea { min-height: 200px; font-size: 14px; line-height: 1.55; }
.memo-print { font-size: 13pt; line-height: 1.6; margin: 10px 0 18px; }
/* приложение на телефоне */
.app-steps { margin: 6px 0 0 18px; display: grid; gap: 4px; font-size: 13.5px; list-style: decimal; }
.app-ok { color: var(--good); font-weight: 600; }
.app-keys { margin-top: 12px; } .app-keys kbd { margin: 0 2px; }
/* WhatsApp — фирменный зелёный (сильнее общего стиля главных кнопок) */
.btn.dx-wa__go:not(.btn--ghost):not(.btn--danger):not(.btn--light), .tm-row .btn:not(.btn--ghost):not(.btn--danger):not(.btn--light) { background: #1f9d55 !important; border-color: #1f9d55 !important; box-shadow: 0 6px 16px -8px rgba(31, 157, 85, .7) !important; }
.btn.dx-wa__go:not(.btn--ghost):hover, .tm-row .btn:not(.btn--ghost):hover { background: #178347 !important; }

/* ===================== «Пригласите коллегу» (referral.js) ===================== */
.ref-lv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--brown); font: 700 12.5px var(--body); white-space: nowrap; }
.ref-lv::before { content: "★"; color: var(--mint); }
.ref-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; margin-top: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(140deg, #faf3ea, #f5e8d8); box-shadow: inset 0 0 0 1px var(--line); }
.ref-copy { display: flex; gap: 8px; margin-top: 4px; }
.ref-copy input { flex: 1; min-width: 0; font: 600 14px var(--body); color: var(--brown); background: #fffaf4; }
.ref-code { margin-top: 8px; font-size: 13px; color: var(--ink2); }
.ref-code b { color: var(--dark); letter-spacing: .06em; font-size: 14px; }
.ref-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ref-share .btn--ghost.ref-wa { color: #178347 !important; }
.ref-share .btn--ghost.ref-tg { color: #1f7fb8 !important; }
.ref-qr { margin: 0; display: grid; justify-items: center; gap: 6px; }
.ref-qr img { width: 132px; height: 132px; image-rendering: pixelated; border-radius: 12px; background: #fffaf4; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.ref-qr .link { font-size: 12.5px; }
.ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ref-stats > div { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.ref-stats b { font: 700 24px/1.1 var(--head); color: var(--dark); font-variant-numeric: tabular-nums; }
.ref-stats span { font-size: 12.5px; line-height: 1.3; color: var(--ink2); }
.ref-stats .is-gift { background: linear-gradient(140deg, #d29a63, #8a5d3b); box-shadow: none; }
.ref-stats .is-gift b, .ref-stats .is-gift span { color: #fff; }
.ref-level { margin-top: 14px; padding: 14px 16px 34px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ref-level__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13.5px; }
.ref-level__t span { color: var(--ink2); }
.ref-track { position: relative; height: 8px; margin: 20px 10px 0 4px; border-radius: 99px; background: var(--seg-track); }
.ref-track > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--accent)); }
.ref-mark { position: absolute; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); }
.ref-mark em { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fffaf4; box-shadow: inset 0 0 0 2px var(--line-strong); font: 700 11px var(--body); font-style: normal; color: var(--ink2); }
.ref-mark.is-on em { background: var(--accent); color: #fff; box-shadow: none; }
.ref-mark small { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: var(--ink2); }
.ref-mark:last-of-type small { left: auto; right: -6px; transform: none; }
.ref-mark:first-of-type small { left: -4px; transform: none; }
.ref-price { margin: 34px 0 -18px; font-size: 13px; color: var(--ink2); }
.ref-h { margin: 18px 0 8px; font: 700 15px var(--head); color: var(--dark); }
.ref-list { display: grid; gap: 6px; }
.ref-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: #fbf6ef; }
.ref-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); color: var(--brown); font: 700 13px var(--body); }
.ref-list__m { display: grid; min-width: 0; }
.ref-list__m b { font: 600 14px var(--body); }
.ref-list__m small { font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-st { padding: 4px 10px; border-radius: 999px; font: 600 12px var(--body); background: #fff4dc; color: #8a5a00; white-space: nowrap; }
.ref-st.is-paid { background: #e3f5ec; color: var(--good); }
.ref-st.is-off { background: #f1e8dc; color: var(--ink2); }
.ref-empty { padding: 14px 16px; border-radius: 14px; background: #fbf6ef; font-size: 13.5px; color: var(--ink2); }
.ref-bonus { display: grid; }
.ref-bonus li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.ref-bonus b { color: var(--good); }
.ref-bonus time { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.ref-rules { margin-top: 14px; font-size: 13.5px; }
.ref-rules summary { cursor: pointer; color: var(--brown); font-weight: 600; }
.ref-rules ol { margin: 8px 0 0 18px; display: grid; gap: 5px; list-style: decimal; color: var(--ink2); line-height: 1.45; }
.ref-subnote { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--mint-soft); font-size: 13px; line-height: 1.5; color: var(--dark); }
.ref-subnote .link { font-weight: 600; }
.ref-toast span { line-height: 1.35; }
.ref-print { max-width: 520px; margin: 0 auto; text-align: center; }
.ref-print img { display: block; width: 240px; height: 240px; margin: 14px auto; image-rendering: pixelated; }
.ref-print__eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.ref-print__big { margin: 6px 0; font-size: 26px; font-weight: 800; }
.gate__join { margin-top: 14px; font-size: 13px; text-align: center; color: var(--ink2); }
.gate__join a { color: var(--brown); font-weight: 600; }
/* ===================== Первые шаги нового врача ===================== */
.welcome { margin: 0 0 14px; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(140deg, #faf3ea 0%, #f5e8d8 100%); box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow); }
.welcome__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.welcome__head h3 { font: 700 18px/1.25 var(--head); color: var(--dark); }
.welcome__head p { margin-top: 4px; font-size: 13.5px; color: var(--ink2); }
.welcome__prog { height: 6px; margin: 12px 0; border-radius: 99px; background: #fffaf4; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.welcome__prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--accent)); }
.welcome__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.welcome__steps li { display: flex; }
.welcome__steps button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 0; border-radius: 14px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--dark); text-align: left; cursor: pointer; }
.welcome__steps button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.welcome__steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); color: var(--brown); font: 700 13px var(--body); font-style: normal; }
.welcome__steps b { display: block; font: 600 13.5px/1.3 var(--body); }
.welcome__steps small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink2); }
.welcome__steps .is-done { cursor: default; opacity: .78; }
.welcome__steps .is-done i { background: var(--good); color: #fff; }
.welcome__steps .is-done b { text-decoration: line-through; text-decoration-color: rgba(70, 48, 30, .35); }
@media (max-width: 1100px) { .welcome__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ref-link { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .ref-copy { flex-direction: column; }                 /* ссылка целиком на всю ширину, кнопка — под ней */
  .ref-copy input { font-size: 13.5px; }
  .ref-copy .btn { width: 100%; }
  .ref-qr { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; }
  .ref-qr img { width: 112px; height: 112px; }
  .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ref-stats b { font-size: 21px; }
  .ref-level { padding: 12px 14px 34px; }
  .ref-list li { grid-template-columns: 32px minmax(0, 1fr); }
  .ref-av { width: 32px; height: 32px; font-size: 12px; }
  .ref-st { grid-column: 2; justify-self: start; }
  .ref-bonus li { grid-template-columns: auto minmax(0, 1fr); } .ref-bonus time { grid-column: 2; }
  .welcome { padding: 14px; }
  .welcome__head h3 { font-size: 16px; }
  .welcome__steps { grid-template-columns: 1fr; gap: 6px; }
}
/* текущий тариф — в палитре темы (было бежевое) */
.sub-p.is-cur { background: #faf3ea; }
/* ===================== логины ассистентов (окно «Доступ ассистента») ===================== */
.asg-acc { margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.asg-acc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.asg-acc__head b { font: 700 15px var(--head); } .asg-acc__head small { font-size: 12.5px; color: var(--ink2); }
.asg-acc__list { display: grid; gap: 6px; margin-bottom: 10px; }
.asg-acc__list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); }
.asg-acc__list li span { flex: 1; min-width: 0; display: grid; } .asg-acc__list li b { font: 600 14px var(--body); overflow-wrap: anywhere; }
.asg-acc__list li small { font-size: 12px; color: var(--ink2); }
.asg-acc__list .link { font-size: 13px; white-space: nowrap; } .asg-acc__del { color: var(--bad) !important; }
.asg-acc__new { display: flex; gap: 8px; } .asg-acc__new input { flex: 1; min-width: 0; }
.asg-pass { margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mint-soft); font-size: 13.5px; }
.asg-pass pre { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fffaf4; font: 600 13.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
/* ===================== «Оплатить подписку» ===================== */
.pay-req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; box-shadow: inset 0 0 0 1px #f1e2b8; font-size: 13.5px; }
.pay-req b { width: 100%; } .pay-req span { color: var(--ink2); }
.pay-req--new { background: var(--aqua-soft); box-shadow: inset 0 0 0 1px var(--line); } .pay-req--new b { width: auto; }
.pay-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; width: 100%; }
.pay-form label { display: grid; gap: 4px; font: 600 12.5px var(--body); color: var(--ink2); }
.pay-form__sum { grid-column: 1 / -1; font-size: 14px; } .pay-form__sum b { font-size: 17px; color: var(--dark); } .pay-form__sum small { color: var(--good); }
.pay-form__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-form label.pay-form__offer { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; font-weight: 500; line-height: 1.4; }
.pay-form__offer input { margin-top: 2px; flex: none; }
/* оплата по СБП: QR + шаги, код перевода */
.pay-sbp { background: var(--aqua-soft); box-shadow: inset 0 0 0 1px var(--line); }
.pay-sbp__body { display: flex; gap: 16px; align-items: flex-start; width: 100%; }
.pay-sbp__qr { flex: none; width: 150px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pay-sbp__qr svg { display: block; width: 100%; height: auto; }
.pay-sbp__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.pay-sbp__code { padding: 1px 6px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); letter-spacing: .04em; }
.pay-sbp__note { width: 100%; color: var(--ink2); }
.pay-req--wait { background: #eef6ea; box-shadow: inset 0 0 0 1px #cfe3c4; }
@media (max-width: 560px) { .pay-sbp__body { flex-direction: column; align-items: center; } .pay-sbp__qr { width: 180px; } }
@media (max-width: 700px) { .pay-form { grid-template-columns: 1fr; } .asg-acc__new { flex-direction: column; } .asg-acc__list li { flex-wrap: wrap; } }
/* ===================== Зубная карта практики (teethmap.js) ===================== */
.tm { padding: 22px 24px 20px; }
.tm__head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.tm__head h3 { font: 700 20px/1.2 var(--head); letter-spacing: -.02em; color: var(--dark); }
.tm__head p { margin-top: 5px; max-width: 520px; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }
.tm__kpis { display: flex; gap: 10px; flex: none; }
.tm__kpis div { display: grid; min-width: 112px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(140deg, #faf3ea, #f5e8d8); box-shadow: inset 0 0 0 1px var(--line); }
.tm__kpis b { font: 700 24px/1.1 var(--head); color: var(--brown); font-variant-numeric: tabular-nums; }
.tm__kpis span { font-size: 12px; color: var(--ink2); }
.tm__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.tm__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tm__filters button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #f6eee3; box-shadow: inset 0 0 0 1px var(--line); font: 600 12.5px var(--body); color: var(--dark); cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s; }
.tm__filters button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tm__filters button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.tm__filters button small { color: var(--ink2); font-weight: 600; }
.tm__filters button.is-on { background: var(--brown); color: #fff; box-shadow: 0 6px 16px -8px rgba(138, 93, 59, .8); }
.tm__filters button.is-on small { color: rgba(255, 255, 255, .75); }
.tm__dent { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--seg-track); }
.tm__dent button { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: 600 12.5px var(--body); color: var(--ink2); cursor: pointer; }
.tm__dent button.is-active { background: #fffaf4; color: var(--dark); box-shadow: 0 1px 3px rgba(70, 48, 30, .12); }
.tm__stage { position: relative; margin-top: 10px; border-radius: 18px; background: radial-gradient(60% 70% at 50% 50%, #ffffff 0%, #faf3ea 70%, #f4e8da 100%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tm-svg { display: block; width: 100%; height: auto; }
.tm-ml { stroke: #dccbb8; stroke-width: 1.2; stroke-dasharray: 4 6; }
.tm-side { font: 700 15px var(--body); fill: #b5a391; }
.tm-crown { fill: url(#tm-crown); stroke: #d3bfa9; stroke-width: 1.4; }
.tm-root { fill: url(#tm-root); stroke: #d7c6ad; stroke-width: 1.2; }
.tm-heat { stroke: none; mix-blend-mode: multiply; transition: opacity .45s ease, fill .45s ease; }
.tm-shine { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .85; }
.tm-n { font: 600 11px var(--body); fill: #9a8674; pointer-events: none; transition: fill .2s; }
.tm-t.has .tm-n { fill: #fff; paint-order: stroke; stroke: rgba(70, 48, 30, .35); stroke-width: 2px; }
.tm-hit { fill: transparent; }
.tm-badge circle { fill: #fff; stroke: var(--bc); stroke-width: 2.4; }
.tm-badge text { font: 700 11.5px var(--body); fill: var(--bc); }
.tm-t { cursor: pointer; outline: none; }
.tm-hov { transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), filter .28s; transform-box: fill-box; }
.tm-t:hover .tm-hov.up, .tm-t:focus-visible .tm-hov.up { transform: translateY(-7px); }
.tm-t:hover .tm-hov.lo, .tm-t:focus-visible .tm-hov.lo { transform: translateY(7px); }
.tm-t:hover .tm-hov, .tm-t:focus-visible .tm-hov { filter: drop-shadow(0 8px 10px rgba(176, 119, 63, .32)); }
.tm-t:hover .tm-crown { stroke: var(--accent); }
.tm-t.is-sel .tm-crown { stroke: var(--accent); stroke-width: 2.6; }
.tm-t.is-sel .tm-hov { filter: drop-shadow(0 0 10px rgba(176, 119, 63, .65)); animation: tmPulse 1.8s ease-in-out infinite; }
@keyframes tmPulse { 50% { filter: drop-shadow(0 0 16px rgba(201, 154, 104, .85)); } }
/* появление волной от центра к краям, верх и низ навстречу друг другу */
.tm-in { transform-box: fill-box; animation: tmIn .7s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: var(--d); }
.tm-in.up { --from: -26px; } .tm-in.lo { --from: 26px; }
@keyframes tmIn { from { opacity: 0; transform: translateY(var(--from)) scale(.86); } to { opacity: 1; transform: none; } }
.tm-badge { transform-box: fill-box; transform-origin: center; animation: tmPop .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--d, 0s) + .55s); }
.tm-in .tm-badge { animation-delay: calc(var(--d) + .5s); }
@keyframes tmPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.tm-sweep { animation: tmSweep 2.4s ease-in-out .9s 1 both; mix-blend-mode: soft-light; pointer-events: none; }
@keyframes tmSweep { from { transform: translateX(0); } to { transform: translateX(1400px); } }
.tm-gum { animation: tmFade 1s ease both; } @keyframes tmFade { from { opacity: 0; } }
.tm.no-enter .tm-in, .tm.no-enter .tm-badge, .tm.no-enter .tm-gum { animation: none; }
.tm.no-enter .tm-sweep { display: none; }
.tm__detail { margin-top: 12px; min-height: 52px; }
.tm-hint { font-size: 13.5px; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-pill { display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border: 0; border-radius: 999px; background: var(--mint-soft); color: var(--brown); font: 500 12.5px var(--body); cursor: pointer; }
.tm-pill b { font-weight: 800; }
.tm-det { padding: 14px 16px; border-radius: 16px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); animation: tmFade .3s ease; }
.tm-det__h { display: flex; align-items: center; gap: 12px; }
.tm-det__h > div { flex: 1; display: grid; } .tm-det__h b { font: 700 15px var(--head); text-transform: capitalize; } .tm-det__h small { font-size: 12.5px; color: var(--ink2); }
.tm-det__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #d29a63, #8a5d3b); color: #fff; font: 800 15px var(--body); box-shadow: 0 8px 16px -10px rgba(138, 93, 59, .9); }
.tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin-top: 12px; max-height: 240px; overflow: auto; }
.tm-list button { width: 100%; display: grid; gap: 4px; padding: 9px 12px; border: 0; border-radius: 12px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; font: inherit; color: var(--dark); transition: box-shadow .2s, transform .15s; }
.tm-list button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); }
.tm-list__m { display: grid; } .tm-list__m b { font: 600 14px var(--body); } .tm-list__m small { font-size: 12px; color: var(--ink2); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-chips i { font-style: normal; padding: 2px 8px; border-radius: 999px; font: 600 11.5px var(--body); color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
@media (max-width: 1100px) { .tm__head { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .tm-in, .tm-badge, .tm-sweep, .tm-gum, .tm-t.is-sel .tm-hov { animation: none !important; } }
/* ===================== Режим «Приём идёт» (visit.js) ===================== */
.vm-start { width: 100%; justify-content: center; gap: 10px; margin: 6px 0 12px; height: 46px; font-size: 15px !important; }
.vm-start__dot { width: 10px; height: 10px; border-radius: 50%; background: #f0c592; box-shadow: 0 0 0 0 rgba(240, 197, 146, .7); animation: vmDot 1.6s infinite; }
@keyframes vmDot { 70% { box-shadow: 0 0 0 9px rgba(240, 197, 146, 0); } }
.vm-done { margin: 6px 0 12px; padding: 9px 12px; border-radius: 12px; background: #e3f5ec; color: var(--good); font-weight: 600; font-size: 13.5px; }
body.vm-on { overflow: hidden; }
.vm { position: fixed; inset: 0; z-index: 400; overflow: auto; background: radial-gradient(70% 60% at 100% 0%, rgba(176, 119, 63, .16), transparent 70%), #efe5d8; animation: vmIn .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes vmIn { from { opacity: 0; transform: scale(.985); } }
.vm__in { max-width: 1240px; margin: 0 auto; padding: 20px 22px 28px; display: grid; gap: 14px; }
.vm__head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 22px; background: linear-gradient(140deg, #d29a63 0%, #b0773f 40%, #8a5d3b 100%); color: #fff; box-shadow: 0 20px 44px -24px rgba(138, 93, 59, .8); }
.vm__who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.vm__av { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font: 800 18px var(--body); }
.vm__who h2 { font: 800 24px/1.15 var(--head); letter-spacing: -.02em; color: #fff; }
.vm__who p { margin-top: 3px; font-size: 13.5px; opacity: .9; }
.vm__time { display: grid; justify-items: end; gap: 2px; }
.vm__time small { font-size: 12px; opacity: .85; }
.vm__time b { font: 800 30px/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vm__time.is-over b { color: #ffd59a; }
.vm__prog { width: 180px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.vm__prog i { display: block; height: 100%; width: 0; background: #f0c592; transition: width 1s linear; }
.vm__time.is-over .vm__prog i { background: #ffd59a; }
.vm__headbtns .btn--ghost { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35) !important; }
.vm__flags { display: flex; flex-wrap: wrap; gap: 10px; }
.vm-alert { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.vm-alert b { font-size: 14px; }
.vm-alert--bad { background: #fdecec; box-shadow: inset 0 0 0 1.5px #f2b8b6; color: #8e1f1c; flex: 1 1 100%; animation: vmBad 2.4s ease-in-out 2; }
.vm-alert--bad b { font-size: 16px; }
@keyframes vmBad { 50% { box-shadow: inset 0 0 0 1.5px #e5262a, 0 0 0 6px rgba(229, 38, 42, .12); } }
.vm-alert--warn { background: #fff6e0; box-shadow: inset 0 0 0 1px #f1dfae; color: #6b4a00; }
.vm-alert--ok { background: #e8f6ee; color: var(--good); }
.vm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vm-card { padding: 16px 18px; border-radius: 20px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow); display: grid; gap: 10px; align-content: start; }
.vm-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vm-card__h h3 { font: 700 17px var(--head); } .vm-card__h span { font-size: 12.5px; color: var(--ink2); }
.vm-card__h--sub { margin-top: 6px; } .vm-card__h--sub h3 { font-size: 15px; }
.vm-plan { display: grid; gap: 6px; }
.vm-plan label { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fbf6ef; cursor: pointer; transition: background .2s; }
.vm-plan input { width: 20px; height: 20px; accent-color: var(--good); }
.vm-plan b { display: block; font: 600 14px var(--body); } .vm-plan small { font-size: 12.5px; color: var(--ink2); } .vm-plan em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink2); }
.vm-plan .is-done label { background: #e8f6ee; } .vm-plan .is-done b { text-decoration: line-through; text-decoration-color: rgba(30, 142, 90, .5); color: var(--good); }
.vm-card textarea { min-height: 150px; font-size: 15px; line-height: 1.55; }
.vm-phr { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-phr button { border: 0; padding: 6px 11px; border-radius: 999px; background: var(--aqua-soft); color: var(--brown); font: 600 12.5px var(--body); cursor: pointer; }
.vm-phr button:hover { background: var(--mint-soft); }
.vm-photos, .vx-ph, .ph-g__row { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-ph { position: relative; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #efe4d6; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.vm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vm-ph:hover img { transform: scale(1.06); }
.vm-ph i { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font: 600 10.5px var(--body); font-style: normal; color: #fff; background: linear-gradient(transparent, rgba(70, 48, 30, .75)); }
.vm-ph--add { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--brown); font: 600 12.5px var(--body); background: var(--aqua-soft); box-shadow: inset 0 0 0 1.5px dashed var(--line-strong); border: 1.5px dashed var(--line-strong); }
.vm-ph--add span { font-size: 24px; line-height: 1; }
.vm__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); }
.vm-btns { display: flex; flex-wrap: wrap; gap: 8px; } .vm-btns--end { justify-content: flex-end; }
.vm-finish { height: 50px; padding: 0 28px !important; font-size: 16px !important; background: #1f9d55 !important; border-color: #1f9d55 !important; box-shadow: 0 10px 22px -10px rgba(31, 157, 85, .8) !important; }
.vm-empty { font-size: 13.5px; color: var(--ink2); }
.vm-fin { position: fixed; inset: 0; z-index: 410; display: grid; place-items: center; padding: 16px; background: rgba(70, 48, 30, .45); animation: tmFade .2s; }
.vm-fin__box { width: min(520px, 100%); display: grid; gap: 8px; padding: 22px; border-radius: 22px; background: #fffaf4; box-shadow: var(--glass-shadow-lg); }
.vm-fin__box h3 { font: 800 20px var(--head); } .vm-fin__sub, .vm-fin__hint { font-size: 13px; color: var(--ink2); }
.vm-fin__fb { margin-top: 6px; }
.vm-rc { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-rc button { border: 0; padding: 7px 12px; border-radius: 999px; background: #f6eee3; box-shadow: inset 0 0 0 1px var(--line); font: 600 12.5px var(--body); color: var(--dark); cursor: pointer; }
.vm-rc button.is-on { background: var(--brown); color: #fff; box-shadow: none; }
/* блок в карточке пациента */
.vx-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; background: #fffaf4; display: grid; gap: 10px; }
.vx-card__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vx-card__h h4 { font: 700 17px var(--head); } .vx-card__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-recall { padding: 8px 12px; border-radius: 12px; background: var(--aqua-soft); font-size: 13.5px; } .vx-recall.is-late { background: #fff4dc; }
.vx-recall small { color: var(--ink2); }
.vx-list { display: grid; gap: 5px; }
.vx-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fbf6ef; font-size: 13.5px; }
.vx-list li span { flex: 1; min-width: 0; } .vx-list li small { color: var(--ink2); font-size: 12px; white-space: nowrap; }
/* диалоги */
.vx-dlg { width: min(640px, calc(100vw - 24px)); } .vx-dlg--wide { width: min(940px, calc(100vw - 24px)); }
.vx-dform { display: grid; gap: 10px; } .vx-dform .grow { flex: 1; }
.ph-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ph-add label { display: grid; gap: 4px; font: 600 12.5px var(--body); color: var(--ink2); }
.ph-drop { display: grid; place-items: center; padding: 26px; border-radius: 16px; border: 2px dashed var(--line-strong); background: var(--aqua-soft); color: var(--brown); font-weight: 700; cursor: pointer; }
.ph-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph-view figure { margin: 0; display: grid; gap: 6px; } .ph-view img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: #3b2f26; }
.ph-view figcaption { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink2); } .ph-del { color: var(--bad) !important; margin-left: auto; }
.ph-groups { display: grid; gap: 12px; max-height: 30vh; overflow: auto; } .ph-g__h { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.ph-cmp { position: relative; border-radius: 14px; overflow: hidden; background: #3b2f26; aspect-ratio: 4 / 3; max-height: 56vh; }
.ph-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ph-cmp__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.ph-cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fffaf4; box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.ph-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ph-cmp__l, .ph-cmp__r { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(70, 48, 30, .7); color: #fff; font: 700 12px var(--body); }
.ph-cmp__l { left: 10px; } .ph-cmp__r { right: 10px; }
.est-tbl { display: grid; gap: 5px; max-height: 38vh; overflow: auto; }
.est-row { display: grid; grid-template-columns: 22px 80px minmax(0, 1fr) 120px; gap: 8px; align-items: center; }
.est-row--h span { font: 600 12px var(--body); color: var(--ink2); } .est-row input[type="checkbox"] { width: 18px; height: 18px; }
.est-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.est-var { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.est-var.is-rec { background: linear-gradient(140deg, #faf3ea, #f5e8d8); box-shadow: inset 0 0 0 2px var(--accent); }
.est-var b { font: 800 22px var(--head); color: var(--brown); } .est-var__n { font-weight: 700; }
.est-var label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); } .est-var label input { width: 80px; }
.sign-doc { display: inline-flex; }
.sign-text { max-height: 34vh; overflow: auto; padding: 14px 16px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; }
.sign-text h1 { font-size: 17px; margin-bottom: 8px; } .sign-text h2 { font-size: 15px; margin: 12px 0 6px; } .sign-text p { margin-bottom: 6px; }
.sign-pad { position: relative; border-radius: 16px; background: #fffaf4; box-shadow: inset 0 0 0 2px var(--line-strong); touch-action: none; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 900 / 260; cursor: crosshair; touch-action: none; }
.sign-pad__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #d3bfa9; font: 600 15px var(--body); pointer-events: none; transition: opacity .2s; }
.sign-pad::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 26%; border-bottom: 1.5px dashed #dccbb8; pointer-events: none; }
.sign-pad.is-drawn .sign-pad__hint { opacity: 0; }
.sign-print { display: flex; align-items: center; gap: 14px; margin-top: 18px; } .sign-print img { height: 70px; }
.fb-list, .rc-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.fb-list li, .rc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fbf6ef; }
.rc-list li { grid-template-columns: minmax(0, 1fr) auto auto; }
.fb-who { display: grid; } .fb-who b { font: 600 14px var(--body); } .fb-who small { font-size: 12.5px; color: var(--ink2); }
.fb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.fb-wa { color: #178347 !important; } .fb-nophone { font-size: 12px; color: var(--ink2); }
.fb-rate { display: inline-flex; gap: 3px; }
.fb-rate button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); font: 700 13px var(--body); cursor: pointer; }
.fb-rate button.is-on { background: var(--brown); color: #fff; }
.fb-bad, .fb-list .fb-bad { padding: 3px 9px; border-radius: 999px; background: #fdecec; color: var(--bad); font: 700 12px var(--body); }
.fb-list li.fb-bad { background: #fff4f3; box-shadow: inset 0 0 0 1px #f2c9c7; }
.fb-good { background: #eef8f2 !important; }
.rc-due { font: 700 12.5px var(--body); color: var(--ink2); white-space: nowrap; } .rc-due.is-late { color: var(--bad); } .rc-due.is-soon { color: var(--warn); }
.md-x { margin-left: 6px; }
@media (max-width: 860px) {
  .vm__in { padding: 12px 12px 90px; } .vm__head { grid-template-columns: 1fr auto; padding: 14px; }
  .vm__headbtns { grid-column: 1 / -1; } .vm__who h2 { font-size: 19px; } .vm__time b { font-size: 24px; } .vm__prog { width: 120px; }
  .vm__grid, .est-vars { grid-template-columns: 1fr; }
  .vm__foot { position: sticky; bottom: 0; } .vm-finish { width: 100%; }
  .est-row { grid-template-columns: 22px 54px minmax(0, 1fr) 90px; }
  .ph-add { grid-template-columns: 1fr; } .fb-list li, .rc-list li { grid-template-columns: 1fr; } .fb-acts { justify-content: flex-start; }
}
@media print { .vm { display: none !important; } }
.vm__foot .btn.vm-finish:not(.btn--ghost) { background: #1f9d55 !important; border-color: #1f9d55 !important; box-shadow: 0 10px 22px -10px rgba(31, 157, 85, .8) !important; }
.vm__foot .btn.vm-finish:not(.btn--ghost):hover { background: #178347 !important; }
@media (max-width: 860px) { .vm__head { grid-template-columns: 1fr; gap: 10px; } .vm__time { justify-items: start; } .vm__who h2 { font-size: 20px; } .vm__headbtns { grid-column: auto; } }
/* ===================== Зал: рост и вес меняют фигуру ===================== */
.ps-hw { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.ps-hw label { display: flex; align-items: center; gap: 10px; flex: 1 1 210px; font: 600 13px var(--body); color: var(--ink2); }
.ps-hw input[type="range"] { flex: 1; min-width: 90px; height: 6px; accent-color: var(--accent); cursor: pointer; }
.ps-hw b { min-width: 58px; font: 700 14px var(--body); color: var(--dark); font-variant-numeric: tabular-nums; text-align: right; }
.ps-bmi { padding: 4px 11px; border-radius: 999px; font: 700 12.5px var(--body); font-style: normal; white-space: nowrap; }
.ps-bmi--norm { background: #e3f5ec; color: var(--good); } .ps-bmi--low { background: #e6f0fb; color: #2f5fb3; }
.ps-bmi--over { background: #fff4dc; color: #8a5a00; } .ps-bmi--high { background: #fdecec; color: var(--bad); }
.gbody__top { flex-wrap: wrap; gap: 8px; } .gbody__top .ps-hw { flex: 1 1 100%; margin: 0; }
.gstat svg.psbody { max-width: 300px; }
svg.psbody .ps-ruler line { stroke: #d3bfa9; stroke-width: .7; }
svg.psbody .ps-ruler .ps-ruler__top { stroke: var(--accent); stroke-width: .6; stroke-dasharray: 1.6 1.4; }
svg.psbody .ps-ruler text { font: 600 5.6px var(--body); fill: #a89685; }
svg.psbody .ps-ruler .ps-ruler__h { font: 800 6.6px var(--body); fill: var(--brown); }
svg.psbody path, svg.psbody ellipse { transition: d .25s ease; }
/* ===================== Публичная анкета, отзывы, ассистенты на платформе (public.js) ===================== */
.pub-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; }
.pub-stars i { font-style: normal; } .pub-stars i:first-child { color: #ebe0d2; }
.pub-stars i:last-child { position: absolute; left: 0; top: 0; width: var(--p); overflow: hidden; white-space: nowrap; color: #f2b01e; }
.pub-top { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.pub-score { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #faf3ea, #f5e8d8); box-shadow: inset 0 0 0 1px var(--line); }
.pub-score > b { font: 800 40px/1 var(--head); color: var(--brown); } .pub-score > span { font-size: 12.5px; color: var(--ink2); }
.pub-dist { display: grid; gap: 3px; margin-top: 6px; } .pub-dist div { display: grid; grid-template-columns: 24px 1fr 20px; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink2); }
.pub-dist i { height: 6px; border-radius: 9px; background: #fffaf4; overflow: hidden; } .pub-dist em { display: block; height: 100%; background: #f2b01e; }
.pub-form { display: grid; gap: 10px; }
.pub-sw { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--aqua-soft); cursor: pointer; }
.pub-sw input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brown); } .pub-sw b { display: block; font-size: 14px; } .pub-sw small { font-size: 12px; color: var(--ink2); }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; } .pub-grid label { display: grid; gap: 4px; font: 600 12.5px var(--body); color: var(--ink2); } .pub-wide { grid-column: 1 / -1; }
.pub-brand { display: grid; gap: 6px; font: 600 12.5px var(--body); color: var(--ink2); } .pub-brand > div { display: flex; gap: 8px; }
.pub-brand button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.pub-brand button.is-on { box-shadow: 0 0 0 2.5px var(--c); } .pub-brand.is-locked button { opacity: .35; cursor: not-allowed; } .pub-brand small { font-weight: 500; }
.pub-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub-revs { display: grid; gap: 8px; }
.pub-revs > li { padding: 12px 14px; border-radius: 14px; background: #fbf6ef; display: grid; gap: 6px; }
.pub-rev__h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pub-rev__h small { margin-left: auto; color: var(--ink2); font-size: 12px; }
.pub-revs p { font-size: 14px; white-space: pre-line; }
.pub-reply { padding: 8px 12px; border-radius: 10px; background: var(--aqua-soft); font-size: 13.5px; } .pub-reply b { font-size: 12px; color: var(--brown); }
.pub-reply-form { display: grid; gap: 6px; }
.ref-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ref-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.ref-perks i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fffaf4; box-shadow: inset 0 0 0 1.5px var(--line-strong); font: 800 12px var(--body); font-style: normal; color: var(--ink2); }
.ref-perks b { display: block; font-size: 13.5px; } .ref-perks small { font-size: 12px; color: var(--ink2); line-height: 1.35; }
.ref-perks .is-on { background: #f8efe4; box-shadow: inset 0 0 0 1.5px var(--mint); } .ref-perks .is-on i { background: var(--good); color: #fff; box-shadow: none; }
.ref-cert { margin-top: 10px; }
.ref-camp { display: grid; gap: 2px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, #fff4dc, #ffe9b8); box-shadow: inset 0 0 0 1px #f1d58a; font-size: 13.5px; }
.ref-certp { text-align: center; padding: 60px 40px; border: 6px double #8a5d3b; } .ref-certp h1 { font-size: 34px; margin: 10px 0 24px; }
.ref-certp__eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; } .ref-certp__name { font-size: 26px; font-weight: 800; }
.ref-certp__text { max-width: 520px; margin: 18px auto; font-size: 15px; } .ref-certp__lv { font-weight: 700; } .ref-certp__date { margin-top: 30px; font-size: 13px; color: #555; }
.asg-rate { color: #b07a00 !important; font-weight: 600; }
.asg-acc__head--sub { margin-top: 10px; }
.asg-acc__list li { flex-wrap: wrap; }
.asg-rev { flex-basis: 100%; display: grid; gap: 6px; padding-top: 8px; }
.asg-rev__stars button { border: 0; background: none; font-size: 22px; color: #ebe0d2; cursor: pointer; padding: 0 2px; } .asg-rev__stars .is-on { color: #f2b01e; }
.asg-market { margin-top: 10px; }
.mk-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.mk-list > li { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.mk-who { display: flex; gap: 12px; align-items: center; } .mk-who b { display: block; font-size: 15px; } .mk-who small { display: block; font-size: 12.5px; color: var(--ink2); }
.mk-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, #d29a63, #8a5d3b); color: #fff; font-weight: 800; }
.mk-rate { font-size: 12.5px; color: var(--ink2); }
.mk-skills { display: flex; flex-wrap: wrap; gap: 5px; } .mk-skills i { font-style: normal; padding: 3px 9px; border-radius: 9px; background: var(--aqua-soft); color: var(--brown); font: 600 12px var(--body); }
.mk-about { font-size: 13.5px; color: var(--ink2); }
.mk-act { display: flex; gap: 8px; } .mk-act input { flex: 1; min-width: 0; } .mk-sent { color: var(--good); font-weight: 700; font-size: 13px; }
#btnMyProfile { margin-right: 6px; }
@media (max-width: 700px) { .pub-top, .pub-grid { grid-template-columns: 1fr; } .mk-act { flex-direction: column; } #btnMyProfile { display: none; } }
.bk__slot { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: #e6f0fb; color: #1f4f9a; font-size: 13.5px; }
.pub-book { display: grid; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
/* ===================== Аналитика практики (analytics.js) ===================== */
.an__in { gap: 16px; }
.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 22px; background: linear-gradient(140deg, #d29a63 0%, #b0773f 40%, #8a5d3b 100%); color: #fff; box-shadow: 0 20px 44px -24px rgba(138, 93, 59, .8); }
.an-head h2 { font: 800 24px var(--head); color: #fff; } .an-head p { margin-top: 4px; font-size: 13.5px; opacity: .9; max-width: 560px; }
.an-head__r { display: flex; gap: 8px; align-items: center; }
.an-head .seg { background: rgba(255, 255, 255, .18); } .an-head .seg button { color: #fff !important; } .an-head .seg button.is-active { background: #fffaf4 !important; color: var(--brown) !important; }
.an-head .btn--ghost { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35) !important; }
.an-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.an-kpi { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 18px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow); animation: tmIn .5s ease both; }
.an-kpi small { font-size: 12px; color: var(--ink2); line-height: 1.3; } .an-kpi b { font: 800 22px/1.2 var(--head); color: var(--dark); font-variant-numeric: tabular-nums; } .an-kpi span { font-size: 12px; color: var(--ink2); }
.an-kpi--brand { background: linear-gradient(160deg, #faf3ea, #f5e8d8); } .an-kpi--brand b { color: var(--brown); }
.an-d { font-style: normal; font: 700 12px var(--body); } .an-d.is-up { color: var(--good); } .an-d.is-down { color: var(--bad); }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .an-wide { grid-column: 1 / -1; }
.an-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; padding-top: 8px; }
.an-col { display: grid; grid-template-rows: auto 1fr auto auto; gap: 4px; height: 100%; text-align: center; }
.an-col__v { font: 700 11.5px var(--body); color: var(--ink2); font-variant-numeric: tabular-nums; }
.an-col__bar { position: relative; display: flex; align-items: flex-end; border-radius: 10px; background: #f6eee3; overflow: hidden; }
.an-col__bar i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--brown)); transform-origin: bottom; animation: anGrow .7s cubic-bezier(.2, 1.1, .3, 1) both; animation-delay: calc(var(--i) * 45ms); }
.an-col:hover .an-col__bar i { background: linear-gradient(180deg, var(--mint), var(--accent)); }
@keyframes anGrow { from { transform: scaleY(0); } }
.an-col__pp { display: flex; height: 5px; border-radius: 9px; overflow: hidden; gap: 1px; }
.an-new { background: var(--mint); } .an-rep { background: #2f5fb3; }
.an-col small { font-size: 11.5px; color: var(--ink2); }
.an-legend { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; } .an-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.an-bars { display: grid; gap: 8px; }
.an-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; animation: tmIn .4s ease both; animation-delay: calc(var(--i) * 50ms); }
.an-bar__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark); font-weight: 600; }
.an-bar i { height: 12px; border-radius: 9px; background: #f6eee3; overflow: hidden; } .an-bar em { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--mint), var(--accent)); animation: anW .8s cubic-bezier(.2, 1, .3, 1) both; transform-origin: left; }
.an-bars--svc em { background: linear-gradient(90deg, #8fb2ec, #2f5fb3); }
@keyframes anW { from { transform: scaleX(0); } }
.an-bar b { font: 700 13px var(--body); text-align: right; font-variant-numeric: tabular-nums; } .an-bar b small { display: block; font: 500 11px var(--body); color: var(--ink2); }
.an-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.an-wd div { display: grid; justify-items: center; gap: 2px; padding: 12px 0; border-radius: 14px; background: rgba(176, 119, 63, var(--a)); color: #fff; }
.an-wd b { font: 800 18px var(--head); } .an-wd small { font-size: 11.5px; opacity: .9; }
.an-est { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .an-est--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-est div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px var(--line); }
.an-est .is-rec { box-shadow: inset 0 0 0 2px var(--accent); background: #f8efe4; }
.an-est b { font: 800 24px var(--head); color: var(--brown); } .an-est span { font-weight: 600; font-size: 13px; } .an-est small { font-size: 11.5px; color: var(--ink2); }
.an-note { font-size: 12.5px; color: var(--ink2); }
.est-choice { display: flex; align-items: center; gap: 8px; font: 600 13px var(--body); color: var(--ink2); }
@media (max-width: 1100px) { .an-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid { grid-template-columns: 1fr; } .an-cols { height: 170px; gap: 4px; } .an-col__v { font-size: 9.5px; } .an-bar { grid-template-columns: 90px minmax(0, 1fr) auto; } }
.an-head .seg { background: rgba(255, 255, 255, .18) !important; box-shadow: none !important; }
.an-head .seg button:not(.is-active) { color: rgba(255, 255, 255, .92) !important; background: transparent !important; }

/* =====================================================================
   ТЁПЛОЕ СТЕКЛО (2026-11): бежевая гамма вместо бирюзовой, карточки и окна — полупрозрачное стекло с размытием
   поверх тёплых пятен света. Цвета выше переведены в тёплую гамму скриптом (v17/warmify.py); здесь — стекло и фон.
   Шапку и нижнее меню на телефоне не размываем: внутри них есть кнопки с position:fixed, размытие предка их бы сдвинуло.
   ===================================================================== */
:root {
  --surface: linear-gradient(150deg, rgba(255, 252, 247, .80), rgba(251, 243, 233, .60));
  --glass-blur: blur(20px) saturate(150%);
  --glass: rgba(255, 252, 247, .78); --glass-strong: rgba(255, 252, 247, .9); --seg-on: #fffaf4; --white: #fffaf4;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(70, 48, 30, .05), 0 16px 40px -24px rgba(70, 48, 30, .36);
  --glass-shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 6px rgba(70, 48, 30, .06), 0 30px 70px -24px rgba(70, 48, 30, .42);
}
html body { background: #efe4d6; }
body::before {
  background:
    radial-gradient(42% 38% at 6% 2%, rgba(255, 250, 242, .95), transparent 70%),
    radial-gradient(34% 32% at 94% 8%, rgba(240, 190, 140, .5), transparent 72%),
    radial-gradient(38% 36% at 80% 64%, rgba(222, 178, 160, .38), transparent 72%),
    radial-gradient(40% 40% at 10% 90%, rgba(205, 212, 178, .45), transparent 72%),
    linear-gradient(160deg, #f4ebdf 0%, #ecdfcf 55%, #e8dac8 100%) !important;
}
.tile:not(.brand), .kpi, .panel:not(.brand):not(.brand--brown), .cc:not(.brand):not(.brand--brown), .cta-line, .cal, .plist, .pcard, .ps-tile:not(.ps-tile--dark), .ps-cr,
.myday, .an-kpi, .vm-card, .memos, .vx-card {
  background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), var(--glass-shadow) !important;
}
.panel .panel, .cc .panel, .pcard .stage, .pcard .visit, .pstats, .ledger, .fill, .ro, .gbox { background: rgba(255, 250, 244, .62) !important; }
dialog, .drawer, .cmdk__box { background: linear-gradient(150deg, rgba(255, 252, 248, .94), rgba(250, 242, 232, .88)) !important; }
.top { background: rgba(255, 250, 244, .9) !important; }
#tabs, .tabs { background: rgba(255, 250, 244, .94) !important; }
.gate__box { background: rgba(255, 252, 247, .9) !important; box-shadow: var(--glass-shadow-lg) !important; }
input, select, textarea { background-color: rgba(255, 252, 248, .85); }

/* личный кабинет пациента: последний вход — зелёный (неделя), жёлтый (месяц), красный (давно), серый (не заходил) */
.lk--fresh { --lk: var(--good); --lk-bg: #e6f4ec; --lk-ink: #17643f; }
.lk--mid { --lk: var(--warn); --lk-bg: #fff4dc; --lk-ink: #8a5f00; }
.lk--old { --lk: var(--bad); --lk-bg: #fdecea; --lk-ink: #a8322d; }
.lk--never { --lk: #a89888; --lk-bg: #f1ebe4; --lk-ink: var(--ink2); }
.lkb { font-style: normal; font: 700 10.5px/1.6 var(--body); padding: 0 7px; border-radius: 999px; background: var(--lk-bg); color: var(--lk-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk) 35%, transparent); white-space: nowrap; }
.lkline { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; border-radius: 16px; background: var(--lk-bg) !important; box-shadow: inset 3px 0 0 var(--lk); }
.lkline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lk); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lk) 22%, transparent); }
.lkline__t { display: grid; flex: 1 1 200px; min-width: 0; } .lkline__t b { font: 600 14px var(--body); color: var(--lk-ink); }
.lkline__t small { font-size: 12.5px; color: var(--ink2); overflow-wrap: anywhere; }
.lkline__acts { display: flex; gap: 6px; margin-left: auto; }
/* «Мой профиль» — первая карточка настроек: анкета врача и реферальная ссылка */
.meprof__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.meprof__av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(150deg, #a8754a, #6f4a2e); color: #fff; font: 700 19px var(--body); box-shadow: 0 6px 16px rgba(111, 74, 46, .25); }
.meprof__who { display: grid; flex: 1 1 200px; min-width: 0; } .meprof__who b { font: 700 19px var(--body); color: var(--dark); } .meprof__who small { font-size: 13px; color: var(--ink2); }
.meprof__fill { margin-bottom: 14px; }
.meprof__ref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: linear-gradient(150deg, rgba(244, 232, 218, .9), rgba(255, 250, 244, .7)); box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .16); }
.meprof__reft { display: grid; grid-column: 1; } .meprof__reft b { font: 700 15px var(--body); color: var(--dark); } .meprof__reft small { font-size: 12.5px; color: var(--ink2); }
.meprof__ref .ref-copy { grid-column: 1; }
.meprof__qr { grid-column: 2; grid-row: 1 / span 3; border-radius: 10px; background: #fff; padding: 4px; }
.meprof__more { grid-column: 1; justify-self: start; font-size: 13px; }
.profdlg { width: min(560px, calc(100vw - 32px)); }
.profdlg .settings-form { max-width: none; }
@media (max-width: 560px) { .meprof__ref { grid-template-columns: 1fr; } .meprof__qr { display: none; } .meprof__top .btn { width: 100%; } }
/* вход на платформе: слева мини-презентация кабинета, справа форма */
.gate--tour { grid-template-columns: minmax(0, 560px) minmax(0, 380px) !important; justify-content: center; align-content: center; gap: 48px; overflow-y: auto; padding: 32px 24px !important; }
.gate-tour { color: #fbefe2; display: grid; gap: 14px; align-content: center; }
.gate-tour__eyebrow { font: 700 12.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #e8b886; }
.gate-tour h2 { font: 800 clamp(26px, 3vw, 38px)/1.1 var(--head, var(--body)); color: #fff; letter-spacing: -.02em; }
.gate-tour__shot { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #fffaf4; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.gate-tour__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .7s ease; }
.gate-tour__shot img.is-on { opacity: 1; }
.gate-tour__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 14px; color: rgba(251, 239, 226, .82); }
.gate-tour__list li { position: relative; padding-left: 22px; } .gate-tour__list b { color: #fff; font-weight: 650; }
.gate-tour__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #e8b886; font-weight: 800; }
.gate-tour__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.gate-tour__cta .btn { background: linear-gradient(140deg, #e3a76a, #b0773f) !important; color: #fff !important; }
.gate-tour__more { color: #f2c08a; font-weight: 650; font-size: 14px; }
@media (max-width: 960px) {
  .gate--tour { grid-template-columns: minmax(0, 420px) !important; align-content: start; gap: 26px; }
  .gate--tour .gate__box { order: -1; }
  .gate-tour h2 { font-size: 24px; }
}
@media (max-width: 420px) { .gate-tour__list { grid-template-columns: 1fr; } }
.gate-tour__cta .btn { width: auto !important; padding-inline: 26px; }

/* ---------- care.js: новые пациенты, формула наверху, забота о пациенте, достижения, импорт, «Написать разработчику» ---------- */
.newb { font-style: normal; font: 700 10.5px/1.6 var(--body); padding: 0 7px; border-radius: 999px; background: linear-gradient(140deg, #e3a76a, #b0773f); color: #fff; white-space: nowrap; }
.plist__top { flex-wrap: wrap; } .plist__top #importPatients { order: 2; }
.cat__row--svc { grid-template-columns: 38px minmax(0, 1fr) 170px 100px auto 38px; }
.cat__row--svc select { width: 100%; font: 400 13.5px var(--body); padding: 9px 8px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; }
@media (max-width: 700px) { .cat__row--svc { grid-template-columns: 38px minmax(0, 1fr) 84px 44px; } .cat__row--svc select { grid-column: 2 / -1; grid-row: 2; } }

.cf { display: grid; gap: 10px; width: 100%; margin: 4px 0 16px; padding: 14px 16px 12px; border: 0; border-radius: 22px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(248, 238, 226, .78)) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .16), 0 10px 26px -18px rgba(70, 48, 30, .45); transition: transform .2s, box-shadow .2s; }
.cf:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .28), 0 16px 30px -18px rgba(70, 48, 30, .5); }
.cf__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .cf__head b { font: 700 16px var(--body); } .cf__head small { color: var(--ink2); font-size: 13px; }
.cf__head em { margin-left: auto; font-style: normal; font: 600 13px var(--body); color: var(--brown); }
.cf__jaw { display: grid; gap: 4px; }
.cf__row { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.cf__row .cf__t:nth-child(8) { margin-right: 6px; } .cf__row .cf__t:nth-child(9) { margin-left: 6px; }
.cf__mid { height: 2px; margin: 1px 0; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(200, 66, 62, .45) 8%, rgba(200, 66, 62, .45) 92%, transparent); }
.cf__t { position: relative; display: grid; place-items: center; height: 28px; border-radius: 9px 9px 11px 11px; font: 650 11.5px var(--body); color: #8b7765; background: #fffdfa; box-shadow: inset 0 0 0 1px #e7d9c8; }
.cf__t.has { color: #fff; background: var(--c); box-shadow: 0 3px 8px -4px var(--c); }
.cf__t.gone { color: #b9ab9c; background: repeating-linear-gradient(135deg, #f1ebe4 0 4px, #e7ded3 4px 8px); box-shadow: none; }
.cf__t i { position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.cf__lg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink2); } .cf__lg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 700px) { .cf__t { height: 24px; font-size: 10px; border-radius: 7px 7px 9px 9px; } .cf__row { gap: 2px; } .cf__row .cf__t:nth-child(8) { margin-right: 3px; } .cf__row .cf__t:nth-child(9) { margin-left: 3px; } }

.care-card { display: grid; gap: 12px; margin: 0 0 16px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 252, 248, .9), rgba(244, 232, 218, .62)) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .14); }
.care-card__head b { display: block; font: 700 16px var(--body); } .care-card__head small { font-size: 12.5px; color: var(--ink2); }
.care-next { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: #fffaf4; box-shadow: inset 3px 0 0 #c99a68; }
.care-next > span:first-child { font-size: 20px; } .care-next > div { flex: 1 1 220px; display: grid; } .care-next b { font: 650 14.5px var(--body); } .care-next small { color: var(--ink2); font-size: 12.5px; }
.care-next.is-soon { box-shadow: inset 3px 0 0 var(--warn); background: #fff7e6; } .care-next.is-late { box-shadow: inset 3px 0 0 var(--bad); background: #fff1ef; }
.care-next.is-ok { box-shadow: inset 3px 0 0 var(--good); background: #eef8f2; } .care-next.is-muted { box-shadow: none; opacity: .85; }
.care-next__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.care-adv { display: grid; gap: 6px; } .care-adv span { font: 600 13px var(--body); color: var(--ink2); }
.care-adv textarea { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-strong); font: 400 14px/1.5 var(--body); }
.care-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-adv { border: 0; padding: 6px 11px; border-radius: 999px; background: #f4e8da; color: #6f4a2e; font: 600 12px var(--body); cursor: pointer; } .chip-adv:hover { background: #ecd9c3; }

.ach-month { font-size: 13px; color: var(--ink2); } .ach-month b { color: var(--dark); }
.ach-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.ach-b { display: grid; gap: 3px; padding: 14px; border-radius: 18px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); }
.ach-b.is-on { background: linear-gradient(150deg, #fff6ea, #f6e3cc); box-shadow: inset 0 0 0 1px rgba(201, 154, 104, .45); }
.ach-b__ic { font-size: 22px; } .ach-b b { font: 800 26px/1.1 var(--body); color: var(--dark); } .ach-b small { font-size: 12.5px; color: var(--ink2); }
.ach-b__bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(138, 93, 59, .14); overflow: hidden; } .ach-b__bar em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d29a63, #8a5d3b); }
.ach-b__next { font-size: 11.5px !important; }
.ach-cats { list-style: none; display: grid; gap: 7px; } .ach-cats li { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.ach-cats i { height: 9px; border-radius: 99px; background: rgba(138, 93, 59, .12); overflow: hidden; } .ach-cats em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e3a76a, #8a5d3b); }
.ach-cats b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ach-cats li { grid-template-columns: 1fr 44px; } .ach-cats i { grid-column: 1 / -1; grid-row: 2; } }

.imp-dlg { width: min(860px, calc(100vw - 24px)); }
.imp-drop { display: grid; place-items: center; gap: 4px; padding: 26px 16px; border-radius: 18px; border: 2px dashed rgba(138, 93, 59, .35); background: #fffaf4; cursor: pointer; text-align: center; transition: background .2s, border-color .2s; }
.imp-drop.is-over, .imp-drop:hover { background: #f8ecdd; border-color: #b0773f; } .imp-drop input { display: none; } .imp-drop b { font: 700 15px var(--body); color: var(--brown); } .imp-drop span { font-size: 12.5px; color: var(--ink2); }
.imp-err { color: var(--bad) !important; font-weight: 600; }
.imp-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); max-height: 320px; }
.imp-t { border-collapse: collapse; font-size: 13px; min-width: 100%; } .imp-t th, .imp-t td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.imp-t th { position: sticky; top: 0; background: #fbf4ea; vertical-align: top; } .imp-t th select { font: 600 12.5px var(--body); padding: 6px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; max-width: 170px; }
.imp-t th small { display: block; margin-top: 3px; font-weight: 400; color: var(--ink2); } .imp-t td.is-off { color: #bbb; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 10px; } .imp-sum div { flex: 1 1 150px; display: grid; padding: 12px 14px; border-radius: 16px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); }
.imp-sum b { font: 800 24px var(--body); } .imp-sum span { font-size: 12.5px; color: var(--ink2); } .imp-sum .is-warn { background: #fff4dc; }

.dev-dlg { width: min(620px, calc(100vw - 24px)); }
.dev-kinds { display: flex; flex-wrap: wrap; gap: 6px; } .dev-kinds .chip { border: 0; padding: 8px 14px; border-radius: 999px; background: #f4e8da; font: 600 13px var(--body); color: #6f4a2e; cursor: pointer; }
.dev-kinds .chip.is-on { background: var(--brown); color: #fff; }
#devText { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); font: 400 14.5px/1.5 var(--body); resize: vertical; }
.dev-ok { color: var(--good) !important; font-weight: 600; }
.dev-list { list-style: none; display: grid; gap: 8px; max-height: 40vh; overflow: auto; } .dev-list li { padding: 12px 14px; border-radius: 16px; background: #fffaf4; box-shadow: inset 0 0 0 1px var(--line); }
.dev-list li.has-ans { box-shadow: inset 3px 0 0 var(--good), inset 0 0 0 1px var(--line); }
.dev-q { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink2); } .dev-q em { margin-left: auto; font-style: normal; font-weight: 600; }
.dev-list p { margin-top: 4px; font-size: 14px; } .dev-a { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #eef8f2; } .dev-a b { font-size: 12.5px; color: #17643f; }

.me-x { display: grid; gap: 8px; margin-top: 12px; }
.me-x__row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: rgba(255, 250, 244, .8); box-shadow: inset 0 0 0 1px var(--line); }
.me-x__row > div { flex: 1 1 240px; display: grid; gap: 2px; min-width: 0; } .me-x__row b { font: 650 14.5px var(--body); } .me-x__row small { font-size: 12.5px; color: var(--ink2); }
.me-x__row .ref-copy { margin-top: 6px; } .me-x__ic { font-size: 20px; width: 28px; text-align: center; } .me-x__new { color: var(--good); }
@media (max-width: 700px) { #tabs #btnDev { display: none !important; } }
.plist__top #search { flex: 1 1 100%; min-width: 0; } .plist__top .btn { flex: 1 1 auto; }
.care-next__ic, .me-x__ic, .ach-b__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #f4e8da; color: var(--brown); font: 800 16px var(--body); }
.care-next__ic .ic, .me-x__ic .ic, .ach-b__ic .ic { width: 19px; height: 19px; }
.care-next.is-ok .care-next__ic { background: #e2f2e8; color: var(--good); } .care-next.is-late .care-next__ic { background: #fbe1dd; color: var(--bad); } .care-next.is-soon .care-next__ic { background: #fdecc8; color: #8a5f00; }
.ach-b.is-on .ach-b__ic { background: linear-gradient(140deg, #e3a76a, #8a5d3b); color: #fff; }
/* =====================================================================
   СТЕКЛО 2.0 (2026-11-03) — единый вид кабинетов врача, ассистента, пациента и администратора.
   Читаемость: основной текст темнее, вторичный контрастнее, мелкие подписи крупнее, поля и вложенные блоки плотнее.
   Стекло: под карточками — глубокие тёплые пятна света и лёгкое «матовое» зерно; карточка — блик сверху-слева,
   светлая кромка, сильное размытие с насыщением цвета и мягкая длинная тень. Шапку и меню на телефоне по-прежнему не размываем.
   ===================================================================== */
:root {
  --dark: #261b14; --ink2: #64503e; --line: rgba(138, 93, 59, .15); --line-strong: #d3bda4;
  --r: 22px;
  --surface: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0) 52%),
             linear-gradient(158deg, rgba(255, 253, 250, .80) 0%, rgba(253, 247, 240, .62) 55%, rgba(250, 240, 228, .56) 100%);
  --glass-blur: blur(28px) saturate(190%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(120, 80, 48, .07);
  --glass-shadow: var(--glass-edge), 0 1px 2px rgba(58, 38, 22, .05), 0 20px 46px -28px rgba(58, 38, 22, .45);
  --glass-shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 8px rgba(58, 38, 22, .07), 0 40px 90px -30px rgba(58, 38, 22, .55);
  --nest: rgba(255, 253, 250, .84);
}
html body { background: #e9dac7; color: var(--dark); -webkit-font-smoothing: antialiased; }
body::before {
  background:
    radial-gradient(46% 40% at 4% 0%, rgba(255, 251, 244, .98), transparent 68%),
    radial-gradient(36% 34% at 96% 6%, rgba(244, 178, 118, .62), transparent 70%),
    radial-gradient(34% 36% at 76% 58%, rgba(226, 160, 142, .46), transparent 70%),
    radial-gradient(42% 42% at 8% 92%, rgba(190, 204, 160, .55), transparent 70%),
    radial-gradient(30% 30% at 46% 40%, rgba(255, 236, 210, .55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #f5ece0 0%, #ecdccb 52%, #e5d3be 100%) !important;
}
/* карточки: «жидкое стекло» */
.tile:not(.brand), .kpi, .panel:not(.brand):not(.brand--brown), .cc:not(.brand):not(.brand--brown), .cta-line, .cal, .plist, .pcard, .ps-tile:not(.ps-tile--dark), .ps-cr,
.myday, .an-kpi, .vm-card, .memos, .vx-card, .welcome {
  background: var(--surface) !important; -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important;
  box-shadow: var(--glass-shadow) !important; border-radius: var(--r) !important;
}
.tile:not(.brand):hover, .panel:not(.brand):not(.brand--brown):hover, .cc:not(.brand):not(.brand--brown):hover {
  box-shadow: var(--glass-edge), 0 2px 4px rgba(58, 38, 22, .06), 0 26px 54px -28px rgba(58, 38, 22, .5) !important;
}
/* вложенные блоки — плотнее, чтобы текст на них читался как на бумаге */
.panel .panel, .cc .panel, .pcard .stage, .pcard .visit, .pstats, .ledger, .fill, .ro, .gbox, .care-card, .care-next, .me-x__row, .meprof__ref, .remline, .photoline, .lkline {
  border-radius: 16px !important;
}
.panel .panel, .cc .panel, .pcard .stage, .pcard .visit, .pstats, .ledger, .fill, .ro, .gbox, .remline, .photoline, .me-x__row {
  background: var(--nest) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .12), 0 1px 2px rgba(58, 38, 22, .03) !important;
}
.care-card { background: linear-gradient(160deg, rgba(255, 253, 250, .9), rgba(247, 236, 222, .74)) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .13) !important; }
/* окна */
dialog, .drawer, .cmdk__box {
  background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .7), transparent 55%), linear-gradient(158deg, rgba(255, 253, 250, .95), rgba(250, 242, 232, .9)) !important;
  -webkit-backdrop-filter: blur(30px) saturate(190%) !important; backdrop-filter: blur(30px) saturate(190%) !important; box-shadow: var(--glass-shadow-lg) !important;
}
dialog::backdrop { background: rgba(42, 28, 18, .34) !important; -webkit-backdrop-filter: blur(8px) saturate(120%) !important; backdrop-filter: blur(8px) saturate(120%) !important; }
/* шапка и меню */
@media (min-width: 701px) {
  .top { background: linear-gradient(180deg, rgba(255, 252, 247, .82), rgba(255, 250, 244, .7)) !important; -webkit-backdrop-filter: blur(24px) saturate(180%) !important; backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: inset 0 -1px 0 rgba(138, 93, 59, .12), 0 8px 24px -20px rgba(58, 38, 22, .4) !important; }
  #tabs { background: linear-gradient(170deg, rgba(255, 253, 250, .97), rgba(251, 244, 235, .95)) !important; box-shadow: var(--glass-edge), 0 24px 50px -30px rgba(58, 38, 22, .5) !important; }
  #tabs > button { color: #5c4838 !important; }
  #tabs > button.is-active { background: linear-gradient(140deg, rgba(232, 196, 156, .5), rgba(244, 226, 204, .7)) !important; color: #6f4a2e !important; box-shadow: inset 0 0 0 1px rgba(176, 119, 63, .3), 0 4px 12px -6px rgba(138, 93, 59, .4) !important; }
}
/* текст: темнее и крупнее */
.panel > h3, .panel__head h3, .cc h3 { color: var(--dark); font-weight: 750 !important; letter-spacing: -.012em; }
.panel__sub, .dform__hint { color: var(--ink2) !important; font-size: 13.5px !important; line-height: 1.5 !important; }
.tile:not(.brand) span, .kpi:not(.brand) span, .tile small, .plist small, .visit small, .pcard__meta, .legend { color: var(--ink2) !important; }
.plist li button b.nm, .plist .nm span { color: var(--dark); font-weight: 650; }
.plist small { font-size: 12.5px !important; }
.pcard__meta { font-size: 14px !important; }
small { font-size: max(12.5px, .86em); }
/* кнопки */
.btn:not(.btn--ghost):not(.btn--danger):not(.btn--light) {
  background: linear-gradient(180deg, #9d6c46 0%, #7c5235 100%) !important; border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(58, 38, 22, .2), 0 10px 22px -12px rgba(110, 70, 40, .85) !important; }
.btn:not(.btn--ghost):not(.btn--danger):not(.btn--light):hover { background: linear-gradient(180deg, #8d5f3c 0%, #6a452c 100%) !important; }
.btn--ghost { background: rgba(255, 255, 255, .62) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .26), 0 1px 2px rgba(58, 38, 22, .04) !important; color: #6f4a2e !important; }
.btn--ghost:hover { background: rgba(255, 250, 243, .95) !important; }
/* поля */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea {
  background: rgba(255, 255, 255, .88) !important; border: 1px solid #d6c1aa !important; color: var(--dark); }
input::placeholder, textarea::placeholder { color: #9a8673; }
input:focus, select:focus, textarea:focus { border-color: #b0773f !important; box-shadow: 0 0 0 4px rgba(176, 119, 63, .18), 0 1px 2px rgba(58, 38, 22, .06) !important; background: #fff !important; }
/* календарь: линии и события чётче */
.wk__day, .wk__col, .mo__c { border-color: rgba(138, 93, 59, .14) !important; }
.ev { box-shadow: 0 1px 2px rgba(58, 38, 22, .1), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
/* вход */
.gate__box { background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .8), transparent 55%), linear-gradient(158deg, rgba(255, 253, 250, .94), rgba(250, 242, 232, .88)) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important; backdrop-filter: blur(30px) saturate(180%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 40px 90px -30px rgba(0, 0, 0, .6) !important; }
.toast { background: rgba(42, 28, 18, .86) !important; -webkit-backdrop-filter: blur(14px) !important; backdrop-filter: blur(14px) !important; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45) !important; }
@media (prefers-reduced-transparency: reduce) {
  :root { --surface: #fffaf4; --glass-blur: none; --nest: #fffdf9; }
}
@media (max-width: 700px) { #tiles { padding: 6px 6px 26px; margin: -6px -6px -12px; scroll-padding-inline: 6px; } }   /* тень плиток не обрезается краем прокручиваемой ленты */

/* ---------- фото врача в анкете, анкета пациента из личного кабинета ---------- */
.meprof__av--img { object-fit: cover; padding: 0; background: #eadccb; }
.mephoto { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 6px; border-radius: 16px; background: rgba(255,250,244,.7); border: 1px solid rgba(168,117,74,.18); }
.mephoto__img, .mephoto__ph { width: 76px; height: 76px; border-radius: 50%; flex: none; object-fit: cover; }
.mephoto__ph { display: grid; place-items: center; background: linear-gradient(150deg, #a8754a, #6f4a2e); color: #fff; font: 700 24px var(--body); }
.mephoto__t { display: grid; gap: 4px; min-width: 0; }
.mephoto__t small { color: #7d6b5c; font-size: 12.5px; line-height: 1.35; }
.mephoto__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.mephoto__btns label { cursor: pointer; }
.pself { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: rgba(240,248,250,.75); border: 1px solid rgba(10,127,158,.18); }
.pself__h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pself__h img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pself__h b { display: block; } .pself__h small { color: #6b7c80; font-size: 12px; }
.pself dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: 13.5px; }
.pself dt { color: #6b7c80; } .pself dd { margin: 0; overflow-wrap: anywhere; }
.pself__warn { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #9a5a00; }
.asg-acc__ph { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; margin-right: 8px; }
.asg-acc__ct { display: block; color: #6b5a4c; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pself dl { grid-template-columns: 1fr; } .pself dt { margin-top: 4px; } }
/* ---------- «Напоминания пациентам и календарь» ---------- */
.sy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-top: 10px; }
.sy-c { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255,251,246,.72); border: 1px solid rgba(168,117,74,.18); }
.sy-c header { display: flex; gap: 10px; align-items: flex-start; }
.sy-c header b { display: block; margin-bottom: 3px; }
.sy-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.sy-ic svg { width: 22px; height: 22px; }
.sy--tg .sy-ic { background: linear-gradient(150deg, #36a3d9, #1f78b4); }
.sy--wa .sy-ic { background: linear-gradient(150deg, #3fc56b, #1f8f4a); }
.sy--gc .sy-ic { background: linear-gradient(150deg, #a8754a, #6f4a2e); }
.sy-pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; }
.sy-pill.is-ok { background: rgba(79,122,70,.14); color: #3f6b37; } .sy-pill.is-warn { background: rgba(200,144,46,.16); color: #8a5a00; }
.sy-c p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #5b4a3d; }
.sy-c details summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: #8a5d3b; }
.sy-c ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: 13px; line-height: 1.45; color: #5b4a3d; }
.sy-c code { background: rgba(168,117,74,.14); padding: 1px 6px; border-radius: 6px; }
.sy-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.sy-url { display: flex; gap: 6px; } .sy-url input { flex: 1; min-width: 0; font-size: 12.5px; }
.sy-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(168,117,74,.1); }
.sy-tabs button { flex: 1; border: 0; background: none; padding: 6px; border-radius: 9px; font: 600 12.5px var(--body); color: #7d6b5c; cursor: pointer; }
.sy-tabs button.is-on { background: #fffaf4; color: #6f4a2e; box-shadow: 0 2px 8px -4px rgba(80,55,35,.4); }
.sy-steps { margin-top: 2px !important; }
.sy-note { font-size: 12px !important; color: #8a6f5a !important; }
/* заголовок недели в одну строку; фото врача в левой панели */
@media (min-width: 901px) { .toolbar__title { white-space: nowrap; font-size: 24px !important; flex: 0 1 auto !important; min-width: 0 !important; overflow: hidden; text-overflow: ellipsis; } }
.tabs-av__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tabs__av:has(.tabs-av__img) { padding: 0 !important; overflow: hidden; }