/* ЖЕЛЕЗО, «Помост». Экраны тренера (design/app/trainer-*.html).
   Надстройка над system/components.css и app.css: те же материалы — бетон пола, чугунные плиты,
   магнезия для выбранного, жёлтая разметка только на главном действии. */

/* ───────────── общее ───────────── */
.t-strong { color: var(--c-text); font-weight: 600; }
.page-head__n { flex: none; padding-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--c-text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-note { font-size: 13px; line-height: 1.35; color: var(--c-text-dim); text-wrap: balance; }
.field__opt { margin-left: 4px; font-weight: 500; color: #9C998F; }
.field__suffix { padding-right: 16px; font-size: 18px; font-weight: 500; color: var(--c-text-dim); }
.field__icon { width: 20px; height: 20px; margin-left: 14px; color: var(--c-text-dim); flex: none; }
.field__icon + .field__input { padding-left: 10px; }
.field__control--area { align-items: stretch; }
.field__control--area textarea.field__input { min-height: 56px; padding: 15px 16px; font-size: 17px; line-height: 1.4; resize: none; overflow: hidden; }
.field__control--sm { max-width: 160px; margin-top: 2px; }
.field__input--time {
  -webkit-appearance: none; appearance: none; width: 100%; padding-right: 30px; cursor: pointer; color-scheme: dark;
  font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; letter-spacing: 0.02em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C3C0B7' stroke-width='2'/%3E%3C/svg%3E") right 10px center / 16px 16px no-repeat;
}
.field__input--time option { background: #1A1B19; color: #F0EEE8; font-family: var(--f-body); font-size: 16px; }
.topbar__act { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; color: var(--c-text-dim); border-radius: var(--r-md); }
.topbar__act svg { width: 22px; height: 22px; }
.topbar__act:active { transform: scale(0.94); }

/* шторка: заголовок с крестиком, тело с полями */
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__x { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; color: var(--c-text-dim); }
.sheet__x svg { width: 20px; height: 20px; }
.sh-body { display: grid; gap: var(--s-4); }

/* ───────────── индикатор шагов регистрации ─────────────
   Пять плашек, как разметка на помосте: пройденные — магнезия, текущая — жёлтая. */
.ob { margin-bottom: var(--s-3); }
.ob .topbar { margin-bottom: 10px; }
.ob-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; counter-reset: ob; }
.ob-rail li { display: grid; gap: 7px; min-width: 0; counter-increment: ob; }
.ob-rail i { height: 5px; background: rgba(240, 238, 232, 0.16); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.ob-rail span { font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; color: #8F8C84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-rail .is-done i { background: var(--c-text); }
.ob-rail .is-done span { color: var(--c-text-dim); }
.ob-rail .is-on i { background: var(--c-accent); }
.ob-rail .is-on span { color: var(--c-text); }

/* ───────────── профиль: фото, ссылка, город, зал ───────────── */
.ph-pick { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ph-pick__frame {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 6px;
  width: 112px; height: 140px; border-radius: var(--r-md);
  background: url("../media/pomost-grain.png") 0 0 / 96px 96px, var(--c-surface-3); background-blend-mode: soft-light, normal;
  background-size: cover; background-position: center;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(240, 238, 232, 0.1), 0 1px 0 rgba(255, 250, 238, 0.07);
  color: var(--c-text-dim); font-size: 13px; font-weight: 600;
}
.ph-pick__frame svg { width: 30px; height: 30px; }
.ph-pick__frame::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(240, 238, 232, 0.2); border-radius: 4px; pointer-events: none; }
.ph-pick__frame.has-photo { background-size: cover; background-blend-mode: normal; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 24px -14px rgba(0, 0, 0, 0.8); }
.ph-pick__frame.has-photo > *, .ph-pick__frame.has-photo::after { display: none; }
.ph-pick__side { display: grid; align-content: start; gap: 4px; min-width: 0; padding-top: 2px; }
.ph-pick__side b { font-size: 16px; font-weight: 600; }
.ph-pick__side > span { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.ph-pick__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.ph-pick__btns .btn { padding-inline: 12px; gap: 7px; }
.ph-pick__btns .btn svg { width: 17px; height: 17px; }
.slug-line { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: var(--c-text-dim); }
.slug-line svg { flex: none; width: 18px; height: 18px; }
.slug-line b { color: var(--c-text); font-weight: 600; overflow-wrap: anywhere; }

.field-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px 0 16px;
  border-radius: var(--r-md); background: var(--c-surface-3); text-align: left;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(240, 238, 232, 0.1), 0 1px 0 rgba(255, 250, 238, 0.07);
}
.field-btn__v { font-size: 18px; font-weight: 500; }
.field-btn svg { width: 18px; height: 18px; color: var(--c-text-dim); }
.field-btn:active { transform: translateY(1px); }
.tz-line { display: flex; align-items: center; gap: 8px; margin-top: -4px; font-size: 13px; color: var(--c-text-dim); }
.tz-line svg { flex: none; width: 16px; height: 16px; }
.tz-line b { color: var(--c-text); font-weight: 600; }

.gym-sug { display: grid; padding: 4px 0 0; }
.gym-sug__head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--c-text-dim); }
.gym-sug__head svg { width: 16px; height: 16px; }
.gym-sug__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--c-line); text-align: left; }
.gym-sug__row > span { display: grid; gap: 2px; min-width: 0; }
.gym-sug__row b { font-weight: 600; font-size: 15px; }
.gym-sug__row span span { font-size: 13px; line-height: 1.35; color: var(--c-text-dim); overflow-wrap: break-word; }
.gym-sug__row small { font-size: 12px; color: #9C998F; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gym-sug__row:active { background: rgba(240, 238, 232, 0.04); }

.city-list { display: grid; max-height: 46vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; min-height: 50px; border-bottom: 1px solid var(--c-line); text-align: left; }
.city-row b { font-weight: 600; font-size: 16px; }
.city-row span { font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.city-row svg { width: 18px; height: 18px; color: var(--c-ok); }
.city-row[aria-pressed="true"] b { color: var(--c-text); }

/* ───────────── о себе ───────────── */
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec { min-height: 40px; padding: 8px 13px; font-size: 14px; }
.spec svg { width: 14px; height: 14px; }
.spec--own { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.spec-own { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.spec-own .field__control { min-height: 48px; }
.spec-own .field__input { height: 48px; font-size: 16px; }

.stepper { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: stretch; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.08), 0 1px 0 rgba(255, 250, 238, 0.07); padding: 6px; gap: 6px; }
.stepper__btn { display: grid; place-items: center; border-radius: 6px; background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #34352F; background-blend-mode: soft-light, normal; box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.1), 0 2px 0 #10110F; transition: transform var(--dur-fast) var(--ease-heavy); }
.stepper__btn svg { width: 22px; height: 22px; }
.stepper__btn:active:not(:disabled) { transform: translateY(2px); }
.stepper__btn:disabled { opacity: 0.35; cursor: default; }
.stepper__v { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 8px; padding: 8px 0 10px; text-align: center; }
.stepper__v b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 52px; line-height: 0.9; font-variant-numeric: tabular-nums; color: #F3ECD8; }
.stepper__v span { font-size: 17px; font-weight: 600; color: var(--c-text-dim); }
.stepper__v small { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; color: #9C998F; }

.rg-list { display: grid; }
.rg { display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px 40px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--c-line); }
.rg:last-child { border-bottom: 1px solid var(--c-line); }
.rg__year { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 20px; color: var(--c-steel); font-variant-numeric: tabular-nums; }
.rg__title { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: break-word; min-width: 0; }
.rg__photo { display: grid; place-items: center; align-content: center; gap: 1px; width: 44px; height: 54px; border-radius: 4px; background: var(--c-surface-2); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text-dim); font-size: 9.5px; font-weight: 600; }
.rg__photo svg { width: 18px; height: 18px; }
.rg__photo.has-photo { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.rg__del { display: grid; place-items: center; width: 40px; height: 44px; color: #9C998F; border-radius: var(--r-sm); }
.rg__del svg { width: 19px; height: 19px; }
.rg__del:active { color: var(--c-danger); transform: scale(0.94); }
.rg-empty { padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 14px; line-height: 1.45; color: var(--c-text-dim); background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.03) 0 1px, rgba(0, 0, 0, 0) 1px 8px); }
.text-count { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #9C998F; }
.text-count b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-text-dim); white-space: nowrap; }
.text-count b.is-near { color: var(--c-accent); }
.dip-pick { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.dip-pick__thumb { display: grid; place-items: center; width: 56px; height: 72px; border-radius: 4px; background: var(--c-surface-3); background-size: cover; background-position: center; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.1); color: var(--c-text-dim); }
.dip-pick__thumb svg { width: 24px; height: 24px; }
.dip-pick__thumb.has-photo svg { display: none; }
.dip-pick span { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.dip-pick b { font-size: 15px; font-weight: 600; color: var(--c-text); }

/* ───────────── услуги ───────────── */
.tsvc-list { display: grid; gap: 12px; margin-top: var(--s-5); }
.tsvc { padding: 0; overflow: hidden; }
.tsvc__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 16px 14px; text-decoration: none; color: inherit; }
.tsvc__main:active { background: rgba(240, 238, 232, 0.03); }
.tsvc__name { font-weight: 650; font-size: 17px; line-height: 1.28; overflow-wrap: break-word; }
.tsvc__price { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 28px; line-height: 0.95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsvc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--c-text-dim); }
.tsvc__meta > svg { width: 15px; height: 15px; margin-right: -6px; }
.tsvc__badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; background: var(--c-ok-deep); color: var(--c-ok); font-size: 12px; font-weight: 600; clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
.tsvc__badge svg { width: 13px; height: 13px; }
.tsvc__rules { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.tsvc__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--c-line); background: rgba(0, 0, 0, 0.12); font-size: 13px; line-height: 1.3; color: var(--c-text-dim); }
.tsvc.is-off .tsvc__main { opacity: 0.55; }
.tsvc.is-off { background-image: url("../media/pomost-grain.png"), repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.025) 0 1px, rgba(0, 0, 0, 0) 1px 8px); }
.tpl { display: grid; width: 100%; }
.tpl__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-text-dim); }
.tpl__row:last-child { border-bottom: 1px solid var(--c-line); }
.tpl__row b { display: block; font-size: 15px; font-weight: 600; color: var(--c-text); }
.tpl__row .t-num { font-size: 22px; color: var(--c-text); white-space: nowrap; }
.empty__actions .link-action { justify-self: center; }

