:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #17233f;
    background: #fffaf5;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 50% 0, #ffead8 0, #fffaf5 48rem);
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.demo-shell { max-width: 1120px; margin: 0 auto 80px; padding: 140px 24px 0; }
.demo-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.demo-eyebrow, .demo-step { color: #ef7611; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.demo-intro h1 { margin: 12px 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
.demo-intro > p:last-child { color: #718096; line-height: 1.65; }
.demo-card { border: 1px solid #f0e5dc; border-radius: 22px; background: #fff; box-shadow: 0 22px 65px #37230b12; }

.demo-calendar { padding: 30px; border-bottom: 1px solid #f0e9e3; }
.demo-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-calendar-heading h2, .demo-slots-panel h2, .demo-admin-toolbar h2, .demo-bookings-card h2 { margin: 5px 0 0; font-size: 21px; }
.demo-calendar-heading .demo-step, .demo-slots-panel .demo-step { margin: 0; }
.demo-month-controls { display: flex; align-items: center; gap: 12px; }
.demo-month-controls strong { min-width: 130px; text-align: center; text-transform: capitalize; }
.demo-month-controls button { width: 36px; height: 36px; border: 1px solid #f0e5dc; border-radius: 50%; background: #fff; color: #17233f; font-size: 23px; line-height: 1; }
.demo-month-controls button:hover:not(:disabled) { border-color: #ef7611; color: #ef7611; }
.demo-month-controls button:disabled { cursor: default; opacity: .35; }

.demo-weekdays, .demo-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.demo-weekdays { margin: 24px 0 10px; color: #8993a3; font-size: 12px; text-align: center; }
.demo-day { min-height: 48px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: #27344a; }
.demo-day.is-available { border-color: #f3e8df; }
.demo-day.is-available:hover, .demo-day.is-selected { border-color: #ef7611; background: #fff2e6; color: #d65b00; }
.demo-day:disabled { cursor: default; color: #c6cbd2; }
.demo-timezone { margin: 18px 0 0; color: #8993a3; font-size: 12px; }

.demo-slots-panel { padding: 30px; }
.demo-slots-panel h2 { margin-bottom: 18px; }
.demo-slots { display: flex; flex-wrap: wrap; gap: 9px; }
.demo-slot { min-width: 82px; padding: 10px 15px; border: 1px solid #f0e5dc; border-radius: 10px; background: #fff; color: #27344a; }
.demo-slot:hover, .demo-slot.is-selected { border-color: #ef7611; background: #fff2e6; color: #d65b00; }
.demo-muted, .demo-footnote { color: #8993a3; font-size: 14px; line-height: 1.6; }
.demo-form { display: grid; gap: 14px; }
.demo-form > .demo-step { margin: 0; }
.demo-form label { display: grid; gap: 7px; color: #48566c; font-size: 13px; font-weight: 650; }
.demo-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #e6e9ed; border-radius: 9px; background: #fff; color: #17233f; }
.demo-form input:focus { outline: 2px solid #f8c18d; border-color: #ef7611; }
.demo-submit, .demo-secondary { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 999px; background: #ef7611; color: #fff; font-weight: 700; }
.demo-submit:hover { background: #d96300; }
.demo-feedback { min-height: 1.3em; margin: 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.demo-feedback.is-error { color: #b42318; }
.demo-feedback.is-success { color: #14804a; }
.demo-footnote { max-width: 760px; margin: 20px auto; text-align: center; }
.demo-toast {
    position: fixed;
    z-index: 50;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: min(440px, calc(100vw - 32px));
    min-height: 76px;
    padding: 16px 48px 16px 16px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #d5efdf;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px #10254926;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .22s ease, transform .22s ease;
}
.demo-toast.is-visible { opacity: 1; transform: translateY(0); }
.demo-toast[data-kind="warning"] { border-color: #f5dfb7; }
.demo-toast-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #e8f7ed;
    color: #16834b;
}
.demo-toast-icon svg { width: 23px; height: 23px; }
.demo-toast[data-kind="warning"] .demo-toast-icon { background: #fff4df; color: #b76a00; }
.demo-toast p { margin: 0; color: #34445d; font-size: 14px; font-weight: 550; line-height: 1.55; }
.demo-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #78859a;
    font-size: 22px;
    line-height: 1;
}
.demo-toast-close:hover { background: #f4f6fa; color: #17233f; }
.demo-toast-close:focus-visible { outline: 2px solid #ef7611; outline-offset: 2px; }

.demo-admin-shell { max-width: 1000px; }
.demo-login-card { max-width: 460px; margin: 0 auto; padding: 28px; }
.demo-login-card h2 { margin: 0; font-size: 20px; }
.demo-admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 18px; }
.demo-secondary { min-height: 40px; background: #fff; border: 1px solid #eadfd7; color: #455369; }
.demo-secondary:hover { border-color: #ef7611; color: #d65b00; }
.demo-settings, .demo-bookings-card { margin-bottom: 22px; padding: 28px; }
.demo-settings-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.demo-schedule { display: grid; gap: 8px; }
.demo-schedule-row { display: grid; grid-template-columns: minmax(120px, 1fr) 32px minmax(120px, 1fr) minmax(90px, auto); align-items: center; gap: 10px; }
.demo-schedule-row label { display: flex; align-items: center; gap: 7px; }
.demo-schedule-row input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: #ef7611; }
.demo-schedule-row input[type="time"] { min-height: 38px; }
.demo-schedule-row.is-disabled input[type="time"] { opacity: .45; }
.demo-save-schedule { justify-self: start; }
.demo-admin-weekdays, .demo-admin-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.demo-admin-weekdays { margin: 22px 0 8px; color: #8993a3; font-size: 12px; text-align: center; }
.demo-admin-day { min-width: 0; min-height: 112px; padding: 8px; border: 1px solid #f0e9e3; border-radius: 10px; background: #fff; }
.demo-admin-day-number { color: #59677e; font-size: 12px; }
.demo-admin-event { display: grid; gap: 4px; margin-top: 7px; padding: 7px; border-radius: 7px; background: #fff2e6; }
.demo-admin-event strong { overflow-wrap: anywhere; color: #9c4600; font-size: 11px; }
.demo-admin-event span { color: #718096; font-size: 10px; line-height: 1.4; }
.demo-cancel { justify-self: start; padding: 5px 8px; border: 1px solid #f1d2c8; border-radius: 999px; background: #fff; color: #b42318; font-size: 10px; }
.demo-cancel:hover { background: #fff3f0; }

@media (min-width: 760px) {
    .demo-booking-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); }
    .demo-booking-main .demo-calendar { border-right: 1px solid #f0e9e3; border-bottom: 0; }
    .demo-booking-main .demo-slots-panel { min-width: 0; }
}

@media (max-width: 600px) {
    .demo-toast { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
    .demo-shell { padding: 120px 14px 0; }
    .demo-calendar, .demo-slots-panel, .demo-settings, .demo-bookings-card { padding: 20px; }
    .demo-calendar-heading { align-items: flex-start; flex-direction: column; }
    .demo-days, .demo-weekdays { gap: 4px; }
    .demo-day { min-height: 40px; border-radius: 9px; }
    .demo-settings-row { grid-template-columns: 1fr; }
    .demo-schedule-row { grid-template-columns: 1fr 28px 1fr; gap: 6px; }
    .demo-schedule-row label { grid-column: 1 / -1; }
    .demo-schedule-row input[type="time"] { min-width: 0; }
    .demo-admin-weekdays, .demo-admin-calendar { grid-template-columns: repeat(7, minmax(88px, 1fr)); width: 720px; }
    .demo-bookings-card { overflow-x: auto; }
    .demo-cancel { justify-self: start; }
}

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