/* Клиентская база Ethel Store — компоненты.
   Все значения — из tokens.json (tokens.css). Классы с префиксом es-.
   Базовые элементы повторяют кабинет партнёра opt.ethel-distribution.com без изменений. */

/* ---------- основа ---------- */
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface-page);
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::placeholder { color: var(--ink-placeholder); }

@keyframes esFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes esSlide { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.es-ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.es-ic--16 { width: 16px; height: 16px; }
.es-ic--24 { width: 24px; height: 24px; }
.es-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.es-muted { color: var(--ink-muted); }
.es-row { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.es-stack { display: flex; flex-direction: column; gap: var(--space-12); }
.es-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки (кабинет партнёра) ---------- */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--control); padding: 0 18px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line-control); background: var(--surface); color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.es-btn:hover { border-color: var(--line-dashed); }
.es-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); min-height: var(--control-lg); padding: 0 20px; font-size: 15px; }
.es-btn--primary:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.es-btn--secondary { background: var(--surface); }
.es-btn--quiet { background: var(--surface-field); border-color: var(--line); color: var(--ink-muted); font-size: 13px; }
.es-btn--dashed { background: none; border: 1px dashed var(--line-dashed); color: var(--ink-muted); }
.es-btn--dashed:hover { color: var(--ink); border-color: var(--ink-faint); }
.es-btn--text { background: none; border-color: transparent; color: var(--ink-muted); padding: 0 10px; font-weight: 600; }
.es-btn--text:hover { color: var(--ink); border-color: transparent; }
.es-btn--danger { background: var(--danger); border-color: var(--danger); color: var(--on-ink); }
.es-btn--danger-outline { color: var(--danger); border-color: var(--danger-line); }
.es-btn--wa { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.es-btn--wa:hover { background: var(--lilac-light); }
.es-btn--sm { min-height: var(--control-sm); padding: 0 12px; font-size: 12.5px; border-radius: var(--radius-sm); }
.es-btn--block { width: 100%; }
.es-btn--icon { width: var(--control); padding: 0; }
.es-btn--icon.es-btn--sm { width: var(--control-sm); }
.es-btn:disabled, .es-btn[aria-disabled="true"] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
.es-fab { position: relative; display: inline-flex; align-items: center; gap: var(--space-8); min-height: var(--control); padding: 0 18px; border-radius: 24px; border: none; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 22px rgba(62,57,58,.26); }

/* ---------- чипы (кабинет партнёра: chip(active)) ---------- */
.es-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: var(--control-sm); padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line-control); background: var(--surface); color: var(--ink-muted);
}
.es-chip:hover { border-color: var(--line-dashed); color: var(--ink); }
.es-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 700; }
.es-chip--add { border-style: dashed; border-color: var(--line-dashed); color: var(--ink-muted); background: none; font-weight: 600; }
.es-chip__count { font-size: 11.5px; font-weight: 700; color: inherit; opacity: .8; }
.es-chip--touch { min-height: var(--control); }
.es-chips { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.es-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

/* теги клиента: тип кожи, чувствительность */
.es-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--lilac-light); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---------- сегментированный переключатель (кабинет: pill(active)) ---------- */
.es-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--line); }
.es-seg__opt { border: none; border-radius: 18px; min-height: 30px; padding: 0 13px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; background: transparent; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; }
.es-seg__opt.is-active { background: var(--ink); color: var(--on-ink); }
.es-seg__opt:disabled { color: var(--disabled-ink); cursor: not-allowed; }
.es-seg--touch .es-seg__opt { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- поля ---------- */
.es-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.es-label { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.es-label__req { color: var(--danger); margin-left: 2px; }
.es-input, .es-textarea, .es-select {
  width: 100%; min-height: 46px; padding: 12px 13px; border-radius: var(--radius-md);
  border: 1px solid var(--line-field); background: var(--surface-field); color: var(--ink);
  font-size: 14px; line-height: 20px;
}
.es-input:focus, .es-textarea:focus, .es-select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); background: var(--surface); }
.es-textarea { min-height: 88px; resize: vertical; }
.es-input.is-error, .es-textarea.is-error { border-color: var(--danger-field); }
.es-hint { font-size: 12px; color: var(--ink-muted); line-height: 1.45; }
.es-error-text { font-size: 12px; font-weight: 600; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.es-affix { display: flex; align-items: stretch; border: 1px solid var(--line-field); border-radius: var(--radius-md); background: var(--surface-field); overflow: hidden; }
.es-affix:focus-within { outline: 2px solid var(--focus); border-color: var(--focus); background: var(--surface); }
.es-affix .es-input { border: none; background: transparent; outline: none; min-height: 44px; }
.es-affix__part { display: flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-muted); background: var(--surface-sunken); white-space: nowrap; }
.es-affix__part--end { border-left: 1px solid var(--line); }
.es-affix__part--start { border-right: 1px solid var(--line); }
.es-input--num { text-align: right; font-variant-numeric: tabular-nums; }
.es-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-12); }

