/* Календарь пономарей — стили. Сначала телефон, затем ПК. */

@font-face {
  font-family: 'Ponomar Unicode';
  src: url('/fonts/Ponomar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos-text-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos-text-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f1e1;
  --card: #fffbf2;
  --text: #3b2a1e;
  --muted: #6b5644;
  --line: #e4d5b7;
  --gold: #b8893a;
  --gold-text: #7d5a1c;
  --bordo: #7a2e2e;
  --bordo-dark: #5a1f22;
  --priest-text: #fff4da;
  --danger: #8e2727;

  --none-bg: #f5dfda;
  --none-fg: #8a2525;
  --short-bg: #f6e7c4;
  --short-fg: #6b4a00;
  --full-bg: #e0ebd6;
  --full-fg: #2e5732;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(59, 42, 30, 0.06), 0 4px 16px rgba(59, 42, 30, 0.06);
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-title: 'Ponomar Unicode', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 var(--font);
  overflow-x: hidden;
  padding: 0 max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left));
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

main,
.site-header,
.site-footer,
.offline {
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- Шапка ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) 0 18px;
}

.dome {
  flex: none;
  width: 52px;
  height: 82px;
  color: var(--gold);
}

.dome-shine {
  stroke: var(--card);
  opacity: 0.55;
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  color: var(--bordo);
}

.title-main {
  font-size: clamp(28px, 8vw, 40px);
}

.title-sub {
  font-size: clamp(20px, 5.5vw, 26px);
  color: var(--gold-text);
  margin-top: 4px;
}

.offline {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--none-bg);
  color: var(--none-fg);
  font-weight: 600;
  text-align: center;
}

/* ---------- Карточки и заголовки ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.week-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 650;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-wide {
  width: 100%;
  margin-top: 14px;
}

.btn-primary {
  background: var(--bordo);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--bordo-dark);
}

.btn-outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
}

/* Спокойные кнопки для опасных действий — чтобы не нажимали случайно. */
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.btn-quiet:hover:not(:disabled) {
  color: var(--text);
  text-decoration-color: var(--gold);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #6f1c1c;
}

.btn-danger-outline {
  background: var(--card);
  border-color: #d9b2ab;
  color: var(--danger);
}

.btn-danger-outline:hover:not(:disabled) {
  border-color: var(--danger);
}

/* ---------- Облачки ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Область нажатия не меньше 44px, даже если облачко ниже. */
.chip::after {
  content: '';
  position: absolute;
  inset: -4px -2px;
}

.chip:hover {
  border-color: var(--gold);
}

.chip-priest {
  background: var(--bordo-dark);
  color: var(--priest-text);
  border: 2px solid var(--gold);
  font-weight: 600;
}

.chip-priest:hover {
  border-color: #e0bd6d;
}

.chip-mark {
  font-size: 14px;
}

.chip-urgent {
  font-weight: 600;
  min-height: 44px;
  padding-inline: 14px;
}

.chip-urgent.status-none {
  background: var(--none-bg);
  color: var(--none-fg);
  border-color: #e7c1b9;
}

.chip-urgent.status-short {
  background: var(--short-bg);
  color: var(--short-fg);
  border-color: #e6cf98;
}

.urgent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.urgent-list p {
  margin: 0;
}

.all-good {
  color: var(--full-fg);
  font-weight: 600;
}

/* ---------- Счётчики ---------- */

