#ksa-v3 .booking-state{grid-column:1/-1;border:1px solid var(--line);border-radius:22px;background:#fff;padding:24px;text-align:center;color:var(--muted);line-height:1.5}
#ksa-v3 .booking-state strong{display:block;margin-bottom:5px;color:var(--ink);font-size:18px}
#ksa-v3 .form-error{display:none;margin-top:14px;border:1px solid #e4a4a4;border-radius:14px;background:#fff5f5;padding:13px 15px;color:#8b3030;font-size:14px;line-height:1.45}
#ksa-v3 .form-error.is-open{display:block}
#ksa-v3 .legal-consent{display:flex;align-items:flex-start;gap:10px;margin-top:17px;color:#625c69;font-size:13px;font-weight:600;line-height:1.45}
#ksa-v3 .legal-consent input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;padding:0}
#ksa-v3 .legal-consent a{color:var(--navy);text-decoration:underline}
#ksa-v3 .pay:disabled{cursor:wait;opacity:.68}
#ksa-v3 .teacher-gallery{margin:18px 0 22px;padding:18px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff 0%,#faf7ff 100%)}
#ksa-v3 .teacher-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}
#ksa-v3 .teacher-gallery-head strong{display:block;color:var(--ink);font-size:18px}
#ksa-v3 .teacher-gallery-head span{color:var(--muted);font-size:13px;line-height:1.4}
#ksa-v3 .teacher-gallery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
#ksa-v3 .teacher-preview-card{min-width:0;padding:12px;display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:11px;border:1px solid #e8e0dc;border-radius:18px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 7px 20px rgba(58,42,67,.04);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
#ksa-v3 .teacher-preview-card:hover{border-color:#cdbfea;box-shadow:0 11px 26px rgba(76,55,99,.1);transform:translateY(-1px)}
#ksa-v3 .teacher-preview-card:focus-visible{outline:3px solid rgba(112,77,207,.22);outline-offset:2px}
#ksa-v3 .teacher-preview-card img,#ksa-v3 .teacher-photo-fallback{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#eee7ff}
#ksa-v3 .teacher-photo-fallback{display:grid;place-items:center;color:#6746bc;font-size:13px;font-weight:900}
#ksa-v3 .teacher-preview-card div{min-width:0;display:grid;gap:3px}
#ksa-v3 .teacher-preview-card strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
#ksa-v3 .teacher-preview-card small{color:var(--muted);font-size:12px;line-height:1.35}
#ksa-v3 .teacher-preview-card i{color:#7352c7;font-size:24px;font-style:normal}
#ksa-v3 .teacher-link{display:flex;align-items:center;gap:6px;margin-top:6px;color:#7352c7;font-size:12px;font-weight:800;text-decoration:underline;text-decoration-color:rgba(115,82,199,.25);text-underline-offset:3px}
#ksa-v3 .teacher-link img,#ksa-v3 .teacher-link .teacher-photo-fallback{width:24px;height:24px;flex:0 0 24px;border-radius:50%;object-fit:cover;font-size:8px}
#ksa-v3 .teacher-modal{padding:18px;overflow:auto}
#ksa-v3 .teacher-modal.is-open{display:grid;place-items:center}
#ksa-v3 .teacher-card{width:min(650px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:26px;border-radius:26px}
#ksa-v3 .teacher-top{display:grid;grid-template-columns:94px 1fr;align-items:center;gap:18px}
#ksa-v3 .teacher-top .teacher-photo{width:94px;height:94px;overflow:hidden;border-radius:50%;background:#eee7ff}
#ksa-v3 .teacher-top .teacher-photo img{width:100%;height:100%;object-fit:cover}
#ksa-v3 .teacher-top h3{margin:0 0 5px;font-size:26px;line-height:1.08}
#ksa-v3 .teacher-role{color:var(--muted);font-size:14px;line-height:1.4}
#ksa-v3 .teacher-rating{display:flex;align-items:center;gap:7px;margin-top:8px;color:#6f5a16;font-size:13px;font-weight:800}
#ksa-v3 .teacher-rating span{color:#e3a92b;letter-spacing:1px}
#ksa-v3 .teacher-about{margin:19px 0 0;color:#514957;font-size:15px;line-height:1.6}
#ksa-v3 .teacher-about p{margin:0 0 7px}
#ksa-v3 .teacher-section{margin-top:20px;padding-top:18px;border-top:1px solid #eee7e2}
#ksa-v3 .teacher-section h4{margin:0 0 11px;color:var(--ink);font-size:17px}
#ksa-v3 .teacher-review-list{display:grid;gap:9px}
#ksa-v3 .teacher-review-item{padding:13px 14px;border-radius:15px;background:#faf8f5;color:#514957;font-size:13px;line-height:1.5}
#ksa-v3 .teacher-review-item p{margin:0 0 7px}
#ksa-v3 .teacher-review-item span{color:var(--muted);font-size:12px;font-weight:700}
#ksa-v3 .teacher-window-list{display:flex;flex-wrap:wrap;gap:8px}
#ksa-v3 .teacher-window-button{padding:10px 12px;border:1px solid #d9ccef;border-radius:12px;background:#f5f0ff;color:#6243ad;font:inherit;font-size:13px;font-weight:850;cursor:pointer}
#ksa-v3 .teacher-window-button:hover{background:#ece3ff}
#ksa-v3 .teacher-all-reviews{display:inline-flex;margin-top:13px;color:#6243ad;font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(max-width:720px){#ksa-v3 .pager{width:100%;justify-content:space-between}
#ksa-v3 .range{flex:1}
#ksa-v3 .teacher-gallery-list{display:flex;overflow-x:auto;padding:2px 2px 7px;scroll-snap-type:x mandatory}
#ksa-v3 .teacher-preview-card{min-width:255px;scroll-snap-align:start}
#ksa-v3 .teacher-gallery{padding:15px;margin-inline:-2px}
#ksa-v3 .teacher-gallery-head{align-items:flex-start;flex-direction:column;gap:3px}
#ksa-v3 .teacher-card{padding:22px 18px}
#ksa-v3 .teacher-top{grid-template-columns:76px 1fr;gap:13px}
#ksa-v3 .teacher-top .teacher-photo{width:76px;height:76px}
#ksa-v3 .teacher-top h3{font-size:22px}
}