/* ---------- вкладки ---------- */
.es-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.es-tabs__tab { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--control); padding: 0 14px; border: none; background: none; font-size: 14px; font-weight: 600; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.es-tabs__tab:hover { color: var(--ink); }
.es-tabs__tab.is-active { color: var(--ink); font-weight: 700; }
.es-tabs__tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.es-tabs__count { font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lilac-light); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- плашки ---------- */
.es-note { padding: 13px 15px; border-radius: var(--radius-lg); background: var(--lilac-light); border: 1px solid var(--lilac); font-size: 13px; line-height: 1.55; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.es-note .es-ic { color: var(--ink-2); margin-top: 1px; }
.es-alert { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--danger-bg); border: 1px solid var(--danger-line); font-size: 13px; line-height: 1.5; color: var(--danger-ink); display: flex; gap: 10px; align-items: flex-start; }
.es-alert .es-ic { color: var(--danger); margin-top: 1px; }
.es-toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-md); background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-toast); animation: esFade .2s ease; }
.es-toast__action { background: none; border: none; color: var(--on-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 13px; padding: 0 0 0 6px; }

/* ---------- карточка и аватар ---------- */
.es-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 15px 16px; }
.es-card--flush { padding: 0; overflow: hidden; }
.es-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-12); }
.es-card__title { font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.es-avatar { width: var(--avatar); height: var(--avatar); flex: none; border-radius: 50%; background: var(--lilac-light); border: 1px solid var(--lilac); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.es-avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.es-avatar--sm { width: 32px; height: 32px; font-size: 12px; }

/* ---------- бейдж контроля ---------- */
.es-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 8px; border-radius: var(--radius-pill); border: 1px solid transparent; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.es-badge .es-ic { width: 15px; height: 15px; }
.es-badge--scheduled { background: var(--lilac-light); border-color: var(--lilac); color: var(--ink-2); }
.es-badge--today { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.es-badge--overdue { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-ink); }
.es-badge--helped { background: var(--status-helped-bg); border-color: var(--status-helped-line); color: var(--status-helped); }
.es-badge--partial { background: var(--status-partial-bg); border-color: var(--status-partial-line); color: var(--status-partial); }
.es-badge--not-helped { background: var(--surface); border-color: var(--danger-line); color: var(--danger); }
.es-badge--no-answer { background: var(--surface); border: 1px dashed var(--line-dashed); color: var(--ink-muted); }
.es-badge--draft { background: var(--surface-sunken); border: 1px dashed var(--line-dashed); color: var(--ink-muted); }
.es-badge--off { background: var(--surface-sunken); border-color: var(--line); color: var(--ink-muted); }

/* ---------- плашка аллергий ---------- */
.es-allergy { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--radius-lg); background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger-ink); font-size: 13.5px; line-height: 1.5; }
.es-allergy .es-ic { color: var(--danger); margin-top: 1px; }
.es-allergy__label { font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.es-allergy__edit { margin-left: auto; flex: none; background: none; border: none; color: var(--danger-ink); font-weight: 700; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 24px; }
.es-allergy--none { background: var(--surface); border-color: var(--line); color: var(--ink-muted); }
.es-allergy--none .es-ic { color: var(--ink-faint); }
.es-allergy--none .es-allergy__edit { color: var(--ink-muted); }

/* ---------- миниатюра товара ---------- */
.es-thumb { flex: none; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); display: inline-flex; align-items: center; justify-content: center; }
.es-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.es-thumb--xs { width: var(--thumb-xs); height: var(--thumb-xs); border-radius: var(--radius-xs); }
.es-thumb--s { width: var(--thumb-s); height: var(--thumb-s); border-radius: var(--radius-xs); }
.es-thumb--m { width: var(--thumb-m); height: var(--thumb-m); border-radius: var(--radius-sm); }
.es-thumb--l { width: var(--thumb-l); height: var(--thumb-l); border-radius: var(--radius-lg); }
.es-thumb--empty { background: var(--surface-field); border-style: dashed; border-color: var(--line-dashed); color: var(--ink-faint); }
.es-thumb--empty .es-ic { width: 46%; height: 46%; }
.es-thumb--other { background: var(--surface-sunken); border-color: var(--line); color: var(--ink-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.es-thumb--xs.es-thumb--other { font-size: 9px; }
.es-thumb--off img { opacity: .55; filter: grayscale(1); }

/* ---------- карточка средства: XS / S / M / L ---------- */
.es-prod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.es-prod__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-prod__name { font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.es-prod__en { font-size: 12px; line-height: 1.35; color: var(--ink-muted); }
.es-prod__meta { font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--ink-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.es-prod__price { font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.es-prod__flag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; background: var(--surface-sunken); color: var(--ink-muted); border: 1px solid var(--line); white-space: nowrap; }
/* XS — чип средства */
.es-prod--xs { display: inline-flex; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); max-width: 260px; }
.es-prod--xs .es-thumb { border-radius: 50%; border: none; }
.es-prod--xs .es-prod__name { font-size: 12.5px; -webkit-line-clamp: 1; white-space: nowrap; display: block; }
/* S — строка в истории */
.es-prod--s { padding: 8px 0; }
/* M — строка подсказки поиска */
.es-prod--m { padding: 8px 12px; border-radius: var(--radius-md); gap: 12px; }
.es-prod--m .es-prod__body { flex: 1; }
/* L — каталог и протокол */
.es-prod--l { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-hairline); width: 220px; }
.es-prod--l .es-thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-lg); }
.es-prod--l .es-prod__name { font-size: 14px; font-weight: 700; }
/* «другой бренд» — без фото, пунктир */
.es-prod--other .es-prod__name { font-weight: 600; }
.es-prod--off { opacity: .7; }