.count {
  flex: none;
  display: inline-block;
  min-width: 44px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.status-none .count,
.count.status-none {
  background: var(--none-bg);
  color: var(--none-fg);
}

.count.status-short {
  background: var(--short-bg);
  color: var(--short-fg);
}

.count.status-full {
  background: var(--full-bg);
  color: var(--full-fg);
}

.count.status-empty {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Аккордеон дней ---------- */

.days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 12px;
}

.day.today {
  border: 2px solid var(--gold);
  background: #fffaee;
}

.day.past {
  background: #f7f0e3;
  box-shadow: none;
}

.day-heading {
  margin: 0;
  font-size: inherit;
}

.day-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px 12px 16px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.day-name {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  font-size: 17px;
}

.day.past .day-name {
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
  background: var(--gold);
  color: #2b1d0f;
}

.badge-past {
  background: #e9dfcc;
  color: var(--muted);
}

.chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.day-toggle[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.day-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}

.day-panel.open {
  grid-template-rows: 1fr;
}

.day-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.day-panel.open .day-panel-inner {
  overflow: visible;
}

.day-slots {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.no-services {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.slot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.slot-name {
  font-weight: 600;
}

.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.slot-chips:empty {
  display: none;
}

/* «Поле-кнопка» Откликнуться */
.respond {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px dashed #cdb68a;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--gold-text);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.respond:hover {
  border-color: var(--gold);
  background: #fff;
}

.respond-plus {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Управление ---------- */

.admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.admin-buttons .btn-outline {
  flex: 1 1 100%;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #d8cbb2;
  transition: background-color 0.2s;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}

.switch input:checked + .switch-track {
  background: var(--bordo);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.6;
}

.admin .small {
  margin: 8px 0 0;
}

/* ---------- Футер ---------- */

.site-footer {
  padding: 8px 0 28px;
  text-align: center;
  color: var(--muted);
}

.credit {
  margin: 0 0 14px;
  font-size: 15px;
}

.qr-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.qr:hover {
  background: var(--card);
}

.qr img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #fff;
}

/* ---------- Модальные окна ---------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--card);
  box-shadow: 0 10px 40px rgba(40, 25, 10, 0.25);
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(40, 25, 12, 0.45);
}

/* Телефон: нижняя шторка */
dialog.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto 0 0;
  border-radius: 18px 18px 0 0;
}

dialog.sheet.full {
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0;
}

dialog.sheet[open] {
  animation: sheet-in 0.28s var(--ease);
}

@keyframes sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

.dlg-body {
  padding: 20px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.dlg-flex {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  height: 100%;
}

dialog.sheet.tall .dlg-flex,
dialog.sheet.full .dlg-flex {
  max-height: 92dvh;
}

dialog.sheet.full .dlg-flex {
  max-height: none;
}

.dlg-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
}

.dlg-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dlg-actions .btn {
  flex: 1;
}

.dlg-actions.sticky {
  position: sticky;
  bottom: 0;
  margin: 12px -16px 0;
  padding: 12px 16px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.dlg-flex > .multi-list,
.dlg-flex > .editor-days {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin: 0 -16px;
  padding: 4px 16px;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Поля формы ---------- */

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field textarea,
select,
.ed-note {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d6c5a3;
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* 16px — iPhone не увеличивает страницу */
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

.field input[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.field-error,
.form-error {
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.field-error:empty,
.form-error:empty {
  display: none;
}

.form-error {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--none-bg);
}

.form-error .btn {
  margin-top: 8px;
  min-height: 40px;
}

/* Переключатель Пономарь | Священник */
.segmented {
  display: flex;
  margin: 0 0 14px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #efe4cd;
}

.segmented label {
  flex: 1;
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.segmented input:checked + span {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(59, 42, 30, 0.15);
}

.segmented input[value='priest']:checked + span {
  background: var(--bordo-dark);
  color: var(--priest-text);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

/* ---------- МО2 — выбор нескольких ---------- */

.multi-day {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.multi-day h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.multi-day.past h3 {
  color: var(--muted);
}

.multi-day.past .badge {
  vertical-align: 1px;
}

.multi-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pick input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--bordo);
}

.pick.selected {
  border-color: var(--bordo);
  background: #f7e6e1;
}

.pick.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pick .count {
  min-width: 0;
  padding: 1px 8px;
  font-size: 13px;
}

/* ---------- Карточка отклика ---------- */

.card-role {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.card-facts div {
  display: grid;
  gap: 2px;
}

.card-facts dt {
  font-size: 13px;
  color: var(--muted);
}

.card-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Всплывающая карточка при наведении (ПК) */
dialog.card-dialog.popover {
  position: fixed;
  margin: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  border: 1px solid var(--line);
  animation: none;
}

dialog.card-dialog.popover .dlg-body {
  padding: 14px 16px;
}

/* ---------- Подтверждение ---------- */

.confirm-text p {
  margin: 0 0 10px;
}

.confirm-warn {
  padding: 10px 12px;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  background: var(--none-bg);
  color: var(--none-fg);
  font-weight: 600;
}

/* ---------- МО3 — редактор ---------- */

.ed-day {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}

.ed-day:disabled {
  background: #f5eee1;
}

.ed-day legend {
  padding: 0 6px;
  font-weight: 650;
}

.ed-day.past legend {
  color: var(--muted);
}

.ed-empty {
  margin: 4px 0 10px;
  color: var(--muted);
}

.ed-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.ed-slot .ed-type {
  grid-column: 1;
}

.ed-slot .ed-remove {
  grid-column: 2;
}

.ed-slot .stepper {
  grid-column: 1 / -1;
}

.ed-slot .ed-note {
  grid-column: 1 / -1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--danger);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--danger);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-label {
  flex: 1;
  color: var(--muted);
  font-size: 15px;
}

.stepper button {
  width: 46px;
  height: 46px;
  border: 1px solid #d6c5a3;
  border-radius: 10px;
  background: var(--card);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-value {
  min-width: 44px;
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.ed-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ed-add select {
  flex: 1;
  min-width: 0;
}

.ed-add .btn {
  flex: none;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b5644' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select:disabled,
.ed-note:disabled {
  background-color: #f2ebdd;
  color: var(--muted);
}

/* ---------- Уведомление ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
  background: var(--none-bg);
  border-radius: 12px;
}

/* ---------- ПК ---------- */

@media (min-width: 640px) {
  .site-header {
    padding-top: 32px;
  }

  .dome {
    width: 60px;
    height: 94px;
  }

  .card {
    padding: 20px 22px;
  }

  .admin-buttons .btn-outline {
    flex: 0 0 auto;
  }

  dialog.sheet,
  dialog.sheet.full {
    width: min(560px, calc(100vw - 48px));
    height: auto;
    max-height: 86vh;
    margin: auto;
    border-radius: 18px;
  }

  dialog.sheet.small {
    width: min(440px, calc(100vw - 48px));
  }

  dialog.sheet.full {
    width: min(680px, calc(100vw - 48px));
    height: 86vh;
  }

  dialog.sheet.tall .dlg-flex {
    max-height: 86vh;
  }

  dialog.sheet[open] {
    animation-name: dialog-in;
  }

  @keyframes dialog-in {
    from {
      transform: scale(0.97);
      opacity: 0;
    }
  }

  .dlg-body {
    padding: 22px 24px 20px;
  }

  .dlg-actions {
    justify-content: flex-end;
  }

  .dlg-actions .btn {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .dlg-actions.sticky {
    margin: 12px -24px 0;
    padding: 14px 24px 0;
  }

  .dlg-flex > .multi-list,
  .dlg-flex > .editor-days {
    margin: 0 -24px;
    padding: 4px 24px;
  }

  .ed-slot {
    grid-template-columns: 170px 1fr auto;
    align-items: center;
  }

  .ed-slot .ed-type {
    grid-column: 1;
  }

  .ed-slot .stepper {
    grid-column: 2;
  }

  .ed-slot .stepper-label {
    flex: none;
  }

  .ed-slot .ed-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .ed-slot .ed-note {
    grid-column: 1 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
