#workshops {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.1vw,32px);}
#class-tabs {display:flex;flex-wrap:wrap;gap:7px;}
.kh-tab,.kh-admin-tab,.kh-secondary,.kh-primary,.kh-book,.kh-text,.kh-close {font:inherit;cursor:pointer;}
.kh-tab {min-height:36px;border:1px solid #c9bfce;border-radius:100px;padding:5px 15px;background:transparent;color:#392a42;font-size:13px;font-weight:600;white-space:nowrap;}
.kh-tab[aria-pressed="true"],.kh-admin-tab[aria-pressed="true"] {background:#31213c;border-color:#31213c;color:#fff;}
.kh-tab:hover:not([aria-pressed="true"]) {background:#f2eafe;}
.kh-card {display:flex;flex-direction:column;min-width:0;border-radius:18px;border:1px solid #d9d0dc;overflow:hidden;background:#fffdfa;color:#261b35;box-sizing:border-box;}
.kh-card-media {position:relative;aspect-ratio:1.62;background:#e1d3eb;overflow:hidden;}
.kh-card-media img {display:block;width:100%;height:100%;object-fit:cover;transition:transform 300ms ease-out;}
.kh-card:hover .kh-card-media img {transform:scale(1.025);}
.kh-date-pill {position:absolute;left:12px;bottom:12px;border-radius:100px;background:#faf8f3;color:#30233b;padding:5px 11px;font-size:11px;font-weight:750;line-height:1.45;box-shadow:0 2px 5px #24112e10;}
.kh-card-body {display:flex;flex:1;flex-direction:column;padding:clamp(14px,1.8vw,23px);gap:11px;}
.kh-card-kind,.kh-card-name,.kh-description,.kh-small,.kh-note,.kh-booking-kicker,.kh-confirm-id,.kh-confirm-name {margin:0;}
.kh-card-kind {color:#67596b;font-weight:650;font-size:11px;line-height:1.3;letter-spacing:.03em;}
.kh-card-name {color:#271932;font-size:clamp(20px,2vw,29px);line-height:1.05;letter-spacing:-.055em;font-weight:780;text-wrap:balance;}
.kh-card-bottom,.kh-request-top,.kh-admin-tools {display:flex;justify-content:space-between;align-items:center;gap:10px;}
.kh-card-bottom {margin-top:auto;padding-top:7px;}
.kh-card-price {color:#261b35;font-size:17px;font-weight:760;letter-spacing:-.045em;}
.kh-card-seats,.kh-small,.kh-note {color:#665a6a;font-size:12px;line-height:1.5;}
.kh-book,.kh-primary,.kh-secondary {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:10px 17px;border:1px solid transparent;border-radius:12px;font-size:13px;font-weight:720;line-height:1.35;text-align:center;}
.kh-book {justify-content:space-between;background:#e5d8ff;color:#342047;}
.kh-arrow {font-size:17px;line-height:1;}
.kh-book:hover:not(:disabled) {background:#d7c2fa;}
.kh-primary {background:#4c3083;color:white;}
.kh-primary:hover:not(:disabled) {background:#382360;}
.kh-secondary {background:#faf8f3;border-color:#cfc3d4;color:#32233f;}
.kh-secondary:hover:not(:disabled) {background:#f0e8fa;}
.kh-primary:disabled,.kh-book:disabled,.kh-secondary:disabled {background:#e9e4e9;color:#716777;cursor:default;}
.kh-empty {grid-column:1/-1;padding:20px;border-radius:13px;background:#eee8f3;color:#493a55;font-size:14px;margin:0;}
.kh-empty p {margin:0 0 10px;}
.kh-tab:focus-visible,.kh-card button:focus-visible,#sheet :is(button,input,select):focus-visible {outline:3px solid #7947b3;outline-offset:3px;}
html.kh-modal-open {overflow:hidden;}
#sheet {
  width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);
  margin:auto;padding:0;border:1px solid #d8cfdf;border-radius:22px;overflow:auto;overscroll-behavior:contain;
  background:#faf8f3;color:#261b35;box-shadow:0 20px 90px #20132f40;font:14px/1.5 Manrope,Arial,sans-serif;
}
#sheet.kh-admin-sheet {width:min(645px,calc(100vw - 32px));}
#sheet::backdrop {background:rgb(36 25 45 / 57%);}
#sheet[open] {animation:kh-pop-in 160ms ease-out;}
#sheet *,#sheet *::before,#sheet *::after {box-sizing:border-box;}
#sheet [hidden] {display:none!important;}
.kh-dialog-top {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 25px 14px;background:#faf8f3;}
.kh-dialog-title {font:750 clamp(23px,3.1vw,33px)/1.05 Manrope,Arial,sans-serif;letter-spacing:-.06em;margin:0;}
.kh-dialog-title:focus {outline:none;}
.kh-close {display:grid;place-content:center;flex:none;width:40px;height:40px;border:1px solid #d5c9dc;border-radius:50%;color:#382944;background:#fffdfa;font-size:23px;line-height:1;}
.kh-dialog-content {padding:6px 25px 25px;}
.kh-booking-intro {display:flex;align-items:center;gap:14px;border-radius:15px;overflow:hidden;background:#ede5fc;}
.kh-booking-photo {display:block;width:92px;height:88px;object-fit:cover;}
.kh-booking-identity {min-width:0;padding:8px 12px 8px 0;}
.kh-booking-kicker {font-weight:650;font-size:11px;color:#554264;}
.kh-booking-identity h3,.kh-confirm-name {margin:3px 0;color:#2e1f3b;font-size:20px;font-weight:760;line-height:1.15;letter-spacing:-.045em;}
.kh-description {margin:13px 0;color:#574c5c;font-size:13px;line-height:1.55;}
.kh-book-form,.kh-login,.kh-capacity-form {display:grid;gap:13px;}
.kh-field {display:grid;align-content:start;gap:5px;min-width:0;color:#35283d;font-size:12px;font-weight:650;}
.kh-field input,.kh-field select {
  display:block;width:100%;min-width:0;min-height:44px;border:1px solid #d0c5d5;border-radius:10px;
  padding:8px 10px;background:#fffdfa;color:#302339;font:400 14px/1.4 Manrope,Arial,sans-serif;color-scheme:light;
}
.kh-field :is(input,select):disabled {background:#eae6ec;}
.kh-form-pair {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.kh-form-pair:first-child {grid-template-columns:minmax(0,2.5fr) minmax(75px,.8fr);}
.kh-total {margin:1px 0 0;border-top:1px solid #d9d1dc;padding-top:11px;font-size:17px;font-weight:730;}
.kh-error {color:#9a273e;margin:0;font-size:13px;font-weight:600;}
.kh-error:empty,.kh-admin-status:empty {display:none;}
.kh-confirm-id {margin:10px 0;padding:11px 14px;background:#eee6fa;border-radius:10px;font-weight:700;overflow-wrap:anywhere;}
.kh-confirm-id ~ .kh-primary {margin-top:16px;}
.kh-admin-nav {display:flex;gap:6px;align-items:center;padding-bottom:13px;border-bottom:1px solid #d6ceda;}
.kh-admin-tab {border-radius:100px;border:1px solid #cfc3d4;background:transparent;color:#3c2b4a;font-weight:680;padding:6px 13px;min-height:37px;font-size:13px;}
.kh-text {min-height:36px;padding:4px 6px;border:0;background:transparent;color:#613c88;text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:620;}
.kh-admin-nav>.kh-text {margin-left:auto;}
.kh-admin-panel {padding-top:15px;}
.kh-admin-status {margin:12px 0 0;font-size:13px;}
.kh-admin-tools {align-items:flex-end;gap:12px;margin-bottom:12px;}
.kh-admin-tools>.kh-field {flex:1;}
.kh-request-list {display:grid;gap:10px;}
.kh-request {border:1px solid #d8cedd;border-radius:13px;padding:13px 14px;background:#fffdfa;overflow-wrap:anywhere;}
.kh-request-top {align-items:flex-start;}
.kh-badge {font-size:11px;font-weight:700;border-radius:99px;padding:4px 8px;background:#e8e3ea;}
.kh-badge.kh-pending {background:#f4e5bc;color:#554217;}
.kh-badge.kh-confirmed {background:#d9ebd7;color:#385233;}
.kh-request-workshop {margin:8px 0 2px;font-size:15px;font-weight:700;}
.kh-admin-actions,.kh-cancel-confirm {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;}
.kh-admin-actions .kh-secondary,.kh-cancel-confirm .kh-secondary {min-height:35px;padding:6px 10px;font-size:12px;}
.kh-cancel-confirm span {flex-basis:100%;font-size:12px;}
@keyframes kh-pop-in {from{transform:translateY(7px);opacity:.3}to{transform:translateY(0);opacity:1}}
@media(max-width:850px){#workshops {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:580px){
  #workshops {grid-template-columns:1fr;}
  #class-tabs {gap:6px;}
  .kh-tab {min-height:36px;padding:6px 12px;font-size:12px;}
  #sheet,#sheet.kh-admin-sheet {width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:17px;}
  .kh-dialog-top {padding:16px 15px 11px;}
  .kh-dialog-content {padding:4px 15px max(18px,env(safe-area-inset-bottom));}
  .kh-field input,.kh-field select {font-size:16px;}
  .kh-booking-photo {width:78px;height:79px;}
  .kh-card-name {font-size:25px;}
}
@media(max-width:365px){.kh-form-pair,.kh-form-pair:first-child {grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce){#sheet[open] {animation:none;}.kh-card-media img {transition:none;}.kh-card:hover .kh-card-media img {transform:none;}}
