.conf-schedule__header{
  display:flex;
  justify-content:flex-end;
  margin-bottom:8px;
  min-height:34px; /* стабилизация высоты шапки с кнопками */
}
.conf-schedule .conf-date-pills{align-items:flex-start}
.conf-schedule__content{ /* выравниваем вертикальные отступы между режимами */
  margin-top: 0;
}
.conf-schedule__view-switch{
  display:inline-flex;
  background:transparent;
  gap:6px;
}
.conf-switch__btn{
  appearance:none;
  border:1px solid var(--conf-day-border, #2e2e2e);
  background:var(--conf-switch-bg, transparent);
  color:var(--conf-heading, #ffffff);
  padding:6px 8px; 
  border-radius:var(--conf-radius, 8px);
  line-height:1;
  cursor:pointer;
  display:inline-flex; /* центрируем и предотвращаем «сплющивание» содержимого */
  align-items:center;
  justify-content:center;
  min-width:34px; /* согласовано с общей высотой контролов */
  min-height:34px;
}
.conf-switch__btn.is-active{
  background:var(--conf-switch-active, var(--conf-accent, #7cff73));
  color:#111;
}
.conf-schedule__content{
  position:relative;
  align-self:flex-start;
}
.conf-schedule__panel.is-hidden{ display:none; }

.conf-switch__icon{ display:block; width:20px; height:20px; }
.conf-switch__icon svg{ width:100% !important; height:100% !important; display:block; }
/* Принудительно переопределяем встроенные размеры SVG, если они есть */
.conf-switch__icon svg[width], .conf-switch__icon svg[height]{ width:100% !important; height:100% !important; }
/* Принудительно наследуем цвет иконки от кнопки */
.conf-switch__icon svg *:not([fill="none"]){ fill: currentColor; }
.conf-switch__icon svg [stroke]{ stroke: currentColor; }

/* Simple modal */
.conf-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999}
.conf-modal.is-open{display:flex}
.conf-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.conf-modal__dialog{position:relative;min-width:280px;max-width:90vw;background:var(--pdf-alert-bg,#1b1b1b);color:var(--conf-heading,#ffffff);border:1px solid #ffffff;border-radius:var(--conf-radius,10px);padding:16px}
.conf-modal__title{font-weight:700;margin-bottom:8px;color:var(--conf-heading,#ffffff)}
.conf-modal__body{margin-bottom:12px;color:#ddd}
.conf-modal__actions{display:flex;gap:8px;justify-content:flex-end}
.conf-btn{appearance:none;border:1px solid #ffffff;background:var(--pdf-alert-btn-secondary,#141414);color:var(--conf-heading,#ffffff);padding:6px 10px;border-radius:var(--conf-radius,8px);cursor:pointer;text-decoration:none}
.conf-btn--primary{background:var(--pdf-alert-btn-primary,#7bd68a);color:#111;border-color:var(--pdf-alert-btn-primary,#7bd68a)}

/* Mobile fallback: force List on narrow screens */
@media (max-width: 768px){
  .conf-schedule[data-mobile-list-lock="1"] .conf-schedule__panel--grid{ display:none !important; }
  .conf-schedule[data-mobile-list-lock="1"] .conf-switch__btn--grid{
    opacity:.5;
    cursor:not-allowed;
  }
}


