@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--purple:#6b4ce6;--purple-dark:#5033c8;--purple-soft:#f0ecfd;--ink:#27223c;--muted:#89849a;--line:#eeecf4;--green:#269b7a;--green-soft:#e8f6ef;--amber:#bc8630;--amber-soft:#fff4df;--bg:#f8f9fc;--font:'DM Sans',Arial,sans-serif;--heading:'Manrope',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:var(--font);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #b8a8ff;outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;display:block;flex-shrink:0}button{border:0;background:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;padding:32px 20px 16px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;margin:0 7px 31px;font-family:var(--heading);font-size:18px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}.brand-light{font-weight:500}.brand-symbol{background:var(--purple);color:#fff;width:35px;height:38px;display:grid;place-items:center;font-size:28px;border-radius:11px;font-family:Arial;box-shadow:0 5px 12px #6b4ce620}.brand small{display:block;font-size:8px;letter-spacing:1.6px;font-family:var(--font);font-weight:600;color:#a29bae;margin-top:6px}.clinic-picker{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px 10px;margin-bottom:29px}.clinic-avatar,.profile-avatar{width:34px;height:34px;border-radius:10px;background:#f0ebff;color:var(--purple);display:grid;place-items:center;font-weight:700;flex-shrink:0}.clinic-picker strong{font-size:12px;font-weight:650;display:block;max-width:126px;overflow:hidden;text-overflow:ellipsis}.clinic-picker small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.chevron{margin-left:auto;color:var(--muted)}.nav-label{font-size:9px;letter-spacing:1.6px;color:#aaa5b5;font-weight:650;margin:0 13px 12px}nav{display:grid;gap:6px}.nav-item,.settings-nav{display:flex;align-items:center;gap:12px;width:100%;padding:13px;border-radius:9px;color:#827b91;font-size:12px;font-weight:500;text-align:left}.nav-item svg,.settings-nav svg{width:18px;height:18px}.nav-item.active{background:var(--purple-soft);color:var(--purple);font-weight:650}.nav-item:hover,.settings-nav:hover{background:#f7f5fc}.nav-count{font-size:10px;padding:2px 6px;border-radius:5px;background:#f3f0fa;margin-left:auto;color:#9990af}.sidebar-bottom{margin-top:auto;padding-top:30px}.copy-card{padding:17px 15px;background:linear-gradient(135deg,#f6f3ff,#faf9fe);border:1px solid #eee8fd;border-radius:12px;margin-bottom:18px}.copy-icon svg{width:22px;height:22px;color:var(--purple);margin-bottom:10px}.copy-card strong{font-size:12px}.copy-card p{font-size:11px;line-height:1.6;color:#9389a7;margin:7px 0 13px}.text-button{font-size:11px;font-weight:650;color:var(--purple);padding:0}.text-button span{margin-left:6px}.byline{font-size:9px;color:#b3adbf;padding:15px 12px 0}.app-shell{margin-left:242px;min-height:100vh}.topbar{height:81px;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:21px;align-items:center}.breadcrumb{font-size:11px;color:#a39bab;white-space:nowrap}.breadcrumb span{margin:0 10px;color:#d2ccdc}.breadcrumb strong{font-weight:500;color:#756c86}.global-search{margin-left:auto;display:flex;align-items:center;gap:9px;width:262px;padding:9px 11px;border:1px solid #f1eff6;border-radius:8px;background:#fbfbfe;color:#aaa2b9}.global-search svg{width:15px;height:15px}.global-search input{width:100%;font-size:10px;border:0;outline:0;background:none;color:var(--ink);min-width:0}.global-search input::placeholder{color:#9584a4}kbd{font-family:inherit;font-size:12px}.demo-tag{font-size:10px;background:#f3f1fb;color:#8d80af;padding:7px 9px;border-radius:6px;display:flex;align-items:center;gap:6px;white-space:nowrap}.demo-tag span{width:5px;height:5px;background:#ae99ed;border-radius:50%}.profile-avatar{width:32px;height:32px;font-size:12px}.mobile-menu{display:none}main{padding:32px 38px 28px;max-width:1640px;margin:0 auto;min-height:calc(100vh - 145px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:600;color:#91819e;margin:0 0 7px;text-transform:uppercase}h1{font-family:var(--heading);font-size:26px;font-weight:750;letter-spacing:-1px;margin:0 0 8px}h2{font-size:14px;font-weight:650;letter-spacing:-.2px;margin:0}h3{font-family:var(--heading);font-size:15px;margin:0}.subtitle{color:var(--muted);font-size:11px;line-height:1.7;margin:0}.heading-actions{display:flex;gap:10px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:10px 15px;border-radius:8px;font-size:11px;font-weight:600;white-space:nowrap;transition:background .2s,transform .2s}.button svg{width:15px;height:15px}.button:hover{transform:translateY(-1px)}.primary{background:var(--purple);color:#fff;box-shadow:0 3px 7px #6b4ce618}.primary:hover{background:var(--purple-dark)}.secondary{background:#fff;border:1px solid #e9e5f1;color:#80758f}.danger{background:#fff0f1;color:#b64c5c}.month-input{border:1px solid #e9e5f1;background:#fff;padding:9px 12px;border-radius:8px;font-size:11px;color:#7c718c;max-width:175px;min-height:38px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card{padding:20px;border:1px solid var(--line);background:#fff;border-radius:12px;position:relative;overflow:hidden}.stat-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.stat-head span:first-child{font-size:10px;color:#81768f;font-weight:500}.stat-icon{width:30px;height:30px;border-radius:8px;background:#f3efff;color:var(--purple);display:grid;place-items:center}.stat-icon svg{width:16px;height:16px}.stat-value{font-family:var(--heading);font-weight:750;font-size:25px;letter-spacing:-1px;white-space:nowrap}.stat-value small{font-size:16px;font-weight:550}.stat-foot{font-size:9px;color:#8a789a;line-height:1.5;margin-top:11px;display:flex;gap:4px;align-items:center}.stat-foot .green{color:var(--green);font-weight:600}.stat-card:nth-child(2) .stat-icon{background:var(--green-soft);color:var(--green)}.stat-card:nth-child(3) .stat-icon{background:var(--amber-soft);color:var(--amber)}.stat-card:nth-child(4) .stat-icon{background:#edf3ff;color:#6893d7}.split-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:21px;margin-bottom:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-header{padding:21px 21px 0;display:flex;justify-content:space-between;gap:14px;align-items:center}.panel-subtitle{font-size:10px;color:#8d7d9d;margin:6px 0 0;line-height:1.6}.chart-legend{display:flex;align-items:center;gap:5px;font-size:9px;color:#a296b3}.chart-legend i{width:6px;height:6px;background:var(--purple);border-radius:50%}.chart-area{padding:14px 14px 0}.chart{width:100%;height:208px;overflow:visible}.chart text{font-family:var(--font);font-size:9px;fill:#b1a7c1}.chart .axis{stroke:#f0edf6;stroke-dasharray:3 5}.chart-foot{border-top:1px solid #f4f1f8;padding:12px 21px;font-size:9px;display:flex;gap:5px;color:#aca2b9}.chart-foot strong{font-weight:550;color:#867893}.goal-panel{padding:21px;background:linear-gradient(145deg,#f9f6ff,#fff);display:flex;flex-direction:column;position:relative}.goal-heading{display:flex;align-items:center;justify-content:space-between}.goal-heading span{color:#a093bb}.goal-heading svg{width:18px;height:18px}.goal-values{font-size:12px;color:#9a8aad;margin-top:28px}.goal-values strong{font-family:var(--heading);font-size:31px;letter-spacing:-1px;color:#5e42c9;margin-right:7px}.progress-track{height:8px;background:#eae3fb;border-radius:5px;margin:18px 0 10px;overflow:hidden}.progress-track i{display:block;background:linear-gradient(90deg,#b5a0f4,#6d4be9);height:100%;border-radius:5px}.progress-labels{display:flex;justify-content:space-between;font-size:9px;color:#a192b5}.goal-note{display:flex;align-items:center;gap:10px;background:#fff9;margin-top:auto;border:1px solid #ede5fc;border-radius:8px;padding:13px 10px;font-size:10px;line-height:1.6;color:#9583ab}.goal-note svg{width:17px;height:17px;color:#9473e0}.bottom-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:21px}.date-chip{font-size:9px;color:#a394b4;border:1px solid #eee8f6;border-radius:6px;padding:5px 8px}.appt-list{padding:7px 21px 9px}.appt-row{display:flex;gap:13px;align-items:center;padding:14px 0;border-bottom:1px solid #f3f0f7}.appt-row:last-child{border:0}.appt-time{font-size:11px;color:#786b8d;width:39px;flex-shrink:0;font-weight:550}.avatar{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:#efe8fb;color:#9578c2;font-size:10px;font-weight:600;flex-shrink:0}.avatar.rose{background:#fceef1;color:#c08a9b}.avatar.mint{background:#e7f4ef;color:#70a48e}.avatar.sand{background:#faf0e6;color:#b59b7c}.person-text{min-width:0}.person-text strong{font-size:11px;font-weight:550;display:block}.person-text small{font-size:9px;display:block;color:#8e7d9d;margin-top:4px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.appt-row .person-text{flex:1}.badge{font-size:9px;line-height:1.5;padding:4px 8px;border-radius:5px;background:#f3f0fb;color:#a18bc3;white-space:nowrap;display:inline-flex}.badge.green{background:#edf7f1;color:#78a88d}.badge.amber{background:#fff6e6;color:#b49a66}.badge.blue{background:#edf3ff;color:#7f9cce}.badge.gray{background:#f4f3f5;color:#aaa4af}.badge.red{background:#fff0f1;color:#bd7f89}.panel-footer{padding:12px 21px;border-top:1px solid #f3eff8;text-align:center}.panel-footer button{font-size:10px;color:#a08cbd}.source-list{padding:18px 21px 16px;display:grid;gap:18px}.source-item{display:flex;align-items:center;gap:11px}.source-icon{width:31px;height:31px;display:grid;place-items:center;background:#f5effc;border-radius:8px;color:#ae8cc9}.source-icon svg{width:16px;height:16px}.source-name{font-size:10px;color:#8f7e9f;flex:1}.source-track{height:5px;width:75px;background:#f3eef9;border-radius:5px;overflow:hidden}.source-track i{display:block;height:100%;background:#b9a1e8;border-radius:5px}.source-count{font-size:10px;color:#a08bb4;width:15px;text-align:right}.app-footer{padding:10px 38px 18px;color:#91849d;font-size:9px;display:flex;gap:12px;justify-content:space-between;max-width:1640px;margin:auto;line-height:1.6}.app-footer>span:first-child{display:flex;gap:6px;align-items:center;white-space:nowrap}.app-footer i{width:5px;height:5px;border-radius:50%;background:#b8a5e2}.table-toolbar{padding:18px 20px;display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid var(--line)}.table-tabs{display:flex;gap:5px;flex-wrap:wrap}.filter-tab{font-size:11px;color:#a295b0;padding:7px 11px;border-radius:6px}.filter-tab.active{background:var(--purple-soft);color:var(--purple)}.table-meta{font-size:10px;color:#8c789b}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{font-size:9px;letter-spacing:.5px;color:#8b789c;background:#fdfcff;text-transform:uppercase;font-weight:500;text-align:left;padding:13px 20px;border-bottom:1px solid var(--line)}td{font-size:11px;padding:16px 20px;border-bottom:1px solid #f5f2f8;color:#85768f;vertical-align:middle}tr:last-child td{border-bottom:0}.table-person{display:flex;align-items:center;gap:10px}.table-person strong{font-size:11px;color:#61536e;font-weight:550}.table-person small{display:block;color:#8c789c;font-size:9px;margin-top:4px}.money{font-weight:600;color:#78618f;white-space:nowrap}.row-action{font-size:10px;color:var(--purple);padding:5px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;color:#9889ab;border:1px solid var(--line);border-radius:7px}.icon-button svg{width:16px;height:16px}.empty{padding:48px 24px;text-align:center;color:#a395b0;font-size:12px;line-height:1.8}.empty strong{display:block;font-size:15px;color:#81708e;margin-bottom:7px}.procedures-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.procedure-card{padding:21px;background:#fff;border:1px solid var(--line);border-radius:12px}.procedure-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.procedure-symbol{width:36px;height:36px;display:grid;place-items:center;background:#f1ecfc;color:#a188ce;border-radius:10px}.procedure-symbol svg{width:19px;height:19px}.procedure-card h3{font-size:13px;line-height:1.5;min-height:40px}.procedure-price{font-family:var(--heading);font-size:23px;font-weight:700;letter-spacing:-.6px;color:#6d5685;margin:13px 0}.procedure-info{display:flex;gap:15px;font-size:10px;color:#aa9bb7}.procedure-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;margin-top:20px;align-items:center}.calendar-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:20px}.day-button{background:#fff;border:1px solid var(--line);padding:14px 5px;border-radius:10px;color:#a08eae;display:grid;gap:8px;justify-items:center}.day-button small{font-size:9px;text-transform:uppercase}.day-button strong{font-family:var(--heading);font-size:18px;font-weight:650}.day-button.active{background:var(--purple);color:#fff;border-color:var(--purple);box-shadow:0 5px 10px #6b4ce617}.day-dots{height:4px;display:flex;gap:3px}.day-dots i{width:4px;height:4px;border-radius:50%;background:#bfa6e9}.day-button.active .day-dots i{background:#d8c9ff}.agenda-list .appt-row{padding:20px 0}.agenda-list .appt-time{width:53px;font-size:14px}.agenda-list .avatar{width:41px;height:41px;font-size:12px}.agenda-list .person-text strong{font-size:13px}.agenda-list .person-text small{font-size:11px;margin-top:5px}.agenda-list .badge{margin-right:14px}.finance-summary{display:flex;gap:15px;align-items:center}.finance-tabs{display:flex;gap:8px;margin-bottom:18px}.section-note{font-size:11px;line-height:1.8;color:#84718f;margin:14px 0 0}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.settings-content{padding:22px}.settings-content h3{margin:0 0 8px}.settings-content p{font-size:12px;color:#9c8daa;line-height:1.8}.settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.field{display:grid;gap:7px;margin-bottom:17px}.field label{font-size:11px;font-weight:550;color:#8a7899}.field input,.field select,.field textarea{border:1px solid #e8e0f0;border-radius:8px;padding:11px 12px;background:#fff;min-height:41px;outline:0;color:#685474;font-size:12px;width:100%;min-width:0}.field textarea{min-height:84px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#aa90ee;box-shadow:0 0 0 3px #f5f0ff}.field small{font-size:10px;color:#b0a1be;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-grid .full{grid-column:1/-1}.form-notice{padding:11px 13px;background:#f7f2ff;border-radius:8px;color:#a083be;font-size:11px;line-height:1.7;margin:0 0 18px}.form-summary{padding:14px 16px;background:#f7f3ff;border:1px solid #ece3fc;border-radius:9px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#9e83ba;margin-bottom:17px}.form-summary strong{font-family:var(--heading);font-size:19px;color:#7856ad}.form-error{font-size:11px;color:#bb5d6a;margin:0 0 15px;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:19px;margin-top:6px}dialog{border:0;border-radius:16px;padding:0;width:min(600px,calc(100% - 32px));max-height:88dvh;box-shadow:0 25px 100px #3f285c3d;color:var(--ink)}dialog::backdrop{background:#24133155;backdrop-filter:blur(4px)}.modal-header{padding:23px 25px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:2}.modal-header h2{font-family:var(--heading);font-size:18px;color:#725486}.modal-body{padding:23px 25px}.guide-step{display:flex;gap:13px;padding:12px 0}.guide-step>span{width:25px;height:25px;border-radius:8px;background:#f0e7fc;color:#aa8ec7;display:grid;place-items:center;font-size:11px;flex-shrink:0}.guide-step strong{font-size:12px;color:#826890}.guide-step p{font-size:11px;color:#ad99b9;line-height:1.8;margin:6px 0 0}.toast{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translate(-50%,20px);border:1px solid #e4d9f6;box-shadow:0 7px 30px #71509020;background:#fff;padding:14px 20px;border-radius:10px;color:#8b6ca7;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:80;max-width:90vw}.toast.visible{transform:translate(-50%,0);opacity:1}.scrim{display:none}.mono{font-variant-numeric:tabular-nums}.inline-warning{background:#fff6e5;color:#ab8646;padding:12px;border-radius:8px;font-size:11px;line-height:1.7;margin-bottom:15px}
@media(min-width:1600px){.stat-value{font-size:30px}.stat-card{padding:24px}.chart{height:242px}}
@media(max-width:1150px){.sidebar{width:210px;padding-left:14px;padding-right:14px}.app-shell{margin-left:210px}.topbar{padding:0 25px;gap:14px}main{padding:27px 25px}.app-footer{padding-left:25px;padding-right:25px}.global-search{width:218px}.stats-grid{gap:12px}.stat-card{padding:16px}.stat-value{font-size:21px}.split-grid,.bottom-grid{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr);gap:16px}.stat-head span:first-child{font-size:9px}.goal-values strong{font-size:26px}.brand{font-size:16px;gap:8px}.brand-symbol{width:32px;height:35px}.procedures-grid{grid-template-columns:repeat(2,1fr)}.source-track{width:55px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:920px){.breadcrumb{display:none}.global-search{margin-left:0;flex:1;width:auto}.stats-grid{grid-template-columns:repeat(2,1fr)}.split-grid,.bottom-grid{grid-template-columns:1fr}.goal-panel{min-height:240px}.goal-note{margin-top:24px}.source-list{grid-template-columns:1fr 1fr}.goal-values{margin-top:20px}.topbar{height:72px}.app-footer{flex-direction:column;gap:4px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.heading-actions .secondary{display:none}.page-heading{align-items:flex-start}h1{font-size:24px}.stat-value{font-size:25px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:.2s;width:242px;box-shadow:10px 0 40px #45296617}.sidebar.open{transform:translateX(0)}.scrim.visible{display:block;position:fixed;inset:0;background:#34224855;z-index:19}.app-shell{margin-left:0}.mobile-menu{display:inline-flex;border:0;width:22px}.topbar{padding:0 18px;gap:12px;height:68px}.global-search{padding:8px;background:#faf8fd;border-color:#f2ecf8}.global-search input{font-size:10px}.global-search kbd{display:none}.demo-tag{font-size:8px;padding:6px 8px}.profile-avatar{display:none}main{padding:24px 18px}.page-heading{gap:10px;margin-bottom:21px;flex-wrap:wrap}.heading-actions{justify-content:flex-start;gap:8px}.page-heading .heading-actions{width:100%;margin-top:4px}.heading-actions .month-input{flex:1;max-width:none}.heading-actions .primary{flex:1}.page-heading h1{font-size:25px}.eyebrow{font-size:8px}.subtitle{font-size:11px}.stats-grid{gap:11px;margin-bottom:17px}.stat-card{padding:15px 13px;border-radius:11px}.stat-value{font-size:23px;letter-spacing:-.8px}.stat-value small{font-size:14px}.stat-head{margin-bottom:14px}.stat-icon{width:26px;height:26px}.stat-head span:first-child{font-size:9px}.stat-foot{font-size:8px;margin-top:9px}.split-grid,.bottom-grid{gap:17px;margin-bottom:17px}.panel-header{padding:18px 17px 0}.chart-area{padding:15px 6px 0}.chart{height:195px}.goal-panel{padding:20px;min-height:241px}.appt-list{padding:6px 17px 9px}.appt-row{gap:9px}.appt-time{font-size:10px;width:34px}.person-text strong{font-size:10px}.person-text small{font-size:8px;max-width:153px}.badge{font-size:8px;padding:4px 6px}.source-list{padding:20px 17px;gap:20px 15px}.source-track{width:33px}.source-name{font-size:9px}.source-icon{width:25px;height:25px}.source-item{gap:7px}.app-footer{padding:0 18px 20px;font-size:8px}.procedures-grid{grid-template-columns:1fr 1fr;gap:11px}.procedure-card{padding:15px}.procedure-card h3{font-size:11px;min-height:43px}.procedure-price{font-size:21px}.procedure-info{font-size:8px;gap:7px}.procedure-symbol{width:30px;height:30px}.procedure-footer{margin-top:15px;padding-top:12px}.procedure-top{margin-bottom:16px}.table-toolbar{padding:13px;gap:8px;align-items:flex-start;flex-direction:column}.filter-tab{font-size:10px;padding:6px 8px}.table-meta{font-size:9px}td{padding:14px 16px}th{padding:12px 16px}.calendar-strip{gap:5px}.day-button{padding:12px 3px;gap:8px}.day-button small{font-size:8px}.day-button strong{font-size:16px}.agenda-list .appt-row{flex-wrap:wrap;gap:10px}.agenda-list .person-text{flex:1;min-width:120px}.agenda-list .person-text strong{font-size:11px}.agenda-list .person-text small{font-size:9px}.agenda-list .appt-time{width:43px;font-size:12px}.agenda-list .avatar{width:33px;height:33px;font-size:10px}.agenda-list .badge{margin-right:0}.agenda-list .button{min-height:30px;padding:6px 10px;font-size:10px}.form-grid{gap:0 12px}.modal-header{padding:20px}.modal-body{padding:20px}.modal-header h2{font-size:17px}.form-grid .field label{font-size:10px}.settings-content{padding:19px}.toast{left:50%;width:max-content;max-width:90vw}.finance-tabs{gap:4px}.chart-legend{font-size:8px}.app-footer span:last-child{max-width:330px}.guide-step p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.mobile-menu{display:none}@media(max-width:700px){.mobile-menu{display:inline-flex}}

.mobile-menu-close { display: none; }

.appointment-procedures {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}
.appointment-procedures legend { padding: 0; margin-bottom: 6px; font-size: 1rem; font-weight: 650; }
.procedure-search { margin-bottom: 8px; }
.procedure-search input { min-height: 44px; font-size: 1rem; }
.procedure-picker summary {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d8cbed;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: .9375rem;
  font-weight: 650;
  cursor: pointer;
}
.procedure-picker summary::-webkit-details-marker { display: none; }
.procedure-picker summary:focus-visible { outline: 3px solid #b8a8ff; outline-offset: 2px; }
.procedure-picker summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.procedure-picker[open] summary::after { transform: translateY(4px) rotate(225deg); }
.procedure-picker .picker-open, .procedure-picker[open] .picker-closed { display: none; }
.procedure-picker[open] .picker-open { display: inline; }
.procedure-results, .appointment-selected { list-style: none; padding: 0; margin: 8px 0 0; }
.procedure-results {
  max-height: 12rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior: contain;
}
.procedure-results li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.procedure-results[hidden], .procedure-results li[hidden] { display: none; }
.appointment-choice-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  font-size: .9375rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.appointment-choice-label input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--purple); }
.procedure-empty { margin: 8px 0 0; font-size: .875rem; color: #685c78; }
.appointment-selection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 7px 5px 10px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .875rem;
}
.appointment-selection strong { flex: 1 1 6rem; overflow-wrap: anywhere; }
.appointment-choice-session { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.appointment-choice-session input {
  width: 3.5rem;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid #ddd1ec;
  border-radius: 6px;
  font-size: 1rem;
}
.appointment-selection .icon-button { flex: none; width: 44px; height: 44px; color: var(--purple-dark); }
.appt-row .person-text small { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.heading-actions .secondary[data-action="export-contacts"] { display: inline-flex; }
.heading-actions [data-action="export-contacts"], .heading-actions [data-action="procedure"] { font-size: .875rem; }

@media (max-width: 700px) {
  body { font-size: .9375rem; line-height: 1.5; }
  .topbar { padding-inline: 12px; gap: 8px; }
  .global-search { min-width: 0; min-height: 44px; }
  .global-search input, .field input, .field select, .field textarea { font-size: 1rem; }
  .demo-tag { min-height: 44px; font-size: .875rem; color: #5d4c80; }

  .mobile-menu, .mobile-menu-close {
    display: inline-flex;
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid #d8cbed;
    border-radius: 10px;
    background: var(--purple-soft);
    color: var(--purple-dark);
  }
  .mobile-menu svg, .mobile-menu-close svg { width: 28px; height: 28px; stroke-width: 2; }
  .sidebar { width: min(19rem, calc(100% - 2.75rem)); overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
  .sidebar:not(.open) { visibility: hidden; }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
  .sidebar-header .brand { margin: 0; white-space: normal; }
  .sidebar-header .brand small { font-size: .75rem; letter-spacing: .05em; }
  .sidebar-bottom { padding-top: 22px; }
  .clinic-picker strong { max-width: none; }

  h2, h3, .modal-header h2, .procedure-card h3, .empty strong, .copy-card strong {
    font-size: 1rem;
    line-height: 1.4;
  }
  .nav-item, .settings-nav, .clinic-picker strong, .button, .agenda-list .button,
  .heading-actions [data-action="export-contacts"], .heading-actions [data-action="procedure"],
  .person-text strong, .agenda-list .person-text strong, .table-person strong,
  td, .source-name, .field label, .form-grid .field label, .settings-content p, .guide-step strong {
    font-size: .9375rem;
  }
  .subtitle, .panel-subtitle, .stat-head span:first-child, .stat-foot,
  .form-notice, .form-summary, .form-error, .inline-warning, .field small,
  .app-footer, .copy-card p, .clinic-picker small, .progress-labels, .goal-values, .goal-note,
  .source-count, .badge, .date-chip, .appt-time, .agenda-list .appt-time, .table-person small,
  .table-meta, .month-input, .text-button, .row-action, .panel-footer button, .chart-foot,
  .filter-tab, .finance-tabs button, th, .empty, .toast, .day-button small,
  .guide-step p, .procedure-info, .section-note, .appt-row .person-text small {
    font-size: .875rem;
  }
  .subtitle, .panel-subtitle, .stat-foot, .clinic-picker small, .copy-card p,
  .field label, .form-grid .field label, .field small, .form-error, .guide-step p,
  .table-meta, .table-person small, .procedure-info, .section-note,
  .appt-row .person-text small { color: #685c78; }
  .form-error { color: #a33246; }
  .nav-item, .settings-nav { color: #685c78; min-height: 44px; }
  .nav-item.active { color: var(--purple-dark); }
  .nav-count, .chart-legend { font-size: .8125rem; }
  .eyebrow, .nav-label, .byline { font-size: .75rem; }

  .heading-actions .button, .modal-actions .button, .agenda-list .button, .day-button, .month-input,
  .row-action, .filter-tab, .finance-tabs button { min-height: 44px; }
  .heading-actions .button, .modal-actions .button { white-space: normal; }
  .heading-actions .month-input { min-width: 0; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-head { gap: 4px; }
  .stat-value { font-size: clamp(1.125rem, 5.5vw, 1.4375rem); }
  .procedures-grid { grid-template-columns: minmax(0, 1fr); }
  .procedure-card h3 { min-height: 0; }
  .source-list { grid-template-columns: minmax(0, 1fr); }
  .source-name { overflow-wrap: anywhere; }
  .appt-row .person-text small { max-width: none; }
  .appt-time, .agenda-list .appt-time { width: auto; flex-shrink: 0; }
  .chart text { font-size: 20px; }
}

@media (max-width: 360px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-strip { gap: 3px; }
  .day-button { padding-inline: 2px; }
}
