/* Client portal polish */
.ui-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Product and inventory technical preview */
.preview-inline,.preview-badge{font-size:.72rem;font-weight:750;letter-spacing:.02em}.preview-inline{margin-inline-start:.45rem;opacity:.72}.product-app{width:min(1500px,100%);margin-inline:auto;padding:clamp(1rem,2vw,2rem)}.product-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:clamp(1.35rem,3vw,2.4rem);margin-bottom:1rem}.product-hero h1{margin:.1rem 0 .35rem}.product-hero p{margin:0}.preview-badge{display:inline-flex;align-items:center;min-height:36px;padding:.45rem .8rem;border-radius:999px;color:#943851;background:#fbe1e9;white-space:nowrap}.product-nav{display:flex;gap:.5rem;overflow-x:auto;padding:.5rem .15rem 1.1rem;scrollbar-width:none}.product-nav::-webkit-scrollbar{display:none}.product-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem 1rem;border:1px solid #e8dfe2;border-radius:999px;background:#fff;color:#221a1d;font-weight:700;white-space:nowrap;text-decoration:none;box-shadow:0 5px 18px rgba(43,26,32,.05)}.product-nav a:hover,.product-nav a:focus-visible{border-color:#d88ba1;background:#fff5f7}.product-panel{padding:clamp(1.2rem,2.4vw,2rem);margin-bottom:1.1rem}.product-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.product-kpi{display:flex;flex-direction:column;gap:.35rem;padding:1.25rem}.product-kpi span,.product-kpi small{color:#766a6e}.product-kpi strong{font-size:clamp(1.55rem,3vw,2.35rem);color:#171214}.product-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.section-heading h2{margin:0 0 .25rem}.section-heading p{margin:0;color:#75696d}.button-primary,.button-secondary,.button-quiet,.button-danger{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.7rem 1rem;border:0;border-radius:13px;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.button-primary{color:#fff;background:#bd4f70;box-shadow:0 8px 20px rgba(189,79,112,.2)}.button-secondary{color:#31272a;background:#f2ecee}.button-quiet{color:#9a3f5b;background:#fff4f7}.button-danger{color:#9b263e;background:#fff0f2}.inline-actions,.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}.form-actions{justify-content:flex-end;margin-top:1.4rem}.product-list-compact{display:grid;gap:.5rem}.product-list-compact a,.stats-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:50px;padding:.75rem;border-radius:13px;background:#faf7f8;color:#292124;text-decoration:none}.product-card-grid,.inventory-grid,.reservation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.product-card,.inventory-card,.reservation-card{min-width:0;border:1px solid #ebe3e5;border-radius:20px;background:#fff;box-shadow:0 9px 28px rgba(46,30,35,.06)}.product-card-main{display:flex;gap:1rem;padding:1rem;color:inherit;text-decoration:none}.product-thumb{display:grid;place-items:center;flex:0 0 78px;width:78px;aspect-ratio:1;border-radius:17px;background:#f6edf0;overflow:hidden}.product-thumb img,.product-gallery img{width:100%;height:100%;object-fit:cover}.product-thumb span{font-size:1.4rem;font-weight:800;color:#a8506a}.product-card h3,.inventory-card h3,.reservation-card h3{margin:.18rem 0}.product-card p,.inventory-card p,.reservation-card p{margin:.15rem 0;color:#74686c}.product-card-footer,.inventory-footer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.8rem 1rem;border-top:1px solid #f0e9eb}.status-pill{display:inline-flex;align-items:center;min-height:30px;padding:.35rem .65rem;border-radius:999px;background:#efecee;color:#675e61;font-size:.78rem;font-weight:750}.status-pill.is-success,.status-picked_up{color:#226744;background:#e1f2e8}.status-pill.is-promo{color:#97344f;background:#ffe3eb}.status-reserved{color:#73551b;background:#fff1cf}.status-prepared{color:#285b82;background:#e5f2fb}.status-cancelled,.status-not_picked_up{color:#8e394a;background:#f9e5e9}.product-filter{display:flex;align-items:end;flex-wrap:wrap;gap:.7rem;margin:0 0 1.15rem}.product-filter>input,.product-filter>select{min-height:44px;flex:1 1 180px}.product-filter label:not(.check-row){width:100%;font-weight:700}.check-row{display:flex;align-items:center;gap:.5rem;min-height:44px}.product-editor .form-field,.form-field{display:flex;flex-direction:column;gap:.38rem;min-width:0;margin-bottom:.85rem}.form-field label{font-weight:720}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea,.product-filter input,.product-filter select{inline-size:100%;max-inline-size:100%;box-sizing:border-box;border:1px solid #ded4d7;border-radius:13px;background:#fff;min-height:46px;padding:.7rem .8rem;font:inherit}.form-field textarea{min-height:110px}.form-field-wide{grid-column:1/-1}.product-form-grid,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 1rem}.form-errors,.errorlist{color:#9b263e}.errorlist{margin:.25rem 0;padding-left:1.1rem}.price-preview,.notice{padding:1rem;border-radius:15px;background:#faf2f5}.price-preview{display:flex;align-items:center;gap:1rem}.price-preview strong{font-size:1.35rem;color:#9c3c59}.price-preview small{margin-left:auto;color:#75696d}.product-detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem}.product-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.product-gallery img{aspect-ratio:1;border-radius:14px}.tag-row{display:flex;gap:.45rem;flex-wrap:wrap}.responsive-table{max-width:100%;overflow-x:auto}.responsive-table table{width:100%;border-collapse:collapse}.responsive-table th,.responsive-table td{text-align:left;padding:.75rem;border-bottom:1px solid #eee6e8;white-space:nowrap}.category-tree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.category-tree article{padding:1rem;border:1px solid #ebe3e5;border-radius:16px}.category-tree article>div{display:flex;justify-content:space-between;gap:.5rem}.category-tree ul{margin:.7rem 0 0;padding-left:1.2rem;color:#75696d}.inventory-card{display:flex;flex-direction:column;padding:1rem}.inventory-card.is-low{border-color:#d990a4;background:#fffafb}.stock-numbers,.stock-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin:1rem 0}.stock-numbers span,.stock-summary span{display:flex;flex-direction:column;padding:.65rem;border-radius:12px;background:#f8f4f5}.stock-numbers strong,.stock-summary strong{font-size:1.3rem}.inventory-footer{margin:auto -1rem -1rem}.reservation-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;color:inherit;text-decoration:none}.reservation-card>div:last-child{display:flex;flex-direction:column;text-align:right}.reservation-items{display:grid;gap:.7rem}.reservation-item-row{display:grid;grid-template-columns:2fr 1fr;gap:1rem;padding:1rem;border-radius:16px;background:#faf7f8}.detail-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.detail-list div{padding:.9rem;border-radius:14px;background:#faf7f8}.detail-list dt{color:#766a6e;font-size:.8rem}.detail-list dd{margin:.25rem 0 0;font-weight:750}.reservation-lines{display:grid;gap:.4rem;margin:1rem 0}.reservation-lines>div{display:flex;justify-content:space-between;gap:1rem;padding:.8rem;border-bottom:1px solid #eee6e8}.settings-placeholder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.settings-placeholder-grid article{padding:1rem;border-radius:16px;background:#faf7f8}.notice-info{margin-top:1rem;color:#6f394a;background:#fff0f4}.empty-state{padding:1rem;color:#766a6e}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.73rem;font-weight:800;color:#a84b67}
@media(max-width:1023px){.product-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card-grid,.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:700px){.product-app{padding:1rem .8rem calc(6.5rem + env(safe-area-inset-bottom))}.product-hero{align-items:flex-start;flex-direction:column}.preview-badge{white-space:normal}.section-heading{align-items:stretch;flex-direction:column}.section-heading .button-primary,.section-heading .button-secondary{width:100%}.product-kpis,.product-card-grid,.inventory-grid,.reservation-grid,.product-form-grid,.form-grid,.product-detail-grid,.category-tree,.detail-list,.settings-placeholder-grid{grid-template-columns:1fr}.product-kpi{padding:1rem}.product-card-main{align-items:center}.product-filter>*{flex-basis:100%}.product-filter .button{width:100%}.reservation-item-row{grid-template-columns:1fr}.reservation-card{align-items:flex-start}.stock-numbers,.stock-summary{gap:.3rem}.stock-numbers span,.stock-summary span{padding:.55rem .4rem}.price-preview{align-items:flex-start;flex-direction:column}.price-preview small{margin-left:0}.form-actions>*{flex:1 1 100%}.form-actions form .button{width:100%}.responsive-table{border:1px solid #ebe3e5;border-radius:14px}.product-list-compact a,.stats-row{align-items:flex-start;flex-direction:column}.reservation-lines>div{flex-direction:column}}

.visually-hidden {
  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;
}
.section-kicker-icon { display: inline-flex; align-items: center; gap: 6px; }
.section-kicker-icon .ui-icon { width: 15px; height: 15px; }
.client-booking-page {
  --rose: #c95f7f;
  --rose-dark: #9b405d;
  --blush: #f8e1e8;
  --blush-2: #fff5f8;
  --ink: #0b090a;
}

.owner-card { width: min(900px, 100%); max-width: 900px; }
.owner-stylist-list { display: grid; gap: 12px; margin: 24px 0; }
.owner-stylist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 18, 18, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(35, 24, 29, .05);
}
.owner-stylist-card > div { display: grid; gap: 3px; min-width: 0; }
.owner-stylist-card strong,
.owner-stylist-card span { overflow-wrap: anywhere; }
.owner-stylist-card form { margin: 0; }
.owner-add-stylist { margin-top: 18px; }
.owner-salon-contact {
  margin: 24px 0 6px;
  padding: 18px;
  text-align: left;
  background: #faf7f8;
  border: 1px solid rgba(62, 43, 50, .08);
  border-radius: 20px;
}
.owner-salon-contact-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.owner-salon-contact-heading > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; color: var(--rose-dark); background: var(--blush); border-radius: 13px; }
.owner-salon-contact-heading .ui-icon { width: 22px; height: 22px; }
.owner-salon-contact h2 { margin: 0; font-size: 1.08rem; }
.owner-salon-contact p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.owner-salon-contact form { margin: 0; }
.owner-salon-contact form > label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 750; }
.owner-salon-contact-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.owner-salon-contact-fields .button { min-height: 50px; }
.owner-archive { margin: 22px 0; text-align: left; border-top: 1px solid #e8dfe2; }
.owner-archive summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #62585c; font-weight: 750; cursor: pointer; }
.owner-archive summary span { min-width: 26px; padding: 3px 8px; text-align: center; background: #ece9ea; border-radius: 999px; font-size: .72rem; }
.owner-archive-list { display: grid; gap: 8px; }
.owner-archive-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #f5f3f4; border-radius: 14px; }
.owner-archive-list article > span { min-width: 0; display: grid; }
.owner-archive-list small,
.owner-archive-list time,
.owner-archive > p { color: var(--muted); font-size: .75rem; }
.owner-stylist-actions {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
  min-width: 0;
  padding-top: 2px;
}
.owner-stylist-actions > a,
.owner-stylist-actions > form,
.owner-stylist-actions .button {
  min-width: 0;
  width: 100%;
}
.owner-stylist-actions .button {
  min-height: 48px;
  padding: 11px 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Aktivace je sekundární provozní akce i tehdy, když šablona používá
   obecnou variantu primary pro její lepší viditelnost. */
.owner-stylist-actions .button.primary,
.owner-stylist-actions .button.secondary {
  background: var(--blush);
  color: var(--rose-dark);
  border-color: transparent;
  box-shadow: none;
}
.owner-stylist-actions .button.danger {
  background: #fbf0f2;
  color: var(--danger);
  border-color: #f0d9de;
  box-shadow: none;
}
.owner-stylist-form-card { width: min(680px, 100%); }
.owner-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.owner-toggle-field { grid-template-columns: 1fr auto; align-items: center; }
.owner-toggle-field label { grid-column: 1; }
.owner-toggle-field input { grid-column: 2; width: 24px; height: 24px; }
.workspace-logout-form { margin-top: 20px !important; }
.workspace-logout-button { color: #171316 !important; background: #fff !important; border-color: #d9cfd2 !important; min-height: 48px; }

.stylist-admin-list {
  display: grid;
  gap: 14px;
}

.stylist-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line, #eadfe2);
  border-radius: 20px;
  background: #fff;
}

.stylist-admin-identity {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.stylist-admin-identity strong { color: #171316; font-size: 1.05rem; }
.stylist-admin-identity small { color: #756b70; }

.stylist-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stylist-admin-actions form { flex: 1 1 230px; margin: 0; }
.stylist-admin-actions .button { min-height: 48px; white-space: normal; }

@media (max-width: 700px) {
  .stylist-admin-card { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .stylist-admin-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .stylist-admin-actions form { min-width: 0; }
}
.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.status-active { color: #24643d; background: #e7f4eb; }
.status-inactive { color: #666; background: #ececef; }

@media (max-width: 700px) {
  .owner-stylist-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .owner-stylist-card > .status-pill { justify-self: start; }
  .owner-stylist-actions { grid-template-columns: minmax(0, 1fr); }
  .owner-salon-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .owner-salon-contact-fields .button { width: 100%; }
  .owner-archive-list article { align-items: flex-start; flex-direction: column; }
  .owner-form-actions { display: grid; grid-template-columns: 1fr; }
}

.email-verification .resend-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, .08);
}
.email-verification .resend-panel p { margin-top: 0; text-align: center; }
.email-verification .button:disabled {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
}
.auth-secondary-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 22px;
}

.auth-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}

.auth-links .text-link,
.auth-card > .text-link {
  min-height: 44px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
}

@media (max-width: 430px) {
  .auth-links { grid-template-columns: 1fr; gap: 2px; }
}

.client-home-head { margin-bottom: 22px; }
.client-portal-push-status {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 18px;
  padding: 7px 11px;
  color: #356148;
  background: #eef7f1;
  border: 1px solid #dcecdf;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 750;
}
.client-portal-push-status[hidden] { display: none; }
.client-portal-push-status i { width: 8px; height: 8px; background: #4d9a6d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(77,154,109,.12); }
.portal-settings-link.button { min-height: 44px; color: #4f4549; font-weight: 650; }
.client-primary-action { min-width: min(100%, 240px); font-size: 1rem; }
.client-penalty-notice { margin: 0 0 22px; }
.client-penalty-notice p { margin-bottom: 0; }
.appointment-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.appointment-meta span { padding: 4px 9px; border-radius: 999px; background: #f4eff1; color: #62575c; font-size: .73rem; font-weight: 700; }
.client-home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.client-home-links a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-weight: 750; box-shadow: 0 8px 24px rgba(53,34,41,.04); }
.client-home-links i { font-style: normal; color: var(--rose-dark); }
.client-settings-head { margin-bottom: 22px; }
.client-settings-head .button { min-height: 44px; }
.client-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.client-settings-simple { max-width: 900px; margin-inline: auto; }
.client-setting-card { min-width: 0; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid rgba(98,72,81,.08); border-radius: 26px; box-shadow: 0 12px 34px rgba(53,34,41,.045); }
.client-setting-card.passkey-settings,
.client-setting-card.notification-settings { grid-column: 1 / -1; }
.client-setting-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.client-setting-heading > span { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blush); color: var(--rose-dark); font-size: 1.15rem; font-weight: 800; }
.client-setting-heading h2 { margin: 0; font-size: 1.2rem; }
.client-setting-heading p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.client-setting-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.client-setting-symbol { font-size: 1.25rem; font-weight: 780; }
.account-login-summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  padding: 13px 15px;
  background: #faf7f8;
  border: 1px solid #eee5e8;
  border-radius: 16px;
}
.account-login-summary > span { min-width: 0; display: grid; gap: 3px; }
.account-login-summary small { color: var(--muted); }
.compact-state { flex: 0 0 auto; padding: 5px 9px; color: #70686c; background: #ece9ea; border-radius: 999px; font-size: .73rem; }
.compact-state.is-on { color: #2f6949; background: #e6f3ea; }
.client-device-manager { margin-top: 14px; border-top: 1px solid #eee5e8; }
.client-device-manager summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  color: var(--rose-dark);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.client-device-manager summary::-webkit-details-marker { display: none; }
.client-device-manager[open] summary span { transform: rotate(90deg); }
.client-device-manager summary span { transition: transform .18s ease; }
.client-device-manager .device-list { margin-top: 4px; }
.push-card.compact-push-card { margin-top: 12px; padding: 0; background: transparent; border: 0; }
.compact-push-card .push-state { margin-top: 0; }
.compact-push-card .client-push-state-title { display: block; margin: 8px 2px 0; font-weight: 560; }
.client-settings-link-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 20px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.client-settings-link-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.client-settings-link-card small { color: var(--muted); overflow-wrap: anywhere; }
.client-settings-link-card > i { color: var(--rose-dark); font-style: normal; font-size: 1.15rem; }
.client-settings-link-card:hover,
.client-settings-link-card:focus-visible { transform: translateY(-2px); border-color: #ddbec6; box-shadow: 0 15px 36px rgba(53,34,41,.08); }
.client-settings-logout { max-width: 900px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #e9e2e4; text-align: center; }
.client-settings-logout .button { min-width: min(100%, 260px); }
.client-setting-card .preference-list,
.client-setting-card form { min-width: 0; }
.privacy-note { margin: 12px 2px 0; color: var(--muted); font-size: .73rem; opacity: .82; }
.device-remove-button,
.client-logout-button {
  color: #3d3035 !important;
  -webkit-text-fill-color: #3d3035;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
}
.device-remove-button { min-width: 88px; min-height: 44px !important; background: #fff !important; border-color: #ddd1d5 !important; }
.client-logout-button { background: #fff !important; border-color: #d9cdd1 !important; }
.push-card .client-push-toggle-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.email-preference-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #faf7f8;
  border: 1px solid #eee5e8;
  border-radius: 16px;
}
.client-push-toggle-row > span { min-width: 0; flex: 1; display: grid; gap: 3px; }
.client-push-toggle-row small { color: #665b5f; }
.client-push-toggle {
  flex: 0 0 56px;
  width: 56px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}
.client-push-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  display: block;
  background: #c9c5c7;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(42,31,36,.1);
  transition: background-color .22s ease, box-shadow .22s ease;
}
.client-push-toggle-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(44,31,36,.22);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.client-push-toggle[aria-checked="true"] .client-push-toggle-track { background: #d99aaa; }
.client-push-toggle[aria-checked="true"] .client-push-toggle-track i { transform: translateX(20px); }
.client-push-toggle:focus-visible { outline: 3px solid rgba(185,104,124,.28); outline-offset: 2px; }
.client-push-toggle:disabled { cursor: not-allowed; opacity: .58; }
.client-push-toggle-row.is-active { color: #274f39; background: #eef7f1; }
.client-push-toggle-row.is-denied { color: #75404c; background: #f7eff1; }
.client-push-state-title,
.push-device-note { width: 100%; margin: 0; color: #655a5e; font-size: .8rem; }
.client-push-state-title { font-weight: 720; }
.push-result:empty { display: none; }
.history-card { grid-template-columns: 70px 1fr; }

@media (max-width: 650px) {
  .client-home-head { align-items: center; }
  .client-home-head h1 { font-size: 2rem; }
  .portal-settings-link { flex: 0 0 auto; min-height: 44px; }
  .client-primary-action { width: 100%; min-height: 54px; }
  .client-settings-grid,
  .client-home-links { grid-template-columns: 1fr; }
  .client-setting-card.passkey-settings,
  .client-setting-card.notification-settings { grid-column: auto; }
  .client-setting-card { padding: 20px 17px; border-radius: 22px; }
  .client-setting-heading { align-items: flex-start; }
  .client-settings-link-card { min-height: 84px; padding: 16px; }
  .account-login-summary { align-items: flex-start; }
  .client-settings-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .client-settings-head > div { min-width: 0; }
  .client-settings-head .client-settings-back {
    justify-self: start;
    width: auto;
    padding-inline: 15px;
  }
  .client-appointment-card .appointment-actions { display: flex; gap: 9px; flex-wrap: wrap; }
  .client-appointment-card .appointment-actions .button { min-height: 44px; }
}

@media (max-width: 350px) {
  .client-home-head { display: grid; gap: 12px; }
  .portal-settings-link { width: 100%; }
  .client-setting-heading > span { flex-basis: 40px; width: 40px; height: 40px; }
  .device-list > div { align-items: stretch; flex-direction: column; }
  .device-list form, .device-remove-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .client-push-toggle-track,
  .client-push-toggle-track i { transition: none; }
}

/* Booking rules, attendance and penalties */
.rules-form { display: grid; gap: 20px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.rules-grid label { display: grid; gap: 8px; color: var(--admin-text, #201a1d); font-weight: 750; }
.rules-grid label small { display: block; color: var(--admin-muted, #766d71); font-weight: 500; }
.booking-warning { margin: 12px 0; padding: 15px 17px; color: #5d352d; background: #fff3ed; border: 1px solid #efd8ce; border-radius: 16px; }
.booking-warning p { margin: 4px 0 0; }
.client-rule-summary { display: grid; gap: 16px; }
.history-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.booking-block-card, .penalty-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--admin-line, #ebe4e7); border-radius: 20px; box-shadow: 0 10px 30px rgba(53, 34, 41, .045); }
.booking-block-card.is-blocked, .penalty-card.unpaid { background: #fff7f4; border-color: #ead0c7; }
.booking-block-card p, .penalty-card span { display: block; margin: 4px 0 0; color: var(--admin-muted, #766d71); }
.penalty-list { display: grid; gap: 10px; }
.attendance-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.attendance-actions button { min-height: 44px; padding: 8px 12px; color: #3c3035; background: #f4edef; border: 0; border-radius: 12px; font: inherit; font-weight: 750; cursor: pointer; }
.attendance-actions .plain-danger { color: #8b3e4b; background: #faecef; }
.attendance-panel { padding: 20px; background: linear-gradient(145deg, #fff, #fff8fa); border: 1px solid #eddfe4; border-radius: 22px; box-shadow: 0 12px 34px rgba(53, 34, 41, .07); }
.attendance-panel.is-compact { margin-top: 12px; padding: 13px; border-radius: 16px; box-shadow: none; }
.attendance-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.attendance-heading strong, .attendance-heading small { display: block; }
.attendance-heading small, .attendance-help { color: var(--admin-muted, #766d71); }
.attendance-help { margin: 10px 0 0; }
.attendance-actions button.is-selected { color: #fff; background: #181416; box-shadow: 0 5px 14px rgba(24, 20, 22, .18); }
.attendance-actions button.plain-danger.is-selected { color: #fff; background: #8b3e4b; }
.attendance-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.attendance-actions button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.pending-attendance { margin: 24px 0; }
.pending-attendance-list { display: grid; gap: 10px; }
.pending-attendance-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--admin-line, #ebe4e7); }
.pending-attendance-list article span { display: block; margin-top: 3px; color: var(--admin-muted, #766d71); }
.appointment-detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.appointment-summary-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.appointment-summary-card span, .appointment-summary-card strong { display: block; }
.appointment-summary-card span { margin-bottom: 5px; color: var(--admin-muted, #766d71); }
.appointment-summary-card .wide, .appointment-detail-actions { grid-column: 1 / -1; }
.appointment-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.penalty-card.is-voided { opacity: .72; background: #f4f2f3; }
.push-state { display: flex; align-items: flex-start; gap: 11px; margin-top: 12px; padding: 13px 14px; background: #f5f3f4; border-radius: 15px; }
.push-state-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #a6a0a3; }
.push-state strong, .push-state small { display: block; }
.push-state small { margin-top: 3px; color: var(--admin-muted, #766d71); }
.push-state.is-active { color: #235d43; background: #edf8f2; }
.push-state.is-active .push-state-dot { background: #45a578; box-shadow: 0 0 0 4px rgba(69, 165, 120, .13); }
.push-state.is-denied { color: #7b3b47; background: #fbf0f2; }
.push-state.is-denied .push-state-dot { background: #b95d70; }
.push-card [data-push-action][hidden] { display: none; }
.terms-editor { display: grid; gap: 9px; font-weight: 750; }
.terms-preview { margin-top: 16px; padding: 16px; background: #faf6f7; border-radius: 16px; }
.terms-preview p { margin: 5px 0 0; color: var(--admin-muted, #766d71); }
.terms-card { max-width: 760px; margin-inline: auto; }
.terms-content > p { color: #31282c; font-size: 1.02rem; line-height: 1.7; }
.terms-facts { display: grid; gap: 10px; margin-top: 20px; }
.terms-facts p { display: grid; gap: 4px; margin: 0; padding: 16px; background: #faf6f7; border-radius: 16px; }
.terms-facts span { color: #6f6569; line-height: 1.55; }
.terms-consent-form { display: grid; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #eadfe2; }
.terms-checkbox { min-height: 52px; display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e8dce0; border-radius: 16px; line-height: 1.45; cursor: pointer; }
.terms-checkbox input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: #bd7c8c; }
.terms-logout { max-width: 760px; margin: 12px auto; text-align: center; }
.booking-terms-note { margin: 12px 4px 0; color: #71676b; font-size: .86rem; line-height: 1.5; text-align: center; }
.portal-terms-link { min-height: 58px; display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 13px 16px; color: #241d20; background: #fff; border: 1px solid #eadfe2; border-radius: 17px; box-shadow: 0 8px 25px rgba(53,34,41,.045); }
.portal-terms-link span { width: 32px; height: 32px; display: grid; place-items: center; color: #8f5966; background: #f5e7eb; border-radius: 10px; }
.portal-terms-link i { margin-left: auto; font-style: normal; }
.penalty-alert { margin: 14px 0; padding: 15px; color: #65382f; background: #fff0e9; border: 1px solid #edcfc3; border-radius: 15px; }
.penalty-alert p { margin: 5px 0 0; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 16px; }
.async-slot-panel [data-slot-loading] { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #756d71; }
.async-slot-panel [data-slot-loading][hidden],
.async-slot-panel [data-slot-error][hidden],
.async-slot-panel [data-slot-content][hidden] { display: none; }
.slot-loader { width: 20px; height: 20px; border: 2px solid #ead9de; border-top-color: #a9566b; border-radius: 50%; animation: slot-spin .7s linear infinite; }
.slot-load-error { padding: 20px; text-align: center; background: #fff3f5; border-radius: 16px; }
.slot-load-error p { margin: 0 0 12px; color: #7f3d4b; }
@keyframes slot-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .rules-grid, .history-metrics { grid-template-columns: 1fr 1fr; }
  .booking-block-card, .penalty-card { align-items: stretch; flex-direction: column; }
  .booking-block-card .button, .penalty-card .button { width: 100%; }
  .attendance-actions.mobile { display: grid; grid-template-columns: 1fr 1fr; }
  .attendance-actions.mobile button:last-child { grid-column: 1 / -1; }
  .appointment-detail-grid, .appointment-summary-card { grid-template-columns: 1fr; }
  .appointment-summary-card .wide, .appointment-detail-actions { grid-column: auto; }
  .pending-attendance-list article { align-items: stretch; flex-direction: column; }
  .pending-attendance-list .button { width: 100%; }
  .attendance-actions { display: grid; grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr; }
}

.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)); }
.slot-grid form { display: block; min-width: 0; }
.slot-grid form .slot { width: 100%; height: 100%; }
.large-slots .slot {
  min-height: 56px;
  border-color: #dfd5d8;
  appearance: none;
  -webkit-appearance: none;
  color: #171315;
  -webkit-text-fill-color: #171315;
  font-size: 1rem;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(42, 28, 33, .04);
}
.large-slots .slot:hover,
.large-slots .slot:focus-visible,
.large-slots .slot.selected {
  background: #0b090a;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.large-slots .slot:disabled:not(.selected) {
  background: #f5f2f3;
  color: #6f676a;
  -webkit-text-fill-color: #6f676a;
  opacity: .72;
}
.booking-summary {
  max-width: 520px;
  padding: 24px;
  background: var(--blush-2);
  border: 1px solid #eadadd;
  border-radius: 18px;
}
.slot-grid + .booking-summary, [data-slot-content] .booking-summary { margin-top: clamp(16px, 3vw, 24px); }

.info-tip { position: relative; display: inline-flex; vertical-align: middle; margin-inline-start: 4px; }
.info-tip-trigger { width: 24px; height: 24px; padding: 0; border: 1px solid #d8cdd1; border-radius: 50%; background: #fff; color: #785c66; font-size: .75rem; font-weight: 850; line-height: 1; }
.info-tip-popover { position: absolute; z-index: 80; inset-inline-start: 50%; bottom: calc(100% + 8px); width: min(260px, calc(100vw - 32px)); padding: 10px 12px; border: 1px solid #e5d9dd; border-radius: 12px; background: #181416; color: #fff; box-shadow: 0 14px 34px rgba(24,20,22,.2); font-size: .78rem; font-weight: 550; line-height: 1.4; transform: translateX(-50%); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.info-tip.is-hovered .info-tip-popover,
.info-tip.is-open .info-tip-popover,
.info-tip-trigger:focus-visible + .info-tip-popover { visibility: visible; opacity: 1; }
.info-tip.is-dismissed .info-tip-trigger:focus-visible + .info-tip-popover { visibility: hidden; opacity: 0; }
.info-tip-trigger:focus-visible { outline: 3px solid rgba(190,98,126,.25); outline-offset: 2px; }

.penalty-gender-card .rules-grid { align-items: end; }
.penalty-list, .penalty-card { min-width: 0; }
.penalty-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.penalty-card > div { min-width: 0; display: grid; }

.simple-admin-form input[name="first_name"], .simple-admin-form input[name="last_name"] { padding-inline: 14px; }
.channel-switches label > input[type="checkbox"], .channel-switches label > span:last-child { margin-inline-start: auto; flex: 0 0 auto; }

@media (max-width: 520px) {
  .penalty-card { grid-template-columns: 1fr; }
  .penalty-card .button, .penalty-card form { width: 100%; }
  .info-tip-popover { position: fixed; inset-inline: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); width: auto; transform: none; }
}
.booking-summary h3 { margin: 8px 0 2px; font-size: 1.4rem; }
.booking-summary p { margin: 0 0 18px; color: var(--muted); }
.current-appointment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 20px 24px;
  color: #fff;
  background: #171315;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(23, 19, 21, .14);
}
.current-appointment-card span { display: grid; gap: 3px; }
.current-appointment-card small { color: #cfc6c9; }
.current-appointment-card strong { font-size: 1.08rem; }
.current-appointment-card time { font-size: 1.55rem; font-weight: 800; }
.reschedule-summary { max-width: 680px; }
.reschedule-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.reschedule-comparison article {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.reschedule-comparison article.new { border-color: #d7a8b4; background: #fff7f9; }
.reschedule-comparison small { color: var(--muted); }
.reschedule-comparison strong { color: #171315; }
.reschedule-comparison span { color: var(--rose-dark); font-size: 1.2rem; font-weight: 800; }
.reschedule-comparison > i { color: var(--rose-dark); font-style: normal; font-size: 1.4rem; }

.calendar-day-lock,
.client-delete-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(44, 32, 36, .04);
}
.calendar-day-lock-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.calendar-day-lock-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--rose-dark); border-radius: 14px; background: var(--blush); }
.calendar-day-lock-icon .ui-icon { width: 23px; height: 23px; }
.calendar-day-lock p { display: grid; margin: 0; }
.calendar-day-lock small,
.client-delete-card p { color: var(--muted); }
.calendar-day-lock.is-closed { border-color: #e1a9b9; background: #fff8fa; }
.calendar-day-lock form,
.client-delete-card form { flex: 0 0 auto; }
.client-delete-card button { min-height: 44px; }
.calendar-day-switch { min-width: 52px; min-height: 44px; display: grid; place-items: center; padding: 7px 4px; color: inherit; background: transparent; border: 0; border-radius: 14px; touch-action: manipulation; }
.calendar-day-switch-track { position: relative; width: 46px; height: 28px; display: block; background: var(--rose); border: 1px solid rgba(117,59,76,.08); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(117,59,76,.07); transition: background-color .22s ease, box-shadow .22s ease; }
.calendar-day-switch-track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(37,25,30,.24); transform: translateX(18px); transition: transform .22s ease; }
.calendar-day-switch[aria-checked="false"] .calendar-day-switch-track { background: #d9d6d8; box-shadow: inset 0 1px 2px rgba(49,37,42,.06); }
.calendar-day-switch[aria-checked="false"] .calendar-day-switch-track i { transform: translateX(0); }
.calendar-day-switch:focus-visible { outline: 3px solid rgba(201,95,127,.28); outline-offset: 2px; }
.calendar-day-switch:active .calendar-day-switch-track i { width: 22px; }
.client-delete-card { margin-top: 24px; }
.client-delete-card h2 { margin: 3px 0 5px; font-size: 1.15rem; }
.client-delete-card p { margin: 0; max-width: 720px; }

@media (max-width: 650px) {
  .staff-main.staff-booking-page { padding-inline: 8px; }
  .staff-booking-page .booking-panel { padding-inline: 4px; }
  .staff-booking-page .booking-section-heading,
  .staff-booking-page .month-switcher,
  .staff-booking-page .calendar-legend { margin-inline: 8px; }
  .staff-booking-page .booking-calendar { padding-inline: 0; }
  .calendar-day-lock { align-items: center; flex-direction: row; gap: 10px; padding: 14px; }
  .calendar-day-lock-copy { gap: 10px; }
  .calendar-day-lock-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .calendar-day-lock p { min-width: 0; }
  .calendar-day-lock strong { font-size: .9rem; }
  .calendar-day-lock small { font-size: .72rem; line-height: 1.35; }
  .calendar-day-lock form { width: auto; margin-left: auto; }
  .calendar-day-lock button { width: 52px; }
  .client-delete-card { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .client-delete-card form,
  .client-delete-card button { width: 100%; }
  .client-profile-hero .profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .client-profile-hero .profile-metrics div { min-width: 0; }
  .client-rule-summary .history-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .client-rule-summary .history-metrics div { min-width: 0; }
}

@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; }
  .current-appointment-card { margin-inline: 4px; padding: 17px 18px; }
  .current-appointment-card strong { font-size: .94rem; }
  .current-appointment-card time { font-size: 1.35rem; }
  .reschedule-comparison { grid-template-columns: 1fr; gap: 8px; }
  .reschedule-comparison > i { justify-self: center; transform: rotate(90deg); }
}

@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, .device-list { display: grid; gap: 10px; }
.push-card { display: grid; gap: 10px; }
.preference-row, .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, .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 { 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: var(--rose-dark);
  background: var(--blush);
  border-radius: 15px;
  font-style: normal;
  font-size: 1.35rem;
}
.admin-action-grid i svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.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: var(--rose); background: var(--blush-2); }
.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: var(--rose-dark); font-style: normal; font-weight: 900; }
.service-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: var(--rose-dark); background: var(--blush); border-radius: 14px; }
.service-symbol .ui-icon { width: 22px; height: 22px; }
.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: minmax(280px, 2fr) minmax(0, 2fr) auto; align-items: end; gap: 12px; }
.override-form label { display: grid; gap: 5px; color: #372e31; font-size: .8rem; font-weight: 700; }
.override-native-pair { min-width: 0; }

.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-native-pair { grid-column: 1 / -1; }
  .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: var(--rose);
  --admin-rose-soft: var(--blush);
  --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: 16px;
  padding: 0 12px;
}
.sidebar nav {
  min-height: 0;
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar nav a {
  min-height: 44px;
  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 var(--rose); }
.sidebar-logout { min-height: 48px; border-radius: 14px; }

.time-block-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 22px;
}
.time-block-form-card {
  position: sticky;
  top: 24px;
}
.simple-staff-form,
.time-block-list {
  display: grid;
  gap: 12px;
}
.form-row-two {
  display: grid;
}
.time-block-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(53, 34, 41, .045);
}
.time-block-card-icon,
.settings-shortcuts span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: var(--blush);
  border-radius: 14px;
  font-size: 1.15rem;
}
.settings-shortcuts .ui-icon,
.time-block-card-icon .ui-icon { width: 23px; height: 23px; }
.time-block-card h2 { margin: 0; font-size: 1rem; }
.time-block-card p { margin: 3px 0 0; color: var(--admin-muted); font-size: .82rem; }
.time-block-actions { display: flex; gap: 8px; }
.settings-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.settings-shortcuts a {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  box-shadow: 0 9px 28px rgba(53, 34, 41, .04);
}

@media (max-width: 1023px) {
  .time-block-layout { grid-template-columns: 1fr; }
  .time-block-form-card { position: static; }
  .time-block-card { grid-template-columns: 44px minmax(0, 1fr); padding: 15px; }
  .time-block-actions { grid-column: 1 / -1; }
  .time-block-actions .button { flex: 1; }
  .time-block-when { display: flex; flex-wrap: wrap; gap: 2px 5px; }
  .time-block-when time { white-space: nowrap; }
}
@media (max-width: 650px) {
  .settings-shortcuts { grid-template-columns: 1fr; }
}

.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); }
.metric-grid .metric-card-link {
  position: relative;
  min-height: 142px;
  padding: 26px;
  display: grid;
  color: inherit;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 26px;
  box-shadow: 0 12px 38px rgba(53, 34, 41, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-grid .metric-card-link > i {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #a46b79;
  font-style: normal;
  font-size: 1rem;
}
.metric-grid .metric-card-link:hover,
.metric-grid .metric-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: #d8a8b4;
  box-shadow: 0 16px 40px rgba(53, 34, 41, .08);
}
.metric-grid .metric-card-link strong {
  margin: 7px 0;
  font-size: 2.4rem;
  letter-spacing: -.04em;
}
.metric-grid .metric-card-link small { color: var(--muted); }
.metric-grid .metric-card-link span { color: var(--rose-dark); font-size: .82rem; }
.operational-changes { margin-bottom: 24px; }
.review-change-list { display: grid; gap: 10px; }
.review-change-card {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 19px;
}
.review-change-card > div { min-width: 0; display: grid; gap: 4px; }
.review-change-card span { color: var(--admin-muted); font-size: .8rem; }
.review-change-card .touch-action { justify-content: flex-start; width: max-content; }
.smart-day-fields.is-disabled { opacity: .48; }
.input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.input-with-unit b { color: var(--admin-muted); font-size: .8rem; }
.calendar-event.is-now,
.calendar-event.is-next { position: relative; scroll-margin: 120px 0; }
.calendar-event.is-now { background: #f6dce3; border-left-color: #a94f67; box-shadow: 0 8px 22px rgba(132, 70, 86, .13); }
.calendar-event.is-next { background: #fff2f5; border-left-color: #c77f91; }
.live-appointment-label {
  width: max-content;
  margin-bottom: 3px;
  padding: 3px 8px;
  color: #73384a !important;
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  font-size: .68rem !important;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.back-to-now {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
  z-index: 24;
  min-height: 48px;
  padding: 11px 18px;
  color: #fff;
  background: #171316;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(22, 16, 19, .22);
  font-weight: 780;
}
.back-to-now[hidden] { display: none; }
.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: var(--rose-dark); background: var(--blush); }
.card-icon .ui-icon,
.settings-feature-icon .ui-icon { width: 25px; height: 25px; }
.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; }
.settings-notification-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.settings-notification-card {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(66, 47, 54, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(53, 34, 41, .08);
}
.settings-notification-card .card-heading { margin-bottom: 22px; }
.notification-global-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-notification-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}
.settings-notification-save p { margin: 0; color: var(--admin-muted); }
.settings-notification-note {
  margin: 18px 0 0;
  color: var(--admin-muted);
  font-size: .88rem;
}
.notification-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  overflow-x: auto;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--admin-line);
  border-radius: 16px;
}
.notification-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--admin-muted);
  border-radius: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.notification-filters a.active { color: #241b1f; background: #fff; box-shadow: 0 6px 18px rgba(53,34,41,.08); }
.notification-filters a span { min-width: 22px; padding: 2px 6px; text-align: center; background: #f2e8eb; border-radius: 999px; font-size: .72rem; }
@media (max-width: 700px) {
  .notification-global-grid { grid-template-columns: 1fr; }
  .settings-notification-save { align-items: stretch; flex-direction: column; }
  .settings-notification-save .button { width: 100%; }
}
.profile-save-bar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 14px 16px 14px 22px;
  background: #fff;
  border: 1px solid rgba(62,43,50,.1);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(48,31,37,.06);
}
.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 .settings-feature-icon,
.settings-feature-card.working-hours .settings-feature-icon,
.settings-feature-card.exceptions .settings-feature-icon,
.settings-feature-card.time-off .settings-feature-icon { color: var(--rose-dark); background: var(--blush); }
.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: var(--rose-dark); 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 { 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: var(--rose-dark); border-color: var(--rose); background: var(--blush-2); }
.planner-quick-bar button span {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: var(--blush);
  border-radius: 13px;
  font-size: 1.05rem;
}
.planner-quick-bar button span .ui-icon { width: 20px; height: 20px; }
.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 { min-width: 0; display: grid; margin: 12px 0 16px; }
.planner-time-fields > label { min-width: 0; }
.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 { min-width: 0; display: grid; 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; }
  .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%; }
}
/* Passkeys, penále v kalendáři a diagnostika push */
.passkey-login { margin: 18px 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #877b80; font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #eadfe2; }
.passkey-state { display: grid; gap: 4px; margin-bottom: 14px; padding: 15px; background: #f8f2f4; border-radius: 16px; }
.passkey-state span { color: #71676b; }
.penalty-badge { min-height: 34px; width: fit-content; margin-top: 8px; padding: 6px 10px; color: #743744; background: #f9e3e7; border: 1px solid #e8bec7; border-radius: 999px; font: inherit; font-size: .75rem; font-weight: 850; cursor: pointer; }
.unpaid-penalty-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; color: #5f3039; background: #fff2f4; border-color: #eccbd2; }
.push-diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.push-device-card { min-width: 0; display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--admin-line, #ebe4e7); border-radius: 20px; box-shadow: 0 9px 28px rgba(53,34,41,.05); }
.push-device-card.is-inactive { background: #f6f4f5; box-shadow: none; }
.push-device-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.push-device-card header span, .push-device-card dt { color: var(--admin-muted, #766d71); }
.push-device-card header div > span { display: block; margin-top: 3px; }
.push-device-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.push-device-card dl div { min-width: 0; }
.push-device-card dt { font-size: .72rem; }
.push-device-card dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.push-device-last-message { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--admin-line, #ebe4e7); }
.push-device-last-message .status { margin-left: 4px; }
.push-test-form { margin-top: auto; padding-top: 4px; }
.push-test-button { min-height: 54px !important; box-shadow: 0 10px 24px rgba(26,18,22,.17); }
.push-device-inactive-note { display: grid; gap: 2px; margin: auto 0 0; padding: 13px 15px; color: #71696c; background: #ebe8e9; border-radius: 14px; }
.push-device-inactive-note span { font-size: .78rem; }
@media (max-width: 760px) {
  .push-diagnostic-grid { grid-template-columns: 1fr; }
  .unpaid-penalty-summary { align-items: stretch; flex-direction: column; }
}
@media (max-width: 420px) {
  .push-device-card dl { grid-template-columns: 1fr; }
  .push-device-last-message { grid-column: auto; }
}

/* 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: var(--rose);
  --toggle-focus: rgba(201, 95, 127, .22);
}
.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;
  }
}

/* Etapa 1: úplná dotyková navigace a vždy dostupné odhlášení */
.sidebar-logout-form {
  width: 100%;
  margin-top: auto;
}
.sidebar-logout {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  color: #f0e8eb;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}
.sidebar nav a > .ui-icon,
.sidebar-logout > .ui-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #db829c;
}
.sidebar nav a.active > .ui-icon,
.sidebar nav a:hover > .ui-icon,
.sidebar-logout:hover > .ui-icon,
.sidebar-logout:focus-visible > .ui-icon { color: #f2a7bb; }
.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  color: #fff;
  background: rgba(206, 130, 148, .2);
}

.staff-mobile-menu {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 104px);
  margin: auto auto calc(72px + env(safe-area-inset-bottom));
  padding: 22px;
  overflow-y: auto;
  color: var(--admin-ink);
  background: rgba(255, 253, 254, .98);
  border: 1px solid rgba(62, 43, 50, .1);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(35, 23, 29, .25);
}
.staff-mobile-menu::backdrop {
  background: rgba(25, 19, 22, .48);
  backdrop-filter: blur(6px);
}
.staff-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.staff-mobile-menu-head h2 {
  margin: 3px 0 0;
  font-size: 1.7rem;
  letter-spacing: -.04em;
}
.staff-mobile-menu-head form {
  margin: 0;
}
.staff-mobile-menu-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #51484c;
  background: #f0ebed;
  border: 0;
  border-radius: 50%;
  font-size: 1.45rem;
}
.staff-mobile-menu-close .ui-icon { width: 21px; height: 21px; }
.staff-mobile-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.staff-mobile-menu-links a {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: #f8f4f6;
  border: 1px solid rgba(62, 43, 50, .07);
  border-radius: 17px;
}
.staff-mobile-menu-links a:active {
  background: #f1e2e7;
  transform: scale(.985);
}
.staff-mobile-menu-links a > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: var(--blush);
  border-radius: 11px;
}
.staff-mobile-menu-links a > span .ui-icon { width: 20px; height: 20px; }
.staff-mobile-menu-links strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .86rem;
}
.staff-mobile-logout-form {
  margin: 14px 0 0;
}
.staff-mobile-logout {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--rose-dark);
  background: var(--blush);
  border: 1px solid #efcbd6;
  border-radius: 17px;
  font-weight: 800;
}
.staff-mobile-logout .ui-icon { width: 21px; height: 21px; }

@media (min-width: 1024px) and (max-width: 1100px) {
  .sidebar {
    width: 252px;
  }
  .sidebar .brand span {
    display: grid;
  }
  .sidebar nav span {
    display: inline;
  }
  .sidebar nav a {
    justify-content: flex-start;
    font-size: .9rem;
  }
  .sidebar-logout {
    display: flex;
  }
  .staff-main {
    margin-left: 252px;
    padding-inline: 30px;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
  .staff-main {
    margin-left: 0;
    padding: 30px 24px 108px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(45, 31, 37, .06);
    backdrop-filter: blur(18px);
  }
  .bottom-nav > a,
  .bottom-nav > button {
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 3px;
    color: #625c60;
    background: transparent;
    border: 0;
    font-size: 1.08rem;
  }
  .bottom-nav > a.active {
    color: var(--rose-dark);
  }
  .bottom-nav .ui-icon { width: 21px; height: 21px; }
  .bottom-nav > a span,
  .bottom-nav > button span {
    font-size: .62rem;
    font-weight: 700;
  }
  .bottom-nav > .new {
    width: 50px;
    height: 50px;
    min-height: 50px;
    margin: -17px auto 0;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  }
  .bottom-nav > .new .ui-icon { width: 27px; height: 27px; }
}

@media (max-width: 650px) {
  .staff-main {
    padding: 26px 16px 108px;
  }
  .staff-mobile-menu {
    padding: 18px;
    border-radius: 24px;
  }
  .staff-mobile-menu-links {
    gap: 8px;
  }
  .staff-mobile-menu-links a {
    min-height: 56px;
    padding: 8px 9px;
  }
  .staff-mobile-menu-links a > span {
    width: 31px;
    height: 31px;
  }
  .staff-mobile-menu-links strong {
    font-size: .79rem;
  }
}

/* Etapa 2: pohodlné dotykové plochy bez změny vizuální hierarchie */
.staff-main .touch-action {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 10px;
  touch-action: manipulation;
}
.staff-main .touch-action:active {
  background: rgba(185, 104, 124, .12);
}
.staff-main a:focus-visible,
.staff-main button:focus-visible,
.staff-main summary:focus-visible,
.bottom-nav a:focus-visible,
.bottom-nav button:focus-visible {
  outline: 3px solid rgba(185, 104, 124, .28);
  outline-offset: 2px;
}

.segmented a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.calendar-event-actions {
  gap: 6px;
  flex-wrap: wrap;
}
.calendar-event-actions a,
.calendar-event-actions button {
  min-width: 44px;
  min-height: 44px;
}
.calendar-event-actions .plain-danger {
  padding: 7px 6px;
  text-align: center;
}
.table-wrap .table-action {
  min-height: 44px;
  white-space: normal;
}
.staff-main .dialog-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  touch-action: manipulation;
}
.day-existing-blocks form {
  margin: 0;
}
.day-existing-blocks button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 10px;
  touch-action: manipulation;
}
.weekday-pills span {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.legacy-messages summary,
.advanced-options summary,
.override-booking summary,
.planner-add-block summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

/* Přepínač zůstává kompaktní, aktivní je celý popsaný řádek. */
.channel-switches label,
.large-switch,
.weekly-day-toggle {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.channel-switches label:active,
.large-switch:active,
.weekly-day-toggle:active {
  background: #f4ecef;
}
.channel-switches label:has(input:focus-visible),
.large-switch:has(input:focus-visible),
.weekly-day-toggle:has(input:focus-visible) {
  outline: 3px solid rgba(185, 104, 124, .22);
  outline-offset: 2px;
}

/* Hover je jen doplněk; stejná odezva existuje pro klávesnici a dotyk. */
.admin-action-grid a:focus-visible,
.choice-card:focus-visible,
.settings-feature-card:focus-visible,
.planner-day > button:focus-visible,
.planner-quick-bar button:focus-visible {
  transform: translateY(-2px);
  border-color: #d8a8b4;
  box-shadow: 0 14px 32px rgba(52, 34, 40, .09);
}
.choice-card:active,
.settings-feature-card:active,
.planner-day > button:active,
.planner-quick-bar button:active {
  transform: scale(.99);
}

@media (max-width: 1023px) {
  .back-to-now {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
    min-height: 48px;
  }
  .review-change-card { align-items: stretch; flex-direction: column; }
  .review-change-card form,
  .review-change-card .button { width: 100%; }
  .staff-main {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

/* Etapa 3: mobilní kalendář a datové karty */
.mobile-week-switcher,
.mobile-record-list {
  display: none;
}
.mobile-week-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mobile-week-stepper button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #75404d;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  font-size: 1.15rem;
}
.mobile-week-stepper button:disabled {
  opacity: .32;
}
.mobile-week-stepper strong {
  min-width: 0;
  text-align: center;
  font-size: .96rem;
}
.mobile-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}
.mobile-week-days button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 5px 2px;
  color: #746c70;
  background: #f1edef;
  border: 1px solid transparent;
  border-radius: 13px;
  touch-action: manipulation;
}
.mobile-week-days button span {
  font-size: .59rem;
  font-weight: 800;
  text-transform: uppercase;
}
.mobile-week-days button strong {
  font-size: .96rem;
}
.mobile-week-days button[aria-selected="true"] {
  color: #fff;
  background: #211b1e;
  border-color: #211b1e;
  box-shadow: 0 7px 18px rgba(35, 25, 29, .16);
}

.mobile-record-list {
  gap: 11px;
}
.mobile-record-card {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  box-shadow: 0 9px 28px rgba(53, 34, 41, .045);
}
.mobile-record-card > header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mobile-record-card > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.mobile-record-card time,
.mobile-record-card .mobile-record-title {
  color: #282124;
  font-weight: 800;
}
.mobile-record-title {
  justify-content: flex-start !important;
  margin: -7px 0;
  padding-inline: 0 !important;
}
.mobile-record-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.mobile-record-card dl > div {
  display: grid;
  grid-template-columns: minmax(86px, .75fr) minmax(0, 1.25fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(61, 42, 49, .07);
}
.mobile-record-card dt {
  color: var(--admin-muted);
  font-size: .72rem;
  font-weight: 750;
}
.mobile-record-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
  font-weight: 680;
  text-align: right;
}
.mobile-record-error {
  margin: 0;
  padding: 10px 12px;
  color: #8b3e50;
  background: #f9e9ed;
  border-radius: 12px;
  overflow-wrap: anywhere;
  font-size: .78rem;
}
.legacy-messages {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .responsive-desktop-table {
    display: none;
  }
  .mobile-record-list {
    display: grid;
  }
  .history-card .mobile-record-list {
    margin-top: 4px;
  }
}

@media (max-width: 1023px) {
  .mobile-week-switcher:not([hidden]) {
    display: block;
    margin-bottom: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    box-shadow: 0 9px 28px rgba(53, 34, 41, .04);
  }
  .calendar-grid.mode-week[data-mobile-week-calendar] {
    min-width: 0;
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }
  .calendar-grid.mode-week[data-mobile-week-calendar] .calendar-day {
    min-height: 260px;
    padding: 16px;
  }
  .calendar-grid.mode-week[data-mobile-week-calendar] .calendar-event {
    padding: 13px;
    font-size: .84rem;
  }
  .calendar-grid.mode-week[data-mobile-week-calendar] .calendar-event-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .mobile-record-card {
    padding: 15px;
    border-radius: 18px;
  }
}

@media (max-width: 1023px) {
  .staff-shell {
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .staff-main {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: clip;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .bottom-nav {
    position: relative;
    inset: auto;
    grid-row: 2;
  }
  .calendar-grid.mode-week[data-mobile-week-calendar] > .calendar-day[hidden] {
    display: none;
  }
}
.staff-shell + .public-footer { display: none; }

/* Kompaktní měsíční kalendář pro telefon a tablet. */
.mobile-month-calendar {
  display: none;
}

.calendar-period-navigation,
.calendar-month-navigation {
  max-width: 620px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.calendar-period-navigation a,
.calendar-month-navigation a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(53, 34, 41, .04);
  font-size: 1.25rem;
  font-weight: 800;
}
.calendar-period-navigation strong,
.calendar-month-navigation strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1.25rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 0 0 14px;
}
.admin-month-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-muted);
  font-size: .72rem;
  font-weight: 720;
}
.admin-month-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa4a7;
}
.admin-month-legend i.available { background: #5b916f; }
.admin-month-legend i.limited { background: #c9853e; }
.admin-month-legend i.full { background: #b75b6c; }
.mobile-month-summary { display: none; }

@media (max-width: 1100px) {
  .calendar-grid.mode-month {
    display: none;
  }
  .mobile-month-calendar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 4px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(53, 34, 41, .045);
  }
  .mobile-month-weekdays,
  .mobile-month-days {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }
  .mobile-month-weekdays {
    margin-bottom: 6px;
  }
  .mobile-month-weekdays span {
    min-width: 0;
    padding-block: 3px;
    color: #746c70;
    font-size: .58rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    letter-spacing: .035em;
  }
  .mobile-month-day {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 3px;
    overflow: hidden;
    color: #211b1e;
    background: #f6f5f5;
    border: 1px solid transparent;
    border-radius: 11px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-month-day strong {
    font-size: clamp(.78rem, 3.5vw, .94rem);
    line-height: 1;
  }
  .mobile-month-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa4a7;
  }
  .mobile-month-day small {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    padding-inline: 3px;
    color: #fff;
    background: #282124;
    border-radius: 999px;
    font-size: .54rem;
    font-weight: 850;
    line-height: 1;
  }
  .mobile-month-day.status-available {
    background: #edf6f0;
    border-color: #d7e9dc;
  }
  .mobile-month-day.status-available .mobile-month-status {
    background: #5b916f;
  }
  .mobile-month-day.status-limited {
    background: #fff4e8;
    border-color: #f1ddc2;
  }
  .mobile-month-day.status-limited .mobile-month-status {
    background: #c9853e;
  }
  .mobile-month-day.status-full {
    background: #faecef;
    border-color: #eed3d9;
  }
  .mobile-month-day.status-full .mobile-month-status {
    background: #b75b6c;
  }
  .mobile-month-day.status-closed {
    color: #80797c;
    background: #f0eeee;
  }
  .mobile-month-day.is-outside {
    opacity: .38;
    background: #f7f6f6;
  }
  .mobile-month-day.is-selected {
    outline: 2px solid #bd7c8c;
    outline-offset: -2px;
  }
  .mobile-month-day.is-today::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid #201a1d;
    border-radius: 9px;
    pointer-events: none;
  }
  .mobile-month-day:focus-visible {
    outline: 3px solid rgba(183, 119, 133, .45);
    outline-offset: 1px;
  }
  .calendar-period-navigation,
  .calendar-month-navigation {
    max-width: none;
    margin-bottom: 10px;
  }
  .calendar-period-navigation strong,
  .calendar-month-navigation strong { font-size: 1.1rem; }
  .admin-month-legend { gap: 7px 11px; }
  .mobile-month-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(53, 34, 41, .045);
  }
  .mobile-month-summary h2 { margin: 2px 0; font-size: 1rem; }
  .mobile-month-summary p { margin: 0; color: var(--admin-muted); font-size: .76rem; }
  .mobile-month-summary .button { min-height: 44px; padding: 9px 13px; white-space: nowrap; }
}

/* Mobilní dotažení formulářů a jednotný kontrakt přepínačů. */
:root {
  --ui-toggle-width: 46px;
  --ui-toggle-height: 28px;
  --ui-toggle-knob: 20px;
  --ui-toggle-offset: 3px;
  --ui-toggle-travel: 18px;
  --ui-toggle-off: #d9d6d8;
  --ui-toggle-on: var(--rose, #c95f7f);
  --ui-toggle-focus: rgba(201, 95, 127, .24);
}

.calendar-day-switch-track,
.client-push-toggle-track {
  width: var(--ui-toggle-width);
  height: var(--ui-toggle-height);
  background: var(--ui-toggle-off);
}
.calendar-day-switch-track i,
.client-push-toggle-track i {
  top: var(--ui-toggle-offset);
  left: var(--ui-toggle-offset);
  width: var(--ui-toggle-knob);
  height: var(--ui-toggle-knob);
  transform: translateX(0);
}
.calendar-day-switch[aria-checked="true"] .calendar-day-switch-track,
.client-push-toggle[aria-checked="true"] .client-push-toggle-track {
  background: var(--ui-toggle-on);
  border-color: rgba(117, 59, 76, .08);
}
.calendar-day-switch[aria-checked="true"] .calendar-day-switch-track i,
.client-push-toggle[aria-checked="true"] .client-push-toggle-track i {
  transform: translateX(var(--ui-toggle-travel));
}
.calendar-day-switch[aria-checked="false"] .calendar-day-switch-track {
  background: var(--ui-toggle-off);
}
.calendar-day-switch[aria-checked="false"] .calendar-day-switch-track i {
  transform: translateX(0);
}

.staff-shell {
  --toggle-width: var(--ui-toggle-width);
  --toggle-height: var(--ui-toggle-height);
  --toggle-knob: var(--ui-toggle-knob);
  --toggle-offset: var(--ui-toggle-offset);
  --toggle-off: var(--ui-toggle-off);
  --toggle-on: var(--ui-toggle-on);
  --toggle-focus: var(--ui-toggle-focus);
}
.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(var(--ui-toggle-travel));
}

/* Paired field visual contract: start */
.paired-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  border: 0;
}
.paired-fields > * {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  border: 0;
}
.paired-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
  margin: 0;
}
.paired-fields input:not([type="checkbox"]):not([type="radio"]),
.paired-fields select {
  position: static;
  display: block;
  inline-size: 100%;
  width: 100%;
  min-inline-size: 0;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  margin: 0 !important;
  box-sizing: border-box;
  border: 1px solid rgba(84, 66, 74, .2);
  border-radius: 15px;
  background-clip: padding-box;
  transform: none;
}
.native-input-shell {
  display: flex;
  align-items: center;
  inline-size: 100%;
  width: 100%;
  min-inline-size: 0;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout paint;
  color: var(--admin-ink, #201a1d);
  background: #fbfafb;
  border: 1px solid rgba(84, 66, 74, .2);
  border-radius: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.native-input-shell:focus-within {
  background: #fff;
  border-color: #b9687c;
  box-shadow: 0 0 0 4px rgba(185, 104, 124, .12);
}
.native-input-shell > input[type="date"],
.native-input-shell > input[type="time"] {
  position: static;
  display: block;
  flex: 1 1 0;
  inline-size: 100%;
  width: 100%;
  min-inline-size: 0;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  min-height: 52px;
  margin: 0 !important;
  padding: 12px;
  overflow: hidden;
  box-sizing: border-box;
  color: inherit;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  box-shadow: none !important;
  font-size: max(16px, 1rem);
  -webkit-appearance: none;
  appearance: none;
}
.native-input-shell > input[type="date"]::-webkit-date-and-time-value,
.native-input-shell > input[type="time"]::-webkit-date-and-time-value {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  text-align: left;
}
.native-input-shell > input[type="date"]::-webkit-datetime-edit,
.native-input-shell > input[type="time"]::-webkit-datetime-edit,
.native-input-shell > input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.native-input-shell > input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
}
.native-input-shell > input[type="date"]::-webkit-calendar-picker-indicator,
.native-input-shell > input[type="time"]::-webkit-calendar-picker-indicator {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  opacity: .72;
  cursor: pointer;
}
/* Paired field visual contract: end */
.smart-day-fields .smart-day-extra-field { grid-column: 1 / -1; }
.input-with-unit {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
  gap: 10px;
}
.input-with-unit b { justify-self: start; white-space: nowrap; }

.month-quick-actions { grid-template-columns: minmax(0, 1fr); }
.month-quick-actions form { display: block; }
.month-quick-actions button { width: 100%; }
.simple-month-card { scroll-margin-top: 24px; }

@media (max-width: 700px) {
  .weekly-schedule-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .weekly-day-toggle {
    width: 100%;
    justify-content: flex-start;
  }
  .weekly-day-toggle > span,
  .weekly-time-fields label { min-width: 0; }
  .paired-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
  }
  .smart-day-fields .smart-day-extra-field { grid-column: 1 / -1; }
}

@media (max-width: 350px) {
  .paired-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Jednotné ovládání a tři jasně oddělené režimy staff kalendáře. */
.calendar-controls {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 18px;
}
.calendar-view-switch {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calendar-view-switch a { width: 100%; }
.calendar-controls .calendar-period-navigation { width: min(100%, 620px); margin: 0; }
.calendar-date-jump {
  width: min(100%, 260px);
  display: grid;
  gap: 6px;
}
.calendar-date-jump label { color: var(--admin-muted); font-size: .75rem; font-weight: 750; }

.calendar-day-appointment {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: start;
  gap: 20px;
  padding: 16px;
}
.calendar-event-main,
.calendar-event-copy { min-width: 0; display: grid; }
.calendar-event-main { align-content: start; gap: 8px; }
.calendar-event-copy { gap: 2px; }
.calendar-event-attendance { min-width: 0; }
.calendar-event-attendance .attendance-panel.is-compact { margin: 0; }
.attendance-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.attendance-quick-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  line-height: 1.2;
}

.calendar-summary-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.calendar-summary-day {
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(53, 34, 41, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.calendar-summary-day:hover,
.calendar-summary-day:focus-visible { border-color: #d8a8b4; box-shadow: 0 14px 32px rgba(52, 34, 40, .09); transform: translateY(-2px); }
.calendar-summary-day > span { color: var(--admin-muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.calendar-summary-day > strong { font-size: 1rem; }
.calendar-summary-day > b { margin-top: 13px; font-size: .8rem; }
.calendar-summary-day time { color: var(--rose-dark); font-size: .83rem; font-weight: 800; white-space: nowrap; }
.calendar-summary-day.is-selected { border-color: #cf8fa0; background: #fffafb; }
.calendar-summary-free { color: var(--admin-muted); font-weight: 700; }

.calendar-month-overview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(53, 34, 41, .045);
}
.calendar-month-weekdays,
.calendar-month-days {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-month-weekdays { margin-bottom: 6px; }
.calendar-month-weekdays span { min-width: 0; padding: 5px 2px; color: var(--admin-muted); font-size: .66rem; font-weight: 850; text-align: center; }
.calendar-month-summary-day {
  position: relative;
  min-width: 0;
  min-height: 112px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 5px;
  padding: 10px;
  overflow: hidden;
  color: #211b1e;
  background: #fff;
  border: 1px solid #eee7e9;
  border-radius: 15px;
  touch-action: manipulation;
}
.calendar-month-summary-day > strong { font-size: 1rem; line-height: 1; }
.calendar-month-count { min-width: 0; color: #554b4f; font-size: .7rem; font-style: normal; white-space: nowrap; }
.calendar-month-count i { font-style: normal; }
.calendar-month-summary-day time { display: flex; flex-wrap: wrap; gap: 2px; color: var(--rose-dark); font-size: .7rem; font-weight: 800; }
.calendar-month-summary-day time i { font-style: normal; }
.calendar-month-free { color: #958d90; font-size: .68rem; }
.calendar-month-summary-day.is-outside { opacity: .38; background: #f7f6f6; }
.calendar-month-summary-day.is-selected { outline: 2px solid #bd7c8c; outline-offset: -2px; }
.calendar-month-summary-day.is-today::after { content: ""; position: absolute; inset: 3px; border: 1px solid #201a1d; border-radius: 12px; pointer-events: none; }
.calendar-month-summary-day:focus-visible { outline: 3px solid rgba(183, 119, 133, .45); outline-offset: 1px; }

@media (max-width: 1023px) {
  .calendar-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calendar-summary-day { min-height: 112px; }
  .calendar-day-appointment { grid-template-columns: minmax(0, 1fr); }
  .calendar-event-attendance { margin-top: 2px; }
}

@media (max-width: 600px) {
  .calendar-controls { justify-items: stretch; }
  .calendar-view-switch,
  .calendar-controls .calendar-period-navigation,
  .calendar-date-jump { width: 100%; }
  .calendar-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .calendar-summary-day {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    padding: 12px 14px;
  }
  .calendar-summary-day > span,
  .calendar-summary-day > strong { grid-column: 1; }
  .calendar-summary-day > b,
  .calendar-summary-day time { grid-column: 2; margin: 0; text-align: right; }
  .calendar-summary-day time { grid-row: 2; }
  .calendar-month-overview { padding: 4px; border-radius: 18px; }
  .calendar-month-weekdays,
  .calendar-month-days { gap: 2px; }
  .calendar-month-summary-day { min-height: 78px; gap: 3px; padding: 5px 3px; border-radius: 10px; }
  .calendar-month-summary-day > strong { font-size: .86rem; }
  .calendar-month-count { font-size: .6rem; }
  .calendar-month-count-label { display: none; }
  .calendar-month-summary-day time { display: grid; gap: 0; font-size: .56rem; line-height: 1.1; }
  .calendar-month-summary-day time i { display: none; }
  .calendar-month-free { font-size: .58rem; }
  .calendar-day-appointment { gap: 12px; padding: 13px; }
  .attendance-quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attendance-quick-actions button { padding-inline: 4px; font-size: .7rem; }
}

.price-warning {
  padding: .85rem 1rem;
  border: 1px solid #e6a2af;
  border-radius: 13px;
  color: #8f263e;
  background: #fff2f4;
  font-weight: 750;
}
.price-warning[hidden] { display: none; }

.product-list-compact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  padding: .75rem;
  border-radius: 13px;
  background: #faf7f8;
  color: #292124;
}
.stats-row { flex-wrap: wrap; }
.stats-row small { flex-basis: 100%; color: #766a6e; }

/* Client product catalogue preview */
.client-product-page { background: #f7f4f5; color: #171315; }
.client-product-page .public-main { width: 100%; max-width: none; padding: 0; }
.client-product-page .public-footer { margin-top: 2rem; }
.client-shop-shell { width: min(1440px, 100%); margin-inline: auto; padding: 18px clamp(16px, 3vw, 42px) 60px; box-sizing: border-box; }
.client-shop-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 12px; padding: 9px 14px; border: 1px solid #efc7d2; border-radius: 16px; background: #fff4f7; color: #773246; font-size: .82rem; font-weight: 750; }
.client-shop-preview a { color: inherit; }
.client-shop-header { position: sticky; z-index: 12; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; margin-bottom: 34px; padding: 13px 16px; border: 1px solid rgba(74, 55, 62, .09); border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 12px 38px rgba(49, 31, 37, .08); backdrop-filter: blur(18px); }
.client-shop-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #181315; text-decoration: none; }
.client-shop-brand img { flex: 0 0 44px; border-radius: 14px; }
.client-shop-brand span { display: grid; min-width: 0; }
.client-shop-brand strong { font-size: 1.05rem; }
.client-shop-brand small { color: #81757a; font-size: .72rem; }
.client-shop-nav { display: flex; align-items: center; gap: 7px; min-width: 0; }
.client-shop-nav > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; color: #32292c; border-radius: 13px; font-size: .88rem; font-weight: 750; text-decoration: none; }
.client-shop-nav > a:hover,.client-shop-nav > a:focus-visible { background: #f8eef1; }
.client-cart-link { position: relative; background: #201a1d; color: #fff !important; }
.client-cart-link .ui-icon { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.client-cart-link b { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #c85878; color: #fff; font-size: .68rem; box-sizing: border-box; }
.shop-catalog-hero { width: min(760px, 100%); margin: 0 auto 28px; text-align: center; }
.shop-catalog-hero h1,.shop-page-title h1 { margin: 5px 0; color: #110e0f; font-size: clamp(2.1rem, 6vw, 4.8rem); letter-spacing: -.05em; }
.shop-catalog-hero > p:last-child,.shop-page-title > p:last-child { color: #71666a; font-size: clamp(1rem, 2vw, 1.18rem); }
.shop-filters { display: grid; gap: 14px; margin-bottom: 22px; }
.shop-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(720px, 100%); margin-inline: auto; border: 1px solid #e1d8db; border-radius: 17px; background: #fff; box-shadow: 0 9px 24px rgba(41, 27, 32, .05); overflow: hidden; }
.shop-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.shop-search input { min-width: 0; min-height: 52px; padding: 0 16px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.shop-search:focus-within { border-color: #c6798f; box-shadow: 0 0 0 4px rgba(198, 121, 143, .14); }
.shop-search button { min-width: 86px; border: 0; background: #201a1d; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.shop-category-pills { display: flex; gap: 8px; max-width: 100%; padding: 2px 2px 5px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.shop-category-pills::-webkit-scrollbar { display: none; }
.shop-category-pills a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #e5dcdf; border-radius: 999px; background: #fff; color: #3d3337; font-weight: 750; text-decoration: none; }
.shop-category-pills a.is-active { border-color: #251e21; background: #251e21; color: #fff; }
.shop-filter-panel { border: 1px solid #e7dfe2; border-radius: 18px; background: #fff; }
.shop-filter-panel summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.shop-filter-panel summary span { color: #a54260; font-size: .76rem; }
.shop-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(3, auto) auto; align-items: end; gap: 12px; padding: 0 16px 16px; }
.shop-filter-grid > label:not(.shop-check) { display: grid; gap: 6px; min-width: 0; color: #675d61; font-size: .78rem; font-weight: 750; }
.shop-filter-grid select { width: 100%; min-width: 0; min-height: 44px; padding: 7px 10px; border: 1px solid #ded4d7; border-radius: 12px; background: #fff; font: inherit; }
.shop-check { display: flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; font-weight: 720; }
.shop-check input { width: 20px; height: 20px; accent-color: #c85878; }
.shop-results-head { display: flex; justify-content: space-between; gap: 16px; margin: 18px 2px 12px; color: #71666a; }
.shop-results-head a { color: #98415c; font-weight: 750; }
.shop-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.shop-product-card { min-width: 0; overflow: hidden; border: 1px solid #e9e1e3; border-radius: 24px; background: #fff; box-shadow: 0 12px 32px rgba(45, 28, 34, .06); transition: transform .2s ease, box-shadow .2s ease; }
.shop-product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(45, 28, 34, .1); }
.shop-product-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.shop-product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .9; overflow: hidden; background: linear-gradient(145deg,#f9f2f4,#eee7e9); }
.shop-product-image > img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-image > span,.shop-main-photo > span,.shop-cart-image > span { color: #bd6b83; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
.shop-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.shop-badges.is-static { position: static; margin-bottom: 14px; }
.shop-badges em { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #fff; color: #69404d; box-shadow: 0 5px 16px rgba(42, 25, 31, .08); font-size: .68rem; font-style: normal; font-weight: 850; }
.shop-badges em.is-sale { background: #c85878; color: #fff; }.shop-badges em.is-muted { background: #e5e2e3; color: #5d5558; }.shop-badges em.is-low { background: #fff0d9; color: #7b531b; }
.shop-product-copy { display: grid; align-content: start; gap: 5px; min-height: 188px; padding: 17px; }
.shop-product-copy > span,.shop-brand,.shop-cart-copy > span { margin: 0; color: #a34a65; font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.shop-product-copy h2 { margin: 0; font-size: 1.06rem; }.shop-product-copy p { margin: 2px 0 10px; color: #766b6f; font-size: .84rem; line-height: 1.45; }
.shop-product-meta { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }.shop-product-meta > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }.shop-product-meta s { color: #91868a; font-size: .72rem; }.shop-product-meta em { color: #aa3f5d; font-size: .68rem; font-style: normal; font-weight: 850; }.shop-product-meta strong { flex-basis: 100%; font-size: 1.14rem; }.shop-product-meta small { color: #387051; font-weight: 800; }.shop-product-meta small.is-sold-out { color: #8c7f84; }
.shop-breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: #776b70; font-size: .84rem; }.shop-breadcrumb a { color: #93405a; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.shop-gallery,.shop-detail-copy { min-width: 0; }.shop-main-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg,#f9f2f4,#eee7e9); }.shop-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-thumbnails { display: flex; gap: 9px; margin-top: 10px; overflow-x: auto; }.shop-thumbnails button { flex: 0 0 74px; width: 74px; height: 74px; padding: 0; overflow: hidden; border: 1px solid #ded3d7; border-radius: 14px; background: #fff; cursor: pointer; }.shop-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-copy { padding-top: 12px; }.shop-detail-copy h1 { margin: 3px 0 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.05em; }.shop-lead { color: #675d61; font-size: 1.05rem; line-height: 1.6; }
.shop-variant-picker { margin: 28px 0 20px; padding: 0; border: 0; }.shop-variant-picker legend { margin-bottom: 10px; font-weight: 820; }.shop-variant-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-variant-pill { position: relative; cursor: pointer; }.shop-variant-pill input { position: absolute; opacity: 0; pointer-events: none; }.shop-variant-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid #ded4d7; border-radius: 13px; background: #fff; font-weight: 750; }.shop-variant-pill input:checked + span { border-color: #241d20; background: #241d20; color: #fff; }.shop-variant-pill input:focus-visible + span { outline: 3px solid rgba(194,91,121,.3); outline-offset: 2px; }.shop-variant-pill.is-disabled { opacity: .45; cursor: not-allowed; }
.shop-price-block { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.shop-price-block > span { color: #8b7f83; text-decoration: line-through; }.shop-price-block strong { font-size: 1.8rem; }.shop-price-block em { padding: 5px 9px; border-radius: 999px; background: #fee3ea; color: #a23453; font-size: .78rem; font-style: normal; font-weight: 850; }.shop-stock { color: #34704f; font-weight: 800; }.shop-stock.is-sold-out { color: #8a7f83; }
.shop-add-row { display: grid; grid-template-columns: auto minmax(180px, 1fr); gap: 12px; margin-top: 20px; }.shop-quantity,.shop-cart-quantity > div { display: grid; grid-template-columns: 44px 54px 44px; align-items: center; border: 1px solid #ded4d7; border-radius: 14px; overflow: hidden; background: #fff; }.shop-quantity button,.shop-cart-quantity button { min-width: 44px; min-height: 48px; border: 0; background: #f8f4f5; font-size: 1.25rem; cursor: pointer; }.shop-quantity input { width: 54px; min-width: 0; height: 48px; padding: 0; border: 0; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }.shop-quantity input::-webkit-inner-spin-button { appearance: none; }.shop-add-button { min-height: 50px; }.shop-add-button:disabled { opacity: .45; cursor: not-allowed; }
.shop-description { margin-top: 34px; padding-top: 24px; border-top: 1px solid #e5dcdf; color: #62585c; line-height: 1.65; }.shop-description h2 { color: #191416; }
.shop-page-title { margin: 16px 0 25px; }.shop-page-title h1 { font-size: clamp(2rem,5vw,3.8rem); }
.shop-cart-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,380px); gap: 22px; align-items: start; }.shop-cart-lines { display: grid; gap: 12px; }.shop-cart-line { display: grid; grid-template-columns: 96px minmax(150px,1fr) auto auto auto; align-items: center; gap: 16px; padding: 15px; border: 1px solid #e7dfe2; border-radius: 20px; background: #fff; }.shop-cart-image { display: grid; place-items: center; width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: 15px; background: #f5edef; }.shop-cart-image img { width: 100%; height: 100%; object-fit: cover; }.shop-cart-image > span { font-size: 2rem; }.shop-cart-copy h2 { margin: 3px 0; font-size: 1rem; }.shop-cart-copy p,.shop-cart-copy small { margin: 0; color: #776c70; }.shop-cart-copy small { color: #37704f; font-weight: 750; }.shop-cart-price { display: grid; gap: 3px; font-size: .85rem; }.shop-cart-price span { color: #a3415e; font-size: .72rem; }.shop-cart-quantity { display: grid; gap: 5px; }.shop-cart-quantity label { color: #776c70; font-size: .7rem; }.shop-cart-quantity > div { grid-template-columns: 40px 38px 40px; }.shop-cart-quantity button { min-width: 40px; min-height: 44px; }.shop-cart-quantity strong { text-align: center; }.shop-cart-subtotal { display: grid; justify-items: end; gap: 7px; white-space: nowrap; }.shop-cart-subtotal button { min-height: 38px; border: 0; background: transparent; color: #9e3a58; text-decoration: underline; cursor: pointer; }
.shop-cart-summary,.shop-review { display: grid; gap: 15px; padding: 22px; border: 1px solid #e7dfe2; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(46,29,35,.07); }.shop-cart-summary { position: sticky; top: 108px; }.shop-cart-summary h2 { margin: 0; }.shop-cart-summary > div:first-of-type,.shop-review-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-block: 1px solid #ede6e8; }.shop-cart-summary > div strong,.shop-review-total strong { font-size: 1.3rem; }
.shop-not-purchase,.shop-preview-stop { padding: 14px; border-radius: 15px; background: #fff4f7; color: #6d3747; }.shop-not-purchase p,.shop-preview-stop p { margin: 5px 0 0; font-size: .84rem; line-height: 1.5; }.shop-preview-stop { background: #f1eff0; color: #5f5659; }
.shop-empty { grid-column: 1 / -1; padding: clamp(30px,6vw,70px) 20px; border: 1px dashed #d9ced2; border-radius: 24px; background: rgba(255,255,255,.65); text-align: center; }.shop-empty.compact { padding: 20px; }.shop-empty h2 { margin-top: 0; }.shop-empty p { color: #766b6f; }
.shop-review { width: min(780px,100%); margin-inline: auto; box-sizing: border-box; }.shop-review-line { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #eee7e9; }.shop-review-line span { display: grid; gap: 3px; }.shop-review-line small { color: #796e72; }.shop-pickup-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }.shop-pickup-context div { padding: 13px; border-radius: 14px; background: #f8f5f6; }.shop-pickup-context dt { color: #7a6f73; font-size: .75rem; }.shop-pickup-context dd { margin: 4px 0 0; font-weight: 750; }
.shop-history { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.shop-history-card { padding: 18px; border: 1px solid #e6dde0; border-radius: 20px; background: #fff; }.shop-history-card header,.shop-history-card p { display: flex; justify-content: space-between; gap: 12px; }.shop-history-card time,.shop-history-card footer { color: #796e72; }.shop-history-card footer { padding-top: 12px; border-top: 1px solid #eee7e9; font-size: .82rem; }
@media (max-width: 1100px) { .shop-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.shop-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)) repeat(3,auto); }.shop-filter-grid .button { grid-column: 1/-1; }.shop-cart-line { grid-template-columns: 78px minmax(0,1fr) auto; }.shop-cart-image { width: 78px; }.shop-cart-price { grid-column: 2; }.shop-cart-quantity,.shop-cart-subtotal { grid-row: 1/3; }.shop-cart-quantity { grid-column: 3; }.shop-cart-subtotal { grid-column: 4; } }
@media (max-width: 800px) { .shop-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.shop-detail { grid-template-columns: 1fr; }.shop-main-photo { max-height: 620px; }.shop-cart-layout { grid-template-columns: 1fr; }.shop-cart-summary { position: static; }.shop-cart-line { grid-template-columns: 76px minmax(0,1fr) auto; }.shop-cart-price { grid-column: 2/4; }.shop-cart-quantity { grid-column: 2; grid-row: auto; }.shop-cart-subtotal { grid-column: 3; grid-row: auto; }.shop-history { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .client-shop-shell { padding: 10px 12px calc(90px + env(safe-area-inset-bottom)); overflow-x: clip; }.client-shop-preview { align-items: flex-start; flex-direction: column; }.client-shop-header { top: 6px; align-items: flex-start; padding: 10px; border-radius: 18px; }.client-shop-brand small { display: none; }.client-shop-nav { max-width: calc(100% - 54px); overflow: visible; }.client-shop-nav > a { flex: 0 0 auto; padding-inline: 10px; font-size: .76rem; }.client-shop-nav > a:not(.client-cart-link) { display: none; }.client-cart-link span { display: none; }.shop-catalog-hero { margin-top: 20px; }.shop-search { grid-template-columns: minmax(0,1fr) 76px; }.shop-category-pills { margin-inline: -12px; padding-inline: 12px; }.shop-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.shop-check { white-space: normal; }.shop-filter-grid .button { grid-column: 1/-1; }.shop-product-grid { gap: 10px; }.shop-product-card { border-radius: 18px; }.shop-product-copy { min-height: 165px; padding: 13px; }.shop-product-copy > span { font-size: .63rem; }.shop-product-copy h2 { font-size: .94rem; }.shop-product-copy p { display: -webkit-box; overflow: hidden; font-size: .76rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.shop-product-meta { align-items: flex-start; flex-direction: column; gap: 3px; }.shop-badges { top: 7px; left: 7px; gap: 3px; }.shop-badges em { min-height: 24px; padding: 3px 7px; font-size: .58rem; }.shop-detail-copy h1 { font-size: 2.15rem; }.shop-add-row { grid-template-columns: 1fr; }.shop-quantity { width: 142px; }.shop-cart-line { grid-template-columns: 66px minmax(0,1fr); gap: 10px; }.shop-cart-image { width: 66px; }.shop-cart-price { grid-column: 2; }.shop-cart-quantity { grid-column: 1/3; }.shop-cart-subtotal { grid-column: 1/3; grid-row: auto; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }.shop-cart-subtotal form { justify-self: end; }.shop-pickup-context { grid-template-columns: 1fr; }.shop-review-line { align-items: flex-start; flex-direction: column; }.shop-review-line > strong { align-self: flex-end; } }
@media (max-width: 370px) { .shop-product-grid { grid-template-columns: 1fr; }.client-cart-link span { display: none; }.shop-filter-grid { grid-template-columns: 1fr; } }

/* Product operations: one calm component set for the future salon workflow. */
.product-wizard [data-wizard-step] { display: grid; gap: 18px; padding-block: 8px; }
.product-wizard [data-wizard-step][hidden] { display: none; }
.product-wizard [data-wizard-progress] { color: #a33f5d; font-weight: 800; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee5e8; }
.wizard-summary,.promotion-preview,.stock-correction-preview,.inventory-help { padding: 16px; border-radius: 16px; background: #faf6f7; color: #51474b; }
.promotion-preview.is-active { background: #fff0f4; color: #8f2f4b; font-weight: 800; }
.product-advanced { margin-top: 20px; border: 1px solid #e8dfe2; border-radius: 16px; }
.product-advanced summary { min-height: 48px; padding: 13px 16px; font-weight: 800; cursor: pointer; }
.product-advanced > .product-form-grid { padding: 0 16px 16px; }
.stock-quick-form { width: min(680px,100%); margin-inline: auto; box-sizing: border-box; }
.stock-correction-preview { margin-block: 16px; }
.inventory-count-form { display: grid; gap: 18px; }
.inventory-actual { display: grid; gap: 6px; color: #62575b; font-size: .8rem; font-weight: 800; }
.inventory-actual input { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; }
.inventory-save { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); justify-self: end; z-index: 5; }
.internal-variant-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.internal-variant-card { display: grid; gap: 14px; min-width: 0; padding: 18px; border: 1px solid #e9e0e3; border-radius: 20px; background: #fff; }
.internal-variant-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.internal-variant-card h3 { margin: 0 0 4px; }
.internal-variant-card footer { margin-top: auto; }
.product-gallery article { min-width: 0; }
.product-gallery article img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.product-card-stock { color: #51474b; font-size: .82rem; }
@media (max-width: 700px) {
  .product-wizard .product-form-grid,.internal-variant-grid { grid-template-columns: 1fr; }
  .wizard-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; padding: 10px; border: 1px solid #eadfe3; border-radius: 16px; background: rgba(255,255,255,.94); }
  .wizard-actions .button { flex: 1; min-height: 48px; }
  .inventory-footer { align-items: stretch; flex-direction: column; }
  .inventory-footer .inline-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .inventory-footer .button { min-height: 48px; }
  .inventory-save { width: 100%; min-height: 50px; }
}
@media (max-width: 350px) { .inventory-footer .inline-actions { grid-template-columns: 1fr; } }
