:root{--brand:#ff5757;--brand-dark:#ae2929;--charcoal:#545454;--ink:#24272d;--muted:#686d76;--line:#e6e8ec;--surface:#f5f6f8;--soft:#fff0ef;--radius:20px}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--surface)}a{color:inherit}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled,fieldset:disabled{opacity:.55;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--brand-dark);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3.3vw,3.4rem);line-height:1.13;letter-spacing:-.045em;font-weight:650;margin-bottom:20px}h2{font-size:1.25rem;line-height:1.3;letter-spacing:-.025em;margin-bottom:16px}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:750;color:var(--brand-dark);margin-bottom:16px}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:34px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;margin:0 12px 64px}.brand img{width:130px;height:auto}.brand span{font-size:.65rem;letter-spacing:.24em;margin:8px 0 0 4px;color:var(--muted)}.nav-label{font-size:.7rem;letter-spacing:.14em;color:var(--muted);margin:0 16px 14px}nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;text-decoration:none;font-size:.9rem;margin-bottom:8px;border-radius:12px}nav a.selected{background:var(--soft);color:var(--brand-dark);font-weight:650}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;font-size:.8rem}.sidebar-bottom small{display:block;color:var(--muted)}.sidebar-bottom form{margin-left:auto}.avatar{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;background:var(--soft);border-radius:50%;color:var(--brand-dark)}.main{flex:1;min-width:0}.topbar{height:85px;border-bottom:1px solid var(--line);padding:0 48px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem;background:#fff}.content{max-width:1440px;margin:auto;padding:45px 48px 70px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:40px}.page-heading p:last-child{margin-bottom:0}.page-heading.compact h1{font-size:clamp(1.8rem,3vw,2.6rem)}.cadence{display:flex;flex-direction:column;border-left:1px solid #d9dce2;padding-left:35px;font-size:.85rem}.cadence strong{font-size:1rem;margin:10px 0 4px}.cadence span:last-child{color:var(--muted)}.clock{font-size:2.4rem;color:var(--brand-dark);line-height:1}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 20px}.section-title h2{margin:0}.section-title>.muted{font-size:.85rem}.count{display:inline-block;padding:3px 10px;background:#e8eaef;border-radius:20px;font-size:.8rem;margin-left:8px}.clinic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:24px}.clinic-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;text-decoration:none;transition:transform .2s,box-shadow .2s;min-width:0}.clinic-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px #24272d09}.clinic-card h2{margin:24px 0 6px}.clinic-card>p{font-size:.875rem;min-height:28px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.clinic-icon{width:42px;height:42px;background:var(--soft);color:var(--brand-dark);border-radius:13px;display:grid;place-items:center}.badge{font-size:.75rem;line-height:1.4;border-radius:30px;padding:7px 11px;display:inline-block;font-weight:600}.badge.good{color:#216047;background:#eaf5ef}.badge.neutral{color:#5a5e67;background:#eff0f3}.card-estimate{display:flex;gap:14px;align-items:center;padding:16px 0 25px}.card-estimate>strong{font-size:4rem;font-weight:550;line-height:1.1;letter-spacing:-.04em}.card-estimate>span{line-height:1.4;font-size:.85rem;color:var(--muted)}.card-estimate>.no-estimate{font-size:1.6rem}.card-footer{padding-top:18px;border-top:1px solid var(--line);font-size:.75rem;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;color:var(--muted)}.card-footer strong{color:var(--brand-dark)}.back-link{display:inline-block;color:var(--muted);font-size:.875rem;text-decoration:none;margin-bottom:25px}.work-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:30px;align-items:start;margin-bottom:28px}.panel{padding:30px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:26px}.panel:last-child{margin-bottom:0}.panel p.muted{font-size:.9rem}.panel label{display:block;margin:20px 0 8px;font-size:.875rem;font-weight:600}input,textarea,select{border:1px solid #cfd3da;border-radius:10px;padding:12px 14px;background:#fff;color:var(--ink);width:100%;max-width:100%}input[readonly],textarea[readonly]{background:#f8f9fb;color:#555e6b;font-size:.85rem}textarea{resize:vertical}fieldset{border:0;padding:0;margin:22px 0}legend{font-size:.875rem;font-weight:600;margin-bottom:10px}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--brand-dark)}.status-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.status-options label{margin:0;cursor:pointer;font-size:.8rem;position:relative}.status-options input{position:absolute;opacity:0}.status-options span{display:flex;align-items:center;justify-content:center;padding:12px 7px;border:1px solid var(--line);border-radius:10px;min-height:64px;text-align:center;line-height:1.4}.status-options input:checked+span{background:var(--soft);border-color:var(--brand);color:var(--brand-dark)}.status-options input:focus-visible+span{outline:3px solid var(--brand-dark);outline-offset:2px}.number-input{display:flex;align-items:center;border:1px solid #cfd3da;border-radius:14px;padding:4px 20px}.number-input input{font-size:3.4rem;border:none;padding:2px 0;font-weight:550;letter-spacing:-.04em;min-width:0}.number-input span{color:var(--muted)}.presets{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0 25px}.preset{background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 11px;font-size:.8rem}.preset:hover{background:var(--soft);border-color:var(--brand)}.field-help{font-size:.75rem;color:var(--muted);margin:9px 0 20px}.button{display:inline-flex;justify-content:center;align-items:center;gap:20px;padding:13px 20px;border-radius:10px;border:1px solid transparent;text-decoration:none;font-size:.875rem;font-weight:650;line-height:1.5;cursor:pointer}.button.primary{background:var(--brand);color:#301111}.button.primary:hover{background:#f34d4d}.button.secondary{border-color:#d8dce2;background:#fff;color:#454b54}.button.full{width:100%;justify-content:space-between}.text-button{border:0;background:none;color:var(--brand-dark);padding:10px 0;font-size:.875rem;font-weight:600}.update-timer{background:#f7f8fa;border-radius:10px;padding:12px;text-align:center;font-size:.8rem;color:var(--muted)}.update-timer.overdue{background:var(--soft);color:var(--brand-dark)}.patient-preview{display:block;width:100%;height:665px;border:1px solid var(--line);border-radius:22px;background:#fff}.embed-panel{margin-top:15px}.copy-row{display:flex;gap:10px}.copy-row input{min-width:0}.copy-row .button{white-space:nowrap}.copy-feedback{font-size:.8rem;color:var(--muted);margin-left:15px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.875rem;text-align:left}th{font-size:.75rem;color:var(--muted);font-weight:600}th,td{padding:15px 10px;border-bottom:1px solid var(--line)}.notice{padding:16px 20px;border-radius:12px;font-size:.875rem;margin-bottom:24px}.notice.success{background:#eaf5ef;color:#216047}.notice.error{background:#fff0ef;color:#a12424}.notice ul{margin-bottom:0}.admin-row{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.admin-row small{display:block}.check{display:flex!important;gap:10px;align-items:center;font-weight:400!important}.staff{padding:18px 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-size:.875rem}summary .muted{display:inline-block;margin-left:10px}.auth-page{background:#fff}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#ff5757;padding:55px 70px;display:flex;flex-direction:column;justify-content:space-between;color:#321b1b;min-height:100vh}.auth-logo{width:150px;border-radius:3px}.auth-story h1{font-size:clamp(3rem,5.5vw,6rem);letter-spacing:-.055em}.auth-story .eyebrow{color:#592323}.auth-story p:not(.eyebrow){font-size:1.05rem}.auth-story>span{font-size:.7rem;letter-spacing:.2em}.auth-form{display:flex;align-items:center;justify-content:center;padding:50px}.auth-card{width:100%;max-width:380px}.auth-card h1{font-size:2.7rem}.auth-card form{margin:30px 0 22px}.auth-card label{display:block;font-size:.875rem;font-weight:600;margin:20px 0}.auth-card input{margin-top:8px}.auth-card .back-link{margin-bottom:12px}.public-page{background:#f3f4f6;padding:22px;min-height:100vh;display:flex;justify-content:center;align-items:flex-start}.wait-card{max-width:440px;width:100%;border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 16px 55px #2629330b;border:1px solid var(--line)}.wait-header{padding:18px 26px;border-bottom:1px solid var(--line);border-top:5px solid var(--brand);display:flex;align-items:center;justify-content:space-between}.wait-header img{width:86px}.wait-header span{font-size:.65rem;letter-spacing:.18em;color:var(--muted)}.wait-body{padding:26px;text-align:center}.wait-body .eyebrow{font-size:.65rem;margin-bottom:12px}.wait-body h1{font-size:1.65rem;line-height:1.23;margin-bottom:8px;letter-spacing:-.025em}.clinic-address{font-size:.8rem;margin-bottom:22px}.patient-status{background:#f8f9fa;border:1px solid #eceef1;border-radius:16px;padding:20px 14px 14px;margin:20px 0 15px}.wait-number{font-size:5rem;line-height:1.1;letter-spacing:-.07em;font-weight:600;margin:15px 0 4px}.wait-number.text{font-size:1.7rem;letter-spacing:-.03em;margin:24px 0 12px}.patient-status p{color:var(--muted);font-size:.85rem;margin:0 0 8px}.freshness{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:.75rem;margin:16px 0}.patient-note{font-size:.875rem;background:var(--soft);padding:10px;border-radius:8px;overflow-wrap:anywhere}.disclaimer{color:var(--muted);font-size:.75rem;line-height:1.6;margin:16px 0 0}.wait-footer{border-top:1px solid var(--line);padding:15px 20px;font-size:.7rem;display:flex;flex-direction:column;align-items:center;color:var(--muted);gap:4px}.wait-footer strong{color:var(--brand-dark)}.widget-colors{border:1px solid var(--line);border-radius:14px;padding:4px 18px 8px}.widget-colors legend{padding:0 6px;margin-bottom:0}.color-row{display:flex;gap:20px}.color-row label{flex:1}.color-row input[type=color]{height:46px;padding:4px;cursor:pointer}.widget-preview{background:#f5f6f8;border-radius:10px;padding:18px;display:flex;justify-content:flex-end;margin-top:18px}.widget-preview-button{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 16px 10px 12px;box-shadow:0 10px 30px #0000002e;font-size:.9rem;font-weight:600;background:#ff5757;color:#301111}.widget-preview-button strong{font-weight:750}.widget-preview-time{font-weight:500;font-size:.8rem;opacity:.75}.widget-preview-dot{width:10px;height:10px;border-radius:50%;background:#2fbf71}.field-help.warning{color:#a12424}[hidden]{display:none!important}@media(max-width:1100px){.sidebar{width:205px;padding:30px 16px}.content{padding:35px 28px}.topbar{padding:0 28px}.work-grid{gap:20px}.panel{padding:23px}.status-options{grid-template-columns:1fr}.status-options span{min-height:auto}.cadence{display:none}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;width:auto;height:auto;padding:15px 20px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;flex-wrap:wrap;gap:15px}.brand{margin:0 auto 0 0}.brand img{width:85px}.brand span{font-size:.55rem}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px}nav a{font-size:.75rem;padding:9px;margin:0}.topbar{height:60px;padding:0 20px;font-size:.75rem}.content{padding:28px 20px}.page-heading{gap:18px;align-items:flex-start;flex-direction:column;margin-bottom:30px}.page-heading h1{font-size:2.5rem}.work-grid{grid-template-columns:1fr}.section-title{flex-wrap:wrap}.panel{padding:22px}.status-options{grid-template-columns:1fr 1fr 1fr}.status-options span{min-height:60px}.patient-preview{height:650px}.copy-row{flex-direction:column}.auth-layout{grid-template-columns:1fr}.auth-story{min-height:auto;padding:24px}.auth-story>div,.auth-story>span{display:none}.auth-logo{width:110px}.auth-form{padding:45px 25px}.public-page{padding:10px}.wait-body{padding:24px}.sidebar-bottom{display:flex;width:100%;border-top:1px solid var(--line);padding-top:12px}.sidebar-bottom small{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}} 
.button.danger{border-color:#f0c4c4;background:#fff;color:#a12424}.button.danger:hover{background:var(--soft)}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.staff .work-grid{margin:10px 0 0}.staff form{margin:0}.staff>summary .badge{margin-left:8px}
.public-page.embedded{padding:0;background:#fff;min-height:0}.embedded .wait-card{max-width:none;border:0;border-radius:0;box-shadow:none}.embedded .wait-header{display:none}.embedded .wait-body{padding:20px 22px}