#ksa-v3 .days-page{grid-template-columns:1fr;gap:12px}
#ksa-v3 .availability-day{overflow:hidden;padding:0}
#ksa-v3 .day-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:12px;width:100%;min-height:72px;padding:14px 17px;border:0;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .18s ease,box-shadow .18s ease}
#ksa-v3 .day-summary:hover{background:#faf8ff}
#ksa-v3 .day-summary:focus-visible{outline:3px solid rgba(116,82,203,.25);outline-offset:-3px}
#ksa-v3 .day-summary[aria-expanded="true"]{background:#f8f4ff;box-shadow:inset 4px 0 0 #7a58d1}
#ksa-v3 .day-summary-copy{display:grid;gap:3px;min-width:0}
#ksa-v3 .day-summary-copy small{color:#7452cb;font-size:11px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
#ksa-v3 .day-summary-copy strong{font-size:18px;line-height:1.25}
#ksa-v3 .day-count{color:var(--muted);font-size:13px;font-weight:750}
#ksa-v3 .day-chevron{color:#7452cb;font-size:23px;font-weight:800;line-height:1;transition:transform .18s ease}
#ksa-v3 .day-summary[aria-expanded="true"] .day-chevron{transform:rotate(180deg)}
#ksa-v3 .day-content{padding:12px 14px 15px;border-top:1px solid #ece6f3;background:#fdfcff}
#ksa-v3 .day-content[hidden]{display:none}
#ksa-v3 .interval-list{display:grid;gap:10px}
#ksa-v3 .availability-interval{overflow:hidden;border:1px solid #e4ddec;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(44,29,72,.05)}
#ksa-v3 .interval-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:14px;width:100%;min-height:78px;padding:13px 15px;border:0;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .18s ease,box-shadow .18s ease}
#ksa-v3 .interval-summary:hover{background:#faf8ff}
#ksa-v3 .interval-summary:focus-visible{outline:3px solid rgba(116,82,203,.25);outline-offset:-3px}
#ksa-v3 .interval-summary[aria-expanded="true"]{background:#f8f4ff;box-shadow:inset 4px 0 0 #7a58d1}
#ksa-v3 .interval-teacher{display:flex;align-items:center;gap:11px;min-width:0}
#ksa-v3 .interval-photo,#ksa-v3 .interval-teacher .teacher-photo-fallback{flex:0 0 auto;width:44px;height:44px;border-radius:50%;object-fit:cover}
#ksa-v3 .interval-teacher .teacher-photo-fallback{display:grid;place-items:center;background:#eee6ff;color:#6544af;font-size:12px;font-weight:900}
#ksa-v3 .interval-teacher-copy{display:grid;min-width:0}
#ksa-v3 .interval-teacher-copy strong{overflow:hidden;font-size:15px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
#ksa-v3 .interval-time{display:grid;gap:2px;min-width:112px;text-align:right}
#ksa-v3 .interval-time strong{font-size:18px;letter-spacing:-.02em}
#ksa-v3 .interval-chevron{color:#7452cb;font-size:22px;font-weight:800;line-height:1;transition:transform .18s ease}
#ksa-v3 .interval-summary[aria-expanded="true"] .interval-chevron{transform:rotate(180deg)}
#ksa-v3 .interval-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px;padding:12px 14px 15px;border-top:1px solid #ece6f3;background:#faf8ff}
#ksa-v3 .interval-slots[hidden]{display:none}
#ksa-v3 .slot.interval-slot{display:grid;place-items:center;min-height:48px;padding:10px;border-radius:12px;font-size:16px;text-align:center}
@media(max-width:720px){
#ksa-v3 .day-summary{grid-template-columns:minmax(0,1fr) auto 18px;min-height:66px;padding:12px 13px}
#ksa-v3 .day-summary-copy strong{font-size:16px}
#ksa-v3 .day-count{font-size:12px}
#ksa-v3 .day-content{padding:10px 10px 12px}
#ksa-v3 .interval-summary{grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;min-height:74px;padding:12px}
#ksa-v3 .interval-photo,#ksa-v3 .interval-teacher .teacher-photo-fallback{width:38px;height:38px}
#ksa-v3 .interval-teacher{gap:8px}
#ksa-v3 .interval-teacher-copy strong{font-size:14px}
#ksa-v3 .interval-time{min-width:86px}
#ksa-v3 .interval-time strong{font-size:16px}
#ksa-v3 .interval-slots{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 12px 13px}
}
#ksa-v3 .week-page{display:block}
#ksa-v3 .week-page[hidden],#ksa-v3 .week-detail .day-summary[hidden]{display:none!important}
#ksa-v3 .week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:12px 0 20px}
#ksa-v3 .week-day{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:94px;padding:12px 4px;border:1px solid #ded5ee;border-radius:16px;background:#fff;color:#40334f;font:inherit;cursor:pointer}
#ksa-v3 .week-day strong{font-size:24px;line-height:1.2}
#ksa-v3 .week-day small{font-size:11px;color:#36735e}
#ksa-v3 .week-day[aria-pressed="true"]{background:#7452cb;color:#fff;border-color:#7452cb;box-shadow:0 6px 18px #7452cb26}
#ksa-v3 .week-day[aria-pressed="true"] small{color:#fff}
#ksa-v3 .week-day:disabled{background:#f5f3f6;color:#918c98;border-color:#eeebf0;cursor:default}
#ksa-v3 .week-day:focus-visible{outline:3px solid #b9a2ee;outline-offset:3px}
#ksa-v3 .week-day-title{font-size:20px;margin:0 0 12px}
#ksa-v3 .week-detail .availability-day{width:100%;margin:0}
#ksa-v3 .week-detail .interval-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
@media(max-width:600px){#ksa-v3 .week-days{gap:4px}#ksa-v3 .week-day{min-height:82px;border-radius:12px;padding:10px 2px;font-size:13px}#ksa-v3 .week-day strong{font-size:21px}#ksa-v3 .week-day small{font-size:9px}#ksa-v3 .week-detail .interval-list{grid-template-columns:1fr}}
#ksa-v3 .teacher-day-list{display:grid;gap:14px;padding:0;border:0;background:none;box-shadow:none}
#ksa-v3 .teacher-day-card{padding:18px;border:1px solid #e6ddf2;border-radius:22px;background:#fff}
#ksa-v3 .teacher-day-header{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-size:18px}
#ksa-v3 .teacher-day-header img{width:48px;height:48px;object-fit:cover;border-radius:50%}
#ksa-v3 .teacher-day-slots{display:flex;flex-wrap:wrap;gap:9px}
#ksa-v3 .teacher-day-slots .slot{min-width:76px;min-height:46px;flex:0 0 auto}
#ksa-v3 .teacher-day-period{border-top:1px solid #eee8f5;margin-top:10px;padding-top:10px}
#ksa-v3 .teacher-day-period summary{cursor:pointer;padding:10px 0;font-weight:600}
#ksa-v3 .teacher-day-period[open] summary{margin-bottom:6px}
