:root{--ink:#192c28;--muted:#64756f;--paper:#f3f5f3;--line:#dce5df;--green:#1d684f;--mint:#e8f3ed;--amber:#8b5915;--amber-bg:#fff2da;font-family:Inter,"Segoe UI",system-ui,sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;padding:10px 16px;min-height:44px;font-weight:600}button:disabled{opacity:.55;cursor:wait}.ghost{background:white;color:var(--green);border-color:var(--line)}a{color:var(--green)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #76b49a;outline-offset:3px}[hidden]{display:none!important}.shell{width:min(1100px,calc(100% - 48px));margin:auto;padding:24px 0 40px}header{display:flex;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--line)}.back{text-decoration:none;font-weight:600}.brand{font-size:11px;letter-spacing:.08em;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,4vw,40px);letter-spacing:-.04em;margin-bottom:12px;line-height:1.2}h2{font-size:22px;letter-spacing:-.02em;margin-bottom:0}h3{font-size:16px;margin-bottom:4px}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 0}.hero p{color:var(--muted);max-width:650px;margin-bottom:0}.hero button{flex-shrink:0}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.1em;color:var(--green);font-size:10px;font-weight:700;margin-bottom:12px}.panel,.search-card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 16px}.panel>.section-head{margin-top:0}.muted,small{color:var(--muted);font-size:12px}.muted{margin:5px 0 0}small{display:block;margin-top:6px}label{display:block;font-size:12px;font-weight:600;min-width:0}input:not([type=checkbox]),select{display:block;width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:7px;padding:9px 10px;background:white;color:var(--ink);margin-top:6px}input:disabled,select:disabled{background:var(--paper)}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.inline{display:flex;gap:8px}.inline input{width:100px}.inline select{flex:1}.check{display:flex;align-items:center;gap:8px;min-height:36px}.check input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0;margin:0}.options{padding-top:20px;border-top:1px solid var(--line);margin-top:24px}.options>div>label:not(.check){margin-top:10px}.rule{border:1px solid var(--line);background:#fbfdfb;border-radius:10px;padding:18px;margin-top:12px}.rule-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.rule-actions{display:flex;gap:6px}.rule-actions button,.window button{font-size:11px;padding:7px 10px}.rule .grid{gap:12px}.rule .org-label{grid-column:1/-1}.dates{margin-top:12px}.schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}.schedule-head span{font-size:12px;font-weight:600}.window{background:white;border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:10px}.days{display:flex;gap:6px;flex-wrap:wrap}.days label{display:flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--line);border-radius:6px}.days input{accent-color:var(--green)}.time-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-top:8px}.presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}.search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.search-head h3{font-size:19px;overflow-wrap:anywhere}.badge{font-size:11px;font-weight:600;background:var(--mint);color:var(--green);padding:5px 9px;border-radius:6px;flex-shrink:0}.badge.warn{background:var(--amber-bg);color:var(--amber)}.badge.paused{background:var(--paper);color:var(--muted)}.summary{font-size:12px;color:var(--muted);margin-top:12px}.summary p{margin:6px 0;overflow-wrap:anywhere}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.card-actions button{font-size:12px}.error{background:var(--amber-bg);color:var(--amber);border-radius:8px;padding:12px;margin-top:12px;font-size:12px;overflow-wrap:anywhere}.slots{border-top:1px solid var(--line);margin-top:18px}.slot{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.slot p{margin:3px 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.slot a{font-size:12px;flex-shrink:0;align-self:center;min-height:44px;display:flex;align-items:center}.empty{padding:32px 24px;background:white;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}#message{padding:12px 16px;border-radius:8px;background:var(--mint);color:var(--green);margin-bottom:20px}#message.error{background:var(--amber-bg);color:var(--amber)}footer{color:var(--muted);font-size:11px;max-width:700px;margin-top:30px}.load-error{color:var(--amber);font-size:12px;margin:8px 0}.loading{opacity:.65}@media(max-width:650px){.shell{width:calc(100% - 28px);padding-top:18px}.hero{display:block;padding:28px 0}.hero button{margin-top:20px}.brand{font-size:9px}.grid{grid-template-columns:1fr;gap:14px}.panel,.search-card{padding:16px}.section-head{gap:12px}.rule{padding:12px}.rule-head{align-items:flex-start}.rule-actions{flex-wrap:wrap;justify-content:flex-end}.time-row{grid-template-columns:1fr 1fr}.time-row>button{grid-column:1/-1}.slot{display:block}.slot a{margin-top:6px}.form-footer{align-items:flex-start;flex-direction:column}.form-footer button{width:100%}.rule .org-label{grid-column:auto}.card-actions button{flex-grow:1}header{gap:8px}.search-head{flex-wrap:wrap}}
:root{--paper:#f6f5f0;--green:#184e43;--mint:#e9f1ea;--ink:#203831;--line:#e2e7dc}.button-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:10px 16px;border-radius:9px;border:1px solid var(--line);text-decoration:none;font-weight:600;font-size:13px}.card-actions .button-link{font-size:12px}.wordmark{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:750;letter-spacing:.04em}.wordmark>span:last-child{font-size:9px;font-weight:600;letter-spacing:.12em;color:var(--muted)}.medical-mark{width:28px;height:28px;background:var(--green);color:white;border-radius:8px;display:grid;place-items:center;font-size:23px;line-height:1}.home-page .shell{width:min(1180px,calc(100% - 48px))}.home-page header{align-items:center;border-bottom:0;padding-bottom:28px}.home-hero{margin:0 0 20px;padding:46px 48px;gap:40px;border-radius:26px;background:#174c41;color:#fff;position:relative;overflow:hidden}.home-hero h1{font-size:clamp(38px,5vw,65px);letter-spacing:-.045em;font-weight:700;line-height:1.03;margin:18px 0 24px}.home-hero h1 span{color:#d9ebbb}.home-hero .eyebrow{color:#d5e6cf;letter-spacing:.1em;font-size:10px}.home-hero p{max-width:480px;font-size:15px;color:#d1e1d8;line-height:1.65}.hero-copy{flex:1;min-width:0}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:28px;flex-wrap:wrap}.home-hero #new-search{background:#e8f3cb;border-color:#e8f3cb;color:#1e4438;padding:13px 20px;border-radius:10px;min-height:48px;font-size:13px}.hero-history{border-color:#6e9486;background:transparent;color:white;min-height:48px}.hero-history:hover{background:#285d4f}.hero-note{display:block;color:#b1cbbd;font-size:10px;margin-top:18px}.hero-visual{width:320px;flex-shrink:0;position:relative;padding:10px 0}.calendar-label{color:#c6dcc8;font-size:9px;letter-spacing:.18em;margin:0 0 18px 18px}.calendar-art{background:#f6f7ec;border-radius:19px;color:#22483c;padding:28px 22px 18px;transform:rotate(4deg);box-shadow:0 20px 28px #08291e36;border:1px solid #d7e1ce;position:relative}.calendar-tabs{position:absolute;left:50px;right:50px;top:-11px;display:flex;justify-content:space-between}.calendar-tabs i{display:block;width:11px;height:28px;background:#a8c5a8;border-radius:6px;border:2px solid #eef4dc}.calendar-days,.calendar-blocks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.calendar-days{font-size:9px;letter-spacing:.05em;text-align:center;margin-bottom:12px;color:#789181}.calendar-blocks i{height:44px;border:1px solid #dce5d4;border-radius:7px;background:#edf0e5}.calendar-blocks .chosen{background:#bfd7a5;border-color:#bfd7a5;position:relative}.calendar-blocks .chosen:after{content:'✓';display:grid;place-items:center;height:100%;font-style:normal;font-size:17px;color:#2f624b}.calendar-bottom{display:flex;gap:6px;align-items:center;font-size:10px;margin-top:18px;color:#557960}.calendar-dot{width:6px;height:6px;border-radius:50%;background:#719e68}.visual-note{display:flex;gap:10px;align-items:center;border-radius:11px;background:#fffaf0;color:#264b3f;padding:14px 17px;position:relative;width:255px;transform:rotate(-3deg);margin-top:9px;margin-left:48px;box-shadow:0 10px 25px #08291e24}.visual-note>span{background:#e6edda;color:#456a43;display:grid;place-items:center;width:29px;height:29px;font-size:21px;border-radius:8px}.visual-note strong{font-size:11px}.visual-note small{font-size:9px;margin:2px 0 0;color:#69816e}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:30px}.overview>div,.overview>a{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px;min-width:0}.overview span{font-size:8px;letter-spacing:.13em;color:#738779;display:block}.overview strong{display:block;font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-.02em;margin-top:10px}.overview small{font-size:10px;margin-top:7px}.overview-history{text-decoration:none;background:#edf2e3!important}.overview-history strong{font-size:19px;margin-top:15px}.overview-history:hover{border-color:#acc196}.search-card{border-radius:17px;box-shadow:0 4px 14px #264a3510}.panel{border-radius:18px}.search-card summary{cursor:pointer;min-height:40px;font-size:13px;font-weight:600;line-height:1.7}.search-card summary:focus-visible{outline:3px solid #76b49a;outline-offset:3px}.search-card[open]>summary{padding-bottom:16px;border-bottom:1px solid var(--line)}.badge{white-space:normal}.slot{gap:18px}.slot>div{min-width:0}.slot strong{font-size:13px;overflow-wrap:anywhere}.slot .badge{display:inline-block;margin-top:5px;font-size:10px}.history-actions{display:flex;gap:10px}@media(max-width:900px){.home-hero{padding:34px 30px;gap:25px}.hero-visual{width:245px}.calendar-blocks i{height:33px}.visual-note{width:210px;margin-left:20px}.home-hero h1{font-size:46px}.overview{grid-template-columns:1fr 1fr}}@media(max-width:650px){.home-page .shell{width:calc(100% - 28px)}.home-page header{padding-bottom:18px;gap:12px;flex-wrap:wrap}.wordmark{font-size:15px}.wordmark>span:last-child{display:none}.header-history{margin-left:auto;min-height:38px;padding:7px 10px;font-size:11px}.home-page header>.back{font-size:11px}.home-hero{padding:27px 23px;border-radius:20px;display:block}.home-hero h1{font-size:43px;line-height:1.05;margin:16px 0 18px}.home-hero p{font-size:13px}.hero-visual{display:none}.home-hero button{margin-top:0}.hero-actions{gap:8px;margin-top:22px}.hero-actions>button,.hero-actions>a{flex:1;padding:11px!important;font-size:11px!important;white-space:nowrap}.overview{gap:8px;margin-bottom:20px}.overview>div,.overview>a{padding:15px 13px;border-radius:12px}.overview span{font-size:7px;letter-spacing:.08em}.overview strong{font-size:25px}.overview-history strong{font-size:17px}.overview small{font-size:9px}.card-actions .button-link{flex-grow:1}.search-card summary{font-size:12px}.hero-note{font-size:9px}.panel{padding:16px}.back{font-size:12px}.hero h1{overflow-wrap:anywhere}}

#history-checks:not(:empty){background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.history-check{margin:0;border-bottom:1px solid var(--line);padding:0;box-shadow:none}.history-check:last-child{border-bottom:0}.history-check>summary{padding:9px 12px;cursor:pointer;font-size:12px;line-height:1.45;overflow-wrap:anywhere;background:#fff}.history-check>summary:hover{background:#f3f6ef}.history-check[open]>summary{background:#eaf1e3;border-bottom:1px solid var(--line)}.history-check>summary:focus-visible{outline:2px solid #76b49a;outline-offset:-2px}.history-check-body{padding:0 12px 4px}.history-check-body .history-window{padding:7px 0;gap:8px;align-items:center;min-height:34px}.history-window-info{display:flex;gap:5px 10px;flex-wrap:wrap;align-items:center;min-width:0;font-size:11px;line-height:1.45}.history-window-info .history-window-time{font-size:11px;white-space:nowrap}.history-window-info .muted{font-size:10px;margin:0}.history-window-info .badge{font-size:9px;padding:2px 5px;margin:0}.history-check-body .history-window>a{font-size:10px;min-height:28px;margin:0;white-space:nowrap}.history-check>div:not(.history-check-body){padding:0 12px}.overview-history strong{font-size:16px;line-height:1.35}@media(max-width:650px){.history-check>summary{padding:8px 10px;font-size:11px}.history-check-body{padding:0 10px 3px}.history-check-body .history-window{display:flex;align-items:flex-start;padding:6px 0}.history-check-body .history-window>a{min-height:32px}.history-window-info{gap:3px 7px}.hero-actions{align-items:stretch}.hero-actions .hero-history{white-space:normal;text-align:center}.overview-history strong{font-size:14px}}

.patient-settings{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.patient-settings fieldset{border:0;padding:0;margin:16px 0;min-width:0}.patient-settings fieldset[hidden]{display:none}

.patient-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:18px}.patient-picker button{margin-bottom:4px}.patient-save-row{display:flex;align-items:center;gap:12px;margin:14px 0}.patient-save-row .muted{font-size:12px}.rule-head{flex-wrap:wrap;gap:8px}.rule-caption{font-size:11px}.rule-actions{margin-left:auto}.rule .grid{gap:12px}.rule-dates{margin:12px 0;padding:10px 12px;background:#f4f6f0;border-radius:8px}.rule-dates summary{font-size:12px;cursor:pointer}.rule-dates .dates{margin-top:12px}.rule .window{display:grid;grid-template-columns:minmax(270px,1fr) minmax(280px,1fr) auto;align-items:center;gap:12px;padding:10px 12px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:white}.rule .windows{border:1px solid var(--line);border-radius:10px;overflow:hidden}.rule .windows:empty{display:none}.rule .window:last-child{border-bottom:0}.rule .days{gap:4px;margin:0}.rule .days label{position:relative;display:flex;align-items:center;justify-content:center;min-width:32px;min-height:34px;padding:4px 7px;border-radius:7px;border:1px solid var(--line);font-size:11px;cursor:pointer}.rule .days label:has(input:checked){background:#dcebd6;border-color:#85ad83;color:#234e35}.rule .days label:focus-within{outline:2px solid #76b49a}.rule .days input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.rule .time-row{display:flex;align-items:center;gap:8px;margin:0}.rule .time-row label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;flex:1}.rule .time-row input{width:110px;min-width:0;margin:0;padding:7px}.rule .time-row button{font-size:0;min-width:30px;min-height:34px;padding:4px;background:transparent;color:#7b4f3b;border:0}.rule .time-row button:after{content:'×';font-size:21px}.rule .presets{display:flex;gap:4px;margin:0}.rule .presets button{font-size:10px;padding:5px 7px;min-height:30px}.booking-history{margin:12px 0;padding:10px 12px;background:#f5f7f0;border-radius:9px}.booking-history>summary{font-size:12px;font-weight:600;cursor:pointer}.booking-row{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}
@media(max-width:1000px){.rule .window{grid-template-columns:1fr auto}.rule .days{grid-column:1/-1}.rule .time-row{justify-content:flex-start}.rule .time-row label{flex:0 1 auto}.rule .time-row button{margin-left:auto}}
@media(max-width:650px){.patient-picker{grid-template-columns:1fr}.patient-picker button{justify-self:start}.patient-save-row{align-items:flex-start;flex-direction:column}.rule .window{padding:9px 8px;gap:8px}.rule .days{display:flex;flex-wrap:wrap}.rule .days label{min-width:29px;padding:4px}.rule .time-row{flex-wrap:wrap}.rule .time-row input{width:92px}.rule .presets{flex-direction:column}.rule-caption{display:none}.rule .time-row label{gap:4px}.booking-history>summary{font-size:11px}}

.auto-settings{margin-top:20px;padding:16px;border:1px solid #b9cfb0;background:#f3f7ed;border-radius:10px}.auto-settings .check{margin-top:12px}.auto-settings small{margin-bottom:12px}

.search-card>summary.search-head{list-style:none;cursor:pointer;margin:0;min-height:36px;padding:0;display:flex;gap:12px;align-items:center}.search-card>summary.search-head::-webkit-details-marker{display:none}.search-card>summary.search-head:before{content:'▸';font-size:15px;flex-shrink:0}.search-card[open]>summary.search-head:before{content:'▾'}.search-card[open]>summary.search-head{margin-bottom:16px;padding-bottom:12px}.search-card:not([open]){padding:10px 18px}.search-head h3{margin:0}.booked-card{background:#e0f0dc;border-color:#93bc88}.booked-card>summary.search-head{background:transparent}.booked-card .badge{background:#bfdcaf;color:#234a20}.compact-booking{font-size:11px;min-width:0;overflow-wrap:anywhere;margin-left:auto}.success-stat{background:#e0f0dc!important}.archive-switch{display:flex;gap:6px;margin-left:auto}.archive-switch button[aria-pressed=true]{background:#e4eddd;border-color:#9cb58c;color:#254b31}.archive-switch button{font-size:12px}.booked-card .slot{background:transparent}@media(max-width:650px){.compact-booking{flex-basis:100%;margin-left:22px;font-size:10px}.archive-switch{margin-left:0}.section-head:has(.archive-switch){flex-wrap:wrap}.search-card:not([open]){padding:9px 12px}.search-card>summary.search-head{flex-wrap:wrap;gap:7px}.search-card>summary.search-head h3{font-size:13px}}

.home-page header.service-header{display:block;margin:0 0 18px;padding:18px 24px 20px;background:#174c41;color:#fff;border:0;border-radius:18px}.service-nav{display:flex;align-items:center;gap:20px;margin-bottom:18px;font-size:12px}.service-nav a{color:#e1edde;text-decoration:none}.service-nav a:hover{text-decoration:underline}.service-nav .wordmark{margin:auto;font-size:15px}.service-nav .wordmark>span:last-child{color:#bfd2c5}.service-nav .medical-mark{background:#376e59;width:24px;height:24px;font-size:19px}.service-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.service-heading h1{font-size:30px;letter-spacing:-.03em;line-height:1.15;margin:0 0 5px}.service-heading p{font-size:12px;color:#c6dacd;margin:0}.service-heading #new-search{background:#e8f3cb;color:#214837;border-color:#e8f3cb;padding:11px 18px;min-height:44px;white-space:nowrap}.service-heading #new-search:hover{background:#dcebbb}@media(max-width:650px){.home-page header.service-header{padding:15px 16px;border-radius:14px}.service-nav{gap:12px;font-size:11px;flex-wrap:wrap;margin-bottom:16px}.service-nav .wordmark{display:none}.service-nav .service-history{margin-left:auto}.service-heading{gap:12px;flex-wrap:wrap}.service-heading h1{font-size:26px}.service-heading p{font-size:10px}.service-heading #new-search{font-size:12px;padding:10px 14px}.service-nav .back{font-size:11px}}

.time-copy{background:#eef4e8;border:1px solid #b9cfb0;border-radius:10px;padding:14px;margin:10px 0}.time-copy button{margin:10px 8px 0 0}.time-copy small{display:block}.schedule-head{flex-wrap:wrap;gap:8px}.schedule-head>span{margin-right:auto}.schedule-head button{font-size:11px}

.deti-link-field{margin:16px 0;padding:14px;background:#eef4e8;border:1px solid #c9d9be;border-radius:10px}.deti-link-field select{max-width:100%}

.heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.service-heading #manage-patients{background:#fff;color:#214837;border:1px solid #c9d9be;padding:11px 18px;min-height:44px;white-space:nowrap}.heading-actions .button-link{text-decoration:none}

.patients-page fieldset{border:0;margin:12px 0 0;padding:0;min-width:0}.patients-page .service-heading #new-patient{background:#e8f3cb;color:#214837;border-color:#e8f3cb;padding:11px 18px;min-height:44px}
