/* Client portal polish */
.client-booking-page {
  --rose: #b9687b;
  --rose-dark: #824453;
  --blush: #f4dfe4;
  --blush-2: #fcf2f5;
  --ink: #0b090a;
}

.client-booking-page .public-main { max-width: 1080px; }
.booking-head { margin-bottom: 24px; }
.booking-head p { max-width: 620px; }
.client-booking-page .button.primary {
  background: #080708;
  box-shadow: 0 9px 24px rgba(11, 9, 10, .2);
}
.client-booking-page .booking-panel {
  border: 1px solid rgba(112, 71, 81, .08);
  box-shadow: 0 12px 34px rgba(58, 34, 41, .065);
}

.booking-section-heading {
  display: block;
  margin-bottom: 22px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 5px 10px;
  color: var(--rose-dark);
  background: var(--blush);
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.booking-section-heading h2 { margin: 0 0 3px; }
.booking-section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }

.month-switcher {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}
.month-switcher a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  color: #5d5558;
  background: #f3f0f1;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: .88rem;
  font-weight: 750;
}
.month-switcher a.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(11, 9, 10, .16);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin: 0 0 16px;
  color: #645d60;
  font-size: .76rem;
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 10px; height: 10px; border-radius: 50%; }
.calendar-legend i.available { background: #6d9d7d; }
.calendar-legend i.limited { background: #d49a55; }
.calendar-legend i.full { background: #c9797b; }
.calendar-legend i.closed { background: #c8c5c6; }

.booking-calendar {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  background: #faf8f9;
  border: 1px solid #eee8ea;
  border-radius: 22px;
  overflow: hidden;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays { margin-bottom: 8px; }
.calendar-weekdays span {
  padding: 7px 2px;
  color: #7d7478;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.calendar-date {
  position: relative;
  min-width: 0;
  height: clamp(52px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 15px;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.calendar-date:hover {
  z-index: 1;
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(49, 36, 40, .12);
}
.calendar-date strong { color: #151214; font-size: 1.08rem; line-height: 1; }
.calendar-date.available {
  background: #e4f0e7;
  border-color: #c8dfcf;
}
.calendar-date.available::after { background: #5e8d6e; }
.calendar-date.limited {
  background: #faecd9;
  border-color: #efd5b3;
}
.calendar-date.limited::after { background: #c5823f; }
.calendar-date.full {
  background: #f7e1e3;
  border-color: #ecc9cc;
  cursor: not-allowed;
}
.calendar-date.full::after { background: #b85e63; }
.calendar-date.closed {
  background: #eeeced;
  border-color: #e5e2e3;
  cursor: not-allowed;
  opacity: .72;
}
.calendar-date.closed::after { background: #aaa5a7; }
.calendar-date.available::after,
.calendar-date.limited::after,
.calendar-date.full::after,
.calendar-date.closed::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.calendar-date.outside { background: transparent; border-color: transparent; opacity: .25; }
.calendar-date.selected {
  outline: 3px solid #171315;
  outline-offset: 2px;
  box-shadow: 0 8px 18px rgba(28, 19, 22, .13);
}

.large-slots { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
.large-slots .slot {
  min-height: 56px;
  border-color: #dfd5d8;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(42, 28, 33, .04);
}
.large-slots .slot:hover,
.large-slots .slot:focus-visible {
  background: #0b090a;
  color: #fff;
}
.booking-summary {
  max-width: 520px;
  padding: 24px;
  background: var(--blush-2);
  border: 1px solid #eadadd;
  border-radius: 18px;
}
.booking-summary h3 { margin: 8px 0 2px; font-size: 1.4rem; }
.booking-summary p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 680px) {
  .client-booking-page .public-main { padding-inline: 12px; }
  .client-booking-page .booking-panel { padding: 18px 12px; border-radius: 20px; }
  .booking-section-heading { padding-inline: 4px; }
  .booking-calendar { padding: 8px 5px; border-radius: 17px; }
  .calendar-weekdays,
  .calendar-days { gap: 4px; }
  .calendar-date {
    height: 50px;
    border-radius: 11px;
  }
  .calendar-date strong { font-size: .98rem; }
  .calendar-date.available::after,
  .calendar-date.limited::after,
  .calendar-date.full::after,
  .calendar-date.closed::after {
    top: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
  }
  .calendar-legend { gap: 7px 12px; font-size: .7rem; }
  .month-switcher a { min-height: 46px; }
  .large-slots { grid-template-columns: repeat(3, 1fr); }
  .large-slots .slot { min-height: 54px; }
}

@media (max-width: 390px) {
  .client-booking-page .public-main { padding-inline: 8px; }
  .client-booking-page .booking-panel { padding-inline: 4px; }
  .booking-section-heading,
  .month-switcher,
  .calendar-legend { margin-inline: 8px; }
  .booking-calendar { padding-inline: 0; }
  .calendar-weekdays,
  .calendar-days { gap: 1px; }
  .calendar-date { height: 46px; }
  .calendar-weekdays span { font-size: .65rem; }
  .calendar-legend span { width: calc(50% - 7px); }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-date { transition: none; }
}

.install-prompt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 48px 16px 18px;
  color: #1b1517;
  background: #f9e8ed;
  border: 1px solid #efd4dc;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(79, 45, 55, .08);
}
.install-prompt[hidden] { display: none; }
.install-prompt div { flex: 1; }
.install-prompt p { margin: 3px 0 0; color: #675c60; }
.install-prompt .dialog-close { top: 9px; right: 9px; }

.notification-settings { margin-top: 28px; }
.notification-settings .section-title p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.preference-list, .push-card, .device-list { display: grid; gap: 10px; }
.preference-row, .push-card, .device-list > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: #faf7f8;
  border: 1px solid #eee5e8;
  border-radius: 16px;
}
.preference-row span, .push-card div, .device-list > div > span { flex: 1; display: grid; gap: 3px; }
.preference-row small, .device-list small { color: var(--muted); }
.preference-row input { width: 25px; height: 25px; accent-color: #a8576b; }
.push-card { margin-top: 18px; background: #f9e8ed; }
.push-card p { margin: 4px 0; color: #65575c; }
.push-result { grid-column: 1 / -1; min-height: 1em; font-size: .86rem; }
.device-list { margin-top: 18px; }
.device-list h3 { margin-bottom: 0; }

.client-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 22px; }
.client-stats { display: grid; gap: 12px; align-content: start; }
.client-stats article { padding: 22px; background: #fff; border: 1px solid #eee8ea; border-radius: 18px; box-shadow: 0 8px 26px rgba(52, 34, 40, .05); }
.client-stats strong { display: block; font-size: 2rem; }
.client-stats span { color: var(--muted); }
.form-grid p { display: grid; gap: 6px; }
.form-grid input[type="checkbox"] { width: 23px; height: 23px; accent-color: #a8576b; }
.table-sub { display: block; color: var(--muted); }
.legacy-messages { margin-top: 24px; }
.legacy-messages summary { cursor: pointer; font-weight: 700; }
.narrow-panel { max-width: 620px; }
.info-note { padding: 14px; background: #f9e8ed; border-radius: 14px; }

.promotion-card { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 44px; align-items: center; padding: 36px; background: #fff; border-radius: 28px; box-shadow: 0 16px 44px rgba(53, 33, 39, .08); }
.promotion-card img { width: 100%; height: auto; border-radius: 20px; }
.promotion-card h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.public-url { overflow-wrap: anywhere; color: var(--muted); }
.nfc-guide code { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .install-prompt, .push-card { align-items: flex-start; flex-direction: column; }
  .client-detail-grid, .promotion-card { grid-template-columns: 1fr; }
  .promotion-card { padding: 20px; gap: 18px; }
  .promotion-card img { max-width: 320px; margin: auto; }
}
@media print {
  .sidebar, .bottom-nav, .no-print, .public-footer { display: none !important; }
  .staff-main { margin: 0 !important; padding: 0 !important; }
  .promotion-card { box-shadow: none; grid-template-columns: 320px 1fr; }
}

/* Jednoduchá každodenní administrace */
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.admin-action-grid a {
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid #eee8ea;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(52, 34, 40, .045);
  transition: transform .16s ease, box-shadow .16s ease;
}
.admin-action-grid a:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(52, 34, 40, .09); }
.admin-action-grid a.primary-action { color: #fff; background: #151215; border-color: #151215; }
.admin-action-grid i {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #8d5360;
  background: #f6e8eb;
  border-radius: 15px;
  font-style: normal;
  font-size: 1.35rem;
}
.admin-action-grid .primary-action i { color: #151215; background: #fff; }
.admin-action-grid span { display: grid; min-width: 0; }
.admin-action-grid strong { font-size: 1rem; }
.admin-action-grid small { margin-top: 3px; color: #7a7276; }
.admin-action-grid .primary-action small { color: #c8c0c3; }

.booking-admin-head { margin-bottom: 18px; }
.admin-steps { position: sticky; top: 12px; z-index: 10; width: max-content; max-width: 100%; padding: 6px; background: rgba(248, 247, 247, .92); backdrop-filter: blur(12px); border-radius: 999px; }
.admin-booking-step { max-width: 1100px; }
.admin-booking-step .booking-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.staff-client-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 14px; }
.choice-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e7e0e2;
  border-radius: 16px;
}
.choice-card:hover, .choice-card.selected { border-color: #b77785; background: #fcf6f7; }
.choice-card > span:nth-child(2) { display: grid; min-width: 0; }
.choice-card small { color: #716b70; overflow: hidden; text-overflow: ellipsis; }
.choice-card i { visibility: hidden; color: #8d5360; font-style: normal; font-weight: 900; }
.choice-card.selected i { visibility: visible; }
.selected-choice-summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  color: #342b2e;
  background: #fcf6f7;
  border: 1px solid #e8cdd3;
  border-radius: 16px;
}
.selected-choice-summary > span:nth-child(2) { display: grid; }
.selected-choice-summary small { color: #716b70; }
.selected-choice-summary i { color: #8d5360; font-style: normal; font-weight: 900; }
.service-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: #8d5360; background: #f6e8eb; border-radius: 14px; }
.admin-booking-summary form { display: grid; gap: 14px; }
.simple-note { display: grid; gap: 6px; font-size: .83rem; font-weight: 700; }
.override-booking {
  max-width: 1100px;
  margin: 20px 0 40px;
  color: #713542;
  background: #fbebee;
  border: 1px solid #edccd3;
  border-radius: 18px;
}
.override-booking summary { padding: 18px 20px; cursor: pointer; font-weight: 800; }
.override-booking > div { padding: 0 20px 20px; }
.override-form { display: grid; grid-template-columns: 1fr 1fr 2fr auto; align-items: end; gap: 12px; }
.override-form label { display: grid; gap: 5px; color: #372e31; font-size: .8rem; font-weight: 700; }

.simple-admin-form { max-width: 700px; padding: clamp(22px, 4vw, 36px); background: #fff; border-radius: 26px; box-shadow: 0 12px 36px rgba(52, 34, 40, .06); }
.simple-admin-form form, .simple-fields { display: grid; gap: 18px; }
.simple-fields > label, .two-fields > label, .advanced-options label { display: grid; gap: 7px; font-size: .84rem; font-weight: 700; }
.simple-fields label > small { color: #8a8286; font-weight: 500; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channel-switches { display: grid; gap: 9px; margin: 6px 0; padding: 0; border: 0; }
.channel-switches legend { margin-bottom: 10px; font-size: 1.05rem; font-weight: 800; }
.channel-switches label, .large-switch {
  min-height: 68px;
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #faf7f8;
  border: 1px solid #eee5e8;
  border-radius: 15px;
}
.channel-switches label > span, .large-switch > span { flex: 1; display: grid; }
.channel-switches small, .large-switch small { color: #716b70; font-weight: 500; }
.channel-switches input, .large-switch input { width: 24px; height: 24px; accent-color: #a8576b; }
.advanced-options { margin: 4px 0; border: 1px solid #e9e3e5; border-radius: 16px; }
.advanced-options summary { padding: 16px; cursor: pointer; font-weight: 800; }
.advanced-options > div { display: grid; gap: 16px; padding: 0 16px 18px; }
.calendar-event-actions { display: flex !important; grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: 6px; }
.calendar-event-actions a, .calendar-event-actions button { color: #824453; font-size: .72rem; font-weight: 750; }

.month-page-head { max-width: 850px; }
.month-page-head p { max-width: 680px; font-size: 1rem; }
.month-quick-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; max-width: 850px; margin: 0 0 24px; }
.month-quick-actions form { display: contents; }
.month-quick-actions button {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 0;
  border-radius: 19px;
  text-align: left;
  font-weight: 800;
}
.month-quick-primary { color: #fff; background: #151215; box-shadow: 0 10px 26px rgba(20, 15, 17, .14); }
.month-quick-secondary { color: #784451; background: #f5e5e9; }
.month-quick-actions button span { width: 40px; height: 40px; display: grid; place-items: center; color: #151215; background: #fff; border-radius: 13px; font-size: 1.15rem; }
.simple-month-list { display: grid; gap: 10px; max-width: 850px; }
.simple-month-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid #ece7e9;
  border-radius: 19px;
}
.simple-month-card.is-published { border-color: #d9e9dd; }
.month-calendar-mark { width: 56px; height: 58px; display: grid; place-items: center; align-content: center; line-height: 1.05; background: #f2eff0; border-radius: 15px; }
.is-published .month-calendar-mark { background: #e8f2eb; }
.month-calendar-mark span { font-size: 1.15rem; font-weight: 850; }
.month-calendar-mark small { color: #7b7477; font-size: .68rem; }
.month-card-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.month-card-name h2 { min-width: 155px; margin: 0; font-size: 1.05rem; }
.month-card-name > small { color: #7b7477; }
.month-state { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.month-state i { width: 7px; height: 7px; border-radius: 50%; }
.month-state.published { color: #366047; background: #e8f3eb; }
.month-state.published i { background: #4f8a64; }
.month-state.hidden { color: #706a6d; background: #efedee; }
.month-state.hidden i { background: #9b9698; }
.month-card-action form { margin: 0; }
.warning-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: #8d5360; background: #f8e8eb; border-radius: 50%; font-size: 1.2rem; font-weight: 900; }
.message.warning { background: #fff3d8; color: #6d5521; }
.client-search-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; color: #5f5257; background: #faf1f3; border: 1px dashed #dcbfc6; border-radius: 16px; }
.client-search-empty[hidden], [data-client-card][hidden], [data-search-submit][hidden] { display: none; }

@media (max-width: 1100px) {
  .admin-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .override-form { grid-template-columns: 1fr 1fr; }
  .override-note { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .admin-action-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .admin-action-grid a { min-height: 112px; flex-direction: column; align-items: flex-start; padding: 16px; }
  .admin-action-grid a.primary-action { grid-column: 1 / -1; min-height: 92px; flex-direction: row; align-items: center; }
  .admin-action-grid i { width: 40px; height: 40px; }
  .admin-action-grid small { font-size: .72rem; }
  .admin-steps { position: static; width: 100%; overflow-x: auto; border-radius: 16px; }
  .admin-steps li { flex: 1 0 auto; text-align: center; padding-inline: 12px; }
  .admin-booking-step { padding: 18px 10px; }
  .admin-booking-step .booking-section-heading { align-items: flex-start; flex-direction: column; padding-inline: 4px; }
  .admin-booking-step .booking-section-heading .button { width: auto; }
  .staff-client-search, .choice-card-grid, .two-fields, .override-form { grid-template-columns: 1fr; }
  .override-note { grid-column: auto; }
  .choice-card { min-height: 70px; }
  .simple-admin-form { padding: 20px 16px; }
  .month-quick-actions { grid-template-columns: 1fr; }
  .month-quick-actions button { min-height: 68px; }
  .simple-month-card { grid-template-columns: 52px 1fr auto; gap: 11px; padding: 13px; }
  .month-calendar-mark { width: 50px; height: 52px; }
  .month-card-name { display: grid; gap: 4px; }
  .month-card-name h2 { min-width: 0; font-size: .96rem; }
  .month-card-name > small { font-size: .72rem; }
  .month-state { padding: 3px 7px; font-size: .66rem; }
  .month-card-action .button { min-height: 42px; width: auto; padding: 8px 12px; font-size: .8rem; }
  .client-search-empty { align-items: stretch; flex-direction: column; }
}

/* Prémiový vizuální systém administrace */
.staff-shell {
  --admin-paper: #fff;
  --admin-canvas: #f7f5f6;
  --admin-ink: #171316;
  --admin-muted: #756d71;
  --admin-rose: #a9566b;
  --admin-rose-soft: #f7e9ed;
  --admin-line: rgba(64, 45, 52, .09);
  --admin-shadow: 0 18px 55px rgba(53, 34, 41, .07);
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 82% 3%, rgba(228, 190, 201, .18), transparent 27rem),
    var(--admin-canvas);
}
.staff-main {
  max-width: none;
  min-height: 100vh;
  padding: 48px clamp(30px, 4.5vw, 72px) 96px;
}
.staff-main > * { max-width: 1320px; }
.staff-head { margin-bottom: 38px; }
.staff-head h1,
.compact-head h1 {
  margin: 8px 0 10px;
  color: var(--admin-ink);
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  font-weight: 790;
  letter-spacing: -.06em;
}
.staff-head p {
  max-width: 680px;
  color: var(--admin-muted);
  font-size: 1rem;
}
.staff-main .eyebrow {
  color: var(--admin-rose);
  font-weight: 850;
  letter-spacing: .18em;
}
.sidebar {
  width: 252px;
  padding: 30px 18px 24px;
  background: rgba(23, 19, 22, .985);
  box-shadow: 18px 0 55px rgba(25, 17, 20, .08);
}
.staff-main { margin-left: 252px; }
.sidebar .brand.compact {
  min-height: 54px;
  margin-bottom: 34px;
  padding: 0 12px;
}
.sidebar nav { gap: 7px; }
.sidebar nav a {
  min-height: 52px;
  padding: 0 15px;
  border-radius: 16px;
  color: #c5bec1;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar nav a:hover { transform: translateX(2px); }
.sidebar nav a:hover,
.sidebar nav a.active { background: #312a2e; }
.sidebar nav a.active { box-shadow: inset 3px 0 #ce8294; }
.sidebar-logout { min-height: 48px; border-radius: 14px; }

.staff-main .button {
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 16px;
  font-weight: 780;
}
.staff-main .button.primary {
  background: linear-gradient(145deg, #201a1d, #100d0f);
  box-shadow: 0 10px 24px rgba(21, 15, 18, .17);
}
.staff-main .button.secondary {
  color: #75404d;
  background: var(--admin-rose-soft);
}
.staff-main .button.ghost {
  background: rgba(255,255,255,.82);
  border-color: rgba(56, 39, 45, .12);
}
.staff-main .button:hover { box-shadow: 0 12px 26px rgba(51, 33, 40, .12); }

.panel,
.booking-panel,
.service-admin-card,
.table-wrap,
.simple-admin-form,
.profile-form-card,
.history-card {
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  box-shadow: var(--admin-shadow);
}
.panel,
.booking-panel,
.service-admin-card { padding: clamp(24px, 3vw, 34px); }
.metric-grid { gap: 18px; }
.metric-grid article {
  min-height: 142px;
  padding: 26px;
  border: 1px solid var(--admin-line);
  border-radius: 26px;
  box-shadow: 0 12px 38px rgba(53, 34, 41, .045);
}
.metric-grid strong { color: var(--admin-ink); }
.admin-action-grid { gap: 18px; margin-bottom: 30px; }
.admin-action-grid a {
  min-height: 142px;
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 13px 38px rgba(52, 34, 40, .055);
}
.admin-action-grid i { width: 52px; height: 52px; border-radius: 17px; }
.admin-action-grid strong { color: var(--admin-ink); font-size: 1.04rem; }
.admin-action-grid .primary-action strong { color: #fff; }

.field-control {
  min-height: 54px;
  padding: 13px 15px;
  color: var(--admin-ink);
  background: #fbfafb;
  border: 1px solid rgba(62, 43, 50, .12);
  border-radius: 15px;
}
.field-control:hover { border-color: rgba(127, 73, 87, .3); }
.field-control:focus {
  background: #fff;
  border-color: #b9687c;
  box-shadow: 0 0 0 4px rgba(185, 104, 124, .12);
}
textarea.field-control { min-height: 104px; }
.simple-fields > label,
.two-fields > label,
.advanced-options label {
  color: #393135;
  font-size: .83rem;
  font-weight: 760;
}
.form-errors,
.errorlist {
  margin: 5px 0 0;
  padding: 0;
  color: #9c3f53;
  font-size: .79rem;
  list-style: none;
}
.simple-admin-form {
  max-width: 780px;
  padding: clamp(26px, 4vw, 42px);
}
.simple-admin-form .card-heading { margin-bottom: 30px; }
.simple-admin-form form { gap: 24px; }
.simple-fields { gap: 20px; }
.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-heading h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.025em; }
.card-heading p { margin: 4px 0 0; color: var(--admin-muted); font-size: .86rem; }
.card-icon,
.settings-feature-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #50474b;
  background: #f1edef;
  border-radius: 17px;
  font-size: 1.35rem;
  font-style: normal;
}
.card-icon.rose { color: #8e4d5d; background: #f7e8ec; }
.card-icon.green { color: #3f7051; background: #e9f3ec; }

.channel-switches,
.profile-switch-grid { gap: 12px; }
.channel-switches label,
.large-switch {
  min-height: 76px;
  padding: 16px 18px;
  background: #faf8f9;
  border-color: rgba(61, 42, 49, .09);
  border-radius: 18px;
}
.large-switch:hover,
.channel-switches label:hover { background: #f8f3f5; }
.channel-switches input[type="checkbox"],
.large-switch input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #ccc7ca;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.channel-switches input[type="checkbox"]::before,
.large-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.channel-switches input[type="checkbox"]:checked,
.large-switch input[type="checkbox"]:checked { background: #ad5b70; }
.channel-switches input[type="checkbox"]:checked::before,
.large-switch input[type="checkbox"]:checked::before { transform: translateX(20px); }
.channel-switches input[type="checkbox"]:focus-visible,
.large-switch input[type="checkbox"]:focus-visible { outline: 3px solid rgba(173,91,112,.25); outline-offset: 2px; }
.channel-switches input[type="checkbox"]:disabled,
.large-switch input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.advanced-options {
  overflow: hidden;
  background: #fbf9fa;
  border-color: var(--admin-line);
  border-radius: 19px;
}
.advanced-options summary { padding: 19px 20px; color: #554b50; }
.advanced-options summary::marker { color: var(--admin-rose); }

/* Profil klientky */
.client-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 34px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(213, 133, 153, .24), transparent 17rem),
    linear-gradient(145deg, #2b2327, #171315);
  border-radius: 30px;
  box-shadow: 0 20px 58px rgba(31, 20, 25, .16);
}
.profile-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #402a31;
  background: linear-gradient(145deg, #fff, #f2dce2);
  border-radius: 24px;
  font-size: 1.35rem;
  font-weight: 850;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.profile-identity { min-width: 0; }
.profile-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-title-row h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.profile-status { padding: 5px 10px; color: #bfb7ba; background: rgba(255,255,255,.1); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.profile-status.is-active { color: #bfe6cb; background: rgba(109, 178, 131, .18); }
.profile-identity p { display: flex; gap: 9px; flex-wrap: wrap; margin: 8px 0 0; color: #c8c0c3; }
.profile-metrics { display: flex; gap: 8px; }
.profile-metrics div {
  min-width: 94px;
  padding: 13px 15px;
  text-align: center;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
}
.profile-metrics strong { display: block; font-size: 1.3rem; }
.profile-metrics span { color: #bdb4b8; font-size: .68rem; }
.profile-form { display: grid; gap: 20px; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-form-card { padding: clamp(24px, 3vw, 32px); background: #fff; }
.profile-form-card .card-heading { margin-bottom: 26px; }
.profile-switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notification-card .large-switch { min-height: 94px; }
.profile-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px 14px 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(62,43,50,.1);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(48,31,37,.12);
  backdrop-filter: blur(18px);
}
.profile-save-bar p { margin: 0; color: var(--admin-muted); font-size: .84rem; }
.profile-save-bar .button { min-width: 180px; }
.history-card {
  overflow: hidden;
  padding: 28px;
  background: #fff;
}
.history-card .section-title { margin-bottom: 20px; }
.history-card .section-title h2 { margin-top: 5px; font-size: 1.45rem; }
.history-card .table-wrap { border: 1px solid var(--admin-line); border-radius: 18px; box-shadow: none; }
.table-action { color: #914d5e; font-weight: 800; }

/* Dostupné měsíce */
.month-page-head,
.month-quick-actions,
.simple-month-list { max-width: 1160px; }
.month-quick-actions { gap: 16px; margin-bottom: 28px; }
.month-quick-actions button {
  min-height: 88px;
  padding: 18px 24px;
  border-radius: 24px;
}
.month-quick-primary { background: linear-gradient(145deg, #251e22, #121012); box-shadow: 0 15px 35px rgba(29, 20, 24, .16); }
.month-quick-secondary { color: #74404d; background: linear-gradient(145deg, #f9edf0, #f2dde3); }
.month-quick-actions button span { width: 46px; height: 46px; border-radius: 15px; }
.simple-month-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.simple-month-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 22px;
  border-radius: 26px;
  box-shadow: 0 14px 42px rgba(52, 34, 40, .055);
}
.simple-month-card.is-published {
  background: linear-gradient(155deg, #fff 60%, #f3faf5);
  border-color: rgba(92, 142, 108, .2);
}
.month-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.month-calendar-mark {
  width: 62px;
  height: 64px;
  border-radius: 18px;
}
.month-card-name { display: block; flex: 1; }
.month-card-name h2 { min-width: 0; margin: 0; font-size: 1.3rem; letter-spacing: -.035em; }
.month-card-name p { min-height: 42px; margin: 7px 0 12px; color: var(--admin-muted); font-size: .82rem; }
.month-card-name > small { color: #625a5e; font-weight: 700; }
.month-card-action,
.month-card-action form { width: 100%; }
.month-card-action { margin-top: auto; }
.month-state { padding: 6px 10px; }

/* Nastavení */
.settings-page-head { margin-bottom: 30px; }
.settings-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1160px;
}
.settings-feature-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  box-shadow: var(--admin-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.settings-feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(53,34,41,.11); }
.settings-feature-card .settings-feature-icon { margin-bottom: 34px; }
.settings-feature-card.working-hours .settings-feature-icon { color: #7f4654; background: #f7e7eb; }
.settings-feature-card.exceptions .settings-feature-icon { color: #77613e; background: #f8f0df; }
.settings-feature-card.time-off .settings-feature-icon { color: #426457; background: #e9f2ed; }
.settings-kicker { color: var(--admin-muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.settings-feature-card h2 { margin: 7px 0 8px; font-size: 1.45rem; letter-spacing: -.035em; }
.settings-feature-card p { margin: 0; color: var(--admin-muted); font-size: .9rem; }
.settings-open { display: flex; align-items: center; gap: 8px; margin-top: auto; color: #703d4a; font-weight: 800; }
.settings-open i { font-style: normal; transition: transform .18s ease; }
.settings-feature-card:hover .settings-open i { transform: translateX(4px); }
.settings-advanced {
  max-width: 1160px;
  margin-top: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
}
.settings-advanced summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.settings-advanced summary::-webkit-details-marker { display: none; }
.settings-advanced summary > span:nth-child(2) { display: grid; }
.settings-advanced summary small { margin-top: 2px; color: var(--admin-muted); font-weight: 500; }
.settings-advanced summary > i { color: var(--admin-muted); font-style: normal; }
.settings-advanced > div { padding: 0 22px 22px 90px; }
.settings-advanced > div p { color: var(--admin-muted); }

@media (max-width: 1180px) {
  .simple-month-list,
  .settings-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-switch-grid { grid-template-columns: 1fr; }
  .notification-card .large-switch { min-height: 76px; }
  .client-profile-hero { grid-template-columns: auto 1fr; }
  .profile-metrics { grid-column: 1 / -1; }
  .profile-metrics div { flex: 1; }
}
@media (max-width: 1100px) {
  .sidebar { width: 88px; }
  .sidebar .brand span,
  .sidebar nav span,
  .sidebar-logout { display: none; }
  .sidebar nav a { justify-content: center; font-size: 1.18rem; }
  .staff-main { margin-left: 88px; padding-inline: 30px; }
}
@media (max-width: 900px) {
  .sidebar { width: 88px; }
  .staff-main { margin-left: 88px; padding-inline: 30px; }
}
@media (max-width: 650px) {
  .staff-main { margin-left: 0; padding: 26px 16px 108px; }
  .staff-head { margin-bottom: 25px; }
  .staff-head h1,
  .compact-head h1 { font-size: 2.25rem; }
  .staff-head p { font-size: .9rem; }
  .panel,
  .booking-panel,
  .service-admin-card,
  .simple-admin-form,
  .profile-form-card,
  .history-card { border-radius: 22px; }
  .simple-admin-form { padding: 24px 18px; }
  .simple-admin-form .card-heading { margin-bottom: 24px; }
  .card-heading { align-items: flex-start; }
  .card-icon,
  .settings-feature-icon { width: 46px; height: 46px; border-radius: 15px; }
  .channel-switches label,
  .large-switch { padding: 14px; }
  .client-profile-hero {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 20px;
    border-radius: 24px;
  }
  .profile-avatar { width: 58px; height: 58px; border-radius: 19px; font-size: 1rem; }
  .profile-identity p { font-size: .78rem; }
  .profile-metrics { width: 100%; overflow-x: auto; }
  .profile-metrics div { min-width: 82px; padding: 11px 9px; }
  .profile-form-card { padding: 22px 17px; }
  .profile-save-bar { bottom: 78px; align-items: stretch; flex-direction: column; padding: 14px; }
  .profile-save-bar p { display: none; }
  .profile-save-bar .button { width: 100%; }
  .history-card { padding: 22px 16px; }
  .month-quick-actions { gap: 10px; }
  .month-quick-actions button { min-height: 72px; border-radius: 20px; }
  .simple-month-list,
  .settings-feature-grid { grid-template-columns: 1fr; gap: 13px; }
  .simple-month-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 17px;
    border-radius: 22px;
  }
  .month-card-top { display: contents; }
  .month-calendar-mark { grid-row: 1; width: 56px; height: 58px; }
  .month-card-top .month-state { grid-column: 2; grid-row: 1; align-self: start; justify-self: start; }
  .month-card-name { grid-column: 1 / -1; }
  .month-card-name p { min-height: 0; margin-bottom: 8px; }
  .month-card-action { grid-column: 1 / -1; }
  .settings-feature-card { min-height: 225px; padding: 23px; border-radius: 24px; }
  .settings-feature-card .settings-feature-icon { margin-bottom: 23px; }
  .settings-advanced > div { padding: 0 18px 18px; }
}

/* Jednotný měsíční plánovač */
.month-card-action { display: grid; gap: 9px; }
.planner-head { margin-bottom: 24px; }
.planner-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(53,34,41,.045);
}
.planner-status-card > div { display: flex; align-items: center; gap: 13px; }
.planner-status-card p { margin: 0; color: var(--admin-muted); font-size: .84rem; }
.planner-status-card form { margin: 0; }
.planner-quick-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1160px;
  margin-bottom: 22px;
}
.planner-quick-bar form { display: contents; }
.planner-quick-bar button {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  color: #3c3236;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 19px;
  text-align: left;
  box-shadow: 0 9px 28px rgba(53,34,41,.04);
}
.planner-quick-bar button:hover { color: #743f4c; border-color: #e2c1ca; background: #fcf7f8; }
.planner-quick-bar button span {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #854858;
  background: #f7e8ec;
  border-radius: 13px;
  font-size: 1.05rem;
}
.planner-quick-bar button strong { line-height: 1.2; }
.planner-month-navigation {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  max-width: 1160px;
  margin-bottom: 12px;
  text-align: center;
}
.planner-month-navigation a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  font-size: 1.2rem;
}
.planner-month-navigation strong { font-size: 1.1rem; }
.planner-calendar {
  max-width: 1160px;
  padding: 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  box-shadow: var(--admin-shadow);
}
.planner-weekdays,
.planner-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.planner-weekdays { margin-bottom: 8px; }
.planner-weekdays span {
  padding: 6px;
  color: #81787c;
  text-align: center;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.planner-day { min-width: 0; }
.planner-day > button {
  width: 100%;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  color: var(--admin-ink);
  background: #fff;
  border: 1px solid rgba(61,42,49,.09);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 7px 20px rgba(53,34,41,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.planner-day > button:hover {
  transform: translateY(-2px);
  border-color: #d8a8b4;
  box-shadow: 0 13px 27px rgba(53,34,41,.08);
}
.planner-day header { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.planner-day header span { color: #8a8185; font-size: .67rem; font-weight: 800; }
.planner-day header strong { font-size: 1.25rem; }
.planner-hours { display: grid; gap: 2px; margin-top: 13px; color: #3d3438; font-size: .76rem; font-weight: 800; }
.planner-day-blocks { display: grid; gap: 3px; margin-top: 8px; }
.planner-day-blocks span {
  overflow: hidden;
  padding: 4px 6px;
  color: #774453;
  background: #f8e8ec;
  border-radius: 7px;
  font-size: .63rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-day > button > small { margin-top: auto; padding-top: 7px; color: #5f765f; font-size: .61rem; font-weight: 800; }
.planner-day.is-off > button { color: #7f787b; background: #f0edef; box-shadow: none; }
.planner-day.is-off .planner-hours { color: #8b8588; }
.planner-day.has-block:not(.is-off) > button { background: linear-gradient(160deg,#fff 65%,#fdf2f5); }
.planner-day.is-past > button { opacity: .62; }
.planner-day.outside { min-height: 154px; }

.planner-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 28px;
}
.planner-dialog > .eyebrow { display: block; margin: 4px 0 8px; }
.planner-dialog h2 { margin: 0 45px 22px 0; font-size: 1.7rem; letter-spacing: -.04em; }
.planner-dialog h3 { margin: 0 0 10px; font-size: 1rem; }
.planner-dialog label { display: grid; gap: 6px; color: #443a3e; font-size: .8rem; font-weight: 750; }
.planner-dialog label small { color: var(--admin-muted); font-weight: 500; }
.option-cards { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.option-cards legend,
.weekday-pills legend { margin-bottom: 9px; font-size: .82rem; font-weight: 850; }
.option-cards label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px;
  background: #faf8f9;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  cursor: pointer;
}
.option-cards label:has(input:checked) { background: #fbf1f4; border-color: #dca9b6; }
.option-cards input { width: 20px; height: 20px; accent-color: #a9566b; }
.option-cards label span { display: grid; }
.planner-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.planner-time-fields[hidden] { display: none; }
.day-schedule-form { padding-bottom: 22px; border-bottom: 1px solid var(--admin-line); }
.day-existing-blocks { padding: 22px 0; border-bottom: 1px solid var(--admin-line); }
.day-existing-blocks > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(61,42,49,.07);
}
.day-existing-blocks > div > span { flex: 1; display: grid; }
.day-existing-blocks small { color: var(--admin-muted); }
.day-existing-blocks button { color: #97465a; background: transparent; border: 0; font-size: .75rem; font-weight: 800; }
.planner-add-block { margin-top: 18px; overflow: hidden; background: #faf7f8; border: 1px solid var(--admin-line); border-radius: 18px; }
.planner-add-block summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.planner-add-block > form { display: grid; gap: 13px; padding: 0 18px 18px; }
.weekday-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; }
.weekday-pills legend { width: 100%; }
.weekday-pills label { display: block; cursor: pointer; }
.weekday-pills input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-pills span { display: block; padding: 9px 12px; background: #f1edef; border: 1px solid transparent; border-radius: 999px; font-size: .75rem; }
.weekday-pills input:checked + span { color: #7d4050; background: #f8e8ec; border-color: #ddb3bd; }
.compact-options { grid-template-columns: 1fr 1fr; }
.planner-action-dialog > form:not([method="dialog"]) { display: grid; gap: 12px; }
.conflict-dialog .warning-symbol { margin-bottom: 14px; }
.conflict-dialog > p { color: var(--admin-muted); }
.conflict-dialog ul { display: grid; gap: 7px; margin: 18px 0; padding: 0; list-style: none; }
.conflict-dialog li { display: grid; gap: 2px; padding: 11px 13px; background: #fbf0f2; border-radius: 12px; }
.conflict-dialog li span { color: var(--admin-muted); font-size: .78rem; }
.conflict-dialog > form { margin-bottom: 9px; }

/* Běžný pracovní týden */
.weekly-schedule-card {
  max-width: 900px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  box-shadow: var(--admin-shadow);
}
.weekly-schedule-list { display: grid; }
.weekly-schedule-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: 24px;
  min-height: 98px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--admin-line);
}
.weekly-day-toggle { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.weekly-day-toggle input {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #ccc7ca;
  border-radius: 999px;
}
.weekly-day-toggle input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.weekly-day-toggle input:checked { background: #ad5b70; }
.weekly-day-toggle input:checked::before { transform: translateX(20px); }
.weekly-day-toggle > span { display: grid; }
.weekly-day-toggle strong { font-size: 1rem; }
.weekly-day-toggle small { color: var(--admin-muted); }
.weekly-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; transition: opacity .18s ease; }
.weekly-time-fields label { display: grid; gap: 4px; color: var(--admin-muted); font-size: .7rem; font-weight: 800; }
.weekly-time-fields.is-disabled { opacity: .28; pointer-events: none; }
.weekly-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  background: #fbf8f9;
}
.weekly-save-bar p { margin: 0; color: var(--admin-muted); font-size: .82rem; }

@media (max-width: 1180px) {
  .planner-quick-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-calendar { padding: 13px; overflow-x: auto; }
  .planner-weekdays,
  .planner-grid { min-width: 760px; }
}
@media (max-width: 650px) {
  .planner-status-card { align-items: stretch; flex-direction: column; padding: 16px; }
  .planner-status-card > div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .planner-status-card .button { width: 100%; }
  .planner-quick-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .planner-quick-bar button { min-height: 96px; align-items: flex-start; flex-direction: column; padding: 13px; }
  .planner-quick-bar button span { width: 34px; height: 34px; }
  .planner-quick-bar button strong { font-size: .76rem; }
  .planner-calendar { padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .planner-weekdays { display: none; }
  .planner-grid { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .planner-day.outside { display: none; }
  .planner-day > button {
    min-height: 86px;
    display: grid;
    grid-template-columns: 52px minmax(85px, .8fr) 1.5fr;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 17px;
  }
  .planner-day header { display: grid; justify-items: center; justify-content: center; }
  .planner-day header strong { font-size: 1.35rem; }
  .planner-hours { margin: 0; }
  .planner-day-blocks { min-width: 0; margin: 0; }
  .planner-day > button > small { grid-column: 3; margin-top: -7px; padding: 0; }
  .planner-dialog { padding: 24px 17px; border-radius: 24px; }
  .planner-dialog h2 { font-size: 1.45rem; }
  .planner-time-fields,
  .compact-options { grid-template-columns: 1fr 1fr; }
  .weekly-schedule-card { border-radius: 22px; }
  .weekly-schedule-row { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .weekly-time-fields { padding-left: 0; }
  .weekly-save-bar { align-items: stretch; flex-direction: column; padding: 18px; }
  .weekly-save-bar p { font-size: .76rem; }
  .weekly-save-bar .button { width: 100%; }
}

/* Jednotné jemné přepínače v administraci */
.staff-shell {
  --toggle-width: 44px;
  --toggle-height: 26px;
  --toggle-knob: 20px;
  --toggle-offset: 3px;
  --toggle-off: #d9d6d8;
  --toggle-on: #d99bad;
  --toggle-focus: rgba(190, 116, 137, .2);
}
.staff-main .channel-switches input[type="checkbox"],
.staff-main .large-switch input[type="checkbox"],
.staff-main .weekly-day-toggle input[type="checkbox"] {
  position: relative;
  flex: 0 0 var(--toggle-width);
  width: var(--toggle-width);
  height: var(--toggle-height);
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--toggle-off);
  border: 1px solid rgba(53, 42, 47, .055);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(49, 37, 42, .055);
  cursor: pointer;
  outline: none;
  transition:
    background-color .24s cubic-bezier(.4, 0, .2, 1),
    border-color .24s cubic-bezier(.4, 0, .2, 1),
    box-shadow .24s cubic-bezier(.4, 0, .2, 1);
}
.staff-main .channel-switches input[type="checkbox"]::before,
.staff-main .large-switch input[type="checkbox"]::before,
.staff-main .weekly-day-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: var(--toggle-offset);
  left: var(--toggle-offset);
  width: var(--toggle-knob);
  height: var(--toggle-knob);
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(37, 25, 30, .2),
    0 1px 1px rgba(37, 25, 30, .08);
  transition:
    transform .24s cubic-bezier(.4, 0, .2, 1),
    box-shadow .24s cubic-bezier(.4, 0, .2, 1);
}
.staff-main .channel-switches input[type="checkbox"]:checked,
.staff-main .large-switch input[type="checkbox"]:checked,
.staff-main .weekly-day-toggle input[type="checkbox"]:checked {
  background: var(--toggle-on);
  border-color: rgba(143, 77, 96, .08);
  box-shadow: inset 0 1px 2px rgba(117, 59, 76, .06);
}
.staff-main .channel-switches input[type="checkbox"]:checked::before,
.staff-main .large-switch input[type="checkbox"]:checked::before,
.staff-main .weekly-day-toggle input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}
.staff-main .channel-switches input[type="checkbox"]:hover::before,
.staff-main .large-switch input[type="checkbox"]:hover::before,
.staff-main .weekly-day-toggle input[type="checkbox"]:hover::before {
  box-shadow:
    0 2px 5px rgba(37, 25, 30, .2),
    0 1px 1px rgba(37, 25, 30, .08);
}
.staff-main .channel-switches input[type="checkbox"]:focus-visible,
.staff-main .large-switch input[type="checkbox"]:focus-visible,
.staff-main .weekly-day-toggle input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px var(--toggle-focus),
    inset 0 1px 2px rgba(49, 37, 42, .055);
}
.staff-main .channel-switches input[type="checkbox"]:disabled,
.staff-main .large-switch input[type="checkbox"]:disabled,
.staff-main .weekly-day-toggle input[type="checkbox"]:disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: saturate(.55);
}
.staff-main .channel-switches input[type="checkbox"]:disabled::before,
.staff-main .large-switch input[type="checkbox"]:disabled::before,
.staff-main .weekly-day-toggle input[type="checkbox"]:disabled::before {
  box-shadow: 0 1px 2px rgba(37, 25, 30, .12);
}

@media (prefers-reduced-motion: reduce) {
  .staff-main .channel-switches input[type="checkbox"],
  .staff-main .large-switch input[type="checkbox"],
  .staff-main .weekly-day-toggle input[type="checkbox"],
  .staff-main .channel-switches input[type="checkbox"]::before,
  .staff-main .large-switch input[type="checkbox"]::before,
  .staff-main .weekly-day-toggle input[type="checkbox"]::before {
    transition: none;
  }
}
