:root{--bg:#f4f7f7;--ink:#233b3b;--muted:#71817d;--line:#dfe8e6;--green:#215a50;--light:#e7f0eb;--paper:#fff;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button,input,select,textarea{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #77ac99}button{border:1px solid var(--line);background:white;padding:10px 15px;border-radius:8px}button:hover{background:#eef5f1}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#164c42}.danger{color:#a44c43}.muted,small{color:var(--muted)}h1,h2,h3{font-family:ui-rounded,'Trebuchet MS',sans-serif;font-weight:500;letter-spacing:-.6px}h1{font-size:31px;margin:0}h2{font-size:25px;margin:0 0 10px}h3{font-size:18px;margin:0 0 10px}p{line-height:1.6}.app{display:grid;grid-template-columns:185px minmax(0,1fr);min-height:100vh}.sidebar{padding:32px 20px;background:#f7f9f8;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:30px}.brand{font-size:24px;font-weight:700;letter-spacing:-1px;color:var(--green)}.brand span{color:#83a195;font-weight:400}.brand small{display:block;font:10px sans-serif;letter-spacing:2px;margin-top:8px}.nav{display:grid;gap:6px}.nav button{border:0;background:transparent;text-align:left;color:var(--muted)}.nav button.active{background:var(--light);color:var(--green);font-weight:600}.session{margin-top:auto;display:grid;gap:12px}.workspace{padding:32px;min-width:0}.top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;color:var(--muted);margin-bottom:9px}.badge{font-size:11px;border:1px solid #d5e3da;border-radius:6px;background:#eaf2ed;padding:5px 9px;color:#527162}.toolbar,.row,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar{justify-content:space-between;margin-bottom:20px}.actions{justify-content:flex-end}.empty{padding:35px;text-align:center;color:var(--muted)}dialog{width:min(970px,94vw);max-height:92vh;border:1px solid var(--line);border-radius:18px;padding:0;color:var(--ink);box-shadow:0 26px 100px #193a3a30}dialog::backdrop{background:#19363255;backdrop-filter:blur(3px)}.dialog-head{padding:23px 28px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:24px}.dialog-body{padding:24px 28px;max-height:70vh;overflow:auto}.dialog-foot{padding:16px 28px;background:#f7faf8;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.steps{display:grid;grid-template-columns:repeat(4,1fr);padding:20px 28px;background:#fafcfa;border-bottom:1px solid var(--line);gap:15px}.step{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.step b{border:1px solid var(--line);width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:12px}.step.current{color:var(--green);font-weight:600}.step.current b{background:var(--green);color:white;border-color:var(--green)}.step.done b{background:var(--light);color:var(--green)}.treatments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.treatment{padding:17px;text-align:left;border-radius:11px;min-height:86px;display:flex;align-items:flex-start;gap:12px}.treatment strong{font-weight:600;display:block;margin-bottom:6px}.treatment small{font-size:11px;line-height:1.5}.swatch{height:11px;width:11px;border-radius:4px;display:inline-block;flex-shrink:0;margin-top:3px}.selected{border-color:#6c9c87!important;background:#f0f6f2!important;box-shadow:0 0 0 1px #6c9c87}.field{display:grid;gap:7px;flex:1;min-width:140px;margin-bottom:14px}label{font-size:12px;color:#5d7369}input:not([type=checkbox]):not([type=color]),select,textarea{width:100%;padding:11px 12px;border:1px solid #d5e1da;background:white;border-radius:8px}textarea{min-height:85px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;vertical-align:middle}input[type=color]{height:40px;width:70px;border:1px solid var(--line);border-radius:8px;background:white}.check{display:flex;align-items:center;gap:8px;font-size:13px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:18px}.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.slot{padding:13px;text-align:left}.slot strong{font-size:17px;display:block;margin:4px 0}.slot small{display:block;font-size:11px}.summary{background:#f0f5f2;border-radius:12px;padding:20px;margin:14px 0}.summary strong{display:block;font-size:20px;margin:8px 0}.error{background:#fff0ec;color:#9f4538;padding:12px 16px;border-radius:8px;margin:12px 0;font-size:13px}.list{display:grid;gap:10px}.list-item{padding:15px;border:1px solid var(--line);border-radius:9px;background:white;text-align:left;display:flex;justify-content:space-between;gap:20px;align-items:center}.list-item strong{display:block;margin-bottom:5px}.list-item small{display:block}.split{display:grid;grid-template-columns:270px 1fr;gap:22px}.tabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}.tabs button.active{background:var(--green);color:white}.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.week-rule{display:grid;grid-template-columns:35px 1fr;align-items:center;gap:8px;margin:10px 0}.rule-note{font-size:12px;color:var(--muted);line-height:1.6}.history{border-left:1px solid var(--line);margin-left:6px;padding-left:22px}.history article{position:relative;margin-bottom:22px}.history article:before{content:'';position:absolute;left:-27px;top:6px;width:8px;height:8px;background:#78a48b;border-radius:50%}.history pre{white-space:pre-wrap;font:12px inherit;background:#f5f8f6;padding:12px;max-height:200px;overflow:auto}.login{max-width:440px;margin:10vh auto;padding:32px;background:white;border:1px solid var(--line);border-radius:18px}.login .brand{margin-bottom:35px}.login h1{font-size:26px;margin-bottom:15px}.login .primary{width:100%;margin-top:10px}.warning{background:#fcf6e9;border:1px solid #eadfbe;padding:12px 15px;border-radius:9px;font-size:12px;line-height:1.6}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#254f43;color:white;padding:13px 24px;border-radius:9px;z-index:30;display:none;max-width:90vw}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 15px}.pill{font-size:11px;padding:3px 7px;background:#edf3ef;border-radius:5px}.month{position:relative}.month-box{position:absolute;top:40px;left:0;background:white;border:1px solid var(--line);padding:14px;box-shadow:0 10px 40px #1234;border-radius:10px;z-index:5;width:265px}.month-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-top:10px}.month-days button{padding:6px 0;border:0}.month-days small{text-align:center}.config-table{width:100%;border-collapse:collapse}.config-table td,.config-table th{text-align:left;padding:10px;border-bottom:1px solid var(--line);font-size:12px}.hidden{display:none!important}@media(max-width:900px){.app{grid-template-columns:70px 1fr}.sidebar{padding:24px 8px}.sidebar .brand{font-size:13px;letter-spacing:-.5px}.sidebar .brand small,.session small{display:none}.nav button{font-size:10px;padding:10px 5px}.workspace{padding:20px}.split{grid-template-columns:1fr}.treatments{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.app{display:block}.sidebar{border:0;padding:12px;display:flex;flex-direction:row;gap:10px}.sidebar .brand,.sidebar .session{display:none}.nav{display:flex;width:100%;justify-content:space-around}.workspace{padding:15px}.top{align-items:flex-start}h1{font-size:24px}.badge{display:none}.steps{padding:15px;gap:3px}.step{font-size:10px;gap:4px}.step b{width:20px;height:20px}.dialog-body{padding:18px}.dialog-head,.dialog-foot{padding:16px}.treatments,.slots,.rule-grid{grid-template-columns:1fr}.row{align-items:stretch}.field{min-width:120px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.week-inputs[hidden]{display:none}
.app.sidebar-collapsed{grid-template-columns:1fr}.sidebar-collapsed .sidebar{display:none}
.calendar-menu{position:fixed;z-index:50;width:240px;padding:10px;background:white;border:1px solid #d5e1da;border-radius:12px;box-shadow:0 12px 36px #19363225}
.calendar-menu small{display:block;padding:5px 10px 9px}
.calendar-menu button{display:block;text-align:left;width:100%;border:0;min-height:42px}
.calendar-menu button:hover,.calendar-menu button:focus-visible{background:#edf3ef}
.treatment-rows{display:grid;gap:9px}
.treatment-row{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:11px;padding:10px 14px;background:white}
.treatment-choice{display:flex;align-items:center;gap:12px;flex:1;text-align:left;border:0;background:transparent;min-height:48px;padding:6px;min-width:0}
.treatment-choice strong,.treatment-choice small{display:block}.treatment-choice small{margin-top:4px}
.treatment-duration{width:145px;flex-shrink:0}.treatment-duration label{display:block;margin-bottom:4px}
@media(max-width:560px){.treatment-row{gap:8px;padding:8px}.treatment-duration{width:115px}.treatment-choice{font-size:13px}}
.fixed-duration-label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.fixed-duration{display:block;padding:11px 0;font-size:14px;font-weight:500}
.message-detail{padding:18px;border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:14px}
.message-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:16px 0}
.message-facts div{min-width:0}.message-facts dt{font-size:11px;color:var(--muted)}.message-facts dd{margin:4px 0 0;font-size:13px;overflow-wrap:anywhere}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
@media(max-width:560px){.message-facts{grid-template-columns:1fr}}
.hours-table{width:100%;border-collapse:collapse;margin:16px 0}.hours-table th,.hours-table td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}.hours-table th{font-size:13px}.hours-input-row{display:flex;align-items:center;gap:8px;margin:5px 0}.hours-input-row input[type=time]{width:125px;min-width:0}.hours-input-row button{min-height:40px}.hours-table-wrap{overflow-x:auto}.hours-track-row{display:grid;grid-template-columns:30px minmax(100px,1fr) 190px;align-items:center;gap:12px;margin:12px 0}.hours-track{position:relative;height:26px;border-radius:5px;background:repeating-linear-gradient(90deg,#f0f4f1 0,#f0f4f1 calc(25% - 1px),#cfdcd4 calc(25% - 1px),#cfdcd4 25%)}.hours-bar{position:absolute;height:16px;top:5px;background:#538b72;border-radius:3px}.hours-lunch{position:absolute;left:54.1667%;width:4.1667%;height:100%;background:repeating-linear-gradient(45deg,#eadfbe,#eadfbe 3px,#fff7e2 3px,#fff7e2 6px)}.hours-axis{display:flex;justify-content:space-between;margin-left:42px;margin-right:202px;font-size:11px;color:var(--muted)}@media(max-width:650px){.hours-track-row{grid-template-columns:25px 1fr}.hours-track-row small{grid-column:2}.hours-axis{margin-left:37px;margin-right:0}.hours-table th,.hours-table td{padding:8px 4px}.hours-input-row input[type=time]{width:100px}.hours-table{min-width:420px}}
.report-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:16px}.report-field{display:grid;gap:8px}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.report-kpis strong{display:block;font-size:30px;margin-top:12px}.report-scroll{overflow-x:auto}.heat-table{border-collapse:separate;border-spacing:3px;min-width:800px;width:100%;margin:16px 0 26px}.heat-table th{font-size:11px;font-weight:500}.heat-table td{text-align:center;min-width:25px;height:30px;border-radius:4px;font-size:12px}@media(max-width:650px){.report-kpis{grid-template-columns:repeat(2,1fr)}.report-filters{grid-template-columns:1fr}}

/* Shared table language: clear row hierarchy, quiet surfaces and aligned data. */
.config-table,.hours-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;line-height:1.5}
.config-table thead th,.hours-table thead th{background:#f3f6f5;color:#586e68;font-size:11px;font-weight:600;letter-spacing:.025em;border-bottom:1px solid #dce5e1;padding:14px 18px;white-space:nowrap}
.config-table thead th:first-child,.hours-table thead th:first-child{border-radius:9px 0 0 9px}
.config-table thead th:last-child,.hours-table thead th:last-child{border-radius:0 9px 9px 0}
.config-table tbody td,.config-table tbody th,.hours-table tbody td,.hours-table tbody th{padding:17px 18px;border-bottom:1px solid #edf1ef;font-size:13px;text-align:left;vertical-align:middle}
.config-table tbody th,.hours-table tbody th{font-weight:600;color:#263f38}
.config-table tbody tr:last-child>* ,.hours-table tbody tr:last-child>*{border-bottom:0}
.config-table tbody tr:hover>*,.hours-table tbody tr:hover>*{background:#f7faf8}
.config-table td.numeric,.config-table th.numeric{text-align:right;white-space:nowrap}
.report-table tbody td.numeric{font-size:14px;font-weight:500;min-width:82px}
.report-table tbody td:nth-child(2){font-weight:700;color:#215a50}
.report-table tbody .zero{color:#83918b;font-weight:400}
.report-table tbody th{min-width:190px}
.report-scroll{max-width:100%;border-radius:10px;scrollbar-width:thin;scrollbar-color:#bfcec7 transparent}
.report-scroll:focus-visible{outline:2px solid #6c9c87;outline-offset:4px}
#stats-result>.panel{padding:26px 28px;border-color:#e2e9e5;border-radius:16px;box-shadow:0 3px 12px #233b3b03;margin-bottom:22px}
#stats-result .section-heading{margin:0 0 22px;gap:16px;flex-wrap:wrap}
#stats-result h3{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0 0 8px}
#stats-result .section-heading h3{margin:0}
.report-label{font-size:11px;color:#64786e}
.report-kpis{gap:0;border:1px solid #dfe8e2;border-radius:16px;background:#fff;overflow:hidden;margin-bottom:22px}
.report-kpis .panel{border:0;border-radius:0;box-shadow:none;margin:0;padding:25px 28px;position:relative}
.report-kpis .panel+.panel:before{content:'';position:absolute;left:0;top:25px;bottom:25px;width:1px;background:#e4ebe6}
.report-kpis small{font-size:12px;color:#5b7268}
.report-kpis strong{font-size:38px;font-weight:500;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;color:#215a50;margin-top:10px}
.report-context{background:#f8faf9;line-height:1.65}
.report-context p{margin:0 0 9px;font-size:13px}.report-context small{display:block;margin-top:15px;padding-top:14px;border-top:1px solid #e5ebe7;font-size:11px}
.report-filter-panel{padding:24px 28px;border-radius:16px}
.report-filters{gap:18px 22px}.report-field{font-size:11px;font-weight:600;color:#5b7067}
.report-field input,.report-field select{min-height:44px;font-size:13px;font-weight:400}
.report-ranking{display:grid;gap:0}.ranking-row{display:grid;grid-template-columns:30px minmax(0,1fr) 70px;gap:16px;align-items:center;padding:19px 0;border-bottom:1px solid #edf1ef}.ranking-row:last-child{border-bottom:0}
.rank-position{color:#809289;font-size:12px;font-variant-numeric:tabular-nums}.rank-treatment strong{font-size:13px;font-weight:500;display:block;margin-bottom:10px}.rank-track{display:block;height:5px;background:#edf2ef;border-radius:6px;overflow:hidden;max-width:580px}.rank-track>span{display:block;height:100%;background:#467e66;border-radius:6px}.rank-count{text-align:right;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;color:#215a50}
.report-empty{padding:32px 18px!important;color:#60766c;text-align:center!important;font-size:14px!important;font-weight:500!important}.report-empty small{display:block;margin-top:7px;font-size:12px;font-weight:400}
.heat-section+.heat-section{border-top:1px solid #e5ece7;padding-top:28px;margin-top:28px}.heat-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#63776e;margin:14px 0 12px}.heat-legend>span:last-child{display:flex;align-items:center;gap:5px}.heat-legend i{width:13px;height:13px;border-radius:3px;background:#e3eee7}.heat-legend i:nth-of-type(2){background:#b8d3c3}.heat-legend i:nth-of-type(3){background:#74a98c}.heat-legend i:nth-of-type(4){background:#285e49}
.heat-table{border-spacing:4px;min-width:950px;margin:0;font-variant-numeric:tabular-nums}.heat-table th{color:#61766c;height:28px;font-size:10px}.heat-table tbody th{text-align:left;min-width:38px}.heat-table td{height:34px;min-width:30px;border-radius:5px;font-size:11px}.heat-table td:hover{outline:2px solid #527b65;outline-offset:1px}
.heat-level-0{background:#f3f6f4;color:#95a29a}.heat-level-1{background:#e3eee7;color:#335842}.heat-level-2{background:#b8d3c3;color:#244a36}.heat-level-3{background:#74a98c;color:#173c28}.heat-level-4{background:#285e49;color:#fff}
.hours-table{margin:20px 0 22px}.hours-table tbody th{min-width:110px}.hours-input-row{gap:10px;margin:7px 0}.hours-input-row input[type=time]{background:#fafcfb;border-color:#e0e8e3;min-height:44px;font-variant-numeric:tabular-nums}.hours-input-row>span{font-size:11px;color:#7a8e82}.hours-input-row>button{border-color:transparent;background:transparent;color:#6b7e74;font-size:20px;width:38px;padding:4px}.hours-input-row>button:hover{background:#fff0ec;color:#9f4538}.hours-table button[data-add-hours]{background:#f1f6f3;border-color:transparent;color:#37634c;white-space:nowrap;font-size:12px;min-height:40px}.hours-track{height:30px;border-radius:7px}.hours-bar{height:20px;border-radius:5px;background:#467e66}.hours-track-row{margin:15px 0}
@media(max-width:650px){#stats-result>.panel,.report-filter-panel{padding:20px 16px}.report-kpis .panel{padding:20px}.report-kpis .panel:nth-child(3):before{display:none}.report-kpis .panel:nth-child(n+3){border-top:1px solid #e5ece7}.report-kpis strong{font-size:30px}.config-table tbody td,.config-table tbody th,.hours-table tbody td,.hours-table tbody th{padding:14px 12px}.config-table thead th,.hours-table thead th{padding:12px}.hours-table{min-width:520px}.heat-legend{flex-wrap:wrap}.ranking-row{gap:10px;grid-template-columns:22px minmax(0,1fr) 45px}}


.column{border-left-color:#c4d3cb;background:repeating-linear-gradient(to bottom,transparent 0,transparent 71px,#aabfb3 71px,#aabfb3 72px),repeating-linear-gradient(to bottom,transparent 0,transparent 17px,#dfe7e2 17px,#dfe7e2 18px)}



.appointment-note{background:#f6f8f5;border:1px solid #e0e8df;border-left:3px solid #84a78d;border-radius:10px;padding:16px 18px;margin:16px 0}
.appointment-note h3{font:600 12px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;color:#4b6954;margin:0 0 8px}
.appointment-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.6}
.availability-day{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:8px;padding:10px 0;border-bottom:1px solid #e2e8f0}.availability-day:last-child{border-bottom:0}.availability-day>strong{padding-top:11px;font-size:12px;color:#334155}.availability-periods{display:grid;gap:7px;min-width:0}.availability-period{display:grid;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr) 34px;align-items:center;gap:6px}.availability-period input{min-width:0;padding:8px 7px!important;font-variant-numeric:tabular-nums}.availability-period>span{font-size:10px;color:#64748b}.availability-period button{width:34px;min-width:34px;min-height:36px;padding:5px;border-color:transparent;background:transparent;color:#64748b;box-shadow:none;font-size:18px}.availability-period button:hover{background:#fff1f2;color:#be123c}.availability-add{min-height:36px;padding:7px 9px;white-space:nowrap;background:#f8fafc;box-shadow:none;font-size:11px}.availability-closed{padding:11px 0;color:#94a3b8;font-size:11px}.week-inputs{margin-bottom:14px}@media(max-width:620px){.availability-day{grid-template-columns:25px minmax(0,1fr)}.availability-add{grid-column:2;width:max-content}.availability-period{grid-template-columns:minmax(78px,1fr) auto minmax(78px,1fr) 32px;gap:4px}.availability-period input{font-size:12px}}
.availability-copy{margin:16px 0 20px;padding:15px 16px;border:1px solid #cbd5e1;border-left:3px solid #809daf;border-radius:10px;background:#f8fafc}.availability-copy h3{margin:0 0 3px;font-size:14px}.availability-copy p{margin:0;color:#526176;font-size:11px;line-height:1.45}.availability-copy-controls{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(140px,1fr) auto;align-items:end;gap:10px;margin-top:12px}.availability-copy-controls .field{margin:0}.availability-copy-controls button{white-space:nowrap}.availability-copy>small{display:block;margin-top:10px;font-size:10px;line-height:1.45}@media(max-width:700px){.availability-copy-controls{grid-template-columns:1fr 1fr}.availability-copy-controls button{grid-column:1/-1;width:100%}}




.page-description{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.4;max-width:760px}
@media(max-width:560px){.page-description{font-size:11px;line-height:1.35}}

/* Daily navigation and PIN-protected administration */
.nav-admin{margin-top:12px;padding-top:12px;border-top:1px solid rgba(148,163,184,.22)}
.nav-admin summary{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 11px;border-radius:7px;color:#e2e8f0;cursor:pointer;list-style:none;font-weight:700}
.nav-admin summary::-webkit-details-marker{display:none}
.nav-admin summary:hover{background:#25344b;color:#fff}
.nav-admin summary svg{width:19px;height:19px;flex:none}
.nav-admin summary span{flex:1}
.nav-admin summary small{color:#94a3b8;font-size:9px;text-transform:uppercase;letter-spacing:.08em;border:1px solid #475569;border-radius:999px;padding:2px 6px}
.nav-admin>div{display:grid;gap:4px;margin-top:5px;padding-left:10px;border-left:1px solid #334155}
.nav-admin>div button{width:100%}
.practice-app .nav{display:flex;flex:1;min-height:0;flex-direction:column}
.nav-main{display:grid;gap:6px}
.nav-bottom{margin-top:auto;padding-top:14px;border-top:1px solid rgba(148,163,184,.22)}
.nav-bottom button{width:100%}
.practice-app .nav-admin-lock{margin-top:7px;border:1px solid #475569;background:#172033;color:#cbd5e1;text-align:center;font-size:11px;font-weight:700}
.practice-app .nav-admin-lock:hover{background:#334155;color:#fff}
.qr-panel{min-height:460px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,420px);gap:44px;align-items:center;padding:42px}
.qr-copy h2{font-size:30px;margin-bottom:14px}
.qr-copy p{max-width:580px;color:#64748b;font-size:15px}
.qr-facts{display:grid;gap:8px;margin:24px 0;color:#334155}
.qr-facts span{display:flex;align-items:center;gap:9px}
.qr-facts span:before{content:'✓';display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#e0f2fe;color:#0369a1;font-weight:800}
.qr-code{display:grid;place-items:center;gap:12px;padding:22px;border:1px solid #cbd5e1;border-radius:18px;background:#f8fafc}
.qr-code img{display:block;width:min(100%,360px);height:auto;border-radius:8px}
.qr-code small{text-align:center;color:#64748b}
.qr-loading{min-height:380px;display:grid;place-items:center;color:#64748b}
@media(max-width:760px){.qr-panel{grid-template-columns:1fr;padding:24px;gap:24px}.qr-code{max-width:420px;width:100%;margin:auto}}

.login .passkey-button{width:100%;margin-top:10px;border-color:#b9c8d7;background:#f4f7fb;color:#17324d;font-weight:700}.login .passkey-button:hover{background:#e9eff6}

/* Compact, date-grouped internal slot results. */
.slot-days{display:grid;gap:16px}.slot-day{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fbfdfc}.slot-day-heading{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 8px}.slot-day-heading h4{margin:0;font-size:15px;font-weight:600}.slot-subheading{font-size:11px;color:var(--green);font-weight:600;margin:10px 2px 5px}.slot-subheading+.slots{margin-top:0}.slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.slot{padding:8px 9px;min-height:58px}.slot strong{font-size:15px;margin:2px 0 3px}.slot small{font-size:10px}.slot-priority{border-color:#78a48b;background:#f0f7f2}
@media(max-width:560px){.slot-days .slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep the wizard action reachable while the result list scrolls. */
dialog[open]{display:flex;flex-direction:column;overflow:hidden}dialog .dialog-body{max-height:calc(92vh - 210px);overflow:auto}dialog .dialog-foot{position:sticky;bottom:0;z-index:5;flex:0 0 auto;align-items:center;box-shadow:0 -7px 18px #19363218}dialog .dialog-foot .primary{min-width:190px;white-space:nowrap}@media(max-width:560px){dialog .dialog-foot{padding:12px 14px}dialog .dialog-foot .primary{min-width:0;flex:1}}
#add-appointment{border:2px solid var(--green);background:#e7f0eb;color:var(--green);font-weight:700;box-shadow:0 2px 0 #215a5030;white-space:nowrap}.dialog-foot>span{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#add-appointment:hover{background:#d6e8df;transform:translateY(-1px)}
@media(max-width:560px){#add-appointment{font-size:12px;padding:10px 9px}}
.entry-treatment-note{display:block;margin-top:3px;padding:2px 4px;background:#fff4c2;color:#684f08;border-radius:3px;font-size:10px;line-height:1.2;white-space:normal;overflow:hidden;text-overflow:ellipsis;max-height:2.4em}.appointment-note{background:#fff9df!important;border-left-color:#c99a27!important}
.calendar-entry .entry-hover-details{display:none!important}
.internal-day-calendar{max-width:1000px;margin:22px auto 30px;padding:20px 22px 22px;border:1px solid #cfded8;border-radius:16px;background:#fff;box-shadow:0 8px 24px #193a3a0d}.internal-day-calendar .section-heading{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--line)}.internal-day-calendar .section-heading h3{margin-bottom:5px}.internal-calendar-toolbar{display:grid;grid-template-columns:auto auto 1fr auto auto;align-items:center;gap:8px;margin:0 auto 14px;max-width:900px}.internal-calendar-toolbar strong{text-align:center;text-transform:capitalize;font-size:17px}.internal-calendar-toolbar button{padding:7px 10px;background:#f8fbfa;border-color:#cfded8}.internal-calendar-weekdays,.internal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;max-width:900px;margin-left:auto;margin-right:auto}.internal-calendar-weekdays{margin-bottom:6px;text-align:center;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.04em}.internal-calendar-day{min-height:50px;padding:6px 4px;background:#fbfdfc;text-align:center;border-color:#e0ebe7}.internal-calendar-day strong,.internal-calendar-day small{display:block}.internal-calendar-day strong{font-size:14px}.internal-calendar-day small{margin-top:3px;font-size:10px;color:var(--muted)}.internal-calendar-day.available{border-color:#86b5a3;cursor:pointer}.internal-calendar-day.available:hover,.internal-calendar-day.available:focus-visible{background:#e9f4ef}.internal-calendar-day.selected{background:var(--green)!important;color:white;border-color:var(--green)!important;box-shadow:0 3px 0 #163f37}.internal-calendar-day.selected small{color:#e4f2ec}.internal-calendar-day.week-focus:not(.selected){box-shadow:inset 0 -3px 0 var(--green)}.internal-calendar-day:disabled{opacity:.38;cursor:not-allowed}.internal-calendar-day.empty-day{border:0;background:transparent}@media(max-width:560px){.internal-day-calendar{padding:15px 12px 16px}.internal-calendar-toolbar{grid-template-columns:1fr 1fr 1fr 1fr}.internal-calendar-toolbar strong{grid-column:1/-1;grid-row:1;font-size:16px}.internal-calendar-toolbar button{font-size:11px;padding:7px 5px}.internal-calendar-day{min-height:46px;padding:5px 2px}.internal-calendar-day small{font-size:9px}}
#new{display:none!important}

/* Phase 03 and 04: group related information into calm, colour-coded work areas. */
.wizard-phase-3,.wizard-phase-4{min-width:0}
.phase3-intro{display:grid;gap:8px;margin-bottom:2px}
.phase3-intro>.muted{margin:0;padding:12px 15px;border-left:4px solid #c5a065;border-radius:0 8px 8px 0;background:#fffaf0;color:#586d65;line-height:1.45}
.phase3-intro>.warning{margin:0;border-color:#eadfbe;background:#fff8e9}
.phase3-section,.phase4-section{min-width:0;padding:17px 18px;border:1px solid #c8dcd4;border-radius:12px;background:#fff;box-shadow:0 3px 0 #193a3a0a}
.phase3-search{border-left:5px solid #397568;background:#f7fbf9}
.phase3-data{border-left:5px solid #8bb29f;background:#fbfdfb}
.phase3-note{border-left:5px solid #c5a065;background:#fffdf7}
.phase-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:13px}
.phase-section-heading>span{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#dcece5;color:#286959;font-size:11px;font-weight:800;letter-spacing:.04em}
.phase-section-heading h3{margin:0;color:#234a40;font-size:16px;letter-spacing:-.2px}
.phase-section-heading p{margin:3px 0 0;color:#71817d;font-size:11px;line-height:1.35}
.phase3-section .field,.phase3-section .row{margin:0}
.phase3-section>.row{padding:0;border:0;background:transparent}
.phase3-search .field{margin:0}
.phase3-search #matches{display:grid;gap:6px;margin-top:8px}
.phase3-search #matches:empty{display:none}
.phase3-search #matches .list-item{border-color:#b9d3c7;border-radius:8px;background:#fff;box-shadow:none}
.phase3-search #matches .list-item:hover,.phase3-search #matches .list-item:focus-visible{border-color:#397568;background:#edf6f1}
.phase3-note .field-validation{margin-top:10px}
.phase3-note>small{display:block;margin-top:9px;line-height:1.4}
.wizard-phase-3>.phase-actions,.wizard-phase-4>.phase-actions,.wizard-phase-3>.error,.wizard-phase-4>.error{grid-column:1/-1}
.wizard-phase-4{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.78fr);gap:14px;align-items:start}
.phase4-summary{grid-column:1/-1;border-left:5px solid #397568;background:#f4faf7}
.phase4-communication{border-left:5px solid #7d9fb0;background:#f5fafc}
.phase4-management{border-left:5px solid #c5a065;background:#fffdf7}
.phase4-section .summary{margin:0;padding:16px 18px;border:1px solid #d5e5de;border-radius:9px;background:#fff;box-shadow:none}
.phase4-section .summary strong{font-size:21px;color:#173d35}
.phase4-section .summary p{margin:10px 0 0;padding-top:10px;border-top:1px solid #e2ebe6;color:#61756e;font-size:12px;line-height:1.55}
.phase4-section .summary small:first-child{color:#7a633a;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.phase4-section>.row,.phase4-section>.field,.phase4-section>.check{margin:0;padding:14px 15px;border:1px solid #d4e2dd;border-radius:8px;background:#fff}
.phase4-section>.row{display:flex}
.phase4-section>.check{display:flex;align-items:flex-start;gap:10px;line-height:1.45;color:#31564d}
.phase4-management>.field+.field{margin-top:10px}
.phase4-management .field{margin-bottom:0}
.wizard-phase-4 .phase-actions{margin-top:2px}
@media(max-width:760px){
 .phase3-section,.phase4-section{padding:14px 13px;border-radius:10px}
 .phase3-section>.row{display:grid;grid-template-columns:1fr;gap:8px}
 .wizard-phase-4{grid-template-columns:1fr;gap:10px}
 .phase4-summary{grid-column:auto}
 .phase4-section .summary{padding:14px}
 .phase-section-heading{margin-bottom:10px}
}
.embedded-wizard{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 35px #193a3a10;overflow:hidden}
.embedded-wizard .dialog-head{background:#f7faf8}
.embedded-wizard .dialog-body{max-height:none}
.embedded-wizard .dialog-foot{position:sticky;bottom:0;z-index:2;box-shadow:0 -7px 18px #19363218}
.embedded-wizard{max-width:1180px;margin:0 auto}
.embedded-wizard .dialog-head{padding:22px 28px 18px}
.embedded-wizard .dialog-head h2{font-size:26px}
.embedded-wizard .steps{padding:16px 28px;grid-template-columns:repeat(4,minmax(0,1fr));background:#f3f7f5}
.embedded-wizard .dialog-body{padding:24px 28px 30px}
.embedded-wizard .dialog-body>p.muted{max-width:68ch;margin-top:0}
.embedded-wizard .phase-intro{margin:20px 0 8px;padding:16px 18px;border-left:4px solid var(--green);background:#f2f7f4}
.embedded-wizard .phase-intro p{margin:5px 0 0;color:var(--muted);font-size:13px}
.embedded-wizard .treatment-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 8px}
.embedded-wizard .treatment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.embedded-wizard .treatment-row:not(.selected){min-height:72px}
.embedded-wizard .treatment-row.selected{border-color:#6c9c87;background:#f0f6f2;box-shadow:none}
.embedded-wizard .treatment-choice{display:flex;align-items:flex-start;gap:10px;border:0;padding:4px;background:transparent;text-align:left;min-width:0}
.embedded-wizard .treatment-choice span{min-width:0}
.embedded-wizard .treatment-choice strong,.embedded-wizard .treatment-choice small{display:block}
.embedded-wizard .treatment-choice strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.embedded-wizard .treatment-choice small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}
.embedded-wizard .treatment-duration{min-width:112px}
.embedded-wizard .treatment-row>.field{min-width:190px;margin:0}
.embedded-wizard .treatment-duration label{display:block;margin-bottom:5px}
.embedded-wizard .treatment-duration select{padding:8px 9px}
.embedded-wizard #slots{margin-top:22px}
.embedded-wizard .slot-days{display:grid;gap:24px;margin-top:8px}
.embedded-wizard .slot-day{padding:20px;border:1px solid #cfded8;border-radius:16px;background:#fff;box-shadow:0 7px 20px #193a3a0b}
.embedded-wizard .slot-day-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}
.embedded-wizard .slot-day-heading h4{margin:0;font-size:17px}
.embedded-wizard .slot-subheading{margin:12px 0 7px;color:var(--green);font-size:12px;font-weight:700}
.embedded-wizard .slot-day .slots{margin-top:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.embedded-wizard .slot-day .slot{min-height:58px;padding:10px 12px}
.embedded-wizard .slot-period{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fbfa}
.embedded-wizard .slot-period:first-of-type{margin-top:0}
.embedded-wizard .slot-period-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 2px 8px}
.embedded-wizard .slot-period-heading strong{font-size:14px;color:var(--ink)}
.embedded-wizard .slot-period-heading small{font-size:11px}
.embedded-wizard .dialog-foot{padding:14px 28px}
@media(max-width:760px){.embedded-wizard .treatment-rows{grid-template-columns:1fr}.embedded-wizard .slot-day .slots{grid-template-columns:repeat(2,minmax(0,1fr))}.embedded-wizard .dialog-head,.embedded-wizard .dialog-body,.embedded-wizard .dialog-foot{padding-left:18px;padding-right:18px}}
@media(max-width:560px){.embedded-wizard .steps{padding:12px 14px;gap:5px}.embedded-wizard .step{font-size:10px}.embedded-wizard .dialog-head h2{font-size:21px}.embedded-wizard .treatment-row{grid-template-columns:1fr}.embedded-wizard .treatment-duration{width:100%}.embedded-wizard .slot-day-heading{align-items:flex-start;flex-direction:column;gap:3px}}
.editorial-availability{max-width:1060px;padding:30px 34px 34px;border:2px solid #0d2d26;border-radius:20px;background:#173d35;color:#f5f7f1;box-shadow:0 18px 42px #173d3538}
.editorial-availability .section-heading{align-items:flex-start;margin:0 0 25px;padding:0 0 22px;border-bottom:2px solid #9bb8aa}
.editorial-availability .section-heading h3{margin:5px 0 8px;color:#fff;font:500 32px/1.05 Georgia,'Times New Roman',serif;letter-spacing:-.8px}
.editorial-availability .section-heading p{max-width:570px;margin:0 0 10px;color:#d2e0d9;font-size:13px;line-height:1.5}
.editorial-availability .section-heading small{color:#afc7bc;font-size:11px;letter-spacing:.02em}
.editorial-kicker{display:block;color:#c5a065;font-size:10px;font-weight:800;letter-spacing:.18em}
.editorial-count{display:flex;flex-direction:column;align-items:flex-end;color:#fff;font:500 38px/1 Georgia,'Times New Roman',serif;white-space:nowrap}
.editorial-count span{margin-top:6px;color:#b8cec4;font:700 10px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.14em;text-transform:uppercase}
.editorial-availability .internal-calendar-toolbar{max-width:none;margin:0 0 17px}
.editorial-availability .internal-calendar-toolbar{grid-template-columns:1fr auto 1fr}
.editorial-availability .internal-calendar-toolbar button:last-child{justify-self:end}
.editorial-availability .internal-calendar-toolbar strong{color:#fff;font:500 22px Georgia,'Times New Roman',serif}
.editorial-availability .internal-calendar-toolbar button{border-color:#638579;background:#285247;color:#f5f7f1;border-radius:3px}
.editorial-availability .internal-calendar-toolbar button:hover{background:#39665a}
.editorial-availability .internal-calendar-toolbar button:disabled{background:#173d35;color:#78998c}
.editorial-availability .internal-calendar-weekdays{max-width:none;color:#adc6ba;font-size:10px;letter-spacing:.14em}
.editorial-availability .internal-calendar-grid{max-width:none;gap:6px}
.editorial-availability .internal-calendar-day{min-height:58px;border:2px solid #6f998a;border-radius:3px;background:#214b40;color:#dce9e3}
.editorial-availability .internal-calendar-day strong{font-size:16px;font-weight:600}
.editorial-availability .internal-calendar-day small{color:#a9c3b7}
.editorial-availability .internal-calendar-day.available{border-color:#d2e8dc;background:#eef4ed;color:#173d35}
.editorial-availability .internal-calendar-day.available small{color:#527166}
.editorial-availability .internal-calendar-day.available:hover,.editorial-availability .internal-calendar-day.available:focus-visible{background:#fff;color:#173d35}
.editorial-availability .internal-calendar-day.selected{border-color:#c5a065!important;background:#c5a065!important;color:#173d35;box-shadow:0 4px 0 #8a6b3e}
.editorial-availability .internal-calendar-day.selected small{color:#173d35}
.editorial-availability .internal-calendar-day:disabled{background:#1b4339;border-color:#476e61;color:#86a397}
.editorial-availability .internal-calendar-day.empty-day{background:transparent;border-color:transparent}
.internal-calendar-scroll{display:grid;gap:28px;max-height:760px;overflow:auto;padding:0 8px 6px;border-top:1px solid #6a8b7f}
.internal-month{padding:22px 0 26px;border-bottom:2px solid #6a8b7f;scroll-margin-top:18px}
.internal-month:last-child{border-bottom:0;padding-bottom:0}
.internal-month h4{margin:0 0 14px;color:#fff;font:500 24px/1 Georgia,'Times New Roman',serif;text-transform:capitalize}
.internal-month .internal-calendar-weekdays,.internal-month .internal-calendar-grid{max-width:none}
.embedded-wizard .slot-day{border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}
.embedded-wizard .slot-day-heading{padding:0 0 13px;border-bottom:3px solid var(--ink)}
.embedded-wizard .slot-day-heading h4{font:500 25px/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.3px}
.embedded-wizard .slot-period{margin-top:20px;padding:18px 18px 20px;border:2px solid #c5d5cf;border-left:7px solid var(--green);border-radius:6px;background:#f7faf8}
.embedded-wizard .slot-period:nth-child(3){border-left-color:#c5a065}
.embedded-wizard .slot-period-heading strong{font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.embedded-wizard .slot-period-heading small{font-size:11px}
.embedded-wizard .slot-subheading{font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.embedded-wizard .slot-day .slot{border-color:#d2dfda;background:#fff;border-radius:3px;box-shadow:0 2px 0 #193a3a0b}
.embedded-wizard .slot-day .slot:hover{border-color:var(--green);transform:translateY(-1px)}
.embedded-wizard .slot-day .slot-priority{border:2px solid #c5a065;background:#fffbf1}
@media(max-width:560px){.editorial-availability{padding:22px 16px 20px;border-radius:14px}.editorial-availability .section-heading{gap:14px}.editorial-availability .section-heading h3{font-size:27px}.editorial-count{font-size:30px}.editorial-availability .internal-calendar-day{min-height:50px}.embedded-wizard .slot-day-heading h4{font-size:22px}}

/* Wizard phases 01, 03 and 04 share the same editorial treatment as the calendar. */
.embedded-wizard .dialog-body{background:#f5f8f6;padding:28px 32px 34px}
.embedded-wizard .dialog-body>p.muted{margin:0 0 18px;padding:14px 16px;border-left:4px solid #c5a065;background:#fffdf7;color:#52635e;font-size:13px;line-height:1.5}
.embedded-wizard .treatment-rows{gap:12px;margin:20px 0 0}
.embedded-wizard .treatment-row{min-height:82px;padding:15px 16px;border:2px solid #d3e0db;border-radius:5px;background:#fff;box-shadow:0 2px 0 #193a3a0a;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.embedded-wizard .treatment-row:hover{border-color:#7fa99c;transform:translateY(-1px)}
.embedded-wizard .treatment-row.selected{border-color:#397568;background:#edf5f1;box-shadow:inset 5px 0 #397568,0 4px 12px #193a3a12}
.embedded-wizard .treatment-choice{min-height:50px;padding:4px 6px;gap:13px}
.embedded-wizard .treatment-choice .swatch{width:11px;height:11px;flex:none;border-radius:2px;box-shadow:0 0 0 4px #edf3ef}
.embedded-wizard .treatment-choice strong{color:#173d35;font-size:15px;letter-spacing:-.15px}
.embedded-wizard .treatment-choice small{max-width:34ch;color:#647770;font-size:11px;line-height:1.45}
.embedded-wizard .treatment-duration,.embedded-wizard .treatment-row>.field{padding:10px 11px;border-left:1px solid #d3e0db;background:#f7faf8}
.embedded-wizard .treatment-duration label,.embedded-wizard .treatment-row>.field label{color:#61756e;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
.embedded-wizard .treatment-duration select,.embedded-wizard .treatment-row>.field select{border-color:#a9c1b8;border-radius:3px;background:#fff}

/* Phase 03: the patient is a clearly separated record, not a loose list of fields. */
.embedded-wizard .dialog-body:has(#patient-query){display:grid;gap:16px}
.embedded-wizard .dialog-body:has(#patient-query)>p.muted{margin:0}
.embedded-wizard .dialog-body:has(#patient-query)>div:not(.row):not(#matches){margin:0;padding:16px 18px;border:2px solid #d3e0db;border-radius:5px;background:#fff}
.embedded-wizard .dialog-body:has(#patient-query) #matches{display:grid;gap:6px;margin-top:-10px}
.embedded-wizard .dialog-body:has(#patient-query) #matches .list-item{border:1px solid #c5d5cf;background:#fff;border-radius:3px}
.embedded-wizard .dialog-body:has(#patient-query) .row{margin:0!important;padding:18px;border:2px solid #d3e0db;border-radius:5px;background:#fff}
.embedded-wizard .dialog-body:has(#patient-query) .field{margin:0}
.embedded-wizard .dialog-body:has(#patient-query) textarea{min-height:88px;border-color:#b8ccc4;background:#fbfdfc}

/* Phase 04: confirmation gets a quiet, high-contrast hand-off panel. */
.embedded-wizard .dialog-body:has(#initials){background:#f1f6f3}
.embedded-wizard .dialog-body:has(#initials)>.summary{padding:24px 26px;border:2px solid #397568;border-left:7px solid #397568;border-radius:5px;background:#fff;box-shadow:0 5px 16px #193a3a12}
.embedded-wizard .dialog-body:has(#initials)>.summary strong{color:#173d35;font-size:22px;letter-spacing:-.3px}
.embedded-wizard .dialog-body:has(#initials)>.summary small{color:#7a633a;font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.embedded-wizard .dialog-body:has(#initials)>.summary p{margin-top:12px;padding-top:12px;border-top:1px solid #d3e0db;color:#61756e;font-size:12px}
.embedded-wizard .dialog-body:has(#initials)>:is(.row,.field,.check){margin-top:18px;padding:16px 18px;border:1px solid #c5d5cf;border-radius:5px;background:#fff}
.embedded-wizard .dialog-body:has(#initials) .check{display:flex;gap:10px;align-items:flex-start;color:#31564d;line-height:1.45}
.embedded-wizard .dialog-body:has(#initials) .rule-note{margin-top:18px;padding:14px 16px;border-left:4px solid #c5a065;background:#fffdf7;color:#6e644f}

@media(max-width:760px){
 .embedded-wizard .dialog-body{padding:20px 16px 24px}
 .embedded-wizard .treatment-rows{grid-template-columns:1fr;margin-top:14px}
 .embedded-wizard .treatment-row{grid-template-columns:1fr;gap:8px;padding:13px}
 .embedded-wizard .treatment-duration,.embedded-wizard .treatment-row>.field{border-left:0;border-top:1px solid #d3e0db}
 .embedded-wizard .dialog-body:has(#patient-query) .row{grid-template-columns:1fr;padding:14px}
 .embedded-wizard .dialog-body:has(#initials)>.summary{padding:19px 18px}
}

/* Final wizard layout: dense desktop workspace, comfortable mobile fallback. */
.embedded-wizard{max-height:calc(100dvh - 40px);display:flex;flex-direction:column}
.embedded-wizard .dialog-body{min-height:0;overflow:auto}
.embedded-wizard .dialog-foot{flex:0 0 auto;position:sticky;bottom:0;z-index:4;background:#fbfdfc}
.wizard-phase{min-width:0}
.wizard-phase>.error{grid-column:1/-1}

/* Phase 01: keep the choices and primary action in the first viewport. */
.wizard-phase-1 .treatment-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0}
.wizard-phase-1 .treatment-row{min-height:58px;padding:9px 11px}
.wizard-phase-1 .treatment-choice{min-height:38px;gap:9px}
.wizard-phase-1 .treatment-choice strong{font-size:14px}
.wizard-phase-1 .treatment-choice small{font-size:10px;line-height:1.3}
.wizard-phase-1 .treatment-duration,.wizard-phase-1 .treatment-row>.field{padding:7px 8px}
.wizard-phase-1 .treatment-duration label,.wizard-phase-1 .treatment-row>.field label{font-size:8px}

/* Phase 02: calendar and selected-day availability are two deliberate columns. */
.wizard-phase-2>#slots{display:grid;grid-template-columns:minmax(280px,.86fr) minmax(0,1.14fr);gap:18px;align-items:start;margin-top:12px}
.wizard-phase-2 .phase2-calendar,.wizard-phase-2 .phase2-times{min-width:0}
.wizard-phase-2 .internal-day-calendar{max-width:none;margin:0;padding:14px;border:2px solid #c5d5cf;border-radius:12px;box-shadow:0 5px 0 #193a3a0c;background:#fff}
.wizard-phase-2 .internal-calendar-toolbar{max-width:none;grid-template-columns:auto 1fr auto;margin-bottom:10px}
.wizard-phase-2 .internal-calendar-toolbar strong{font-size:17px}
.wizard-phase-2 .internal-calendar-day{min-height:42px;padding:5px 2px}
.wizard-phase-2 .internal-calendar-day strong{font-size:13px}
.wizard-phase-2 .internal-calendar-day small{font-size:9px}
.wizard-phase-2 .phase2-times>.section-heading{margin:0 0 8px;padding:0 0 10px;border-bottom:2px solid var(--ink)}
.wizard-phase-2 .phase2-times>.section-heading h3{font-size:18px}
.wizard-phase-2 .phase2-times>.section-heading small{font-size:11px}
.wizard-phase-2 .slot-days{max-height:calc(100dvh - 315px);overflow:auto;margin-top:0;padding-right:3px;gap:10px}
.wizard-phase-2 .slot-day{border:0;padding:0}
.wizard-phase-2 .slot-day-heading{padding:0 0 8px;border-bottom:2px solid var(--ink)}
.wizard-phase-2 .slot-day-heading h4{font:600 18px/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.2px}
.wizard-phase-2 .slot-period{margin-top:10px;padding:10px 10px 12px;border:1px solid #c5d5cf;border-left:4px solid var(--green);border-radius:7px;background:#f7faf8}
.wizard-phase-2 .slot-period-heading strong{font-size:10px}
.wizard-phase-2 .slot-period-heading small{font-size:10px}
.wizard-phase-2 .slot-day .slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.wizard-phase-2 .slot-day .slot{min-height:42px;padding:5px 7px}
.wizard-phase-2 .slot-day .slot strong{font-size:14px}
.wizard-phase-2 .slot-day .slot small{font-size:9px}
.wizard-phase-2 .slot-employees{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}.wizard-phase-2 .slot-employee-choice{padding:2px 6px;border:1px solid #b8d3c7;border-radius:4px;background:#e7f0eb;color:#2f7d67;font-size:11px;font-weight:750;line-height:1.2}.wizard-phase-2 .slot-employee-choice:hover,.wizard-phase-2 .slot-employee-choice.selected{background:var(--green);border-color:var(--green);color:#fff}.wizard-phase-2 .slot.selected{border-color:var(--green);box-shadow:0 0 0 2px #6c9c87}

/* Phase 03: record search, patient record, and contact data remain distinct. */
.wizard-phase-3{display:grid;gap:14px}
.wizard-phase-3>p.muted{margin:0}
.wizard-phase-3>.row{margin:0!important;padding:14px 16px;border:1px solid #c5d5cf;border-radius:8px;background:#fff}
.wizard-phase-3>#matches{display:grid;gap:6px;margin:0;padding:0}
.wizard-phase-3>#matches .list-item{border:1px solid #c5d5cf;border-radius:6px;background:#fff}
.wizard-phase-3>.field{margin:0;padding:14px 16px;border:1px solid #c5d5cf;border-radius:8px;background:#fff}
.wizard-phase-3 textarea{min-height:76px;border-color:#b8ccc4;background:#fbfdfc}

/* Phase 04: summary, communication and responsible staff are separate panels. */
.wizard-phase-4{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:14px;align-items:start}
.wizard-phase-4>.summary{grid-column:1/-1;margin:0}
.wizard-phase-4>.row,.wizard-phase-4>.field,.wizard-phase-4>.check,.wizard-phase-4>.rule-note{margin:0!important;padding:15px 16px;border:1px solid #c5d5cf;border-radius:8px;background:#fff}
.wizard-phase-4>.check{display:flex;gap:10px;align-items:flex-start;color:#31564d;line-height:1.45}
.wizard-phase-4>.rule-note{border-left:4px solid #c5a065;background:#fffdf7}

@media(max-width:920px){
 .wizard-phase-2>#slots{grid-template-columns:minmax(245px,.8fr) minmax(0,1.2fr);gap:12px}
 .wizard-phase-2 .slot-day .slots{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .embedded-wizard{max-height:calc(100dvh - 18px)}
 .wizard-phase-1 .treatment-rows{grid-template-columns:1fr;gap:7px}
 .wizard-phase-2>#slots{grid-template-columns:1fr;gap:14px}
 .wizard-phase-2 .slot-days{max-height:none;overflow:visible}
 .wizard-phase-2 .internal-day-calendar{padding:11px}
 .wizard-phase-2 .internal-calendar-day{min-height:45px}
 .wizard-phase-2 .slot-day .slots{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wizard-phase-4{grid-template-columns:1fr}
 .wizard-phase-4>.summary{grid-column:auto}
}
@media(max-width:480px){
 .wizard-phase-2 .internal-calendar-toolbar{grid-template-columns:1fr 1fr;gap:7px}
 .wizard-phase-2 .internal-calendar-toolbar strong{grid-column:1/-1;grid-row:1;text-align:center;order:-1}
 .wizard-phase-2 .internal-calendar-toolbar button{font-size:11px;padding:7px 8px}
 .wizard-phase-2 .internal-calendar-day{min-height:42px}
 .wizard-phase-2 .slot-day .slots{gap:5px}
 .wizard-phase-2 .slot-day .slot{min-height:44px;padding:6px 5px}
}

/* Viewport fit: the wizard is the workspace, not a page inside the page. */
body.wizard-view{overflow:hidden}
body.wizard-view .workspace{min-height:0;height:100dvh;overflow:hidden;padding:10px 18px 12px}
body.wizard-view .top{margin-bottom:8px;min-height:38px}
body.wizard-view .page-description{display:none}
body.wizard-view .top h1{font-size:23px}
body.wizard-view .embedded-wizard{height:calc(100dvh - 72px);max-height:none;min-height:0}
body.wizard-view .embedded-wizard .dialog-head{padding:10px 22px 8px;min-height:48px}
body.wizard-view .embedded-wizard .dialog-head h2{font-size:21px}
body.wizard-view .embedded-wizard .steps{padding:8px 22px;gap:10px;min-height:43px}
body.wizard-view .embedded-wizard .step{font-size:11px}
body.wizard-view .embedded-wizard .step b{width:23px;height:23px}
body.wizard-view .embedded-wizard .dialog-body{flex:1;overflow:hidden;padding:12px 22px 14px}
body.wizard-view .embedded-wizard .dialog-foot{margin:0 12px 12px;padding:10px 12px;min-height:61px;border:1px solid #c5d5cf;border-radius:12px;background:#fff;box-shadow:0 5px 0 #193a3a14,0 -4px 16px #19363212}
body.wizard-view .embedded-wizard .dialog-foot button{min-height:42px;padding:10px 15px}
body.wizard-view .wizard-phase-1,body.wizard-view .wizard-phase-3,body.wizard-view .wizard-phase-4{height:100%;overflow:hidden}
body.wizard-view .wizard-phase-1>p.muted{padding:8px 12px;margin:0 0 8px;font-size:11px;line-height:1.25}
body.wizard-view .wizard-phase-1 .treatment-rows{margin:0;gap:6px}
body.wizard-view .wizard-phase-1 .treatment-row{min-height:52px;padding:6px 8px}
body.wizard-view .wizard-phase-1 .treatment-choice{min-height:32px;padding:2px 4px}
body.wizard-view .wizard-phase-1 .treatment-choice strong{font-size:13px}
body.wizard-view .wizard-phase-1 .treatment-choice small{font-size:9px;line-height:1.15}
body.wizard-view .wizard-phase-1 .treatment-duration,body.wizard-view .wizard-phase-1 .treatment-row>.field{padding:5px 6px}
body.wizard-view .wizard-phase-1 .treatment-duration select,body.wizard-view .wizard-phase-1 .treatment-row>.field select{padding:5px 6px;font-size:11px}
body.wizard-view .wizard-phase-2>.summary{margin:0 0 8px;padding:8px 12px;border-radius:7px}
body.wizard-view .wizard-phase-2>.summary strong{font-size:15px;margin:0 0 2px}
body.wizard-view .wizard-phase-2>.summary span{font-size:11px}
body.wizard-view .wizard-phase-2>#slots{height:calc(100% - 48px);margin:0;gap:12px}
body.wizard-view .wizard-phase-2 .internal-day-calendar{padding:9px}
body.wizard-view .wizard-phase-2 .internal-day-calendar .section-heading{margin-bottom:8px;padding-bottom:7px}
body.wizard-view .wizard-phase-2 .internal-day-calendar .section-heading h3{font-size:17px;margin:2px 0 4px}
body.wizard-view .wizard-phase-2 .internal-day-calendar .section-heading p{font-size:10px;line-height:1.3;margin:0}
body.wizard-view .wizard-phase-2 .internal-calendar-toolbar{margin-bottom:6px}
body.wizard-view .wizard-phase-2 .internal-calendar-day{min-height:35px;padding:3px 1px}
body.wizard-view .wizard-phase-2 .internal-calendar-day strong{font-size:12px}
body.wizard-view .wizard-phase-2 .internal-calendar-day small{font-size:8px;margin-top:1px}
body.wizard-view .wizard-phase-2 .phase2-times{min-height:0;overflow:hidden}
body.wizard-view .wizard-phase-2 .phase2-times>.section-heading{margin:0 0 6px;padding-bottom:7px}
body.wizard-view .wizard-phase-2 .phase2-times>.section-heading h3{font-size:16px;margin:0 0 3px}
body.wizard-view .wizard-phase-2 .phase2-times>.section-heading small{font-size:10px}
body.wizard-view .wizard-phase-2 .slot-days{height:calc(100% - 45px);max-height:none;overflow:auto;gap:7px}
body.wizard-view .wizard-phase-2 .slot-day-heading{padding-bottom:5px}
body.wizard-view .wizard-phase-2 .slot-day-heading h4{font-size:16px}
body.wizard-view .wizard-phase-2 .slot-day-heading small{font-size:10px}
body.wizard-view .wizard-phase-2 .slot-period{margin-top:6px;padding:6px 7px 8px}
body.wizard-view .wizard-phase-2 .slot-period-heading{margin-bottom:4px}
body.wizard-view .wizard-phase-2 .slot-period-heading strong,body.wizard-view .wizard-phase-2 .slot-period-heading small{font-size:9px}
body.wizard-view .wizard-phase-2 .slot-subheading{margin:6px 0 4px;font-size:8px}
body.wizard-view .wizard-phase-2 .slot-day .slots{gap:4px}
body.wizard-view .wizard-phase-2 .slot-day .slot{min-height:36px;padding:4px 5px}
body.wizard-view .wizard-phase-2 .slot-day .slot strong{font-size:12px;margin:1px 0}
body.wizard-view .wizard-phase-2 .slot-day .slot small{font-size:8px}
body.wizard-view .wizard-phase-3{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px}
body.wizard-view .wizard-phase-3>p.muted,body.wizard-view .wizard-phase-3>#matches,body.wizard-view .wizard-phase-3>.field:last-child,body.wizard-view .wizard-phase-3>small{grid-column:1/-1}
body.wizard-view .wizard-phase-3>p.muted{padding:8px 12px;font-size:11px;line-height:1.3}
body.wizard-view .wizard-phase-3>.row{padding:9px 10px;gap:8px}
body.wizard-view .wizard-phase-3>.row .field{margin-bottom:0;gap:4px}
body.wizard-view .wizard-phase-3>.row label{font-size:10px}
body.wizard-view .wizard-phase-3>.row input,body.wizard-view .wizard-phase-3>.row select{padding:7px 8px;font-size:12px}
body.wizard-view .wizard-phase-3>#matches{gap:4px;max-height:92px;overflow:auto}
body.wizard-view .wizard-phase-3>#matches .list-item{padding:7px 9px}
body.wizard-view .wizard-phase-3>.field{padding:9px 10px}
body.wizard-view .wizard-phase-3 textarea{min-height:54px;padding:7px 8px}
body.wizard-view .wizard-phase-4{height:100%;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);align-content:start;gap:8px}
body.wizard-view .wizard-phase-4>.summary{padding:12px 14px}
body.wizard-view .wizard-phase-4>.summary strong{font-size:18px;margin:4px 0}
body.wizard-view .wizard-phase-4>.summary p{margin:6px 0;padding-top:6px;font-size:11px}
body.wizard-view .wizard-phase-4>.row,body.wizard-view .wizard-phase-4>.field,body.wizard-view .wizard-phase-4>.check,body.wizard-view .wizard-phase-4>.rule-note{padding:10px 12px}

@media(max-width:760px){
 body.wizard-view .workspace{padding:6px 10px 8px}
 body.wizard-view .top{min-height:32px}
 body.wizard-view .top h1{font-size:19px}
 body.wizard-view .embedded-wizard{height:calc(100dvh - 52px)}
 body.wizard-view .embedded-wizard .dialog-head{padding:8px 12px 6px}
 body.wizard-view .embedded-wizard .dialog-head h2{font-size:18px}
 body.wizard-view .embedded-wizard .steps{padding:6px 10px;gap:3px}
 body.wizard-view .embedded-wizard .step{font-size:9px}
 body.wizard-view .embedded-wizard .step b{width:20px;height:20px}
 body.wizard-view .embedded-wizard .dialog-body{padding:8px 12px 10px}
 body.wizard-view .embedded-wizard .dialog-foot{margin:0 8px 8px;padding:7px 9px;min-height:52px}
 body.wizard-view .embedded-wizard .dialog-foot button{min-height:38px;padding:8px 11px}
 body.wizard-view .wizard-phase-1 .treatment-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 body.wizard-view .wizard-phase-1 .treatment-row{grid-template-columns:1fr;min-height:0;gap:3px;padding:6px}
 body.wizard-view .wizard-phase-1 .treatment-duration,body.wizard-view .wizard-phase-1 .treatment-row>.field{border:0;border-top:1px solid #d3e0db;padding:4px 0 0}
 body.wizard-view .wizard-phase-2>#slots{height:auto;display:grid;grid-template-columns:1fr;overflow:auto}
 body.wizard-view .wizard-phase-2 .phase2-times{overflow:visible}
 body.wizard-view .wizard-phase-2 .slot-days{height:auto;max-height:none;overflow:visible}
 body.wizard-view .wizard-phase-3{grid-template-columns:1fr}
 body.wizard-view .wizard-phase-3>p.muted,body.wizard-view .wizard-phase-3>#matches,body.wizard-view .wizard-phase-3>.field:last-child,body.wizard-view .wizard-phase-3>small{grid-column:auto}
 body.wizard-view .wizard-phase-4{grid-template-columns:1fr;overflow:auto}
}
.patient-record .tabs button{background:#d9ebe4;color:var(--green);border:1px solid #bdd8cc;font-weight:650}.patient-record .tabs button:hover{background:#c7e1d7}.patient-record .tabs button.active{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 4px 12px #215a5030}.patient-cancelled-section{border-color:#e3c8c5;background:#fffafa}.patient-cancelled-section .patient-appointments-heading{color:#8f514b}
.wizard-phase-2>.summary .phase2-treatment-line{display:flex;align-items:center;justify-content:space-between;gap:16px}.wizard-phase-2>.summary .phase2-treatment-line>strong{margin:0}.wizard-phase-2>.summary .phase2-treatment-line>.field{flex:0 1 300px;min-width:220px;margin:0}.wizard-phase-2>.summary .phase2-treatment-line select{padding:8px 10px}.wizard-phase-2>.summary>span{display:block;margin-top:7px;color:var(--muted);font-size:12px}@media(max-width:560px){.wizard-phase-2>.summary .phase2-treatment-line{align-items:stretch;flex-direction:column;gap:7px}.wizard-phase-2>.summary .phase2-treatment-line>.field{width:100%;min-width:0}.wizard-phase-2>.summary>span{line-height:1.4}}

/* Final phase 03/04 layout overrides. */
.wizard-phase-3{display:grid;gap:14px;align-content:start;min-width:0}
.phase3-section,.phase4-section{min-width:0;padding:17px 18px;border:1px solid #c8dcd4;border-radius:12px;background:#fff;box-shadow:0 3px 0 #193a3a0a}
.phase3-search{border-left:5px solid #397568;background:#f7fbf9}.phase3-data{border-left:5px solid #8bb29f;background:#fbfdfb}.phase3-note{border-left:5px solid #c5a065;background:#fffdf7}
.phase3-intro{display:grid;gap:8px;margin-bottom:2px}.phase3-intro>.muted{margin:0;padding:12px 15px;border-left:4px solid #c5a065;border-radius:0 8px 8px 0;background:#fffaf0;color:#586d65;line-height:1.45}.phase3-intro>.warning{margin:0;border-color:#eadfbe;background:#fff8e9}
.phase-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:13px}.phase-section-heading>span{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#dcece5;color:#286959;font-size:11px;font-weight:800}.phase-section-heading h3{margin:0;color:#234a40;font-size:16px;letter-spacing:-.2px}.phase-section-heading p{margin:3px 0 0;color:#71817d;font-size:11px;line-height:1.35}
.phase3-section .field,.phase3-section .row{margin:0}.phase3-section>.row{padding:0;border:0;background:transparent}.phase3-search .field{margin:0}.phase3-search #matches{display:grid;gap:6px;margin-top:8px}.phase3-search #matches:empty{display:none}.phase3-search #matches .list-item{border-color:#b9d3c7;border-radius:8px;background:#fff;box-shadow:none}.phase3-note .field-validation{margin-top:10px}.phase3-note>small{display:block;margin-top:9px;line-height:1.4}
.wizard-phase-3>.phase-actions,.wizard-phase-4>.phase-actions,.wizard-phase-3>.error,.wizard-phase-4>.error{grid-column:1/-1}.wizard-phase-4{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.78fr);gap:14px;align-items:start;min-width:0}.phase4-summary{grid-column:1/-1;border-left:5px solid #397568;background:#f4faf7}.phase4-communication{border-left:5px solid #7d9fb0;background:#f5fafc}.phase4-management{border-left:5px solid #c5a065;background:#fffdf7}.phase4-section .summary{margin:0;padding:16px 18px;border:1px solid #d5e5de;border-radius:9px;background:#fff;box-shadow:none}.phase4-section .summary strong{font-size:21px;color:#173d35}.phase4-section .summary p{margin:10px 0 0;padding-top:10px;border-top:1px solid #e2ebe6;color:#61756e;font-size:12px;line-height:1.55}.phase4-section .summary small:first-child{color:#7a633a;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.phase4-section>.row,.phase4-section>.field,.phase4-section>.check{margin:0;padding:14px 15px;border:1px solid #d4e2dd;border-radius:8px;background:#fff}.phase4-section>.row{display:flex}.phase4-section>.check{display:flex;align-items:flex-start;gap:10px;line-height:1.45;color:#31564d}.phase4-management .field{margin-bottom:0}
@media(max-width:760px){.phase3-section,.phase4-section{padding:14px 13px;border-radius:10px}.phase3-section>.row{display:grid;grid-template-columns:1fr;gap:8px}.wizard-phase-4{grid-template-columns:1fr;gap:10px}.phase4-summary{grid-column:auto}.phase4-section .summary{padding:14px}.phase-section-heading{margin-bottom:10px}}

/* Phase 03: two-column information hierarchy on desktop, one column on mobile. */
.wizard-phase-3{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:14px}
.wizard-phase-3>.phase3-intro{grid-column:1/-1}
.wizard-phase-3>.phase3-search{grid-column:1}.wizard-phase-3>.phase3-data{grid-column:2}
.wizard-phase-3>.phase3-note{grid-column:1}.wizard-phase-3>.phase3-hints{grid-column:2}
.phase3-hints{border-left:5px solid #7d9fb0;background:#f5fafc}
.phase3-hints ul{margin:0;padding-left:19px;color:#526a68;font-size:12px;line-height:1.55}.phase3-hints li+li{margin-top:8px}
.wizard-phase-3:not(:has(.phase3-search))>.phase3-data{grid-column:1/-1}
@media(max-width:760px){.wizard-phase-3{grid-template-columns:1fr}.wizard-phase-3>.phase3-intro,.wizard-phase-3>.phase3-search,.wizard-phase-3>.phase3-data,.wizard-phase-3>.phase3-note,.wizard-phase-3>.phase3-hints{grid-column:1}.wizard-phase-3:not(:has(.phase3-search))>.phase3-data{grid-column:1}}
