.patient-card .booking-wizard{background:#fff;color:#173a40;border:1px solid #d5e4e5;border-radius:16px;padding:clamp(16px,3vw,28px);margin:18px 0;box-shadow:0 8px 24px #173a4009}
.booking-wizard-heading{padding-bottom:18px;border-bottom:1px solid #dce8e8}.booking-kicker{font-size:12px;font-weight:750;letter-spacing:.09em;color:#08736e}.patient-card .booking-wizard h2{font-size:clamp(22px,3vw,28px);margin:6px 0 8px;color:#173a40}.patient-card .booking-wizard p{color:#4b646b;margin:8px 0;line-height:1.55}.booking-search{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-top:20px}.booking-step{min-width:0}.booking-step h3{display:flex;align-items:center;gap:9px;margin:0 0 16px;color:#173a40;font-size:17px}.booking-step h3>span{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#dcefeb;color:#075c57;font-size:14px;font-weight:750}.booking-field{display:grid;gap:7px;font-size:14px;font-weight:650;color:#173a40}.booking-wizard .booking-field select,.booking-wizard .booking-field input{display:block;box-sizing:border-box;width:100%;min-width:0;height:52px;min-height:52px;border:1px solid #a8c6c9;border-radius:10px;background:#f7fafb;color:#173a40;padding:0 14px;margin:0;font:inherit;font-size:16px;line-height:1.4}.booking-select-wrap{position:relative;display:block;min-width:0}.booking-wizard .booking-select-wrap select{-webkit-appearance:none;appearance:none;padding-right:44px;cursor:pointer;text-overflow:ellipsis}.booking-select-wrap::after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;border-right:2px solid #315a60;border-bottom:2px solid #315a60;transform:translateY(-70%) rotate(45deg);pointer-events:none}.booking-wizard .booking-field input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}.booking-wizard .booking-field input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}.booking-wizard .booking-field select:hover,.booking-wizard .booking-field input:hover{border-color:#08736e}@media(forced-colors:active){.booking-wizard .booking-select-wrap select{-webkit-appearance:auto;appearance:auto;padding-right:14px}.booking-select-wrap::after{display:none}}.booking-wizard .booking-find{margin-top:14px}.patient-card .booking-wizard .button{min-height:48px;border-radius:9px;font-size:15px}.booking-times,.booking-pending{border-top:1px solid #dce8e8;margin-top:22px;padding-top:20px;scroll-margin-top:20px}.booking-date-nav{display:grid;grid-template-columns:1fr minmax(0,2fr) 1fr;gap:10px;align-items:center;background:#f1f7f7;border:1px solid #dce8e8;border-radius:10px;padding:9px;text-align:center}.booking-date-nav strong{font-size:15px;line-height:1.4}.booking-day-link{font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;font-weight:650;color:#075c57;text-decoration:none;border-radius:7px}.booking-day-link:hover{background:#dcefeb}.booking-day-disabled{opacity:.5;cursor:default}.booking-day-disabled:hover{background:none}.booking-selected-service{font-weight:600}.booking-wizard fieldset.booking-time-fieldset{margin:16px 0;padding:0;border:0;min-width:0}.booking-time-fieldset legend{font-size:14px;color:#4b646b;font-weight:600;margin:0 0 8px}.booking-time-fieldset h4,.booking-review h4{font-size:16px;color:#173a40;margin:14px 0 10px}.booking-slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px;margin-bottom:18px}.booking-slot{display:flex;align-items:center;gap:9px;min-height:65px;padding:10px 12px;border:1px solid #b4cfd0;border-radius:10px;background:#fff;cursor:pointer;color:#173a40}.booking-slot>input[type=radio]{margin:0;flex:none;width:18px;height:18px;accent-color:#08736e}.booking-slot>span{display:grid;gap:3px;min-width:0}.booking-slot strong{font-size:17px;font-variant-numeric:tabular-nums}.booking-slot small{font-size:12px;color:#4b646b;overflow-wrap:anywhere}.booking-slot:hover{background:#f0f8f5}.booking-slot:has(input:checked){background:#dff2eb;border-color:#08736e;box-shadow:inset 0 0 0 1px #08736e}.booking-slot:focus-within,.booking-wizard :focus-visible{outline:3px solid #08736e;outline-offset:2px}.booking-review,.booking-empty,.booking-pending{background:#f2f7f7;border-radius:10px;padding:16px}.booking-review h4{margin-top:0}.booking-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0;color:#173a40;font-size:14px}.booking-consent input{width:19px;height:19px;flex:none;margin-top:2px;accent-color:#08736e}.booking-review button{margin-top:8px}.booking-closed a,.booking-empty a{color:#075c57;font-weight:650}
.public-booking-entry{min-height:calc(100vh - 82px);background:#edf5f5;padding:clamp(24px,5vw,60px) 0}.public-booking-entry .shell{max-width:850px}.public-booking-card{background:#fff;border:1px solid #d5e4e5;border-radius:20px;padding:clamp(22px,5vw,44px);box-shadow:0 12px 36px #173a400b}.public-booking-card h1{font-size:clamp(26px,4vw,40px);line-height:1.18;margin:10px 0 14px;color:#173a40}.public-booking-card p{color:#4b646b;font-size:16px;line-height:1.6;margin:8px 0 20px}.public-booking-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.public-booking-option{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #d5e4e5;border-radius:12px;background:#f7fafb}.public-booking-option h2{font-size:19px;margin:0;color:#173a40}.public-booking-option p{flex:1;margin:0;font-size:14px}.public-booking-option .button{min-height:48px;text-align:center;justify-content:center}.public-booking-support{border-top:1px solid #dce8e8;padding-top:18px;margin-top:20px}.public-booking-support a{color:#075c57;font-weight:650}.public-booking-card .booking-kicker{display:block}.public-booking-card .hero-buttons{flex-wrap:wrap}
@media(max-width:600px){.booking-search,.public-booking-options{grid-template-columns:1fr;gap:16px}.booking-date-nav{grid-template-columns:1fr 1fr}.booking-date-nav strong{grid-column:1/-1;grid-row:1}.booking-day-link{grid-row:2}.booking-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.booking-slot{padding:10px 8px;gap:6px}.booking-slot small{font-size:11px}.public-booking-entry{min-height:0}.booking-wizard .booking-field input{min-width:0;max-width:100%}}@media(max-width:340px){.booking-slot-grid{grid-template-columns:1fr}}

.booking-category-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.booking-category-choice{display:flex;align-items:center;min-height:44px;border:1px solid #a8c6c9;border-radius:9px;padding:8px 12px;color:#075c57;background:#fff;font-weight:650;text-decoration:none}.booking-category-choice[aria-current=true]{background:#dcefeb;border-color:#08736e;box-shadow:inset 0 0 0 1px #08736e}.booking-category-choice:focus-visible{outline:3px solid #08736e;outline-offset:2px}

/* Category selection spans the full form; date and condition share a baseline. */
.booking-search .booking-category-section{grid-column:1/-1;min-width:0}.patient-card .booking-category-section .booking-category-label{font-size:14px;font-weight:650;color:#173a40;margin:0 0 8px}.booking-category-section .booking-category-list{margin:0}.booking-search>.booking-step{align-self:start;display:grid;grid-template-rows:auto 1fr;gap:0}.booking-search>.booking-step h3{min-height:30px;align-items:center}.booking-search-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.patient-card .booking-search-actions .booking-find{margin:0;width:calc((100% - 20px)/2)}.booking-wizard .booking-field input[type=date]::-webkit-date-and-time-value{display:flex;align-items:center;min-height:calc(52px - 2px);margin:0}.booking-wizard .booking-field input[type=date]::-webkit-datetime-edit{display:inline-flex;align-items:center;min-height:1.4em;padding:0}.booking-wizard .booking-field input[type=date]{line-height:normal}@media(max-width:600px){.patient-card .booking-search-actions .booking-find{width:100%}}

/* Release 136 – patient-first category selection */
.patient-signed-in .patient-shell{max-width:1200px}
.patient-card .booking-wizard{padding:clamp(16px,3vw,30px)}
.patient-card .booking-category-section,.patient-card .booking-category-selected,.patient-card #booking-times{scroll-margin-top:24px}
.patient-card .booking-category-section{padding:0;border:0}
.patient-card .booking-category-section h3{font-size:clamp(20px,3vw,26px);margin:0 0 6px}
.patient-card .booking-category-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.patient-card .booking-category-card{display:flex;flex-direction:column;border:1px solid #d3e3e2;border-radius:14px;overflow:hidden;background:white;text-decoration:none;color:#173a40;box-shadow:0 5px 14px #173a400b;min-width:0}
.patient-card .booking-category-card:hover,.patient-card .booking-category-card:focus-visible{border-color:#08736e;box-shadow:0 5px 18px #08736e24;text-decoration:none}
.booking-category-art{display:flex;align-items:center;justify-content:center;height:132px;background:#dcefed;color:#086d68}
.booking-category-art svg{width:100px;height:100px}
.booking-category-art.art-prescribing{background:#dce9f5;color:#2a557a}.booking-category-art.art-ailments{background:#e2f1ea;color:#28674e}.booking-category-art.art-vaccinations{background:#e8e7f5;color:#56518a}.booking-category-art.art-private{background:#f4e9dd;color:#875b35}.booking-category-art.art-weight{background:#e4eddc;color:#4a6e35}.booking-category-art.art-ear{background:#e2eef6;color:#356385}.booking-category-art.art-travel{background:#e1efef;color:#17656d}.booking-category-art.art-sexual{background:#f4e3eb;color:#934b6e}
.booking-category-copy{padding:17px;display:flex;flex-direction:column;flex:1;gap:10px}
.patient-card .booking-category-copy h4{font-size:18px;line-height:1.3;margin:0;letter-spacing:-.01em}
.patient-card .booking-category-copy p{font-size:14px;color:#4b646b;margin:0 0 6px;flex:1}
.booking-category-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px;background:#08736e;color:#fff;padding:11px 13px;font-weight:650;min-height:44px}
.booking-category-help{padding:12px 0 0}
.booking-category-selected{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;background:#eef7f5;border:1px solid #c9e1dd;border-radius:10px;padding:14px;margin:18px 0}
.booking-category-selected small{display:block;color:#4b646b;font-size:12px;margin-bottom:4px}
.patient-card .booking-category-selected h3{font-size:20px;margin:0}
.booking-reason-field{display:grid;gap:8px;margin:18px 0;padding:14px;background:#fff;border:1px solid #d4e5e4;border-radius:10px}
.booking-reason-field label{font-weight:650}
.booking-reason-field textarea{width:100%;resize:vertical;min-height:106px;border:1px solid #a8c6c9;border-radius:8px;padding:12px;font:inherit;color:#173a40;background:#f9fbfb;box-sizing:border-box}
.patient-card .booking-reason-field p{font-size:13px;line-height:1.5;margin:0;color:#4b646b}
@media(max-width:850px){.patient-card .booking-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.patient-card .booking-category-cards{grid-template-columns:1fr;gap:12px}.booking-category-art{height:100px}.booking-category-art svg{height:80px;width:80px}.booking-category-copy{padding:14px}.booking-category-selected>.button{width:100%}}

/* Release 137: enhanced calendar with native date fallback */
.patient-preview input[data-booking-calendar][hidden],.patient-preview .patient-calendar-trigger[hidden]{display:none!important}
.patient-preview .patient-calendar-trigger{width:100%;min-width:0;min-height:52px;display:flex;align-items:center;gap:10px;justify-content:flex-start;text-align:left;border:1px solid #a8c6c9;border-radius:10px;background:#f7fafb;color:#173a40;padding:10px 14px;font:inherit;font-size:16px;line-height:1.35;cursor:pointer;margin:0}
.patient-calendar-trigger svg{width:22px;height:22px;flex:none;color:#08736e}.patient-calendar-value{flex:1;min-width:0}.patient-calendar-chevron{font-size:20px;color:#315a60}
.patient-preview .patient-calendar-trigger:hover{border-color:#08736e;background:#eef7f5}
.patient-preview .patient-calendar-dialog{position:fixed;inset:0;margin:auto;width:min(420px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100% - 24px);overflow:auto;padding:20px;border:1px solid #c9dfdd;border-radius:18px;background:#fff;color:#173a40;box-shadow:0 18px 70px #123e4340;box-sizing:border-box;font-family:inherit}
.patient-calendar-dialog::backdrop{background:#123e436b}
.patient-calendar-header,.patient-calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px}
.patient-calendar-header{padding-bottom:12px;border-bottom:1px solid #dce8e8}.patient-calendar-dialog .patient-calendar-title{font-size:18px;line-height:1.3;margin:0;font-weight:700;color:#173a40}
.patient-calendar-navigation{margin:14px 0 8px}.patient-calendar-month{font-size:18px;text-align:center}
.patient-calendar-dialog .patient-calendar-icon{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #c9dfdd;border-radius:9px;background:#f3f8f7;color:#075c57;font:inherit;font-size:26px;line-height:1;cursor:pointer;padding:0}
.patient-calendar-dialog .patient-calendar-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;margin:0}
.patient-calendar-grid th{padding:6px 0;font-size:12px;color:#4b646b;text-align:center;font-weight:600}
.patient-calendar-grid td{padding:0;height:44px;border:0;text-align:center}
.patient-calendar-dialog .patient-calendar-day{display:grid;place-items:center;width:100%;min-height:44px;border:1px solid transparent;border-radius:9px;background:#fff;color:#173a40;font:inherit;font-size:15px;font-weight:600;padding:0;cursor:pointer}
.patient-calendar-dialog .patient-calendar-day[aria-current=date]{border-color:#08736e}
.patient-calendar-dialog .patient-calendar-day:not(:disabled):hover,.patient-calendar-dialog .patient-calendar-icon:not(:disabled):hover{background:#e3f2ed}
.patient-calendar-dialog .patient-calendar-day[aria-pressed=true]:not(:disabled){background:#08736e;color:#fff;border-color:#08736e}
.patient-calendar-dialog button:disabled{opacity:.42;cursor:default}
.patient-calendar-dialog button:focus-visible,.patient-calendar-trigger:focus-visible{outline:3px solid #08736e;outline-offset:2px}
.patient-calendar-footer{border-top:1px solid #dce8e8;margin-top:12px;padding-top:12px}
.patient-calendar-dialog .patient-calendar-today{min-height:44px;border:1px solid #a8c6c9;background:#f3f8f7;color:#075c57;border-radius:9px;padding:8px 16px;font:inherit;font-weight:650;cursor:pointer}
.patient-calendar-help{font-size:13px;color:#4b646b;line-height:1.5;margin:10px 0 0}
@media(max-width:380px){.patient-preview .patient-calendar-dialog{padding:12px}.patient-calendar-grid th{font-size:11px}.patient-calendar-dialog .patient-calendar-day{font-size:14px}.patient-calendar-dialog .patient-calendar-grid{border-spacing:1px}}
@media(forced-colors:active){.patient-calendar-dialog .patient-calendar-day[aria-pressed=true]:not(:disabled){background:Highlight;color:HighlightText;border:2px solid Highlight}.patient-calendar-dialog .patient-calendar-day[aria-current=date]{border:1px solid ButtonText}}

/* Release 138 — separate preferences, compact unique times, clear review. */
.patient-card .booking-clinician-preference{border:1px solid #d5e4e5;border-radius:12px;background:#f5faf9;padding:16px;margin:18px 0}
.patient-card .booking-clinician-preference h4{margin:0 0 4px;font-size:17px}
.booking-preference-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:12px}
.patient-card .booking-current-preference{font-size:13px;margin-bottom:0}
.patient-card .booking-compact-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:10px;margin-bottom:18px}
.patient-card .booking-time-choice{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:60px;padding:10px 8px;border:1px solid #a8c6c9;border-radius:9px;background:#fff;color:#173a40;cursor:pointer;box-sizing:border-box}
.patient-card .booking-time-choice input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;opacity:0;margin:0;padding:0}
.patient-card .booking-time-choice span{display:grid;gap:3px;min-width:0}
.patient-card .booking-time-choice strong{font-size:17px;line-height:1.2;font-variant-numeric:tabular-nums}
.patient-card .booking-time-choice small{font-size:12px;font-weight:500;color:inherit}
.patient-card .booking-time-choice:hover{border-color:#08736e;background:#eef7f5}
.patient-card .booking-time-choice:has(input:checked){background:#08736e;color:#fff;border-color:#08736e;box-shadow:inset 0 0 0 1px #08736e}
.patient-card .booking-time-choice:focus-within{outline:3px solid #08736e;outline-offset:2px}
.patient-card .booking-review-link{margin:4px 0 14px}
.patient-card .booking-review{scroll-margin-top:24px;border:1px solid #c9e1dd;padding:clamp(16px,3vw,24px);margin:12px 0}
.patient-card .booking-review h4{font-size:20px;margin:0 0 12px}
.patient-card .booking-summary{background:#fff;border:1px solid #d5e4e5;border-radius:10px;padding:8px 14px}
.patient-card .booking-summary dl{margin:0}
.patient-card .booking-summary dl>div{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid #e4eded}
.patient-card .booking-summary dl>div:last-child{border:0}
.patient-card .booking-summary dt{font-size:13px;color:#4b646b}
.patient-card .booking-summary dd{margin:0;text-align:right;font-weight:650;overflow-wrap:anywhere}
.patient-card .booking-reason-field{border:1px solid #b5d5d0;border-left:4px solid #08736e;padding:16px;margin:16px 0}
.patient-card .booking-reason-field label{font-size:16px}
.patient-card .booking-reason-count{text-align:right;color:#4b646b;font-size:12px}
.patient-card .booking-reason-unavailable{font-size:13px}
.patient-card #reschedule-times{scroll-margin-top:24px}
@media(max-width:480px){.booking-preference-form{grid-template-columns:1fr;gap:8px}.patient-card .booking-compact-times{grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}.patient-card .booking-summary dl>div{grid-template-columns:1fr;gap:3px}.patient-card .booking-summary dd{text-align:left}}
@media(forced-colors:active){.patient-card .booking-time-choice:has(input:checked){background:Highlight;color:HighlightText;border:2px solid Highlight}.patient-card .booking-time-choice input[type=radio]{opacity:1;position:static;width:16px;height:16px;margin-right:4px}}

/* Release 139 — immediate clinician refresh and safe non-JS links. */
.patient-preview [data-preference-form][hidden],.patient-preview [data-preference-fallback][hidden],.patient-preview [data-preference-booking][hidden],.patient-preview [data-preference-retry][hidden],.patient-preview [data-preference-current][hidden]{display:none!important}
.patient-card .booking-preference-form{grid-template-columns:minmax(0,1fr) auto}
.patient-card .booking-preference-form .booking-field{grid-column:1/-1}
.patient-card .booking-preference-form:has([data-preference-retry]:not([hidden])) .booking-field{grid-column:1}
.patient-card .booking-preference-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.patient-card .booking-preference-links a[aria-current=true]{border-color:#08736e;background:#e3f2ed;color:#075c57}
.patient-card [data-preference-status]:empty{display:none}
.patient-card [data-preference-status]{margin:10px 0 0;font-size:14px;font-weight:600;color:#075c57}
@media(max-width:480px){.patient-card .booking-preference-form,.patient-card .booking-preference-form:has([data-preference-retry]:not([hidden])){grid-template-columns:1fr}.patient-card .booking-preference-links a{width:100%}}
