:root{--pink:#bf307c;--pink-dark:#9f2166;--rose:#f9edf3;--ink:#282630;--muted:#8a8590;--line:#ebe8ec;--bg:#f8f7f9;--green:#317861;--amber:#a57432;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none;font-size:13px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,label,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #d488b1;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #d488b1;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;font-weight:630;line-height:1.25}h2{font-size:17px;font-weight:620;letter-spacing:-.35px}h3{font-size:13px;font-weight:620;line-height:1.5}p{line-height:1.65}small{font-size:11px}svg{flex-shrink:0;vertical-align:middle}.layout{display:flex;min-height:100vh}.sidebar{width:200px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:29px 15px 16px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 8px}.brand>span:last-child{font-size:14px;font-weight:650;letter-spacing:-.4px}.brand small{display:block;font-size:8px;letter-spacing:1.9px;color:var(--muted);margin-top:5px;font-weight:500}.brand-mark{width:44px;height:44px;background:#27252e;border-radius:12px;display:flex;align-items:center;justify-content:center;color:white;letter-spacing:-4px;padding-right:3px;font-size:25px;font-weight:600}.brand-mark span{color:#ee8bbb}.nav-label{font-size:9px;letter-spacing:1.7px;color:#a6a0aa;margin:44px 13px 14px;font-weight:650}.nav-item{width:100%;display:flex;gap:12px;align-items:center;background:none;border:0;border-radius:8px;padding:12px;color:#77717d;font-weight:550;text-align:left;margin-bottom:5px}.nav-item:hover{background:var(--bg);color:var(--ink)}.nav-item.active{background:var(--rose);color:var(--pink)}.nav-count{margin-left:auto;font-size:10px;background:#efd5e2;border-radius:4px;padding:2px 5px}.sidebar-bottom{margin-top:auto;padding-top:70px}.sandbox-card{background:#faf8fa;border:1px solid var(--line);padding:14px 11px;border-radius:10px;margin:0 3px 18px}.sandbox-card b{font-size:10px;margin-left:5px}.sandbox-card p{font-size:10px;color:var(--muted);margin:7px 0 0 13px}.status-dot{width:6px;height:6px;border-radius:50%;background:#bd80a1;display:inline-block;flex-shrink:0}.profile{border-top:1px solid var(--line);padding:18px 7px 0;display:flex;align-items:center;gap:10px}.profile b{font-size:10px;font-weight:600}.profile small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#f1e6ed;color:#a45f85;font-size:11px;font-weight:650;flex-shrink:0}.avatar.small{width:31px;height:31px;font-size:10px}.avatar.pale{background:#f0ebed;color:#746673}.avatar.peach{background:#f6ede5;color:#af8b69}.avatar.lavender{background:#ece9f5;color:#8e7ea8}.main{margin-left:200px;width:calc(100% - 200px)}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:white}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{margin:0 11px;color:#c6c0c8}.breadcrumb b{color:#615b67;font-weight:550}.top-actions,.actions{display:flex;align-items:center;gap:10px}.demo-strip{display:flex;align-items:center;justify-content:space-between;padding:9px 32px;font-size:9px;color:#9c8b97;border-bottom:1px solid var(--line);background:#fcfafc;letter-spacing:.1px}.demo-strip span:first-child{display:flex;gap:7px;align-items:center}.btn{border:1px solid #e3dfe5;background:#fff;color:#625a69;border-radius:7px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:550;line-height:1.4;white-space:nowrap}.btn:hover{border-color:#c9b8c4;background:#fcf9fb}.btn.primary{background:var(--pink);border-color:var(--pink);color:white;box-shadow:0 2px 3px #89245b10}.btn.primary:hover{background:var(--pink-dark)}.btn.ghost{border:0;background:transparent;color:#88808c}.btn.ghost:hover{background:#f6f1f4;color:var(--pink)}.icon-button{border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;background:white;color:#8b8190;border-radius:7px;padding:8px}.btn.icon-button{padding:9px}.text-button{border:0;background:transparent;padding:0;color:var(--pink);font-size:10px;display:inline-flex;align-items:center;gap:4px;box-shadow:none}.text-button:hover{color:var(--pink-dark);background:none;border:0}.patient-layout{display:flex;min-height:calc(100vh - 139px)}.patient-directory{width:214px;flex-shrink:0;padding:27px 15px 20px;background:#fff;border-right:1px solid var(--line)}.directory-title{padding:0 5px;margin-bottom:18px}.directory-title h2{font-size:16px}.directory-title h2 span{float:right;color:#b1a7b4;font-size:10px;font-weight:500;padding-top:3px}.search{height:35px;display:flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:0 8px;color:#aaa2ae}.search input{width:100%;min-width:0;border:0;outline:0;font-size:10px;background:transparent}.search button{background:none;border:0;padding:0;color:#b0a6b3}.patient-list{margin:19px -6px}.patient-card{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent;width:100%;padding:14px 8px;margin-bottom:8px;color:var(--ink)}.patient-card.selected{border-color:#edcfdf;background:#fbf2f7}.patient-card:hover{background:#faf5f8}.patient-card>span:nth-child(2){min-width:0;flex:1}.patient-card small{display:block;font-size:7px;color:#aaa0ac;letter-spacing:1.2px;font-weight:600}.patient-card strong{display:block;font-size:11px;letter-spacing:-.2px;margin:3px 0 4px;font-weight:600}.patient-card em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:8px;color:#9d94a2}.patient-card>svg{color:#c7b9c4}.directory-foot{font-size:8px;color:#b0a5b2;display:flex;align-items:center;gap:6px;padding:13px 0;border-top:1px solid var(--line);line-height:1.7}.patient-workspace{min-width:0;flex:1}.patient-heading{padding:28px 28px 22px;display:flex;align-items:center;justify-content:space-between;background:#fff}.eyebrow{font-size:8px;font-weight:650;letter-spacing:1.7px;color:#a095a3;margin-bottom:9px;line-height:1.6}.record-number{font-size:7px;font-weight:400;letter-spacing:.3px;margin-left:9px;color:#bdb3c0}.patient-heading h1{font-size:25px;letter-spacing:-.9px}.identity-line{font-size:9px;color:#9a8f9f;margin-top:9px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dot-separator{color:#d3c7d0}.patient-stats{display:grid;grid-template-columns:1.6fr .8fr 1fr 1fr;border-top:1px solid #f4f1f4;border-bottom:1px solid var(--line);padding:17px 28px;background:#fff;gap:16px}.patient-stats div{border-right:1px solid var(--line)}.patient-stats div:last-child{border:0}.patient-stats span{display:block;color:#a298a6;font-size:8px;margin-bottom:7px}.patient-stats b{display:block;font-size:11px;font-weight:600}.tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:21px}.tabs button{border:0;background:transparent;padding:14px 0;font-size:10px;color:#9c92a0;border-bottom:2px solid transparent;white-space:nowrap}.tabs button.active{border-color:var(--pink);color:var(--pink);font-weight:600}.patient-tabs{padding:0 28px;background:white}.timeline-grid{display:grid;grid-template-columns:270px minmax(300px,1fr);padding:24px;gap:22px;align-items:start}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-title h2{font-size:14px}.section-title h3{font-size:11px;letter-spacing:-.1px}.timeline-list>.section-title{padding:0 2px;margin-bottom:14px}.segmented{display:flex;padding:3px;background:#edeaee;border:1px solid #eae5eb;border-radius:7px;gap:2px;margin-bottom:21px}.segmented button{background:transparent;border:0;color:#a298a7;border-radius:4px;font-size:9px;padding:6px 7px;flex:1;white-space:nowrap}.segmented button.active{background:white;color:#625669;box-shadow:0 1px 3px #4030400d}.visit-list{position:relative}.visit-card{position:relative;display:flex;gap:15px;text-align:left;background:white;border:1px solid var(--line);border-radius:10px;padding:18px 14px;width:100%;margin-bottom:12px;color:var(--ink);transition:.12s}.visit-card.selected{border-color:#ce89af;box-shadow:0 2px 8px #b5417d09}.visit-card:hover{border-color:#d8b9cd}.visit-card.selected:before{position:absolute;content:'';width:3px;top:17px;bottom:17px;left:0;background:var(--pink);border-radius:0 3px 3px 0}.visit-date{border:1px solid #f0e9ee;border-radius:7px;height:49px;width:36px;text-align:center;flex-shrink:0;padding:7px 0;background:#fdfbfc}.visit-date span{display:block;font-size:7px;color:#a698a6;letter-spacing:1px}.visit-date b{display:block;font-size:17px;margin-top:2px;font-weight:550}.visit-card-body{flex:1;min-width:0}.visit-card-body h3{font-size:11px;margin:10px 0 5px;line-height:1.5;letter-spacing:-.2px}.visit-card-body p{font-size:9px;color:#918597}.visit-card-body>small{font-size:8px;color:#b1a6b5;display:block;margin-top:4px;line-height:1.5}.pill{display:inline-flex;align-items:center;white-space:nowrap;padding:4px 7px;border-radius:4px;font-size:8px;line-height:1.1;letter-spacing:.1px;font-weight:550}.pill.green{background:#edf5f0;color:#54856f}.pill.pink{background:#f8eaf1;color:#b45c8b}.pill.amber{background:#fbf2e6;color:#ad824b}.pill.neutral{background:#f0edf1;color:#8d7d96}.visit-indicators{margin-top:14px;padding-top:10px;border-top:1px solid #f3eff4;color:#a79aac;font-size:7px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.visit-indicators span{display:flex;align-items:center;gap:4px}.visit-indicators .warning-dot{color:#b18b54}.timeline-hint{display:flex;gap:6px;align-items:center;font-size:8px;line-height:1.6;color:#ad9fb1;margin:18px 0}.visit-detail{border:1px solid var(--line);border-radius:12px;background:white;min-width:0;box-shadow:0 3px 6px #46334c03;overflow:hidden}.visit-detail-header{padding:23px 23px 20px}.visit-detail-header .eyebrow{margin:0}.flex-between{display:flex;justify-content:space-between;align-items:center;gap:14px}.visit-detail-header h2{font-size:19px;letter-spacing:-.65px;margin:13px 0 8px}.visit-detail-header p{font-size:9px;color:#a296a7}.visit-detail-header p span{margin:0 5px;color:#c6b9c9}.visit-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.visit-actions .btn{font-size:9px;padding:7px 10px}.detail-tabs{padding:0 21px;gap:14px;overflow:auto}.detail-tabs button{font-size:8px;padding:13px 0}.detail-tabs span{color:#bd87a5;font-size:7px}.detail-body{padding:22px}.detail-section{margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid var(--line)}.detail-section:last-of-type{margin-bottom:16px}.note-preview{font-size:10px;line-height:1.85;color:#87788e;max-width:550px}.treatment-map-row{display:flex;align-items:center;gap:22px;background:#fcfafb;border:1px solid #f1ebef;border-radius:9px;padding:13px 17px}.face-map{width:120px;text-align:center;flex-shrink:0}.face-map svg{width:105px;height:127px}.face-map small{display:block;font-size:6px;color:#b5a7b0;margin-top:5px}.treatment-legend{flex:1;min-width:0}.units-total{display:flex;gap:9px;align-items:center;border-bottom:1px solid #ebe3e9;padding:2px 0 11px;margin-bottom:5px}.units-total>b{font-size:28px;line-height:1;font-weight:550;color:#66546d;letter-spacing:-1px}.units-total>span{font-size:8px;line-height:1.5;color:#ad9cae}.site-line{display:flex;align-items:center;gap:8px;padding:7px 0;font-size:8px}.site-line>span:nth-child(2){flex:1}.site-line small{display:block;font-size:6px;color:#b1a4b4;margin-top:2px}.site-line b{font-size:10px;text-align:right;font-weight:550}.site-line b small{font-weight:400}.number-dot{display:flex;align-items:center;justify-content:center;background:#f2dfea;color:var(--pink);border-radius:50%;height:15px;width:15px;font-size:7px}.compact-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f3eff3;color:#a08fa7}.compact-row:last-child{border:0}.compact-row>span:first-of-type{flex:1}.compact-row b{font-size:10px;color:#75657d;font-weight:550;display:block}.compact-row small{display:block;font-size:8px;color:#b3a5b8;margin-top:4px}.visit-checks{display:flex;gap:12px;flex-wrap:wrap;color:#a998ae;font-size:8px}.visit-checks>span{display:flex;align-items:center;gap:5px}.muted{color:var(--muted)}.small{font-size:10px}.padded{padding:15px}.inline-notice{padding:13px 15px;background:#f7f4f8;border:1px solid #eee7f0;border-radius:7px;display:flex;gap:9px;align-items:flex-start;color:#a393ad;font-size:9px;line-height:1.65;margin:15px 0}.inline-notice.amber{background:#fdf8ef;border-color:#f2e7d4;color:#b18b58;border-radius:0;border-left:0;border-right:0;margin:0}.inline-notice svg{margin-top:1px}.empty{text-align:center;padding:28px 12px;color:#cabdce}.empty h3{color:#a295a8;margin:10px 0 5px;font-weight:550;font-size:11px}.empty p{color:#b6aabb;font-size:9px;max-width:250px;margin:auto}.note-paper{padding:21px;border:1px solid var(--line);border-radius:8px;margin:16px 0;background:#fcfbfc}.note-paper p{font-size:11px;line-height:1.9;color:#88798f;margin:12px 0 22px}.note-author{border-top:1px solid var(--line);padding-top:12px;display:flex;gap:7px;align-items:center;font-size:9px;color:#b2a5b8}.amendment{border-left:3px solid #ca8eaf}.amendment small{color:#a08fa7;font-size:9px}.order-card{display:flex;justify-content:space-between;align-items:center;padding:19px 0;border-bottom:1px solid var(--line);gap:10px}.order-card h3{margin:7px 0 12px;font-size:11px}.document-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;padding:18px 0;text-align:left;color:#a396aa}.document-row:last-of-type{border-bottom:0}.document-row:hover{background:#fdf9fc}.document-row>span:first-of-type{flex:1}.document-row b{font-size:11px;color:#75657c;font-weight:550;display:block}.document-row small{display:block;margin-top:5px;font-size:9px;color:#b2a5b8}.financial-total{background:#f9f5f8;border-radius:8px;padding:20px;margin-bottom:10px}.financial-total>span{font-size:9px;display:block;color:#ae9db2}.financial-total strong{font-size:26px;font-weight:550;display:block;margin-top:9px;letter-spacing:-.9px}.activity-row{display:flex;align-items:flex-start;gap:12px;margin:20px 0;color:#887792}.activity-row .status-dot{margin-top:5px}.activity-row b{font-size:10px;font-weight:550}.activity-row p{font-size:9px;color:#b3a4ba;margin-top:4px}.photos-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.photos-grid figure{margin:10px 0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.photos-grid img{width:100%;height:180px;object-fit:contain;background:#f8f5f8}.photos-grid figcaption{font-size:10px;padding:12px}.photos-grid small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.overview-panels,.documents-content,.wallet-content{padding:25px}.overview-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px}.card h2{font-size:15px}.card>p{margin:15px 0}.card>.actions{margin:18px 0}.card>.section-title{margin-bottom:14px}dl{display:grid;grid-template-columns:1fr 1.4fr;font-size:10px;gap:14px 16px;margin-top:23px}dt{color:#b2a2b9}dd{margin:0;color:#7d6b86;overflow-wrap:anywhere}.wallet-summary{border-radius:11px;background:#302934;color:white;padding:26px;display:flex;gap:25px;align-items:center;margin:20px 0 24px}.wallet-summary>div:first-child{flex:1}.wallet-summary span{color:#b9a4bc;font-size:9px;display:block}.wallet-summary strong{font-size:32px;letter-spacing:-1px;font-weight:500;display:block;margin-top:10px}.wallet-summary b{font-size:10px;font-weight:500;display:block;margin-top:10px}.wallet-summary .wallet-badge{color:#e0b4cf;border:1px solid #705068;border-radius:5px;padding:7px;font-size:8px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:10px;text-align:left}th{color:#b1a2b8;font-size:8px;font-weight:550;letter-spacing:.5px;border-bottom:1px solid var(--line);padding:12px}td{padding:18px 12px;border-bottom:1px solid var(--line);color:#8f7b99}td small{font-size:8px;display:block;color:#baaac1;margin-top:5px;max-width:280px;line-height:1.5}td b{font-weight:550}td.credit{color:var(--green)}.page-pad{padding:34px;max-width:1600px;margin:auto}.page-pad.narrow{max-width:1000px;margin-left:0}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:29px;letter-spacing:-1px}.page-heading p{font-size:11px;color:#ae9cb5;margin-top:10px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.metric{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px}.metric>span{font-size:10px;color:#ac9ab4;display:block}.metric strong{font-size:31px;letter-spacing:-1px;font-weight:500;margin:14px 0 7px;display:block}.metric small{font-size:9px;color:#b9a9bf}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.schedule-row{display:flex;width:100%;align-items:center;gap:20px;padding:21px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:#a694b0}.schedule-row:last-child{border:0}.schedule-row:hover{background:#fcf9fb}.schedule-time{font-size:11px;font-weight:550;min-width:55px;color:#82688d}.schedule-time small{display:block;font-size:9px;color:#b29fbd;margin-top:5px;font-weight:400}.schedule-person{flex:1}.schedule-person b{display:block;font-size:11px;color:#75617f;font-weight:550}.schedule-row small{display:block;font-size:9px;color:#b29fbd;margin-top:5px;line-height:1.5}.schedule-provider{font-size:10px;flex:1}.dashboard-grid .schedule-provider{display:none}.schedule-card{padding-top:5px;padding-bottom:5px}.build-note{padding:24px 28px;background:#fbf7fa}.build-note>div:last-child{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#ad8ba2;font-size:11px}.build-note .eyebrow{color:#b28aa3;margin-bottom:20px}.wallet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.wallet-patient{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;text-align:left;color:var(--ink)}.wallet-patient:hover{border-color:#d394b7}.wallet-patient h3{font-size:14px;margin:18px 0 9px}.wallet-patient p{font-size:9px;color:#b29abb;min-height:30px}.wallet-patient strong{display:block;font-size:30px;font-weight:500;letter-spacing:-1px;margin:15px 0 25px}.wallet-patient>span:last-child{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--pink);border-top:1px solid var(--line);padding-top:16px}.setting-row{border-bottom:1px solid var(--line);padding:18px 0;display:flex;align-items:baseline;gap:25px}.setting-row:last-child{border:0}.setting-row b{font-size:11px;min-width:140px;font-weight:550}.setting-row p{font-size:10px;color:#a48fae}.page-pad>.small.muted{font-size:10px;margin:20px 0}footer{display:flex;justify-content:space-between;padding:15px 32px;border-top:1px solid var(--line);color:#c0b3c6;font-size:8px;background:#fcfafc}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,15px);background:#322a37;color:#fff;padding:14px 21px;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;z-index:100;box-shadow:0 5px 25px #35213926;max-width:90vw;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(570px,calc(100vw - 32px));max-height:88vh;box-shadow:0 25px 100px #36213e30;color:var(--ink)}dialog::backdrop{background:#32283966;backdrop-filter:blur(3px)}.modal-header{padding:23px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-header h2{font-size:20px;letter-spacing:-.5px}.modal-header .eyebrow{font-size:7px;margin-bottom:5px}.modal-body{padding:23px 25px}.modal-body>p{font-size:12px;color:#9b87a6;margin-bottom:16px}.modal-body>h3{margin:20px 0 9px}.modal-footer{padding:18px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#fdfbfc}.modal-body dl{font-size:11px;line-height:1.6;margin:15px 0 25px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:11px;color:#a28cab}.field input,.field select,.field textarea{width:100%;background:white;border:1px solid #e5dce8;border-radius:7px;padding:10px 12px;color:#6b5776;font-size:12px;line-height:1.6}.field textarea{resize:vertical;min-height:130px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-error{color:#ac5c65!important;font-size:11px!important;margin:0!important}.check-label{display:flex;gap:10px;align-items:flex-start;font-size:11px;color:#a38dae;margin:20px 0}.review-preview{padding:18px;border:1px solid var(--line);border-radius:8px;margin-bottom:14px}.review-preview p{font-size:11px;color:#a08aaa;margin-bottom:10px}.review-preview small{font-size:9px;color:#bd8c9d}.portal{min-height:100vh;background:#faf7fa}.portal>header{padding:22px 6%;display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line)}.portal-demo{display:flex;align-items:center;gap:20px;background:#f8edf4;padding:12px 6%;font-size:10px;color:#b4779a}.portal-demo select{border:1px solid #e4ccdc;background:white;color:#b06f94;border-radius:5px;padding:6px 9px;font-size:10px}.portal-demo>span{margin-left:auto;color:#bc99b0;font-size:9px}.portal main{max-width:1050px;margin:auto;padding:48px 30px 60px}.portal main>h1{font-size:34px;margin-bottom:12px}.portal main>.muted{margin-bottom:32px;font-size:12px}.portal-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.portal .card{padding:27px}.portal .section-title h2{font-size:16px}.portal .section-title>svg{color:#bb86a6}.portal-appt{padding:17px 0}.portal-appt h3{font-size:18px;margin:10px 0}.portal-appt p{font-size:11px;color:#b397bd;margin:12px 0 20px}.portal-balance{font-size:40px;font-weight:500;letter-spacing:-1.5px;margin-top:30px}.portal-allset{display:flex;gap:10px;align-items:center;padding:25px 0;color:#6d9885;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1550px){:root{font-size:14px}.sidebar{width:220px}.main{margin-left:220px;width:calc(100% - 220px)}.patient-directory{width:245px;padding:30px 20px}.patient-card strong{font-size:13px}.patient-card em{font-size:10px}.patient-card small{font-size:8px}.patient-heading{padding:32px}.patient-heading h1{font-size:30px}.timeline-grid{grid-template-columns:330px minmax(380px,1fr);padding:30px;gap:28px}.visit-card{padding:22px 17px}.visit-card-body h3{font-size:13px}.visit-card-body p{font-size:11px}.visit-card-body>small{font-size:10px}.visit-detail-header{padding:27px}.detail-body{padding:27px}.note-preview{font-size:12px}.detail-tabs button{font-size:10px}.patient-stats b{font-size:13px}.patient-stats span{font-size:10px}.identity-line{font-size:11px}.section-title h3{font-size:13px}.treatment-map-row{gap:35px;padding:20px 25px}.face-map{width:150px}.face-map svg{width:140px;height:160px}.site-line{font-size:10px}.site-line small{font-size:8px}.compact-row b{font-size:12px}.compact-row small{font-size:10px}.visit-actions .btn{font-size:11px}.patient-tabs button{font-size:12px}.pill{font-size:10px}.nav-item{font-size:13px}.timeline-hint{font-size:10px}.visit-checks{font-size:10px}}
@media(max-width:1200px){.sidebar{width:175px;padding-left:10px;padding-right:10px}.main{margin-left:175px;width:calc(100% - 175px)}.brand{gap:8px;padding:0 4px}.brand>span:last-child{font-size:12px}.brand small{font-size:7px}.brand-mark{width:37px;height:37px;font-size:22px}.patient-directory{width:190px;padding-left:12px;padding-right:12px}.timeline-grid{grid-template-columns:225px minmax(270px,1fr);gap:16px;padding:18px}.visit-card{gap:10px;padding:15px 10px}.visit-detail-header{padding:18px}.detail-tabs{gap:11px;padding:0 17px}.detail-body{padding:18px}.treatment-map-row{padding:12px;gap:12px}.face-map{width:95px}.face-map svg{width:90px}.units-total>b{font-size:24px}.patient-stats{padding-left:24px;padding-right:24px}.wallet-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.page-pad{padding:28px}.patient-heading{padding:24px}.topbar{padding:0 25px}.record-number{display:none}}
@media(max-width:1000px){.patient-directory{width:165px}.patient-card{gap:7px;padding:13px 5px}.patient-card .avatar{width:29px;height:29px;font-size:9px}.patient-card>svg{display:none}.patient-card strong{font-size:10px}.patient-card em{font-size:7px}.timeline-grid{grid-template-columns:1fr}.timeline-list{display:flex;flex-direction:column}.visit-list{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}.visit-card{min-width:210px;max-width:230px;margin:0}.timeline-list .segmented{max-width:300px;margin-bottom:14px}.timeline-hint{display:none}.visit-detail-header h2{font-size:22px}.treatment-map-row{justify-content:flex-start;gap:35px;padding:18px 25px}.face-map{width:140px}.face-map svg{width:120px;height:150px}.treatment-legend{max-width:230px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.overview-panels{grid-template-columns:1fr}.patient-stats{grid-template-columns:1.4fr .7fr 1fr;gap:12px}.patient-stats>div:first-child{display:none}.patient-stats>div:nth-child(2){border-left:0}.schedule-row{gap:12px}.schedule-provider{display:none}.build-note>div:last-child{flex-wrap:wrap}.setting-row{display:block}.setting-row p{margin-top:8px}.breadcrumb{font-size:10px}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:16px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.layout{display:block}.sidebar .brand{padding:0 0 17px}.sidebar .nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:8px}.nav-item{width:auto;white-space:nowrap;font-size:10px;padding:10px;gap:7px;margin:0;border-radius:7px 7px 0 0}.nav-item svg{width:15px;height:15px}.nav-count{font-size:8px}.main{margin:0;width:100%}.topbar{height:56px;padding:0 18px}.top-actions .btn{font-size:9px;padding:6px}.top-actions>.avatar{display:none}.demo-strip{padding:8px 18px;font-size:8px}.demo-strip>span:last-child{font-size:7px}.patient-layout{display:block}.patient-directory{width:100%;padding:17px 17px 0;border-right:0;border-bottom:1px solid var(--line)}.directory-title{display:none}.search{max-width:100%;height:33px}.patient-list{display:flex;gap:8px;overflow:auto;margin:12px 0}.patient-card{min-width:139px;width:auto;padding:11px 9px;margin:0}.patient-card strong{font-size:10px}.patient-card em{font-size:7px}.directory-foot{display:none}.patient-heading{padding:22px 19px 19px}.patient-heading h1{font-size:24px}.identity-line{font-size:8px;gap:5px}.patient-stats{padding:16px 19px;grid-template-columns:1fr 1fr 1fr}.patient-tabs{padding:0 19px}.patient-tabs button{font-size:11px}.timeline-grid{padding:20px 14px;gap:19px}.section-title h2{font-size:15px}.visit-detail-header{padding:20px}.visit-detail-header h2{font-size:21px}.detail-tabs{gap:16px;padding:0 20px}.detail-tabs button{font-size:9px}.detail-body{padding:20px}.note-preview{font-size:11px}.treatment-map-row{gap:20px;padding:15px 13px}.face-map{width:110px}.face-map svg{width:106px;height:130px}.site-line{font-size:9px}.pill{font-size:9px}.visit-checks{font-size:8px}.page-pad{padding:24px 18px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:27px}.metric-grid{gap:12px}.metric{padding:19px}.metric strong{font-size:28px}.card{padding:20px}.wallet-grid{gap:13px}.wallet-patient{padding:18px}.wallet-patient h3{font-size:12px}.wallet-patient strong{font-size:27px}.schedule-row{flex-wrap:wrap}.schedule-row .pill{margin-left:auto}.schedule-row>svg{display:none}.wallet-summary{padding:22px;gap:12px;flex-wrap:wrap}.wallet-summary>div:nth-child(2){display:none}.overview-panels,.documents-content,.wallet-content{padding:20px 16px}.portal>header{padding:17px}.portal .brand>span:last-child{display:none}.portal-demo{padding:12px 17px;gap:10px;flex-wrap:wrap}.portal-demo>span{margin:0;width:100%}.portal main{padding:30px 17px}.portal main>h1{font-size:28px}.portal-grid{grid-template-columns:1fr;gap:0}.portal .card{padding:22px}.portal footer{font-size:8px}footer{padding:14px 18px}.modal-header,.modal-body{padding:20px}.modal-footer{padding:16px 20px}.photos-grid{grid-template-columns:1fr}.form-grid{gap:10px}.record-number{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Comfortable reading sizes for the clinical workspace. */
:root{--muted:#817788}
.eyebrow{font-size:9px;color:#8d7d95}.breadcrumb{font-size:12px}.demo-strip{font-size:10px;color:#8e7484}.nav-label{color:#978a9e}.patient-card small{font-size:8px;color:#8c7b94}.patient-card strong{font-size:12px}.patient-card em{font-size:9px;color:#918099}.patient-heading h1{font-size:28px}.identity-line{font-size:11px;color:#8b7b94}.patient-stats span{font-size:10px;color:#8b7c95}.patient-stats b{font-size:13px}.patient-tabs button{font-size:12px}.section-title h3{font-size:13px}.section-title h2{font-size:16px}.visit-card-body h3{font-size:13px}.visit-card-body p{font-size:11px;color:#8d7a98}.visit-card-body>small{font-size:10px;color:#9b8ba3}.visit-indicators{font-size:9px;color:#9b87a7}.pill{font-size:10px}.visit-date{width:40px;height:53px}.visit-date span{font-size:8px}.visit-date b{font-size:19px}.segmented button{font-size:10px}.visit-detail-header p{font-size:11px;color:#8d7c97}.visit-actions .btn{font-size:11px}.detail-tabs button{font-size:10px}.note-preview{font-size:12px;color:#82708d}.compact-row b{font-size:12px}.compact-row small{font-size:10px;color:#a08ba9}.visit-checks{font-size:10px;color:#927d9f}.site-line{font-size:11px}.site-line small{font-size:8px;color:#9b87a5}.site-line b{font-size:12px}.units-total>span{font-size:10px;color:#a18aa8}.text-button{font-size:11px}.timeline-hint{font-size:9px;color:#a18faa}.empty p{font-size:11px;color:#a18faa}.empty h3{font-size:12px}.inline-notice{font-size:11px;color:#937d9f}.btn{font-size:12px}td{font-size:12px}th{font-size:10px}td small{font-size:10px}dl{font-size:12px}.document-row b{font-size:12px}.document-row small{font-size:10px}.metric>span{font-size:12px}.metric small{font-size:11px}.schedule-person b{font-size:12px}.schedule-row small{font-size:11px}.schedule-provider{font-size:12px}.setting-row p{font-size:12px}.setting-row b{font-size:12px}.wallet-patient p{font-size:11px}.page-heading p{font-size:12px}.small{font-size:11px}
@media(max-width:700px){.patient-card strong{font-size:11px}.patient-card em{font-size:8px}.patient-heading h1{font-size:25px}.identity-line{font-size:10px}.patient-stats b{font-size:12px}.patient-stats span{font-size:9px}.demo-strip{font-size:8px}.detail-tabs{gap:15px}.detail-tabs button{font-size:10px}.visit-card{min-width:240px;max-width:260px}.btn{font-size:11px}.treatment-map-row{gap:18px}.site-line{font-size:10px}.face-map{width:95px}.face-map svg{width:90px}.visit-actions .btn{font-size:10px}}
/* Visit-specific intake and patient-facing summaries. */
[hidden]{display:none!important}.intake-question{border:0;border-top:1px solid var(--line);padding:22px 0;margin:0;min-width:0}.intake-question legend{float:left;width:100%;font-size:14px;font-weight:600;line-height:1.65;margin:0 0 8px}.intake-question legend span{color:var(--pink);margin-right:5px}.intake-question>p{clear:both;margin-bottom:12px}.intake-options{clear:both;display:grid;gap:8px}.intake-options label{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;line-height:1.5;font-size:13px;cursor:pointer}.intake-options input{width:16px;height:16px;flex-shrink:0;margin:2px 0 0;accent-color:var(--pink)}.intake-question textarea{clear:both;display:block;width:100%;padding:12px;border:1px solid #d9d4dd;border-radius:8px;resize:vertical;background:#fff}.intake-explanation{clear:both;margin:14px 0 0}.consent-copy{white-space:pre-wrap;line-height:1.8;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:20px;margin:18px 0;font-size:13px}.version-history{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.version-history summary{cursor:pointer;font-weight:600;line-height:1.7}.version-history>details{margin:16px 0;padding-left:12px}.note-block{padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:10px;margin:16px 0}.note-block p,.summary-copy{white-space:pre-wrap}.note-block .eyebrow{display:block;margin-bottom:9px}.attestation{display:flex;gap:10px;line-height:1.7}.attestation input{width:16px;height:16px;flex-shrink:0;margin-top:4px;accent-color:var(--pink)}.detail-tabs{overflow-x:auto}.detail-tabs button{white-space:nowrap}.modal-body dd{overflow-wrap:anywhere}
.demo-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #e8d4e0;background:linear-gradient(110deg,#fff,#faf0f6);border-radius:14px;padding:24px 28px;margin-bottom:24px}.demo-welcome .eyebrow{margin-bottom:8px}.demo-welcome h2{font-size:21px}.demo-welcome p{font-size:12px;color:var(--muted);margin-top:7px}.demo-welcome>.btn{white-space:nowrap}.demo-stops{display:grid;gap:10px;margin:20px 0}.demo-stop{display:flex;align-items:center;gap:14px;width:100%;padding:16px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;color:var(--ink)}.demo-stop:hover{border-color:#d598b9;background:var(--rose)}.demo-stop>span:nth-child(2){flex:1}.demo-stop b{display:block;font-size:13px;margin-bottom:5px}.demo-stop small{display:block;color:#756d7a;line-height:1.6;font-size:11px}.step-number{width:28px;height:28px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--rose);color:var(--pink);font-weight:650}.review-preview h4{font-size:12px;margin:18px 0 8px;color:var(--ink)}.review-preview p{color:#68616e;line-height:1.8}.review-preview li{font-size:12px;line-height:1.8;margin:8px 0}.review-preview ul{padding-left:18px}.review-preview details{padding:10px 0;border-bottom:1px solid var(--line)}.review-preview summary{cursor:pointer;font-size:12px;line-height:1.7}.review-preview details img{max-width:100%;border-radius:8px}.review-preview small{color:#816a7b;font-size:11px}
@media(max-width:700px){.demo-welcome{padding:20px;align-items:flex-start;flex-direction:column;gap:16px}.demo-welcome h2{font-size:20px}.demo-stop{align-items:flex-start}.topbar{padding:0 12px}.top-actions{gap:5px}.breadcrumb{font-size:9px}.top-actions .btn{font-size:9px;padding:5px}.demo-welcome p{font-size:12px}}
.discard-notice{position:sticky;bottom:0;padding:20px 25px;background:#fff4e7;border-top:1px solid #e5c49c;box-shadow:0 -5px 20px #3228390a;z-index:2}.discard-notice p{font-size:12px;margin:8px 0 12px}.discard-notice>div{display:flex;gap:10px}.schedule-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:12px}.history-entry{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.history-entry p{margin:5px 0}.schedule-time{min-width:100px}.modal-footer{flex-wrap:wrap}.demo-strip:has(button){align-items:center}.demo-strip button{margin-left:12px;font-size:11px}.note-author+p{margin-top:15px}
@media(max-width:700px){.schedule-filters{grid-template-columns:1fr;gap:0}.schedule-filters .field{margin-bottom:10px}.discard-notice{padding:16px}.demo-strip{flex-wrap:wrap;gap:8px}.schedule-time{min-width:80px}.compact-row .btn{font-size:10px}.modal-footer .btn{flex:1;white-space:nowrap}}
.mobile-settings{display:none}@media(max-width:700px){.sidebar nav .mobile-settings{display:flex}.field input,.field select,.field textarea,.intake-question textarea{font-size:16px}.field input,.field select,.btn,.icon-button{min-height:42px}.demo-strip .btn{min-height:32px}.schedule-row{gap:12px}.schedule-provider{min-width:140px}}
.record-tools{display:flex;gap:3px;flex-wrap:wrap}.record-tools .btn{font-size:10px;padding:5px 7px}.site-line{flex-wrap:wrap}.site-line>.record-tools{flex-basis:100%;padding-left:28px;margin-top:6px}.photo-open{padding:0;border:0;background:none;display:block;width:100%;cursor:zoom-in}.photo-open img{display:block;width:100%}.full-photo{max-width:100%;max-height:60vh;object-fit:contain;display:block;margin:auto}.photos-grid figcaption .record-tools{margin-top:10px}
.order-card{flex-wrap:wrap}.order-history{width:100%;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;font-size:12px}.order-history summary{cursor:pointer;font-weight:600}.order-history p{margin-top:10px}.order-history small{display:block;color:var(--muted)}
dialog.prescribing-dialog{width:min(1140px,calc(100vw - 32px));max-height:94vh;overflow:hidden}.prescribing-dialog .modal-header{padding:18px 24px}.prescribing-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;border-bottom:1px solid var(--line);background:#fdfbfc}.prescribing-context b{display:block;font-size:14px}.prescribing-context small{display:block;color:var(--muted);margin-top:4px;font-size:11px}#prescribing-frame{width:100%;height:min(650px,calc(94vh - 218px));min-height:260px;display:block;border:0;background:#f8f7f9}.prescribing-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 24px;border-top:1px solid var(--line)}.prescribing-footer>span{font-size:11px;color:var(--muted)}@media(max-width:700px){dialog.prescribing-dialog{width:calc(100vw - 16px);max-height:96vh}.prescribing-dialog .modal-header{padding:14px 17px}.prescribing-context{padding:12px 17px;gap:10px}.prescribing-context b{font-size:12px}.prescribing-context small{font-size:10px}.prescribing-footer{padding:12px 17px;gap:10px}.prescribing-footer>span{font-size:10px}.prescribing-footer .btn{font-size:10px}#prescribing-frame{height:calc(96vh - 226px)}}
/* Visit image carousel: marker coordinates share the displayed image bounds. */
.visit-image-section{margin:0 0 26px;padding-bottom:24px;border-bottom:1px solid var(--line)}.visit-image-section .section-title{flex-wrap:wrap;gap:12px}.visit-image-section .section-title>.actions{flex-wrap:wrap;gap:6px}.photo-carousel{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.photo-carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin}.photo-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start}.carousel-image{display:flex;align-items:center;justify-content:center;min-height:300px;padding:14px;background:#f8f2ef;cursor:zoom-in}.carousel-image:focus-visible{outline:3px solid var(--pink);outline-offset:-3px}.timeline-image-frame{position:relative;display:block;flex-shrink:1}.timeline-image-frame>img{display:block;width:100%;height:auto}.timeline-photo-markers{position:absolute;inset:0;pointer-events:none}.timeline-photo-markers>span{position:absolute;transform:translate(-50%,-50%);min-width:23px;height:23px;padding:0 4px;display:grid;place-items:center;border-radius:50%;border:2px solid #fff;color:#fff;font-size:10px;box-shadow:0 1px 4px #33233333;font-weight:600}.photo-slide-caption{display:flex;gap:15px;justify-content:space-between;align-items:flex-start;padding:14px 16px;font-size:11px}.photo-slide-caption b{display:block;font-size:12px}.photo-slide-caption small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.6}.photo-slide-caption>span:last-child{white-space:nowrap;color:var(--muted)}.photo-slide>.record-tools{padding:0 14px 10px}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:18px;border-top:1px solid var(--line);padding:5px}.carousel-count{font-size:11px;color:var(--muted)}.carousel-thumbs{display:flex;justify-content:center;gap:9px;padding:9px 12px 14px;overflow:auto}.carousel-thumbs button{background:white;border:1px solid var(--line);border-radius:7px;min-width:65px;padding:5px;color:var(--muted);font-size:9px}.carousel-thumbs button.active{border:2px solid var(--pink);padding:4px;color:var(--pink)}.carousel-thumbs img{display:block;margin:auto;width:37px;height:44px;object-fit:cover;border-radius:3px}.carousel-thumbs span{display:block;margin-top:5px}.product-totals{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}.product-totals>div{display:flex;gap:7px;align-items:center;background:var(--bg);padding:9px 11px;border-radius:8px;font-size:11px}.product-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.treatment-legend{width:100%}
/* Touch-first visual chart editor. */
dialog.annotation-dialog{width:min(1230px,calc(100vw - 24px));height:94dvh;max-height:94dvh;overflow:hidden;display:flex;flex-direction:column}dialog.annotation-dialog:not([open]){display:none}.annotation-dialog .modal-header{padding:15px 22px;flex-shrink:0}.annotation-dialog .modal-header h2{font-size:18px}.annotation-workspace{display:flex;flex-direction:column;min-height:0;flex:1}.annotation-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 22px;border-bottom:1px solid var(--line);flex-shrink:0}.annotation-heading>div>b{display:block;font-size:14px}.annotation-heading small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.annotation-totals{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.annotation-totals>span{font-size:11px;padding:8px 10px;border-left:3px solid var(--product-color,#c7b6c6);background:#faf6f9;border-radius:5px}.annotation-totals b{color:var(--product-color,var(--ink));margin-right:5px}.annotation-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}.annotation-toolbar>div{display:flex;align-items:center;gap:5px}.annotation-toolbar span{font-size:11px;padding:0 3px}.annotation-workspace button{border:1px solid #dfd7e2;border-radius:7px;padding:9px 11px;background:#fff;color:#6e5c76;font:inherit;font-size:12px;min-height:40px;cursor:pointer;touch-action:manipulation}.annotation-workspace button:disabled{opacity:.4;cursor:default}.annotation-workspace button.active{color:var(--pink);border-color:var(--pink);background:var(--rose)}.annotation-workspace .annotation-primary{background:var(--pink);border-color:var(--pink);color:#fff;font-weight:600;padding:12px 16px}.annotation-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:0;flex:1;overflow:hidden}.annotation-visual{display:flex;flex-direction:column;min-height:0;background:#f8f3f0}.annotation-image-label{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 17px;background:#fdfaf8;font-size:11px;flex-shrink:0}.annotation-image-label>span{color:#9a8478;font-size:10px}.annotation-stage{min-height:180px;overflow:auto;flex:1;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;padding:12px;background:#f1e7e1}.annotation-canvas{position:relative;width:min(calc(100% * var(--zoom)),calc(440px * var(--zoom)));margin:0 auto}.annotation-canvas>img{display:block;width:100%;height:auto;pointer-events:none;user-select:none;-webkit-user-select:none}.annotation-overlay{position:absolute;inset:0;cursor:crosshair}.annotation-workspace .annotation-marker{position:absolute;transform:translate(-50%,-50%);padding:0!important;border:0!important;background:transparent!important;width:44px;height:44px;min-height:44px;display:grid;place-items:center;touch-action:none;cursor:grab;color:white;z-index:2}.annotation-marker>span{display:grid;place-items:center;min-width:27px;height:27px;padding:0 4px;background:var(--marker-color,#b82f7a);border:2px solid #fff;border-radius:50%;box-shadow:0 1px 7px #2d1b3140;font-size:12px;font-weight:650;color:#fff}.annotation-marker.selected>span{outline:3px solid #5b4054;outline-offset:2px}.annotation-marker.pending{pointer-events:none}.annotation-marker.pending>span{background:#63556b;border-style:dashed;font-size:17px}.annotation-hint{font-size:10px;color:#9b8174;line-height:1.6;margin:0;padding:8px 15px;background:#fdf9f7;flex-shrink:0}.annotation-views{display:flex;gap:8px;padding:10px 13px;overflow:auto;flex-shrink:0;border-top:1px solid #e9ddd5}.annotation-views button{min-width:76px;padding:5px;background:#fff}.annotation-views img{display:block;width:34px;height:40px;object-fit:cover;margin:auto}.annotation-views span,.annotation-views small{display:block;text-align:center;font-size:9px;margin-top:3px}.annotation-views small{font-size:8px;color:var(--muted)}.annotation-site-panel{padding:18px;overflow-y:auto;border-left:1px solid var(--line);background:white;min-height:0}.annotation-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:15px}.annotation-panel-heading h3,.annotation-site-panel>h3{font-size:16px}.annotation-panel-heading button{border:0;padding:0;font-size:10px;min-height:24px;color:var(--muted)}.annotation-site-panel form>label,.annotation-link label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#7e6b87;margin-bottom:13px}.annotation-site-panel input,.annotation-site-panel select{width:100%;padding:10px 11px;border:1px solid #dfd7e2;border-radius:6px;font:inherit;font-size:14px;color:var(--ink);min-height:43px;background:white}.annotation-site-panel form .annotation-primary{width:100%;margin:2px 0 13px}.annotation-help{font-size:12px;color:var(--muted);line-height:1.8;margin:11px 0 18px}.annotation-site-actions{display:flex;flex-direction:column;gap:7px}.annotation-site-actions button{font-size:11px;text-align:left}.annotation-link{border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.annotation-link>button{width:100%;margin-top:0}.annotation-link>small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:8px}.annotation-site-list{margin-top:24px;border-top:1px solid var(--line);padding-top:15px}.annotation-site-list h4{font-size:11px;color:#8c7a93;margin:0 0 12px}.annotation-site-list>button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;margin-bottom:7px;padding:10px;font-size:11px}.annotation-product-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.annotation-site-list>button>span:nth-child(2){flex:1}.annotation-site-list b{display:block;font-size:11px}.annotation-site-list small{display:block;font-size:9px;line-height:1.6;color:var(--muted);margin-top:4px}.annotation-site-list strong{font-size:12px}.annotation-editor-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 20px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.annotation-status{font-size:11px;color:var(--muted);line-height:1.6}.annotation-status.error{color:#b04f61}.annotation-editor-footer button{white-space:nowrap;flex-shrink:0}.annotation-readonly{background:#f8f0e6;padding:10px 22px;color:#9b7442;font-size:11px;flex-shrink:0}.annotation-delete-notice{padding:13px;background:#fff1ec;border-radius:8px;margin-top:15px}.annotation-delete-notice p{font-size:12px;margin-bottom:10px}.annotation-delete-notice button{margin:3px;font-size:10px}.annotation-dialog .discard-notice{flex-shrink:0}.annotation-site-panel dl{font-size:13px;line-height:1.8}.annotation-site-panel dt{color:var(--muted);font-size:11px}.annotation-site-panel dd{margin:4px 0 15px}
@media(max-width:760px){dialog.annotation-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0}.annotation-dialog .modal-header{padding:11px 15px}.annotation-dialog .modal-header .eyebrow{display:none}.annotation-dialog .modal-header h2{font-size:17px}.annotation-heading{padding:10px 14px;gap:8px;align-items:flex-start;flex-wrap:wrap}.annotation-heading>div>b{font-size:13px}.annotation-heading small{font-size:10px}.annotation-totals{justify-content:flex-start;gap:5px}.annotation-totals>span{font-size:10px;padding:5px 8px}.annotation-toolbar{padding:7px 10px;flex-wrap:wrap;gap:7px}.annotation-toolbar>div{gap:4px}.annotation-workspace .annotation-toolbar button{font-size:11px;padding:7px 9px;min-height:40px}.annotation-layout{display:block;overflow-y:auto}.annotation-visual{height:calc(48dvh + 125px);min-height:395px}.annotation-stage{min-height:230px}.annotation-site-panel{overflow:visible;border-left:0;border-top:1px solid var(--line);padding:17px}.annotation-site-panel input,.annotation-site-panel select{font-size:16px;min-height:46px}.annotation-site-panel form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.annotation-site-panel form label:nth-child(1),.annotation-site-panel form label:nth-child(2),.annotation-site-panel form .annotation-primary{grid-column:1/-1}.annotation-site-panel button{min-height:44px}.annotation-link{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:7px 10px}.annotation-link label{margin:0}.annotation-link>small{grid-column:1/-1}.annotation-editor-footer{padding:11px 14px;gap:12px;padding-bottom:max(11px,env(safe-area-inset-bottom))}.annotation-status{font-size:10px}.annotation-editor-footer .annotation-primary{font-size:11px;padding:11px 13px}.annotation-image-label{padding:9px 13px}.annotation-image-label span{font-size:9px}.annotation-workspace .annotation-marker{width:46px;height:46px}.annotation-marker>span{height:28px;min-width:28px}.carousel-image{min-height:280px}.photo-slide-caption{padding:12px}.photo-slide-caption small{font-size:9px}.carousel-thumbs{justify-content:flex-start}.visit-image-section .section-title .btn{font-size:10px}}
@media(min-width:761px){.annotation-visual{position:relative}.annotation-stage,.annotation-hint{margin-left:91px}.annotation-views{position:absolute;left:0;top:35px;bottom:0;flex-direction:column;width:91px;gap:10px;padding:12px 8px;border-top:0;border-right:1px solid #e9ddd5;overflow:auto}.annotation-views button{min-width:0;width:73px;flex-shrink:0}.annotation-stage{min-height:180px}.annotation-canvas{max-width:none}}
.connection-gate{max-width:480px;margin:15vh auto;padding:32px;background:white;border:1px solid #e5dfe5;border-radius:18px;text-align:center}.connection-gate p{margin:24px 0;line-height:1.6}.profile b{max-width:145px;overflow:hidden;text-overflow:ellipsis;display:block}.profile a{color:inherit}.history-entry .actions{margin:10px 0}#app[aria-busy=true]{cursor:progress}#app[aria-busy=true] .demo-strip{opacity:.7}
/* Care workflow and worklist */
.journey-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 20px;background:#fcfbfc;border-bottom:1px solid var(--line);gap:8px}.journey-step{border:0;background:none;display:grid;grid-template-columns:22px 1fr;gap:3px 7px;text-align:left;padding:5px 2px;align-content:start;color:var(--muted);min-width:0}.journey-step>span{width:21px;height:21px;border:1px solid #d9d4dc;border-radius:50%;display:grid;place-items:center;font-size:10px;grid-row:span 2}.journey-step b{font-size:11px;line-height:21px;font-weight:600;white-space:nowrap}.journey-step small{font-size:9px;line-height:1.5}.journey-step.done>span{background:#e6f2ec;color:var(--green);border-color:#c9e2d5}.journey-step.done b{color:var(--ink)}.journey-strip.inactive{opacity:.65}.visit-next-step{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid #e9dce4;background:#fcf6f9;border-radius:12px;margin-bottom:24px}.visit-next-step .eyebrow{font-size:8px}.visit-next-step h3{margin-top:6px;font-size:14px}.visit-next-step p{margin-top:4px;color:#82717c;font-size:11px;max-width:400px}.visit-next-step>.btn{flex-shrink:0}.metric-link{border:1px solid var(--line);background:white;text-align:left;color:inherit;transition:border-color .15s}.metric-link:hover{border-color:#d1a5be}.care-overview-note{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}.care-overview-note p{margin-top:5px}.worklist-filters{display:grid;grid-template-columns:1fr 1fr 1fr 1.25fr;align-items:end;gap:14px;margin-bottom:22px}.worklist-filters .field{margin:0}.worklist-filters .search{margin:0;height:40px;background:white}.work-task{width:100%;border:0;border-bottom:1px solid var(--line);background:none;display:flex;align-items:center;gap:13px;padding:17px 0;text-align:left;color:inherit}.work-task:last-child{border-bottom:0}.work-task:hover .task-copy strong{color:var(--pink)}.task-dot{display:grid;place-items:center;background:#f4f0f5;color:#96839b;width:36px;height:36px;border-radius:11px;flex-shrink:0}.task-dot.late{background:#fbf0e0;color:#a17b40}.task-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.task-copy strong{font-size:12px}.task-copy>span{font-size:12px}.task-copy small{font-size:10px;color:var(--muted);line-height:1.5}.task-due{font-size:10px;text-align:right;white-space:nowrap;color:var(--muted)}.task-due.late{color:#9f743a}.task-due small{display:block;margin-top:5px;color:var(--muted);font-size:9px}.order-notice{margin:-4px 0 20px}.order-detailed{display:block;padding:20px;margin:12px 0;border:1px solid var(--line);border-radius:12px}.order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}.order-top h3{font-size:15px;margin-top:6px}.order-detailed>p{margin-bottom:15px}.order-meta{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:11px;margin:12px 0 16px}.order-meta>span{display:flex;align-items:center;gap:6px}.order-detailed .actions{justify-content:flex-start;gap:8px}.linked-visit{display:flex;align-items:center;gap:10px;background:#f6f3f7;color:#706378;border:1px solid #e8e1ed;border-radius:9px;width:100%;padding:13px;margin:15px 0;text-align:left;font-size:12px}.linked-visit>span{flex:1}.linked-visit small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}.booking-context{border-left:3px solid var(--pink);background:var(--rose);padding:14px;margin-bottom:20px}.booking-context p{margin-top:5px;font-size:11px;color:var(--muted)}.summary-draft,.summary-shared{padding:20px;border-radius:10px;margin:20px 0;border:1px solid var(--line)}.summary-draft{background:#fcfafc;border-style:dashed}.summary-shared{background:#f7fbf9}.summary-draft h4,.summary-shared h4{font-size:11px;margin:17px 0 6px;color:#7c7380}.summary-shared>p{margin:12px 0}.summary-shared small{display:block;margin-top:15px}.order-history{margin-top:12px}.order-history p{margin:8px 0}.order-history small{display:block;font-size:10px;color:var(--muted)}
@media(max-width:1200px){.journey-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 15px}.worklist-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.task-due{max-width:100px;white-space:normal}}
@media(max-width:760px){.journey-strip{padding:12px 14px;gap:10px 4px}.journey-step{grid-template-columns:19px 1fr;gap:1px 5px}.journey-step>span{width:18px;height:18px}.journey-step b{font-size:10px;line-height:18px}.journey-step small{font-size:8px}.visit-next-step{padding:15px;display:block}.visit-next-step>.btn{margin-top:12px}.care-overview-note{display:block}.care-overview-note .btn{margin-top:14px}.worklist-filters{gap:12px}.worklist-filters .search{grid-column:1/-1}.work-task{gap:10px;padding:15px 0}.task-dot{width:28px;height:32px}.task-copy>span{font-size:11px}.task-due{font-size:9px;max-width:65px}.work-task>svg{display:none}.order-detailed{padding:16px}.order-top h3{font-size:14px}.order-meta{gap:10px}.order-detailed .actions .btn{font-size:11px}.metric-link{width:100%}.summary-draft,.summary-shared{padding:15px}}
.overview-panels h4{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:22px 0 8px}.overview-task-card{grid-column:1/-1}.overview-panels .schedule-provider{display:none}.overview-panels .schedule-row{padding:12px 0}.overview-panels .schedule-time{min-width:70px}.overview-panels .schedule-row>.pill{font-size:9px}

/* Photo-first charting */
.photo-picker-actions,.annotation-photo-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.photo-picker-actions label{cursor:pointer}.annotation-photo-tools{padding:12px 0;border-bottom:1px solid var(--border,#ddd)}.annotation-photo-tools>label{display:flex;align-items:center;gap:8px;font-size:13px}.annotation-photo-tools select{padding:8px;border:1px solid #ded9df;border-radius:8px;background:white;color:#25212a}.photo-first-empty{text-align:center;display:grid;justify-items:center;align-content:center;gap:12px;min-height:320px;padding:24px}.photo-first-empty h3,.photo-first-empty p{margin:0}.annotation-photo-tools .photo-picker-actions{margin-right:auto}@media(max-width:760px){.annotation-photo-tools .photo-picker-actions{width:100%}.photo-picker-actions .btn{min-height:44px}.visit-image-section>.section-title{align-items:flex-start;flex-wrap:wrap}}
/* Practice dashboard and chronological patient record */
.practice-filters,.ar-timeline-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.practice-filters input,.ar-timeline-filters input{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}.dashboard-grid{margin-bottom:24px}.location-bar{display:grid;grid-template-columns:minmax(115px,1fr) minmax(60px,1fr) 85px;gap:12px;align-items:center;margin:24px 0;font-size:12px}.location-bar>div{height:10px;background:#f0e9ed;border-radius:8px;overflow:hidden}.location-bar i{height:100%;display:block;background:var(--pink);border-radius:8px}.location-bar b{text-align:right}.audit-counts>div{display:flex;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.audit-counts{margin-bottom:20px}.ar-timeline{padding:24px}.ar-timeline-feed{border-left:2px solid #d9bfce;margin:26px 0 0 8px;padding-left:26px}.ar-encounter{position:relative;padding:0 0 28px;margin-bottom:30px;border-bottom:1px solid var(--line)}.ar-encounter:before{content:'';position:absolute;left:-33px;top:6px;width:12px;height:12px;border:3px solid white;border-radius:50%;background:var(--pink)}.ar-encounter-head{display:grid;grid-template-columns:1.4fr 1fr 1.2fr auto;gap:18px;align-items:start;margin-bottom:24px}.ar-encounter-head h3{font-size:18px;margin:0 0 8px}.ar-encounter-head time{font-size:11px;color:var(--muted)}.ar-encounter-head small{display:block;letter-spacing:1px;font-size:9px;color:var(--muted);margin-bottom:8px}.ar-encounter-head b{font-size:12px;font-weight:500}.encounter-note,.encounter-treatment,.encounter-orders{margin:20px 0}.ar-encounter h4{font-size:11px;letter-spacing:.8px;color:var(--muted);margin:0 0 12px;text-transform:uppercase}.encounter-note>p{max-height:180px;overflow:auto;white-space:normal;line-height:1.8;border:1px solid var(--line);border-radius:8px;padding:18px;font-size:13px;margin-bottom:10px}.encounter-treatment table{width:100%;border-collapse:collapse;font-size:13px}.encounter-treatment td,.encounter-treatment th{padding:12px;background:#faf7f9;text-align:left;border-bottom:1px solid var(--line)}.encounter-treatment td:last-child{width:90px;text-align:right}.encounter-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px;border-radius:10px;background:#f6f1f5;margin-top:22px}.encounter-link{width:100%;display:block;border:1px solid #dfcfdb;background:white;padding:10px;margin:8px 0;text-align:left;font-size:11px;line-height:1.5;color:#764e69;border-radius:6px}.encounter-link:hover{border-color:var(--pink);background:#fff9fc}.encounter-orders p{font-size:12px;margin:10px 0}.encounter-detail{margin-top:20px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.ar-encounter .photo-carousel{max-width:650px}.ar-encounter .visit-image-section{margin:18px 0}.ar-encounter .timeline-photo-markers{position:absolute;inset:0}.ar-timeline .visit-detail-header{border-radius:0}.patient-directory .patient-card strong{font-size:13px}.patient-layout{grid-template-columns:220px minmax(0,1fr)}
@media(max-width:1200px){.ar-encounter-head{grid-template-columns:1.5fr 1fr}.encounter-links{grid-template-columns:repeat(2,minmax(0,1fr))}.ar-timeline-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){.practice-filters{grid-template-columns:1fr 1fr}.ar-timeline{padding:16px}.ar-timeline-feed{padding-left:16px;margin-left:4px}.ar-encounter:before{left:-23px}.ar-encounter-head{grid-template-columns:1fr;gap:12px}.ar-encounter-head h3{font-size:17px}.encounter-links{padding:12px;gap:10px}.encounter-link{font-size:11px;min-height:44px}.patient-layout{display:block}.patient-directory{max-height:230px;overflow:auto}.location-bar{grid-template-columns:110px 1fr 70px;gap:7px;font-size:11px}.ar-timeline-filters .field{min-width:0}.ar-timeline-filters input{min-width:0;font-size:16px}}
.location-setting-row{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:20px 0;border-top:1px solid var(--line,#e8e3e8)}.location-setting-row p{margin:5px 0;color:#706873;font-size:13px}.location-setting-row small{color:#827985}.location-setting-row .actions{flex-shrink:0}.location-setting-row .pill{margin-left:8px}.patient-stats .text-button{display:block;font-size:11px;margin-top:7px;padding:0}@media(max-width:600px){.location-setting-row{align-items:flex-start;flex-direction:column}.location-setting-row .actions{width:100%}.location-settings .section-title{align-items:flex-start;gap:12px}}

.rehearsal-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;border-color:#dfc4ce;background:#fff9fb}.rehearsal-banner h2{margin:6px 0}.rehearsal-banner p{margin:0}.rehearsal .card{margin-bottom:20px}.rehearsal-step .field{margin-top:18px}.rehearsal-step p,.rehearsal li{line-height:1.65}.rehearsal li{margin-bottom:10px}.rehearsal-step select{max-width:280px}.rehearsal .section-title{align-items:flex-start;gap:12px}.rehearsal-step h2{font-size:20px}@media(max-width:650px){.rehearsal-banner{align-items:flex-start;flex-direction:column}.rehearsal .section-title{flex-direction:column}.rehearsal-step select{max-width:100%}}

/* Full feature parity: layout changes never remove patient or financial information. */
.main,.patient-workspace,.card,.field{min-width:0}.table-scroll{max-width:100%;overscroll-behavior-x:contain}.table-scroll table{min-width:540px}.top-actions{flex-wrap:wrap}.topbar{min-height:72px;height:auto;padding-top:12px;padding-bottom:12px;gap:12px}.tabs{scrollbar-width:thin}.annotation-mobile-tabs{display:none}.annotation-overlay{touch-action:none}.annotation-site-panel .annotation-keep-adding{display:flex;flex-direction:row;align-items:center;gap:10px}.annotation-keep-adding input{width:22px;min-height:22px;height:22px}.annotation-site-panel [data-ann="previous-product"]{width:100%;margin-bottom:14px}.annotation-photo-tools{padding:10px 18px;flex-shrink:0}.annotation-workspace .photo-picker-actions label{cursor:pointer;min-height:44px}.annotation-toolbar{overflow-x:auto}.annotation-toolbar>div{flex-shrink:0}.annotation-marker{user-select:none;-webkit-user-select:none}.annotation-overlay{user-select:none;-webkit-user-select:none}
@media(max-width:1100px){.patient-layout{display:block}.patient-directory{width:100%;max-height:none;border-right:0;border-bottom:1px solid var(--line);padding:16px 20px}.patient-list{display:flex;gap:10px;overflow-x:auto;margin:12px 0 0;padding-bottom:5px}.patient-card{min-width:180px;width:180px;flex-shrink:0;margin:0}.patient-card strong{font-size:13px}.patient-card em{font-size:11px}.directory-title,.directory-foot{display:none}.patient-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.patient-stats>div:first-child{display:block}.schedule-provider{display:block}.wallet-summary>div:nth-child(2){display:block}.practice-filters,.worklist-filters{grid-template-columns:repeat(2,minmax(0,1fr))}dialog.annotation-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0}.annotation-layout{grid-template-columns:minmax(0,1fr) 300px}.annotation-site-panel{padding:16px}.annotation-workspace button,.annotation-workspace input,.annotation-workspace select{min-height:44px}.annotation-site-panel input,.annotation-site-panel select{font-size:16px}.annotation-stage,.annotation-hint{margin-left:0}.annotation-views{position:static;flex-direction:row;width:auto;bottom:auto;overflow-x:auto;border-right:0;gap:8px;padding:8px}.annotation-views button{width:76px;min-width:76px}.annotation-image-label{flex-wrap:wrap}.annotation-heading,.annotation-toolbar{padding-left:16px;padding-right:16px}}
@media(pointer:coarse){.btn,.icon-button,.nav-item,.tabs button,.encounter-link,.patient-card,.document-row{min-height:44px}.field input,.field select,.field textarea,.intake-question textarea,.search input{font-size:16px}.field input,.field select{min-height:46px}input[type=checkbox],input[type=radio]{min-width:22px;min-height:22px}.annotation-workspace .annotation-marker{width:48px;height:48px}.annotation-marker>span{height:30px;min-width:30px}.annotation-site-panel button{min-height:46px}}
@media(max-width:760px){:root{font-size:15px}.sidebar{position:static;width:100%;padding:14px 14px 0}.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible}.nav-item{min-height:46px;font-size:12px;white-space:normal;gap:7px;border-radius:7px;padding:10px 8px}.sidebar nav .mobile-settings{display:flex}.sidebar .nav-label,.sidebar-bottom{display:none}.layout{display:block}.main{width:100%;margin:0}.topbar{padding:12px 16px;align-items:flex-start;flex-wrap:wrap}.breadcrumb{font-size:12px;line-height:1.6}.top-actions{width:100%;gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.top-actions .btn{font-size:12px;min-height:44px;padding:9px 7px;white-space:normal}.top-actions>.avatar{display:none}.demo-strip{padding:10px 16px;gap:8px;font-size:11px}.demo-strip>span:last-child{font-size:11px}.patient-heading{padding:20px 16px}.identity-line{font-size:12px;overflow-wrap:anywhere}.patient-directory{padding:12px 16px;max-height:none}.patient-card{min-width:170px;width:170px}.patient-card strong{font-size:13px}.patient-card em{font-size:11px}.search{height:44px}.patient-stats{padding:16px;grid-template-columns:1fr 1fr;gap:18px}.patient-stats div{border:0}.patient-stats b{font-size:14px;overflow-wrap:anywhere}.patient-stats span{font-size:12px}.patient-stats>div:first-child{display:block}.patient-tabs,.detail-tabs{overflow-x:auto;max-width:100%;gap:20px}.patient-tabs button,.detail-tabs button{font-size:13px;min-height:46px}.visit-actions .btn{font-size:12px;min-height:44px;padding:10px 12px}.page-pad{padding:22px 16px}.page-heading p,.small,.note-preview,.summary-copy{font-size:13px}.card{padding:18px}.field>span,.field{font-size:13px}.field input,.field select,.field textarea{font-size:16px}.field input,.field select{min-height:46px}.schedule-provider{display:block;min-width:0;font-size:12px}.wallet-summary>div:nth-child(2){display:block}.modal-footer{position:sticky;bottom:0;background:#fff;padding-bottom:max(16px,env(safe-area-inset-bottom))}.modal-footer .btn{white-space:normal}.modal-body{overflow-wrap:anywhere}.form-grid{grid-template-columns:minmax(0,1fr)}.ar-encounter-head{grid-template-columns:1fr}.encounter-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.encounter-link{min-height:46px;white-space:normal;overflow-wrap:anywhere}.ar-timeline-filters{grid-template-columns:1fr 1fr}.location-bar{grid-template-columns:minmax(90px,1.2fr) minmax(40px,1fr) 75px}.rehearsal li,.rehearsal-step p{font-size:14px}dialog:not(.annotation-dialog):not(.prescribing-dialog){width:calc(100% - 16px);max-height:94dvh}.compact-row{flex-wrap:wrap}.actions{flex-wrap:wrap}.practice-filters,.worklist-filters{min-width:0}.practice-filters .field{min-width:0}.record-number{display:inline;overflow-wrap:anywhere}.wallet-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.annotation-dialog .modal-header{padding:10px 14px}.annotation-heading{padding:9px 14px;flex-wrap:wrap;gap:6px}.annotation-heading small{font-size:11px}.annotation-totals{max-height:64px;overflow:auto}.annotation-photo-tools{padding:7px 12px;gap:7px}.annotation-photo-tools .photo-picker-actions{width:auto;gap:7px;margin-right:0}.annotation-photo-tools label{font-size:12px}.annotation-photo-tools select{font-size:16px;min-height:44px;max-width:100px}.annotation-photo-tools .btn{font-size:12px;padding:8px}.annotation-toolbar{flex-wrap:nowrap;gap:14px;padding:7px 12px;overflow-x:auto}.annotation-workspace .annotation-toolbar button{font-size:12px;min-height:44px;padding:8px 10px}.annotation-mobile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);flex-shrink:0;background:white}.annotation-mobile-tabs [aria-pressed=true]{border-color:var(--pink);background:var(--rose);color:var(--pink)}.annotation-layout{display:block;overflow:hidden;position:relative;min-height:160px}.annotation-visual{height:100%;min-height:0;overflow:hidden}.annotation-stage{min-height:100px;touch-action:none;padding:8px}.annotation-hint{padding:6px 12px;font-size:11px}.annotation-views{padding:6px 10px;gap:6px;max-height:84px}.annotation-views img{height:28px}.annotation-image-label{padding:6px 12px}.annotation-site-panel{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:16px;border-top:0}.annotation-workspace[data-panel=map] .annotation-site-panel{display:none}.annotation-workspace[data-panel=details] .annotation-visual{display:none}.annotation-site-panel form{display:block}.annotation-site-panel .annotation-keep-adding{display:flex}.annotation-site-panel input,.annotation-site-panel select{font-size:16px;min-height:46px}.annotation-site-panel .annotation-keep-adding input{min-height:22px}.annotation-editor-footer{padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));gap:10px;align-items:center}.annotation-status{font-size:11px;max-height:48px;overflow:auto}.annotation-editor-footer .annotation-primary{min-height:46px;font-size:12px}.annotation-dialog{padding-top:env(safe-area-inset-top)}.annotation-dialog .modal-header .icon-button{min-width:44px;min-height:44px}.photo-first-empty{padding:20px;overflow:auto}}
@media(max-width:430px){.encounter-links,.wallet-grid{grid-template-columns:1fr}.top-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.top-actions>.btn:last-of-type{grid-column:1/-1}.ar-timeline{padding:14px 12px}.ar-encounter-head small{font-size:11px}.ar-encounter-head b{font-size:13px}.annotation-photo-tools{flex-wrap:wrap}.annotation-photo-tools>label{flex:1}.annotation-photo-tools .photo-picker-actions{width:100%}.annotation-totals>span{font-size:10px}.annotation-heading>div>b{font-size:13px}.annotation-heading small{font-size:10px}}
@media(max-height:540px) and (max-width:1000px){.annotation-heading,.annotation-photo-tools{padding-top:4px;padding-bottom:4px}.annotation-dialog .modal-header{padding:6px 12px}.annotation-totals{max-height:40px}.annotation-layout{min-height:100px}.annotation-views{max-height:68px}.annotation-hint{display:block;max-height:30px;overflow:auto}}
.annotation-photo-options{flex-shrink:0;background:#fff;border-bottom:1px solid var(--line)}.annotation-photo-options>summary{display:none;cursor:pointer;padding:10px 14px;font-size:12px;min-height:44px}.annotation-photo-options .annotation-photo-tools{border:0}.annotation-photo-options:not([open])>.annotation-photo-tools{display:none}@media(min-width:701px){.annotation-photo-options>summary{display:block}}@media(max-width:700px){.annotation-photo-options>summary{display:list-item;margin-left:16px;padding-left:0}.annotation-photo-options .annotation-photo-tools{border-top:1px solid var(--line)}.annotation-mobile-tabs{padding-top:6px;padding-bottom:6px}.annotation-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.annotation-toolbar>div{justify-content:center}.annotation-toolbar>div:first-child{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.annotation-workspace .annotation-toolbar button{white-space:nowrap;padding:7px 5px}.annotation-toolbar>div:last-child button{min-width:44px}}
@media(min-width:701px) and (max-width:1100px){.annotation-layout{display:grid;overflow:hidden}.annotation-visual{height:100%;min-height:0}.annotation-site-panel{overflow-y:auto}.annotation-stage{min-height:100px}.annotation-toolbar{flex-wrap:wrap}.annotation-photo-tools{flex-wrap:wrap}}
@media(max-width:700px){.annotation-workspace[data-panel=details] .annotation-photo-options,.annotation-workspace[data-panel=details] .annotation-toolbar{display:none}.annotation-dialog.keyboard-open .modal-header{padding:6px 12px}.annotation-dialog.keyboard-open .modal-header h2{font-size:15px}.annotation-dialog.keyboard-open .annotation-heading{padding:5px 12px}.annotation-dialog.keyboard-open .annotation-heading small{display:none}.annotation-dialog.keyboard-open .annotation-totals{max-height:30px;overflow:auto}.annotation-dialog.keyboard-open .annotation-layout{min-height:0}.annotation-dialog.keyboard-open .annotation-mobile-tabs{padding:4px 10px}.annotation-dialog.keyboard-open .annotation-editor-footer{padding:6px 10px}.annotation-dialog.keyboard-open .annotation-status{max-height:28px}}
.avatar{overflow:hidden}.avatar>img{width:100%;height:100%;object-fit:cover;object-position:center 32%;display:block}.patient-heading-person,.rehearsal-patient-identity{display:flex;gap:16px;align-items:center;min-width:0}.patient-heading-person>div{min-width:0}.avatar.profile-portrait{width:72px;height:88px;border-radius:12px;flex-shrink:0}.rehearsal-patient-identity{margin-bottom:14px}@media(max-width:700px){.patient-heading-person{gap:12px}.avatar.profile-portrait{width:60px;height:76px}.patient-heading-person h1{font-size:24px}.patient-heading-person .record-number{display:none}}

.annotation-capture-actions{padding:8px 14px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0}.annotation-capture-actions .photo-picker-actions{display:flex;gap:8px}.annotation-capture-actions .btn{min-height:44px}@media(max-width:700px){.annotation-capture-actions{padding:6px 12px}.annotation-capture-actions .photo-picker-actions>*{flex:1}.annotation-workspace[data-panel=details] .annotation-capture-actions{display:none}}
.marker-save-actions{display:flex;gap:8px;flex-shrink:0}.marker-save-actions>button{min-height:44px}.ledger-table-card{padding:0;overflow:hidden}.ledger-table{width:100%;border-collapse:collapse;min-width:800px}.ledger-table th,.ledger-table td{text-align:left;padding:15px 18px;border-bottom:1px solid var(--line);white-space:nowrap}.ledger-table thead th{font-size:11px;color:var(--muted);background:#faf9fb}.ledger-number{font-variant-numeric:tabular-nums}.ledger-patient-link{border:0;background:transparent;padding:0;color:var(--pink);font-weight:600;text-align:left}.ledger-table tbody tr:hover{background:#fcf9fb}.ledger-table tbody th{position:sticky;left:0;background:#fff;z-index:1}.ledger-table thead th:first-child{position:sticky;left:0;z-index:2}@media(max-width:700px){.annotation-workspace[data-panel=details] .annotation-editor-footer{display:block}.annotation-workspace[data-panel=details] .annotation-status{display:block;max-height:36px;margin-bottom:6px}.marker-save-actions{display:grid;grid-template-columns:1fr 1.5fr;width:100%}.marker-save-actions>button{padding:10px 8px;font-size:12px}.ledger-table th,.ledger-table td{padding:12px}.ledger-table .btn{min-height:44px}}
.annotation-product-setup{padding:18px 22px;overflow-y:auto;min-height:0;flex:1}.annotation-product-setup h3{font-size:18px;margin-bottom:18px}.annotation-product-setup form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.annotation-product-setup label,.annotation-product-bar label{display:flex;flex-direction:column;gap:6px;font-size:12px}.annotation-product-setup input,.annotation-product-setup select,.annotation-product-bar select{font:inherit;padding:11px;border:1px solid var(--line);border-radius:7px;background:#fff;min-height:44px;min-width:0;width:100%}.annotation-product-setup p{grid-column:1/-1}.annotation-workspace[data-setup=open]>.annotation-capture-actions,.annotation-workspace[data-setup=open]>.annotation-photo-options,.annotation-workspace[data-setup=open]>.annotation-toolbar,.annotation-workspace[data-setup=open]>.annotation-mobile-tabs,.annotation-workspace[data-setup=open]>.annotation-layout{display:none}.annotation-product-bar{display:flex;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}.annotation-product-bar>button{border:0;background:var(--rose);border-radius:7px;padding:9px 12px;text-align:left;min-width:0;flex:1;position:relative;padding-right:60px}.annotation-product-bar small,.marker-product-summary small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.annotation-product-bar button>span{position:absolute;right:10px;top:13px;font-size:11px;color:var(--pink)}.annotation-product-bar label{min-width:150px}.marker-product-summary{padding:10px;background:#faf8fa;border-radius:7px;margin-bottom:16px}.product-catalog{min-width:670px;width:100%;border-collapse:collapse}.product-catalog td,.product-catalog th{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.catalog-batch{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid var(--line)}.catalog-batch span{font-size:11px;color:var(--muted)}.catalog-batch .btn{justify-self:start}@media(max-width:700px){.annotation-product-setup{padding:16px}.annotation-product-setup form{grid-template-columns:1fr}.annotation-product-setup input,.annotation-product-setup select{font-size:16px;min-height:46px}.annotation-product-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:6px 12px}.annotation-product-bar label{flex-direction:row;align-items:center;font-size:11px}.annotation-product-bar select{padding:6px 9px;min-height:38px;font-size:16px}.annotation-workspace[data-panel=details] .annotation-product-bar{display:none}.annotation-workspace[data-setup=open] .annotation-editor-footer{display:flex}.annotation-workspace[data-setup=open] .annotation-editor-footer .annotation-primary{min-width:120px}}
.annotation-photo-row{flex-shrink:0}.annotation-tools-more>summary{display:none}.annotation-tools-more>div{display:flex;align-items:center;gap:6px}.annotation-tools-more:not([open])>div{display:none}.annotation-tools-more{position:relative}.annotation-workspace[data-setup=open]>.annotation-photo-row{display:none}@media(max-width:700px){.annotation-product-bar{grid-template-columns:minmax(0,1fr) 130px;align-items:center}.annotation-product-bar label{display:block;font-size:0;min-width:0}.annotation-product-bar>button{padding:8px 45px 8px 9px;min-height:50px}.annotation-product-bar small{font-size:9px;line-height:1.3}.annotation-product-bar button>span{font-size:10px;right:7px}.annotation-product-bar select{width:100%;font-size:14px;min-height:44px}.annotation-photo-row{display:flex;position:relative;background:#fff;border-bottom:1px solid var(--line);padding:5px 12px;gap:6px;align-items:flex-start}.annotation-photo-row>.annotation-capture-actions{padding:0;border:0;flex:1;min-width:0}.annotation-photo-row>.annotation-photo-options{border:0;flex-shrink:0;position:static;max-width:92px}.annotation-photo-options>summary{font-size:0!important;margin:0!important;list-style:none!important;padding:0!important;min-height:44px;display:flex!important;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;width:88px}.annotation-photo-options>summary:after{content:'Photo options';font-size:11px}.annotation-photo-row .annotation-photo-tools{position:absolute;left:12px;right:12px;top:55px;background:#fff;z-index:9;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002}.annotation-toolbar{display:flex;align-items:center;justify-content:space-between;overflow:visible;padding:5px 12px;gap:8px}.annotation-toolbar>div:first-child{display:flex;gap:6px}.annotation-tools-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:7px;background:#fff}.annotation-tools-more[open]>div{position:absolute;right:0;top:49px;z-index:9;display:flex;flex-wrap:wrap;justify-content:center;width:250px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002}.annotation-workspace[data-panel=details] .annotation-photo-row{display:none}.annotation-views{max-height:68px}.annotation-views img{height:25px}.annotation-views button{padding:4px 9px}.annotation-toolbar>div:first-child button{min-width:102px}}

.business-tabs{overflow-x:auto;white-space:nowrap;margin-bottom:20px}.business-table{width:100%;border-collapse:collapse;min-width:720px}.business-table th{text-align:left;font-size:12px;color:var(--muted);padding:12px;border-bottom:1px solid #e9e3df}.business-table td{vertical-align:top;padding:14px 12px;border-bottom:1px solid #eee9e5}.business-table small{display:block;margin-top:5px;color:var(--muted);max-width:320px;font-size:11px}.business-table .btn{margin:2px;padding:7px 10px;font-size:12px}.contact-note{padding:18px 0;border-bottom:1px solid #e7e1dc}.invoice-line{display:grid;grid-template-columns:minmax(150px,1fr) 100px auto;align-items:end;gap:10px;border-bottom:1px solid #eee;padding:10px 0}.invoice-line .btn{margin-bottom:16px}#operations-form fieldset{border:1px solid #e9e1dc;border-radius:8px;padding:14px;margin:16px 0}#operations-form legend{font-size:12px;color:var(--muted)}@media(max-width:600px){.invoice-line{grid-template-columns:1fr 85px}.invoice-line .btn{grid-column:2;min-height:36px}.business-tabs button{flex-shrink:0}.contact-note .summary-copy{overflow-wrap:anywhere}}

/* Immediate catalog filters: selected controls and current results remain visible. */
#catalog-filters,#service-filters{padding:16px;background:#faf7fa;border:1px solid #e6dce5;border-radius:10px;gap:14px 18px;margin-top:16px;align-items:end}
#catalog-filters .field,#service-filters .field{margin:0;font-size:12px;font-weight:600;color:#514454;min-width:0}
#catalog-filters input,#catalog-filters select,#service-filters input,#service-filters select{width:100%;min-height:44px;box-sizing:border-box;border:1px solid #b9acbc;border-radius:7px;background:#fff;color:#302533;font-size:14px;padding:10px 12px}
#catalog-filters .filter-active,#service-filters .filter-active{color:#952464}
#catalog-filters .filter-active input,#catalog-filters .filter-active select,#service-filters .filter-active input,#service-filters .filter-active select{border:2px solid #b22c79;background:#fff5fb;padding:9px 11px}
.filter-results{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:55px;margin:12px 0;padding:10px 14px;border-radius:8px;background:#f5f2f5;box-sizing:border-box}
.filter-results p{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0;font-size:13px;color:#625568}.filter-results strong{color:#302533}.filter-results.has-filters{background:#f8e8f2;border-left:3px solid #ad2c77}.filter-results .btn{color:#85205b;border:1px solid #a53476;background:#fff;min-height:40px;font-weight:600}
.business-table .btn{border-color:#a78b9f;color:#702452;min-height:40px;font-weight:600}.business-table .btn:hover,.filter-results .btn:hover{background:#f7e7f1;border-color:#8d235f}.business-table .btn:focus-visible,.filter-results .btn:focus-visible{outline:3px solid #bd5793;outline-offset:3px}
@media(min-width:1150px){#catalog-filters{grid-template-columns:1.3fr 1fr .8fr 1.3fr}#service-filters{grid-template-columns:1.5fr 1fr}}
@media(max-width:600px){#catalog-filters,#service-filters{grid-template-columns:minmax(0,1fr);padding:14px}#catalog-filters input,#catalog-filters select,#service-filters input,#service-filters select{font-size:16px}.filter-results{position:sticky;top:0;z-index:2;box-shadow:0 2px 5px #3025330d}.filter-results p{gap:3px 7px}.filter-results .btn{flex-shrink:0}}
/* Shared patient, ledger and review controls. */
.workspace-filters{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:16px;padding:16px;background:#faf7fa;border:1px solid #e2d8e2;border-radius:10px;margin:16px 0}.workspace-filters .field{margin:0;min-width:0;font-weight:600;color:#514454;font-size:12px}.workspace-filters input,.workspace-filters select{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #b9acbc;border-radius:7px;background:#fff;color:#302533;font-size:14px;padding:10px 12px}.workspace-filters .field:focus-within{color:#8b205d}.workspace-filters input:focus,.workspace-filters select:focus{outline:2px solid #b22c79;outline-offset:2px}.review-filters{grid-template-columns:1.4fr 1fr 1fr 1fr}.quick-sorts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#655568}.patient-directory-table{width:100%;border-collapse:collapse;min-width:650px}.patient-directory-table th,.patient-directory-table td{padding:16px 12px;border-bottom:1px solid #e8e0e6;text-align:left}.patient-directory-table small{display:block;margin-top:7px;color:#786b79}.patient-name-link{background:none;border:0;padding:0;color:#812359;font-weight:700;font-size:15px;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.patient-back{padding:16px 0}.patient-back .btn{min-height:40px}.check-row{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;margin:20px 0}.check-row input{width:20px;height:20px;flex-shrink:0}.invoice-dialog{max-width:900px!important;width:calc(100% - 30px)}.invoice-paper{color:#302630;background:#fff;padding:20px}.invoice-brand{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:20px;border-bottom:2px solid #ba347e}.specialty-wordmark{color:#241c23;line-height:.95;display:inline-block}.specialty-wordmark small{display:block;letter-spacing:3px;font:12px Georgia,serif}.specialty-wordmark strong{display:block;font:46px Georgia,serif;letter-spacing:-2px}.specialty-wordmark strong span{display:block;text-align:right;font:10px Georgia,serif;color:#a32b71;letter-spacing:2px}.invoice-brand h2{font-size:24px;margin:0 0 8px}.invoice-location{line-height:1.6;color:#6b5b68}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0}.invoice-parties dl{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin:0;font-size:13px}.invoice-parties dt{color:#776774}.invoice-parties dd{margin:0;overflow-wrap:anywhere}.invoice-paper table{width:100%;border-collapse:collapse;min-width:450px;font-size:13px}.invoice-paper th,.invoice-paper td{padding:12px 8px;border-bottom:1px solid #e5dde3;text-align:left}.invoice-totals{margin:24px 0 24px auto;max-width:420px}.invoice-totals>div{display:flex;justify-content:space-between;gap:20px;padding:9px 12px;border-bottom:1px solid #e7dce5;font-size:14px}.invoice-totals>div:last-child{background:#33202c;color:white;padding:15px 12px}.invoice-paper footer{margin-top:30px;text-align:center;color:#796976;font-size:11px}.portal .card table{width:100%;border-collapse:collapse;min-width:650px}.portal .card td,.portal .card th{padding:14px 10px;border-bottom:1px solid #e8e0e6;text-align:left;font-size:13px}.portal .card small{display:block;margin-top:5px}.portal .card td .btn{margin:3px;white-space:nowrap}
#content .btn.secondary,.portal .btn.secondary{border-color:#aa8c9f;color:#702452;background:#fff;font-weight:600}#content .btn.secondary:hover,.portal .btn.secondary:hover{background:#f8edf4;border-color:#8e235f}#content .btn.ghost:not(:disabled){color:#812359}#content button:focus-visible,.portal button:focus-visible{outline:3px solid #b75991;outline-offset:3px}.encounter-link{border-color:#c1a3b7!important;color:#742653!important}.ar-timeline-filters label,.practice-filters label,.worklist-filters label{color:#514454!important}.ar-timeline-filters input,.ar-timeline-filters select,.practice-filters input,.practice-filters select,.worklist-filters select{min-height:44px;border-color:#b9acbc!important}.active-filter input,.active-filter select{border:2px solid #b22c79!important;background:#fff5fb!important}.active-filter{color:#952464!important}
@media(max-width:900px){.review-filters{grid-template-columns:1fr 1fr}.workspace-filters:not(.review-filters){grid-template-columns:1fr 1fr}.workspace-filters .field:first-child{grid-column:1/-1}}
@media(max-width:600px){.workspace-filters,.workspace-filters:not(.review-filters),.review-filters{grid-template-columns:minmax(0,1fr)}.workspace-filters input,.workspace-filters select{font-size:16px}.page-heading .actions{margin-top:12px}.invoice-paper{padding:5px}.invoice-parties{grid-template-columns:1fr}.specialty-wordmark strong{font-size:36px}.invoice-brand h2{font-size:19px}.invoice-totals{max-width:none}.patient-search-card{padding:14px}}
.annotation-capture-actions>[data-ann=model]{min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit;font-size:12px;padding:8px 12px;white-space:nowrap}@media(max-width:700px){.annotation-photo-row>.annotation-capture-actions{flex-wrap:wrap}.annotation-capture-actions>[data-ann=model]{flex:1}.annotation-photo-row .photo-picker-actions{flex:1}}

.annotation-photo-row{display:flex;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--line);padding:5px 12px}.annotation-photo-row>.annotation-capture-actions{display:flex;align-items:center;gap:8px;padding:0;border:0;min-width:0}.annotation-photo-options[hidden]{display:none!important}.annotation-photo-row>.annotation-photo-options{margin-left:auto}.annotation-photo-row .annotation-photo-tools{padding:5px 0}.annotation-photo-row .annotation-photo-options>summary{font-size:12px}@media(max-width:700px){.annotation-photo-row{align-items:flex-start;gap:6px}.annotation-photo-row>.annotation-capture-actions{flex:1;flex-wrap:wrap}.annotation-capture-actions>[data-ann=model]{flex:1;min-height:44px}.annotation-photo-row .photo-picker-actions{flex:1}.annotation-photo-row .annotation-photo-tools{padding:10px}}

/* Keep the image and save actions usable with touch and the on-screen keyboard. */
.annotation-workspace[data-single-image=true] .annotation-views{display:none}
.annotation-workspace[data-single-image=true] .annotation-stage,.annotation-workspace[data-single-image=true] .annotation-hint{margin-left:0}
.annotation-dialog{box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}
.annotation-site-panel input,.annotation-site-panel select,.annotation-product-setup input,.annotation-product-setup select{scroll-margin-block:20px}
@media(max-width:700px){
 .annotation-photo-row>.annotation-capture-actions{flex-wrap:nowrap;gap:6px}
 .annotation-photo-row .photo-picker-actions{flex:2;flex-wrap:nowrap;gap:6px;min-width:0}
 .annotation-photo-row .photo-picker-actions>.btn{flex:1;min-width:0;padding:8px 5px;font-size:11px;white-space:normal;text-align:center}
 .annotation-capture-actions>[data-ann=model]{flex:1;min-width:0;padding:8px 5px;font-size:11px;white-space:normal}
 .annotation-editor-footer{position:relative;z-index:3}
 .annotation-workspace[data-panel=details] .annotation-heading small{display:none}
 .annotation-workspace[data-panel=details] .annotation-layout{min-height:0}
 .annotation-site-panel{padding-bottom:24px}
 .annotation-site-panel .annotation-panel-heading{margin-bottom:10px}
 .marker-save-actions>button{min-height:48px}
 .annotation-dialog.keyboard-open .annotation-heading{display:none}
 .annotation-dialog.keyboard-open .annotation-mobile-tabs{display:none}
 .annotation-dialog.keyboard-open .annotation-site-panel{padding:10px 14px}
 .annotation-dialog.keyboard-open .marker-product-summary{padding:6px;margin-bottom:8px}
 .annotation-dialog.keyboard-open .annotation-site-panel form>label{margin-bottom:8px;gap:4px}
}
@media(max-width:700px) and (max-height:550px){
 .annotation-workspace[data-panel=map] .annotation-photo-row,.annotation-workspace[data-panel=map] .annotation-heading{display:none}
 .annotation-workspace[data-panel=map] .annotation-mobile-tabs{display:none}
}

.annotation-toolbar{flex-wrap:wrap}
.annotation-media-menu{order:-1;width:100%}
.annotation-media-menu>summary{display:none}
.annotation-media-menu:not([open])>.annotation-photo-row{display:none}
.annotation-media-menu .annotation-photo-row{padding:0;border:0}
@media(max-width:700px){
 .annotation-toolbar{flex-wrap:nowrap}
 .annotation-media-menu{order:0;width:auto;position:relative;margin-left:auto}
 .annotation-media-menu>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px;cursor:pointer}
 .annotation-media-menu[open]>.annotation-photo-row{display:flex;position:absolute;top:50px;right:0;left:auto;width:min(350px,calc(100vw - 24px));padding:10px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002;z-index:10;flex-wrap:wrap}
 .annotation-media-menu .annotation-photo-options{margin-left:0}
 .annotation-heading{flex-wrap:nowrap;align-items:center;gap:8px}
 .annotation-heading>div:first-child{flex-shrink:0}
 .annotation-totals{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;max-height:none;min-width:0}
 .annotation-totals>span{flex-shrink:0}
 .annotation-views img{display:none}
 .annotation-views{max-height:none;padding:4px 8px}
 .annotation-views button{min-height:44px}
 .annotation-tools-more>summary{padding:8px 10px;font-size:12px}
}

@media(min-width:701px) and (max-width:1100px){
 .annotation-dialog.keyboard-open .annotation-heading,.annotation-dialog.keyboard-open .annotation-toolbar,.annotation-dialog.keyboard-open .annotation-product-bar{display:none}
 .annotation-dialog.keyboard-open .annotation-layout{min-height:0}
 .annotation-dialog.keyboard-open .annotation-site-panel{padding:10px 14px}
 .annotation-dialog.keyboard-open .annotation-editor-footer{padding:8px 14px}
}

.approval-tabs{display:flex;gap:8px;overflow-x:auto;padding:12px 0;margin-bottom:16px}.approval-tabs .btn{white-space:nowrap}.approval-table{min-width:1300px}.approval-table th{white-space:nowrap}.approval-table .actions{min-width:175px;gap:6px}.check-status{font-size:12px;font-weight:600;color:#4f5c5a}.check-status.needs-work{color:#8b4016}.review-preview li small{display:block}.approval-workspace .card{padding:20px}.count{font-size:11px;margin-left:5px;opacity:.8}

.availability-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.availability-date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.availability-date-grid label{position:relative;cursor:pointer}.availability-date-grid input{position:absolute;opacity:0}.availability-date-grid span{display:block;text-align:center;padding:8px 3px;border:1px solid #d6cadb;border-radius:7px}.availability-date-grid small{display:block;font-size:10px}.availability-date-grid input:checked+span{background:#533e65;color:#fff;border-color:#533e65}.availability-date-grid input:focus-visible+span{outline:3px solid #ac7bba}.availability-overrides{margin-top:16px}

.approval-table th:last-child,.approval-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 6px #372d4010;z-index:1}.approval-table td:last-child{min-width:175px}.approval-table th:last-child{z-index:2}.approval-workspace .table-scroll{max-width:100%}

.approval-table td:nth-child(2){min-width:180px}.approval-table td:nth-child(3){min-width:155px}.approval-table td:nth-child(4){min-width:140px}.approval-table td:last-child .actions{flex-direction:column;align-items:stretch;min-width:145px}.approval-table td:last-child{min-width:160px}.approval-table .actions .btn{white-space:nowrap}

/* Shared patient/staff signing surface. */
.signing-dialog{width:min(820px,96vw);padding:0;border:0;border-radius:16px;max-height:94dvh}.signature-form .modal-header,.signature-form .modal-footer{position:sticky;background:white;z-index:3}.signature-form .modal-header{top:0}.signature-form .modal-footer{bottom:0;display:flex;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #e4dce7}.signature-copy{white-space:pre-wrap;line-height:1.65;border:1px solid #ded5e2;border-radius:10px;padding:22px;background:#fff;margin:18px 0}.signature-test{background:#f2edf5;padding:10px 14px;border-radius:8px;font-size:13px}.signature-pad{display:block;width:100%;height:170px;border:2px solid #9b75ad;border-radius:10px;background:white;touch-action:none;cursor:crosshair;margin:10px 0}.typed-signature{font:italic 32px Georgia,serif;padding:18px 4px;min-height:65px;overflow-wrap:anywhere}.signature-render{width:100%;max-height:170px;border:1px solid #e0d8e5;border-radius:10px}.signature-evidence{margin:20px 0}.signature-evidence code{overflow-wrap:anywhere;font-size:11px}.signature-form .check-label{display:flex;gap:12px;align-items:flex-start;padding:12px 0}.signature-form input[type=checkbox]{flex:0 0 auto;width:22px;height:22px}.signature-form [hidden]{display:none!important}.signing-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.signing-row>span:first-child{flex:1;min-width:180px}.signing-list small{display:block;margin-top:5px}.signature-form .modal-body{padding:24px}.signature-form input:not([type=checkbox]),.signature-form select,.signature-form textarea{font:inherit;width:100%;padding:12px;border:1px solid #d4c6dc;border-radius:8px}.signature-form .field{display:block;margin:16px 0}.signature-form .btn{min-height:44px}.signing-list .btn{min-height:42px}.signature-form .form-error:empty{display:none}@media(max-width:600px){.signing-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.signature-form .modal-body{padding:16px}.signature-form .modal-footer{padding:12px}.signature-form .modal-footer .primary{flex:1;min-width:150px}.signature-copy{padding:16px}.signing-row{padding:16px 0}}

.settings-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}.settings-navigation{display:flex;flex-direction:column;gap:7px;position:sticky;top:86px}.settings-navigation .btn{text-align:left;justify-content:flex-start}.settings-detail{min-width:0}.settings-detail>.card{margin:0 0 20px}.settings-detail small{display:block;margin-top:4px}.care-alert{padding:14px 18px;margin:12px 0;background:#fff4e4;border:1px solid #e9cfad;border-radius:10px;color:#654415;overflow-wrap:anywhere}.care-alert p{white-space:pre-wrap;margin:6px 0}.care-alert.compact{font-size:14px}.settings-workspace{max-width:1450px}.settings-detail dl{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px}.settings-detail dd{margin:0;overflow-wrap:anywhere}#modal-form fieldset{border:1px solid #e3d9e6;border-radius:12px;margin:18px 0;padding:16px}#modal-form legend{font-weight:650;padding:0 8px}#modal-form input[type=color]{height:45px}.patient-tabs{overflow-x:auto;flex-wrap:nowrap}.patient-tabs>button{white-space:nowrap}@media(max-width:850px){.settings-layout{grid-template-columns:1fr;gap:18px}.settings-navigation{position:static;flex-direction:row;overflow:auto;padding:3px 0 10px}.settings-navigation .btn{white-space:nowrap;flex-shrink:0}.settings-detail dl{grid-template-columns:1fr}.settings-detail dt{font-weight:650}.settings-detail dd{margin-bottom:8px}}
.report-number{font-size:30px;display:block;margin:14px 0}.settings-detail .card h3{margin-top:22px}.settings-workspace .table-scroll small{display:block;color:var(--muted)}
.clinic-hour-row{display:grid;grid-template-columns:minmax(120px,1fr) 120px 120px;gap:10px;align-items:center;margin:10px 0}.clinic-hour-row input[type=time]{min-width:0;width:100%;padding:9px;border:1px solid #d9cde0;border-radius:8px}@media(max-width:600px){.clinic-hour-row{grid-template-columns:1fr 90px 90px;gap:5px;font-size:13px}}

.lead-interest-list{max-height:200px;overflow:auto;margin-top:12px}.lead-interest-list label[hidden]{display:none}.lead-interest-list .check-label{padding:7px 0}.plan-line{margin:12px 0;padding:14px;border:1px solid #e3d9e6;border-radius:10px}.plan-line .btn{align-self:end}

.warehouse-tabs button[aria-pressed=true]{background:#a63779;color:white;border-color:#a63779}.purchase-line{margin:14px 0;padding:16px;border:1px solid #e3d9e6;border-radius:10px}.purchase-line .btn{align-self:end}
#content .warehouse-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:18px;align-items:stretch}#content .warehouse-tabs .btn{padding:10px 14px;min-height:44px;font-size:13px;border:1px solid #aa8c9f;border-radius:8px;flex-shrink:0;box-shadow:none}#content .warehouse-tabs .btn[aria-pressed=true]{background:#a63779;color:white;border-color:#a63779}#content .warehouse-tabs .btn:hover{background:#f8edf4}#content .warehouse-tabs .btn[aria-pressed=true]:hover{background:#852860}.purchase-line input,.purchase-line select{min-width:0}.count-line legend{overflow-wrap:anywhere}
.warehouse-content{min-width:0}.warehouse-content .section-title{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.warehouse-content .section-title h2{flex:1 1 180px}.warehouse-content .section-title .btn{min-height:44px}.warehouse-content .table-scroll{max-width:100%;overflow-x:auto}.warehouse-content table td,.warehouse-content table th{overflow-wrap:anywhere}.warehouse-content table td small{display:block;margin-top:5px}@media(max-width:600px){.warehouse-content .section-title h2{flex:1 0 100%;margin-bottom:4px}.warehouse-content .section-title .btn{flex:1 1 140px;white-space:normal}.warehouse-content .table-scroll table{min-width:650px}.warehouse-content .actions{flex-wrap:wrap}}
.survey-workspace{min-width:0}.survey-workspace .section-title{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.survey-workspace .section-title h2{flex:1}.survey-workspace .table-scroll{max-width:100%;overflow:auto}.survey-workspace td .btn{margin:4px;min-height:44px}.survey-workspace small{display:block;margin-top:6px}.survey-question-editor .actions{flex-wrap:wrap}.survey-response .survey-answer{border:1px solid #d8ccdc;border-radius:10px;margin:18px 0;padding:18px;min-width:0}.survey-response legend{font-weight:650;line-height:1.6}.survey-response .field{display:block;margin:16px 0}.survey-response textarea{font:inherit;width:100%;padding:12px;min-height:90px;border:1px solid #b9acbc;border-radius:8px}.survey-choices{display:grid;gap:10px}.survey-choices label{display:flex;gap:10px;align-items:center;min-height:44px;padding:10px;border:1px solid #d8ccdc;border-radius:8px;cursor:pointer}.survey-choices input{width:22px;height:22px;flex-shrink:0}.survey-choices label:has(input:checked){border-color:#a63779;background:#f8edf4;color:#742653}.survey-scale{display:flex;flex-wrap:wrap;gap:8px}.survey-scale label{position:relative;justify-content:center;min-width:44px;min-height:44px;padding:8px}.survey-scale input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0}.survey-scale label:has(input:focus-visible){outline:3px solid #a63779;outline-offset:2px}.survey-scale-labels{display:flex;justify-content:space-between;gap:20px;margin:10px 0;font-size:13px}.survey-response [disabled]{opacity:.8}.survey-workspace .actions{flex-wrap:wrap}@media(max-width:600px){.survey-workspace table{min-width:650px}.survey-question-editor .actions .btn{flex:1 1 110px;min-height:44px}.survey-response .survey-answer{padding:12px}.survey-response textarea{font-size:16px}}

/* Connected invoice pricing and gift records. */
.pricing-preview{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;padding:16px;border:2px solid var(--accent,#a32364);border-radius:12px;background:var(--surface,#fff);margin:16px 0}.invoice-pricing{padding:16px;margin:18px 0;border:1px solid var(--border,#ddd);border-radius:12px}.invoice-pricing .btn{margin:4px}.business-tabs{flex-wrap:wrap}.business-tabs button{min-height:44px}.modal-body details>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}.modal-body [hidden]{display:none!important}

.gift-history .business-table{min-width:0;width:100%;table-layout:fixed}.gift-history th,.gift-history td{padding:12px 6px;white-space:normal;overflow-wrap:anywhere}.gift-history th:first-child{width:30%}.gift-history th:last-child{width:25%}.gift-history td:last-child{text-align:right;font-variant-numeric:tabular-nums}.patient-shell .contact-note summary{cursor:pointer;min-height:44px;padding:12px 0}.patient-shell .contact-note{padding-top:12px}.business-tabs button{font-size:13px}.pricing-preview{border-color:var(--pink);background:var(--rose)}

.group-member-list{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:10px}.group-member-list .check-label{min-height:44px;border-bottom:1px solid var(--line);padding:8px}.group-member-list [hidden]{display:none!important}.recipe-picker{background:var(--rose)}[data-recipe-component] .btn{min-height:44px}#recipe-components{min-width:0}#recipe-components fieldset{min-width:0}#recipe-components .field{min-width:0}.recipe-picker select{width:100%}

.group-member-list .check-label{font-size:14px}.invoice-recipe{padding:10px 0;margin:8px 0;font-weight:500}

.annotation-recipe{padding:10px 16px;border-bottom:1px solid var(--border,#e2dce3);background:#faf6f9}.annotation-recipe form{display:flex;gap:10px;align-items:end}.annotation-recipe label:first-child{flex:1;min-width:0}.annotation-recipe label{display:grid;gap:4px;font-size:12px}.annotation-recipe label:nth-child(2){width:70px}.annotation-recipe input,.annotation-recipe select,.annotation-recipe button{min-height:44px;font-size:14px}.annotation-recipe button{border:1px solid #af3978;border-radius:7px;background:white;padding:8px 12px;color:#7b2757}.annotation-recipe-usage{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px;font-size:12px}.annotation-recipe-usage span{border:1px solid #d8c7d3;border-radius:5px;padding:2px 6px}.invoice-charge-lines>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}@media(max-width:700px){.annotation-recipe{padding:8px 10px}.annotation-recipe form{display:grid;grid-template-columns:1fr 58px}.annotation-recipe form>button{grid-column:1/-1}.annotation-recipe label:nth-child(2){width:auto}}

.annotation-recipe{flex-shrink:0}.annotation-recipe-usage{align-items:center}.annotation-recipe-usage>button{margin-left:auto;min-height:36px;padding:6px 10px}.annotation-workspace[data-panel=details] .annotation-recipe{display:none}@media(max-width:700px){.annotation-recipe-usage{padding-top:0;font-size:11px}.annotation-recipe-usage>b{flex:1}.annotation-recipe-usage>button{min-height:44px}.annotation-dialog.keyboard-open .annotation-recipe{display:none}}

.weekly-schedule-title .btn{margin-top:8px;min-height:44px}.availability-dialog .modal-footer{flex-wrap:wrap}.availability-dialog details>summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:600}.availability-dialog .modal-body{min-width:0}.availability-dialog .table-scroll{max-width:100%}
@media(max-width:700px){.availability-dialog .modal-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}.availability-dialog .modal-footer .btn{min-height:48px;font-size:13px;line-height:1.35;padding:10px}.availability-dialog .modal-footer .primary{grid-column:1/-1}.weekly-schedule-table,.weekly-schedule-table tbody{display:block;min-width:0!important;width:100%}.weekly-schedule-table thead{display:none}.weekly-schedule-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px;gap:12px}.weekly-schedule-table tbody td{display:block;padding:0;border:0;white-space:normal;font-size:13px;min-width:0;overflow-wrap:anywhere}.weekly-schedule-table tbody td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}.weekly-schedule-table .weekly-schedule-title{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:4px 10px}.weekly-schedule-title b{font-size:14px}.weekly-schedule-title small{grid-column:1}.weekly-schedule-table .weekly-schedule-title .btn{grid-column:2;grid-row:1/3;margin:0;font-size:12px;min-height:44px}.weekly-schedule-table small{font-size:11px;overflow-wrap:anywhere}}

/* Protected provider time off shares all booking paths. */
.time-block-list{display:grid;gap:12px}.time-block-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border,#e4dce4);border-left:4px solid var(--accent,#a9347a);border-radius:10px;padding:14px}.time-block-row small{display:block;color:var(--muted,#786b80);margin-top:4px}.time-block-row p{margin:8px 0 0}#modal-form:has(input[name=allDay]:checked) .time-block-hours{display:none}@media(max-width:600px){.time-block-row{align-items:stretch;flex-direction:column}.time-block-row .btn{width:100%}}

.billing-setup{padding:16px;border:1px solid #b67a9f;border-left:4px solid #a9347a;border-radius:10px;background:#fbf4f9;margin:12px 0}.billing-setup h4{margin:0 0 8px}.billing-setup-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.billing-setup-row p{margin:8px 0}.billing-setup-row .btn{flex-shrink:0}@media(max-width:600px){.billing-setup-row{align-items:stretch;flex-direction:column}.billing-setup-row .btn{width:100%}}

.paperwork-library{display:grid;gap:14px}.paperwork-template{border:1px solid var(--border,#e1d9e4);border-radius:12px;padding:18px;display:flex;justify-content:space-between;gap:18px}.paperwork-template h3{margin:0 0 8px}.paperwork-template p{margin:6px 0}.paperwork-template small{display:block;color:var(--muted,#786b80);margin-top:6px}.paperwork-template>.actions{align-content:start;align-items:flex-start;max-width:300px}.paperwork-question{border:1px solid #e1d9e4;border-radius:10px;margin:12px 0;padding:14px}.paperwork-question>summary{font-weight:600;cursor:pointer}.paperwork-question>label,.paperwork-question>.form-grid{margin-top:14px}.paperwork-preview-question{padding:14px 0;border-bottom:1px solid #e1d9e4}#paperwork-questions{margin-bottom:14px}@media(max-width:700px){.paperwork-template{flex-direction:column}.paperwork-template>.actions{max-width:none;display:grid;grid-template-columns:1fr 1fr}.paperwork-template>.actions .btn{min-height:44px}.paperwork-question .actions{display:flex;flex-wrap:wrap}}

.paperwork-choice-field[hidden]{display:none}

.paperwork-template>div{min-width:0}.paperwork-template h3,.paperwork-question>summary{overflow-wrap:anywhere}

.paperwork-dialog[open]{height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;display:flex;flex-direction:column}.paperwork-dialog>.modal-header{flex-shrink:0}.paperwork-dialog>:is(#modal-form,#operations-form,#structured-history-form,.care-ack-form){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.paperwork-dialog>:is(#modal-form,#operations-form,#structured-history-form,.care-ack-form)>.modal-body{overflow-y:auto;flex:1;min-height:0}.paperwork-dialog>:is(#modal-form,#operations-form,#structured-history-form,.care-ack-form)>.modal-footer{flex-shrink:0;position:relative;bottom:auto}

.paperwork-dialog>:is(#modal-form,#operations-form,#structured-history-form,.care-ack-form)>.modal-header{flex-shrink:0}.service-setup-summary{border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:18px;background:var(--bg)}.service-setup-summary h3{margin-bottom:6px}.service-setup-summary ul{padding-left:20px;line-height:1.6;margin:8px 0}.service-setup-summary details>summary{cursor:pointer;min-height:40px;padding:10px 0;font-weight:600}.service-setup-counts{margin-bottom:16px;line-height:1.8}

/* Keep source histories readable while retaining their close control. */
.paperwork-dialog[open]>.modal-body{flex:1;min-height:0;overflow-y:auto}
.paperwork-dialog[open]>.modal-footer{flex-shrink:0;position:relative;bottom:auto}

.paperwork-template[hidden]{display:none}
.paperwork-template{flex-wrap:wrap}.paperwork-template>div:first-child{flex:1 1 260px}.paperwork-template>.actions{flex-wrap:wrap;width:min(100%,300px);min-width:0;flex-shrink:0}.paperwork-template>.actions .btn{white-space:normal;text-align:center}@media(max-width:700px){.paperwork-template>div:first-child{flex:auto}.paperwork-template>.actions{width:100%}}
[data-template-library] .filter-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end;gap:12px;margin:20px 0 8px}
[data-template-library] .filter-toolbar .field{margin:0;min-width:0}
/* Booking tables retain readable columns on desktop and touch screens. */
dialog.booking-desk-dialog{width:min(1120px,calc(100vw - 24px))}.booking-desk-dialog .table-scroll{max-width:100%;overflow-x:auto;margin-top:18px}.booking-desk-dialog table{min-width:850px;width:100%;table-layout:auto}.booking-desk-dialog th,.booking-desk-dialog td{padding:14px 12px;vertical-align:top;line-height:1.55}.booking-desk-dialog td small{display:block;margin-top:5px}.booking-desk-dialog td:last-child{min-width:180px}.booking-desk-dialog .btn{min-height:44px;white-space:normal;margin:4px 0}.booking-desk-dialog .field{margin:12px 0}
/* Membership rules use the same readable, touch-friendly form layout. */
.membership-benefit-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:12px;align-items:end;padding:14px 0;border-bottom:1px solid var(--line,#e6dfe7)}
.membership-benefit-row .field{min-width:0}.membership-benefit-row select{max-width:100%}
@media(max-width:600px){.membership-benefit-row{grid-template-columns:minmax(0,1fr)}.membership-benefit-row button{justify-self:start}}

.field-restricted input,.field-restricted select{background:#f1eef3;color:#615968;border-style:dashed}.field-restricted::after{content:"Read only";font-size:.75rem;color:#6d6278}

.required-paperwork-row{gap:14px;flex-wrap:wrap}.required-paperwork-row>span:first-of-type{flex:1;min-width:160px}.required-paperwork-row .btn{white-space:normal;min-height:44px}@media(max-width:600px){.required-paperwork-row .btn{width:100%}}

/* Short laptop and landscape tablet screens reserve space for the actual image. */
.annotation-stage{min-height:0}
@media(min-width:701px) and (max-height:850px){
 .annotation-toolbar{flex-wrap:nowrap}
 .annotation-media-menu{order:0;width:auto;position:relative;margin-left:auto}
 .annotation-media-menu>summary,.annotation-tools-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:white;font-size:12px;cursor:pointer}
 .annotation-media-menu[open]>.annotation-photo-row{display:flex;position:absolute;right:0;top:50px;width:360px;padding:10px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002;z-index:10;flex-wrap:wrap}
 .annotation-media-menu .annotation-photo-options{margin-left:0}
 .annotation-tools-more[open]>div{position:absolute;right:0;top:50px;z-index:10;display:flex;width:260px;padding:10px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002}
 .annotation-heading{padding:9px 18px}
 .annotation-product-bar{padding:8px 14px}
}

.annotation-config{display:contents}
@media(min-width:701px) and (max-height:850px){
 .annotation-config:has(.annotation-product-bar):not(:has(#annotation-recipe-form,.annotation-recipe-usage)){display:grid;flex-shrink:0;min-width:0;grid-template-columns:200px minmax(0,1fr)}
 .annotation-config:has(.annotation-product-bar):not(:has(#annotation-recipe-form,.annotation-recipe-usage))>.annotation-recipe{display:flex;align-items:center;justify-content:center;padding:8px;border-right:1px solid var(--line)}
}

.source-procedures .table-scroll{max-height:30rem;overflow:auto}.source-procedures thead th{position:sticky;top:0;background:var(--surface,#fff);z-index:1}.source-procedures [data-source-procedure-row][hidden]{display:none}

.source-procedures>.field{max-width:36rem;margin:16px 0}.source-procedures tbody td:first-child{color:var(--ink);font-weight:550}.source-procedure-status{display:inline-block;border-radius:5px;padding:5px 8px;font-size:11px;line-height:1.5}.source-procedure-status.ready{background:#eaf5ef;color:#256044}.source-procedure-status.pending{background:#fff3df;color:#78501a}
@media(max-width:760px){.source-procedures .table-scroll{max-height:36rem;overflow-y:auto;overflow-x:hidden}.source-procedures table{min-width:0;width:100%}.source-procedures thead{display:none}.source-procedures tbody{display:block}.source-procedures tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}.source-procedures tbody td{display:block;padding:0;border:0;white-space:normal;min-width:0;overflow-wrap:anywhere}.source-procedures tbody td:first-child{grid-column:1/-1;font-size:14px}.source-procedures tbody td:nth-child(2)::before{content:'MTD bookings: '}.source-procedures tbody td:nth-child(3){text-align:right}.source-procedures tbody td:nth-child(4){align-self:center}.source-procedures tbody td:last-child .btn{min-height:44px;white-space:normal}.source-procedures [data-source-procedure-row][hidden]{display:none}}
:root .pickup-item.order-card{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0}
.pickup-item h4{margin:0;font-size:14px;letter-spacing:0;text-transform:none}.pickup-item p{margin:8px 0;overflow-wrap:anywhere}.pickup-item .actions{margin-top:14px;flex-wrap:wrap}.pickup-orders{padding:14px 0;border-top:1px solid var(--line)}.pickup-orders .setting-row{padding:12px 0;gap:12px}.pickup-panel>.section-title{gap:16px;flex-wrap:wrap}.pickup-panel>.section-title .actions{flex-wrap:wrap}.pickup-panel details,.billing-decision details{margin:16px 0}.pickup-panel summary,.billing-decision summary{cursor:pointer;color:var(--pink);font-weight:600}.billing-decision{padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:24px}.billing-decision>.btn{margin:12px 8px 0 0}.pickup-patient-copy{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px}
@media(max-width:600px){.pickup-panel>.section-title{display:block}.pickup-panel>.section-title .actions{margin-top:14px}.pickup-panel .btn,.billing-decision .btn{min-height:44px;white-space:normal}.pickup-panel>.section-title .btn{flex:1 1 140px}.pickup-orders .setting-row{display:block}.pickup-orders .setting-row .btn{margin-top:10px}.billing-decision .section-title{flex-wrap:wrap;gap:12px}}

.procedure-record>.section-title{flex-wrap:wrap;gap:16px}.procedure-record .note-paper{margin:18px 0}.procedure-record .note-paper p{overflow-wrap:anywhere;white-space:pre-wrap}.procedure-record .card{margin:20px 0}.procedure-record .card .section-title{gap:12px;flex-wrap:wrap}.procedure-record details{margin:18px 0}.procedure-record summary{cursor:pointer;font-weight:600;color:var(--pink)}
.procedure-product-summary{padding:12px 0;border-bottom:1px solid var(--line)}.procedure-product-summary p{margin:6px 0}.procedure-record .btn{min-height:44px;white-space:normal}
[data-procedure-product]{border:1px solid var(--line);border-radius:9px;padding:16px;margin:18px 0;min-width:0}[data-procedure-product] legend{padding:0 6px;font-weight:600}[data-procedure-product] .field{min-width:0}[data-procedure-product] input,[data-procedure-product] select{max-width:100%}
[data-procedure-performed]>[data-action=procedure-product-add]{margin-bottom:18px}[data-procedure-performed] .check-label,[data-source-billing-review] .check-label{display:flex;align-items:flex-start;gap:10px;padding:12px 0}[data-source-billing-review]{padding:14px;background:#fff5e8;border:1px solid #e5cca5;border-radius:8px;margin:12px 0}[data-source-billing-review][hidden],[data-procedure-performed][hidden],[data-procedure-deferred][hidden],[data-external-lab-order][hidden]{display:none}
@media(max-width:600px){.procedure-record>.section-title{display:block}.procedure-record>.section-title>.btn{margin:12px 0;width:100%}.procedure-record .card .btn{width:100%}[data-procedure-product] .form-grid{grid-template-columns:minmax(0,1fr)}[data-procedure-product]{padding:12px}}

[data-skin-area],.skin-photos{border:1px solid var(--line);border-radius:9px;padding:16px;margin:18px 0;min-width:0}[data-skin-area] legend,.skin-photos legend{padding:0 6px;font-weight:600}[data-skin-area] input,[data-skin-area] textarea{max-width:100%}[data-skin-device][hidden],[data-skin-products][hidden],[data-skin-no-products][hidden]{display:none}.skin-photos .check-label{overflow-wrap:anywhere}.procedure-record .note-paper h4{margin-top:20px}@media(max-width:600px){[data-skin-area],.skin-photos{padding:12px}[data-skin-device] .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Resource settings keep the primary action visible at every screen size. */
.resource-dialog{width:min(960px,calc(100vw - 32px))}.resource-dialog .table-scroll table{min-width:620px}.resource-dialog .table-scroll td:first-child{min-width:150px}.resource-dialog .form-grid{grid-template-columns:minmax(120px,.8fr) minmax(0,1fr) minmax(0,1fr);align-items:center}.resource-dialog .form-grid .field{min-width:0}.resource-dialog .modal-footer .btn{min-height:44px}@media(max-width:600px){.resource-dialog{width:calc(100vw - 16px)}.resource-dialog .modal-body{padding:16px}.resource-dialog .form-grid{grid-template-columns:1fr 1fr;gap:10px}.resource-dialog .form-grid>.check-label{grid-column:1/-1}.resource-dialog .modal-footer{flex-wrap:wrap}}

.time-block-recurrence:has([name=repeatUnit] option[value="None"]:checked) [data-repeat-dependent],.time-block-recurrence:not(:has([name=repeatUnit] option[value="Week"]:checked)) [data-repeat-weekdays],.time-block-recurrence:has([name=repeatEndMode] option[value="date"]:checked) [data-repeat-count],.time-block-recurrence:has([name=repeatEndMode] option[value="count"]:checked) [data-repeat-until]{display:none}

/* Prepared consent pages keep their identity across desktop and touch layouts. */
.consent-signing-page{border:1px solid var(--line,#e4dce7);border-radius:12px;padding:18px;margin:18px 0;background:#fff;min-width:0}
.consent-signing-page .signature-copy{max-height:none;overflow:visible;margin:12px 0;overflow-wrap:anywhere}
.consent-signing-page input[data-page-initials]{max-width:180px;min-height:44px;font-size:18px}
.consent-page-progress{padding:10px 14px;background:#f8eef5;border-radius:8px;font-weight:600;color:#64314f}
@media(max-width:600px){.consent-signing-page{padding:14px 12px}.consent-signing-page .signature-copy{font-size:15px;line-height:1.6}}

.date-range-field{min-width:260px;position:relative}
.date-range-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:48px;padding:11px 14px;border:1.5px solid #b52d80;border-radius:9px;background:#fff7fc;color:#312333;font:inherit;text-align:left;cursor:pointer}
.date-range-trigger:hover,.date-range-trigger[aria-expanded="true"]{background:#f9e8f3;box-shadow:0 0 0 3px #bd2c7e14}
.date-range-popover{position:fixed;z-index:600;border:1px solid #e5d6e2;border-radius:14px;background:#fff;box-shadow:0 16px 48px #30223830;padding:16px;color:#342638;overflow:auto;overscroll-behavior:contain;font-size:14px;font-weight:400;box-sizing:border-box}
.date-range-popover[hidden]{display:none}
.date-range-presets{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:14px;border-bottom:1px solid #eee5ed}
.date-range-presets button{border:1px solid #dfd2df;background:#fff;padding:8px 11px;border-radius:7px;color:#533b57;font:inherit;font-weight:600;cursor:pointer}
.date-range-presets button:hover,.date-range-presets button.selected{background:#f8e3f1;border-color:#b52d80;color:#9b1f69}
.date-range-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.date-range-nav p{font-size:13px;color:#745c76;text-align:center;margin:0}
.date-range-nav>button{border:1px solid #e2d7e2;background:#fff;border-radius:7px;width:36px;height:36px;font-size:24px;cursor:pointer;color:#563455}
.date-range-months{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.date-range-month h3{font-size:15px;text-align:center;margin:4px 0 12px}
.date-range-days,.date-range-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.date-range-week{color:#8a7389;text-align:center;font-size:12px;margin-bottom:6px}
.date-range-days>button{border:0;background:transparent;color:#473047;min-width:0;height:36px;padding:0;border-radius:7px;font:inherit;cursor:pointer}
.date-range-days>button:hover{background:#f6e9f2}
.date-range-days>button.range-between{background:#f9e6f2;border-radius:2px}
.date-range-days>button.range-edge{background:#b72c80;color:#fff;font-weight:700}
.date-range-days>button[aria-current="date"]{box-shadow:inset 0 0 0 1px #b72c80}
.date-range-popover button:focus-visible,.date-range-trigger:focus-visible{outline:3px solid #5e426d;outline-offset:2px}
.date-range-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eee5ed;padding-top:14px;margin-top:14px}
.date-range-footer>span{font-size:12px;color:#745c76}
.date-range-footer>div{display:flex;gap:8px}
.date-range-footer .btn{min-height:40px}
@media(max-width:600px){.date-range-field{min-width:0;width:100%}.date-range-months{grid-template-columns:1fr;gap:0}.date-range-second-month{display:none}.date-range-days>button{height:42px}.date-range-footer{flex-wrap:wrap}.date-range-footer>div{margin-left:auto}.date-range-presets button{min-height:40px}.date-range-popover{padding:14px}}

.consent-response-field{border:1px solid var(--line,#e4dce7);border-radius:12px;padding:18px;margin:20px 0;min-width:0}.consent-response-field legend{font-weight:700;padding:0 6px}.consent-response-field p{overflow-wrap:anywhere}.consent-response-field input[readonly]{background:#f6f3f7}

.signature-form .check-label{font-size:14px;line-height:1.5;color:#3d3344}.consent-response-field .check-label{padding:8px 0}
.visit-detail-header+.visit-next-step{margin:0 20px 18px}.journey-step.current{color:var(--pink);background:#fbedf4;border-radius:8px;padding:5px 7px}.journey-step.current>span{border-color:var(--pink);background:white}.visit-next-step.finished{background:#f0f7f3;border-color:#c9e2d5}.visit-next-step .journey-handoff{font-weight:600;color:var(--ink)}
@media(max-width:600px){.visit-detail-header+.visit-next-step{margin:0 12px 14px}.visit-next-step>.btn{width:100%;min-height:44px}.journey-step b{white-space:normal}}
.saved-question{padding:16px 0;border-bottom:1px solid var(--line)}.saved-question:first-child{padding-top:0}.saved-question h4{font-size:13px;line-height:1.6;margin-bottom:7px}.saved-question p{white-space:pre-wrap;overflow-wrap:anywhere}.saved-answer{padding:10px 12px;margin:10px 0;background:#f8f5f8;border-radius:7px;font-size:13px}.saved-question details{font-size:12px;margin-top:8px}.saved-question ul{padding:8px 0 0 20px;line-height:1.7}.retained-document{display:block}.retained-document h3{font-size:14px}.retained-document p{font-size:12px;margin:8px 0;overflow-wrap:anywhere}.retained-document .actions{margin-top:12px;flex-wrap:wrap}
/* Keep capture and the next-point action visible at every screen size. */
.annotation-direct-photos{flex-shrink:0;border-bottom:1px solid var(--line);min-width:0}.annotation-direct-photos .annotation-photo-row{padding:6px 14px;border:0}.annotation-direct-photos .photo-picker-actions{display:flex;gap:8px}.annotation-direct-photos .photo-picker-actions>.btn{min-height:44px;font-size:12px}.annotation-workspace[data-setup=open]>.annotation-direct-photos,.annotation-workspace[data-panel=details]>.annotation-direct-photos{display:none}.annotation-workspace .annotation-marker.just-saved>span{outline:3px solid #39826a;outline-offset:2px}.annotation-site-panel input[name=units]{font-size:24px;font-weight:650;min-height:56px;font-variant-numeric:tabular-nums}.annotation-site-panel input[name=units]:focus{outline:2px solid var(--pink);outline-offset:2px}.annotation-workspace[aria-busy=true] .annotation-layout,.annotation-workspace[aria-busy=true] .annotation-config,.annotation-workspace[aria-busy=true] .annotation-toolbar,.annotation-workspace[aria-busy=true] .annotation-direct-photos{pointer-events:none;opacity:.7}.annotation-site-panel .annotation-panel-heading button{min-height:44px;padding:6px 8px}.marker-save-actions>.annotation-primary{order:0}.marker-save-actions>button:not(.annotation-primary){order:1}
@media(max-width:700px){.annotation-direct-photos .annotation-photo-row{padding:5px 10px}.annotation-direct-photos .annotation-photo-row{flex-wrap:wrap}.annotation-direct-photos .annotation-photo-options{margin-left:auto}.annotation-direct-photos .annotation-capture-actions{flex-basis:100%}.annotation-direct-photos .annotation-capture-actions{width:100%}.annotation-direct-photos .photo-picker-actions>.btn{font-size:12px;padding:8px}.annotation-direct-photos .annotation-capture-actions>[data-ann=model]{font-size:11px;flex:.8}.marker-save-actions{grid-template-columns:1.5fr 1fr}.annotation-dialog.keyboard-open .annotation-direct-photos{display:none}.annotation-site-panel #annotation-site-form{display:flex;flex-direction:column}}
.annotation-toolbar>.annotation-direct-photos{border:0;flex:1;min-width:0}.annotation-toolbar>.annotation-direct-photos .annotation-photo-row{justify-content:flex-end;padding:0}.annotation-toolbar>.annotation-direct-photos .annotation-capture-actions{border:0;padding:0}.annotation-dialog .modal-header{padding:10px 16px}.annotation-heading{padding:8px 16px}.annotation-product-bar{padding:6px 12px}.annotation-product-bar>button{padding-top:6px;padding-bottom:6px}.annotation-toolbar{padding:6px 12px}.annotation-image-label{padding:6px 12px}.annotation-editor-footer{padding:10px 16px}
@media(max-width:700px){.annotation-toolbar{flex-wrap:wrap}.annotation-toolbar>.annotation-direct-photos{order:3;flex-basis:100%}.annotation-toolbar>.annotation-direct-photos .annotation-photo-row{flex-wrap:nowrap}.annotation-toolbar>.annotation-direct-photos .annotation-capture-actions{flex-basis:auto;flex:1;width:auto}.annotation-toolbar>.annotation-direct-photos .photo-picker-actions{flex:2}.annotation-toolbar>.annotation-direct-photos .annotation-photo-options{max-width:50px}.annotation-toolbar>.annotation-direct-photos .annotation-photo-options>summary{width:46px}.annotation-toolbar>.annotation-direct-photos .annotation-photo-options>summary:after{content:'View'}.annotation-toolbar>.annotation-direct-photos .annotation-photo-tools{top:108px}.annotation-toolbar>.annotation-tools-more{margin-left:auto}.annotation-direct-photos .annotation-capture-actions>[data-ann=model]{flex:1}}
@media(min-width:701px) and (max-width:1100px){.annotation-toolbar{flex-wrap:wrap;overflow:visible}.annotation-toolbar>.annotation-direct-photos{flex:1;min-width:330px}.annotation-direct-photos .annotation-photo-options>summary{font-size:0;min-width:78px;padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;list-style:none}.annotation-direct-photos .annotation-photo-options>summary:after{content:'Photo options';font-size:11px}.annotation-direct-photos .annotation-photo-options{position:relative}.annotation-direct-photos .annotation-photo-options[open] .annotation-photo-tools{position:absolute;right:0;top:46px;width:260px;padding:10px;background:#fff;z-index:10;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002}.annotation-tools-more>summary{display:flex;min-height:44px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:7px;cursor:pointer}.annotation-tools-more[open]>div{position:absolute;right:0;top:48px;width:260px;background:#fff;padding:10px;z-index:11;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #0002}}

.booking-slot-status{padding:12px;border-radius:8px;border:1px solid #b9d6c6;background:#edf8f1;color:#235f40}.booking-slot-status.unavailable{border-color:#e3bf91;background:#fff7e9;color:#75470f}[data-booking-availability]{padding:12px 0}[data-booking-availability] .actions{flex-wrap:wrap;gap:8px}[data-booking-time]{min-height:44px;min-width:68px}.availability-date-grid input:checked+span{background:#b52c7e;border-color:#b52c7e}

.page-heading .actions{flex-wrap:wrap;max-width:100%;justify-content:flex-end;min-width:0}

.review-state-panel{padding:16px;border:1px solid var(--line);border-radius:10px;background:#fcfafc;margin:14px 0}.review-state-panel p{margin-top:8px}.review-state-panel ul{padding-left:20px;margin:8px 0}.review-patient-cell>.btn{margin-top:8px}.review-role-summary{margin-bottom:12px;color:#6c6070;font-size:12px}.review-attention-cell small{display:block;max-width:250px;white-space:normal;margin-top:6px}.review-actions-cell .actions{flex-wrap:wrap}
@media(max-width:1050px){.approval-table{min-width:0;width:100%}.approval-table thead{display:none}.approval-table tbody{display:block}.approval-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:14px;gap:8px}.approval-table td{display:block;padding:8px;border:0;overflow-wrap:anywhere;min-width:0}.approval-table td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.approval-table .review-patient-cell,.approval-table .review-attention-cell,.approval-table .review-actions-cell{grid-column:1/-1}.review-attention-cell small{max-width:none}.approval-table td .btn{min-height:44px;white-space:normal}}

.review-preview .summary-copy small{display:block;margin-top:6px}
.portal-unified{max-width:1200px;margin:auto}.portal-unified #portal-preview-frame{width:100%;min-height:640px;border:0;display:block;background:#f8f7fa}.portal-unified .portal-demo{padding:14px 22px;flex-wrap:wrap}.portal-unified header{padding:18px 24px}@media(max-width:600px){.portal-unified header{padding:14px;gap:12px;flex-wrap:wrap}.portal-unified .portal-demo{padding:14px}.portal-unified .portal-demo select{max-width:100%;min-height:44px}}

/* Persistent errors and unavailable controls remain readable on touch screens. */
.action-error,.screen-error{margin:16px;padding:18px;border:1px solid #b8523d;border-radius:12px;background:#fff5ee;color:#682d24}.action-error p{margin:0 0 12px}.action-error:focus{outline:3px solid #b75991;outline-offset:2px}.screen-error .actions{flex-wrap:wrap}button:disabled,.btn:disabled{cursor:not-allowed;opacity:.55}.unavailable-note{display:block;font-size:12px;color:var(--muted)}

/* Shared appointment preparation and checkout. */
.checkout-stages{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.checkout-stages span{background:#f5eaf2;border:1px solid #dfcbdc;padding:10px 14px;border-radius:10px;font-weight:600}.checkout-page .card{margin-bottom:20px}.checkout-page table small{display:block;margin-top:6px}.checkout-page .selected-row{background:#fff2f9}.checkout-line{display:grid;grid-template-columns:minmax(200px,1fr) 130px auto;gap:12px;align-items:end;margin:12px 0}.checkout-line .field{margin:0}.checkout-save-bar{position:sticky;bottom:0;background:#fff;padding:16px 0 6px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;border-top:1px solid #e7dce6;margin-top:20px}.checkout-editor [hidden]{display:none!important}.checkout-editor [data-checkout-panel]{padding:16px 0}.checkout-editor #checkout-pay{padding:16px;background:#faf5f9;border-radius:12px;margin-top:16px}.checkout-editor .actions{margin:14px 0}.checkout-page .workspace-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.checkout-editor{scroll-margin-top:20px}.checkout-page .section-title p{line-height:1.7}
@media(max-width:700px){.checkout-line{grid-template-columns:1fr 110px}.checkout-line>button{grid-column:1/-1;justify-self:start}.checkout-save-bar{position:static}.checkout-save-bar>.btn{width:100%}.checkout-stages span{flex:1 1 40%}.checkout-page .page-heading .actions{width:100%;flex-wrap:wrap}.checkout-page{padding-bottom:100px}}

.checkout-totals{display:flex;gap:16px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #eadfe8;margin-bottom:16px}.checkout-totals span{display:flex;gap:8px;flex-direction:column;min-width:95px}.checkout-totals span:last-child{color:#a42b76;font-size:1.1em}

/* Checkout controls retain their own form state and fit touch-sized screens. */
.checkout-line .field{min-width:0}.checkout-line select,.checkout-line input{width:100%;min-width:0}.checkout-page [data-checkout-filter-status]{flex-basis:100%}
@media(max-width:700px){
 .checkout-page .checkout-invoice-table{width:100%;min-width:0}.checkout-invoice-table thead{display:none}.checkout-invoice-table tbody{display:block}.checkout-invoice-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.checkout-invoice-table td{display:block;padding:4px 0;border:0;min-width:0;overflow-wrap:anywhere}.checkout-invoice-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.checkout-invoice-table td:first-child,.checkout-invoice-table .checkout-open-cell,.checkout-invoice-table td[colspan]{grid-column:1/-1}.checkout-invoice-table .checkout-open-cell .btn{width:100%;min-height:44px}
 .checkout-line{grid-template-columns:minmax(0,1fr) 96px}.checkout-page .tabs{flex-wrap:wrap}.checkout-page .actions{flex-wrap:wrap}.checkout-page .btn,#checkout-new .btn{min-height:44px}.checkout-page input,.checkout-page select,#checkout-new input,#checkout-new select{font-size:16px;min-height:44px}.checkout-page input[type=checkbox],#checkout-new input[type=checkbox]{min-height:24px;width:24px;flex-shrink:0}.checkout-page .workspace-filters .field{flex:1 1 100%;min-width:0;width:100%}.checkout-page .workspace-filters input,.checkout-page .workspace-filters select{width:100%}
}

@media(max-width:700px){.checkout-page .checkout-items-table{width:100%;min-width:0}.checkout-items-table thead{display:none}.checkout-items-table tbody{display:block}.checkout-items-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-bottom:1px solid var(--line);padding:12px 0}.checkout-items-table td{display:block;padding:4px 0;border:0;min-width:0;overflow-wrap:anywhere}.checkout-items-table td:first-child{grid-column:1/-1;font-weight:600}.checkout-items-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--muted);margin-bottom:5px}}
@media(min-width:701px) and (max-width:1050px){
 .checkout-page .checkout-invoice-table{width:100%;min-width:0}.checkout-invoice-table thead{display:none}.checkout-invoice-table tbody{display:block}.checkout-invoice-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.checkout-invoice-table td{display:block;padding:4px 0;border:0;min-width:0;overflow-wrap:anywhere}.checkout-invoice-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.checkout-invoice-table td:first-child,.checkout-invoice-table .checkout-open-cell,.checkout-invoice-table td[colspan]{grid-column:1/-1}.checkout-invoice-table .checkout-open-cell .btn{width:100%}
 .checkout-page .btn,#checkout-new .btn{min-height:44px}.checkout-page input,.checkout-page select,#checkout-new input,#checkout-new select{font-size:16px;min-height:44px}.checkout-page .actions{flex-wrap:wrap}.checkout-page .checkout-save-bar{position:static}.checkout-page .workspace-filters .field{min-width:0;flex:1}.checkout-page .workspace-filters input,.checkout-page .workspace-filters select{width:100%}.checkout-page .checkout-items-table{min-width:0}.checkout-page .checkout-items-table td,.checkout-page .checkout-items-table th{padding:10px 6px;overflow-wrap:anywhere}
}

/* One focused preparation cart: no queue, repeated snapshots or tab switching. */
.prep-page{max-width:1400px;margin:auto}.prep-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.prep-heading .text-button{font-size:13px;margin-bottom:12px}.prep-heading h1{margin-bottom:7px}.prep-heading p{color:var(--muted)}.prep-save-status{font-size:12px;color:var(--green);white-space:nowrap}.prep-save-status[data-state=error]{color:#9b342f;white-space:normal;max-width:260px}.prep-save-status[data-state=pending],.prep-save-status[data-state=saving]{color:#97621f}.prep-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:24px}.prep-cart-card{min-width:0}.prep-summary{position:sticky;top:20px}.prep-context{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}.prep-context .field{min-width:0}.prep-context select{width:100%}.prep-appointment{margin-bottom:24px;color:var(--muted);font-size:13px}.prep-item.checkout-line{display:grid;grid-template-columns:minmax(0,1fr) 85px 85px auto;align-items:center;gap:12px;padding:18px 0;margin:0;border-bottom:1px solid var(--line)}.prep-item .prep-item-name{min-width:0;overflow-wrap:anywhere}.prep-item-name small{display:block;margin-top:6px;color:var(--muted)}.prep-item label{font-size:11px}.prep-item input{width:100%;min-width:0;min-height:44px;font-size:16px}.prep-line-total{text-align:right;white-space:nowrap}.prep-item .btn{padding:7px;font-size:11px}.prep-search{position:relative;margin:20px 0}.prep-search input{width:100%;min-height:44px}.prep-search [data-prep-results]{border:1px solid var(--line);border-radius:9px;background:white;max-height:300px;overflow:auto;margin-top:7px}.prep-match{width:100%;background:white;border:0;border-bottom:1px solid var(--line);padding:14px;text-align:left;display:flex;gap:14px;justify-content:space-between;color:var(--ink)}.prep-match:hover{background:var(--rose)}.prep-match span{color:var(--pink);white-space:nowrap}.prep-cart-card [name=promotionId]{min-height:44px;width:100%}.prep-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.prep-total strong{font-size:28px;letter-spacing:-1px}.prep-breakdown{margin:0}.prep-breakdown>div{display:flex;gap:14px;justify-content:space-between;padding:8px 0}.prep-breakdown dd{margin:0;font-weight:600;white-space:nowrap}.prep-breakdown dt{color:var(--muted)}.prep-breakdown .prep-due{border-top:1px solid var(--line);margin-top:12px;padding:16px 0;color:var(--pink)}.prep-breakdown .prep-due dt{color:inherit;font-weight:600}.prep-wallet{border-top:1px solid var(--line);padding-top:18px;margin-top:12px}.prep-wallet p{font-size:12px;margin-top:6px}.prep-wallet small{color:var(--muted);display:block;margin-top:8px}.prep-checkout-controls{margin-top:24px}.prep-primary-actions{display:flex;flex-direction:column;gap:10px}.prep-checkout-controls .btn{min-height:44px;width:100%;white-space:normal}.prep-checkout-controls #checkout-pay{padding:0;background:none}.prep-checkout-controls #checkout-pay input[type=number]{width:100%;min-height:44px;font-size:16px}.prep-more{margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}.prep-more summary{cursor:pointer;color:var(--muted)}.prep-more .actions{flex-wrap:wrap}.prep-read-items>div{display:flex;gap:16px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line)}.prep-read-items small{display:block;color:var(--muted);margin-top:6px}.prep-cart-card .form-error:empty{display:none}
@media(max-width:1100px){.prep-layout{grid-template-columns:minmax(0,1fr)}.prep-summary{position:static}.prep-primary-actions{flex-direction:row}.prep-primary-actions>.btn{flex:1}.prep-total{margin-bottom:12px}.prep-wallet{font-size:12px}.prep-item.checkout-line{grid-template-columns:minmax(0,1fr) 85px 80px auto}}
@media(max-width:600px){.prep-heading{gap:12px;align-items:flex-start}.prep-heading h1{font-size:24px}.prep-save-status{max-width:110px;white-space:normal;text-align:right}.prep-context{grid-template-columns:1fr}.prep-item.checkout-line{grid-template-columns:96px minmax(0,1fr) auto}.prep-item .prep-item-name{grid-column:1/-1}.prep-item>button{grid-column:auto;justify-self:end;min-height:44px}.prep-primary-actions{flex-direction:column}.prep-line-total{text-align:right}.prep-layout{gap:4px}.prep-page .card{padding:18px}.prep-more .btn{white-space:normal}.prep-search input,.prep-cart-card [name=promotionId]{font-size:16px}}

.prep-breakdown{display:block}.prep-breakdown>div{width:100%}

.prep-mobile-bar{display:none}@media(max-width:700px){.prep-page{padding-bottom:160px}.prep-mobile-bar{position:fixed;inset:auto 0 0;z-index:15;display:flex;align-items:center;gap:12px;background:#fff;border-top:1px solid var(--line);padding:12px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #3621370a}.prep-mobile-bar>div:first-child{flex:0 0 78px}.prep-mobile-bar b{font-size:19px;display:block}.prep-mobile-bar small{font-size:10px;display:block;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.prep-mobile-bar [data-prep-mobile-actions]{flex:1;min-width:0}.prep-mobile-bar .prep-primary-actions{display:flex;flex-direction:row;gap:7px}.prep-mobile-bar .btn{padding:10px 8px;font-size:11px;white-space:normal;flex:1;min-height:44px}.prep-page:has(.prep-mobile-bar) .prep-summary .prep-primary-actions{display:none}}
/* Keep the primary desktop actions within the first normal-height view. */
.prep-page{padding-top:22px}.prep-heading{margin-bottom:18px}.prep-heading .text-button{margin-bottom:8px}.prep-summary{padding:20px}.prep-total{margin-bottom:14px}.prep-breakdown>div{padding:6px 0}.prep-breakdown .prep-due{padding:12px 0;margin-top:8px}.prep-wallet{padding-top:12px;margin-top:8px}.prep-wallet p{margin-top:4px}.prep-checkout-controls{margin-top:16px}
@media(min-width:800px) and (max-width:1100px){.prep-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.prep-context{grid-template-columns:1fr}.prep-item.checkout-line{grid-template-columns:85px minmax(0,1fr) auto}.prep-item .prep-item-name{grid-column:1/-1}.prep-item>button{grid-column:auto;justify-self:end}.prep-primary-actions{flex-direction:column}.prep-page .card{padding:18px}.prep-summary{position:sticky;top:16px}}

/* Day-to-day care workspace. Administrative setup stays in Practice. */
.care-nav{display:grid;gap:4px}.practice-nav{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.practice-nav>summary{padding:10px 12px;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}.practice-nav nav{display:grid;gap:3px}.sidebar .nav-label{margin:24px 12px 10px}.preview-badge{display:inline-flex;align-items:center;border:1px solid #e6dce3;background:#faf7fa;color:#796879;padding:6px 10px;border-radius:20px;font-size:10px;white-space:nowrap}.save-strip{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:7px 30px;color:#718375;font-size:11px;min-height:28px}.save-strip .status-dot{width:6px;height:6px}.save-strip.needs-attention{color:#8f590e;background:#fff5e7;justify-content:center}.save-strip.needs-attention .status-dot{background:#b77820}.today-page{max-width:1500px;margin:auto}.today-page>.page-heading{margin-bottom:24px}.today-page h1{font-size:25px;letter-spacing:-.6px}.today-date-row{display:flex;align-items:center;gap:10px;margin:0 0 24px}.today-date-row .field{margin:0;max-width:200px}.today-date-row>.btn{align-self:flex-end}.today-date-row>.text-button{margin-left:auto}.today-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:0;margin:0 0 28px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent}.today-counts>div,.today-counts>button{display:flex;align-items:baseline;gap:10px;padding:7px 20px;border:0;border-right:1px solid var(--line);background:transparent;text-align:left;color:var(--ink);font:inherit}.today-counts>button{cursor:pointer}.today-counts>:first-child{padding-left:0}.today-counts>:last-child{border:0}.today-counts strong{font-size:27px;letter-spacing:-1px}.today-counts span{font-size:12px;color:var(--muted)}.today-counts>button:hover span{color:var(--accent,#b42a7f)}.today-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:24px;align-items:start}.today-side{display:grid;gap:20px}.today-side p{line-height:1.65;color:var(--muted);font-size:13px}.today-side .task-row{padding-left:0;padding-right:0}.today-list{padding:24px}.today-appointment{width:100%;display:grid;grid-template-columns:95px minmax(0,1fr) auto;gap:18px;text-align:left;border:0;border-top:1px solid var(--line);padding:21px 0;background:transparent;font:inherit;color:var(--ink);cursor:pointer}.today-appointment:hover{background:#fcf6fa}.today-time{font-size:18px;font-weight:650}.today-time small{font-size:10px;font-weight:400;color:var(--muted);display:block;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.today-person{display:flex;flex-direction:column;gap:6px;min-width:0}.today-person b{font-size:16px}.today-person>span{font-size:13px;line-height:1.5}.today-person small{font-size:11px;line-height:1.6;color:var(--muted)}.today-appointment-state{display:flex;align-items:flex-end;flex-direction:column;justify-content:space-between;gap:12px}.today-open{font-size:11px;color:#a82b72;font-weight:650}.today-upcoming{margin-top:20px}.today-upcoming>summary{cursor:pointer;padding:15px 0;font-size:14px;font-weight:650}.today-empty{padding:35px 12px;text-align:center;color:var(--muted)}.today-empty b{font-size:16px;color:var(--ink)}.today-empty p{font-size:13px;line-height:1.6}.today-page .eyebrow{letter-spacing:2px;font-size:10px}.today-side h2{font-size:18px}.today-page .section-title h2{font-size:19px}.today-appointment:focus-visible,.today-counts button:focus-visible,.practice-nav>summary:focus-visible{outline:2px solid #b92b80;outline-offset:3px;border-radius:5px}
@media(min-width:761px){.practice-nav:not([open])>nav{display:none}.sidebar{overflow-y:auto}.sidebar .practice-nav>summary{list-style:none}.sidebar .practice-nav>summary:after{content:'＋';float:right}.sidebar .practice-nav[open]>summary:after{content:'−'}}
@media(max-width:1100px){.today-layout{grid-template-columns:minmax(0,1fr)}.today-side{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.today-counts>div,.today-counts>button{flex-direction:column;gap:4px}.topbar .preview-badge{font-size:9px}}
@media(max-width:760px){.sidebar nav.care-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.practice-nav{margin-top:6px;padding-top:0;border-top:0}.practice-nav>summary{padding:10px 8px;font-size:12px}.practice-nav nav{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 10px}.topbar{min-height:54px;align-items:center}.topbar .top-actions{display:flex;width:auto;gap:5px}.topbar .top-actions>.avatar{display:none}.breadcrumb{font-size:10px}.save-strip{padding:5px 16px;font-size:10px}.today-page h1{font-size:23px}.today-page>.page-heading{align-items:flex-start;gap:15px;flex-direction:column}.today-page>.page-heading>.actions{width:100%;display:flex}.today-page>.page-heading>.actions>.btn{flex:1}.today-date-row{gap:8px;flex-wrap:wrap}.today-date-row .field{max-width:170px}.today-date-row>.text-button{font-size:11px}.today-counts{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 0;gap:6px}.today-counts>div,.today-counts>button,.today-counts>:first-child{padding:9px 12px;border:0}.today-counts strong{font-size:24px}.today-layout{gap:18px}.today-list{padding:18px 16px}.today-appointment{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:18px 0}.today-time{font-size:16px}.today-person b{font-size:15px}.today-appointment-state{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}.today-person>span{font-size:12px}.today-side{grid-template-columns:1fr}.today-list .section-title{gap:8px}.today-list .section-title>.btn{font-size:11px;padding:7px 10px}.preview-badge{max-width:190px;white-space:normal;line-height:1.4;padding:5px 8px}.today-page .section-title h2{font-size:17px}}

/* One home for each workflow; secondary configuration stays out of daily work. */
.business-groups{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;padding:6px;background:#f0ebf0;border-radius:12px}.business-groups>button{font:inherit;font-size:13px;font-weight:650;border:0;background:transparent;color:var(--muted);padding:12px 16px;border-radius:8px;cursor:pointer;min-height:44px}.business-groups>button[aria-current]{background:#fff;color:var(--ink);box-shadow:0 1px 5px #36213712}.business-tabs{margin-bottom:22px}.business-overview .section-title{margin-bottom:24px}.business-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.business-launch-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px;cursor:pointer;font:inherit;color:var(--ink);min-height:165px}.business-launch-card:hover{border-color:#c33583;background:#fffafd;box-shadow:0 4px 15px #a82b7209}.business-launch-card b{font-size:17px}.business-launch-card>span:not(.text-button){font-size:13px;color:var(--muted);line-height:1.6}.business-launch-card>.text-button{margin-top:auto;padding:0;font-size:12px}.business-launch-card:focus-visible,.business-groups button:focus-visible,summary:focus-visible{outline:2px solid #c33583;outline-offset:3px}.section-intro{color:var(--muted);max-width:760px;font-size:14px;line-height:1.6;margin:0 0 22px}.settings-navigation{gap:18px;align-content:start}.settings-nav-group{display:grid;gap:5px}.settings-nav-group>h2{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);margin:4px 10px 6px}.settings-nav-group>.btn,.nav-advanced>.btn{width:100%;text-align:left;justify-content:flex-start;min-height:44px}.nav-advanced{border-top:1px solid var(--line);padding-top:10px}.nav-advanced>summary{padding:12px 10px;cursor:pointer;color:var(--muted);font-size:12px;font-weight:600}.nav-advanced[open]>.btn{margin:4px 0}.condensed-panel{margin:16px 0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 18px}.condensed-panel>summary{font-size:13px;font-weight:650;cursor:pointer;padding:17px 0;color:var(--ink);min-height:48px}.condensed-panel[open]>summary{border-bottom:1px solid var(--line);margin-bottom:16px}.condensed-panel>.card{border:0;box-shadow:none;margin:0;padding:10px 0}.visit-checklist{margin:12px 22px}.visit-checklist .journey-strip{padding:8px 0;margin:0}.patient-layout{display:block}.patient-workspace{min-width:0;width:100%;max-width:1500px;margin:auto}.patient-back{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 28px 0}.patient-switcher{position:relative;z-index:16}.patient-switcher>summary{font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;min-height:44px}.patient-switcher>div{position:absolute;right:0;top:50px;width:330px;max-width:calc(100vw - 32px);padding:12px;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #34213720;background:#fff;max-height:65vh;overflow:auto}.patient-switcher .patient-list{max-height:45vh;overflow:auto}.patient-heading{padding-top:20px}.patient-tabs,.detail-tabs{flex-wrap:wrap;overflow:visible;align-items:center;gap:3px}.patient-tabs>button,.detail-tabs>button{min-height:44px}.patient-more{position:relative;margin-left:4px}.patient-more>summary{padding:13px 12px;color:var(--muted);font-size:12px;cursor:pointer;list-style:none;min-height:44px}.patient-more>summary:after{content:'⌄';margin-left:8px}.patient-more>div{position:absolute;right:0;top:45px;z-index:20;min-width:190px;background:#fff;border:1px solid var(--line);padding:7px;border-radius:10px;box-shadow:0 8px 25px #34213715;display:grid}.patient-more>div>button{background:#fff;border:0;font:inherit;color:var(--ink);padding:13px;text-align:left;cursor:pointer;border-radius:7px;min-height:44px}.patient-more>div>button:hover{background:#fcf1f8}.patient-more>summary.active{color:#c33583}.people-navigation{margin:0 0 24px}.task-navigation{margin:0 28px 20px}.worklist-filters+.card{margin-top:20px}.page-pad>.task-navigation{margin:0 0 24px}.inventory-product-setup{margin:0 0 24px}.patient-workspace>.card,.patient-workspace>.condensed-panel{margin-left:24px;margin-right:24px}.patient-workspace .wallet-content .inline-notice{font-size:12px}.demo-mode-badge{font-size:11px}
@media(max-width:1000px){.business-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.settings-nav-group{align-content:start}.nav-advanced{grid-column:1/-1}.business-groups{gap:3px}.business-groups>button{padding:11px 12px;font-size:12px}}
@media(max-width:700px){.business-launch-grid{grid-template-columns:1fr;gap:10px}.business-launch-card{min-height:0;padding:19px;gap:8px}.business-launch-card>.text-button{margin-top:5px}.business-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:5px}.business-groups>button{font-size:12px;padding:11px 7px;text-align:left}.business-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:4px}.business-tabs>button{font-size:11px;padding:10px;min-height:44px}.settings-navigation{grid-template-columns:1fr 1fr;gap:16px}.settings-nav-group>.btn{font-size:11px;padding:11px 8px;white-space:normal}.patient-back{padding:16px 16px 0}.patient-heading{padding:18px 16px}.patient-heading h1{font-size:27px}.patient-stats{margin:0 16px 16px}.patient-tabs{padding:0 12px;gap:0}.patient-tabs>button{font-size:11px;padding:12px 9px}.patient-more>summary{font-size:11px;padding:13px 8px}.detail-tabs{padding:0 8px}.detail-tabs>button{font-size:11px;padding:11px 9px}.visit-checklist{margin:10px 12px;padding:0 12px}.patient-workspace>.card,.patient-workspace>.condensed-panel{margin-left:12px;margin-right:12px}.condensed-panel{padding:0 12px}.task-navigation{margin:0 16px 18px}.business-overview .section-title{align-items:flex-start;gap:12px;flex-wrap:wrap}.business-launch-card .text-button{align-self:flex-end}.patient-switcher>div{width:290px}}
.patient-tabs>button,.detail-tabs>button{padding:12px 14px;margin:2px 0;font-size:12px}.patient-tabs,.detail-tabs{gap:6px}.patient-header-actions{display:flex;gap:8px;align-items:center}.compact-section-select{display:none}
@media(max-width:760px){.sidebar .brand{padding:12px 16px;margin:0}.sidebar nav.care-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:0 5px}.care-nav>.nav-item{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:56px;padding:8px 2px;font-size:10px;position:relative}.care-nav>.nav-item .nav-count{position:absolute;top:3px;right:3px;font-size:9px;padding:2px 5px;min-width:14px}.practice-nav>summary{padding:7px 12px;min-height:32px}.practice-nav{margin-top:2px}.topbar{flex-direction:row;min-height:44px;padding:9px 16px;gap:7px}.topbar .breadcrumb{font-size:9px}.topbar .top-actions{margin:0}.patient-heading{gap:10px;flex-wrap:wrap;padding:15px 16px}.patient-heading-person{min-width:0;flex:1}.patient-heading .profile-portrait{width:48px;height:58px}.patient-heading h1{font-size:24px;margin:0 0 5px}.patient-heading .identity-line{font-size:10px}.patient-header-actions .btn{font-size:10px;padding:9px;min-height:40px}.patient-header-actions .icon-button{width:34px;min-height:40px}.patient-header-actions{gap:3px}.patient-back{padding-top:12px}.patient-stats{padding:10px 0;margin-bottom:10px}.patient-stats>div{padding:7px 12px;min-height:0}.patient-stats>div:nth-child(n+3){display:none}.patient-stats span{font-size:10px}.patient-stats b{font-size:12px;margin:4px 0}.patient-stats .text-button{padding:3px;font-size:10px}.patient-tabs{gap:0;padding:0 8px}.patient-tabs>button{padding:12px 9px;font-size:11px}.patient-more{margin:0}.patient-more>summary{padding:13px 7px;font-size:11px}.detail-tabs{gap:0}.detail-tabs>button{padding:11px 9px;font-size:11px}}
@media(max-width:700px){.settings-navigation>.settings-nav-group,.settings-navigation>.nav-advanced{display:none}.settings-navigation{display:block;margin:0 0 18px;padding:0;position:static}.compact-section-select{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);margin:0 0 18px}.compact-section-select>select{font:inherit;font-size:16px;color:var(--ink);border:1px solid #d8c7d7;background:#fff;border-radius:9px;padding:12px;min-height:48px;width:100%}.settings-navigation .compact-section-select{margin-bottom:0}.business-groups,.business-workspace>.business-tabs{display:none}.business-workspace .page-heading{margin-bottom:18px}.settings-workspace .page-heading{margin-bottom:18px}.settings-layout{display:block}.patient-header-actions{width:100%;justify-content:flex-end;margin-top:-4px}}

.settings-workspace .actions{flex-wrap:wrap}.reports-workspace>.tabs{flex-wrap:wrap;overflow:visible;gap:4px}.reports-workspace>.tabs>button{min-height:44px;padding:11px 13px}
@media(max-width:700px){.patient-stats{display:none}.patient-header-actions{margin-top:-8px}.reports-workspace>.tabs>button{font-size:11px;padding:10px}.settings-workspace .actions>.btn{white-space:normal}}

.service-choice-list{display:grid;gap:8px}.service-choice{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;width:100%;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;min-height:48px}.service-choice:hover{border-color:#bd2c7e;background:#fff8fc}.service-choice>span:first-child{display:grid;gap:6px}.service-choice small{font-size:12px;color:var(--muted);line-height:1.5}.service-choice:disabled{opacity:.5;cursor:not-allowed}.service-choice[hidden]{display:none}.service-choice:focus-visible{outline:2px solid var(--pink);outline-offset:2px}

.service-connection-summary{display:block;background:#faf4f9;border:1px solid #eadce7;border-radius:10px;padding:18px;margin-bottom:22px}.service-connection-summary>b{display:block;color:var(--ink);font-size:14px}.service-connection-summary>p{margin:10px 0;color:var(--muted);font-size:13px;line-height:1.6}.service-connection-summary>.btn{margin-top:4px}

.resource-sync-panel .actions{display:flex;gap:8px;flex-wrap:wrap}.resource-capabilities,.resource-pair,.resource-job{padding:16px;border:1px solid var(--line);border-radius:9px;margin:12px 0;overflow-wrap:anywhere}.resource-sync-panel p{margin:8px 0;line-height:1.6}.resource-sync-panel h3{margin-top:24px}.resource-capabilities{background:#faf4f9}

.location-resource-page{display:grid;gap:18px}.location-resource-page>.btn{justify-self:start}.location-resource-page .page-heading{align-items:start}.location-resource-page h2{margin:0 0 8px}.location-resource-page h3{margin:0}.location-resource-count{font-weight:600}.location-resource-table small{display:block;margin-top:5px;color:var(--muted)}.location-resource-table td.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.location-resource-page .section-title{gap:12px;flex-wrap:wrap}
@media(max-width:600px){.location-resource-page .page-heading{display:grid;gap:12px}.location-resource-table thead{display:none}.location-resource-table,.location-resource-table tbody,.location-resource-table tr,.location-resource-table td{display:block;width:auto;min-width:0}.location-resource-table tr{padding:12px 0;border-bottom:1px solid var(--line)}.location-resource-table td{border:0;padding:5px 0;white-space:normal}.location-resource-table td[data-label]::before{content:attr(data-label) ': ';font-weight:600;color:var(--muted)}.location-resource-table td.actions{display:flex;justify-content:flex-start;padding-top:10px}.location-resource-page .table-scroll{overflow:visible}}
.patient-forms-menu{position:relative}.patient-forms-menu summary{list-style:none}.patient-forms-popover{position:absolute;right:0;top:100%;width:min(430px,calc(100vw - 40px));max-height:60vh;overflow:auto;z-index:25;background:white;padding:18px;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #33203824}.patient-forms-popover .document-row{width:100%;text-align:left}.patient-forms-popover small{display:block}.consent-visit-actions{flex-wrap:wrap;margin:18px 0}.document-year-filter{max-width:220px}
@media(max-width:600px){.patient-forms-popover{position:fixed;left:16px;right:16px;top:16px;width:auto;max-height:calc(100dvh - 32px);box-sizing:border-box}}

.annotation-template-picker{position:relative}.annotation-template-picker summary{cursor:pointer;padding:10px 14px;border:1px solid #b891a9;border-radius:8px;min-height:44px}.annotation-template-options{position:absolute;z-index:20;top:100%;right:0;width:240px;padding:8px;background:#fff;border:1px solid #d8c7d4;box-shadow:0 6px 24px #35223a22;display:grid;gap:6px;border-radius:8px}.annotation-template-options button{min-height:44px;text-align:left}.annotation-readonly{line-height:1.5}

.annotation-starting-choices{flex-shrink:0;position:relative;z-index:25}.annotation-starting-choices .annotation-photo-row{display:flex!important}.annotation-starting-choices .annotation-capture-actions{display:flex!important;gap:8px;align-items:center}.annotation-workspace[data-panel=details] .annotation-starting-choices{display:none}.annotation-template-picker{flex-shrink:0}.annotation-template-picker summary{color:var(--pink,#b82f7a);font-size:12px}.annotation-template-options{max-height:45vh;overflow:auto}

.ready-attribution{font-size:12px;line-height:1.5;margin:8px 0;color:#287961}.checkout-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0 18px}.checkout-invoice-table input[type=checkbox]{width:22px;height:22px;accent-color:var(--pink,#b82f7a)}.checkout-selected-invoice{padding:18px 0;border-bottom:1px solid var(--line)}.checkout-selected-invoice:first-child{padding-top:0}.checkout-group-line{display:flex;justify-content:space-between;gap:12px}.checkout-group-page aside .btn{width:100%;margin-top:10px;min-height:44px}.checkout-group-return{padding-bottom:0}.purchase-history details article{border-bottom:1px solid var(--line);padding:10px 0}.purchase-history td{vertical-align:top}.prep-price-reason{margin-top:14px}.prep-item:has([name=unitPrice]){grid-template-columns:minmax(120px,1fr) 88px 110px 100px auto}.prep-item input[name=unitPrice]{width:100%}@media(max-width:700px){.prep-item:has([name=unitPrice]){grid-template-columns:1fr 1fr}.prep-item:has([name=unitPrice]) .prep-item-name{grid-column:1/-1}.checkout-selection-bar .btn{width:100%}.checkout-group-page .prep-layout{display:block}.checkout-group-page aside{margin-top:16px}.purchase-history .section-title{align-items:start;flex-direction:column}.purchase-history table{min-width:650px}}

.service-invoice-row{display:grid;grid-template-columns:minmax(160px,1fr) 100px auto auto auto;align-items:end;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.service-invoice-row select{width:100%;max-width:100%}.member-price-audit details{margin:12px 0}.member-price-audit td{vertical-align:middle}.prep-suggestions{padding:12px 0}.service-invoice-row .btn{min-height:44px}.service-invoice-row .check-label{padding:8px 0}@media(max-width:900px){.service-invoice-row{grid-template-columns:1fr 1fr}.service-invoice-row>.field:first-child{grid-column:1/-1}.service-invoice-row .check-label{grid-column:1/-1}.member-price-audit table{min-width:600px}}

/* Service dialogs are narrow even on a large screen. */
.service-invoice-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0}.service-invoice-row>.field:first-child{grid-column:1/-1}.service-invoice-row .field{min-width:0}.service-invoice-row .check-label{align-self:center}.service-invoice-row .btn{white-space:normal;max-width:100%}

.membership-benefit-center>details,.membership-packages>details{border-top:1px solid var(--line);padding:6px 0}.membership-benefit-center>details>summary,.membership-packages>details>summary{min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;line-height:1.4}.membership-benefit-center .section-title,.membership-packages .section-title{flex-wrap:wrap;align-items:flex-start}.membership-benefit-center .section-title>div,.membership-packages .section-title>div{flex:1;min-width:240px}.package-item-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:10px;align-items:end;border-bottom:1px solid var(--line);padding:12px 0}.package-item-row .field{min-width:0}.package-item-row select{max-width:100%}.package-item-row .btn{min-height:44px}@media(max-width:600px){.package-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.package-item-row>.field:first-child{grid-column:1/-1}.membership-benefit-center .section-title>div,.membership-packages .section-title>div{min-width:0;flex-basis:100%}}
/* Typed entry and native pickers share one bounded field on touch devices. */
.form-grid,.form-grid>*{min-width:0}.field input,.field select,.field textarea{max-width:100%;box-sizing:border-box;min-width:0}
.typed-datetime{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;position:relative;min-width:0;max-width:100%}.typed-datetime>input[type=text]{width:100%;min-width:0}.typed-datetime>.native-datetime{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:.01;pointer-events:none;padding:0;border:0}.typed-datetime button{min-height:44px;padding:8px}.tablet-shortcuts{display:flex;gap:6px}.top-actions{flex-wrap:wrap}.conversation-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border:1px solid var(--border,#e7dce5);border-radius:10px;margin:10px 0}.conversation-message.outbound{background:#faf0f7}.conversation-message small{display:block;color:#776a7e;margin-bottom:8px}
@media(max-width:700px){.topbar{height:auto;min-height:64px;gap:8px;flex-wrap:wrap;padding:10px}.top-actions{width:100%;justify-content:flex-end}.top-actions .preview-badge,.top-actions .avatar{display:none}.typed-datetime button{font-size:12px}.form-grid{grid-template-columns:minmax(0,1fr)}dialog input,dialog select{font-size:16px}}
.today-calendar-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:0 0 16px;margin:0 0 8px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.today-calendar-status>.notice{flex-basis:100%;margin:0}.today-calendar-status>.btn{font-size:12px}.today-appointment a.today-open{text-decoration:none}

.reply-composer{border:1px solid #ded2df;border-radius:12px;padding:18px;margin-top:20px;background:#fff;max-width:100%;}.reply-mode-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.reply-composer textarea{min-height:120px;resize:vertical;width:100%;box-sizing:border-box}.conversation-message.internal-note{background:#fff6dc;border-left:3px solid #bc8e28}.reply-composer [hidden]{display:none!important}

.dot-phrase-tools{position:relative;margin:8px 0 14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.dot-phrase-tools>[role=status]{flex-basis:100%;margin:0}.dot-phrase-menu{flex-basis:100%;border:1px solid #c7acc5;border-radius:10px;background:white;box-shadow:0 4px 14px #30203316;max-height:280px;overflow-y:auto;padding:6px}.dot-phrase-menu[hidden]{display:none}.dot-phrase-menu button{display:grid;text-align:left;width:100%;background:white;border:0;border-radius:6px;padding:10px;cursor:pointer;gap:3px}.dot-phrase-menu button[aria-selected=true],.dot-phrase-menu button:hover{background:#f5e8f1}.dot-phrase-menu small{white-space:pre-wrap;color:#6a5c70}.dot-phrase-menu a{display:block;padding:8px}

/* Patient conversation workspace */
.conversation-panel{padding:0;overflow:hidden}.conversation-panel-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}.conversation-panel-header h2{margin:0 0 5px}.conversation-panel-header p{font-size:12px;color:#756c7c}.conversation-panel-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.conversation-panel-actions [data-conversation-link]:empty{display:none}.conversation-panel-actions .btn{display:inline-flex;gap:7px;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;margin:0}.conversation-panel [data-conversation-results]{padding:22px 24px;background:#fcfbfd}.conversation-thread-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.conversation-history{min-height:100px;max-height:540px;overflow:auto;padding:0 2px 8px}.conversation-history .conversation-message{margin:0 0 14px;background:#fff;border-radius:12px;padding:16px 18px}.conversation-history .conversation-message.internal-note{background:#fff8e8;border-color:#f0e4c7;border-left-color:#bc8e28}.conversation-history .conversation-message.outbound{background:#faf0f7}.conversation-empty{padding:30px 12px;text-align:center;color:#756c7c}.conversation-panel .reply-composer{margin-top:16px;padding:0;overflow:hidden;box-shadow:0 2px 8px #28263004}.reply-composer-header{padding:14px 18px;border-bottom:1px solid var(--line)}.reply-composer-header .reply-mode-tabs{display:inline-flex;gap:4px;margin:0;padding:4px;background:var(--bg);border-radius:9px}.reply-composer-header .reply-mode-tabs .btn{margin:0;border-color:transparent;min-height:36px;padding:8px 14px}.reply-composer-header .reply-mode-tabs .secondary{background:transparent;color:#6d6273}.reply-composer [data-reply-fields],.reply-composer [data-reply-review]:not(:empty){padding:18px}.reply-composer [data-reply-help]{font-size:12px;color:#756c7c;margin:12px 0}.reply-composer-footer{display:flex;justify-content:flex-end;margin-top:14px}.reply-composer [data-reply-status]:empty{display:none}.reply-composer [data-reply-status]:not(:empty){padding:0 18px 16px}.reply-composer textarea{min-height:110px}.reply-composer [data-reply-channel-field]{max-width:480px}
@media(max-width:700px){.conversation-panel-header{align-items:flex-start;flex-direction:column;gap:14px;padding:18px 16px}.conversation-panel-actions{width:100%;flex-wrap:wrap}.conversation-panel [data-conversation-results]{padding:16px 12px}.conversation-history{max-height:420px}.reply-composer-header{padding:12px}.reply-composer [data-reply-fields],.reply-composer [data-reply-review]:not(:empty){padding:14px}.reply-composer-footer .btn{width:100%;min-height:44px}.reply-composer select,.reply-composer textarea,.reply-composer input{font-size:16px}.conversation-panel-actions .btn{min-height:44px}.conversation-history .conversation-message{padding:14px}}

.today-day-picker{display:flex;align-items:flex-end;gap:8px;min-width:0}.today-day-arrows{display:flex;gap:4px}.today-day-arrows .btn{width:42px;height:42px;min-height:42px;padding:0;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;margin:0}.today-date-row>.today-day-picker .field{margin:0;min-width:0}@media(max-width:760px){.today-day-arrows .btn{width:44px;height:44px;min-height:44px}.today-day-picker{gap:6px}.today-date-row>.today-day-picker .field{max-width:160px}}

/* Touch workspace: bounded controls, persistent context and compact preparation. */
:root{--mobile-nav-height:96px;--patient-context-height:150px}
.patient-context{background:#fff}
.prep-remove-icon{display:none}
.journey-dots{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.journey-dot{display:inline-grid;place-items:center;width:26px;height:26px;flex:none;border:1.5px solid #cfc6d0;border-radius:50%;font-size:11px;font-weight:650;color:#7c707f;background:#fff}
.journey-dot.done{background:var(--green);border-color:var(--green);color:#fff}
.journey-dot.current{border:2px solid var(--pink);color:var(--pink);box-shadow:0 0 0 3px #bf307c14}
.visit-checklist>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;list-style:none}
.visit-checklist>summary>span:first-child:after{content:'⌄';margin-left:8px}
.visit-checklist[open]>summary>span:first-child:after{content:'⌃'}
.prep-member-status{font-size:12px;color:var(--green);padding:12px 0}
.timeline-toolbar{flex-wrap:wrap;justify-content:flex-start}
.timeline-toolbar h2{flex:1 1 100%}
.schedule-page>.page-heading>.actions{flex-wrap:wrap}
input[type=date],input[type=time],input[type=datetime-local]{display:block;min-width:0;max-width:100%;width:100%;min-inline-size:0}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left}
@media(max-width:1100px){
 .prep-summary{top:calc(var(--mobile-nav-height) + 12px)}
}
@media(max-width:760px){
 html{scroll-padding-top:calc(var(--mobile-nav-height) + var(--patient-context-height) + 16px)}
 .sidebar{position:sticky;top:0;inset-inline:0;z-index:60;padding:env(safe-area-inset-top) 6px 0;background:#fff;box-shadow:0 2px 8px #2826300a;border-bottom:1px solid var(--line);overflow:visible}
 .sidebar>.brand{display:none}
 .sidebar nav.care-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:0}
 .care-nav>.nav-item{min-width:0;padding:10px 3px 8px;min-height:56px;font-size:10px;overflow-wrap:anywhere}
 .care-nav>.nav-item .nav-count{right:8px;top:1px;min-width:17px;max-width:32px;padding:2px 4px;text-align:center}
 .practice-nav{margin:0;padding:0;border:0}
 .practice-nav>summary{min-height:30px;padding:6px 10px;font-size:10px;list-style:none;text-align:right}
 .practice-nav>summary:after{content:' ⌄'}
 .practice-nav[open]>nav{display:grid;position:absolute;right:8px;top:100%;width:min(300px,calc(100vw - 16px));padding:12px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px #28263020;border-radius:10px;grid-template-columns:1fr;z-index:70}
 .practice-nav[open]>nav .nav-item{width:100%;min-width:0;display:flex}
 .main,.main>#content,.page-pad,.patient-layout,.patient-workspace,.card{min-width:0;max-width:100%}
 .topbar{min-height:44px;padding:6px 12px}
 .topbar>.breadcrumb{display:none}
 .topbar .top-actions{display:flex;width:100%;justify-content:flex-end;gap:6px}
 .top-actions .btn{min-height:36px;padding:7px 9px;font-size:11px;white-space:nowrap}
 .save-strip{padding:7px 14px}
 .patient-context{position:sticky;top:var(--mobile-nav-height);z-index:40;box-shadow:0 3px 9px #2826300c}
 .patient-context .patient-heading{display:flex;flex-wrap:wrap;gap:5px;padding:10px 12px 6px}
 .patient-heading-person{flex:1 1 auto;min-width:0}
 .patient-heading .profile-portrait,.patient-heading .eyebrow,.patient-heading .identity-line{display:none}
 .patient-heading h1{font-size:19px;line-height:1.4;letter-spacing:-.4px;margin:0;overflow-wrap:anywhere}
 .patient-header-actions{width:auto;margin:0;gap:4px;flex-wrap:wrap}
 .patient-header-actions .btn{min-height:36px;padding:7px;font-size:10px}
 .patient-header-actions .icon-button{width:32px;min-height:36px}
 .patient-context .care-alert{margin:0;padding:5px 12px;font-size:11px;line-height:1.4;max-height:48px;overflow:auto}
 .patient-context .patient-stats{display:none}
 .patient-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 6px;align-items:stretch;overflow:visible}
 .patient-tabs>button,.patient-tabs>.patient-more>summary{min-width:0;min-height:40px;width:100%;font-size:10px;padding:10px 2px;margin:0;text-align:center;white-space:normal}
 .patient-tabs>.patient-more{min-width:0;margin:0}
 .patient-more>div{position:fixed;top:calc(var(--mobile-nav-height) + var(--patient-context-height) + 4px);left:12px;right:12px;min-width:0;width:auto;max-height:40dvh;overflow-y:auto;z-index:80}
 .patient-tabs .patient-more>div{top:calc(var(--mobile-nav-height) + var(--patient-context-height))}
 .detail-tabs{display:flex;flex-wrap:wrap;gap:2px;padding:4px 8px}
 .detail-tabs>button,.detail-tabs>.patient-more>summary{min-height:40px;font-size:11px;padding:10px 8px;white-space:normal;margin:0}
 .patient-switcher .patient-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;max-height:45dvh;margin:8px 0 0;padding:0}
 .patient-switcher .patient-card{width:100%;min-width:0;flex-shrink:0;padding:12px 8px;margin:0}
 .patient-switcher .patient-card strong{font-size:14px}
 .patient-switcher .patient-card em{font-size:11px}
 .patient-switcher>div{max-height:65dvh;overscroll-behavior:contain}
 .today-date-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
 .today-date-row>.today-day-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;min-width:0;width:100%}
 .today-date-row>.today-day-picker .field{width:100%;max-width:none;min-width:0;margin:0}
 .today-date-row>.text-button{grid-column:1/-1;justify-self:start}
 .today-day-arrows{gap:4px}
 .today-day-arrows .btn{width:40px;min-width:40px;height:44px;min-height:44px}
 .today-date-row>[data-action=today-reset]{min-height:44px;padding:10px}
 .today-date-row input[type=date]{padding:10px 7px;font-size:16px;height:44px;line-height:22px}
 .schedule-page>.page-heading{display:block}
 .schedule-page>.page-heading>.actions{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding:4px 1px 10px;margin-top:14px;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .schedule-page>.page-heading>.actions>.btn{flex:0 0 auto;width:auto;white-space:nowrap;min-height:44px;font-size:11px;padding:10px}
 .schedule-page>.card>.section-title{flex-wrap:wrap;align-items:start;gap:12px}
 .schedule-page>.card>.section-title>.field{width:100%;max-width:220px;min-width:0;margin:0}
 .schedule-page>.card>.section-title input[type=date]{height:46px;font-size:16px}
 .timeline-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .timeline-toolbar h2{grid-column:1/-1}
 .timeline-toolbar>.btn{width:100%;min-width:0;white-space:normal;min-height:44px;padding:10px 8px;font-size:11px}
 .visit-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 .visit-actions>.btn{white-space:normal;max-width:100%;min-height:42px;padding:9px;font-size:11px;flex:0 1 auto}
 .visit-detail-header{padding:18px 16px}
 .visit-detail-header .flex-between{flex-wrap:wrap;gap:8px}
 .visit-detail-header .eyebrow{line-height:1.6}
 .visit-detail-header p,.ar-encounter-head time,.ar-encounter-head p,.visit-row{line-height:1.65;overflow-wrap:anywhere}
 .today-appointment{padding:16px 12px;gap:12px}
 .today-time{padding:2px 8px 2px 0;line-height:1.6;min-width:0}
 .today-time small,.today-person small{line-height:1.6;margin-top:6px}
 .today-person{min-width:0}
 .today-person b,.today-person span,.today-person small{overflow-wrap:anywhere}
 .task-navigation{position:sticky;top:var(--mobile-nav-height);z-index:35;background:#fff;display:flex;gap:8px;padding:6px 8px;border-radius:9px}
 .task-navigation>button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;flex:1;min-height:44px;padding:10px 12px;font-size:12px;white-space:normal}
 .task-navigation .nav-count{margin-left:0;padding:3px 7px;flex:none}
 .visit-checklist{padding:0 10px;margin:12px}
 .visit-checklist>summary{padding:12px 0;gap:10px}
 .journey-dots{gap:6px}
 .journey-dot{width:24px;height:24px;font-size:10px}
 .visit-checklist>summary>span:first-child{font-size:11px}
 dialog:not(.annotation-dialog):not(.signing-dialog){max-height:calc(100dvh - 24px);max-width:calc(100vw - 16px);overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-y:auto;touch-action:pan-y}
 dialog .modal-body{min-width:0;overflow-wrap:anywhere}
 dialog .modal-header{position:sticky;top:0;background:#fff;z-index:3}
 dialog .modal-footer{gap:8px;flex-wrap:wrap}
 .prep-search input,.prep-item input{font-size:16px;scroll-margin-top:calc(var(--mobile-nav-height) + 16px)}
 .prep-search{overflow-anchor:none}
 .prep-search [data-prep-results]{max-height:240px;overflow-y:auto;overscroll-behavior-y:contain}
 .prep-page .card{padding:14px}
 .prep-item.checkout-line,.prep-item.checkout-line:has([name=unitPrice]){display:grid;grid-template-columns:minmax(0,1fr) 52px 65px 65px 30px;gap:5px;padding:12px 0;align-items:center}
 .prep-item.checkout-line:not(:has([name=unitPrice])){grid-template-columns:minmax(0,1fr) 56px 65px 30px}
 .prep-item.checkout-line .prep-item-name{grid-column:auto;min-width:0}
 .prep-item-name b{font-size:11px;line-height:1.4;display:block}
 .prep-item-name small{font-size:9px;line-height:1.4;margin-top:3px}
 .prep-item .field{min-width:0;margin:0;gap:4px;font-size:9px}
 .prep-item input{min-height:40px;height:40px;padding:8px 4px;width:100%;max-width:100%;font-size:16px}
 .prep-item .prep-line-total{font-size:11px;text-align:right;white-space:nowrap}
 .prep-item.checkout-line>button{width:30px;min-height:44px;padding:0;grid-column:auto;justify-self:end}
 .prep-remove-label{display:none}.prep-remove-icon{display:inline;font-size:22px}
}
@media(max-width:360px){.prep-item.checkout-line,.prep-item.checkout-line:has([name=unitPrice]){grid-template-columns:minmax(0,1fr) 45px 56px 55px 26px;gap:4px}.prep-item.checkout-line>button{width:26px}.prep-item-name b{font-size:10px}.journey-dots{gap:4px}.journey-dot{width:22px;height:22px}}
@media(min-width:761px) and (max-width:1100px){
 .patient-context{position:sticky;top:0;z-index:20;box-shadow:0 3px 9px #2826300c}
 .prep-layout{grid-template-columns:minmax(0,1fr)}
 .prep-summary{position:static;top:auto}
 .prep-item.checkout-line,.prep-item.checkout-line:has([name=unitPrice]){grid-template-columns:minmax(0,1fr) 64px 80px 85px auto;gap:8px}
 .prep-item.checkout-line:not(:has([name=unitPrice])){grid-template-columns:minmax(0,1fr) 64px 85px auto}
 .prep-item.checkout-line .prep-item-name{grid-column:auto}
 .prep-item .field{min-width:0}
 .prep-item input{width:100%;min-width:0}
}
.prep-search [data-prep-results]{position:absolute;top:100%;left:0;right:0;z-index:25;box-shadow:0 8px 24px #2826301a;max-height:min(300px,40dvh)}
.prep-search [data-prep-results].prep-results-above{top:auto;bottom:calc(100% + 6px)}
.prep-match>span:first-child{white-space:normal;min-width:0;overflow-wrap:anywhere;flex:1}
.prep-match>span:last-child{flex:none;font-size:11px}
.prep-match small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
@media(max-width:760px){.prep-match{gap:10px;padding:12px;font-size:12px}.prep-match>span:last-child{max-width:115px;white-space:normal;text-align:right}}
@media(max-width:1100px){.prep-item input[type=number]{appearance:textfield;-moz-appearance:textfield}.prep-item input[type=number]::-webkit-inner-spin-button,.prep-item input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}
@media(max-width:760px){.prep-item-name b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:normal}}
@media(max-width:360px){.prep-item.checkout-line,.prep-item.checkout-line:has([name=unitPrice]){grid-template-columns:54px 74px minmax(0,1fr) 30px;gap:7px}.prep-item.checkout-line .prep-item-name{grid-column:1/-1}.prep-item-name b{font-size:12px}.prep-item-name small{font-size:10px}.prep-item.checkout-line>button{width:30px}}

/* Desktop menus pin below the compact app bar; large page titles scroll away. */
:root{--desktop-topbar-height:72px;--desktop-menu-height:0px}
.patient-context-marker{display:block;height:0;pointer-events:none}
.patient-scroll-reserve{height:var(--patient-collapse-reserve,0px);pointer-events:none}
@media(min-width:761px){
 .patient-layout,.patient-workspace{overflow-anchor:none}
 html{scroll-padding-top:calc(var(--desktop-topbar-height) + var(--desktop-menu-height) + 20px)}
 .topbar{position:sticky;top:0;z-index:50;min-height:64px;height:auto;padding-top:12px;padding-bottom:12px;box-shadow:0 2px 8px #28263008}
 .main{overflow:visible}
 .desktop-page-toolbar,.business-nav-dock,.today-date-row,.task-navigation,.reports-workspace>.tabs{position:sticky;top:var(--desktop-topbar-height);z-index:40;background:#fff;box-shadow:0 3px 10px #2826300a;border-bottom:1px solid var(--line)}
 .desktop-page-toolbar{padding:12px 16px;margin:0 0 20px;border-radius:10px}
 .desktop-page-toolbar>.actions{display:flex;flex-wrap:wrap;gap:8px;margin:0;align-items:center}
 .desktop-page-toolbar .btn{min-height:40px}
 .schedule-page>.page-heading,.checkout-page:not(.prep-page)>.page-heading{margin-bottom:16px}
 .business-nav-dock{padding:8px 10px;margin-bottom:22px;border-radius:10px}
 .business-nav-dock .business-groups{margin-bottom:4px;flex-wrap:nowrap;overflow-x:auto}
 .business-nav-dock .business-groups>button{flex:none;padding:10px 14px;min-height:40px}
 .business-nav-dock .business-tabs{margin:0;flex-wrap:nowrap;overflow-x:auto;gap:6px}
 .business-nav-dock .business-tabs>button{flex:none;padding:10px 12px;min-height:40px}
 .today-date-row{padding:10px 14px;border-radius:10px;margin-bottom:24px}
 .today-date-row .field{max-width:200px}
 .today-date-row .field input{min-height:42px}
 .task-navigation{padding:4px 10px;border-radius:10px}
 .task-navigation>button{padding:12px 14px;min-height:44px}
 .reports-workspace>.tabs{padding:4px 8px;flex-wrap:nowrap;overflow-x:auto;border-radius:10px}
 .reports-workspace>.tabs>button{flex:none}
 .settings-navigation{position:sticky;top:calc(var(--desktop-topbar-height) + 12px);max-height:calc(100dvh - var(--desktop-topbar-height) - 120px);overflow-y:auto;overscroll-behavior-y:contain;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px;scrollbar-gutter:stable}
 .patient-context{position:sticky;top:var(--desktop-topbar-height);z-index:40;box-shadow:0 3px 10px #2826300c;border-bottom:1px solid var(--line)}
 .patient-context.is-scrolled .patient-heading{padding:12px 24px;gap:12px}
 .patient-context.is-scrolled .patient-heading h1{font-size:21px;margin:0}
 .patient-context.is-scrolled .profile-portrait{width:34px;height:42px}
 .patient-context.is-scrolled .patient-heading .eyebrow,.patient-context.is-scrolled .patient-heading .identity-line,.patient-context.is-scrolled .patient-stats{display:none}
 .patient-context.is-scrolled .patient-header-actions .btn{padding:8px 10px;min-height:36px}
 .patient-context.is-scrolled .patient-tabs>button,.patient-context.is-scrolled .patient-more>summary{min-height:40px;padding-top:10px;padding-bottom:10px;margin-top:0;margin-bottom:0}
 .patient-context .patient-more>div,.patient-context .patient-forms-popover{max-height:calc(100dvh - var(--desktop-topbar-height) - var(--patient-context-height) - 24px);overflow-y:auto}
 .ar-encounter.selected>.encounter-detail{overflow:visible;background:#fff}
 .ar-encounter.selected .detail-tabs{position:sticky;top:calc(var(--desktop-topbar-height) + var(--patient-context-height));z-index:30;background:#fff;box-shadow:0 3px 8px #28263008;flex-wrap:wrap}
 .prep-summary{top:calc(var(--desktop-topbar-height) + 16px)}
}
@media(min-width:761px) and (max-width:1000px){
 .settings-navigation{display:block}
 .settings-navigation>.compact-section-select{display:flex;flex-direction:column;gap:7px;margin:0;font-size:12px}
 .settings-navigation>.compact-section-select>select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit}
 .settings-navigation>.settings-nav-group,.settings-navigation>.nav-advanced{display:none}
}
@media(max-width:760px){
 .desktop-page-toolbar,.business-nav-dock{display:contents}
 .schedule-page>.desktop-page-toolbar>.actions{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding:4px 1px 10px;margin:14px 0;max-width:100%}
 .schedule-page>.desktop-page-toolbar>.actions>.btn{flex:none;width:auto;white-space:nowrap;min-height:44px;font-size:11px;padding:10px}
 .business-nav-dock>.business-groups,.business-nav-dock>.business-tabs{display:none}
}

/* AR-style source editing and formatted clinical-note preview. */
.formatted-note{white-space:normal;overflow-wrap:anywhere;line-height:1.55;color:inherit}
.formatted-note p{margin:0 0 1em}.formatted-note p:last-child{margin-bottom:0}
.formatted-note h1,.formatted-note h2,.formatted-note h3,.formatted-note h4,.formatted-note h5,.formatted-note h6{color:inherit;letter-spacing:normal;line-height:1.3;margin:1em 0 .5em}
.formatted-note h1{font-size:1.65em}.formatted-note h2{font-size:1.4em}.formatted-note h3{font-size:1.2em}.formatted-note h4,.formatted-note h5,.formatted-note h6{font-size:1em}
.formatted-note>:first-child{margin-top:0}.formatted-note ul{list-style:disc;padding-left:1.5em;margin:.5em 0 1em}.formatted-note li{padding-left:.15em;margin:.2em 0}
.dot-phrase-tools [data-note-formatted]{flex-basis:100%;width:100%;padding:18px;border:1px solid var(--line,#e5dce5);border-radius:10px;background:#fff}
.dot-phrase-tools [hidden],textarea[hidden]{display:none!important}

/* Patient-bound lab review: readable source, questions and two editable drafts. */
.lab-review {margin:20px;min-width:0}.lab-review h2{margin:0}.lab-demo-notice{font-size:13px;color:#786980;background:#f8f4f8;padding:12px 16px;border-radius:8px}.lab-review-picker{max-width:620px}.lab-steps{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.lab-steps span{padding:9px 13px;background:#f4f0f5;border-radius:8px;font-size:13px}.lab-steps [aria-current]{background:#8d225b;color:white;font-weight:600}.lab-upload{max-width:700px}.lab-upload form{display:grid;gap:18px;margin-top:24px}.lab-question-grid,.lab-drafts-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.lab-question-grid{margin-top:24px}.lab-review .field{min-width:0}.lab-review textarea,.lab-review input,.lab-review select{width:100%;box-sizing:border-box}.lab-review input[type=checkbox]{width:20px;flex:none}.lab-review .check-label{align-items:flex-start;gap:10px;line-height:1.5}.lab-verify{padding:16px;background:#f6f2f6;margin-top:16px}.lab-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.lab-source{padding:16px 0;border-top:1px solid #ece5ed}.lab-source pre{white-space:pre-wrap;overflow-wrap:anywhere}.lab-review caption{text-align:left;padding:12px 0;font-weight:600}.lab-review td{padding:12px;vertical-align:top}.lab-flag{font-size:12px}.lab-flag.attention{color:#815c18}.lab-context-warnings{padding:14px 20px;background:#fff6de;border-radius:10px;margin-bottom:20px}.lab-confirm{padding:18px;border:1px solid #ddd1df;border-radius:10px;display:grid;gap:14px}.lab-approved{padding:18px;background:#eaf6f0;border-radius:10px;margin-bottom:20px;color:#215e48}.lab-feedback:empty{display:none}.lab-feedback{padding:12px;color:#215e48}.lab-feedback.error{background:#fff0f1;color:#9d2638}.lab-drafts-grid textarea{font-size:14px;line-height:1.6;min-height:480px;resize:vertical}.lab-review table{width:100%;min-width:560px}.lab-review .table-scroll{max-width:100%;overflow-x:auto}@media(max-width:700px){.lab-review{margin:12px;padding:16px}.lab-question-grid,.lab-drafts-grid{grid-template-columns:minmax(0,1fr)}.lab-review header.section-title{align-items:flex-start;gap:12px}.lab-review .lab-steps span{padding:8px;font-size:12px}.lab-form-actions .btn{flex:1 1 150px}.lab-drafts-grid textarea{min-height:360px}}
.lab-review{scroll-margin-top:190px}.lab-confirm .check-label{padding:4px 0;margin:0}.lab-feedback{outline:none}@media(max-width:700px){.lab-review{scroll-margin-top:210px}}
.lab-ai-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.lab-source-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.lab-original{min-width:0}.lab-original img{display:block;width:100%;height:auto;margin-top:12px;border:1px solid #e7e1e7}.lab-original iframe{display:block;width:100%;height:600px;border:1px solid #e7e1e7;margin-top:12px}.lab-source-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.lab-review fieldset[data-lab-source-row]{min-width:0;border:1px solid #e5dce6;border-radius:10px;padding:16px;margin:18px 0}.lab-source-review-grid form>.check-label{margin:22px 0}.lab-source-review-grid form{min-width:0}@media(max-width:1000px){.lab-source-review-grid{grid-template-columns:minmax(0,1fr)}.lab-original iframe{height:420px}}@media(max-width:500px){.lab-source-fields{grid-template-columns:minmax(0,1fr)}}

/* Source-based lab review stays compact until a topic needs attention. */
.lab-rulebook,.lab-rule-suggestions,.lab-rule-summary{border:1px solid var(--line,#e6dce5);border-radius:12px;padding:14px;margin:16px 0;min-width:0}
.lab-rulebook summary,.lab-rule-suggestions summary,.lab-rule-summary summary{cursor:pointer;font-weight:650;padding:4px 0}
.lab-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;margin:14px 0}
.lab-rule-card{border:1px solid var(--line,#e6dce5);border-radius:10px;padding:14px;min-width:0;margin:0}
.lab-rule-card h4,.lab-rule-card legend{font-weight:650;margin:0 0 8px}
.lab-rule-card p{line-height:1.5}.lab-rule-card .field{margin-top:12px}.lab-rule-card a{overflow-wrap:anywhere}
.lab-rule-status{display:inline-block;border-radius:6px;background:#fff4dd;color:#765119;padding:4px 8px;font-size:12px}
.lab-rule-status.excluded{background:#f8e7eb;color:#92294d}

/* Shared source-linked clinical history on visits and lab review. */
.clinical-context{padding:16px;margin:12px 0;min-width:0}.clinical-context>summary{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;cursor:pointer;list-style:revert}.clinical-context>summary span{font-size:12px;color:var(--muted,#776780)}.clinical-context section{border-top:1px solid #ede7ef;padding:8px 0}.clinical-context p,.clinical-context-note{white-space:pre-wrap;overflow-wrap:anywhere}.clinical-context-answer small{display:block;margin-top:4px;color:#776780;font-size:12px}.clinical-context>details{border-top:1px solid #ede7ef;padding:12px 0}.clinical-context details>summary{cursor:pointer}.clinical-context-note{max-height:260px;overflow:auto;margin:8px 0 12px}.clinical-context article{padding:8px 0;border-bottom:1px solid #ede7ef}.context-feedback{color:#923950}

.structured-history-dialog{width:min(900px,calc(100vw - 24px))}#structured-history-form details{border-bottom:1px solid var(--line);padding-bottom:10px}#structured-history-form .history-entry{padding:12px 0;gap:12px}#structured-history-form .history-entry .btn{align-self:end;min-height:44px;max-height:48px}#structured-history-form [data-history-add]{margin-bottom:12px}
.source-operational-reference table{min-width:0;width:100%;table-layout:fixed}
.source-operational-reference th:first-child{width:40%}
@media(max-width:600px){.source-operational-reference th,.source-operational-reference td{padding:8px 5px;font-size:12px;overflow-wrap:anywhere}}

/* Connection review actions wrap within the available desktop/tablet card. */
.connection-heading{flex-wrap:wrap;gap:10px}.connection-heading>.btn{max-width:100%;white-space:normal}

.integration-health{border:1px solid var(--line,#e6e0e9);border-radius:12px;padding:18px;margin:18px 0;background:var(--surface,#fff)}
.integration-health .section-title{flex-wrap:wrap;gap:10px}.integration-health-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.integration-health-facts dt{font-size:.8rem;color:var(--muted,#786c82)}.integration-health-facts dd{margin:4px 0;overflow-wrap:anywhere}.integration-health .actions{flex-wrap:wrap;gap:8px}@media(max-width:620px){.integration-health-facts{grid-template-columns:1fr;gap:10px}.integration-health{padding:14px}.integration-health .actions .btn{max-width:100%;white-space:normal}}

/* Keep shared dialog titles and dismiss controls visible at every viewport width. */
#dialog > .modal-header{position:sticky;top:0;z-index:10;background:#fff;flex-shrink:0}
#dialog > .modal-header > div{min-width:0}
#dialog > .modal-header .icon-button{flex-shrink:0}
.service-recommendations .setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0}
.service-recommendations .setting-row>div{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.service-recommendations .setting-row .btn{flex-shrink:0}

.service-recommendations{padding:16px 24px;border-top:1px solid var(--border,#e8e3eb)}
.service-recommendations .setting-row p{margin:4px 0}
@media(max-width:600px){.service-recommendations{padding:16px}.service-recommendations .setting-row .btn{width:100%}}

.contact-note-history{margin-top:12px;min-width:0}.contact-note-history>summary{cursor:pointer;min-height:44px;padding:12px 0}.contact-note-revision{border-top:1px solid var(--line);padding:14px 0;min-width:0}.contact-note-revision h4{margin:0 0 8px}.contact-note-revision .summary-copy,.contact-note-revision .small{overflow-wrap:anywhere;white-space:pre-wrap}

.invoice-logo{display:block;width:235px;max-width:100%;height:auto}.invoice-brand-caption{display:block;font-size:11px;letter-spacing:.14em;color:#776b77;margin-top:7px}

.clinical-note-heading{justify-content:flex-start;align-items:center;gap:12px;flex-wrap:wrap}.clinical-note-heading h3{margin:0}.clinical-note-heading .btn{flex:0 0 auto}

/* Staff booking keeps identity entry and scheduling in one responsive dialog. */
.staff-patient-entry{border:1px solid #e0d6e1;border-radius:12px;padding:16px;margin:0 0 20px;min-width:0}.staff-patient-entry legend{font-weight:700;padding:0 6px}.staff-patient-results{display:grid;gap:8px;max-height:190px;overflow-y:auto;margin:12px 0}.staff-patient-match{display:grid;gap:4px;text-align:left;background:white;border:1px solid #dfd5df;border-radius:8px;padding:12px;font:inherit;color:inherit;cursor:pointer}.staff-patient-match small{color:#786b7c}.staff-patient-match span{font-size:12px;color:#96306f}.staff-patient-entry .actions{display:flex;gap:8px;flex-wrap:wrap}.staff-patient-entry input{min-width:0;width:100%;box-sizing:border-box}.staff-patient-entry input[type=checkbox]{width:20px;flex:0 0 20px}.staff-patient-entry .check-label{display:flex;gap:8px;align-items:flex-start}.staff-booking-date-tools{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.staff-booking-date-tools .btn{min-height:44px}.staff-booking-dates{min-width:0}.staff-booking-dates .booking-date-picker{position:static;width:100%;box-sizing:border-box}.staff-booking-dates .booking-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.staff-booking-dates button{min-width:0}.staff-booking-dates .date-picker-heading{display:flex;gap:8px;align-items:center}.staff-booking-dates h3{flex:1;margin:10px 0}.staff-booking-dates .booking-date-grid button{min-height:40px;border:1px solid #dacbda;border-radius:6px;background:#fff}.staff-booking-dates .booking-date-grid button:not(:disabled){background:#f9eaf3;color:#8e2366;border-color:#b85891}.staff-booking-dates .booking-date-grid button:disabled{color:#888;background:#f4f4f4}.staff-booking-dates .date-weekday{text-align:center;font-size:11px}.booking-occupied-times{display:flex;flex-wrap:wrap;gap:8px}.booking-occupied-times button{opacity:.65}@media(max-width:600px){.staff-patient-entry{padding:12px}.staff-patient-entry .form-grid{grid-template-columns:minmax(0,1fr)}.staff-patient-match{width:100%;box-sizing:border-box}.staff-booking-date-tools>.btn{flex:1}.staff-booking-dates .booking-date-grid button{padding:4px;font-size:12px}}
.staff-booking-dates .booking-date-grid button small{display:block;font-size:8px;line-height:1.1;white-space:normal;overflow-wrap:anywhere;margin-top:3px}.staff-booking-dates .booking-date-grid button{min-height:48px}
.staff-booking-form [data-ghl-booking] .actions,.staff-booking-form [data-booking-availability] .actions{display:flex;flex-wrap:wrap;gap:8px}.staff-booking-form [data-ghl-booking] button{max-width:100%;white-space:normal}.staff-booking-form .typed-datetime:has(input[type=date])>button{display:none}.staff-booking-dates .booking-date-grid button{padding:3px}

/* Booking dialog: the header/close and footer stay outside the scrolling content. */
#dialog.staff-booking-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;width:min(720px,calc(100% - 24px));max-width:calc(100% - 24px);height:min(920px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);min-width:0;padding:0;inset:0;margin:auto;overflow:hidden}
#dialog.staff-booking-dialog>.modal-header{position:relative;top:auto;flex:0 0 auto;min-width:0;width:100%;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}
#dialog.staff-booking-dialog>.modal-header h2{overflow-wrap:anywhere}
#dialog.staff-booking-dialog>.modal-header>.icon-button{flex:0 0 40px;width:40px;height:40px}
#dialog.staff-booking-dialog>#modal-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
#dialog.staff-booking-dialog>#modal-form>.modal-body,#dialog.staff-booking-dialog>.modal-body{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
#dialog.staff-booking-dialog .modal-footer{position:relative;bottom:auto;flex:0 0 auto;width:100%;gap:10px;display:flex;flex-wrap:wrap;background:white;border-top:1px solid var(--line);padding:16px 24px}
#dialog.staff-booking-dialog .field,#dialog.staff-booking-dialog fieldset{min-width:0;max-width:100%}
#dialog.staff-booking-dialog select,#dialog.staff-booking-dialog input:not([type=checkbox]):not(.native-datetime){max-width:100%;min-width:0}
#dialog.staff-booking-dialog .form-grid{min-width:0}
@media(max-width:600px){#dialog.staff-booking-dialog[open]{width:calc(100% - 16px);max-width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}#dialog.staff-booking-dialog>.modal-header{padding:16px}#dialog.staff-booking-dialog .modal-body{padding:16px}#dialog.staff-booking-dialog .modal-footer{padding:12px 16px}#dialog.staff-booking-dialog .modal-footer>.btn{flex:1;min-width:0;white-space:normal}}

/* Catalog & Services: only these browsing controls stay with their results. */
#catalog-filters.business-browser-controls,#service-filters.business-browser-controls{display:block;position:sticky;top:calc(var(--desktop-topbar-height) + var(--desktop-menu-height) + 8px);z-index:30;background:#fff;padding:12px;margin:16px 0 10px;border:1px solid var(--line);box-shadow:0 3px 10px #2826300a;min-width:0}
.browser-primary-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px}.browser-other-filters{margin-top:6px}.browser-other-filters>summary{cursor:pointer;padding:8px 0;min-height:32px;font-size:12px;font-weight:600}.browser-secondary-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:8px 0;max-height:28dvh;overflow:auto}.business-browser-controls .field{min-width:0}.business-browser-controls input,.business-browser-controls select{min-width:0;max-width:100%}.business-browser-controls~.filter-results{position:static}.catalog-service-results td{overflow-wrap:anywhere}
@media(max-width:760px){#catalog-filters.business-browser-controls,#service-filters.business-browser-controls{top:var(--mobile-nav-height);padding:10px;margin-top:12px}.browser-primary-filters{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px}.browser-secondary-filters{grid-template-columns:minmax(0,1fr);max-height:25dvh}.business-browser-controls .field{font-size:11px}.business-browser-controls .browser-other-filters>summary{min-height:32px}.catalog-service-results{overflow:visible}.catalog-service-results .business-table,.catalog-service-results tbody,.catalog-service-results tr,.catalog-service-results td{display:block;min-width:0;width:100%}.catalog-service-results thead{display:none}.catalog-service-results tr{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}.catalog-service-results td{padding:6px 0;border:0}.catalog-service-results td:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.catalog-service-results .btn{min-height:40px}.business-browser-controls input,.business-browser-controls select{font-size:16px!important}}
@media(max-height:550px){.browser-other-filters[open] .browser-secondary-filters{max-height:20dvh}}

/* Visit source sections expose an obvious control without changing retained records. */
.clinical-context>summary,.service-recommendations>summary{cursor:pointer;min-height:48px;list-style:revert;padding:12px 0;gap:12px}.clinical-context>summary:hover strong,.service-recommendations>summary:hover strong{text-decoration:underline}.clinical-context>summary:focus-visible,.service-recommendations>summary:focus-visible{outline:3px solid #d488b1;outline-offset:3px}.disclosure-hint,.service-recommendations>summary>span{font-size:12px;font-weight:400;color:var(--muted)}.clinical-source-details{margin:6px 0 14px}.clinical-source-details>summary{cursor:pointer;min-height:36px;padding:8px 0;font-size:11px;color:var(--muted)}.clinical-source-details p,.clinical-source-details small{overflow-wrap:anywhere}.service-recommendations[open]>summary{margin-bottom:8px}.service-recommendations>summary>span{margin-left:10px}@media(max-width:600px){.clinical-context>summary{flex-wrap:wrap}.service-recommendations>summary>span{display:block;margin-left:0;margin-top:4px}}

.compact-chart-review{border:1px solid var(--line);border-radius:10px;margin:8px 0;min-width:0}.compact-chart-review>summary{cursor:pointer;padding:14px;min-height:48px}.compact-chart-review>summary>span{display:block;margin:5px 0 0 18px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.compact-chart-review>.review-preview{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px}.compact-chart-reviews{min-width:0}

/* Clinic calendar shares appointment actions and keeps phone navigation vertical. */
.calendar-toolbar{position:sticky;top:0;z-index:3;background:var(--surface,#fff)}
.calendar-provider-choices{display:flex;flex-wrap:wrap;gap:12px}.calendar-provider-choices label{display:flex;align-items:center;gap:8px}
.clinic-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;min-width:0}.clinic-calendar-grid.day{grid-template-columns:minmax(0,1fr)}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-column:1/-1;text-align:center;font-size:12px;color:var(--muted,#665c69)}
.calendar-day{min-width:0;min-height:120px;border:1px solid var(--border,#e2dce4);border-radius:10px;padding:8px}.calendar-day.selected{border-color:var(--accent,#ac286a)}
.calendar-day-heading{font-weight:700;background:none;border:0;padding:5px}.calendar-event{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;max-width:100%;padding:9px;margin:6px 0;background:#f6edf3;border:1px solid #e6d5e0;border-radius:8px;overflow-wrap:anywhere;font-size:12px}.calendar-event span,.calendar-event small{display:block;white-space:normal}.calendar-time-off{padding:8px;background:#f0f0f2;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.calendar-time-off small{display:block}
@media(max-width:900px){.clinic-calendar-grid.week{grid-template-columns:1fr}.clinic-calendar-grid.month{grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-weekdays,.calendar-empty-days{display:none}.calendar-toolbar{position:static}}
@media(max-width:520px){.clinic-calendar-grid.month{grid-template-columns:1fr}.calendar-day{min-height:70px}.calendar-page{min-width:0}.calendar-toolbar .form-grid{grid-template-columns:1fr}.calendar-provider-choices{display:grid;grid-template-columns:1fr}}

.calendar-toolbar{padding:16px}.calendar-toolbar>.form-grid{grid-template-columns:minmax(110px,.7fr) minmax(150px,1fr) minmax(200px,1.8fr);gap:12px;margin-top:12px}.calendar-toolbar .field{margin:0}.calendar-provider-choices{margin:12px 0 0;border:0;padding:0}.calendar-provider-choices legend{font-size:12px;margin-bottom:6px}.calendar-provider-choices .check-label{font-size:13px}.calendar-provider-choices input{width:auto}
@media(max-width:650px){.calendar-toolbar>.form-grid{grid-template-columns:1fr}.calendar-provider-choices{display:flex}.calendar-provider-choices label{flex:1;min-width:130px}}

.calendar-day-count{display:none}@media(max-width:520px){.clinic-calendar-grid.month{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.month .calendar-weekdays{display:grid;font-size:10px}.month .calendar-empty-days:not([hidden]){display:block}.month .calendar-day{padding:3px;min-height:68px}.month .calendar-day-heading{display:block;width:100%;padding:4px 0;font-size:12px;min-height:44px}.month .calendar-day-count{display:block;font-size:9px;line-height:1.3;overflow-wrap:anywhere}.month .calendar-event,.month .calendar-time-off,.month .calendar-day>.muted{display:none}}

/* Keep invoice edits secondary to the actual purchase history. */
.prep-invoice-history{margin-top:24px;padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}.prep-invoice-history summary{cursor:pointer;font-size:.85rem;font-weight:500}.prep-invoice-history p{margin:10px 0;overflow-wrap:anywhere}

/* Availability editing keeps the calendars and close control inside the viewport. */
dialog.availability-dialog{width:min(1120px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.availability-dialog .modal-body{min-width:0}.availability-dialog .availability-months{grid-template-columns:repeat(2,minmax(0,1fr))}.availability-dialog .availability-date-grid{min-width:0}.availability-dialog .availability-date-grid label{min-width:0}
@media(max-width:620px){.availability-dialog .availability-months{grid-template-columns:minmax(0,1fr)}.availability-dialog .form-grid{grid-template-columns:minmax(0,1fr)}}

.staff-shortcuts{display:flex;align-items:center;gap:8px}.quick-links-menu{position:relative}.quick-links-menu>summary{cursor:pointer;list-style:none;border:1px solid var(--border,#ddd);border-radius:9px;padding:10px 12px;white-space:nowrap}.quick-links-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:80;display:grid;gap:10px;width:min(290px,calc(100vw - 32px));padding:16px;border:1px solid #e5dfe7;border-radius:12px;background:#fff;box-shadow:0 8px 28px #28202c22}.quick-links-popover .btn{text-align:left;white-space:normal}.quick-link-missing{display:grid;gap:2px;color:#635b66}.quick-link-missing small,.quick-links-popover>small{font-size:12px;color:#776e7c}.topbar:has(.staff-shortcuts){z-index:90}
@media(max-width:760px){.top-actions{flex-wrap:wrap;justify-content:flex-end}.staff-shortcuts{gap:6px}.staff-shortcuts>.btn,.quick-links-menu>summary{font-size:12px;padding:8px}.quick-links-popover{position:fixed;right:12px;top:calc(var(--mobile-nav-height) + 90px);max-height:calc(100dvh - var(--mobile-nav-height) - 110px);overflow-y:auto}.topbar .breadcrumb{min-width:0;overflow-wrap:anywhere}}

.note-task-panel{margin:20px 0;padding:16px;border:1px solid var(--line,#e5dfe7);border-radius:12px;min-width:0}.note-task-panel fieldset{margin:14px 0;padding:14px;min-width:0;border:1px solid #e5dfe7;border-radius:10px}.note-task-panel legend{font-weight:600;overflow-wrap:anywhere;max-width:100%}.note-task-panel input,.note-task-panel select{max-width:100%;min-width:0}.note-task-panel .btn{white-space:normal}

/* Unsaved-edit decisions replace the close control, where the user is looking. */
#dialog > .modal-header:has(> .discard-notice){display:block;padding:0;border-bottom:2px solid #9f2166}
#dialog > .modal-header:has(> .discard-notice) > :not(.discard-notice){display:none}
#dialog > .modal-header > .discard-notice{position:relative;inset:auto;width:100%;padding:20px 24px;background:#fff;color:#282630;border:0;box-shadow:none;z-index:auto}
#dialog > .modal-header > .discard-notice > b{font-size:18px;line-height:1.3;display:block}
#dialog > .modal-header > .discard-notice p{font-size:13px;color:#49414f;margin:8px 0 16px}
#dialog > .modal-header > .discard-notice > div{display:flex;gap:10px;flex-wrap:wrap}
#dialog > .modal-header > .discard-notice .btn{min-height:44px;font-size:13px;padding:10px 16px;white-space:normal}
#dialog > .modal-header > .discard-notice .btn.secondary{color:#282630;border-color:#6f6376;background:#fff}
#dialog > .modal-header > .discard-notice .btn.primary{color:#fff;border-color:#9f2166;background:#9f2166}
@media(max-width:560px){#dialog > .modal-header > .discard-notice{padding:16px}#dialog > .modal-header > .discard-notice .btn{flex:1 1 120px}}

.staff-access-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.staff-access-row>div:first-child{min-width:0;flex:1}.staff-access-row strong,.staff-access-row small,.staff-access-status{display:block;overflow-wrap:anywhere}.staff-access-row small{margin-top:5px;color:var(--muted)}.staff-access-status{font-size:13px;margin-top:8px}.staff-access-status.is-ready{color:#276749;font-weight:650}.staff-access-row .actions{flex-shrink:0}@media(max-width:650px){.staff-access-row{flex-direction:column;align-items:stretch}.staff-access-row .actions{display:flex;flex-wrap:wrap}.staff-access-row .actions .btn{flex:1;min-width:0}}

.sidebar .profile>span:last-child{min-width:0;flex:1}.sidebar .profile b{display:block;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}.sidebar .profile small{white-space:normal}.topbar .top-actions{gap:8px;flex-wrap:wrap}.topbar .staff-shortcuts{gap:8px;min-width:0}