/* ───────────── плашки выбора ─────────────
   Варианты лежат в лотке (surface-3), выбранный — плита, присыпанная магнезией. */
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; padding: 5px; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.07), 0 1px 0 rgba(255, 250, 238, 0.06); }
.pick--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pick__opt { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border-radius: 6px; color: var(--c-text-dim); transition: transform var(--dur-fast) var(--ease-heavy); }
.pick__opt b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c-text); }
.pick__opt b svg { width: 20px; height: 20px; }
.pick__opt small { font-size: 11.5px; font-weight: 600; line-height: 1; }
.pick__opt:active { transform: translateY(1px); }
.pick__opt[aria-checked="true"] { background: url("../media/pomost-grain.png") 0 0 / 96px 96px, var(--c-text); background-blend-mode: soft-light, normal; color: #4C4B45; box-shadow: 0 2px 0 #9C998F; }
.pick__opt[aria-checked="true"] b { color: var(--c-surface-1); }

/* ───────────── цена по времени ───────────── */
.prules { display: grid; gap: 8px; }
.prule { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 10px 6px 10px 12px; border-radius: var(--r-md); background: var(--c-surface-1); box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.07), 0 1px 0 rgba(0, 0, 0, 0.5), 0 8px 16px -10px rgba(0, 0, 0, 0.7); }
.prule__n { display: grid; place-items: center; width: 28px; height: 28px; background: var(--c-surface-2); font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 16px; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.prule__n svg { width: 14px; height: 14px; color: var(--c-text-dim); }
.prule__body { display: grid; gap: 2px; min-width: 0; text-align: left; }
.prule__body b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.prule__body span { font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.prule__price { display: grid; justify-items: end; gap: 3px; }
.prule__price b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prule__price small { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.prule__price .is-less { color: var(--c-ok); }
.prule__price .is-more { color: #D9C9A7; }
.prule__order { display: grid; gap: 2px; }
.prule__order button { display: grid; place-items: center; width: 36px; height: 24px; border-radius: 4px; color: var(--c-text-dim); }
.prule__order button svg { width: 16px; height: 16px; }
.prule__order button:disabled { opacity: 0.25; cursor: default; }
.prule__order button:active:not(:disabled) { background: rgba(240, 238, 232, 0.08); }
.prule--base { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }
.prule--base .prule__price b { color: var(--c-text-dim); }

.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wk-days__d { min-height: 46px; border-radius: 6px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line), 0 2px 0 #121311; font-weight: 600; font-size: 14px; color: var(--c-text-dim); transition: transform var(--dur-fast) var(--ease-heavy); }
.wk-days__d:active { transform: translateY(1px); }
.wk-days__d[aria-pressed="true"] { background: var(--c-text); color: var(--c-surface-1); box-shadow: 0 2px 0 #9C998F; }
.wk-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-quick .chip { min-height: 34px; font-size: 13px; }
.time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-pair .field__input { padding-inline: 8px; min-width: 0; }
.seg--sm button { min-height: 36px; font-size: 14px; }

/* тарифная доска: неделя, по дню — полоса рабочих часов, разрезанная по цене */
.tariff { display: grid; gap: 10px; padding: 14px 14px 12px; }
.tariff__rows { display: grid; gap: 5px; }
.tariff__row, .tariff__axis { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; }
.tariff__d { font-size: 12px; font-weight: 600; color: var(--c-text-dim); }
.tariff__track { position: relative; height: 24px; border-radius: 3px; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.04) 0 1px, rgba(0, 0, 0, 0) 1px 6px), var(--c-surface-3); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.tariff__seg { position: absolute; top: 2px; bottom: 2px; display: grid; place-items: center; overflow: hidden; border-radius: 2px; background: #4A4B46; box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.12), inset -1px 0 0 rgba(0, 0, 0, 0.35); container-type: inline-size; }
.tariff__seg i { font-style: normal; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 12px; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (max-width: 34px) { .tariff__seg i { display: none; } }
.tariff__seg.is-less { background: #2F5A3C; }
.tariff__seg.is-less i { color: #CDEFD7; }
.tariff__seg.is-more { background: #CFCBC0; }
.tariff__seg.is-more i { color: #23241F; }
.tariff__off { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #8D8B84; }
.tariff__ticks { position: relative; height: 12px; }
.tariff__ticks i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 600; font-size: 11px; color: #9C998F; }
.tariff__ticks i:first-child { transform: none; }
.tariff__ticks i:last-child { transform: translateX(-100%); }
.tariff__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-text-dim); }
.tariff__legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tariff__legend i { width: 14px; height: 10px; border-radius: 2px; background: #4A4B46; }
.tariff__legend i.is-less { background: #2F5A3C; }
.tariff__legend i.is-more { background: #CFCBC0; }
.pv-slots { display: grid; gap: 8px; }
.pv-slots__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv-slot { display: grid; gap: 6px; }
.pv-slot__d { font-size: 12px; font-weight: 600; color: var(--c-text-dim); }
.pv-slot .slot { width: auto; height: 64px; cursor: default; }
.pv-slot .slot__time { font-size: 22px; }

/* ───────────── недельный график ───────────── */
.wk { padding: 12px 10px 10px 6px; }
.wk__grid { display: grid; grid-template-columns: 22px repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk__axis { position: relative; margin-top: 40px; height: 220px; }
.wk__axis i { position: absolute; right: 0; transform: translateY(-50%); font-style: normal; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 600; font-size: 11px; color: #8D8B84; }
.wk__col { display: grid; grid-template-rows: auto auto 220px; justify-items: stretch; gap: 2px; min-width: 0; padding: 0; border-radius: 6px; text-align: center; }
.wk__d { font-size: 13px; font-weight: 650; line-height: 1.2; color: var(--c-text); }
.wk__h { font-size: 11px; line-height: 1.2; color: #9C998F; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 6px; }
.wk__track { position: relative; border-radius: 4px; background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(240, 238, 232, 0.05); background-image: repeating-linear-gradient(180deg, rgba(240, 238, 232, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px calc(100% / 17 * 3)); background-position: 0 calc(100% / 17 * 0); }
.wk__bar { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 3px 0; border-radius: 3px; background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #D9D6CD; background-blend-mode: soft-light, normal; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 rgba(0, 0, 0, 0.5); color: #2A2B27; }
.wk__bar b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.wk__off { position: absolute; inset: 0; border-radius: 4px; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 6px); }
.wk__col.is-off .wk__d { color: #8D8B84; }
.wk__col.is-sel .wk__track { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1.5px var(--c-text); }
.wk__col.is-sel .wk__d { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wk__col:active .wk__track { transform: translateY(1px); }

.wd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: var(--s-6) 0 var(--s-3); }
.wd-head .btn { gap: 7px; padding-inline: 12px; }
.wd-head .btn svg { width: 16px; height: 16px; }
.wd-list { display: grid; padding: 2px 14px; }
.wd { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--c-line); transition: background 0.3s ease; }
.wd:last-child { border-bottom: 0; }
.wd__day b { font-size: 15px; font-weight: 650; }
.wd.is-sel .wd__day b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wd__ivs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wd__off { font-size: 14px; color: #9C998F; }
.iv { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; border-radius: 4px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line), inset 0 1px 0 rgba(255, 250, 238, 0.06); font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-heavy); }
.iv:active { transform: translateY(1px) scale(0.98); }
.iv--add { padding: 0; width: 36px; justify-content: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.iv--add svg { width: 16px; height: 16px; }

.hub-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; }
.hub-link__icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--c-surface-2); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.hub-link__icon svg { width: 20px; height: 20px; }
.hub-link b { display: block; font-size: 15px; font-weight: 600; }
.hub-link span span { font-size: 13px; color: var(--c-text-dim); }
.hub-link > svg { width: 16px; height: 16px; color: var(--c-text-dim); }

/* ───────────── исключения ───────────── */
.exc-new { display: grid; gap: var(--s-4); padding: 14px; }
.mcal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mcal__head b { font-size: 16px; font-weight: 650; }
.mcal__head button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); }
.mcal__head button svg { width: 20px; height: 20px; }
.mcal__head button:disabled { opacity: 0.25; }
.mcal__wd, .mcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mcal__wd span { padding-bottom: 4px; text-align: center; font-size: 11px; font-weight: 600; color: #9C998F; }
.mcal__d { position: relative; height: 40px; border-radius: 6px; background: var(--c-surface-2); box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.06); font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; transition: transform var(--dur-fast) var(--ease-heavy); }
.mcal__d:active:not(:disabled) { transform: translateY(1px); }
.mcal__d:disabled { background: transparent; box-shadow: none; color: #6E6C66; cursor: default; }
.mcal__d.is-weekoff:not(:disabled) { background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 6px), var(--c-surface-3); color: var(--c-text-dim); }
.mcal__d.is-today { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.mcal__d.has-exc::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 3px; margin-left: -6px; background: var(--c-danger); }
.mcal__d[aria-pressed="true"] { background: var(--c-text); color: var(--c-surface-1); box-shadow: 0 2px 0 #9C998F; }
.mcal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--c-text-dim); }
.mcal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-exc { width: 12px; height: 3px; background: var(--c-danger); }
.lg-off { width: 12px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.2) 0 1px, rgba(0, 0, 0, 0) 1px 4px), var(--c-surface-3); }
.exc-new__opts { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.exc-new__day { display: grid; gap: 2px; }
.exc-new__day b { font-size: 16px; font-weight: 600; }
.exc-new__day span { font-size: 13px; color: var(--c-text-dim); }
.exc-new .field__input { height: 50px; font-size: 16px; }
.exc-new .field__control { min-height: 50px; }
.exc-list { display: grid; gap: 10px; }
.exc { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding: 10px 6px 10px 10px; }
.exc__board { height: 70px; }
.exc__board b { font-size: 28px; }
.exc.is-off .exc__board b { color: var(--c-danger); }
.exc__body { display: grid; gap: 3px; min-width: 0; }
.exc__body b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 20px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.exc__body span { font-size: 13px; line-height: 1.35; color: var(--c-text); overflow-wrap: break-word; }
.exc__body small { font-size: 12px; line-height: 1.3; color: #9C998F; }
.exc-empty { display: grid; justify-items: start; gap: 6px; padding: 18px 16px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--c-line); background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.03) 0 1px, rgba(0, 0, 0, 0) 1px 8px); }
.exc-empty svg { width: 26px; height: 26px; color: var(--c-steel); margin-bottom: 4px; }
.exc-empty b { font-family: var(--f-display); font-stretch: var(--f-display-stretch); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.exc-empty span { font-size: 14px; line-height: 1.45; color: var(--c-text-dim); max-width: 34ch; }

/* ───────────── правила записи ───────────── */
.rl { display: grid; gap: 12px; padding: 16px 14px; }
.rl__t { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; line-height: 1.25; }
.rl__t svg { flex: none; width: 20px; height: 20px; color: var(--c-steel); }
.rl__note { font-size: 13.5px; line-height: 1.45; color: var(--c-text-dim); }
.rl__note b { color: var(--c-text); font-weight: 600; }
.rl__ex { font-size: 13px; line-height: 1.45; color: var(--c-text-dim); }
.rl__ex b { color: var(--c-text); font-weight: 600; }
.rl .pick { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); }
.rl .pick[data-pick="lead"] { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 4px; }
.rl .pick[data-pick="lead"] .pick__opt { min-height: 54px; }
.rl .pick[data-pick="lead"] .pick__opt b { font-size: 20px; }
/* линейка «сейчас → порог»: окна в штриховке закрыты для клиента */
.ruler { position: relative; height: 46px; margin: 18px 4px 2px; border-bottom: 1.5px solid var(--c-line-strong); }
.ruler__closed { position: absolute; left: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(-45deg, rgba(242, 131, 107, 0.45) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 6px); box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.4); transition: width 0.32s var(--ease-out); }
.ruler__now, .ruler__edge { position: absolute; bottom: 0; width: 2px; height: 34px; margin-left: -1px; background: var(--c-text); }
.ruler__now { left: 0; margin-left: 0; }
.ruler__edge { background: var(--c-text); transition: left 0.32s var(--ease-out); }
.ruler__now b, .ruler__edge b { position: absolute; top: -18px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ruler__now b { left: 0; }
.ruler__edge b { left: 0; transform: translateX(-50%); }
.ruler > i { position: absolute; bottom: -1px; width: 1px; height: 8px; background: var(--c-line-strong); }
.ruler > i span { position: absolute; top: 12px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: #8D8B84; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl .ruler + .rl__ex { margin-top: 16px; }

/* ───────────── QR-жетон ───────────── */
.qr-scr { padding-bottom: var(--s-6); }
.qr-done { display: grid; gap: 4px; }
.qr-done__k { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-ok); }
.qr-done__k svg { width: 20px; height: 20px; }
.qr-stage { display: grid; justify-items: center; margin-top: var(--s-4); perspective: 900px; }
.qr-stage .qr-tag { width: min(100%, 248px); }
.qr-stage .qr-tag__name { font-size: 19px; white-space: nowrap; hyphens: none; overflow-wrap: normal; }
.qr-stage .qr-tag__name.is-two { white-space: normal; font-size: 16px; line-height: 0.95; bottom: 12%; }
.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: var(--s-5); }
.share__btn { display: grid; justify-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.1; color: var(--c-text); text-align: center; }
.share__plate {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 72px; height: 56px; border-radius: var(--r-md);
  background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #2D2E2A; background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.1), inset 0 0 0 1px rgba(240, 238, 232, 0.07), 0 3px 0 #10110F, 0 8px 12px -6px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-fast) var(--ease-heavy), box-shadow var(--dur-fast) var(--ease-heavy);
}
.share__plate svg { width: 26px; height: 26px; }
.share__btn:active .share__plate { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.1), inset 0 0 0 1px rgba(240, 238, 232, 0.07), 0 1px 0 #10110F; }
/* метка мессенджера: полоска фирменного цвета по нижней кромке, как краска на блине */
.share__btn--tg .share__plate::after, .share__btn--max .share__plate::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 1px; }
.share__btn--tg .share__plate::after { background: #2AABEE; }
.share__btn--max .share__plate::after { background: linear-gradient(90deg, #3E8BFF, #8A4CFF); }
.share__btn.is-done .share__plate { background: var(--c-ok-deep); color: var(--c-ok); }
.share-msg { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s-4); font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.share-msg svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

.poster-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px 16px; padding: 14px; scroll-margin-top: 54px; }
.poster-card__view { display: grid; place-items: end center; height: 176px; padding: 6px 0; border-radius: var(--r-md); background: url("../media/pomost-concrete.jpg") 0 0 / 256px 256px, #3D3E3A; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5); }
.poster-card__side { display: grid; align-content: start; gap: 8px; min-width: 0; }
.poster-card__t { font-size: 17px; font-weight: 650; line-height: 1.2; }
.poster-card__side .seg { margin-top: 4px; }
.poster-card__go { grid-column: 1 / -1; }
.poster2 {
  width: 82px; aspect-ratio: 148 / 210; padding: 5px 5px 4px; display: grid; align-content: start; gap: 3px;
  background: url("../media/pomost-grain.png") 0 0 / 60px 60px, linear-gradient(100deg, #DCD7CA, #EDE9DF 50%, #D8D3C6);
  background-blend-mode: soft-light, normal; color: #1B1C19;
  box-shadow: 2px 4px 8px -2px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(0, 0, 0, 0.3);
  transform-origin: 50% 100%; transition: transform 0.34s var(--ease-out);
}
.poster-card__view.is-a4 .poster2 { transform: scale(1.38); }
.poster2__top { position: relative; height: 34px; overflow: hidden; background: #1B1C19; }
.poster2__top img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.poster2__mark { position: absolute; left: 3px; top: 3px; font-family: var(--f-display); font-weight: 900; font-size: 6px; letter-spacing: 0.08em; color: #F0EEE8; }
.poster2__name { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 9px; line-height: 0.95; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.poster2__cta { font-size: 4.6px; font-weight: 600; line-height: 1.2; color: #3B3C38; }
.poster2__qr { width: 70%; justify-self: center; aspect-ratio: 1; }
.poster2__qr svg { width: 100%; height: 100%; }
.poster2__link { font-size: 4.4px; font-weight: 600; text-align: center; color: #3B3C38; }
.msg-pv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.msg-pv img { width: 72px; height: 96px; border-radius: 8px; object-fit: cover; }
.msg-pv p { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.apps { display: grid; }
.apps__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 14px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--c-line); text-align: left; }
.apps__row svg:first-child { width: 22px; height: 22px; color: var(--c-steel); }
.apps__row b { font-weight: 600; }
.apps__row svg:last-child { width: 16px; height: 16px; color: var(--c-text-dim); }

/* ───────────── подписка: стальная табличка ───────────── */
.sub-plate { position: relative; overflow: hidden; isolation: isolate; border-radius: 14px; color: #23241F; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 2px 3px rgba(0, 0, 0, 0.45), 0 26px 40px -18px rgba(0, 0, 0, 0.8); container-type: inline-size; }
.sub-plate > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sub-plate__screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4F4F0, #9A9C98 55%, #5E605C); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.5); }
.sub-plate__screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; margin-top: -0.75px; background: rgba(40, 40, 36, 0.6); transform: rotate(-35deg); }
.sub-plate__in { display: grid; gap: 10px; padding: 26px 26px 22px; }
.sub-plate__k { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3B3C38; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.sub-plate__k span { padding: 3px 8px; background: #23241F; color: #EDEAE2; font-size: 12px; letter-spacing: 0.02em; text-shadow: none; clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
.sub-plate__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.sub-plate__big b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: clamp(64px, 26cqi, 92px); line-height: 0.82; color: #1E1F1B; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.3); }
.sub-plate__big small { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; line-height: 1; color: #3B3C38; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.sub-plate__foot { font-size: 14px; font-weight: 600; line-height: 1.4; color: #34352F; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.sub-ticks { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 14px; }
.sub-ticks i { background: #2A2B27; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.sub-ticks i.is-used { background: transparent; box-shadow: inset 0 0 0 1px rgba(30, 31, 27, 0.35); }
.sub-plate.is-off .sub-plate__big b { color: #3B3C38; }
.inc { display: grid; gap: 14px; }
.inc li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.inc svg { width: 22px; height: 22px; color: var(--c-steel); }
.inc b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.inc span span { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.his { display: grid; }
.his li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.his li:last-child { border-bottom: 1px solid var(--c-line); }
.his__d { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 17px; color: var(--c-steel); font-variant-numeric: tabular-nums; }
.his b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.his span span { font-size: 13px; color: var(--c-text-dim); }
.sub-cab { display: flex; gap: 10px; align-items: center; margin-top: var(--s-6); font-size: 14px; color: var(--c-text-dim); }
.sub-cab svg { flex: none; width: 18px; height: 18px; }

/* ───────────── оформление страницы ───────────── */
.style-top { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 16px; align-items: start; }
.pv { display: grid; gap: 8px; justify-items: center; }
.pv__frame { position: relative; width: 156px; height: 338px; border-radius: 22px; overflow: hidden; background: #0E0F0D; box-shadow: 0 0 0 1.5px #0B0C0A, 0 0 0 5px #3A3C38, 0 0 0 6px #5A5D58, 0 20px 30px -16px rgba(0, 0, 0, 0.9); }
.pv__screen { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(0.4); transform-origin: 0 0; overflow: hidden; background-color: var(--c-bg); pointer-events: none; }
.pv__surf { position: absolute; inset: 0; width: 390px; height: 844px; }
.pv__body { position: relative; padding: 0 20px; }
.pv__body .pro-hero { height: 470px; }
.pv__body .pro-hero__name { font-size: 50px; }
.pv__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 30px; background: rgba(26, 27, 25, 0.96); box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.09); }
.pv__bar .btn { min-height: 54px; padding-inline: 24px; font-size: 17px; }
.pv__cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--c-text-dim); }
.pv__cap svg { width: 14px; height: 14px; }
.sw { display: grid; gap: 6px; min-width: 0; }
.sw__h { font-size: 13px; font-weight: 600; color: var(--c-text-dim); margin-bottom: 2px; }
.sw__opt { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 56px; padding: 5px 8px 5px 5px; border-radius: var(--r-md); text-align: left; transition: transform var(--dur-fast) var(--ease-heavy); }
.sw__opt canvas { width: 46px; height: 46px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 0 #10110F; }
.sw__opt b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.sw__opt:active { transform: translateY(1px); }
.sw__opt[aria-checked="true"] { background: var(--c-surface-1); box-shadow: inset 0 0 0 1.5px var(--c-text), 0 8px 16px -10px rgba(0, 0, 0, 0.8); }
.sw-note { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.sw-note b { color: var(--c-text); font-weight: 600; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cover { position: relative; display: grid; align-items: end; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-3); text-align: left; transition: transform var(--dur-fast) var(--ease-heavy); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.85); }
.cover span { position: relative; padding: 18px 6px 6px; font-size: 11.5px; font-weight: 600; line-height: 1.15; background: linear-gradient(180deg, rgba(14, 15, 13, 0), rgba(14, 15, 13, 0.85)); }
.cover:active { transform: scale(0.97); }
.cover[aria-checked="true"] { box-shadow: 0 0 0 2px var(--c-text); }
.cover[aria-checked="true"] img { filter: none; }
.cover--up { justify-items: center; align-content: center; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 8px); }
.cover--up svg { width: 24px; height: 24px; color: var(--c-text-dim); }
.cover--up span { padding: 0; background: none; color: var(--c-text-dim); }
.cover--up.has-photo { background: var(--own) center / cover; align-content: end; }
.cover--up.has-photo svg { display: none; }
.cover--up.has-photo span { width: 100%; padding: 18px 6px 6px; background: linear-gradient(180deg, rgba(14, 15, 13, 0), rgba(14, 15, 13, 0.85)); color: var(--c-text); }

/* ───────────── профиль тренера: хаб ───────────── */
.hub-hero { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 10px 14px 10px 10px; text-decoration: none; color: inherit; }
.hub-hero__img { position: relative; height: 130px; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-3); }
.hub-hero__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.hub-hero__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-width: 0; padding-top: 4px; }
.hub-hero__name { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 26px; line-height: 0.95; text-transform: uppercase; overflow-wrap: normal; hyphens: none; }
.hub-hero__gym { font-size: 13px; line-height: 1.35; color: var(--c-text-dim); overflow-wrap: break-word; }
.hub-hero__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.hub-hero__link svg { flex: none; width: 15px; height: 15px; }
.sub-strip { display: grid; grid-template-columns: 10px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-line); text-decoration: none; color: var(--c-text-dim); font-size: 14px; }
.sub-strip b { margin-right: 8px; color: var(--c-text); font-weight: 600; }
.sub-strip__dot { width: 8px; height: 8px; background: var(--c-ok); clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px); }
.sub-strip.is-off .sub-strip__dot { background: var(--c-steel); }
.sub-strip > svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .pick__opt, .wk-days__d, .iv, .mcal__d, .share__plate, .poster2, .ruler__closed, .ruler__edge, .sw__opt, .cover, .stepper__btn, .wd { transition: none; }
}
@media (max-height: 760px) {
  .qr-stage .qr-tag { width: min(100%, 212px); }
  .qr-stage .qr-tag__name { font-size: 16px; }
  .qr-stage .qr-tag__link { font-size: 11px; }
  .qr-stage { margin-top: var(--s-3); }
  .share { margin-top: var(--s-4); }
}
@media (max-width: 370px) {
  .style-top { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
  .pv__frame { width: 140px; height: 303px; }
  .pv__screen { transform: scale(0.359); }
  .pick--6 .pick__opt b { font-size: 19px; }
}

/* строка настроек со значением и стрелкой */
.set--val { grid-template-columns: 22px minmax(0, 1fr) auto 16px; }
.topbar:not(:has(.topbar__title)) { margin-bottom: var(--s-2); }

/* ═════════════ рабочие экраны тренера: календарь, записи, серии, клиенты, абонементы ═════════════
   Лента дня читается как стойка со снарядами: слева — табло времени, справа — плиты записей.
   Жёлтая разметка — только «сейчас» и главная кнопка. */

/* фото клиента или инициалы в «гайке» (как .me__ava в профиле клиента) */
.ava { --ava: 44px; --cut: 9px; position: relative; flex: none; display: grid; place-items: center; width: var(--ava); height: var(--ava); overflow: hidden; background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #34352F; background-blend-mode: soft-light, normal; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.ava img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.04); }
.ava b { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: calc(var(--ava) * 0.38); line-height: 1; letter-spacing: 0.02em; color: var(--c-text-dim); }
.ava--lg { --ava: 64px; --cut: 13px; }
.ava--sys { background: var(--c-surface-2); color: var(--c-steel); }
.ava--sys svg { width: 22px; height: 22px; }

/* метки записи: «буду», «не подтвердил», серия, абонемент */
.mk { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 3px; background: rgba(240, 238, 232, 0.06); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 12px; font-weight: 600; line-height: 1; color: var(--c-text-dim); white-space: nowrap; }
.mk svg { width: 13px; height: 13px; flex: none; }
.mk--ok { background: var(--c-ok-deep); box-shadow: none; color: var(--c-ok); }
.mk--warn { background: transparent; box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.55); color: var(--c-danger); }
.mk--ico { padding: 0 6px; }
.mk--pk { color: var(--c-text); font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tb__mk .badge-status, .bd-mk .badge-status { height: 22px; font-size: 12px; padding: 0 8px 0 7px; }

/* ───────────── шапка календаря ───────────── */
.cal-body { padding-bottom: 40px; }
.cal-add { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #DFAB1D; background-blend-mode: soft-light, normal; color: var(--c-on-accent); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
.cal-add svg { width: 24px; height: 24px; }
.cal-top__row { display: flex; align-items: center; gap: 4px; }
.cal-top__t { flex: 1; min-width: 0; }
.cal-top__act, .bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); color: var(--c-text); }
.cal-top__act svg, .bell svg { width: 24px; height: 24px; }
.cal-top__act:active, .bell:active { transform: scale(0.94); }
.bell__n { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; background: var(--c-danger); color: #2A0D09; font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.cal-top__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cal-mode { flex: none; width: 168px; }
.seg--sm button { min-height: 36px; font-size: 14px; }
.wk-nav { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--c-text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-nav button { display: grid; place-items: center; width: 36px; height: 40px; color: var(--c-text); border-radius: var(--r-sm); }
.wk-nav button svg { width: 18px; height: 18px; }
.wk-nav button:active { transform: scale(0.92); }

/* полоса недели: число и «блины» — сколько записей в день */
.w7s { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.w7 { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 0 8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text); transition: transform var(--dur-fast) var(--ease-heavy); }
.w7:active { transform: translateY(1px) scale(0.97); }
.w7__wd { font-size: 11px; font-weight: 600; line-height: 1; color: var(--c-text-dim); white-space: nowrap; }
.w7__n { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.w7__pl { display: flex; align-items: center; justify-content: center; gap: 2px; height: 12px; }
.w7__pl i { width: 3px; height: 12px; border-radius: 1px; background: var(--c-steel); }
.w7__pl i:nth-child(2n) { height: 9px; }
.w7__pl em { font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; color: var(--c-steel); }
.w7__pl s { width: 14px; height: 2px; background: rgba(240, 238, 232, 0.2); }
.w7.is-today .w7__wd { color: var(--c-accent); font-weight: 700; }
.w7.is-today { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.w7.is-past .w7__n { color: var(--c-text-dim); }
.w7.is-off { background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 6px); }
.w7.is-sel { background: url("../media/pomost-grain.png") 0 0 / 96px 96px, var(--c-text); background-blend-mode: soft-light, normal; box-shadow: 0 3px 0 #9C998F, 0 8px 14px -8px rgba(0, 0, 0, 0.7); color: var(--c-surface-1); transform: translateY(-2px); }
.w7.is-sel .w7__wd { color: #4C4B45; }
.w7.is-sel.is-today .w7__wd { color: #6B5208; }
.w7.is-sel .w7__n { color: var(--c-surface-1); }
.w7.is-sel .w7__pl i { background: var(--c-surface-1); }
.w7.is-sel .w7__pl em { color: var(--c-surface-1); }

/* итог дня: табло */
.dsum {
  display: grid; gap: 10px; margin-top: 14px; padding: 12px 14px 14px; border-radius: var(--r-md);
  background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #141512; background-blend-mode: soft-light, normal;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 250, 238, 0.08);
  color: #F3ECD8;
}
.dsum__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; color: #CFC8B5; font-variant-numeric: tabular-nums; }
.dsum__top span { color: #9F9886; font-size: 13px; white-space: nowrap; }
.dsum__nums { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 6px; }
.dsum__nums span { display: grid; gap: 3px; min-width: 0; }
.dsum__nums b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 32px; line-height: 0.9; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 16px rgba(255, 226, 160, 0.14); }
.dsum__nums small { font-size: 12px; font-weight: 500; line-height: 1.15; color: #9F9886; white-space: nowrap; }
.dsum__nums .is-warn b { color: var(--c-danger); text-shadow: none; }
.dsum__nums .is-warn small { color: #D99484; }
.dsum--wk { margin-top: 14px; }

/* ───────────── лента дня ───────────── */
.tl { position: relative; display: grid; gap: 8px; margin-top: 16px; }
.tl::before { content: ""; position: absolute; left: 25px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(240, 238, 232, 0.16), rgba(240, 238, 232, 0.06)); }
.tl__row { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.tl__time { position: relative; z-index: 1; display: grid; align-content: start; justify-items: center; gap: 3px; padding-top: 10px; background: linear-gradient(180deg, var(--c-bg) 0 40px, transparent 40px); }
.tl__time b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl__time small { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 600; font-size: 13px; line-height: 1; color: #9C998F; font-variant-numeric: tabular-nums; }
.screen.concrete .tl__time { background: none; }

/* плита записи */
.tb {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: start; min-width: 0;
  padding: 10px 12px 10px 10px; border-radius: var(--r-md); text-decoration: none; color: inherit;
  background-color: var(--c-surface-1);
  background-image: url("../media/pomost-grain.png"), linear-gradient(180deg, rgba(255, 250, 238, 0.035), rgba(0, 0, 0, 0.12));
  background-size: 128px 128px, auto; background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.08), 0 1px 0 rgba(0, 0, 0, 0.55), 0 10px 18px -12px rgba(0, 0, 0, 0.75);
  transition: transform var(--dur-fast) var(--ease-heavy);
}
.tb:active { transform: translateY(1px); }
.tb__body { display: grid; gap: 6px; min-width: 0; padding-top: 1px; }
.tb__name { font-weight: 650; font-size: 16px; line-height: 1.2; overflow-wrap: normal; hyphens: none; word-break: keep-all; }
.tb__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.tb__svc { margin-right: 3px; font-size: 13px; line-height: 22px; color: var(--c-text-dim); white-space: nowrap; }
.tb__svc em { font-style: normal; font-weight: 600; color: var(--c-accent); }
.tb__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.tb__price { flex: none; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__row.is-past .tb__price { color: var(--c-text-dim); }
.tl--dense { gap: 6px; }
.tl--dense .tb { padding: 8px 10px 8px 8px; gap: 10px; grid-template-columns: 38px minmax(0, 1fr); }
.tl--dense .tb .ava { --ava: 38px; --cut: 8px; }
.tl--dense .tb__body { gap: 3px; }
.tl--dense .tb__name { font-size: 15px; }
.tl--dense .tl__time { padding-top: 8px; }
.tl__row.is-past .tb { background-color: #2A2B27; box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.06); }
.tl__row.is-past .tb .ava { opacity: 0.8; }
.tl__row.is-past .tl__time b { color: var(--c-text-dim); }
.tl__row.is-noshow .tb__name { color: var(--c-text-dim); }
/* идёт сейчас: жёлтая кромка, как разметка на краю помоста */
.tl__row.is-live .tb { box-shadow: inset 3px 0 0 var(--c-accent), inset 0 1px 0 rgba(255, 250, 238, 0.08), 0 1px 0 rgba(0, 0, 0, 0.55), 0 14px 22px -12px rgba(0, 0, 0, 0.85); }
.tl__now { position: absolute; left: 0; right: 0; top: var(--at); z-index: 2; height: 0; pointer-events: none; }
.tl__now::after { content: ""; position: absolute; left: 50px; right: 0; top: -1px; height: 2px; background: var(--c-accent); opacity: 0.8; }
.tl__now b, .tl__nowrow b { position: absolute; left: 2px; top: -10px; z-index: 1; padding: 3px 5px; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 13px; line-height: 14px; font-variant-numeric: tabular-nums; clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%); }
.tl__nowrow { position: relative; height: 14px; }
.tl__nowrow i { position: absolute; left: 50px; right: 0; top: 6px; height: 2px; background: var(--c-accent); }
.tl__nowrow b { top: 0; }

/* свободное окно: размеченное, но пустое место на помосте */
.tfree { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 58px; padding: 9px 12px 9px 14px; border-radius: var(--r-md); text-decoration: none; color: inherit; background: repeating-linear-gradient(-45deg, rgba(232, 180, 32, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 9px); box-shadow: inset 0 0 0 1.5px rgba(232, 180, 32, 0.42); }
.tfree__plus { display: grid; place-items: center; width: 36px; height: 36px; background: var(--c-accent); color: var(--c-on-accent); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.tfree__plus svg { width: 20px; height: 20px; }
.tfree__t b { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.tfree__t span { font-size: 13px; color: var(--c-text-dim); }
.tfree.is-past { display: flex; min-height: 36px; padding: 0 12px; background: none; box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.08); font-size: 13px; color: #8F8C84; }
.tl--free.is-past .tl__time { padding-top: 4px; }
.tl--free.is-past .tl__time b { font-size: 15px; color: #8F8C84; }
.tl--free.is-past .tl__time small { display: none; }

/* блокировка: чёрная резина в штриховке */
.tblock { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 56px; padding: 9px 12px 9px 14px; border-radius: var(--r-md); text-decoration: none; color: inherit; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 2px, rgba(0, 0, 0, 0) 2px 9px), #1B1C1A; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(240, 238, 232, 0.08); }
.tblock > svg { width: 20px; height: 20px; color: var(--c-steel); }
.tblock b { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.tblock span span { font-size: 12.5px; color: #9C998F; }
.tl__brk { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 0 4px 58px; font-size: 12.5px; font-weight: 500; color: #9C998F; font-variant-numeric: tabular-nums; }
.tl__brk::before { content: ""; position: absolute; left: 19px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; background: var(--c-bg); box-shadow: inset 0 0 0 1.5px rgba(240, 238, 232, 0.24); transform: rotate(45deg) scale(0.72); }
.tl__brk span { flex: 1; padding: 7px 0; border-top: 1px dashed rgba(240, 238, 232, 0.16); border-bottom: 1px dashed rgba(240, 238, 232, 0.16); }
.tl__cx a { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 32px; text-decoration: none; color: #8F8C84; font-size: 13px; }
.tl__cx s { justify-self: center; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 15px; text-decoration-thickness: 2px; }
.tl__cx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl__cx em { font-style: normal; font-size: 12px; white-space: nowrap; }

/* пустой день и выходной */
.cal-empty { display: grid; gap: 14px; margin-top: 18px; }
.cal-empty__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-3); }
.cal-empty__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: grayscale(0.35) contrast(1.06) brightness(0.92); }
.cal-empty__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.08); }
.cal-empty__hours { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: #141512; color: #F3ECD8; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.cal-empty .empty__title { margin-top: 4px; }
.cal-empty__plate { display: grid; justify-items: start; gap: 8px; padding: 22px 18px; border-radius: var(--r-lg); background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 8px); box-shadow: inset 0 0 0 1px var(--c-line); }
.cal-empty__plate svg { width: 28px; height: 28px; color: var(--c-steel); }
.cal-empty__plate b { font-family: var(--f-display); font-stretch: var(--f-display-stretch); font-weight: 800; font-size: var(--t-xl); line-height: 1; text-transform: uppercase; }
.cal-empty__plate span { font-size: 15px; line-height: 1.5; color: var(--c-text-dim); }

/* кнопка «добавить»: жёлтая гайка над меню */
.fab {
  position: absolute; right: 16px; bottom: calc(86px + var(--safe-bottom)); z-index: 20;
  display: grid; place-items: center; width: 60px; height: 60px;
  background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #DFAB1D; background-blend-mode: soft-light, normal;
  color: var(--c-on-accent);
  clip-path: polygon(17px 0, calc(100% - 17px) 0, 100% 17px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 17px 100%, 0 calc(100% - 17px), 0 17px);
  filter: drop-shadow(0 3px 0 #7A5A0B) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
}
.fab svg { width: 28px; height: 28px; }
.fab-list { display: grid; }
.fab-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 14px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.fab-row:last-child { border-bottom: 0; }
.fab-row__i { display: grid; place-items: center; width: 44px; height: 44px; background: var(--c-surface-2); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.fab-row__i svg { width: 22px; height: 22px; }
.fab-row b { display: block; font-weight: 600; font-size: 16px; }
.fab-row span span { font-size: 13px; color: var(--c-text-dim); }
.fab-row > svg { width: 16px; height: 16px; color: var(--c-text-dim); }

/* ───────────── неделя ───────────── */
.wkg { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px; margin-top: 14px; padding: 12px 10px 10px 4px; }
.wkg__axis { position: relative; margin: 34px 0 26px; }
.wkg__axis i { position: absolute; right: 0; transform: translateY(-50%); font-style: normal; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 600; font-size: 11px; color: #8D8B84; }
.wkg__cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wkg__col { display: grid; grid-template-rows: 30px 260px 22px; gap: 4px; min-width: 0; text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease-heavy); }
.wkg__col:active { transform: translateY(1px); }
.wkg__d { display: grid; justify-items: center; font-size: 11px; font-weight: 600; line-height: 1.05; color: var(--c-text-dim); }
.wkg__d b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-size: 18px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; }
.wkg__col.is-today .wkg__d { color: var(--c-accent); }
.wkg__track { position: relative; border-radius: 4px; background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(240, 238, 232, 0.05); overflow: hidden; }
.wkg__col.is-today .wkg__track { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1.5px var(--c-line-strong); }
.wkg__on { position: absolute; left: 0; right: 0; background: rgba(240, 238, 232, 0.05); }
.wkg__b { position: absolute; left: 3px; right: 3px; border-radius: 2px; }
.wkg__b + .wkg__b { margin-top: 1px; }
.is-att { background: #8E8B83; }
.is-bk { background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #E4E1D8; background-blend-mode: soft-light, normal; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.is-ns { background: var(--c-danger-deep); box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.5); }
.is-unc { background: #E4E1D8; box-shadow: inset 0 0 0 2px var(--c-danger); }
.wkg__bl { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.22) 0 1px, rgba(0, 0, 0, 0) 1px 5px); }
.wkg__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--c-accent); }
.wkg__off { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 6px); }
.wkg__n { text-align: center; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 16px; line-height: 22px; font-variant-numeric: tabular-nums; }
.wkg__col.is-past .wkg__d b, .wkg__col.is-past .wkg__n { color: var(--c-text-dim); }
.wkg__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--c-text-dim); }
.wkg__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wkg__legend i { position: static; display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.wkr-list { display: grid; }
.wkr { display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px; gap: 12px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.wkr__d { display: grid; justify-items: center; line-height: 1; }
.wkr__d b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wkr__d span { font-size: 12px; color: var(--c-text-dim); }
.wkr.is-today .wkr__d span { color: var(--c-accent); font-weight: 700; }
.wkr__body { display: grid; gap: 3px; min-width: 0; }
.wkr__body b { font-weight: 600; font-size: 15px; }
.wkr__body > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 12.5px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.wkr__body em { font-style: normal; color: var(--c-danger); }
.wkr__body svg { width: 12px; height: 12px; }
.wkr__load { display: grid; gap: 4px; justify-items: end; }
.wkr__load i { display: block; justify-self: stretch; height: 6px; border-radius: 1px; background: linear-gradient(90deg, var(--c-steel) var(--w, 100%), transparent 0); box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.1); }
.wkr__load { position: relative; }
.wkr__load::before { content: ""; height: 6px; justify-self: stretch; border-radius: 1px; background: var(--c-surface-3); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); grid-area: 1 / 1; }
.wkr__load i { grid-area: 1 / 1; justify-self: start; background: var(--c-steel); box-shadow: none; }
.wkr__load small { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.wkr.is-off .wkr__body b { color: var(--c-text-dim); font-weight: 500; }

/* ───────────── запись ───────────── */
.bd-who { display: grid; grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; text-decoration: none; color: inherit; }
.bd-who__body { display: grid; gap: 6px; min-width: 0; }
.bd-who__name { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 24px; line-height: 0.96; text-transform: uppercase; overflow-wrap: normal; hyphens: none; }
.bd-who__body > span { font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.bd-who > svg { width: 16px; height: 16px; color: var(--c-text-dim); }
.contact-row .btn--sm { min-height: 44px; }
.bd-board { overflow: hidden; }
.bd-board.is-cx .board__time { opacity: 0.5; text-decoration: line-through; text-decoration-thickness: 4px; }
/* штамп отметки: краска по табло, как клеймо на блине */
.stamp { position: absolute; right: 14px; top: 50%; margin-top: -24px; padding: 6px 12px 5px; border: 3px solid var(--c-ok); color: var(--c-ok); font-family: var(--f-display); font-stretch: 84%; font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-9deg); border-radius: 4px; opacity: 0.92; mix-blend-mode: screen; pointer-events: none; }
.bd-board:has(.stamp:not([hidden])) .board__time small { visibility: hidden; }
.mark-bar .marked.is-no ~ * { display: none; }
.bd-mk { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-mk:empty { display: none; }
.pay-seg button { gap: 6px; padding: 0 6px; font-size: 14px; }
.pay-seg button svg { width: 17px; height: 17px; flex: none; }
.pay-seg button[aria-selected="true"] svg { color: var(--c-surface-1); }
.pay-seg button:disabled { opacity: 0.4; }
.bd-pkg { display: grid; gap: 12px; padding: 14px 16px 16px; transition: opacity 0.2s ease; }
.bd-pkg.is-off { opacity: 0.55; }
.bd-pkg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--c-text-dim); }
.bd-pkg .counter__value b { font-size: 48px; }
.counter__note b { color: var(--c-text); font-weight: 700; }
.counter__n { display: inline-block; }
.mark2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.mark2 .btn { min-height: 60px; font-family: var(--f-display); font-stretch: var(--f-display-stretch); font-weight: 800; font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; }
.mark-yes { --btn-face: #2F5A3C; --btn-edge: #13261A; --btn-text: #DDF5E3; }
.mark-yes::before { background: url("../media/pomost-grain.png") 0 0 / 128px 128px, var(--btn-face) !important; background-blend-mode: soft-light, normal; box-shadow: inset 0 0 0 1px rgba(124, 200, 150, 0.35) !important; }
.mark-yes svg { width: 22px; height: 22px; }
.mark-no { --btn-face: #3A221E; --btn-edge: #1C0E0B; --btn-text: #FFD2C6; }
.mark-no::before { background: url("../media/pomost-grain.png") 0 0 / 128px 128px, var(--btn-face) !important; background-blend-mode: soft-light, normal; box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.3) !important; }
.marked { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 8px 6px 8px 14px; border-radius: var(--r-md); background: var(--c-ok-deep); box-shadow: inset 0 0 0 1px rgba(124, 200, 150, 0.3); }
.marked > svg { width: 26px; height: 26px; color: var(--c-ok); }
.marked b { display: block; font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 19px; line-height: 1.05; text-transform: uppercase; color: #DDF5E3; }
.marked span span { font-size: 13px; line-height: 1.3; color: #A9D7B6; }
.marked .link-action { min-height: 40px; font-size: 13px; color: #DDF5E3; text-decoration-color: rgba(221, 245, 227, 0.4); white-space: nowrap; }
.marked.is-no { background: var(--c-danger-deep); box-shadow: inset 0 0 0 1px rgba(242, 131, 107, 0.3); }
.marked.is-no > svg { color: var(--c-danger); }
.marked.is-no b { color: #FFD9CF; }
.marked.is-no span span { color: #E7AE9F; }
.marked.is-no .link-action { color: #FFD9CF; }
.scope { display: grid; gap: 8px; }
.scope__opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: var(--r-md); text-align: left; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px var(--c-line); transition: transform var(--dur-fast) var(--ease-heavy); }
.scope__opt:active { transform: translateY(1px); }
.scope__opt i { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-line-strong); }
.scope__opt b { display: block; font-weight: 650; font-size: 16px; line-height: 1.25; }
.scope__opt span span { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }
.scope__opt[aria-checked="true"] { background: var(--c-surface-2); box-shadow: inset 0 0 0 1.5px var(--c-text); }
.scope__opt[aria-checked="true"] i { box-shadow: inset 0 0 0 6px var(--c-text); }
a.scope__opt i { border-radius: 0; box-shadow: none; background: none; }
.set--sheet { padding: 4px 0; border-bottom: 0; }
.rule-note--warn svg, .rule-note--err svg { color: var(--c-danger); }
.rule-note--err { color: var(--c-text); }
.rule-note--info svg { color: var(--c-accent); }

/* ───────────── ручная запись ───────────── */
.picked { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px 10px 10px; }
.picked__b { display: grid; gap: 3px; min-width: 0; }
.picked__b b { font-weight: 650; font-size: 16px; line-height: 1.2; }
.picked__b span { font-size: 13px; line-height: 1.3; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.picked__x { display: grid; place-items: center; width: 40px; height: 40px; color: var(--c-text-dim); }
.picked__x svg { width: 18px; height: 18px; }
.pick-cap { margin: 12px 0 2px; font-size: 13px; font-weight: 600; color: var(--c-text-dim); }
.pick-list { display: grid; }
.pick-cl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--c-line); text-align: left; color: inherit; }
.pick-cl:last-child { border-bottom: 0; }
.pick-cl b { display: block; font-weight: 600; font-size: 15px; }
.pick-cl span span { font-size: 13px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.pick-cl > svg { width: 18px; height: 18px; color: var(--c-text-dim); }
.pick-cl:active { background: rgba(240, 238, 232, 0.04); }
.newcl { display: grid; gap: 12px; }
.newcl__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.newcl .btn { justify-self: start; }
.day-strip--t { margin-inline: calc(var(--s-5) * -1); padding-inline: var(--s-5); }
.day.is-weekoff:not(.is-selected) { background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 7px); color: #9C998F; }
.tchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px 8px; padding: 10px 10px 14px; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.08), 0 1px 0 rgba(255, 250, 238, 0.07); }
.slot--t { width: auto; height: 62px; gap: 5px; }
.slot--t .slot__time { font-size: 22px; }
.tchips__none { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; line-height: 1.4; color: var(--c-text-dim); }
.tchips__none svg { flex: none; width: 18px; height: 18px; }
.own-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.own-time__l { font-size: 14px; font-weight: 600; color: var(--c-text-dim); }
.own-time .field__control--sm { width: 132px; margin: 0; }
#checks { display: grid; gap: 8px; }
#checks:empty { display: none; }

/* ───────────── серия ───────────── */
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 5px; border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(240, 238, 232, 0.07); }
.dow button { min-height: 46px; border-radius: 6px; font-weight: 650; font-size: 15px; color: var(--c-text-dim); transition: transform var(--dur-fast) var(--ease-heavy); }
.dow button:active { transform: translateY(1px); }
.dow button[aria-pressed="true"] { background: url("../media/pomost-grain.png") 0 0 / 96px 96px, var(--c-text); background-blend-mode: soft-light, normal; color: var(--c-surface-1); box-shadow: 0 2px 0 #9C998F; }
.field__control--ro { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }
.ro-v { padding: 0 14px 0 8px; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 22px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.cf-head { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--c-text-dim); }
.cf-head svg { width: 20px; height: 20px; color: var(--c-steel); }
.cf-head b { color: var(--c-text); font-weight: 650; }
.cf-head.is-open svg { color: var(--c-danger); }
.cf-head.is-ok svg { color: var(--c-ok); }
#cfs { display: grid; gap: 8px; }
.cf { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 12px 12px 10px; border-radius: var(--r-md); background: rgba(242, 131, 107, 0.06); box-shadow: inset 3px 0 0 var(--c-danger), inset 0 0 0 1px rgba(242, 131, 107, 0.3); transition: background 0.25s ease, box-shadow 0.25s ease; }
.cf.is-res { background: rgba(240, 238, 232, 0.03); box-shadow: inset 3px 0 0 var(--c-ok), inset 0 0 0 1px var(--c-line); }
.cf__d { display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: 2px; }
.cf__d b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 28px; line-height: 0.85; font-variant-numeric: tabular-nums; }
.cf__d small { font-size: 11.5px; color: var(--c-text-dim); white-space: nowrap; }
.cf__b { display: grid; gap: 10px; min-width: 0; }
.cf__b > b { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cf__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cf__opts button { min-height: 38px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); color: var(--c-text); font-variant-numeric: tabular-nums; }
.cf__opts button[aria-checked="true"] { background: var(--c-text); color: var(--c-surface-1); box-shadow: 0 2px 0 #9C998F; }
.cf__opts em { align-self: center; font-style: normal; font-size: 12.5px; color: #9C998F; }
.sd-m { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--c-text-dim); }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
.sd { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; border-radius: 4px; background: var(--c-surface-1); box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.06), 0 1px 0 rgba(0, 0, 0, 0.5); }
.sd b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.sd small { font-size: 10.5px; line-height: 1; color: var(--c-text-dim); }
.sd em { font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.sd.is-cf { background: rgba(242, 131, 107, 0.1); box-shadow: inset 0 0 0 1.5px var(--c-danger); }
.sd.is-shift { box-shadow: inset 0 0 0 1.5px rgba(232, 180, 32, 0.6); }
.sd.is-skip { background: repeating-linear-gradient(-45deg, rgba(240, 238, 232, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 6px); box-shadow: inset 0 0 0 1px var(--c-line); }
.sd.is-skip b { color: #8F8C84; text-decoration: line-through; }
.sd.is-skip em { color: #8F8C84; }
.mv-list { display: grid; gap: 2px; }
.mv { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px auto; gap: 8px; align-items: center; min-height: 34px; font-size: 14px; color: var(--c-text-dim); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--c-line); }
.mv s { color: #8F8C84; }
.mv svg { width: 14px; height: 14px; }
.mv b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 17px; color: var(--c-text); }
.mv.is-bad b { color: var(--c-danger); font-family: var(--f-body); font-size: 13px; }
.mv--more { display: block; border: 0; font-size: 13px; }

/* ───────────── блокировка ───────────── */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-wrap .chip { min-height: 38px; padding: 6px 14px; }
.dayline { position: relative; height: 46px; margin-top: 4px; border-radius: 4px; background: var(--c-surface-3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(240, 238, 232, 0.05); overflow: hidden; }
.dayline__on { position: absolute; top: 0; bottom: 14px; background: rgba(240, 238, 232, 0.06); }
.dayline__b { position: absolute; top: 6px; height: 20px; border-radius: 2px; background: #E4E1D8; }
.dayline__b.is-hit { background: var(--c-danger); }
.dayline__bl { position: absolute; top: 2px; height: 28px; border-radius: 2px; background: repeating-linear-gradient(-45deg, rgba(232, 180, 32, 0.55) 0 2px, rgba(0, 0, 0, 0) 2px 6px); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.dayline em { position: absolute; bottom: 2px; transform: translateX(-50%); font-style: normal; font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-size: 10.5px; font-weight: 600; color: #8D8B84; }
.imp-list { display: grid; gap: 6px; margin-top: 10px; }
.imp-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr) 14px; gap: 10px; align-items: center; text-decoration: none; color: var(--c-text); font-weight: 600; font-size: 14px; }
.imp-list .ava { --ava: 32px; --cut: 7px; }
.imp-list a > svg { width: 14px; height: 14px; }

/* ───────────── база клиентов ───────────── */
.cl-f { padding-bottom: 6px; }
.cl-f .chip { min-height: 36px; gap: 7px; }
.cl-f .chip small { font-size: 12px; font-weight: 700; opacity: 0.7; font-variant-numeric: tabular-nums; }
.cl-list { margin-top: 4px; }
.cl-l { position: sticky; top: -1px; z-index: 1; margin: 14px calc(var(--s-5) * -1) 0; padding: 6px var(--s-5); background: rgba(61, 62, 58, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 15px; line-height: 1; color: var(--c-steel); }
.cl { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 70px; padding: 9px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.cl .ava { --ava: 48px; --cut: 10px; }
.cl:active { background: rgba(240, 238, 232, 0.03); }
.cl__b { display: grid; gap: 4px; min-width: 0; }
.cl__n { font-weight: 650; font-size: 16px; line-height: 1.2; overflow-wrap: normal; hyphens: none; }
.cl__noapp { display: inline-block; margin-left: 7px; vertical-align: 1px; padding: 2px 5px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--c-line-strong); font-size: 10.5px; font-weight: 600; color: var(--c-text-dim); white-space: nowrap; }
.cl__w { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; line-height: 1.3; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.cl__w .is-next { display: inline-flex; align-items: center; gap: 4px; color: var(--c-text); font-weight: 600; }
.cl__w .is-next svg { width: 12px; height: 12px; }
.cl__w .is-gone { color: #D99484; }
.cl__pk { display: grid; justify-items: center; min-width: 46px; padding: 6px 6px 5px; border-radius: 4px; background: #141512; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 250, 238, 0.07); color: #F3ECD8; line-height: 1; }
.cl__pk b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.cl__pk small { margin-top: 2px; font-size: 10.5px; color: #9F9886; white-space: nowrap; }
.cl__pk.is-low b { color: var(--c-danger); }
.chip--warn[aria-pressed="true"] { background: var(--c-text); }

/* ───────────── карточка клиента ───────────── */
.cc-hero { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: end; }
.cc-hero__ph { position: relative; display: grid; place-items: center; width: 128px; height: 160px; overflow: hidden; border-radius: var(--r-md); background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #2B2C28; background-blend-mode: soft-light, normal; box-shadow: inset 0 0 0 1px rgba(240, 238, 232, 0.08), 0 14px 24px -14px rgba(0, 0, 0, 0.8); }
.cc-hero__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.cc-hero__ph b { font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 52px; color: var(--c-text-dim); }
.cc-hero__ph:has(b) { clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px); border-radius: 0; height: 128px; align-self: center; }
.cc-hero__b { display: grid; justify-items: start; gap: 8px; min-width: 0; padding-bottom: 4px; }
.cc-hero__n { width: 100%; font-family: var(--f-display); font-stretch: 84%; font-weight: 800; font-size: 32px; line-height: 0.94; text-transform: uppercase; overflow-wrap: normal; hyphens: none; }
.cc-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--c-line-strong); font-size: 12px; font-weight: 600; color: var(--c-text-dim); }
.cc-tag.is-app { background: var(--c-ok-deep); box-shadow: none; color: var(--c-ok); }
.cc-tag svg { width: 13px; height: 13px; }
.cc-hero__s { font-size: 13px; color: var(--c-text-dim); }
.cc-ph { display: grid; gap: 10px; margin-top: 18px; }
.cc-ph__n { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-md); overflow: hidden; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 250, 238, 0.08); }
.cc-stats span { display: grid; gap: 4px; padding: 12px 12px 12px; background: url("../media/pomost-grain.png") 0 0 / 96px 96px, #141512; background-blend-mode: soft-light, normal; color: #F3ECD8; }
.cc-stats b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 34px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.cc-stats small { font-size: 12px; line-height: 1.2; color: #9F9886; }
.cc-stats .is-bad b { color: var(--c-danger); }
.hlist { display: grid; }
.hrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 7px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.hrow:last-child { border-bottom: 0; }
.hrow__d { display: grid; justify-items: center; line-height: 1; }
.hrow__d b { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.hrow__d small { font-size: 11.5px; color: var(--c-text-dim); }
.hrow__b { display: grid; gap: 2px; min-width: 0; }
.hrow__b b { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.hrow__b span { font-size: 12.5px; color: var(--c-text-dim); }
.hrow .badge-status { height: 24px; font-size: 12px; }
.hrow.is-cx .hrow__d b { color: var(--c-text-dim); }
.pkg + .pkg, .pkg + .btn { margin-top: 0; }
.pkg.is-exp { opacity: 0.6; }
.cc-bar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.cc-bar .btn { min-height: 56px; }

/* выдать абонемент */
.field__input--num { font-family: var(--f-num); font-stretch: var(--f-num-stretch); font-weight: 700; font-size: 26px; }
.pkg--pv { pointer-events: none; }

/* ───────────── уведомления ───────────── */
.topbar__read { margin-left: auto; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 4px; }
.nt-g { margin: 22px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--c-text-dim); }
.nt-list { display: grid; }
.nt { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: inherit; }
.nt:last-child { border-bottom: 0; }
.nt.is-unread::before { content: ""; position: absolute; left: -20px; top: 14px; bottom: 14px; width: 4px; background: var(--c-accent); }
.nt__pic { position: relative; }
.nt__pic .ava { --ava: 48px; --cut: 10px; }
.nt__k { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--c-surface-3); color: var(--c-text); box-shadow: 0 0 0 2px var(--c-bg); clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.nt__k svg { width: 14px; height: 14px; }
.nt--yes .nt__k { background: var(--c-ok-deep); color: var(--c-ok); }
.nt--cancel .nt__k, .nt--no .nt__k, .nt--late .nt__k { background: var(--c-danger-deep); color: var(--c-danger); }
.nt--new .nt__k { background: var(--c-accent); color: var(--c-on-accent); }
.nt__b { display: grid; gap: 4px; min-width: 0; }
.nt__t { font-size: 15px; line-height: 1.35; color: var(--c-text-dim); }
.nt__t b { color: var(--c-text); font-weight: 650; }
.nt.is-unread .nt__t { color: var(--c-text); }
.nt__x { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); font-variant-numeric: tabular-nums; }
.nt__time { padding-top: 2px; font-size: 12px; font-weight: 600; color: #9C998F; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt.is-unread .nt__time { color: var(--c-text); }
.nt__ask { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.nt__ok { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--c-ok); }
.nt__ok svg { width: 16px; height: 16px; }
.nt-priv { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 12.5px; line-height: 1.45; color: var(--c-text-dim); }
.nt-priv svg { width: 18px; height: 18px; color: var(--c-steel); }

/* ───────────── режим: тренер / клиент ───────────── */
.role-sw { display: grid; gap: 10px; }
.role-sw .seg button { gap: 8px; }
.role-sw .seg button svg { width: 18px; height: 18px; }
.role-sw p { font-size: 13px; line-height: 1.4; color: var(--c-text-dim); }

@media (max-width: 370px) {
  .dsum__nums b { font-size: 28px; }
  .tb { grid-template-columns: 40px minmax(0, 1fr); gap: 9px; padding-right: 10px; }
  .tb .ava { --ava: 40px; --cut: 8px; }
  .tl__row { grid-template-columns: 46px minmax(0, 1fr); gap: 6px; }
  .tl::before { left: 23px; }
  .tl__now::after, .tl__nowrow i { left: 46px; }
  .tl__brk { padding-left: 52px; }
  .cal-mode { width: 150px; }
  .wk-nav { font-size: 12px; }
  .wk-nav button { width: 30px; }
  .cc-hero { grid-template-columns: 108px minmax(0, 1fr); }
  .cc-hero__ph { width: 108px; height: 136px; }
  .cc-hero__ph:has(b) { height: 108px; }
  .mark2 .btn { font-size: 16px; padding-inline: 10px; }
  .pay-seg button { font-size: 13px; gap: 4px; }
  .pay-seg button svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .w7, .tb, .scope__opt, .dow button, .cf, .wkg__col, .bd-pkg { transition: none; }
}
.time-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.time-pair .field__control { min-width: 0; }
.seg button svg { width: 18px; height: 18px; flex: none; }
.pick--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* секция — одна колонка, которую не распирает полоса дней с прокруткой */
.sect { grid-template-columns: minmax(0, 1fr); }
/* горизонтальные ряды чипов: прокрутка внутри поля экрана, без выноса за край */
.hs { display: flex; gap: 8px; padding: 2px 0 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { flex: none; }
.day-strip--t { margin-inline: 0; padding-inline: 0; }
.cl-l { margin: 14px 0 0; padding: 6px 0; }
.w7.is-today::after { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 3px; margin-left: -7px; background: var(--c-accent); clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 100%, 0 100%); }
.w7.is-today { padding-top: 10px; }
.field { grid-template-columns: minmax(0, 1fr); }
