:root {
    --app-primary: var(--brand-primary, #5b35b5);
    --app-primary-dark: var(--brand-primary-hover, #45278b);
    --app-ink: var(--brand-ink, #272035);
    --app-muted: var(--brand-muted, #716a7d);
    --app-paper: var(--brand-paper, #faf8f4);
    --app-line: var(--brand-border, #e9e5ed);
    --app-lavender: var(--brand-lavender, #e8def8);
    --app-sage: #edf3ec;
    --app-radius: 24px;
    --app-motion: 220ms cubic-bezier(.2,.7,.3,1);
    font-family: Heebo, Arial, sans-serif;
    color: var(--app-ink);
    background: var(--app-paper);
    color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, input, select, textarea { touch-action: manipulation; }
button { color: inherit; }
a { color: var(--app-primary); text-decoration: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:active:not(:disabled) { transform: scale(.98); }
button, a { transition: background-color var(--app-motion), color var(--app-motion), opacity var(--app-motion), transform var(--app-motion); }
:focus-visible { outline: 3px solid #ae8ce9; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -80px; right: 16px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 8px; }
.app-header { height: 90px; padding: max(20px, env(safe-area-inset-top)) 48px 20px; border-bottom: 1px solid var(--app-line); background: var(--brand-chrome, #fffefa); display: flex; align-items: center; gap: 30px; position: sticky; top: 0; z-index: 20; }
.brand-link { display: flex; align-items: center; width: 210px; flex-shrink: 0; }
.brand-link img { object-fit: contain; max-width: 100%; }
.workspace-name { font-weight: 600; }
.workspace-name span { font-size: 12px; font-weight: 400; display: inline-block; margin-inline-start: 12px; padding: 3px 10px; border: 1px solid var(--app-line); border-radius: 20px; color: var(--app-muted); }
.avatar-link { margin-inline-start: auto; background: #e8ddf7; color: var(--app-primary); border: 3px solid #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 1px #e8ddf7; }
.app-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); max-width: 1600px; margin: auto; min-height: calc(100dvh - 90px); }
.side-nav { padding: 42px 24px; border-inline-end: 1px solid var(--app-line); position: sticky; top: 90px; height: calc(100dvh - 90px); display: flex; flex-direction: column; gap: 8px; }
.nav-item { border: 0; background: transparent; display: flex; align-items: center; text-align: right; gap: 14px; min-height: 52px; padding: 12px 16px; border-radius: 14px; color: var(--app-muted); font-weight: 500; }
.nav-item.current { color: var(--app-primary); background: var(--app-lavender); font-weight: 600; }
.nav-item:hover { background: #ede9f0; }
.primary-button, .quiet-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 13px; min-height: 48px; padding: 12px 20px; font-weight: 500; line-height: 1.5; }
.primary-button { color: white; background: var(--app-primary); }
.primary-button:hover { background: var(--app-primary-dark); }
.quiet-button { color: var(--app-primary); background: var(--app-lavender); }
.quiet-button:hover { background: #e3d9f3; }
.side-create { margin-top: 22px; }
.sidebar-note { margin-top: auto; padding: 42px 7px 0; font-size: 12px; color: var(--app-muted); }
.sidebar-note p { font-size: 12px; margin: 10px 0; }
.sidebar-note a { font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #799466; border-radius: 50%; margin-inline-end: 6px; }
#app-main { min-width: 0; padding: 48px clamp(24px, 4vw, 64px) 60px; outline: none; }
.view-section { max-width: 1050px; margin: auto; animation: view-enter 320ms ease both; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.eyebrow { color: var(--app-primary); font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-bottom: 8px; }
h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.35; letter-spacing: -1.3px; margin-bottom: 10px; }
.page-heading > div > p:last-child { color: var(--app-muted); }
h2 { font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -.5px; }
.home-layout { display: grid; grid-template-columns: 1.07fr 1fr; gap: 24px; }
.next-card { min-width: 0; padding: 28px; background: #35214f; border-radius: var(--app-radius); color: #fff; position: relative; overflow: hidden; }
.next-card::after { content: ''; width: 200px; height: 200px; border: 40px solid #ffffff06; border-radius: 70px; transform: rotate(-32deg); position: absolute; inset-inline-end: -90px; bottom: 20px; pointer-events: none; }
.next-card-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #dbd0e9; align-items: center; }
.light-label { display: inline-flex; align-items: center; border: 1px solid #ffffff28; border-radius: 20px; padding: 4px 9px; }
.light-label .status-dot { background: #c8d7b2; }
.next-time { font-size: 46px; font-weight: 500; line-height: 1; margin-top: 28px; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.next-time span { display: inline-block; font-size: 16px; margin-inline-start: 12px; color: #cfc0e0; letter-spacing: 0; }
#next-title { font-size: 26px; margin-top: 18px; overflow-wrap: anywhere; }
#next-content > p { color: #dbd0e9; font-size: 14px; margin-top: 3px; }
.next-detail { color: white; border: 0; background: #ffffff13; min-height: 46px; border-radius: 10px; display: inline-flex; align-items: center; gap: 18px; padding: 10px 13px; margin-top: 23px; position: relative; z-index: 1; font-size: 13px; }
.next-detail:hover { background: #ffffff25; }
.next-card-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff1f; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #cabbdc; }
.next-card-bottom svg { width: 17px; height: 17px; }
.next-rest { margin-top: 25px; width: 50px; height: 50px; background: #ffffff12; display: grid; place-items: center; border-radius: 50%; }
.day-summary { border: 1px solid var(--app-line); background: #fffefa; border-radius: var(--app-radius); padding: 28px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading > span { font-size: 11px; color: var(--app-muted); }
.summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 9px; }
.summary-stats b { display: block; font-weight: 500; font-size: 40px; line-height: 1.3; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.summary-stats span { display: block; color: var(--app-muted); font-size: 13px; margin-top: 4px; }
.summary-stats .revenue-summary { grid-column: span 2; padding-top: 21px; border-top: 1px solid var(--app-line); }
.revenue-summary b { font-size: 32px; color: var(--app-primary); }
.summary-footnote { font-size: 11px; color: var(--app-muted); margin-top: 17px; }
.home-schedule { margin-top: 40px; }
.home-schedule .section-heading { margin-bottom: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: transparent; border: 0; padding: 10px 0; min-height: 44px; color: var(--app-primary); white-space: nowrap; }
.text-button svg { width: 17px; }
.appointment-list { display: grid; gap: 12px; }
.appointment-card { width: 100%; background: #fff; border: 1px solid var(--app-line); border-radius: 16px; display: grid; grid-template-columns: 62px 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 20px; text-align: right; }
.appointment-card:hover { border-color: #c5b5dc; background: #fffdfd; }
.appointment-card > svg { width: 18px; color: #948b9d; }
.appointment-time { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.appointment-time small { display: block; font-size: 12px; font-weight: 400; color: var(--app-muted); }
.person-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #eee6f6; color: #70548d; font-size: 17px; font-weight: 500; }
.appointment-card:nth-child(3n + 2) .person-avatar { background: #e8eee3; color: #60714f; }
.appointment-card:nth-child(3n) .person-avatar { background: #f6e8dd; color: #8b6547; }
.appointment-info { min-width: 0; }
.appointment-info strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.appointment-info > span { display: block; color: var(--app-muted); font-size: 12px; overflow-wrap: anywhere; }
.appointment-info small { font-size: 11px; color: var(--app-muted); }
.appointment-status { font-size: 11px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; color: #6a527b; border-radius: 8px; background: #f1ebf8; }
.completed .appointment-status { color: #4e6b45; background: #edf3e9; }
.appointment-status svg { width: 14px; height: 14px; }
.cancelled .appointment-status { color: #875e59; background: #f6ece9; }
.cancelled .appointment-info strong { text-decoration: line-through; color: var(--app-muted); }
.data-note { font-size: 11px; text-align: center; color: var(--app-muted); margin-top: 30px; }
.calendar-panel { background: #fffefa; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 28px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.calendar-toolbar h2 { font-size: 21px; }
.calendar-toolbar p { color: var(--app-muted); font-size: 12px; margin-top: 3px; }
.day-controls { display: flex; gap: 4px; align-items: center; }
.day-controls .quiet-button { min-height: 44px; padding: 8px 14px; background: #f3eff7; font-size: 13px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: var(--app-muted); flex-shrink: 0; }
.icon-button:hover { background: #f1edf5; }
.reverse svg { transform: rotate(180deg); }
.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 28px 0 24px; }
.date-day { border: 1px solid transparent; border-radius: 14px; background: #f6f4f7; min-width: 0; padding: 11px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--app-muted); min-height: 84px; }
.date-day > span { font-size: 12px; }
.date-day b { font-size: 20px; font-weight: 500; color: var(--app-ink); }
.date-day i { width: 4px; height: 4px; border-radius: 100%; margin-top: 4px; }
.date-day i.has-appointments { background: var(--app-primary); }
.date-day.selected { background: var(--app-primary); color: #e6dafb; }
.date-day.selected b { color: white; }
.date-day.selected i.has-appointments { background: white; }
.date-day.is-today:not(.selected) { border-color: #cbb9e8; }
.filter-row { display: flex; gap: 9px; align-items: center; padding-bottom: 22px; color: var(--app-muted); font-size: 12px; }
.filter-row select { width: auto; max-width: 170px; background-color: transparent; border: 0; color: var(--app-ink); min-height: 44px; padding: 8px; border-radius: 8px; }
.filter-row > span { margin-inline-start: auto; }
.empty-state { text-align: center; padding: 18px 18px 30px; }
.empty-state img { object-fit: contain; margin-bottom: 4px; }
.empty-state h3 { font-size: 20px; font-weight: 500; }
.empty-state p { color: var(--app-muted); font-size: 13px; margin: 6px 0 16px; }
.business-card { background: #fffefa; border: 1px solid var(--app-line); border-radius: 28px; padding: 40px; text-align: center; max-width: 640px; margin: auto; }
.business-card img { object-fit: contain; display: block; margin: 0 auto 20px; max-width: 100%; }
.business-card h2 { font-size: 28px; }
.business-card > p { max-width: 420px; margin: 16px auto; color: var(--app-muted); }
.business-facts { display: grid; gap: 8px; font-size: 12px; color: var(--app-muted); margin: 25px auto; }
.business-card > a { display: flex; width: fit-content; margin: 12px auto; }
.bottom-nav { display: none; }
.sheet { background: #fffefa; color: var(--app-ink); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 56px); padding: 30px; border: 0; border-radius: 26px; box-shadow: 0 24px 100px #20133133; overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-enter 250ms cubic-bezier(.2,.7,.3,1); }
.sheet::backdrop { background: #211a32a6; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.sheet-handle { display: none; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sheet-heading .eyebrow { margin: 0; }
.sheet-heading h2 { margin-top: 6px; font-size: 25px; }
.sheet-heading .icon-button { background: #f0ecf3; }
.detail-person { text-align: center; }
.person-avatar.large { width: 64px; height: 64px; border-radius: 21px; font-size: 24px; margin: 0 auto 12px; }
.detail-person h2 { font-size: 27px; overflow-wrap: anywhere; }
.detail-status { display: inline-block; border-radius: 20px; font-size: 12px; background: var(--app-lavender); padding: 4px 11px; color: var(--app-primary); margin-top: 8px; }
.detail-status.completed { background: #edf3e9; color: #4e6b45; }
.detail-status.cancelled { background: #f6ece9; color: #875e59; }
.detail-service { text-align: center; font-size: 16px; font-weight: 500; margin-top: 20px; overflow-wrap: anywhere; }
.detail-facts { margin: 25px 0; border-block: 1px solid var(--app-line); }
.detail-facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; }
.detail-facts > div + div { border-top: 1px solid var(--app-line); }
.detail-facts dt { color: var(--app-muted); font-size: 13px; }
.detail-facts dd { margin: 0; text-align: left; font-size: 14px; font-weight: 500; }
.detail-notes { background: #f5f2f7; padding: 18px; border-radius: 16px; margin: 20px 0; overflow-wrap: anywhere; }
.detail-notes h3 { font-size: 14px; font-weight: 600; }
.detail-notes p { margin-top: 13px; font-size: 13px; white-space: pre-wrap; }
.detail-notes p b { display: block; font-weight: 500; }
.detail-notes p span { display: block; margin-top: 4px; color: var(--app-muted); }
.sheet-actions { margin-top: 28px; }
.full-width { width: 100%; }
.secondary-actions { display: flex; gap: 10px; margin-top: 12px; }
.secondary-actions > button { flex: 1; }
.text-danger { background: transparent; border: 0; color: #a24741; min-height: 48px; border-radius: 12px; }
.text-danger:hover { background: #fbefec; }
.sheet-note { font-size: 11px; color: var(--app-muted); margin-top: 16px; text-align: center; }
#booking-form > label, .form-grid label { display: block; font-size: 13px; font-weight: 500; margin: 16px 0 7px; }
#booking-form label span { font-weight: 400; color: var(--app-muted); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { border: 1px solid #d8cfdf; border-radius: 11px; background: #fff; color: var(--app-ink); padding: 11px 13px; min-height: 48px; width: 100%; min-width: 0; }
input[type="date"] { direction: ltr; text-align: right; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--app-muted); margin-top: 10px; }
.question-fieldset { padding: 0; border: 0; margin: 24px 0 8px; }
.question-fieldset legend { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.question-fieldset legend small { color: var(--app-muted); font-weight: 400; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 48px; border: 1px solid var(--app-line); border-radius: 11px; margin-top: 8px; padding: 12px; cursor: pointer; font-size: 13px; }
.choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--app-primary); flex-shrink: 0; }
.choice:has(input:checked) { border-color: #ab8fcf; background: #f1ebf8; }
#booking-form .choice span { color: var(--app-ink); }
.booking-total { background: #f1ecf7; padding: 13px; border-radius: 11px; font-size: 13px; color: var(--app-primary); margin-top: 20px; }
.form-error { font-size: 13px; color: #a24741; margin: 14px 0; min-height: 8px; }
.confirm-sheet { max-width: 440px; }
.confirm-sheet h2 { margin-bottom: 12px; }
.confirm-sheet > p { color: var(--app-muted); font-size: 14px; }
.confirm-buttons { display: grid; gap: 10px; margin-top: 25px; }
.danger-button { background: #a24741; color: white; }
.toast { position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 10px); background: #30263f; color: white; padding: 14px 22px; border-radius: 16px; font-size: 13px; z-index: 100; opacity: 0; visibility: hidden; transition: opacity var(--app-motion), transform var(--app-motion), visibility var(--app-motion); max-width: calc(100vw - 32px); width: max-content; text-align: center; box-shadow: 0 8px 24px #211a3226; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@keyframes view-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1450px) { .app-header { padding-inline: max(48px, calc((100vw - 1504px) / 2)); } }
@media (max-width: 1100px) {
    .app-header { padding-inline: 28px; }
    .brand-link { width: 176px; }
    .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
    .side-nav { padding-inline: 16px; }
    #app-main { padding: 36px 26px 50px; }
    .home-layout { gap: 16px; }
    .next-card, .day-summary { padding: 22px; }
    .day-summary .section-heading { flex-wrap: wrap; gap: 2px; }
    .appointment-card { gap: 10px; padding: 17px 14px; grid-template-columns: 52px 38px minmax(0,1fr) auto 16px; }
    .person-avatar { width: 38px; height: 38px; border-radius: 12px; }
    .appointment-status { font-size: 10px; padding: 4px 6px; }
}
@media (max-width: 820px) {
    .app-header { height: 76px; padding: max(15px, env(safe-area-inset-top)) 24px 15px; }
    .brand-link { width: 155px; }
    .app-shell { display: block; }
    .side-nav { display: none; }
    #app-main { max-width: 780px; margin: auto; padding: 30px 24px calc(110px + env(safe-area-inset-bottom)); }
    .workspace-name { font-size: 13px; }
    .workspace-name span { display: block; margin: 2px 0 0; padding: 0; border: 0; font-size: 10px; }
    .app-header { gap: 18px; }
    .bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); background: #fffefa; border-top: 1px solid var(--app-line); padding: 8px 14px max(8px,env(safe-area-inset-bottom)); box-shadow: 0 -6px 30px #30263f05; }
    .bottom-nav > button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 60px; border: 0; background: transparent; color: var(--app-muted); font-size: 11px; border-radius: 13px; }
    .bottom-nav > button.current { color: var(--app-primary); font-weight: 600; background: #f4eff9; }
    .bottom-nav > button svg { width: 22px; height: 22px; }
    .bottom-nav > .mobile-create { color: var(--app-primary); }
    .mobile-create svg { background: var(--app-primary); color: white; border-radius: 9px; width: 30px !important; height: 30px !important; padding: 4px; }
    .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .app-header { padding-inline: 20px; gap: 12px; height: 74px; }
    .brand-link { width: 130px; }
    .brand-link img { width: 130px; height: auto; }
    .workspace-name { margin-inline-start: auto; font-size: 11px; }
    .avatar-link { width: 44px; height: 44px; font-size: 14px; margin-inline-start: 0; }
    #app-main { padding: 28px 20px calc(104px + env(safe-area-inset-bottom)); }
    .page-heading { margin-bottom: 25px; }
    h1 { font-size: 29px; max-width: 310px; letter-spacing: -1px; margin-bottom: 8px; }
    .page-heading > div > p:last-child { font-size: 13px; }
    .eyebrow { font-size: 11px; }
    .desktop-create { display: none; }
    .home-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
    .next-card { padding: 16px 14px; border-radius: 20px; display: flex; flex-direction: column; }
    .next-card-top { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 11px; }
    .light-label { padding: 3px 8px; }
    .next-time { margin-top: 19px; font-size: 33px; letter-spacing: -1px; }
    .next-time span { display: block; font-size: 12px; margin: 6px 0 0; }
    #next-title { margin-top: 14px; font-size: 18px; line-height: 1.4; }
    #next-content { flex: 1; }
    #next-content > p { font-size: 12px; line-height: 1.65; margin-top: 5px; }
    .next-card-bottom { display: none; }
    .next-detail { margin-top: 15px; gap: 5px; padding: 9px 8px; width: 100%; min-height: 44px; font-size: 11px; justify-content: space-between; }
    .next-detail svg { width: 16px; height: 16px; }
    .next-rest { margin-top: 17px; width: 38px; height: 38px; }
    .day-summary { padding: 16px 14px; border-radius: 20px; }
    .day-summary .section-heading { margin-bottom: 14px; display: block; }
    .day-summary .section-heading > span { display: block; margin-top: 4px; font-size: 10px; }
    .day-summary h2 { font-size: 15px; line-height: 1.5; }
    .summary-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 9px; padding-top: 2px; }
    .summary-stats b { font-size: 28px; letter-spacing: -1px; }
    .summary-stats span { font-size: 11px; line-height: 1.65; }
    .summary-stats .revenue-summary { grid-column: 1 / -1; padding: 13px 0 0; border-top: 1px solid var(--app-line); border-inline-start: 0; }
    .revenue-summary b { font-size: 25px; overflow-wrap: anywhere; }
    .summary-footnote { font-size: 10px; margin-top: 13px; line-height: 1.65; }
    .home-schedule { margin-top: 30px; }
    .home-schedule h2 { font-size: 19px; }
    .home-schedule .eyebrow { margin-bottom: 2px; }
    .text-button { font-size: 11px; gap: 2px; }
    .appointment-card { grid-template-columns: 49px minmax(0,1fr) 18px; gap: 12px; padding: 17px 15px; position: relative; border-radius: 15px; }
    .appointment-card > .person-avatar { display: none; }
    .appointment-info strong { font-size: 14px; padding-inline-end: 14px; }
    .appointment-info > span { font-size: 11px; margin-top: 2px; }
    .appointment-info small { font-size: 10px; }
    .appointment-time { font-size: 15px; align-self: start; padding-top: 2px; }
    .appointment-time small { font-size: 10px; margin-top: 3px; }
    .appointment-status { grid-column: 2; grid-row: 2; width: fit-content; margin-top: -5px; font-size: 10px; padding: 2px 7px; }
    .appointment-card > svg { grid-column: 3; grid-row: 1 / span 2; }
    .calendar-panel { margin-inline: -5px; padding: 18px 14px; border-radius: 20px; }
    .calendar-toolbar { gap: 4px; }
    .calendar-toolbar h2 { font-size: 17px; }
    .calendar-toolbar p { font-size: 11px; }
    .day-controls { gap: 0; }
    .day-controls .icon-button { width: 44px; }
    .day-controls .quiet-button { padding-inline: 10px; font-size: 12px; }
    .date-strip { gap: 4px; margin: 22px 0 12px; }
    .date-day { min-height: 79px; border-radius: 12px; padding: 11px 0 7px; }
    .date-day span { font-size: 10px; }
    .date-day b { font-size: 19px; }
    .filter-row { padding-bottom: 16px; gap: 4px; font-size: 11px; flex-wrap: wrap; }
    .filter-row > span { font-size: 10px; }
    .filter-row select { font-size: 11px; padding-inline: 3px; max-width: 139px; }
    .calendar-panel .appointment-card { padding-inline: 11px; gap: 8px; }
    .business-card { padding: 24px 20px; }
    .business-card h2 { font-size: 24px; }
    .business-card p { font-size: 13px; }
    .business-card .primary-button { font-size: 12px; }
    .sheet { width: 100%; max-width: 100%; max-height: calc(100dvh - max(18px,env(safe-area-inset-top))); margin: auto 0 0; border-radius: 25px 25px 0 0; padding: 12px 24px max(28px,env(safe-area-inset-bottom)); }
    .sheet-handle { display: block; width: 36px; height: 4px; border-radius: 4px; background: #d9d0e3; margin: 0 auto 12px; }
    .sheet-heading { margin-bottom: 18px; }
    .sheet-heading h2 { font-size: 24px; }
    .confirm-sheet { padding-top: 14px; padding-bottom: max(28px,env(safe-area-inset-bottom)); }
    .confirm-sheet h2 { margin-top: 20px; }
    input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px; }
    .choice { font-size: 13px; }
    .sheet-note { font-size: 10px; }
    .form-grid { grid-template-columns: 1.3fr 1fr; gap: 10px; }
    .toast { font-size: 12px; }
}
@media (max-width: 380px) {
    #app-main { padding-inline: 16px; }
    .app-header { padding-inline: 16px; }
    .workspace-name { font-size: 10px; }
    .brand-link, .brand-link img { width: 121px; }
    .avatar-link { width: 44px; height: 44px; }
    h1 { font-size: 27px; }
    .summary-stats { gap: 8px; }
    .summary-stats .revenue-summary { padding-inline-start: 0; }
    .summary-stats b { font-size: 27px; }
    .revenue-summary b { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    button:active:not(:disabled) { transform: none; }
}
/* Primary header continues the browser's status surface. */
.app-header { background: var(--brand-primary); color: #fff; border-bottom-color: rgb(255 255 255 / .15); }
.app-header .workspace-name span { color: #eae1fa; border-color: rgb(255 255 255 / .3); }
.app-header .avatar-link { background: rgb(255 255 255 / .16); color: #fff; border-color: rgb(255 255 255 / .4); box-shadow: none; }
.app-header :focus-visible { outline-color: #fff; }
