/* Shared spacing and alignment. Loaded last so every module follows one rhythm. */
:root{--space-control:12px;--space-field:20px;--space-section:24px;--space-card:24px}
body{line-height:1.55}h1,h2,h3,h4{line-height:1.3}p,small{overflow-wrap:anywhere}button,input,select,textarea{line-height:1.45}button{text-align:center}
.layout{grid-template-columns:244px minmax(0,1fr)}.sidebar{width:244px;padding:28px 18px 22px;overflow-y:auto;scrollbar-width:thin}.brand{gap:12px;flex-shrink:0}.brandmark{flex:none}.tagline{line-height:1.7;margin:10px 0 30px 46px}.navlabel{margin-bottom:14px}.sidebar .nav{gap:6px}.sidebar .nav button{gap:12px;min-height:44px;padding:10px 12px;min-width:0}.sidebar .nav button>span:not(.icon):not(.count){min-width:0}.sidebar .nav button>.icon{width:20px;height:20px}.sidebar .nav button>.addon-nav-label{margin-left:auto;flex:none;font-size:8px;line-height:1.5;white-space:nowrap;padding:4px 5px}.sidebar-bottom{padding-top:24px}.sidebar .calm-box{margin:0 0 24px;padding:18px;line-height:1.8}.calm-box>.icon{display:flex;margin-bottom:10px}.calm-box strong{margin-bottom:6px}.sidebar-bottom>.nav{margin-bottom:18px}.profile{gap:12px;padding-top:20px}.profile>div{min-width:0}.profile strong{display:block;overflow-wrap:anywhere;line-height:1.5}.profile small{line-height:1.5;margin-top:5px}
.topbar{min-height:84px;height:auto;padding:18px 32px;gap:24px}.breadcrumb{gap:12px;min-width:0;flex-wrap:wrap;line-height:1.6}.top-actions{gap:16px;min-width:0}.demo-user{gap:7px}.demo-user select{padding:9px 12px;min-height:38px;max-width:270px}.demo-pill{line-height:1.5;padding:7px 12px;white-space:nowrap}.content{display:flex;flex-direction:column;gap:24px;padding:32px;max-width:1700px}.content>*{margin-block:0!important;min-width:0}.heading{gap:20px 24px;flex-wrap:wrap;align-items:center}.heading>div:first-child{flex:1 1 280px;min-width:0}.heading h1{font-size:clamp(25px,2.15vw,32px);letter-spacing:-.8px}.heading p{margin-top:10px;line-height:1.7}.heading-actions{display:flex;gap:12px;flex-wrap:wrap;max-width:100%}
.btn{gap:10px;min-height:42px;padding:10px 15px;line-height:1.45;white-space:normal;text-align:center;max-width:100%;border-radius:8px}.btn .icon{width:17px;height:17px;flex:none}.btn.tiny{min-height:36px;padding:8px 11px;line-height:1.4}.btn.ghost{min-width:36px;min-height:36px;padding:8px}.inline-actions{gap:12px;align-items:center}.badge{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:6px 9px;line-height:1.45;vertical-align:middle;flex-shrink:0}.badge .icon{width:14px;height:14px}.person{gap:12px}.person>strong{line-height:1.5}.grow{min-width:0}
.stats{gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat{min-width:0;display:flex;flex-direction:column;gap:14px;padding:22px;min-height:158px}.stat-top{gap:14px;align-items:flex-start;line-height:1.6;min-height:34px}.stat-icon{flex:none;padding:8px}.stat-number{font-size:32px;line-height:1.2;margin:0;overflow-wrap:anywhere}.stat-number.stat-label-value{font-size:21px;letter-spacing:-.4px;line-height:1.4}.stat>small{margin-top:auto;display:block;line-height:1.65}.agenda-summary{gap:20px}.agenda-summary .stat{min-height:158px}.daily-message{gap:12px;padding:22px 26px}.daily-message h2{margin:0;line-height:1.45}.daily-message p{line-height:1.6}.daily-message .stat-top{min-height:0;align-items:center;gap:12px}
.grid2{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}.grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.grid2>*{min-width:0}.grid2>aside:not(.card):not(.panel){display:flex;flex-direction:column;gap:24px}.grid2>aside:not(.card):not(.panel)>*{margin-block:0!important;min-width:0}.card{padding:24px;min-width:0}.card h2{margin-bottom:16px}.card h3{margin-bottom:10px}.card p{line-height:1.8;margin-top:12px}.card>p+.inline-actions,.card>p+.btn{margin-top:20px}.card>.icon{width:28px;height:28px;margin-bottom:4px}.card>.info-banner{margin-top:18px}.panel{min-width:0}.panel-head{padding:22px 24px;gap:18px;flex-wrap:wrap}.panel-head h2,.panel-head h3{margin:0}.panel-head p{margin-top:8px;line-height:1.7}.card>.panel-head{padding:0 0 20px!important;margin:0}.search{width:min(300px,100%);min-height:42px;padding:11px 13px;line-height:1.5}.grid3>.card{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.grid3>.card>h2,.grid3>.card>p,.grid3>.card>small{margin:0!important}.grid3>.card>.inline-actions{margin-top:auto;padding-top:12px}
.table-wrap{max-width:100%;scrollbar-width:thin}.table th,.table td{padding:16px 20px;line-height:1.65;vertical-align:middle}.table .inline-actions{gap:12px;flex-wrap:nowrap}.card>.table-wrap{margin-top:16px}.list-card{gap:16px;padding:20px 24px;flex-wrap:wrap;align-items:center}.list-card>.icon{width:24px;height:24px;flex:none}.list-card .grow{flex:1 1 220px;min-width:0}.list-card strong{line-height:1.6}.list-card p{line-height:1.75;margin-top:8px;overflow-wrap:anywhere}.list-card>.inline-actions{margin-left:auto}.list-card>.badge{margin-block:0}.note{padding:20px;margin:20px 0}.note p{line-height:1.85}.note small{line-height:1.65;margin-bottom:12px}.note>h3+p{margin-top:12px!important}.detail-top{gap:18px;margin-bottom:24px;min-width:0;align-items:center}.detail-top>div{min-width:0}.detail-top h2{margin-bottom:8px}.detail-top p{margin:0;line-height:1.7}.settings-row{gap:24px;padding:20px 0;align-items:flex-start}.settings-row>div{min-width:0}.settings-row input[type=checkbox]{margin-top:4px;flex:none}.settings-row p{margin-top:8px;line-height:1.7}
/* Field labels, rows and actions all have independent spacing. */
form{display:flex;flex-direction:column;gap:20px;min-width:0}form>*{min-width:0;margin-block:0!important}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.formgrid>*{min-width:0}.field,.formgrid .field{gap:9px;margin:0;line-height:1.6;min-width:0}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.wheel-trigger{min-height:44px;padding:11px 12px;line-height:1.5;border-radius:8px;max-width:100%;min-width:0}.field textarea{min-height:112px;line-height:1.7}.field input[type=color]{height:44px;padding:5px}.field>small{line-height:1.65}.field.full,.formgrid>.full{grid-column:1/-1}fieldset{margin:0;padding:18px;min-width:0}legend{padding-inline:8px;line-height:1.6}.checkrow{align-items:flex-start;gap:12px;margin:0;line-height:1.7;min-width:0}.checkrow input[type=checkbox],.selection-row input,.recurrence-days input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--green)}.patient-assignments{display:flex;flex-direction:column;gap:14px}.patient-assignments .checkrow{margin:0}.team-professional-field{padding:16px}.recurrence-options{padding:18px;margin:0}.recurrence-options>summary{line-height:1.7}.recurrence-options>fieldset,.recurrence-options>.formgrid{margin-top:20px}.recurrence-options .checkrow{margin-top:18px}.recurrence-days{gap:14px 20px;margin:12px 0 20px}.recurrence-days label{gap:10px;align-items:center;line-height:1.6}.form-actions{flex-wrap:wrap;gap:12px;align-items:center;margin-top:24px;padding-top:8px}.form-actions>.btn{min-width:106px}.form-actions>.btn.primary{min-width:145px}.form-error{margin:0;line-height:1.7}.form-error:empty{display:none}.info-banner{padding:16px 18px;line-height:1.8;overflow-wrap:anywhere}.notice{line-height:1.8}.formgrid+.field{margin-top:0}.tabs{gap:12px;margin:0 0 20px}.tabs .btn{min-height:40px}.occupied-card{padding:20px;margin:18px 0}.occupied-card p{line-height:1.8;margin-top:10px}.conflict-actions{gap:12px;margin-top:24px}.multiple-row{padding:18px;margin:0}.multiple-row+.multiple-row{margin-top:16px}.multiple-row>.btn{margin-top:16px}.selection-row{gap:14px;padding:16px 10px;align-items:flex-start}.selection-row small{margin-top:8px;line-height:1.7}.group-patients{display:flex;flex-direction:column;gap:14px;padding-block:8px}.schedule-range{gap:16px;padding:18px;margin:16px 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}.schedule-range>.btn{margin-bottom:0}.absence-range{padding:20px;margin:18px 0}.absence-range>.field,.absence-range>.btn{margin-top:18px}.absence-details{margin-top:24px;padding-top:22px}.absence-details>summary{line-height:1.7;margin-bottom:18px}.absence-details>.btn{margin-top:18px}.schedule-warning{line-height:1.8;padding:18px}.series-preview{margin:0}.series-preview>div{padding:16px 18px}.series-preview strong,.series-preview span{line-height:1.7}.series-preview span{margin-top:8px}
/* Dialogs are comfortable even when labels or names wrap. */
dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;overflow:auto;scrollbar-gutter:stable;border-radius:16px}.modal-head{gap:24px;align-items:flex-start;margin:0 0 24px}.modal-head h2{font-size:22px;line-height:1.4;min-width:0}.modal-head .btn{flex:none;width:36px;height:36px;min-height:36px;padding:0;font-size:24px;line-height:1}.modal-intro{margin:0 0 24px;line-height:1.8}dialog>.detail-top{margin:0 0 22px}dialog>.info-banner{margin-bottom:20px}dialog>.notice{margin-bottom:20px}dialog>.note{margin-block:20px}dialog>.appointment-action-list{margin-top:20px}.appointment-action{padding:16px 18px;gap:18px;min-height:52px}.appointment-action>span{gap:12px;min-width:0;line-height:1.65}.appointment-action>.icon{flex:none}.appointment-action-list>.notice{padding:18px;line-height:1.8}.search-result{padding:18px 12px}.search-result strong{line-height:1.7}.search-result span:not(.badge){line-height:1.7;margin-top:8px}.search-result .badge{margin-top:10px}.agenda-results{margin-block:20px}.month-navigation{gap:18px;margin:0 0 24px}.tool-month{gap:8px}.tool-month>button{min-height:64px;padding:9px}.wheel-sheet{padding:26px;max-height:calc(100dvh - 32px);overflow:auto}.wheel-sheet h3{margin-bottom:24px}.wheel-parts{gap:16px}.wheel-part>small{margin-bottom:12px}.wheel-sheet .form-actions{margin-top:24px}.print-ticket h2,.print-ticket h3{line-height:1.5}.print-ticket p{margin:18px 0;line-height:1.9}
/* Agenda toolbars have room to wrap without changing calendar geometry. */
.agenda-workarea{gap:24px}.agenda-toolbar{gap:16px 20px;padding:22px 22px 18px}.agenda-nav{gap:10px;flex:1 1 380px}.date-trigger{padding:11px 14px;min-height:42px;flex:1;line-height:1.65}.agenda-view{gap:10px}.agenda-view .btn{min-width:70px;padding:10px 14px}.team-agenda-filter{gap:12px;flex-wrap:wrap;font-size:11px}.team-agenda-filter select{padding:11px 12px;min-height:42px;max-width:100%;min-width:0}.agenda-zoom{padding:0 22px 20px;gap:12px}.agenda-zoom select{padding:9px 11px;min-height:38px;max-width:150px}.agenda-zoom>.btn{min-height:38px}.agenda-zoom>span:first-child{margin-right:2px}.agenda-action-bar{gap:12px;padding:20px 22px}.agenda-action-bar .btn{padding:10px 13px;min-height:40px}.agenda-more-menu{padding:12px;gap:6px;min-width:235px}.agenda-more-menu .btn{min-height:40px;padding:10px 12px}.team-week-legend{gap:14px 22px;padding:0 22px 20px;line-height:1.7}.team-week-legend>span{gap:10px}.legend{padding:18px 22px;gap:16px 22px;flex-wrap:wrap;line-height:1.7}.legend>span{display:inline-flex;gap:8px;align-items:center}.legend .dot{margin:0}.compact-view-note{padding:18px 22px;line-height:1.8}.rail{gap:24px}.rail .panel-head{padding:20px}.upcoming{padding:0 20px 20px}.upcoming-item{gap:14px;padding:18px 0}.upcoming-item>div{min-width:0}.upcoming-item small{margin-top:8px;line-height:1.6}.upcoming-item time{margin-left:auto;flex:none}.mini-panel{padding:22px}.mini-panel p{line-height:1.8}.mini-panel h3{margin-bottom:12px}.mini-panel .btn{margin-top:18px}.quick-blocks{gap:12px;margin-top:14px}.quick-blocks .btn{margin:0;padding:9px 8px}.next-card{padding:20px;margin-top:20px}.next-card h3{margin:16px 0 10px}.next-card p{margin-bottom:18px;line-height:1.7}
.team-grid{gap:24px}.team-card{display:flex;flex-direction:column;gap:20px;padding:24px}.team-card-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center}.professional-avatar{width:48px;height:48px}.team-card-head h2{margin:0;font-size:17px;line-height:1.5}.team-card-head p{margin:7px 0 0;line-height:1.7;overflow-wrap:anywhere}.team-card-head>.badge{margin:0}.team-card>p{margin:0;line-height:1.7}.team-counts{gap:32px;margin:0;line-height:1.7}.team-counts b{margin-bottom:7px;line-height:1.3}.team-card .inline-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:auto;padding-top:4px}.team-card .inline-actions .btn{min-height:40px;padding:10px 12px}.finance-filter{gap:24px;padding:20px 22px}.finance-filter label{gap:10px;min-width:220px}.finance-filter select{padding:11px 12px;min-height:42px}.finance-filter p{line-height:1.8}.financial-breakdown>.notice{padding:18px 24px!important;line-height:1.8}
/* Public booking, questionnaires, confirmation and rooms use the same spacing. */
.book-shell{max-width:1160px;padding:36px 28px}.public-header{gap:24px;margin-bottom:36px;flex-wrap:wrap}.public-layout{grid-template-columns:minmax(250px,.8fr) minmax(0,1.25fr);gap:36px;align-items:start}.public-info{padding-top:16px;min-width:0}.public-info h1{font-size:32px;line-height:1.35;margin-top:24px}.public-info p{margin:20px 0;line-height:1.9}.welcome-quote{margin:24px 0;padding:18px 20px;border-left:3px solid #b6cba3;line-height:1.9}.public-info>.btn{margin-top:8px!important}.public-layout>.card{padding:28px;display:flex;flex-direction:column;gap:20px}.public-layout>.card>*{margin-block:0!important;min-width:0}.public-layout>.card>h2{line-height:1.5}.booking-days{gap:12px;padding:4px 0 12px}.daypick{flex:none;min-width:68px;padding:12px 14px;line-height:1.6}.daypick b{margin:8px 0}.slots{gap:12px;margin:0}.slots button{padding:12px;min-height:44px}.result{display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px 8px}.result>*{margin:0!important;max-width:100%}.result h2{line-height:1.5}.result p{line-height:1.9}.result .inline-actions{justify-content:center;gap:12px}.number-circle{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;margin-inline:auto;flex:none}.number-circle .icon{width:28px;height:28px}.result>.icon{width:40px;height:40px}.video-top{gap:20px;flex-wrap:wrap;margin-bottom:24px}.video-controls{gap:12px;flex-wrap:wrap;margin:24px 0}.video-controls .btn{min-height:44px;padding:11px 16px}.video-placeholder{padding:28px;max-width:660px}.video-placeholder h2{line-height:1.5;margin:20px 0 14px}.video-placeholder p{line-height:1.9}.video-placeholder>.number-circle{margin-bottom:20px}.room-note{line-height:1.8;padding-inline:12px}#admit-area{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.addon-hero{padding:36px}.addon-hero>h2{margin:22px 0 14px}.addon-benefits{gap:18px 28px;margin:28px 0}.addon-benefits>span{gap:12px;line-height:1.7}.addon-hero>.inline-actions{margin-top:24px}.addon-demo-controls{margin-top:28px;padding-top:24px}.addon-demo-controls summary{line-height:1.8}.addon-demo-controls .notice{margin:18px 0!important}.addon-base p{margin-top:14px}.addon-active-banner{gap:20px;padding:22px}.addon-active-banner>div{gap:12px 16px}.addon-settings .panel-head{align-items:flex-start}.addon-professionals{padding:20px;display:flex;flex-direction:column;gap:16px}.addon-professionals .checkrow{margin:0}.addon-mode-note{margin-top:0;line-height:1.8}.footer{gap:16px 24px;flex-wrap:wrap;padding-top:8px;line-height:1.8}.footer span{gap:8px}.footer .icon{width:16px;height:16px}#toast{line-height:1.7;padding:15px 20px;max-width:min(560px,calc(100vw - 32px));text-align:center}
@media(max-width:1350px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:155px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1150px){.content{padding:28px}.topbar{padding:18px 28px}.heading-actions{width:100%}.grid2{grid-template-columns:minmax(0,1fr)}.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:minmax(0,1fr)}.agenda-workarea .rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.agenda-workarea .rail>.panel:last-child{grid-column:1/-1}.agenda-toolbar .team-agenda-filter{flex:1 1 100%}.team-agenda-filter select{flex:1;max-width:none}.agenda-nav{flex-basis:100%}.agenda-help{display:none}}
@media(max-width:900px){.layout{display:block}.main{grid-column:auto}.sidebar{width:268px;transform:translateX(-100%);box-shadow:20px 0 80px #203c3620}.sidebar.open{transform:translateX(0)}.mobile-toggle{display:inline-flex}.topbar{gap:16px}.top-actions{margin-left:auto}.content{padding:24px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.public-layout{gap:28px}.team-card-head{grid-template-columns:44px minmax(0,1fr);gap:12px}.team-card-head>.badge{grid-column:2;justify-self:start}.professional-avatar{width:44px;height:44px}.public-layout>.card{padding:24px}}
@media(max-width:650px){:root{--space-card:20px}.content{padding:20px 16px;gap:24px}.topbar{padding:14px 16px;align-items:flex-start;flex-wrap:wrap;gap:14px}.breadcrumb{font-size:11px;min-height:38px}.top-actions{gap:10px;max-width:100%;align-items:center}.demo-user select{max-width:200px;min-height:38px;font-size:11px}.demo-user>span{font-size:8px}.heading{gap:18px}.heading h1{font-size:27px}.heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.heading-actions>.btn:only-child{grid-column:1/-1}.heading-actions>.btn:last-child:nth-child(odd){grid-column:1/-1}.heading p{font-size:12px}.stats{gap:16px}.stat{padding:18px;gap:12px;min-height:155px}.stat-top{gap:10px;font-size:10px}.stat-icon{padding:7px}.stat-icon .icon{width:17px;height:17px}.stat-number{font-size:29px}.stat-number.stat-label-value{font-size:18px}.agenda-summary{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-summary .daily-message{grid-column:1/-1;grid-row:1;padding:22px;min-height:140px}.agenda-summary .stat{min-height:145px}.daily-message h2{font-size:19px}.daily-message p{font-size:15px}.grid2,.grid3,.team-grid{grid-template-columns:minmax(0,1fr);gap:24px}.card{padding:20px}.panel-head{padding:20px;gap:16px}.table th,.table td{padding:16px}.list-card{padding:20px;gap:14px}.list-card .grow{flex:1 1 calc(100% - 60px)}.list-card>.btn{margin-left:auto}.list-card>.inline-actions{width:100%;margin-left:0}.list-card>.inline-actions .btn{flex:1}.list-card>.badge{margin-left:50px}.detail-top{gap:14px}.detail-top .avatar{width:48px;height:48px;font-size:17px}.detail-top h2{font-size:20px}.note{padding:18px}.formgrid{grid-template-columns:minmax(0,1fr);gap:20px}.form-actions{gap:12px}.form-actions>.btn,.form-actions>.btn.primary{flex:1 1 130px;min-width:0}.tabs{gap:12px}.tabs .btn{flex:1 1 130px}.field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select,.wheel-trigger{font-size:14px}.schedule-range{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}.schedule-range>.btn{grid-column:1/-1}.absence-range{padding:16px}.recurrence-days{gap:14px 16px}.recurrence-days label{min-width:110px}.checkrow{font-size:12px}.finance-filter{padding:20px;gap:16px}.finance-filter label{min-width:0;width:100%}.team-card-head{grid-template-columns:48px minmax(0,1fr) auto}.team-card-head>.badge{grid-column:auto;justify-self:auto}.team-card .inline-actions{gap:12px}.team-counts{gap:32px}.agenda-toolbar{padding:20px 16px 16px;gap:16px}.agenda-nav{gap:9px}.date-trigger{padding:10px;font-size:11px;min-width:0}.agenda-nav>.btn.tiny{min-width:34px;padding:8px}.agenda-view{width:100%;gap:12px}.agenda-view .btn{flex:1}.agenda-zoom{padding:0 16px 20px;gap:12px}.agenda-zoom select{max-width:135px}.agenda-action-bar{padding:20px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agenda-action-bar>.btn,.agenda-more>summary{width:100%;min-height:42px}.agenda-more-menu{right:0;min-width:240px;max-width:calc(100vw - 56px);padding:12px;max-height:55vh;overflow:auto}.agenda-workarea .rail{display:flex;gap:24px}.agenda-workarea .rail>.panel:last-child{grid-column:auto}.legend{padding:18px 16px;gap:14px 18px}.team-week-legend{padding:0 16px 18px;gap:12px 18px}.compact-view-note{padding:16px}.mini-panel{padding:20px}.quick-blocks{gap:12px}.book-shell{padding:24px 16px}.public-header{gap:16px;margin-bottom:28px}.public-header .brand{font-size:23px}.public-header .demo-pill{font-size:9px}.public-layout{grid-template-columns:minmax(0,1fr);gap:28px}.public-info{padding:0}.public-info h1{font-size:28px;margin-top:20px}.public-info p{margin:16px 0}.public-layout>.card{padding:22px;gap:20px}.booking-days{gap:12px}.daypick{min-width:64px;padding:11px 12px}.slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result{padding:20px 0;gap:20px}.result .inline-actions{width:100%}.result .inline-actions>.btn{flex:1 1 140px}.video-shell{padding:20px 16px}.video-top{gap:16px}.video-top .brand{font-size:23px}.video-grid{min-height:340px;height:calc(100dvh - 320px)}.video-grid video#local{width:110px;height:82px;bottom:14px;right:14px}.video-placeholder{padding:22px}.video-placeholder h2{font-size:21px}.video-controls{gap:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.video-controls .btn{min-height:44px;font-size:12px;padding:11px}.video-controls>.btn:last-child:nth-child(odd){grid-column:1/-1}.room-note{padding:0;font-size:11px}.addon-hero{padding:28px 20px}.addon-hero h2{font-size:23px}.addon-benefits{gap:18px;margin:24px 0;display:grid;text-align:left}.addon-benefits>span{gap:12px}.addon-active-banner{padding:20px;gap:18px}.addon-active-banner>div{gap:12px}.addon-active-banner>.btn{width:100%}.addon-demo-controls{margin-top:24px;padding-top:24px}.addon-demo-controls>.btn{width:100%}.addon-settings .panel-head{gap:14px}.footer{gap:14px;font-size:10px}.footer>span{width:100%}dialog{width:calc(100vw - 24px);padding:22px;max-height:calc(100dvh - 24px)}.modal-head{gap:16px;margin-bottom:24px}.modal-head h2{font-size:21px}.tool-month{gap:6px}.tool-month>button{min-height:56px;padding:6px;font-size:12px}.tool-month>button small{font-size:8px}.wheel-sheet{padding:24px 16px}.wheel-parts{gap:12px}}
@media(max-width:390px){.topbar{flex-direction:column}.top-actions{margin-left:0;width:100%}.demo-user{width:100%}.demo-user select{max-width:100%;width:100%}.stats{grid-template-columns:minmax(0,1fr)}.agenda-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.team-card-head{grid-template-columns:44px minmax(0,1fr)}.team-card-head>.badge{grid-column:2;justify-self:start}.public-header .demo-pill{white-space:normal;max-width:140px}.agenda-nav{flex-wrap:wrap}.agenda-nav .date-trigger{order:-1;flex:1 1 100%}.agenda-nav>.btn{flex:1}.heading-actions{grid-template-columns:minmax(0,1fr)}.heading-actions>.btn{grid-column:1!important}}
@media(max-height:800px) and (min-width:901px){.sidebar .calm-box{display:none}.sidebar .tagline{margin-bottom:22px}}
@media print{dialog:has(.print-ticket){width:100%;max-height:none;overflow:visible;padding:20px}.print-ticket{display:block}.print-ticket>*{max-width:100%}}
.calendar-appointment{border-top:2px solid transparent;border-bottom:2px solid transparent;background-clip:padding-box;border-radius:7px}.number-circle{font-size:28px}.card>.tabs{margin-bottom:24px}.card>.tabs+.panel-head{padding-top:0!important}
.note>strong{display:block;line-height:1.65}.note>p+.btn,.note>p+.inline-actions{margin-top:16px}.note>div[style]{margin-top:16px!important}.grid3>.card>small{margin-top:auto!important}.grid3>.card>.inline-actions{margin-top:0;padding-top:8px}.card>p+form{margin-top:20px}.card>p+div:not(.chart){margin-top:20px}
.compact-team-week .agenda-grid{grid-template-columns:56px repeat(var(--days),minmax(220px,1fr))}.agenda-workarea:has(.compact-team-week){grid-template-columns:minmax(0,1fr)}.agenda-workarea:has(.compact-team-week)>.rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
@media(max-width:1150px){.agenda-workarea:has(.compact-team-week)>.rail{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-workarea:has(.compact-team-week)>.rail>.panel:last-child{grid-column:1/-1}}
@media(max-width:650px){.agenda-workarea:has(.compact-team-week)>.rail{display:flex}.compact-team-week .agenda-grid{grid-template-columns:46px repeat(var(--days),minmax(220px,1fr))}}
@media(max-width:650px){.heading{flex-direction:column;align-items:stretch}.heading>div:first-child{flex:none;width:100%}.heading-actions{flex:none;width:100%}}
.month-navigation>.field{flex:1;min-width:0}.month-navigation>.btn{flex:none;min-width:40px}.formgrid>.btn{align-self:end}
@media(max-width:650px){.month-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.month-navigation>.field{grid-column:1/-1;grid-row:1}.month-navigation>.btn{grid-row:2;width:100%;min-height:40px}.tool-month>button{padding:6px 3px}.tool-month>button small{font-size:8px;white-space:nowrap}.wheel-column button{font-size:14px}}
.video-grid video#local{display:none}.video-grid video#local.is-ready{display:block}
.grid3>.card>p{flex:1 0 auto}.grid3>.card>small{margin:0!important}.grid3>.card>.inline-actions{margin:0!important}
.heading-actions,.inline-actions,.form-actions,.tabs{align-items:stretch}.heading-actions>.btn,.inline-actions>.btn,.form-actions>.btn,.tabs>.btn{height:auto}
.card>.panel-head+.note{margin-top:4px}.card>h2+.settings-row{padding-top:4px}
.selection-filter{grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:16px}.selection-filter>.btn{min-height:44px}
@media(max-width:650px){.selection-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.selection-filter>.field{grid-column:1/-1}.selection-filter>.btn{width:100%}}
.own-agenda-label{gap:10px;padding:11px 14px;line-height:1.7}.calendar-appointment small:empty{display:none}
@media(max-width:650px){.agenda-nav{flex-wrap:wrap}.agenda-nav .date-trigger{order:-1;flex:1 1 100%}.agenda-nav>.btn{flex:1}}
/* Local Windows/iPhone review: readable fields without iOS focus zoom, and clear touch targets. */
[hidden]{display:none!important}
input,select,textarea{max-width:100%;min-width:0}
.field input[type=date],.field input[type=month],.field input[type=time]{min-height:44px;box-sizing:border-box}
.form-error:empty{display:none}.form-error:focus{outline:none}.form-error{scroll-margin:20px}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #267662;outline-offset:3px}
@media(max-width:650px){
  input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea,
  .field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select,
  .demo-user select,.agenda-zoom select,.wheel-column button{font-size:16px}
  .btn,.btn.tiny,.modal-head>.btn,.mobile-toggle,.agenda-nav>.btn.tiny{min-height:44px}
  .modal-head>.btn{min-width:44px;flex:none}
  .checkrow,.recurrence-days label,.patient-assignments label,.addon-professionals label{min-height:44px}
  .book-shell,.video-shell{padding-bottom:max(24px,env(safe-area-inset-bottom))}
  dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));overscroll-behavior:contain}
  .table-wrap,.agenda-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
}
.wheel-column button{height:44px;min-height:44px}
@media(max-width:650px){.team-agenda-filter select,.finance-filter select{font-size:16px}}
@media(pointer:coarse),(max-width:1050px) and (max-height:500px){
  input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea,
  .field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,
  .demo-user select,.team-agenda-filter select,.finance-filter select,.agenda-zoom select{font-size:16px}
  .btn,.btn.tiny,.mobile-toggle{min-height:44px}
}
@media(max-width:1050px) and (max-height:500px){
  .layout{display:block}.main{grid-column:auto}.sidebar{width:268px;transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}.mobile-toggle{display:inline-flex}
  .content{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}
}
