/* Scoped form refinement: no changes to Today or schedule cards. */
.refined-form { border-radius:16px; padding:24px; max-width:620px; margin-top:20px; }
.refined-form .form-section-title { font-size:1rem; letter-spacing:0; margin:20px 0 12px; padding-top:14px; border-top:1px solid var(--line); }
.refined-form > .form-section-title:first-of-type { margin-top:0; padding-top:0; border-top:0; }
.refined-form label { font-size:.85rem; font-weight:650; }
.refined-form input:not([type=checkbox]):not([type=radio]), .refined-form select { border-radius:10px; min-height:46px; }
.refined-form .duration-presets { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 10px; }
.refined-form .duration-presets button { min-height:40px; }
.refined-form .duration-presets button[aria-pressed=true] { background:var(--teal); border-color:var(--teal); color:white; }
.refined-form > button.primary { width:100%; margin-top:20px; }
.refined-form .form-cancel { display:flex; width:100%; margin-top:8px; justify-content:center; }
.refined-form .form-review, .refined-form .form-guidance { border-radius:12px; background:#edf6f1; padding:14px; margin:16px 0 0; }
.refined-form .form-review h2 { font-size:.9rem; margin:0 0 7px; letter-spacing:0; }
.refined-form .form-review p { font-size:.9rem; overflow-wrap:anywhere; }
.refined-form .form-review .planned-end { display:block; margin:7px 0 0; padding:0; background:transparent; }
.refined-form .form-guidance { font-size:.85rem; margin:0 0 16px; }
.refined-form .form-child-name { font-weight:700; margin-bottom:12px; }
.refined-form .validation:empty { display:none; }
.form-intro { max-width:620px; }
.refined-filters { border-radius:16px; padding:20px; gap:14px; }
.refined-filters label { font-size:.85rem; font-weight:650; }
@media (max-width:600px) {
 .refined-form { border:0; box-shadow:none; padding:18px 0; background:transparent; margin-top:8px; }
 .refined-form .form-grid { gap:10px; }
 .refined-filters { padding:16px; }
}

/* Local 24-hour picker: progressive enhancement; no nested dialog. */
.time-picker-input{display:flex;align-items:center;gap:.4rem}.time-picker-input>input{min-width:0;flex:1}.time-picker-toggle{flex:0 0 44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:.5rem}.time-picker-toggle[hidden],.time-picker-region[hidden]{display:none}.time-picker-region{margin-top:.5rem;padding:.65rem;border:1px solid var(--border,#d7dfdc);border-radius:12px;background:var(--surface,#fff)}.time-picker-selects{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.time-picker-selects label{display:grid;gap:.25rem}.time-picker-selects select{min-height:44px;font-variant-numeric:tabular-nums}.time-picker-actions{display:flex;gap:.5rem;margin-top:.65rem}.time-picker-actions>.button{flex:1;min-height:44px}
.booking-create-actions{display:flex;gap:.6rem}.booking-create-actions>.button{flex:1;margin:0}.booking-create-form .form-section-title{margin-top:.65rem}.booking-create-form>label{margin-bottom:0}
@media(max-width:700px){.booking-create-form{padding-bottom:100px;scroll-padding-bottom:170px}.booking-create-actions{position:fixed;z-index:25;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom));padding:10px max(16px,env(safe-area-inset-left));background:var(--surface,#fff);border-top:1px solid var(--line,#d7dfdc);box-shadow:0 -4px 14px #0000000a}.booking-create-actions>.button{min-height:46px}.booking-create-form input,.booking-create-form select{scroll-margin-bottom:180px}.appointment-actions-dialog .booking-create-actions{position:sticky;bottom:0;left:auto;right:auto;box-shadow:none}}
/* App-only appointment controls. The clock opens below the two-column row. */
.time-picker-region{min-width:0;max-width:100%;box-sizing:border-box}
.time-picker-selects{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.time-picker-selects label,.time-picker-selects select{min-width:0;max-width:100%}
.booking-choice[hidden],select[data-booking-choice][hidden],.booking-choice [hidden]{display:none!important}
@media(max-width:700px){
 .appointment-start-field:has(.time-picker-region:not([hidden])){grid-column:1/-1}
 .time-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .time-picker-actions>.button{width:100%;min-width:0;white-space:normal;padding:.55rem .3rem}
 .appointment-form :is(select,input[type=text],input[type=search],input[type=number],input[type=date]){font-size:max(16px,1rem)}
 .booking-choice{min-width:0;margin:0;color:var(--ink)}
 .booking-choice-trigger,.booking-choice-option{width:100%;min-width:0;min-height:44px;text-align:left;white-space:normal;overflow-wrap:anywhere}
 .booking-choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:.55rem;padding:.6rem .75rem;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font-size:max(16px,1rem)}
 .booking-choice-trigger::-webkit-details-marker{display:none}
 .booking-choice-trigger::after{content:"";border:solid currentColor;border-width:0 2px 2px 0;width:.42rem;height:.42rem;flex:none;transform:rotate(45deg);margin:0 .12rem .2rem 0}
 .booking-choice[open]>.booking-choice-trigger::after{transform:rotate(225deg);margin-bottom:-.2rem}
 .booking-choice-trigger[aria-invalid=true]{outline:2px solid currentColor;outline-offset:2px}
 .booking-choice-body{padding:.45rem;border:1px solid var(--line);border-radius:10px;margin-top:.3rem;background:var(--paper);color:var(--ink)}
 .booking-choice-options{display:grid;align-content:start;gap:.15rem;max-height:min(32vh,15rem);overflow:auto;overscroll-behavior:contain}
 .booking-choice-option{padding:.45rem .55rem;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);font:inherit;line-height:1.25}
 .booking-choice-option[aria-pressed=true]{background:var(--paper);color:var(--ink);border-color:currentColor;font-weight:750}
 .booking-choice-option:focus-visible,.booking-choice-trigger:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
 .booking-choice-option:disabled{opacity:.55}
 .booking-choice-body>input{margin:0 0 .4rem}
 .booking-choice-empty{margin:.25rem;font-size:.9rem}
}