/* Пробные улучшения после аудита опубликованной версии (ноябрь 2026). Загружается последним; удаление этого файла возвращает прежний вид. */

/* Прокрутка без анимации: вкладки сразу открываются на своём месте */
html{scroll-behavior:auto}

@media(max-width:720px){
  /* Заголовок страницы: одна строка, не слоган на три строки */
  body .page-heading h1{font-size:24px!important;line-height:1.15!important;letter-spacing:-.02em!important;max-width:none!important;text-wrap:balance}

  /* Подсказка о входе: гостям только на календаре, после входа не нужна; ошибки связи видны всегда */
  body:is(.role-staff,.role-owner):not(:has(.cloud-error)) .local-notice,
  body.role-public:has(#calendarPage[hidden]):not(:has(.cloud-error)) .local-notice{display:none!important}

  /* Этапы работы: первая карточка на первом экране. Числа отчёта повторяют счётчики фильтров */
  #processPage .process-intro{display:none!important}
  #monthReport{display:none!important}
  .month-bar>.month-switch{width:auto!important;flex:1 1 auto!important}

  /* Карточка съёмки: прогресс показан один раз. Сотрудникам — шаги и оплата, гостям — надпись и полоски */
  body:not(.role-public) .event-card:not(.is-closed) .stage-row{display:none!important}
  body.role-public .event-card .card-statuses,
  body.role-public .event-card .pay-actions,
  body.role-public .event-card .card-footer{display:none!important}
  .event-card .card-meta{margin:2px 0 10px!important}
  .event-card .pay-actions>*{min-height:44px!important}

  /* Окно съёмки для гостей: без кнопок, которые всё равно просят код */
  body.role-public #statusControls .payment-heading,
  body.role-public #statusControls .pay-control,
  body.role-public #statusControls .check-mark,
  body.role-public #statusControls .status-select,
  body.role-public .conditional-note{display:none!important}
  body.role-public #statusControls .status-control{pointer-events:none}

  /* Персонажи: внутренние заметки о фотографиях видят только сотрудники */
  body.role-public .client-note,
  body.role-public #photoListBtn,
  body.role-public .photo-file-label{display:none!important}

  /* Месяц: строка дней недели низкая, без пустой полосы сверху; высота блока прежняя (430 px) */
  body .month-grid{grid-template-rows:20px!important;grid-auto-rows:60px!important}
  body .month-grid .month-cell.active{height:auto!important;max-height:none!important}

  /* Неделя: без счётчика в шапке плитки; в загруженный день — первая съёмка и «и ещё N» */
  body .diary-day .dd-head em{display:none!important}
  body .diary-day .dd-more{font-size:12px;font-weight:600;line-height:1.25;color:var(--mir-soft);padding:2px 0 0 16px}

  /* Без картинок («Графика» выключена) карточка следующей съёмки по-прежнему называет человека и время */
  body.lite .next-copy h2{display:block!important;font-size:22px!important;margin:10px 0 2px!important}
  body.lite .next-copy .next-time{display:block!important;font-size:24px!important}

  /* Кнопки не меньше 44 px */
  body .bell-button{width:44px!important;height:44px!important}
  body .close-dialog{width:44px!important;height:44px!important}
  /* ✕ в окне съёмки без обтекания: иначе картинка сверху сжималась до ширины окна минус кнопка.
     Отрицательный нижний отступ = верхний отступ + высота кнопки, сцена начинается от самого верха */
  body .event-dialog>.close-dialog{float:none!important;margin:10px 10px -54px auto!important}
  /* Отметка «✓ Готово» / «✓ Закрыто» на картинке окна — слева под строкой времени: справа её закрывал бы ✕ или голова персонажа */
  body .detail-scene .fut .ready-stamp{top:54px!important;right:auto!important;left:14px!important}
  body .queue-more,body .next-button{min-height:44px!important;display:inline-flex!important;align-items:center}
}

/* Фильтры: область нажатия больше самой кнопки */
@media(pointer:coarse){
  .process-filters{row-gap:12px!important}
  .process-filters .filter-chip{position:relative;min-height:32px!important}
  .process-filters .filter-chip::after{content:'';position:absolute;inset:-6px -3px}
  .graphics-toggle{min-height:44px}
}

/* Вес шрифта: жирный только у заголовка; имена, числа и кнопки — 600, подписи — 500, текст — 400 */
@media(max-width:720px){
  body{font-weight:400}
  body .local-notice,body .card-meta,body .diary-day .dd-free{font-weight:400!important}
  body .fut-time,body .fut-name,body .fut-stats b{font-weight:650!important}
  body .section-title h2,body .summary-title,body .date-controls h2,body .month-switch strong,body .detail-body h2,body .pin-dialog h2,body .push-dialog h2,body .empty-day h3,
  body .stats-row b,body .report-cell b,body .money-cells b,body .countdown>b,body .timeline-step b,body .fut-kind,body .queue-main b,body .dd-ev b,body .diary-day .dd-head b,body .mir-cell b,
  body .client-card h3,body .card-body h3,body .status-text b,body .pay-button,body .primary-button,body .queue-act,body .queue-more,body .next-button,body .segmented button,body .today-button,
  body .icon-button,body .owner-session-button,body .filter-chip,body .location-tab,body .format-list-item,body .edit-event-button,body .event-details summary,body .studio-check,
  body .empty-day button,body .toast>button,body .status-heading,body .payment-heading,body .next-card .pill,body .ready-stamp,body .codes-banner,body .process-intro strong,
  body .money-net,body .money-total b,body .money-calc>b,body .pay-chip,body .wa-button,body .push-state,body .push-field,body .push-secondary,body .install-how,body .push-off{font-weight:600!important}
  body .stats-row span,body .stage-pill,body .status-step b,body .dd-head em,body .diary-day .dd-today,body .diary-day .dd-head>span,body .dd-ev span,body .queue-stage,body .month-grid .weekday,
  body .fut-place,body .fut-stats small,body .countdown>span,body .countdown>b i,body .client-next,body .eyebrow,body .close-dialog,body .pin-actions>button:last-child,
  body .sidebar .navigation .nav-item>span:nth-child(2){font-weight:500!important}
  body .sidebar .navigation .nav-item.active>span:nth-child(2){font-weight:600!important}
}

/* Мелкий текст: на телефоне не меньше 11–12 px (поля ввода остаются 16 px, чтобы iPhone не приближал) */
@media(max-width:720px){
  body .eyebrow{font-size:12px!important;letter-spacing:.02em!important;line-height:1.3!important}
  body .detail-date{font-size:13px!important;line-height:1.4!important;font-variant-numeric:tabular-nums}
  body .edit-form label{font-size:13px!important}
  body .edit-form .form-row.form-row-3>label{font-size:11px!important;letter-spacing:.06em!important}
  body .owner-session-button,body .owner-session-button.is-owner{font-size:12px!important}
  body .conditional-note,body .time-hint,body .pin-hint,body .report-cell span,body .money-cells span,body .money-who small,body .studio-check.small{font-size:12px!important;line-height:1.35!important}
}

/* Спокойные цвета: без насыщенного оранжевого и тёмных плашек на рабочих экранах. Тёмная нижняя панель остаётся */
body .pay-button:not(.paid),body .pay-chip:not(.paid){background:var(--mp-peach-soft)!important;color:var(--mp-orange-ink)!important;box-shadow:inset 0 0 0 1.5px #F2C3A0!important}
body .pay-button:not(.paid)>i{color:var(--mp-orange-ink)!important}
body .pay-button:not(.paid):hover{background:var(--mp-peach)!important}
body .wa-button:not(.is-missing){background:#DFF5E7!important;color:#1C7A45!important}
body #addBtn,body #addBtn:hover{background:var(--mp-lavender)!important;color:var(--mp-plum)!important}
body .countdown{background:var(--mp-lavender-soft)!important;color:var(--mp-plum)!important}
body .countdown>span{color:var(--mp-orange-ink)!important}
body .countdown>b{color:var(--mp-plum)!important}
body .countdown>b i,body .countdown>small{color:var(--mir-soft)!important}
/* Переключатель «Неделя / Месяц» как в iOS: выбранная часть — светлая плашка с тенью */
body .segmented button.selected{background:#fff!important;color:var(--mp-plum)!important;box-shadow:0 1px 2px rgba(53,39,62,.12),0 3px 10px rgba(53,39,62,.08)!important}
body .filter-chip.selected,body .location-tab.selected,body .mir-cell.active{background:var(--mp-lavender)!important;color:var(--mp-plum)!important}
body .filter-chip.selected>span,body .location-tab.selected>span,body .mir-cell.active b{color:var(--mp-plum)!important}
body .filter-chip.filter-unpaid.selected{background:var(--mp-peach)!important}
body .mir-cell.active .mir-dots i.format-podcast{background:var(--mp-plum)!important}

/* Отклик на нажатие: кнопка чуть сжимается сразу под пальцем и плавно возвращается */
button,[role=button],summary,label,a{-webkit-tap-highlight-color:transparent}
[role=button],summary,label{touch-action:manipulation}
button,[role=button],summary,.wa-button{transition:transform .16s ease-out}
button:active,[role=button]:active,summary:active,.wa-button:active{transform:scale(.97);transition-duration:.05s}
.primary-button:active,.pay-button:active{transform:scale(.97);box-shadow:none}
.diary-day:active,.client-card:active,.status-control:active,.studio-directory>summary:active{transform:scale(.985)}
.graphics-toggle:active .toggle-track{transform:scale(.92)}

/* Окна появляются, а не возникают: карточка съёмки выезжает снизу, остальные мягко проявляются (iOS 17.5+; на старых iOS как раньше) */
dialog[open]{transform-origin:0 0;transition:opacity .2s ease-out,scale .25s cubic-bezier(.2,.8,.2,1),translate .42s cubic-bezier(.32,.72,0,1)}
@starting-style{dialog[open]{opacity:0;scale:.96}}
dialog[open]::backdrop{transition:opacity .25s ease-out}
@starting-style{dialog[open]::backdrop{opacity:0}}
@media(max-width:720px){
  dialog.event-dialog[open],dialog.new-dialog[open]{scale:none;translate:0 0}
  @starting-style{dialog.event-dialog[open],dialog.new-dialog[open]{opacity:1;translate:0 100%}}
}
@media(max-width:720px) and (prefers-reduced-motion:reduce){
  @starting-style{dialog.event-dialog[open],dialog.new-dialog[open]{opacity:0;translate:0 0}}
}
@media(prefers-reduced-motion:reduce){
  button,[role=button],summary,.wa-button,dialog[open],dialog[open]::backdrop{transition:none!important}
  button:active,[role=button]:active,summary:active,.wa-button:active,.diary-day:active,.client-card:active,.status-control:active{transform:none!important}
}
/* Пока открыто окно, страница под ним не прокручивается */
body:has(dialog[open]){overflow:hidden}

/* Без лишнего на телефоне: слоган-заголовок (остаётся для экранного диктора), подсказка о входе (кроме ошибок связи),
   звёздочки в метках, ссылка «Открыть встречу» (теперь нажимается вся картинка) и справочник «Площадки и форматы» */
@media(max-width:720px){
  body .page-heading h1{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
  body .page-heading{justify-content:flex-end!important;margin:0!important;min-height:0!important}
  body:not(:has(.cloud-error)) .local-notice{display:none!important}
  body .next-card .pill::before,body .countdown>span::before{display:none!important}
  body #openNext{display:none!important}
  body details.studio-directory{display:none!important}
  body #heroScene{cursor:pointer}
  body #heroScene:active{transform:scale(.985);transition:transform .05s}
}

/* Ещё меньше постоянных пояснений: формула денег, подсказка под этапами в окне съёмки, слоган внизу (цвета форматов остаются) */
@media(max-width:720px){
  #moneyPage .process-intro{display:none!important}
  #clientsPage .client-note{display:none!important}
  body .detail-body .conditional-note{display:none!important}
  body footer>span:first-child{display:none!important}
}

/* «Новая съёмка» — отдельный круглый островок «+» справа от нижней панели, всегда под рукой при прокрутке (сотрудники и владелец) */
@media(max-width:720px){
  body:is(.role-staff,.role-owner) .sidebar{right:78px!important}
  body:is(.role-staff,.role-owner) #addBtn{position:fixed!important;right:10px!important;bottom:calc(2px + env(safe-area-inset-bottom))!important;z-index:60!important;width:62px!important;height:62px!important;min-height:0!important;padding:0!important;gap:0!important;border-radius:50%!important;font-size:0!important;background:rgba(53,39,62,.96)!important;color:#FFF8F0!important;box-shadow:0 6px 18px rgba(53,39,62,.22)!important}
  body:is(.role-staff,.role-owner) #addBtn svg{width:28px!important;height:28px!important;stroke-width:2!important}
  body:is(.role-staff,.role-owner) #addBtn:active{transform:scale(.94)}
}

/* Персонажи: поиск во всю ширину сетки карточек, две кнопки ровно над двумя колонками (тот же зазор 10px);
   на самых узких экранах подпись переносится на вторую строку, а не вылезает за кнопку.
   Отступ до карточек раньше давала убранная заметка */
@media(max-width:720px){
  body #clientsPage .client-toolbar{margin-bottom:16px!important}
  body #clientsPage .search-box{max-width:none!important;box-sizing:border-box}
  body #clientsPage .client-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
  body #clientsPage .photo-list-button{width:100%!important;min-width:0!important;min-height:44px!important;padding:4px 10px!important;justify-content:center!important;text-align:center;white-space:normal!important;line-height:1.2!important;font-size:13px!important;border-radius:14px!important}
  body #clientsPage .photo-list-button :is(svg,[data-icon]){flex-shrink:0}
}

/* Персонажи: владелец убирает человека из списка; внизу — удалённые с кнопкой «Вернуть» */
body .client-tile{position:relative}
body .client-tile>.client-remove{position:absolute;top:8px;right:8px;z-index:2;width:32px;height:32px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#B23A30;font-size:20px;font-weight:500;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(53,39,62,.18)}
body .client-tile>.client-remove::after{content:"";position:absolute;inset:-6px}
body .hidden-clients{grid-column:1/-1;display:grid;gap:6px;margin-top:6px}
body .hidden-toggle{justify-self:start;border:0;background:none;color:var(--mir-soft);font-weight:600;font-size:13px;min-height:44px;padding:0 4px;cursor:pointer}
body .hidden-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 6px 4px 14px;border-radius:14px;background:var(--mp-fill)}
body .hidden-row button{border:0;background:none;color:var(--mir-today);font-weight:600;min-height:44px;padding:0 8px;cursor:pointer}

/* Значок «Выезд»: маленькая машинка без квадратной рамки, лёгкая тень отделяет её от сцены */
body .fut-crest.is-vehicle{display:block;width:auto;height:auto;padding:0;background:none;box-shadow:none;border-radius:0;overflow:visible}
body .fut-crest.is-vehicle img{display:block;width:auto;height:36px;margin:0;filter:drop-shadow(0 0 1px rgba(255,248,240,.9)) drop-shadow(0 2px 3px rgba(0,0,0,.4))}
@media(max-width:720px){body .fut-crest.is-vehicle img{height:32px}}


/* Главная карточка: ещё съёмки в тот же день */
.next-more{position:relative;z-index:3;display:grid;gap:6px;margin:12px 0 4px}
.next-more[hidden]{display:none}
.next-more-title{font-size:13px;font-weight:700;color:var(--mir-ink)}
.next-more-item{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 12px;border:0;border-radius:14px;background:var(--mp-fill,#F6EEE6);color:var(--mir-ink);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease-out,transform .15s ease-out}
.next-more-item:active{transform:scale(.98)}
@media(hover:hover){.next-more-item:hover{background:var(--mp-peach-soft,#FFF1E6)}}
.next-more-swatch{flex:none;width:12px;height:12px;border-radius:4px;background:var(--format,var(--mir-podcast))}
.next-more-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Деньги: «Расходы» и «Остаётся» — последняя строка того же блока итогов, во всю его ширину, ячейки через линию в 1px.
   Красный только у ненулевых расходов */
.money-after{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--mir-line)}
.money-after-row{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px 14px;background:var(--mir-surface)}
.money-after-row span{font-size:12px;font-weight:600;color:var(--mir-soft)}
.money-after-row b{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.money-after-row.is-expenses.has-spent b{color:#B23A30}

/* Расходы */
.expenses{margin:14px 0;padding:16px;border-radius:var(--mir-radius);background:var(--mir-surface);color:var(--mir-ink);min-width:0}
.expenses-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.expenses-head h2{margin:0;font-size:18px;font-weight:800}
.expenses-total{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;color:#B23A30;white-space:nowrap}
.expenses-split{margin:4px 0 0;font-size:13px;color:var(--mir-soft);font-variant-numeric:tabular-nums}
.expenses-form{display:grid;gap:10px;margin-top:14px}
.expenses-kinds{display:flex;gap:2px;padding:3px;border-radius:12px;background:var(--mp-fill,#F6EEE6)}
.expenses-kind{flex:1;min-width:0;min-height:44px;padding:0 6px;border:0;border-radius:10px;background:none;color:var(--mir-soft);font:inherit;font-size:14px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease-out,color .15s ease-out}
.expenses-kind.is-active{background:#fff;color:var(--mp-plum);box-shadow:0 1px 2px rgba(53,39,62,.12),0 3px 10px rgba(53,39,62,.08)}
.expenses-fields{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
.expenses-field{display:grid;gap:4px;min-width:0}
.expenses-field>span{font-size:12px;font-weight:600;color:var(--mir-soft)}
.expenses-field input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--mir-line);border-radius:12px;background:var(--mp-cream);color:var(--mir-ink);font:inherit;font-size:16px}
.expenses-field input:focus-visible{outline:2px solid var(--mir-today);outline-offset:1px}
.expenses-amount-field input{font-variant-numeric:tabular-nums}
.expenses-add{min-height:44px;padding:0 18px;border:0;border-radius:14px;background:var(--mp-plum);color:var(--mp-cream);font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:opacity .15s ease-out,transform .15s ease-out}
.expenses-add:active{transform:scale(.98)}
.expenses-add:disabled{opacity:.55;cursor:default}
.expenses-error{margin:0;font-size:13px;font-weight:600;color:#B23A30}
.expenses-error[hidden],.expenses-split[hidden],.expenses-empty[hidden],.expenses-failed[hidden]{display:none}
.expenses-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.expenses-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"main amount remove" "date amount remove";align-items:center;column-gap:10px;row-gap:0;padding:8px 0;border-top:1px solid var(--mir-line);min-width:0}
.expenses-item-main{grid-area:main;display:flex;flex-direction:column;min-width:0}
.expenses-item-main b{font-size:15px;font-weight:700}
.expenses-item-main span{font-size:13px;color:var(--mir-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.expenses-item time{grid-area:date;font-size:12px;color:var(--mir-soft)}
.expenses-amount{grid-area:amount;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.expenses-remove{grid-area:remove;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:none;color:var(--mir-soft);cursor:pointer;-webkit-tap-highlight-color:transparent}
.expenses-remove svg{width:20px;height:20px}
@media(hover:hover){.expenses-remove:hover{background:var(--mp-fill,#F6EEE6);color:#B23A30}}
.expenses-item.is-new{animation:expenses-in .5s ease-out}
@keyframes expenses-in{from{background:var(--mp-peach-soft,#FFF1E6)}to{background:transparent}}
.expenses-item.is-skeleton{min-height:52px;border-top-color:transparent}
.expenses-item.is-skeleton::before,.expenses-item.is-skeleton::after{content:"";display:block;height:14px;border-radius:7px;background:var(--mp-fill,#F6EEE6)}
.expenses-item.is-skeleton::before{grid-area:main;width:60%}
.expenses-item.is-skeleton::after{grid-area:amount;width:70px}
.expenses-empty{margin:12px 0 0;font-size:14px;color:var(--mir-soft)}
.expenses-failed{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.expenses-failed p{margin:0;font-size:14px;color:#B23A30}
.expenses-retry{min-height:44px;padding:0 16px;border:0;border-radius:12px;background:var(--mp-fill,#F6EEE6);color:var(--mir-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
@media(min-width:721px){
  .expenses-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr)}
  .expenses-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .expenses-kinds,.expenses-error{grid-column:1/-1}
  .expenses-fields{grid-column:1}
  .expenses-add{grid-column:2}
}
@media(max-width:380px){.money-after{grid-template-columns:1fr}.expenses{padding:14px 12px}}
@media(prefers-reduced-motion:reduce){.expenses-item.is-new{animation:none}.expenses-kind,.expenses-add,.next-more-item{transition:none}}
html.theme-blue .expenses-kind.is-active{color:var(--tb-navy)}
html.theme-blue .expenses-item.is-new{animation-name:expenses-in-blue}
@keyframes expenses-in-blue{from{background:var(--tb-mint-50,#E6FFF7)}to{background:transparent}}

/* ===== Тени вместо линий, пружина, плотный островок (последний слой) ===== */
:root{
  --sh-rgb:53 39 62;
  /* тени совсем лёгкие: тонкий край и чуть-чуть подъёма, без широкого ореола (владелец: «тени делают сайт грязным») */
  --sh-1:0 1px 2px rgb(var(--sh-rgb) / .05);
  --sh-2:0 1px 2px rgb(var(--sh-rgb) / .04),0 2px 6px rgb(var(--sh-rgb) / .04);
  --sh-3:0 2px 6px rgb(var(--sh-rgb) / .08),0 12px 32px rgb(var(--sh-rgb) / .12);
  --hair:rgb(var(--sh-rgb) / .08);
  --field-line:#8F8298;
  --press:.98;
  --spring:450ms linear(0,.2 5%,.62 12%,.98 20%,1.09 27%,1.1 32%,1.04 42%,.99 52%,.995 62%,1 75%,1);
  --press-in:110ms cubic-bezier(.23,1,.32,1);
}
@supports not (transition-timing-function:linear(0,1)){:root{--spring:450ms cubic-bezier(.34,1.56,.64,1)}}
html.theme-blue{--sh-rgb:13 36 64;--field-line:#6F86A0}

/* Блоки: светлая поверхность и тень вместо обводки */
body :is(.next-card,.summary-card,.event-card,.studio-directory,.empty-day,.process-intro,.queue-row,.money-item,.expenses,.diary,.codes-banner,.month-report,.money-summary){box-shadow:var(--sh-2)!important;border:0!important}
body :is(.queue-row,.money-item){box-shadow:var(--sh-1)!important}
/* Полоса оплаты у строк «Деньги» — это данные, она остаётся (правило выше снимало её вместе с обводкой) */
body .money-item{border-left:5px solid var(--mp-orange)!important}
body .money-item.is-paid{border-left-color:var(--mir-done)!important}
body .money-item.is-paid:not(.is-closed){border-left-color:var(--mp-lavender)!important}
body .client-tile{border-radius:var(--mir-radius);box-shadow:var(--sh-2)}
body .client-tile .client-card{box-shadow:none!important}
body :is(.mir-day,.mir-cell,.icon-button,.today-button,.segmented,.filter-chip,.location-tab,.owner-session-button,.user-avatar,.photo-list-button,.search-box,.status-control,.money-row){box-shadow:var(--sh-1)!important}
body :is(.mir-cell.active,.mir-day.active,.filter-chip.selected,.location-tab.selected){box-shadow:var(--sh-2)!important}
body .segmented button.selected{box-shadow:var(--sh-1)!important}
body .owner-session-button,body .user-avatar{border:0!important}
body .search-box{border:1px solid var(--field-line)!important}
body :is(.event-dialog,.new-dialog,.about-dialog,.pin-dialog,.contact-dialog,.push-dialog),html.theme-blue dialog{box-shadow:var(--sh-3)!important}
body .toast{box-shadow:var(--sh-3)!important}
body .topbar{border-bottom:0!important;box-shadow:0 1px 0 var(--hair),0 6px 18px rgb(var(--sh-rgb) / .05)}
html.theme-blue body .topbar{border-bottom:0!important}

/* Линии с данными остаются, но тоньше и бледнее */
body .diary,body .summary-card{box-shadow:none!important} /* неделя и итоги месяца — без тени, просьба владельца */
/* «не оплачено»: ровные поля со всех сторон и текст по центру (раньше фон добирался «тенью», а текст прижимался влево) */
body .summary-card #unpaidStat.has-debt{box-shadow:none!important;padding:6px 8px!important;margin:-6px -8px!important;align-items:center!important;text-align:center!important}
.diary-page+.diary-page{border-left:1px solid var(--hair);box-shadow:none}
.diary-day+.diary-day{border-top:1px dashed var(--hair)}
.summary-foot{border-color:var(--hair)!important}
.expenses-item{border-top-color:var(--hair)}
.timeline-step+.timeline-step{border-left-color:rgba(255,255,255,.7)!important}
.expenses-kinds,.expenses-kind.is-active{box-shadow:none}
.expenses-kind.is-active{box-shadow:var(--sh-1)}
/* Поля ввода: видимая граница сохраняется */
.expenses-field input,body .edit-form :is(input,select,textarea){border:1px solid var(--field-line)!important}
.expenses-field input:focus-visible{border-color:var(--mir-today)}

/* Плавность цвета и фона */
body :is(button,[role=button],summary,.wa-button,.nav-item,.mir-cell,.mir-day,.filter-chip,.location-tab,.segmented button,.diary-day,.client-card,.queue-row){transition:transform var(--spring),background-color .18s ease-out,color .18s ease-out,box-shadow .18s ease-out}
.expenses-item.is-new{animation:expenses-row .22s ease-out both}
html.theme-blue .expenses-item.is-new{animation-name:expenses-row}
@keyframes expenses-row{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Пружинящее нажатие: быстро сжимается, отпускается с перелётом. Только transform */
@media(prefers-reduced-motion:no-preference){
  /* id не кладём в общий :is(): он поднял бы вес всего списка, и отмены ниже перестали бы работать.
     Общее значение для кнопок — первым, чтобы частные (.98) шли после него и побеждали */
  body :is(button,[role=button],.wa-button,.nav-item,.filter-chip,.location-tab,.expenses-remove,.expenses-kind,.icon-button,.today-button){--press:.97}
  body :is(.next-card,.event-card,.client-tile,.summary-card){--press:.985}
  body :is(.next-more-item,.queue-row,.diary-day,.mir-cell,.mir-day,.expenses-item,.money-item,.money-row,.status-control,.studio-directory>summary){--press:.98}
  body #heroScene{--press:.98}
  body :is(.next-card,.event-card,.client-tile,.summary-card,.next-more-item,.queue-row,.diary-day,.mir-cell,.mir-day,.expenses-item,.money-item,.money-row,.status-control,#heroScene,.client-card){transition:transform var(--spring),background-color .18s ease-out,box-shadow .18s ease-out}
  /* Сжимается только то, что нажимается целиком. Карточки и строки с кнопками внутри (съёмка, «Нужно сделать», «Деньги», расходы) не пружинят */
  body :is(.next-more-item,.diary-day,.mir-cell,.mir-day,.status-control,.studio-directory>summary,button,[role=button],.wa-button,.nav-item,.filter-chip,.location-tab,.expenses-remove):active,body #heroScene:active{transform:scale(var(--press));transition-duration:110ms,.18s,.18s,.18s;transition-timing-function:cubic-bezier(.23,1,.32,1),ease-out,ease-out,ease-out}
  /* Персонаж: сжимается вся плитка, когда нажата карточка; сама карточка внутри — нет */
  body .client-tile:has(>.client-card:active){transform:scale(var(--press));transition-duration:110ms,.18s,.18s;transition-timing-function:cubic-bezier(.23,1,.32,1),ease-out,ease-out}
  body .client-tile:active .client-card:active{transform:none}
  body :is(.client-tile) .client-card:active{transform:none}
  body :is(.expenses-item,.money-item) :is(button):active{transform:scale(.97)}
}
@media(prefers-reduced-motion:reduce){
  /* Только то, что сжимается при нажатии. Не *:active: :active есть и у предков, а окна и тост центрируются через transform */
  body :is(button,[role=button],summary,.wa-button,.diary-day,.client-card,.status-control,.mir-cell,.mir-day):active,body .graphics-toggle:active .toggle-track{transform:none!important}
  body :is(button,[role=button],summary,.nav-item,.diary-day,.client-card,.queue-row,.mir-cell,.mir-day){transition:background-color .18s ease-out,color .18s ease-out}
  .expenses-item.is-new,html.theme-blue .expenses-item.is-new{animation:none}
}

/* Нижний островок и «+»: стекло — 50% цвета и размытие того, что под ним (просьба владельца).
   brightness(.65) приглушает подложку, а неактивные подписи светлее, чтобы читались и над белыми карточками.
   Без поддержки blur — сплошной фон (ниже). */
@media(max-width:720px){
  body .sidebar,body:is(.role-staff,.role-owner) #addBtn{background:rgba(53,39,62,.5)!important;-webkit-backdrop-filter:blur(8px) saturate(1.6) brightness(.65);backdrop-filter:blur(8px) saturate(1.6) brightness(.65);box-shadow:0 2px 4px rgb(53 39 62 / .12),0 10px 28px rgb(53 39 62 / .28)!important}
  html.theme-blue.theme-blue body .sidebar,html.theme-blue.theme-blue body:is(.role-staff,.role-owner) #addBtn{background:rgba(13,36,64,.5)!important;box-shadow:0 2px 4px rgb(13 36 64 / .12),0 10px 28px rgb(13 36 64 / .3)!important}
  /* Подписи сплошные: над белыми карточками полупрозрачный цвет давал меньше 4.5:1. Синей теме нужен вес выше theme-blue.css */
  body .sidebar .navigation .nav-item:not(.active){color:#FFF8F0!important}
  html.theme-blue.theme-blue body .sidebar .navigation .nav-item:not(.active){color:#EEF5FC!important}
}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  @media(max-width:720px){
    body .sidebar,body:is(.role-staff,.role-owner) #addBtn{background:#35273E!important}
    html.theme-blue.theme-blue body .sidebar,html.theme-blue.theme-blue body:is(.role-staff,.role-owner) #addBtn{background:#0D2440!important}
  }
}

/* ===== Загрузка: скелетон вместо пустых мест =====
   html.is-booting стоит в index.html. Настоящее содержимое main скрыто через visibility (раскладка не сдвигается),
   поверх него лежит .boot-skeleton. JS снимает класс после первой отрисовки данных и шрифтов; is-unboot — плавный уход. */
main{position:relative}
.boot-skeleton{display:none;position:absolute;z-index:2;top:34px;left:clamp(24px,3vw,42px);right:clamp(24px,3vw,42px);pointer-events:none;
  --sk-base:var(--mp-fill-2);--sk-hi:rgba(255,255,255,.62)}
html.is-booting .boot-skeleton,html.is-unboot .boot-skeleton{display:block}
html.is-booting main>*:not(.boot-skeleton){visibility:hidden}
html.is-unboot main>*:not(.boot-skeleton){animation:sk-in .22s ease both}
html.is-unboot .boot-skeleton{animation:sk-out .22s ease forwards}
/* Страховка: если JS не снял класс за 6 с, содержимое появляется само */
html.is-booting main>*:not(.boot-skeleton){animation:sk-reveal 0s linear 6s forwards}
html.is-booting .boot-skeleton{animation:sk-gone .25s ease 6s forwards}
@keyframes sk-reveal{to{visibility:visible}}
@keyframes sk-gone{to{opacity:0;visibility:hidden}}
@keyframes sk-in{from{opacity:0}to{opacity:1}}
@keyframes sk-out{to{opacity:0}}
/* Пока идёт загрузка, кнопка входа скрыта (место сохраняется): иначе «Войти по PIN» на глазах меняется на «Выйти» */
html.is-booting .owner-session-button{visibility:hidden;animation:sk-reveal 0s linear 6s forwards}
/* «Уменьшение движения» глушит все анимации (style.css, !important), а страховка нужна и там: шаг за 0 с — не движение */
@media(prefers-reduced-motion:reduce){
  html.is-booting main>*:not(.boot-skeleton),html.is-booting .owner-session-button{animation:sk-reveal 0s linear 6s forwards!important}
  html.is-booting .boot-skeleton{animation:sk-gone 0s linear 6s forwards!important}
}

.boot-skeleton .sk{display:block;border-radius:12px;background-color:var(--sk-base);
  background-image:linear-gradient(100deg,transparent 35%,var(--sk-hi) 50%,transparent 65%);background-size:300% 100%;background-repeat:no-repeat;
  animation:sk-shine 1.5s linear infinite}
@keyframes sk-shine{from{background-position:100% 0}to{background-position:0 0}}
.sk-head{display:grid;gap:10px;margin-bottom:22px}
.sk-eyebrow{width:170px;height:12px}.sk-title{width:min(420px,70%);height:34px;border-radius:14px!important}.sk-sub{width:min(520px,85%);height:14px}
.sk-overview{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-bottom:20px}
.sk-next,.sk-summary{background:var(--mir-surface);border-radius:var(--mir-radius);box-shadow:var(--sh-1,none);overflow:hidden}
.sk-next{display:flex;align-items:stretch;min-height:208px}
.sk-copy{flex:1;display:grid;align-content:center;gap:12px;padding:22px}
.sk-fig{width:46%;order:2;display:flex;align-items:flex-end;justify-content:center;padding:18px 18px 0}
.sk-person{width:62%;height:86%;border-radius:999px 999px 0 0!important}
.sk-pill{width:150px;height:24px;border-radius:999px!important}.sk-name{width:60%;height:26px}.sk-line{height:13px;width:100%}.sk-line.is-short{width:55%}
.sk-summary{display:grid;align-content:center;gap:18px;padding:22px}
.sk-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sk-stat{height:56px;border-radius:var(--mir-radius-s)!important}
.sk-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.sk-chip{width:96px;height:44px;border-radius:999px!important}.sk-chip.is-wide{width:140px}
.sk-week{display:grid;gap:10px}
.sk-row{display:flex;align-items:center;gap:16px;min-height:72px;padding:12px 16px;background:var(--mir-surface);border-radius:var(--mir-radius-s);box-shadow:var(--sh-1,none)}
.sk-row>span{flex:1;display:grid;gap:9px}.sk-day{flex:none;width:48px;height:48px;border-radius:12px!important}
@media(max-width:1000px){.sk-overview{grid-template-columns:1fr}}
@media(max-width:720px){
  .boot-skeleton{top:25px;left:16px;right:16px}
  .sk-head{display:none}
  .sk-overview{gap:12px;margin-bottom:14px}
  .sk-next{flex-direction:column;min-height:0}
  .sk-fig{order:-1;width:auto;height:204px;padding:14px 14px 0;background:var(--sk-base);justify-content:flex-end}
  .sk-fig .sk-person{background-color:var(--sk-hi);animation:none;width:44%;height:88%}
  .sk-copy{padding:16px 18px 20px}
  .sk-summary{padding:18px}
  .sk-actions{flex-wrap:nowrap;overflow:hidden;margin-bottom:16px}.sk-chip{flex:none}
  .sk-row{min-height:64px}
}
@media(prefers-reduced-motion:reduce){
  .boot-skeleton .sk{animation:none;background-image:none}
  html.is-unboot main>*:not(.boot-skeleton){animation:none}
}

/* Картинки площадок появляются плавно; место под них уже занято фиксированной высотой карточки.
   Только при запуске (html.img-fade снимает app.js): иначе при каждой перерисовке картинка из кеша гасла и проявлялась заново */
html.img-fade img.fut-bg{transition:opacity .2s ease}
html.img-fade img.fut-bg:not(.is-loaded){opacity:0;animation:fut-bg-late 0s linear 3s forwards}
@keyframes fut-bg-late{to{opacity:.72}}
@media(prefers-reduced-motion:reduce){html.img-fade img.fut-bg{transition:none}}

/* Окно съёмки и другие нижние листы: жёстко без горизонтального сдвига на iPhone */
dialog.event-dialog,dialog.new-dialog,dialog.about-dialog,dialog.contact-dialog,dialog.pin-dialog,dialog.push-dialog{overflow-x:hidden;overflow-x:clip;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y;max-width:100vw}
dialog.event-dialog .detail-scene{overflow:hidden;contain:paint;max-width:100%;touch-action:pan-y}
dialog.event-dialog .detail-body{max-width:100%;overflow-x:hidden;overflow-x:clip}

/* Дублировать съёмку */
.dup-detail-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:22px;padding:11px 14px;border:1px solid #CEBFC1;background:#FFFAF3;color:#5A4C63;font:11px var(--mono);min-height:44px;cursor:pointer}
.dup-detail-button[hidden]{display:none!important}
.dup-detail-button>svg{width:17px;height:17px}
.dup-detail-button:hover{background:#F3E9F7;border-color:#9C86C2}
.dup-detail-button+.delete-detail-button{margin-top:12px}

/* Значок «N×» у ближайшей съёмки */
.next-card .pill .pill-count{display:inline-block;margin-left:8px;padding:1px 6px;border:1px solid currentColor;border-radius:999px;font-size:.85em;line-height:1.3;font-weight:700;letter-spacing:0;vertical-align:baseline}

/* Поля даты и времени: на iPhone у них своя минимальная ширина, и они вылезали за край карточки (просьба владельца). Ширина — по колонке, дата слева, как в остальных полях */
body .expenses-field{min-width:0}
body :is(.expenses-field,dialog,form) input:is([type="date"],[type="time"]){-webkit-appearance:none;appearance:none;display:block;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;text-align:left}
body input:is([type="date"],[type="time"])::-webkit-date-and-time-value{text-align:left;margin:0}

/* ===== Движение (MPMotion): ползунок, листы, тост, отметки. Только transform и opacity ===== */
.segmented{position:relative}
.mp-thumb{background:#fff;border-radius:10px;box-shadow:0 1px 2px rgba(53,39,62,.12),0 3px 10px rgba(53,39,62,.08);transform-origin:0 0}
html.theme-blue .mp-thumb{box-shadow:var(--sh-1,0 1px 2px rgba(13,36,64,.12))}
body .segmented.has-mp-thumb button.selected{background:transparent!important;box-shadow:none!important}
@media(prefers-reduced-motion:no-preference){
  /* Окна: лист снизу, подложка затухает. На телефоне карточка съёмки и «Новая встреча» выезжают во всю высоту (правила выше) */
  @keyframes mp-sheet{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
  @keyframes mp-fade{from{opacity:0}to{opacity:1}}
  @media(min-width:721px){
    dialog[open]{transition:none;animation:mp-sheet .3s cubic-bezier(.32,.72,0,1)}
  }
  @media(max-width:720px){
    dialog[open]:not(.event-dialog):not(.new-dialog){transition:none;animation:mp-sheet .3s cubic-bezier(.32,.72,0,1)}
  }
  dialog[open]::backdrop{transition:none;animation:mp-fade .2s ease-out}
  /* Тост: translate складывается с transform, которым тост центруется */
  @keyframes mp-toast{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
  .toast.show{animation:mp-toast .22s cubic-bezier(.23,1,.32,1)}
  /* Цифры не прыгают по ширине, пока пересчитываются */
  .money-total b,.money-cells b,.money-after-row b,.stats-row b,.expenses-total,.expenses-item b{font-variant-numeric:tabular-nums}
  /* Смена статуса: цвет галочки перетекает, а не щёлкает */
  .status-step i,.check-mark,.studio-check i,.pay-chip{transition:background-color .2s ease-out,border-color .2s ease-out,color .2s ease-out}
}
@media(prefers-reduced-motion:reduce){
  .mp-thumb{transition:none!important}
  .toast.show{animation:none}
}

/* ===== Ползунок: точка отсчёта, без двойной плашки, стабильный заголовок ===== */
body .calendar-toolbar .segmented.has-mp-thumb,.expenses-kinds{position:relative!important}
body .segmented.has-mp-thumb button,body .segmented.has-mp-thumb button.selected{padding:8px 12px!important}
.expenses-kinds.has-mp-thumb .expenses-kind.is-active{background:transparent!important;box-shadow:none!important}
@media(min-width:721px){body .date-controls h2{min-width:16ch;text-align:center}}

/* ===== Боковые панели ближайших съёмок (главная, карточка «Следующая съёмка») ===== */
body .next-card #heroScene.has-panels{padding:12px!important;box-sizing:border-box;cursor:default;background:none!important;overflow:hidden;max-width:100%}
body .next-card #heroScene.has-panels:active{transform:none}
.sp-row{--sp-strip:46px;--sp-gap:6px;container-type:inline-size;display:flex;gap:var(--sp-gap);width:100%;height:100%;min-width:0}
.sp-panel{position:relative;flex:0 0 var(--sp-strip);min-width:0;overflow:hidden;border-radius:var(--mir-radius-s,14px);background:#2b2140;box-shadow:var(--sh-1,0 2px 8px rgba(30,18,34,.18));transition:flex-grow .34s cubic-bezier(.32,.72,0,1)}
.sp-panel.is-open{flex-grow:1}
.sp-hero{position:absolute;inset:0 auto 0 0;width:calc(100cqw - (var(--sp-n) - 1) * (var(--sp-strip) + var(--sp-gap)));opacity:0;transition:opacity .34s cubic-bezier(.32,.72,0,1)}
.sp-panel.is-open .sp-hero{opacity:1}
body .sp-hero .fut{height:100%!important;width:100%;aspect-ratio:auto!important;border-radius:0!important}
.sp-strip{position:absolute;inset:0;display:block;transition:opacity .34s cubic-bezier(.32,.72,0,1)}
.sp-panel.is-open .sp-strip{opacity:0;pointer-events:none}
.sp-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.sp-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(18,10,28,.86) 0%,rgba(18,10,28,.45) 55%,rgba(18,10,28,.12) 100%)}
.sp-label{position:absolute;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:border-box;padding:10px 0;max-height:100%;writing-mode:vertical-rl;transform:rotate(180deg);transform-origin:50% 50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start;font-size:12px;line-height:var(--sp-strip);font-weight:700;letter-spacing:.02em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.sp-btn{position:absolute;inset:0;z-index:2;width:100%;min-width:44px;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sp-btn:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:inset 0 0 0 6px rgba(20,10,40,.7)}
.sp-panel.is-open .sp-btn{cursor:pointer}
html.theme-blue .sp-panel{background:#0D2440}
html.theme-blue .sp-strip::after{background:linear-gradient(0deg,rgba(8,24,46,.9) 0%,rgba(8,24,46,.5) 55%,rgba(8,24,46,.15) 100%)}
@media(max-width:720px){
  body .next-card #heroScene.has-panels{position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;padding:10px 0 0!important;border-radius:0!important}
  body .next-card #heroScene.has-panels .sp-row{--sp-strip:44px;--sp-gap:4px;height:204px}
  body .sp-hero .fut-side{flex-wrap:wrap;max-width:calc(100% - 28px)}
  /* Имя, студия и сбор/старт/конец остаются в раскрытой панели (просьба владельца) — компактнее, чтобы влезть в ~210 px */
  body .sp-hero .fut-banner{max-width:calc(100% - 20px)!important}
  body .sp-hero .fut-name{font-size:17px!important;line-height:1.15!important}
  body .sp-hero .fut-stats{left:10px!important;right:auto!important;width:auto!important;column-gap:6px!important}
  body .sp-hero .fut-stats b{font-size:14px!important}
  body .sp-hero .fut-stats small{font-size:12px!important}
}
@media(min-width:721px) and (max-width:1200px){
  body .next-card #heroScene.has-panels{width:60%!important}
  body .next-card:has(#heroScene.has-panels) .next-copy{max-width:40%}
  body .next-card #heroScene.has-panels .sp-row{--sp-strip:44px;--sp-gap:4px}
}
@media(prefers-reduced-motion:reduce){.sp-panel,.sp-hero,.sp-strip{transition:none}}

/* Строка «съёмки подряд» в карточке: длинное имя не выталкивает строку за край карточки, а обрезается многоточием */
body .next-more-item{max-width:100%;min-width:0;box-sizing:border-box}
body .next-more-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Картинка карточки раньше была украшением (style.css: pointer-events:none), касание шло мимо неё.
   С панелями внутри неё полоски — кнопки, им нужны касания */
body #heroScene.has-panels{pointer-events:auto!important}

/* Раскрытая панель на телефоне: сбор/старт/конец столбиком слева («13:30 сбор»), чтобы не уходить под персонажа */
@media(max-width:720px){
  body .sp-hero .fut-stats{display:flex!important;flex-direction:column!important;gap:1px!important;column-gap:0!important}
  body .sp-hero .fut-stats>*{display:flex!important;flex-direction:row!important;align-items:baseline!important;gap:6px!important;border:0!important;padding:0!important;margin:0!important}
  body .sp-hero .fut-stats>* b{font-size:14px!important;line-height:1.25!important}
  body .sp-hero .fut-stats>* small{font-size:12px!important}
}

/* Раскрытая панель на телефоне: персонаж крупно, как портрет (просьба владельца) — макушка у строки «Подкаст · П»,
   плечи у линии под именем и студией, ноги уходят за нижний край панели. Стоит справа, текст остаётся слева */
@media(max-width:720px){
  body .next-card #heroScene .sp-hero .fut-person{position:absolute!important;inset:auto!important;top:20px!important;right:-54px!important;width:238px!important;height:230px!important;transform:none!important;max-width:none!important;min-width:0!important}
  body .next-card #heroScene .sp-hero .fut-person>svg{width:100%!important;height:100%!important}
}

/* Значок студии («П», «MIT», фургон выезда) на картинках съёмок убран везде: студия и так написана текстом (просьба владельца) */
body .fut-crest{display:none!important}

/* «Сегодня» в неделе: без слова и без значка — сегодняшняя карточка самая светлая, остальные дни чуть приглушены (просьба владельца).
   Слово «сегодня» остаётся для экранного диктора */
body .diary-day .dd-head .dd-today{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;background:none!important}
body .diary .diary-day:not(.today){background:rgba(255,255,255,.58)!important}
body .diary .diary-day.today{background:#fff!important}
html.theme-blue body .diary .diary-day:not(.today){background:rgba(255,255,255,.6)!important}

/* Красная точка «в эфире» — только у съёмки, которая идёт прямо сейчас (от старта до конца), справа вверху картинки */
.fut-live{position:relative;display:inline-block;flex:none;width:10px;height:10px;margin-left:auto;align-self:center;border-radius:50%;background:#E5383B;box-shadow:0 0 0 2px rgba(255,255,255,.28)}
.fut-live::before,.fut-live::after{content:"";position:absolute;inset:0;border-radius:50%;background:#E5383B;opacity:0;animation:live-wave 2s cubic-bezier(.2,.6,.3,1) infinite;pointer-events:none}
.fut-live::after{animation-delay:1s}
@keyframes live-wave{0%{transform:scale(1);opacity:.55}100%{transform:scale(3.2);opacity:0}}
@media(prefers-reduced-motion:reduce){.fut-live::before,.fut-live::after{animation:none}}

/* ===== Правки по аудиту главной (ноябрь 2026): ритм, шкала размеров, два цвета текста, нажимаемые зоны, значки. Последний раздел файла ===== */

/* 22: вебинар чуть темнее; метки форматов везде круги 9 px */
:root{--mir-webinar:#D47839}
body .swatch,body footer .swatch,body .format-legend .swatch{display:inline-block;width:9px!important;height:9px!important;border-radius:50%!important;flex:none}
body .next-more-swatch{width:9px;height:9px;border-radius:50%}
body .dd-ev i{width:9px;height:9px;border-radius:50%}
body .swatch.webinar{background:var(--mir-webinar)!important}

/* 29: легенда форматов под неделей — тихая строка */
.format-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:10px 0 0;font-size:12px;font-weight:400;line-height:1.3;color:var(--mir-soft)}
.format-legend>span{display:inline-flex;align-items:center;gap:5px}
.format-legend .swatch{margin:0 5px 0 0}

/* Разметка исполнителя кода */
.queue-when,.queue-place{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-open{display:block;width:100%;padding:0;margin:0;border:0;background:none;text-align:inherit;cursor:pointer;border-radius:inherit;color:inherit;font:inherit}
.card-open .card-scene{pointer-events:none}
body .next-copy #nextMeta{display:block!important}
body .next-copy #nextMeta .next-time{display:block}
body .next-meta-date,body .next-meta-extra{display:inline}

/* 3: вертикальный ритм — 10 внутри раздела, 24 между разделами, 12 от заголовка до содержимого */
body .overview{gap:10px!important;margin:0 0 24px!important}
body .queue-section{margin:0 0 24px!important}
body .queue-section h2,body .section-title h2{margin:0!important}
body .section-title{margin-bottom:12px!important}
body .queue-list{gap:10px!important}
body .studio-directory{margin-top:0!important;margin-bottom:24px!important}
body .calendar-section{margin:0!important}
body .calendar-toolbar{margin:0 0 10px!important;row-gap:10px!important}
body .diary{margin:10px 0 0!important}
body .day-section{margin:24px 0 0!important}
@media(max-width:720px){body .event-grid{gap:10px!important}}
body .next-more{margin:12px 0 0!important;gap:10px!important}

/* 4, 8, 9: шкала 12/14/16/18/22/26, начертания 400/500/600 */
body .section-title h2,body .queue-section h2{font-size:22px!important;font-weight:600!important;line-height:1.2!important}
body .diary-day .dd-head b,body .diary-day.is-free .dd-head b{font-size:18px!important;font-weight:600!important}
body .diary-day .dd-head>span{font-size:14px!important;font-weight:500!important}
body .diary-day .dd-ev{font-size:12px!important}
body .date-controls h2{font-size:16px!important;font-weight:600!important}
body .summary-title,body .next-more-title{font-size:14px!important;font-weight:600!important;letter-spacing:0!important}
body .next-copy p{font-size:14px!important;line-height:1.4!important}
body .stats-row b{font-size:22px!important;font-weight:600!important}
body .stats-row span,body .next-card .pill,body .fut-kind,body .stage-pill,body .timeline-step small,body .money-figures small,body .countdown small,body .countdown>span,body .summary-foot{font-size:12px!important}
body .pill-count,body .next-card .pill .pill-count{font-size:12px!important;font-weight:600!important}
body .countdown>b{font-size:22px!important;font-weight:600!important}
body .countdown>b i{font-size:14px!important}
body .timeline-step b{font-size:16px!important;font-weight:600!important}
body .queue-main b{font-size:16px!important;font-weight:600!important}
body .queue-main>span,body .queue-stage{font-size:12px!important;font-weight:500!important}
body .card-body h3{font-size:18px!important;font-weight:600!important}
body .card-meta{font-size:14px!important}
body .money-price{font-size:14px!important}
body .money-net{font-size:16px!important;font-weight:600!important}
body .dd-free{font-size:14px!important}
body .sp-label{font-weight:600}
/* имя / время на картинке: имя 18, время сбор-старт-конец 14, подписи к нему 12 */
body .fut-name,body .hero-scene .fut-name,body .sp-hero .fut-name,body .next-card #heroScene .fut-name{font-size:18px!important;line-height:1.15!important;font-weight:600!important}
body .fut-time{font-weight:600!important}
body .fut-stats b,body .sp-hero .fut-stats b,body .sp-hero .fut-stats>* b{font-size:14px!important;font-weight:600!important}
body .fut-stats small,body .sp-hero .fut-stats small,body .sp-hero .fut-stats>* small{font-size:12px!important}
body .fut-place{font-size:12px}
/* остальные 650/700/800 → 600 */
body :is(.summary-title,.date-controls h2,.next-copy h2,.next-time,.expenses-head h2,.expenses-total,.money-after-row b,.expenses-item-main b,.expenses-amount,.expenses-kind,.expenses-add,.expenses-retry,.expenses-error,.next-more-title,.dd-ev b,.diary-day .dd-head b,.status-step b,.stage-pill,.pay-button,.wa-button,.queue-act,.queue-more,.studio-check,.edit-event-button,.delete-event-button,.today-button,.icon-button,.segmented button,.ready-stamp,.client-tile .client-remove){font-weight:600!important}

/* 5: ничего мельче 12 px */
body .pill-count{font-size:12px!important}
@media(max-width:720px){
  body .sidebar .navigation .nav-item>span:nth-child(2){font-size:12px!important}
  .nav-long{display:none}
  body .dd-ev .dd-last{display:none}
  body .next-card:has(#heroScene.has-panels) .next-meta-extra{display:none}
}

/* 6: два цвета текста — основной ink и приглушённый soft */
body :is(.next-copy p,.muted,.card-meta,.stats-row span,.summary-foot,.queue-main>span,.queue-stage,.diary-day .dd-head>span,.dd-ev small,.dd-free,.dd-more,.money-figures small,.money-price,.timeline-step small,.countdown>b i,.countdown small,.expenses-split,.next-more-title,.summary-title,.mir-wd){color:var(--mir-soft)!important}
body :is(.queue-main b,.dd-ev b,.diary-day .dd-head b,.dd-ev span,.section-title h2,.card-body h3,.date-controls h2,.stats-row b,.timeline-step b,.next-more-item){color:var(--mir-ink)!important}
body .diary-day.today .dd-head b,body .diary-day.today .dd-head>span{color:var(--mir-today)!important}
body .summary-card #unpaidStat span,body .summary-card #unpaidStat.has-debt span{color:var(--mir-soft)!important}
body .summary-card #unpaidStat b{color:var(--mir-soft)!important}
body .summary-card #unpaidStat.has-debt b{color:var(--mir-today)!important}
body .unpaid-stat b{color:var(--mir-soft)!important}
body .unpaid-stat.has-debt b{color:var(--mir-today)!important}

/* 14: плашка «не оплачено» не выходит за правую границу; последняя колонка auto */
body .summary-card .stats-row{grid-template-columns:repeat(3,minmax(0,1fr)) auto!important}
body .summary-card #unpaidStat.has-debt{margin:-6px 0!important}

/* 15: отсчёт — по просьбе владельца оставлен прежний цвет (лавандовый фон, как до аудита) */

/* 11: левые края — большие карточки 16, плитки 12 */
body .summary-card{padding:16px!important}
body .event-card .card-body{padding:16px!important}
body .queue-row{padding:10px 12px!important;border-radius:16px!important}
body .diary-day,body .diary-day.is-free{padding-left:12px!important;padding-right:12px!important}
body .queue-empty{padding:16px;border-radius:16px}

/* 27: скругления — карточки 22, плитки 16, вложенные 14, кнопки 12 */
body :is(.pay-button,.wa-button,.queue-act,.studio-check,.edit-event-button,.delete-event-button,.next-button){border-radius:12px!important}
@media(max-width:720px){body .mp-thumb{border-radius:12px}}
body .money-row,body .card-statuses,body .timeline,body .countdown,body .next-more-item{border-radius:14px!important}

/* 7: кнопки в карточке съёмки — цветная только оплата */
body .wa-button,body .wa-button:not(.is-missing),body .wa-button.is-missing{background:var(--mp-fill)!important;color:var(--mir-ink)!important;border:0!important;box-shadow:none!important}
body .wa-button svg,body .wa-button i{color:#1C7A45!important}
body .edit-event-button{background:var(--mp-fill)!important;color:var(--mir-ink)!important}
body .delete-event-button{background:transparent!important;border:0!important;color:#B23A30!important}
@media(hover:hover){body .delete-event-button:hover{background:#FBEDEA!important}}

/* 18: нажимаемые зоны не меньше 44 px; подписи кнопок 14 / 600 */
body :is(.queue-act,.studio-check,.edit-event-button,.delete-event-button,.pay-button,.wa-button,.next-button,.queue-more){min-height:44px!important;font-size:14px!important;font-weight:600!important}
body .queue-act{max-width:none!important;white-space:nowrap!important;padding:0 14px!important}
body .studio-check{display:inline-flex;align-items:center}
body #showMonth{width:44px;height:44px;min-width:44px;min-height:44px}

/* 12: строка «‹ 9–15 ноября › Сегодня» */
@media(max-width:720px){
body .date-controls{display:grid!important;grid-template-columns:44px 1fr 44px auto;gap:8px!important;align-items:center}
body .date-controls .icon-button{width:44px!important;height:44px!important;padding:0}
body .date-controls .today-button{margin:0!important;padding:0 12px!important;min-height:44px;font-size:14px!important}
body .date-controls h2{margin:0!important;text-align:center;min-width:0!important}
}

/* 13: значки — 20 px, линия 1.6 как у остальных; «↗» прижата вправо; серый квадратик скрыт */
body :is(#prevPeriod,#nextPeriod,#showMonth) [data-icon]{display:grid;place-items:center;width:20px;height:20px;line-height:0}
body :is(#prevPeriod,#nextPeriod,#showMonth) [data-icon] svg{width:20px;height:20px;display:block;stroke-width:1.6}
body .icon-button,body #showMonth{display:grid;place-items:center}
body .summary-foot{display:flex;align-items:center;gap:8px}
body .summary-foot .dot{display:none!important}
body .summary-foot>button#showMonth{margin:0 0 0 auto!important}

/* 24: оплаченный отрезок полоски этапов закрашен как пройденные */
body .progress i.pay.full{background:var(--mir-done)!important;box-shadow:none!important}

/* 23: выбранный день — сливовая рамка (фон «сегодня» не трогаем) */
body .diary .diary-day.active{box-shadow:inset 0 0 0 2px var(--mp-plum)!important}
html.theme-blue body .diary .diary-day.active{box-shadow:inset 0 0 0 2px var(--tb-navy,#0D2440)!important}

/* 25: «Выйти» белая, как колокольчик */
body .owner-session-button,body .owner-session-button.is-owner{background:var(--mir-surface)!important;color:var(--mir-ink)!important}
html.theme-blue.theme-blue body .owner-session-button,html.theme-blue.theme-blue body .owner-session-button.is-owner{background:#fff!important}

/* 17: карточка съёмки дня короче — компактные шаги 1-2-3 */
body .card-statuses{padding:6px 8px!important}
body .status-step{min-height:44px}
body .status-step b{font-size:12px!important;line-height:1.2!important}
body .stage-row{margin:2px 0 8px!important}

/* 2: неделя на десктопе — строки левой и правой колонок одной высоты */
@media(min-width:721px){
  @supports (grid-template-rows:subgrid){
    body .diary{grid-template-rows:repeat(4,auto)}
    body .diary-page{display:grid!important;grid-template-rows:subgrid;grid-row:span 4}
    body .diary-page>.diary-day{min-height:96px}
  }
}

/* 30: десктоп ≥ 721 — панели 60%, текст 40%; плашки слева одной ширины, max 320 */
@media(min-width:721px){
  body .next-card #heroScene.has-panels{width:60%!important}
  body .next-card:has(#heroScene.has-panels) .next-copy{max-width:40%}
  body .next-card #heroScene.has-panels .sp-row{--sp-strip:44px;--sp-gap:4px}
  body .next-copy .countdown,body .next-copy .next-more{display:flex;width:100%;max-width:320px;box-sizing:border-box}
  body .next-copy .next-more{display:grid}
  body .next-copy .countdown{flex-direction:column}
}

@media(max-width:720px){
  /* 1: стык панелей — поле 8 px с трёх сторон: угол карточки 22 = 8 + угол панели 14 */
  body .next-card #heroScene.has-panels{padding:8px 8px 0!important}
  body .sp-hero .fut::after{inset:5px;border-radius:9px}
  body .next-copy{padding-left:16px!important;padding-right:16px!important}

  /* 2: неделя на телефоне — дни парами по порядку, воскресенье во всю ширину */
  body .diary-page{display:contents!important}
  body .diary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-auto-rows:100px;gap:10px!important}
  body .diary-page:last-child .diary-day:last-child{grid-column:1/-1}
  body .diary-page+.diary-page{border:0!important;box-shadow:none!important}

  /* 16, 17: повторы убраны, картинка съёмки дня — кнопка */
  body #dayCards .card-meta{display:none!important}
  body #dayCards .card-footer{display:none!important}
  body #dayCards .card-open .card-scene{border-radius:var(--mir-radius) var(--mir-radius) 0 0}

  /* 26: активная вкладка островка — лёгкая светлая подложка; стекло не трогаем */
  body .sidebar .navigation .nav-item.active{background:rgba(255,248,240,.16)!important;color:#FFF8F0!important;border-radius:16px!important}
  html.theme-blue.theme-blue body .sidebar .navigation .nav-item.active{background:rgba(238,245,252,.16)!important;color:#EEF5FC!important}
  body .sidebar .navigation .nav-item.active>span:nth-child(2){color:inherit!important}
}

/* Метка «Следующая съёмка»: текст и «2×» по центру плашки по вертикали, поля слева и справа одинаковые (просьба владельца) */
body .next-card #nextLabel.pill{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:6px 12px!important;line-height:1.2!important}
body .next-card #nextLabel .pill-count{margin:0!important;line-height:1!important;display:inline-flex!important;align-items:center!important}

/* Персонажи на телефоне: WhatsApp и «Изменить» не помещались в карточку 174 px (вылезала «Изменить»).
   WhatsApp тянется на остаток ширины, «Изменить» — квадратная кнопка 44×44 со значком карандаша (подпись остаётся в aria-label) */
@media(max-width:720px){
  body .client-tile .client-contact{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;max-width:100%!important;box-sizing:border-box!important}
  body .client-tile .client-contact .wa-button{flex:1 1 auto!important;min-width:0!important;padding:0 8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body .client-tile .client-contact .contact-edit{position:relative!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;padding:0!important;font-size:0!important;color:var(--mir-soft,#6E6078)!important}
  body .client-tile .client-contact .contact-edit::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16v4z'/><path d='m13.5 6.5 4 4'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16v4z'/><path d='m13.5 6.5 4 4'/></svg>") center/contain no-repeat}
}

/* «Нужно сделать»: четвёртый отрезок полоски — оплата. Когда оплачено — зелёный, но приглушённый, в тон сливовому и кремовому (просьба владельца) */
:root{--mp-paid:#4F8B6A}
body .progress i.pay.full,body .queue-row .progress i.pay.full{background:var(--mp-paid)!important;box-shadow:none!important;border:0!important}
html.theme-blue body .progress i.pay.full{background:var(--mp-paid)!important}

/* Выбранный день в неделе: рамка светло-лавандовая, как кнопки «Сдано клиенту / Начать монтаж», а не тёмная (просьба владельца) */
body #calendarGrid .diary .diary-day.active{box-shadow:inset 0 0 0 2px var(--mp-lavender,#DDD2EA)!important;outline:0!important}

/* Итоги месяца: четыре показателя — одинаковые плитки, как «не оплачено»: равные колонки, цифра и подпись по центру,
   одинаковые поля и скругление. У первых трёх лёгкий нейтральный фон, «не оплачено» остаётся персиковым акцентом (просьба владельца) */
body .summary-card .stats-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
body .summary-card .stats-row>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:0!important;margin:0!important;padding:8px 4px!important;border-radius:12px!important;background:var(--mp-fill,#F8F1EA)!important;box-shadow:none!important}
body .summary-card .stats-row>div.unpaid-stat{background:#FCEEE2!important}
body .summary-card .stats-row>div.unpaid-stat:not(.has-debt){background:var(--mp-fill,#F8F1EA)!important}
body .summary-card .stats-row>div span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
html.theme-blue body .summary-card .stats-row>div:not(.unpaid-stat){background:#EEF3F8!important}
body .summary-card .stats-row{gap:6px!important}
body .summary-card .stats-row>div,body .summary-card .stats-row #unpaidStat,body .summary-card .stats-row #unpaidStat.has-debt{padding:8px 2px!important;margin:0!important}
/* подписи итогов могут переноситься на две строки — плитки остаются одной высоты, всё по центру */
body .summary-card .stats-row>div span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15!important}

/* Островок: капсула активной вкладки скруглена «в такт» островку — 24 − 4 (поле островка) = 20 px (просьба владельца) */
@media(max-width:720px){
  body .sidebar .navigation .nav-item.active{border-radius:20px!important}
}

/* Неделя на телефоне: воскресенье той же ширины, что остальные дни, ровно по центру, и того же приглушённого фона.
   Рамка выбранного дня — цвета надписи «9 понедельник» (просьба владельца) */
@media(max-width:720px){
  body #calendarGrid .diary .diary-page:last-child .diary-day:last-child{grid-column:1/-1!important;justify-self:center!important;width:calc(50% - 5px)!important}
}
body #calendarGrid .diary .diary-day:not(.today){background:rgba(255,255,255,.58)!important}
body #calendarGrid .diary .diary-day.active{box-shadow:inset 0 0 0 2px #9E4E1D!important;outline:0!important}

/* Правки по проверке */
body .dd-ev.is-closed :is(b,span){color:var(--mir-soft)!important}
body .timeline-step:nth-child(2) b{color:var(--mir-today)!important}
body .status-step b{color:var(--mir-soft)!important}
body .status-step.done b{color:var(--mir-ink)!important}
body .studio-check:not(.on){color:var(--mir-ink)!important}
body .status-step i{font-weight:600!important}
body .calendar-toolbar .segmented button{font-size:14px!important;font-weight:600!important}
body .diary-day .dd-free{font-size:14px!important}
.format-legend>span{gap:0!important}
.format-legend .swatch{margin:0 6px 0 14px!important}
.format-legend .swatch:first-child{margin-left:0!important}
@media(max-width:720px){
  body .event-card .wa-button span{font-size:inherit!important}
  body .diary .diary-page:last-child .diary-day:last-child:not(.today){background:rgba(255,255,255,.58)!important}
  body .next-card #heroScene .sp-hero .fut{border-radius:0!important}
  body footer{display:none!important}
}

/* Порядок главной (по просьбе владельца): ближайшая съёмка → «Нужно сделать» → неделя и съёмки дня → отчёт за месяц в самом конце.
   Заглушка загрузки повторяет новый порядок: под карточкой сразу неделя. */
.sk-overview{grid-template-columns:1fr!important}
body .summary-section{margin:24px 0 0!important}
body #calendarPage .day-section+.studio-directory{margin-top:24px!important}

/* Персонажи смотрят на текст (владелец): в больших карточках они стоят справа — отражаем, смотрят налево, на время и надписи.
   Все рисунки нарисованы повёрнутыми вправо, поэтому слева (аватарки «Нужно сделать») их не трогаем — смотрят направо.
   Касается главной карточки, карточек съёмок дня, «Этапов» и окна съёмки, на обеих вкладках. */
body .fut-person>svg{transform:scaleX(-1)!important}
/* Узкий экран: персонаж в главной карточке не заходит на надписи — стоит у правого края, спина уходит за край карточки
   (как ноги снизу). Фигура привязана к правому краю самой длинной надписи (app.js heroTextRight → --txt-r): лицо начинается в ~12 px за текстом, а что не влезает справа — затылок — уходит за край; на самых узких телефонах фигура чуть меньше. */
@media(max-width:720px){
  body .next-card #heroScene .sp-hero .fut-person{left:calc(var(--txt-r,96px) - 56px)!important;right:auto!important}
  body .next-card #heroScene .sp-hero :is(.fut-name,.fut-place){max-width:98px!important}
}
@media(max-width:360px){
  body .next-card #heroScene .sp-hero .fut-person{width:150px!important;height:145px!important;top:60px!important;left:calc(var(--txt-r,96px) - 32px)!important}
}
/* Самые узкие телефоны (≤360): надписи в главной карточке на ступень мельче — колонка текста уже, персонажу остаётся место */
@media(max-width:360px){
  body .next-card #heroScene .sp-hero .fut-name{font-size:14px!important;line-height:1.15!important}
  body .next-card #heroScene .sp-hero .fut-place{font-size:11px!important}
  body .next-card #heroScene .sp-hero .fut-stats b{font-size:12px!important}
  body .next-card #heroScene .sp-hero .fut-stats small{font-size:11px!important}
  body .next-card #heroScene .sp-hero :is(.fut-name,.fut-place){max-width:84px!important}
}
/* Ноги персонажа не обрезаются по нижнему краю рисунка (у standing() рамка рисунка короче фигуры) — их срезает только край карточки */
body .fut-person>svg{overflow:visible!important}