/* ---------- поиск с автодополнением ---------- */
.es-search { position: relative; }
.es-search__box { display: flex; align-items: center; gap: 10px; min-height: var(--control-lg); padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line-field); background: var(--surface); }
.es-search__box:focus-within { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.es-search__box .es-ic { color: var(--ink-muted); }
.es-search__input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; min-height: 44px; }
.es-kbd { font-size: 11px; font-weight: 700; color: var(--ink-muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; background: var(--surface-field); white-space: nowrap; }
.es-search__pop { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 6px; animation: esFade .18s ease; }
.es-search__group { padding: 10px 12px 4px; }
.es-search__foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 12px 4px; border-top: 1px solid var(--line-soft); margin-top: 4px; font-size: 12px; color: var(--ink-muted); }
.es-sugg { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; }
.es-sugg:hover { background: var(--surface-field); }
.es-sugg.is-hl { background: var(--lilac-light); }
.es-sugg__body { flex: 1; min-width: 0; }
.es-sugg__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.es-sugg.is-added .es-prod__name::after { content: ""; }
.es-sugg.is-off .es-thumb img { opacity: .55; filter: grayscale(1); }
.es-sugg.is-off .es-prod__name { color: var(--ink-muted); }
mark.es-hl { background: none; color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--lilac-deep); text-decoration-thickness: 3px; text-underline-offset: 1px; }
.es-search__empty { padding: 20px 14px; text-align: center; color: var(--ink-muted); font-size: 13px; }
.es-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lilac); border-top-color: var(--ink); animation: esSpin .8s linear infinite; flex: none; }
@keyframes esSpin { to { transform: rotate(360deg); } }

/* ---------- заказ ---------- */
.es-order { display: flex; flex-direction: column; }
.es-oline { display: grid; grid-template-columns: minmax(0, 1fr) 112px 100px 132px 104px 36px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.es-oline--head { padding: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.es-oline__sum { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-oline__rrp { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
.es-oline__old { display: block; font-size: 11.5px; color: var(--ink-muted); text-decoration: line-through; font-weight: 600; }
.es-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-control); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.es-qty__btn { width: 36px; height: 36px; border: none; background: none; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
.es-qty__val { min-width: 32px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.es-disc { display: inline-flex; align-items: stretch; border: 1px solid var(--line-field); border-radius: var(--radius-sm); background: var(--surface-field); overflow: hidden; height: 36px; }
.es-disc input { width: 56px; border: none; background: none; text-align: right; padding: 0 6px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.es-disc__unit { display: flex; border-left: 1px solid var(--line); }
.es-disc__unit button { border: none; background: none; width: 30px; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.es-disc__unit button.is-active { background: var(--ink); color: var(--on-ink); }
.es-total { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-sunken); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; font-size: 13.5px; }
.es-total__label { color: var(--ink-muted); }
.es-total__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-total__grand { font-size: 18px; font-weight: 800; }
.es-total__manual { grid-column: 1 / -1; padding: 9px 12px; border-radius: var(--radius-md); background: var(--lilac-light); border: 1px solid var(--lilac); color: var(--ink-2); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.es-total__reset { margin-left: auto; background: none; border: none; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 12.5px; }
.es-oline-m { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.es-oline-m__ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- схема ухода ---------- */
.es-scheme { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.es-scheme__row { display: grid; grid-template-columns: 148px 1fr; border-bottom: 1px solid var(--line); }
.es-scheme__row:last-child { border-bottom: none; }
.es-scheme__label { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-field); border-right: 1px solid var(--line); }
.es-scheme__name { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.es-scheme__why { font-size: 12px; line-height: 1.4; color: var(--ink-muted); font-style: italic; }
.es-scheme__cells { display: grid; grid-template-columns: 1fr 1fr; }
.es-scheme__cells--one { grid-template-columns: 1fr; }
.es-cell { min-height: 64px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--line-soft); position: relative; }
.es-cell:last-child { border-right: none; }
.es-cell__when { flex: none; display: inline-flex; color: var(--ink-muted); }
.es-cell--empty { color: var(--ink-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.es-cell--empty .es-cell__add { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-md); border: 1px dashed var(--line-dashed); }
.es-cell--empty:hover .es-cell__add { color: var(--ink); border-color: var(--ink-faint); }
.es-cell.is-selected { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--lilac-light); }
.es-cell__edited { position: absolute; top: 6px; right: 8px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); background: var(--lilac-light); border-radius: 10px; padding: 1px 7px; }
.es-week { display: grid; grid-template-columns: 56px 1fr 1fr; }
.es-week__h { padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-soft); background: var(--surface-field); }
.es-week__day { padding: 0 12px; display: flex; align-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--ink-muted); border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.es-week .es-cell { min-height: 52px; border-bottom: 1px solid var(--line-soft); padding: 6px 10px; }
.es-week > :nth-last-child(-n+3) { border-bottom: none; }
.es-week > :nth-child(3n) { border-right: none; }
.es-tpl { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.es-daylist { display: flex; flex-direction: column; }
.es-daylist__day { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.es-daylist__slot { display: flex; align-items: center; gap: 8px; min-height: 40px; }

/* ---------- «Как наносить» ---------- */
.es-howto { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.es-howto__head { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.es-howto__text { font-size: 13.5px; line-height: 1.6; color: var(--ink); padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-field); border: 1px solid var(--line-field); min-height: 80px; width: 100%; }
.es-howto__src { font-size: 12px; color: var(--ink-muted); display: flex; gap: 6px; align-items: center; }
.es-howto__src a { color: var(--ink-muted); }

/* ---------- клиент: шапка, список, напоминание ---------- */
.es-chead { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.es-chead__name { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.es-chead__patr { font-weight: 600; color: var(--ink-muted); }
.es-chead__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 13.5px; color: var(--ink-muted); }
.es-chead__fact { display: inline-flex; align-items: center; gap: 6px; }
.es-chead__fact b { color: var(--ink); font-weight: 600; }
.es-chead__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.es-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.es-stat { padding: 14px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.es-stat:last-child { border-right: none; }
.es-stat__val { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-stat__val--sm { font-size: 15px; line-height: 28px; font-weight: 700; letter-spacing: 0; }
.es-stat__sub { font-size: 12px; color: var(--ink-muted); }

.es-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; font-size: 13.5px; }
.es-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-field); border-bottom: 1px solid var(--line); white-space: nowrap; }
.es-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.es-table tr:last-child td { border-bottom: none; }
.es-table tbody tr { cursor: pointer; }
.es-table tbody tr:hover td { background: var(--surface-field); }
.es-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.es-who__name { font-weight: 700; white-space: nowrap; }
.es-who__sub { font-size: 12px; color: var(--ink-muted); }

.es-ccard { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.es-ccard__top { display: flex; gap: 12px; align-items: center; }
.es-ccard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--ink-muted); }
.es-ccard__meta b { display: block; color: var(--ink); font-weight: 700; font-size: 13.5px; }

.es-remind { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); animation: esFade .25s ease; }
.es-remind--overdue { border-color: var(--danger-line); }
.es-remind__top { display: flex; gap: 12px; align-items: flex-start; }
.es-remind__who { flex: 1; min-width: 0; }
.es-remind__name { font-size: 15px; line-height: 21px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-remind__phone { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.es-remind__reason { font-size: 13.5px; line-height: 1.5; }
.es-remind__prods { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.es-remind__meta { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-muted); }
.es-remind__ask { padding: 9px 12px; border-radius: var(--radius-md); background: var(--lilac-light); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: flex; gap: 8px; }
.es-remind__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.es-remind__actions .es-btn { min-height: 40px; }
.es-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.es-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; border-radius: var(--radius-md); border: 1px solid var(--line-control); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.es-result.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--lilac-light); }
.es-group-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.es-group-h__count { color: var(--ink-muted); font-weight: 700; }

/* ---------- текущий уход ---------- */
.es-care { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.es-care:last-child { border-bottom: none; }
.es-care__body { flex: 1; min-width: 0; }
.es-care__stage { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.es-care__when { display: inline-flex; gap: 2px; color: var(--ink-muted); }
.es-react { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.es-react--bad { color: var(--danger); }

/* ---------- история ---------- */
.es-hist { position: relative; display: flex; flex-direction: column; }
.es-hist__date { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); padding: 14px 0 8px 44px; }
.es-hist__item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 12px; }
.es-hist__item::before { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
.es-hist__item:last-child::before { display: none; }
.es-hist__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.es-hist__dot .es-ic { width: 17px; height: 17px; }
.es-hist__dot--main { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.es-hist__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; min-width: 0; }
.es-hist__card--draft { border-style: dashed; border-color: var(--line-dashed); background: var(--surface-field); }
.es-hist__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-hist__title { font-size: 14px; font-weight: 700; }
.es-hist__meta { font-size: 12px; color: var(--ink-muted); margin-left: auto; white-space: nowrap; }
.es-hist__text { font-size: 13.5px; line-height: 1.55; margin-top: 6px; }
.es-hist__toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; background: none; border: none; padding: 0; min-height: 28px; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.es-hist__more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.es-hist__photos { display: flex; gap: 6px; margin-top: 8px; }
.es-photo { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--lilac-light); border: 1px solid var(--lilac); display: flex; align-items: flex-end; justify-content: flex-start; padding: 4px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); overflow: hidden; }

/* ---------- загрузка файлов ---------- */
.es-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 22px 16px; border-radius: var(--radius-card); border: 1.5px dashed var(--line-dashed); background: var(--surface-field); color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.es-drop b { color: var(--ink); }
.es-drop.is-over { border-color: var(--ink); background: var(--lilac-light); color: var(--ink-2); }
.es-drop .es-ic { width: 26px; height: 26px; color: var(--ink-muted); }
.es-file { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.es-file__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--lilac-light); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.es-file__name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-file__sub { font-size: 12px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.es-file--error { border-color: var(--danger-line); background: var(--danger-bg); }
.es-file--error .es-file__icon { background: var(--surface); color: var(--danger); }
.es-file--error .es-file__sub { color: var(--danger-ink); font-weight: 600; }
.es-progress { height: 4px; border-radius: 2px; background: var(--lilac-light); overflow: hidden; margin-top: 6px; }
.es-progress__bar { height: 100%; background: var(--ink); border-radius: 2px; transition: width .3s ease; }

/* ---------- до / после ---------- */
.es-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-ba__img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--lilac-light); }
.es-ba__img img, .es-ba__img .es-ba__ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-ba__label { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 800; color: var(--ink); }
.es-ba__date { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(62,57,58,.78); color: var(--on-ink); font-size: 11.5px; font-weight: 700; }
.es-slider { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--lilac-light); user-select: none; touch-action: none; }
.es-slider__layer { position: absolute; inset: 0; }
.es-slider__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.es-slider__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: 0 0 0 1px rgba(62,57,58,.2); }
.es-slider__handle { position: absolute; top: 50%; left: var(--pos, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: ew-resize; }
.es-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- панели и окна ---------- */
.es-scrim { background: var(--overlay); }
.es-scrim--strong { background: var(--overlay-strong); }
.es-panel { background: var(--surface-page); border-radius: var(--radius-sheet) 0 0 var(--radius-sheet); box-shadow: var(--shadow-panel); display: flex; flex-direction: column; animation: esSlide .24s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.es-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.es-panel__title { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0; flex: 1; }
.es-panel__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.es-panel__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.es-panel__saved { margin-right: auto; white-space: nowrap; font-size: 12px; color: var(--ink-muted); display: inline-flex; gap: 6px; align-items: center; }
.es-sheet { background: var(--surface); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: 0 -12px 40px rgba(30,27,28,.28); padding: 8px 18px 22px; animation: esSheet .22s ease; }
.es-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.es-modal { background: var(--surface); border-radius: var(--radius-sheet); box-shadow: var(--shadow-panel); padding: 24px 22px 20px; max-width: 400px; animation: esFade .18s ease; }
.es-modal__title { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.es-modal__text { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 18px; }
.es-modal__actions { display: flex; flex-direction: column; gap: 8px; }
.es-section { display: flex; flex-direction: column; gap: 10px; }
.es-section__h { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.es-section__n { font-size: 11px; font-weight: 800; color: var(--ink-muted); letter-spacing: .1em; }
.es-collapse { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.es-collapse__head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: none; background: none; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.es-collapse__head .es-ic:last-child { margin-left: auto; color: var(--ink-muted); }

/* ---------- навигация ---------- */
.es-side { width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.es-side__logo { padding: 4px 10px 18px; }
.es-side__logo img { height: 30px; display: block; }
.es-nav-item { display: flex; align-items: center; gap: 12px; min-height: var(--control); padding: 0 12px; border-radius: var(--radius-md); color: var(--ink-muted); font-size: 14px; font-weight: 600; text-decoration: none; border: none; background: none; cursor: pointer; width: 100%; text-align: left; }
.es-nav-item:hover { background: var(--surface-field); color: var(--ink); }
.es-nav-item.is-active { background: var(--lilac-light); color: var(--ink); font-weight: 700; }
.es-nav-item__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--ink); color: var(--on-ink); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.es-side__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.es-topbar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; background: var(--surface-page); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.es-topbar__title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.es-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.es-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: none; background: none; color: var(--ink-muted); font-size: 11px; font-weight: 700; cursor: pointer; position: relative; min-height: var(--control); }
.es-tab.is-active { color: var(--ink); }
.es-tab.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--ink); }
.es-tab__dot { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }

/* ---------- служебные состояния ---------- */
.es-skel { background: var(--skeleton); border-radius: 6px; animation: esPulse 1.4s ease-in-out infinite; }
.es-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--space-48) 20px; }
.es-empty__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--lilac-light); border: 1px solid var(--lilac); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.es-empty__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.es-empty__text { font-size: 13.5px; color: var(--ink-muted); max-width: 340px; margin: 0; line-height: 1.55; }

/* ---------- уведомления ---------- */
.es-push { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 14px; border-radius: 22px; background: rgba(245,245,247,.94); box-shadow: 0 8px 24px rgba(30,27,28,.16); max-width: 380px; }
.es-push__icon { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.es-push__icon img { width: 100%; height: 100%; display: block; }
.es-push__app { font-size: 12px; color: var(--ink-muted); display: flex; justify-content: space-between; }
.es-push__title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 1px; }
.es-push__text { font-size: 13.5px; line-height: 1.35; }
.es-mail { max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.es-mail__head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.es-mail__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; }
.es-mail__row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.es-mail__foot { padding: 14px 24px; background: var(--surface-field); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }

/* ---------- протокол A4 ---------- */
.es-proto { width: 794px; min-height: 1123px; background: var(--surface); color: var(--ink); padding: 48px 52px 40px; font-family: var(--font-sans); box-shadow: 0 1px 2px rgba(62,57,58,.06), 0 12px 32px rgba(62,57,58,.08); }
.es-proto__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.es-proto__top img { height: 34px; }
.es-proto__meta { text-align: right; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.es-proto__title { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.es-proto__grid { border: 1.5px solid var(--ink); border-radius: 4px; }
.es-proto__row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--ink); }
.es-proto__row:last-child { border-bottom: none; }
.es-proto__name { padding: 12px 14px; border-right: 1px solid var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; }
.es-proto__cells { display: grid; grid-template-columns: 1fr 1fr; }
.es-proto__cells--one { grid-template-columns: 1fr; }
.es-proto__cell { padding: 10px 12px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 76px; }
.es-proto__cell:last-child { border-right: none; }
.es-proto__item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.es-proto__item img { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 6px; flex: none; background: var(--surface); }
.es-proto__when { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.es-proto__why { font-size: 12.5px; line-height: 1.4; font-style: italic; color: var(--ink-2); margin-top: auto; }
.es-proto__actives-h { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--ink); }
.es-proto__day { display: grid; grid-template-columns: 64px 1fr 1fr; border-bottom: 1px solid var(--ink); }
.es-proto__day > * { padding: 7px 10px; border-right: 1px solid var(--ink); min-height: 42px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.es-proto__day > :last-child { border-right: none; }
.es-proto__day > :first-child { justify-content: center; font-weight: 800; letter-spacing: .06em; font-size: 13px; }
.es-proto__day img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.es-proto__how { margin-top: 26px; }
.es-proto__how-h { font-size: 18px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.es-proto__how-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--lilac); font-size: 15px; line-height: 1.5; }
.es-proto__how-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 8px; }
.es-proto__foot { margin-top: 26px; padding-top: 16px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; font-size: 13.5px; line-height: 1.55; }
.es-proto__next { font-size: 16px; font-weight: 700; }
.es-qr { width: 88px; height: 88px; border: 1px solid var(--ink); border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 6px; }

/* ---------- WhatsApp-текст ---------- */
.es-wa { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.es-wa__bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; max-width: 360px; }
.es-wa__bubble b { font-weight: 800; }
.es-wa__edit { font-family: inherit; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

/* ---------- тип цены: акция, брак ---------- */
.es-mark { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; white-space: nowrap; align-self: flex-start; border: 1px solid transparent; }
.es-mark .es-ic { width: 13px; height: 13px; }
.es-mark--promo { background: var(--status-partial-bg); color: var(--status-partial); border-color: var(--status-partial-line); }
.es-mark--defect { background: var(--surface-sunken); color: var(--ink-2); border: 1px dashed var(--line-dashed); }
.es-pricetype { display: flex; flex-direction: column; gap: 8px; }
.es-pricetype__reason { display: flex; align-items: center; gap: 8px; }
.es-pricetype__reason .es-input { min-height: 38px; padding: 8px 12px; }

/* ---------- консультант и смена ---------- */
.es-fav { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.es-fav .es-ic { width: 14px; height: 14px; }
.es-shift { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-muted); }
.es-shift b { color: var(--ink); }

/* ---------- приложение: каркас ---------- */
.es-app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100%; background: var(--surface-page); }
.es-main { padding: var(--space-24) var(--space-32); display: flex; flex-direction: column; gap: var(--space-24); max-width: var(--content-max); }
.es-phone { width: 390px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface-page); display: flex; flex-direction: column; }

@media (max-width: 640px) {
  .es-oline { grid-template-columns: 1fr; }
  .es-stats { grid-template-columns: 1fr 1fr; }
  .es-stat:nth-child(2) { border-right: none; }
  .es-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .es-chead { grid-template-columns: auto 1fr; }
  .es-chead__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .es-scheme__row { grid-template-columns: 1fr; }
  .es-scheme__label { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; }
  .es-wa { grid-template-columns: 1fr; }
  .es-results { grid-template-columns: 1fr 1fr; }
  .es-btn, .es-chip { min-height: var(--control); }
}
