
.content{padding:28px 30px 48px}
.nav a{padding:10px 12px}
.btn{min-height:36px;transition:background .15s,box-shadow .15s,transform .15s}
.page-hero h1,.title-row h1{line-height:1.2}
.page-hero .sub,.title-row .sub{line-height:1.6}
.kpi-primary{grid-template-columns:repeat(4,minmax(0,1fr))}
.kpi-secondary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.kpi-primary .metric{padding:20px;min-height:172px;}
.table td{vertical-align:middle}
:focus-visible{outline:3px solid var(--ba-primary);outline-offset:3px}
[hidden]{display:none}
.ex-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;margin-bottom:16px}
.ex-filters label{display:flex;flex:1 1 140px;flex-direction:column;gap:7px;}
.ex-filters label:first-of-type{flex:2 1 220px}
.ex-filters input,.ex-filters select{width:100%;min-height:40px}
.ex-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.ex-toolbar h2{margin:0 8px}
.ex-toolbar .muted{flex:1}
.ex-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px 0;}
.ex-lead-table{min-width:800px}
.ex-board.lead-kanban{display:grid;grid-template-columns:repeat(6,minmax(230px,1fr));gap:14px;overflow:auto;padding-bottom:12px}
.ex-task-board.lead-kanban{grid-template-columns:repeat(4,minmax(240px,1fr))}
.ex-board .lead-kanban-column{min-width:0;padding:12px;min-height:200px}
.ex-board .lead-kanban-card{padding:14px;margin-bottom:10px;transition:opacity .15s,box-shadow .15s}
.ex-board [draggable=true]{cursor:grab}
.ex-board .is-saving{pointer-events:none}
.ex-board .is-drop-target{outline:2px dashed var(--ba-primary);outline-offset:-4px}
.ex-board .actions{display:flex;gap:6px;align-items:center;margin-top:12px}
.ex-board select{min-width:0;width:100%}
.ex-board .lead-kanban-foot{margin-top:16px;gap:8px;}
.ex-modal{position:fixed;inset:0;margin:auto;width:min(740px,calc(100% - 32px));max-height:90dvh;padding:24px;overflow:auto}
.ex-modal[open]{animation:ex-modal-in .18s ease-out}
.ex-modal::backdrop{backdrop-filter:blur(3px)}
.ex-modal header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:16px;margin-bottom:16px;}
.ex-modal header h2{margin:3px 0}
.ex-modal label.field{display:flex;flex-direction:column;gap:6px;margin:14px 0;}
.ex-modal textarea,.ex-modal input,.ex-modal select{width:100%;padding:10px 12px;min-height:40px;}
.ex-modal textarea{min-height:100px}
.ex-modal .phone-input-row input{width:100%}
.ex-drawer{inset:0 0 0 auto;margin:0;width:min(520px,100%);height:100dvh;max-height:100dvh;padding:26px}
.ex-drawer[open]{animation:ex-drawer-in .2s ease-out}
.ex-detail-summary{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:16px;margin:18px 0}
.ex-detail-summary strong{overflow-wrap:anywhere;}
.ex-activity{display:block;padding:14px 0;overflow-wrap:anywhere}
.ex-activity small{display:block;margin-top:6px}
.ex-activity p,.ex-note-text{white-space:pre-wrap;}
.ex-modal h3{margin:28px 0 12px;}
.ex-toast{position:fixed;right:22px;bottom:22px;z-index:2147483647;max-width:min(480px,calc(100vw - 44px));padding:14px 18px;line-height:1.5}
.ex-dialog-open{overflow:hidden}
.ex-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}
.ex-calendar-grid{padding:16px}
.ex-weekdays,.ex-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ex-weekdays span{padding:10px 3px;text-align:center;}
.ex-day{display:flex;flex-direction:column;text-align:left;min-height:110px;padding:10px 7px;cursor:pointer}
.ex-day strong{align-self:flex-start;padding:3px 5px;}
.ex-day.is-selected{z-index:1}
.ex-day-events{display:flex;flex-direction:column;gap:3px;margin-top:7px;max-width:100%}
.ex-event-mark{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px;}
.ex-agenda{padding:22px;max-height:780px;overflow:auto}
.ex-calendar-layout.agenda-only{grid-template-columns:1fr}
.agenda-only .ex-calendar-grid{display:none}
.ex-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.ex-team-card{text-align:center;padding:26px;animation:ex-modal-in .18s ease-out}
.ex-team-avatar{display:grid;place-items:center;width:58px;height:58px;margin:auto;}
.ex-team-card h2{margin:16px 0 5px}
.ex-team-card p{margin:0 0 20px;}
.ex-team-stats{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.ex-team-stats strong{display:block;}
.ex-team-stats span{display:block;}
.ex-columns{display:inline-block;position:relative;margin:0 0 8px;}
.ex-columns summary{cursor:pointer;padding:6px 10px;}
.ex-columns[open]{padding:8px;}
.ex-columns label{display:flex;gap:8px;padding:5px;align-items:center}
.ex-columns input{width:auto;min-height:0}
@keyframes ex-modal-in{from{transform:translateY(8px)}to{transform:none}}
@keyframes ex-drawer-in{from{transform:translateX(25px)}to{transform:none}}
@media(max-width:1200px){.kpi-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.ex-calendar-layout{grid-template-columns:1fr}.ex-agenda{max-height:450px}}
@media(max-width:700px){.content{padding:18px 14px 32px}.kpi-primary .metric{padding:15px;min-height:150px}.ex-filters label{flex:1 1 calc(50% - 12px)}.ex-filters label:first-of-type{flex-basis:100%}.ex-day{min-height:85px;padding:6px 3px}.ex-event-mark{padding:2px}.ex-calendar-grid{padding:6px}.ex-drawer{width:100%;padding:18px}.ex-calendar-layout{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none;transition:none;scroll-behavior:auto}}
.ex-comparison{margin-top:8px;}
.ex-reminder-expand{display:none}
@media(max-width:700px){.ex-reminder-expand{display:inline-flex;margin-left:auto}.ex-reminder-compact:not(.ex-reminder-expanded) .lead-reminder-slides,.ex-reminder-compact:not(.ex-reminder-expanded) .lead-reminder-footer{display:none}.ex-reminder-compact .lead-reminder-head{flex-wrap:wrap;gap:8px}.ex-reminder-compact{max-height:75dvh;overflow:auto}}
.ex-chart-link{display:inline-flex;margin:12px 0 0;padding:7px 10px;}

@media(max-width:700px){.kpi-primary .ex-money-metric{grid-column:1/-1;min-height:120px}.kpi-primary .ex-money-metric .value{overflow-wrap:normal;word-break:normal}}

input:is([type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]){
 -webkit-appearance:none;appearance:none;
 display:block;box-sizing:border-box;
 width:100%;max-width:100%;min-width:0;
 inline-size:100%;max-inline-size:100%;min-inline-size:0;
 min-height:42px;line-height:1.4;
}
input:is([type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"])::-webkit-date-and-time-value{
 min-width:0;text-align:left;white-space:nowrap;
}
input:is([type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"])::-webkit-datetime-edit{
 min-width:0;padding:0;
}
.date-field{box-sizing:border-box;min-inline-size:0;max-inline-size:100%}
.date-field>input{padding-right:44px}
:is(.form-grid,.grid-2,.grid-3,.feature-grid-2,.feature-grid-3,.ex-calendar-layout,.ex-team-grid)>*{min-width:0}



.ex-modal header>div{min-width:0;flex:1}
.ex-modal header :is(h2,.eyebrow){overflow-wrap:anywhere}
.ex-modal header>[data-ex-close]{flex-shrink:0}
:is(.modal-open,.ex-dialog-open) .lead-reminder-popup{display:none}
@media(max-width:700px){
 body:has(.lead-reminder-popup:not([hidden])) .content{padding-bottom:210px;scroll-padding-bottom:190px}
 body:has(.ex-reminder-expanded:not([hidden])) .content{padding-bottom:calc(75dvh + 32px);scroll-padding-bottom:75dvh}
}
:is(.btn,button,summary,.tabs a,.nav a,.metric-link,.ex-accent-option){transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}
:is(.btn,button):disabled{cursor:not-allowed;transform:none;}
:is(.btn,button)[aria-busy="true"]{cursor:progress;transform:none}
:is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ba-primary);outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 .metric-link:hover{transform:translateY(-3px);}
}
:is(.btn,button,summary):active:not(:disabled){transform:translateY(1px);}
.ex-appearance{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:20px;margin-bottom:20px}
.ex-appearance>div:first-child{flex:1 1 250px;min-width:0}.ex-appearance h2{margin:4px 0 8px;}.ex-appearance p{line-height:1.5;margin:0}
.ex-accent-options{display:flex;gap:8px;flex-wrap:wrap}.ex-accent-option{display:inline-flex;align-items:center;gap:7px}
.ex-swatch{width:13px;height:13px;flex-shrink:0;}
.ex-motion-preference{flex:1 0 100%;display:flex;flex-direction:column;gap:6px}.ex-motion-preference label{display:flex;gap:8px;align-items:center;}.ex-motion-preference input{width:auto;min-height:0;accent-color:var(--ex-accent)}
.ex-appearance [role="status"]{flex-basis:100%}

#main-content>:is(.card,.cards,.grid-2,.grid-3){animation:none}
.crm-motion-bar{transform-box:fill-box;transform-origin:center bottom}
.ex-modal[open]{animation-duration:.26s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
.app-modal.open .app-modal-panel{animation:ex-panel-enter .23s cubic-bezier(.22,1,.36,1)}
@keyframes ex-panel-enter{from{transform:translateY(12px) scale(.985)}to{transform:none}}
.ex-day,.view-toggle :is(a,button){transition:background-color .16s,border-color .16s,box-shadow .16s}
@view-transition{navigation:auto}
::view-transition-old(root){animation:ex-page-out .12s ease-out}
::view-transition-new(root){animation:ex-page-in .18s ease-out}

html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{animation:none;transition:none;scroll-behavior:auto}
html[data-motion="reduced"]::view-transition-old(root),html[data-motion="reduced"]::view-transition-new(root){animation:none}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-old(root),::view-transition-new(root){animation:none}}
html[data-motion="reduced"] :is(.btn,button,summary,.nav a,.metric-link):hover{transform:none}

html[data-motion="reduced"] body :is(#main-content *,#side *,header *,dialog *,.lead-reminder-popup,.lead-reminder-popup *,body *){animation:none;transition:none;scroll-behavior:auto}


:is(.btn,.icon-btn)[aria-disabled="true"]{cursor:not-allowed;transform:none}


.ex-money-metric>div:nth-child(2){container-type:inline-size;min-width:0;width:100%;flex:1}
.ex-money-unit{display:block;line-height:1.5}
.ex-money-number{display:block;white-space:nowrap;line-height:1.25}

.crm-graph-kpis>.card{container-type:inline-size}
.account-trigger{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:6px;max-width:280px}
.account-trigger::-webkit-details-marker{display:none}
.account-trigger .account-identity{display:block;min-width:0;max-width:190px}
.account-trigger .account-identity>span{display:block;margin-top:3px}
.account-menu[open] .profile-chip-arrow{transform:rotate(180deg)}
.account-popover{position:absolute;right:0;top:calc(100% + 10px);width:260px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;padding:8px;z-index:70;text-align:left}
.account-heading{padding:10px 12px 12px;overflow-wrap:anywhere}
.account-heading small{display:block;margin-top:3px}
.account-popover nav{display:grid;padding:6px 0}
.account-popover a,.account-popover button{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:10px 12px;text-decoration:none;text-align:left;cursor:pointer;box-sizing:border-box}
.account-popover a>span,.account-popover button>span{display:grid;place-items:center;width:20px;flex:0 0 20px}.account-popover svg{width:19px;height:19px}
.account-logout{margin:0;padding-top:6px}
@media(max-width:767px){.account-trigger{max-width:calc(100vw - 72px);padding:0}.account-trigger .account-identity{max-width:calc(100vw - 146px)}.account-trigger .avatar{width:34px;height:34px;flex-basis:34px}}
.account-popover svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#ex-appearance-title{scroll-margin-top:150px}

body:has(.account-menu[open]) #leadReminderPopup{visibility:hidden;pointer-events:none}
.ex-icon-label{display:flex;align-items:center;gap:9px;min-width:0}
.ex-semantic-icon{display:inline-grid;place-items:center;flex:0 0 30px;width:30px;height:30px;}
.ex-semantic-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1.ex-icon-label>.ex-semantic-icon{width:40px;height:40px;flex-basis:40px;}h1.ex-icon-label>.ex-semantic-icon svg{width:23px;height:23px}
.ex-semantic-card .label{margin-bottom:12px;line-height:1.35}
:is(.tabs,.filter-chip-row,.dashboard-tabs,.feature-tabs)>a.ex-icon-label{display:inline-flex;align-items:center;flex-shrink:0;gap:7px}
:is(.tabs,.filter-chip-row,.dashboard-tabs,.feature-tabs)>a>.ex-semantic-icon{width:22px;height:22px;flex-basis:22px;}
.btn.ex-icon-label{display:inline-flex;justify-content:center}.btn>.ex-semantic-icon{width:18px;height:18px;flex-basis:18px;}.btn>.ex-semantic-icon svg{width:17px;height:17px}
.crm-chart-panel-head h2.ex-icon-label{line-height:1.35}.crm-chart-panel-head h2>.ex-semantic-icon{flex-shrink:0}
@media(max-width:767px){h1.ex-icon-label>.ex-semantic-icon{width:34px;height:34px;flex-basis:34px}.ex-icon-label{gap:7px}.ex-semantic-icon{width:26px;height:26px;flex-basis:26px}}
.view-toggle .ex-semantic-icon{width:20px;height:20px;flex-basis:20px;}.view-toggle>a.ex-icon-label,.view-toggle>button.ex-icon-label{display:inline-flex;align-items:center;gap:6px}


.profile-hero .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.profile-hero .actions>.btn{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:48px;white-space:normal;text-align:left;line-height:1.35;margin:0}
.profile-action-icon{display:grid;place-items:center;flex:0 0 20px;}.profile-action-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-hero .sub,.profile-identity-large .muted{overflow-wrap:anywhere}
.ex-appearance{margin-top:20px;gap:12px}
.ex-appearance .ex-accent-option{position:relative;min-height:44px;padding-right:30px;justify-content:flex-start}
.ex-accent-check{position:absolute;right:10px;line-height:1;}
.ex-appearance [data-ex-appearance-status]:empty{display:none}
@media(max-width:767px){
 .profile-hero .actions{grid-template-columns:1fr;width:100%;gap:8px}
 .profile-hero .actions>.btn{width:100%;min-height:44px;flex:none;padding:10px 12px}
 .profile-layout{gap:14px}
 .profile-identity-large{gap:12px;align-items:center}
 .profile-avatar-xl{width:72px;height:72px;flex:0 0 72px;}
 .profile-identity-large>div{min-width:0}
 .profile-identity-large h2{line-height:1.3;overflow-wrap:anywhere}
 .ex-appearance{display:grid;grid-template-columns:minmax(0,1fr);padding:18px;margin-top:16px}
 .ex-appearance>div:first-child{flex:none}
 .ex-appearance .ex-accent-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .ex-appearance .ex-accent-option{width:100%;gap:6px;padding-left:10px;padding-right:24px}
 .ex-motion-preference label{align-items:flex-start;line-height:1.5}.ex-motion-preference input{margin-top:4px;flex-shrink:0}
}

.ex-appearance{scroll-margin-top:140px}

body:has(.content[data-module="profile"]) .ex-reminder-expand{display:inline-flex;margin-left:auto}
body:has(.content[data-module="profile"]) .ex-reminder-compact:not(.ex-reminder-expanded) :is(.lead-reminder-slides,.lead-reminder-footer){display:none}
body:has(.content[data-module="profile"]) .lead-reminder-head{flex-wrap:wrap;gap:8px}









.content .ex-table-scroll{display:block;min-width:0;width:100%;max-width:100%;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;box-sizing:border-box}
.content .card.table-wrap{min-width:0;max-width:100%;overflow-x:auto}
.ex-table-empty{padding:22px 16px;text-align:center;overflow-wrap:anywhere}
.content :is(.tabs,.filter-chip-row,.view-toggle,.ex-board,.lead-kanban){overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.date-field input::-webkit-calendar-picker-indicator{display:none;width:0;margin:0;padding:0}
@media print{.content .ex-table-scroll{overflow:visible}.ex-table-empty{padding:10px}}


.passkey-login-panel{margin-top:16px;padding-top:16px;}
.passkey-login-panel>.btn{width:100%;min-height:44px}
.passkey-card{margin-bottom:18px;min-width:0}
.passkey-list{margin:14px 0}
.passkey-row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 0;min-width:0}
.passkey-row>div{min-width:0}.passkey-row strong,.passkey-row small{display:block;overflow-wrap:anywhere}.passkey-row small{margin-top:5px;}.passkey-row button{flex-shrink:0;min-height:44px}
[data-passkey-status]{overflow-wrap:anywhere;margin-top:12px}
@media(max-width:600px){.passkey-card .form-grid{grid-template-columns:minmax(0,1fr)}.passkey-card .field.full{grid-column:auto}.passkey-card [data-passkey-add]{width:100%;min-height:44px}}


.analytics-hero{margin-bottom:14px}
.analytics-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.analytics-filters .field{min-width:145px;flex:1 1 145px;margin:0}
.analytics-filters .field label{display:block;margin-bottom:5px}
.analytics-filters .btn{min-height:39px;white-space:nowrap}
.analytics-note{line-height:1.6;margin:0 0 17px}
.analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.analytics-card{min-width:0;padding:18px}
.analytics-card .section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.analytics-card .section-head h2{margin:2px 0 5px}
.analytics-card .section-head .btn{flex-shrink:0}
.analytics-wide{grid-column:span 2}
.analytics-big{overflow-wrap:anywhere;margin:20px 0 8px}
.analytics-submetric{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-top:11px;margin-top:15px;}
.analytics-submetric strong{text-align:right}
.analytics-chart{display:flex;align-items:stretch;gap:10px;min-height:206px;overflow-x:auto;padding:9px 2px 6px}
.analytics-column{flex:1 0 62px;max-width:160px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
.analytics-column strong{white-space:nowrap}
.analytics-column-track{height:120px;width:min(65%,72px);min-width:25px;display:flex;align-items:end;overflow:hidden}
.analytics-column-track i{display:block;width:100%;}
.analytics-bar-row{margin-top:13px}
.analytics-bar-label,.analytics-list-row{display:flex;align-items:center;justify-content:space-between;gap:11px}
.analytics-bar-label strong{text-align:right}
.analytics-bar-row>small{display:block;margin-top:4px}
.analytics-bar-track{height:9px;margin-top:6px;overflow:hidden}
.analytics-bar-track i{display:block;height:100%;}
.analytics-list-row{min-height:43px;padding:9px 0;text-decoration:none;}
.analytics-list-row strong{text-align:right;overflow-wrap:anywhere}
.analytics-list-row small{display:block;margin-top:3px;}
.analytics-stat-pair{display:flex;flex-wrap:wrap;gap:18px}
.analytics-stat-pair>div{min-width:95px}
.analytics-stat-pair strong{display:block;line-height:1.2;}
.analytics-recent{margin-top:14px}
.analytics-recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.analytics-recent-grid h3{margin:3px 0 5px}
@media(max-width:1150px){.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.analytics-grid,.analytics-recent-grid{grid-template-columns:1fr}.analytics-wide{grid-column:auto}.analytics-filters .field{flex-basis:calc(50% - 6px)}.analytics-filters .btn{flex:1}.analytics-chart{min-height:185px}.analytics-column-track{height:100px}}
@media(max-width:400px){.analytics-filters .field{flex-basis:100%}.analytics-card .section-head{flex-wrap:wrap}}
@media print{.analytics-filters,.analytics-card .btn,.analytics-hero .btn{display:none}.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.wc-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.wc-hero p,.wc-card p,.wc-card small{line-height:1.65}.wc-hero h1{max-width:760px}.wc-badge{padding:8px 13px;white-space:nowrap;}.wc-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.wc-tabs a{padding:9px 14px;text-decoration:none;}.wc-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(340px,1.5fr);gap:20px;align-items:start}.wc-grid.setup{grid-template-columns:minmax(340px,1.4fr) minmax(260px,1fr)}.wc-card{padding:23px;min-width:0;overflow-wrap:anywhere}.wc-card label{display:block;margin:14px 0 8px}.wc-card :is(input:not([type=checkbox]),textarea,select){display:block;box-sizing:border-box;width:100%;max-width:100%;padding:11px;margin-top:6px;min-width:0}.wc-card textarea{resize:vertical;line-height:1.7}.wc-card .btn{margin-top:9px;white-space:normal;min-height:40px}.wc-card .wc-check{display:flex;align-items:center;gap:9px}.wc-check input{width:17px;height:17px;flex-shrink:0}.wc-inline{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.wc-inline>label{flex:1;min-width:150px}.wc-list{position:sticky;top:95px;max-height:calc(100vh - 130px);overflow:auto}.wc-contact{display:block;padding:15px 2px;text-decoration:none}.wc-contact :is(strong,span,small){display:block}.wc-contact span{margin:5px 0;}.wc-title{display:flex;justify-content:space-between;align-items:start;gap:12px}.wc-warning{padding:12px 14px;margin:14px 0;line-height:1.7;}.wc-section{padding-top:18px;margin-top:23px}.wc-section summary{cursor:pointer;min-height:35px}.wc-event{padding:12px 0;}.wc-event p{white-space:pre-wrap;margin:4px 0;}.wc-record{padding:12px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}.wc-record>small{flex:1}.wc-empty{padding:35px 8px}.wc-card li{margin:12px 0;}.wc-table{overflow:auto}.wc-table table{width:100%;min-width:650px}.wc-table :is(th,td){text-align:left;padding:12px;vertical-align:top}.wc-table td{max-width:350px;overflow-wrap:anywhere}.wc-metrics{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.wc-metrics>div{padding:14px;min-width:140px}.wc-metrics strong{display:block;}#wc-status:not(:empty){padding:12px 16px;margin-bottom:15px;}#wc-qr{padding:16px;display:inline-block;margin:8px 0}#wc-qr :is(canvas,img,svg){max-width:100%;height:auto}.wc-card [hidden]{display:none}.wc-card button:disabled{cursor:not-allowed}@media(max-width:900px){.wc-grid,.wc-grid.setup{grid-template-columns:1fr}.wc-list{position:static;max-height:450px}.wc-hero{display:block}.wc-badge{display:inline-block}.wc-card{padding:17px}.wc-title{flex-wrap:wrap}}@media(max-width:480px){.wc-tabs a{padding:8px 9px}.wc-inline>label{min-width:100%;width:100%}.wc-title h2{overflow-wrap:anywhere}.wc-grid{gap:14px}}@media print{body.wc-print-qr .setup{display:block}body.wc-print-qr #wc-qr{display:block}}


@font-face{src:url(fonts/HankenGrotesk.ttf) format('truetype');}
body{line-height:1.55}
body [hidden]{display:none}
body h1{line-height:1.15;margin:0 0 8px}
body h2{line-height:1.35;}
body .eyebrow{margin-bottom:7px}
body .card{padding:24px;min-width:0}
body .card.table-wrap{padding:0;overflow:auto;}
body :is(.page-hero,.title-row,.feature-hero){margin-bottom:24px;gap:18px;align-items:center}
body .page-hero.px-hero{padding:26px 28px;margin-bottom:24px}
body .wl-company-line{display:none}
body .global-search{max-width:440px}
body .global-search input{min-height:30px;}
body .nav :is(a,summary,.signout-btn){min-height:40px;}
body .nav a:hover{transform:none}
body .nav a.active:before{display:none}
body .nav-ico svg{width:19px;height:19px;stroke-width:1.7}
body .btn{min-height:38px;padding:9px 14px;line-height:1.35;white-space:normal;transition:background .15s,border-color .15s,transform .15s;cursor:pointer}
body .btn:hover{transform:translateY(-1px)}
body .btn-sm{min-height:32px;padding:6px 10px;}
body :is(input,select){min-height:40px}
body input:is([type=checkbox],[type=radio]){min-height:0;accent-color:var(--studio-accent)}
body select{cursor:pointer}
body :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--studio-focus);outline-offset:3px}
body .field label{margin-bottom:7px}
body .form-grid{gap:20px 24px}
body .table{width:100%;min-width:max-content}
body .table :is(th,td){padding:15px 18px;vertical-align:middle;}
body .table th{white-space:nowrap}
body .badge{line-height:1.4;padding:4px 8px;white-space:nowrap}
body :is(.px-metrics,.px-bento){gap:20px}
body .px-metric{padding:22px;position:relative;overflow:hidden}
body .px-metric .value{line-height:1.25;margin:16px 0}
body .px-metric-unit{margin-right:7px;}
body .lead-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:296px;grid-template-columns:none;gap:18px;overflow-x:auto;padding:4px 0 20px;scroll-snap-type:x proximity;scrollbar-width:auto}
body .lead-kanban-column{padding:12px;min-width:0;scroll-snap-align:start}
body .lead-kanban-head{padding:6px 4px 18px;align-items:start;gap:12px}
body .lead-kanban-head>div{min-width:0}
body .px-stage-value{display:block;white-space:normal;line-height:1.5;margin-top:5px}
body .lead-kanban-card{padding:18px;margin-bottom:12px;transition:transform .18s,box-shadow .18s}
body .lead-kanban-card:hover{transform:translateY(-2px)}
body .lead-kanban-card-head{align-items:flex-start;gap:10px}
body .lead-kanban-card-head>a{min-width:0;flex:1}
body .lead-kanban-card-head strong{display:block;overflow-wrap:anywhere}
body .lead-kanban-card p{line-height:1.5;margin:14px 0;overflow-wrap:anywhere}
body .lead-kanban-foot{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:0}
body .lead-kanban-foot strong{white-space:normal;display:block;min-width:0;overflow-wrap:anywhere}
body .lead-kanban-foot span{max-width:100%;white-space:normal;}
body .lead-kanban-card>.actions{margin-top:16px;padding-top:12px;display:flex;gap:8px}
body .lead-kanban-card>.actions select{flex:1;min-width:0}
body .ex-filters{gap:12px;padding:18px;align-items:end}
body .px-pipeline-totals{gap:8px;flex-wrap:wrap;margin:18px 0}
body :is(.ex-drawer,.px-drawer){width:min(620px,100vw);}
body .ex-drawer :is(.ex-drawer-head,.ex-drawer-body){padding:26px}
body .ex-detail-tabs{position:sticky;top:0;z-index:2}
body dialog::backdrop{backdrop-filter:blur(5px)}
body .px-customer-financial{gap:12px}
body .px-financial-grid strong{line-height:1.35}
body .customer-head{margin-bottom:22px}
body .customer-contact{line-height:1.7}
body .customer-kpis{margin-top:20px;grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
body .grid-3:has(.table){grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr))}
body .grid-3:has(.table) .table{min-width:0}
body .grid-3:has(.table) .table :is(th,td){padding:11px 10px}
.studio-workdesk{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;margin-bottom:24px}
.studio-daily-row{display:flex;gap:14px;align-items:center;padding:15px 0;text-decoration:none;}
.studio-daily-row:last-child{padding-bottom:0}.studio-daily-row>div{flex:1;min-width:0}.studio-daily-row strong{display:block;overflow-wrap:anywhere}.studio-daily-row small{display:block;margin-top:3px}.studio-day-icon{display:grid;place-items:center;width:38px;height:38px;flex:none}.studio-day-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.studio-section-label{margin:28px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.studio-section-label h2{margin:0}
.studio-save-notice{padding:12px 16px;margin:0 0 16px;}
.studio-server-pages{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:18px 0;flex-wrap:wrap}.studio-selector-search{display:block;margin:0 0 7px;width:100%;}
.studio-booking-index{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}.studio-booking-index a{padding:8px 12px;text-decoration:none}.studio-form-section{min-width:0;padding:24px 0 12px;margin:0 0 20px;scroll-margin-top:100px}.studio-form-section legend{padding-right:14px;}.studio-form-section h3{margin:24px 0 8px}.studio-booking-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;margin:10px 0 24px}.studio-booking-summary div{min-width:0}.studio-booking-summary dd{margin:5px 0 0;overflow-wrap:anywhere}
body .studio-departures-empty{min-height:105px;padding:20px 8px}.studio-attention{padding-top:16px;margin-top:16px}.studio-attention h3{margin:0 0 10px}.studio-attention .px-alert-row{padding:10px 0;}
.v16-ownership{margin:18px 0}.v16-ownership>summary{cursor:pointer;padding:12px 0}.v16-ownership .actions{padding:14px 0}
body .v16-density-options{display:flex;gap:8px;flex-wrap:wrap}
html[data-density=compact] body .card{padding:18px}html[data-density=compact] body .table :is(th,td){padding:10px 14px}html[data-density=compact] body .studio-daily-row{padding:10px 0}

@media(max-width:1100px){body .company-time-chip{display:none}}
@media(max-width:820px){.studio-workdesk{grid-template-columns:1fr}body .card{padding:18px}body .page-hero.px-hero{padding:22px 20px}body .page-hero{align-items:flex-start}body :is(.page-hero,.title-row,.feature-hero)>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}body :is(.page-hero,.title-row,.feature-hero)>.actions .btn{min-width:0;max-width:100%;min-height:42px;text-align:center;overflow-wrap:anywhere;white-space:normal}body .px-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body .px-metric-foot{flex-wrap:wrap;gap:5px}body .ex-filters{grid-template-columns:repeat(2,minmax(0,1fr))}body .lead-kanban{grid-auto-columns:min(296px,83vw)}body .product-card-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}body .product-card-actions>a.btn{display:flex;align-items:center;justify-content:center;flex:none;width:100%;min-width:0;min-height:42px;white-space:normal}body .product-card-actions form{width:100%;margin:0}body .product-card-actions form .btn{width:100%;min-height:42px}}
@media(max-width:600px){.studio-booking-summary{grid-template-columns:1fr}.studio-form-section .service-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.studio-form-section .service-row>[name="service_desc[]"]{grid-column:1/-1}.studio-booking-index{gap:6px}}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation:none;transition:none;scroll-behavior:auto}}
@media print{.studio-server-pages,.studio-selector-search,.studio-save-notice,.v16-ownership{display:none}}
html[data-motion=reduced] body *,html[data-motion=reduced] body *::before,html[data-motion=reduced] body *::after{animation:none;transition:none;scroll-behavior:auto}


.ws-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 24px;padding:8px;}.ws-tabs a{padding:8px 12px;text-decoration:none;}.ws-workspace{display:grid;gap:22px;min-width:0}.ws-workspace>.card{margin:0}.ws-workspace :is(input,select,textarea){max-width:100%;min-width:0;padding:10px 12px;box-sizing:border-box}.ws-workspace select{cursor:pointer}.ws-workspace input[type=checkbox]{width:17px;height:17px;accent-color:var(--studio-accent);flex:0 0 17px;padding:0}.ws-workspace label{display:grid;gap:7px;min-width:0}.ws-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:end}.ws-form>button{justify-self:start}.ws-full{grid-column:1/-1}.ws-workspace .ws-check{display:flex;align-items:center;gap:9px;min-height:40px}.ws-checkboxes{display:flex;gap:15px;flex-wrap:wrap}.ws-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.ws-toolbar .actions{align-items:end;flex-wrap:wrap}.ws-toolbar .actions>label{max-width:190px}.ws-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ws-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.ws-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.ws-note-grid.ws-list{grid-template-columns:1fr}.ws-note .actions{margin-top:18px;flex-wrap:wrap}.ws-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.ws-item-row,.ws-inbox-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;}.ws-inbox-row .actions{flex-wrap:wrap;flex-shrink:0}.ws-inbox-row h2{margin:6px 0}.ws-workspace small{display:block;margin-top:4px}.ws-workspace table th{white-space:normal}.ws-workspace :is(td,th){max-width:380px;overflow-wrap:anywhere}.ws-report-chart{display:grid;gap:18px}.ws-report-bar>div{display:flex;justify-content:space-between;gap:12px}.ws-report-bar progress{width:100%;height:10px;accent-color:var(--studio-accent);overflow:hidden;}.ws-calendar-scroll{overflow:auto}.ws-time-grid{display:grid;grid-template-columns:repeat(var(--ws-days),minmax(130px,1fr));min-width:calc(var(--ws-days)*130px)}.ws-time-day{padding:12px;min-height:240px;min-width:0}.ws-date-head{display:flex;flex-direction:column;gap:4px;padding-bottom:14px;}.ws-meeting-chip{display:grid;gap:5px;padding:10px;margin:10px 0;text-decoration:none;overflow-wrap:anywhere}.ws-meeting-chip.ws-cancelled{text-decoration:line-through}.ws-month-grid .ws-time-day{min-height:150px}.ws-board{display:flex;overflow:auto;gap:18px;align-items:flex-start;padding-bottom:16px}.ws-board>section{flex:0 0 280px;max-width:90vw}.ws-pipeline-card{padding:16px;margin-top:12px;}.ws-timeline{display:grid;gap:18px}.ws-timeline>section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ws-timeline>section>.section-head,.ws-timeline>section>p{grid-column:1/-1}.ws-age-track{height:8px;margin:12px 0;overflow:hidden}.ws-age-track>span{height:100%;display:block;}.ws-command{position:fixed;inset:10vh auto auto 50%;transform:translateX(-50%);width:min(650px,calc(100vw - 28px));max-height:75vh;overflow:auto;padding:22px;z-index:1003;}.ws-command-backdrop{position:fixed;inset:0;z-index:1002}.ws-command input{width:100%;padding:14px;box-sizing:border-box}.ws-command h3{margin:18px 0 7px}.ws-command a{display:flex;justify-content:space-between;gap:15px;padding:11px;text-decoration:none}.ws-command a:is(:hover,:focus){outline:2px solid var(--studio-accent);}.ws-command-top{display:flex;justify-content:space-between;margin-bottom:15px}.ws-command-close{cursor:pointer;padding:3px 10px}.ws-favorites-rail{margin:10px 0}.ws-favorites-rail a{overflow:hidden;white-space:nowrap}.ws-subscription{max-width:1280px;margin:0 auto}.ws-billing-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ws-billing-kpis>div{padding:20px;min-width:0}.ws-billing-kpis strong{display:block;overflow-wrap:anywhere}.ws-stepper{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.ws-stepper span{padding:7px 10px;}.ws-stepper .is-current{outline:2px solid var(--studio-accent);}.ws-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ws-plan{padding:20px;}.ws-plan ul{padding-left:20px}.ws-plan h3{margin:0}.ws-billing-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.ws-toast{position:fixed;right:24px;bottom:24px;z-index:1500;padding:15px 22px;max-width:calc(100vw - 48px)}
@media(max-width:1050px){.ws-note-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-two{grid-template-columns:1fr}.ws-timeline>section{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-billing-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ws-note-grid,.ws-form,.ws-plans,.ws-timeline>section{grid-template-columns:1fr}.ws-inbox-row{align-items:start;flex-direction:column}.ws-toolbar{align-items:start}.ws-toolbar>.actions,.ws-toolbar>form{width:100%}.ws-tabs{gap:2px}.ws-tabs a{padding:8px}.ws-time-grid{min-width:calc(var(--ws-days)*145px)}.ws-billing-kpis>div{padding:13px}.ws-subscription{width:100%;min-width:0}.ws-command{top:5vh}.ws-billing-nav .btn{white-space:normal}.ws-inbox-row .actions{flex-shrink:1}}
@media(prefers-reduced-motion:no-preference){.ws-pipeline-card,.ws-meeting-chip,.ws-note{transition:box-shadow .18s,transform .18s}.ws-pipeline-card:hover,.ws-meeting-chip:hover{transform:translateY(-2px);}}@media print{.ws-billing-kpis{grid-template-columns:repeat(4,1fr)}}
.ws-facet-options{display:flex;gap:5px 18px;flex-wrap:wrap;max-height:160px;overflow:auto}.ws-workspace fieldset{min-width:0;padding:10px 14px}.ws-workspace legend{padding:0 6px;}.ws-form label>.required-star{display:inline;}.ws-form label:has(>.required-star){position:relative}


.crm-chart{min-width:0;}
.crm-graphs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch;margin-top:18px}
.crm-graph-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.crm-graph-kpis .card{min-width:0;padding:17px}
.crm-graph-kpis .value{overflow-wrap:anywhere;margin:6px 0}
.crm-chart-panel{min-width:0;padding:20px}
.crm-chart-panel-head h2{margin:0 0 5px}
.crm-chart-panel-head p{margin:0 0 16px;line-height:1.5}
.crm-chart-plot{min-width:0;width:100%}
.crm-chart-svg{display:block;width:100%;overflow:visible}
.crm-chart-svg text{fill:var(--ba-muted)}
.crm-chart-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px;}
.crm-chart-controls select{min-width:0;width:auto;max-width:100%;padding:5px 8px;min-height:32px}
.crm-chart-controls output{overflow-wrap:anywhere}
.crm-chart-legend{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:9px;}
.crm-chart-legend span{display:flex;align-items:center;gap:6px}
.crm-chart-legend i{height:8px;width:8px;flex-shrink:0}
.crm-chart-bar-row{display:grid;grid-template-columns:minmax(70px,.7fr) minmax(30px,1fr) minmax(55px,.4fr);gap:10px;align-items:center;margin:12px 0;}
.crm-chart-bar-row>span{overflow-wrap:anywhere}
.crm-chart-bar-row strong{text-align:right;overflow-wrap:anywhere}
.crm-chart-bar-track{height:12px;overflow:hidden}
.crm-chart-bar-track i{display:block;height:100%;}
.crm-chart-empty{min-height:150px;display:grid;place-items:center;text-align:center;padding:20px}
.crm-chart-values{margin-top:8px;}
.crm-chart-values summary{cursor:pointer;min-height:30px;padding:5px 0}
.crm-chart-table-wrap{overflow-x:auto;max-width:100%}
.crm-chart-table{width:100%;}
.crm-chart-table :is(th,td){padding:8px;text-align:left}
.crm-chart-table td:not(:first-child){text-align:right;white-space:nowrap}
.crm-chart-donut-row{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.crm-chart-donut{height:150px;width:150px;position:relative;flex-shrink:0}
.crm-chart-donut:after{content:"";position:absolute;inset:27px;}
.crm-chart-donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1;}
.crm-chart-donut-key{min-width:135px;flex:1}
.crm-chart-donut-key>div{display:flex;justify-content:space-between;gap:12px;margin:9px 0;}
.crm-chart-donut-key span{overflow-wrap:anywhere}
.crm-chart-donut-key i{display:inline-block;width:8px;height:8px;margin-right:6px}
.crm-chart-tooltip{position:fixed;z-index:5000;max-width:min(380px,calc(100vw - 16px));padding:9px 12px;pointer-events:none;}
.metric:has(.crm-mini-chart){display:grid;grid-template-columns:35px minmax(0,1fr);gap:10px}
.metric:has(.crm-mini-chart)>div:nth-child(2){min-width:0}
.crm-mini-chart{grid-column:1/-1;width:100%;align-self:end}
.crm-mini-chart .crm-chart-plot{height:45px}
.crm-mini-chart .crm-chart-empty{height:45px;min-height:45px;padding:0}
.crm-mini-caption{display:block;margin-top:5px}
.crm-chart-hit{cursor:pointer}
@media(max-width:1100px){.crm-graph-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.crm-graphs-grid{grid-template-columns:1fr}.crm-chart-panel{padding:16px}}
@media print{.crm-chart-controls,.crm-chart-tooltip{display:none}.crm-chart-panel{break-inside:avoid}.crm-chart-values{display:block}.crm-graphs-grid{grid-template-columns:1fr 1fr}}
.crm-chart-controls[hidden],.crm-chart-tooltip[hidden]{display:none}
.metric:has(.crm-mini-chart) .value{overflow-wrap:anywhere}

/* ByAir 18 — independent Rapport-inspired design system. No legacy visual layers. */
@font-face{font-family:Desk;src:url(fonts/HankenGrotesk.ttf) format('truetype');font-display:swap}
:root{--canvas:#101512;--surface:#202622;--soft:#2a302b;--ink:#f3f0e8;--muted:#b4b9b0;--line:#ffffff17;--strong:#ffffff36;--accent:#e0582d;--green:#315f53;--yellow:#f0ca54;--danger:#ff9e91;--success:#a3dac5;--warning:#f4d88d;--radius:28px;--sidebar-w:94px;--topbar-h:100px;--shadow:0 14px 40px #00000014;color-scheme:dark}
html[data-theme=light]{--canvas:#f1eee5;--surface:#fffdf5;--soft:#e8e5dc;--ink:#202421;--muted:#555e56;--line:#253b251f;--strong:#293d2945;--danger:#a62f27;--success:#216047;--warning:#7b5511;color-scheme:light}
:root{--primary:var(--ink);--primary-700:var(--ink);--primary-50:var(--soft);--success-bg:var(--soft);--danger-bg:var(--soft);--warning-bg:var(--soft);--line-soft:var(--line);--muted-2:var(--muted);--ba-text:var(--ink);--ba-muted:var(--muted);--ba-bg:var(--canvas);--ba-surface:var(--surface);--ba-panel:var(--soft);--ba-line:var(--line);--ba-primary:var(--accent);--ba-link:var(--accent);--ba-green:var(--green);--ba-blue:#7dafa9;--ba-amber:var(--yellow);--ba-red:var(--danger);--ba-popover-shadow:var(--shadow);--px-bg:var(--canvas);--px-panel:var(--surface);--px-elevated:var(--soft);--px-text:var(--ink);--px-muted:var(--muted);--px-line:var(--line);--px-accent:var(--accent);--px-accent-text:#fff;--px-accent-soft:var(--soft);--px-good:var(--success);--px-bad:var(--danger);--studio-text:var(--ink);--studio-muted:var(--muted);--studio-panel:var(--surface);--studio-soft:var(--soft);--studio-line:var(--line);--studio-accent:var(--accent);--v16-mint:var(--soft);--v16-yellow:var(--soft);--v16-peach:var(--soft)}
html[data-accent=ocean]{--accent:#328baf;--green:#245d70}html[data-accent=plum]{--accent:#a568c0;--green:#694d79}html[data-accent=ember]{--accent:#e0582d}
*{box-sizing:border-box}html{background:var(--canvas);scrollbar-color:var(--strong) transparent;scrollbar-width:thin;scroll-padding-top:110px}body{margin:0;font:14px/1.55 Desk,'Segoe UI',sans-serif;color:var(--ink);background:radial-gradient(ellipse at 15% 0%,#8c371c40,transparent 42%),radial-gradient(ellipse at 85% 90%,#2b68584d,transparent 45%),var(--canvas);background-attachment:fixed;min-height:100vh;-webkit-font-smoothing:antialiased}html[data-theme=light] body{background:radial-gradient(ellipse at 15% 0%,#e5bba780,transparent 45%),radial-gradient(ellipse at 70% 5%,#e9dca766,transparent 42%),radial-gradient(ellipse at 90% 90%,#b5d3bf55,transparent 45%),var(--canvas);background-attachment:fixed}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button,summary,select{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{max-width:100%}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:clamp(28px,3vw,44px);line-height:1.12;letter-spacing:-.045em;font-weight:600;margin:0}h2{font-size:20px;line-height:1.3;letter-spacing:-.025em;font-weight:600;margin:0 0 14px}h3{font-size:17px;font-weight:600;margin:0 0 12px}p{margin:8px 0 16px}small,.small{font-size:12px}.mini{font-size:11px}.muted,.sub,.hint{color:var(--muted)}.sub{margin-top:10px;font-size:13px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin-bottom:7px}.sr-only,.shortcut-hint{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;left:12px;top:-60px;z-index:5000;padding:12px;background:var(--surface)}.skip-link:focus{top:12px}
/* Stable shell: top sections and an overlaying expanding utility rail. */
.layout{min-height:100vh}.main{margin-left:100px;min-width:0}.topbar{height:100px;display:flex;align-items:center;gap:22px;padding:0 32px 0 8px;position:relative;z-index:40}.r18-brand{display:flex;align-items:center;gap:12px;min-width:150px;max-width:230px;flex:0 0 auto}.r18-brand-mark{height:48px;width:48px;display:grid;place-items:center;border-radius:16px;color:var(--canvas);background:var(--ink);font-size:28px;flex-shrink:0}.r18-brand strong{font-size:20px;line-height:1.15;letter-spacing:-.04em;overflow-wrap:anywhere}.r18-primary{display:flex;gap:5px;align-items:center;flex:1;justify-content:center;min-width:0}.r18-primary a{padding:11px 15px;border-radius:30px;font-weight:600;white-space:nowrap;font-size:13px;transition:background .18s,color .18s}.r18-primary a:hover{background:var(--soft)}.r18-primary a[aria-current]{background:var(--ink);color:var(--canvas)}.top-left,.top-brand-icon,.top-title,.top-sub,.global-search,.company-time-chip,.top-actions>.quick-add,.account-identity,.profile-chip-arrow{display:none}.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.top-actions button,.notification-center>summary,.account-trigger,.theme-toggle-floating{height:44px;width:44px;border:1px solid var(--line);border-radius:50%;background:var(--soft);display:grid;place-items:center;padding:0;position:relative}.theme-label{display:none}.theme-icon{font-size:20px}.avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-size:18px}.avatar img{height:100%;width:100%;border-radius:50%;object-fit:cover}.notification-center,.account-menu,.quick-add{position:relative}summary{list-style:none}summary::-webkit-details-marker{display:none}.notification-count{position:absolute;right:0;top:-4px;border-radius:20px;background:var(--accent);color:#fff;font-size:10px;padding:1px 5px}.notification-popover,.account-popover,.quick-menu{position:absolute;right:0;top:54px;width:330px;max-width:calc(100vw - 24px);border:1px solid var(--strong);border-radius:24px;background:var(--surface);padding:16px;box-shadow:0 20px 80px #0005;max-height:75vh;overflow:auto;z-index:90}.account-popover nav{display:grid;gap:4px}.account-popover a,.quick-menu a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px}.account-popover a:hover,.quick-menu a:hover{background:var(--soft)}.account-heading,.notification-head{padding:4px 8px 14px;border-bottom:1px solid var(--line);margin-bottom:8px}.account-heading strong,.account-heading small,.notification-head small{display:block}.account-heading small,.notification-head small{color:var(--muted)}.account-logout{margin-top:12px}.account-logout button{width:100%;border:1px solid var(--line);border-radius:18px;padding:10px;background:var(--soft)}.notification-item{display:flex;gap:10px;padding:12px 5px;border-bottom:1px solid var(--line)}.notification-item strong,.notification-item small{display:block}.notification-item small{color:var(--muted)}.notification-empty{padding:20px}.notification-dot{width:7px;height:7px;margin-top:8px;border-radius:50%;background:var(--accent);flex-shrink:0}.notification-arrow{margin-left:auto}
.sidebar{position:fixed;z-index:70;left:20px;top:130px;bottom:26px;width:64px;border-radius:40px;background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid var(--line);box-shadow:var(--shadow);padding:15px 8px;overflow:hidden;transition:width .22s cubic-bezier(.2,.7,.3,1),border-radius .22s}.sidebar:hover,.sidebar:focus-within{width:258px;border-radius:28px;overflow-y:auto;scrollbar-width:thin}.sidebar .brand-wrap{display:none}.sidebar .nav{display:flex;flex-direction:column;gap:3px}.nav a,.signout-btn,.simple-maintenance summary{display:flex;align-items:center;gap:14px;min-height:42px;padding:9px 13px;border-radius:18px;color:var(--muted);border:0;background:transparent;white-space:nowrap;position:relative;flex-shrink:0}.nav a:hover,.nav a.active,.signout-btn:hover{color:var(--ink);background:var(--soft)}.nav a.active .nav-ico{color:var(--accent)}.nav-ico{width:20px;height:22px;flex-shrink:0}.nav-ico svg{width:20px;height:22px}.nav-label{visibility:hidden;opacity:0;transition:opacity .15s;flex:1;font-size:13px}.sidebar:is(:hover,:focus-within,.open) .nav-label{visibility:visible;opacity:1}.nav .sep{height:1px;background:var(--line);overflow:hidden;font-size:0;margin:9px 8px}.sidebar:is(:hover,:focus-within,.open) .sep{height:auto;background:none;font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin:14px 12px 6px}.nav-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.r18-rail-tools{display:grid;gap:4px;margin-bottom:5px}.r18-rail-tools>*{width:46px;height:38px;border:0;border-radius:16px;display:grid;place-items:center;background:transparent;color:var(--muted);font-size:24px}.r18-rail-tools>*:hover{background:var(--soft);color:var(--ink)}.signout-btn{width:100%}.simple-maintenance summary{padding-left:13px}.sidebar-backdrop{display:none}.mobile-toggle{display:none}.content{padding:20px 32px 64px 8px;max-width:1800px;margin:auto;min-width:0;outline:none}.wl-company-line,.brand-logo-sidebar-icon{display:none}.r18-breadcrumb{display:none}.wl-license-banner,.flash{padding:13px 18px;border:1px solid var(--line);border-radius:18px;background:var(--soft);margin-bottom:18px}.wl-license-banner a{text-decoration:underline}.flash.error{border-color:var(--danger);color:var(--danger)}.flash.success{border-color:var(--success)}.page-hero,.title-row,.wc-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:12px 0 30px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn,.chip-btn,.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;min-height:42px;border-radius:999px;border:1px solid var(--strong);background:transparent;font-weight:500;font-size:13px;line-height:1.35;cursor:pointer;text-align:center;transition:background .16s,transform .16s;overflow:hidden}.btn:hover{background:var(--soft);transform:translateY(-1px)}.btn-primary,.btn-teal{background:var(--ink);border-color:var(--ink);color:var(--canvas)}.btn-primary:hover{background:var(--ink);filter:brightness(.93)}.btn-danger{color:var(--danger);border-color:var(--danger)}.btn-sm{min-height:32px;padding:6px 12px;font-size:12px}.icon-btn,.px-icon-link{width:40px;height:40px;border:1px solid var(--strong);border-radius:50%;display:inline-grid;place-items:center}.text-link{font-size:12px;color:var(--muted);white-space:nowrap}.text-link:hover{color:var(--ink)}.btn-ripple{display:none}
/* Panels, data tables and forms share one set of tokens. */
.card,.wc-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:color-mix(in srgb,var(--surface) 87%,transparent);box-shadow:var(--shadow);margin-bottom:20px}.card .card{box-shadow:none}.card h3{margin-top:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.section-head h2{margin:0}.grid-2,.ws-two,.workspace-split,.studio-workdesk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.grid-3,.ws-note-grid,.analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.cards,.kpi-cards,.crm-graph-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0}.metric .label{color:var(--muted);font-size:12px}.metric .value{font-size:30px;font-weight:600;letter-spacing:-.04em;overflow-wrap:anywhere}.metric-link{display:flex;gap:14px;align-items:center}.metric-icon{width:44px;height:44px;background:var(--soft);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.right{text-align:right}.profit{color:var(--success)}.loss{color:var(--danger)}.pill,.badge,.px-chip,.wc-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:30px;background:var(--soft);color:var(--ink);font-size:11px;line-height:1.5;max-width:100%}.badge.good{color:var(--success)}.badge.bad{color:var(--danger)}.badge.warn{color:var(--warning)}.badge.gray{color:var(--muted)}.table-wrap,.table-scroll,.ex-table-scroll,.wc-table{max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.table,.wc-table table{width:100%;border-collapse:collapse;font-size:13px}.table th,.wc-table th{text-align:left;font-size:11px;font-weight:500;color:var(--muted);padding:15px 13px;border-bottom:1px solid var(--line);white-space:nowrap}.table td,.wc-table td{padding:17px 13px;border-bottom:1px solid var(--line);vertical-align:middle;max-width:380px;overflow-wrap:anywhere}.table td:last-child{min-width:100px}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:color-mix(in srgb,var(--soft) 60%,transparent)}.table td a:not(.btn){font-weight:600}.table td .actions{min-width:140px}.clickable-row{cursor:pointer}.empty,.empty-state,.ex-table-empty{padding:34px 20px;text-align:center;color:var(--muted)}.empty-state{display:grid;gap:10px;min-height:120px;place-content:center}.empty-state strong{color:var(--ink);font-weight:500}.empty-state span{font-size:13px}.tabs,.simple-module-nav,.ws-tabs,.wc-tabs,.px-drawer-tabs,.view-toggle,.px-segments{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:5px;background:color-mix(in srgb,var(--soft) 75%,transparent);border-radius:25px;margin:0 0 22px;width:fit-content;max-width:100%}.tabs a,.ws-tabs a,.wc-tabs a,.px-drawer-tabs button,.px-segments a{padding:9px 16px;border-radius:25px;background:transparent;border:0;color:var(--muted);font-size:13px;white-space:nowrap}.tabs a.active,.ws-tabs a[aria-current],.wc-tabs a.selected,.px-drawer-tabs [aria-selected=true],.px-segments .active{background:var(--ink);color:var(--canvas)}.tab-count{font-size:11px;margin-left:5px}.form-grid,.ws-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.field,.ws-form>label{min-width:0;margin-bottom:4px}.full,.ws-full{grid-column:1/-1}.field label,.ws-form>label,.wc-card label{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.field :is(input,select,textarea),.ws-form :is(input,select,textarea),.wc-card :is(input,select,textarea){display:block;width:100%}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{max-width:100%;min-width:0;border:1px solid var(--strong);border-radius:14px;background:var(--surface);color:var(--ink);padding:11px 14px;min-height:44px;outline-offset:2px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}select option{background:var(--surface);color:var(--ink)}textarea{resize:vertical;min-height:100px}input[type=checkbox],input[type=radio]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}label:has(>input[type=checkbox]){display:flex;gap:10px;align-items:center}fieldset{border:1px solid var(--line);border-radius:22px;padding:22px;min-width:0;margin:18px 0}legend{padding:0 10px;font-weight:600}.required-star{color:var(--danger);margin-left:3px}.field-error,.field-help-error{color:var(--danger);font-size:12px}.form-validation-summary{display:none}.form-validation-summary.show,.studio-save-notice{display:block;padding:12px;border-radius:14px;border:1px solid var(--danger);margin-bottom:16px}.searchbar,.ex-filters,.analytics-filters,.ex-toolbar,.ws-toolbar,.px-dashboard-toolbar,.px-calendar-month{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:22px}.searchbar input,.ex-filters input{flex:1;min-width:140px}.ex-filters .field,.analytics-filters .field{flex:1;min-width:130px}.px-dashboard-toolbar{justify-content:space-between}.px-currency-form{display:flex;gap:8px;align-items:center}.px-currency-form label{font-size:12px;color:var(--muted)}.px-currency-form select{margin-left:8px;max-width:170px}.px-segments{margin:0}.simple-module-nav .btn{border:0}.ex-pagination,.crm-table-pagination,.crm-list-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.ex-pagination a{padding:8px 13px;border:1px solid var(--line);border-radius:20px}.crm-table-tools{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.crm-table-tools input{max-width:280px}
/* Overview composition. */
.px-hero .eyebrow{display:none}.px-hero{margin:8px 0 25px}.px-hero h1{max-width:280px}.studio-section-label{display:none}.px-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:8px 0 32px}.px-metric.card{background:transparent;border:0;border-radius:0;padding:4px 12px 4px 0;margin:0;box-shadow:none}.px-metric-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px}.px-metric-icon{height:44px;width:44px;border:1px solid var(--line);background:var(--soft);border-radius:50%;display:grid;place-items:center}.px-metric .value{font-size:34px;font-weight:600;letter-spacing:-.04em;white-space:normal;overflow-wrap:anywhere;line-height:1.2;margin:6px 0 10px}.px-metric-unit{font-size:12px;color:var(--muted);letter-spacing:0;margin-right:7px}.px-metric-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px}.px-metric-foot small{font-size:11px;color:var(--muted)}.px-delta{background:var(--green);color:#fff;border-radius:20px;padding:4px 8px}.px-delta.negative{background:#803f2d}.px-bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:stretch}.px-bento>.card{margin:0}.px-span-8{grid-column:span 8}.px-span-4{grid-column:span 4}.px-revenue{grid-column:span 7}.r18-hot{grid-column:span 5}.px-revenue-total{font-size:clamp(30px,3.6vw,54px);font-weight:500;letter-spacing:-.05em;margin:18px 0 24px}.px-revenue-total small{font-size:12px;letter-spacing:0;display:block;color:var(--muted);margin-top:8px}.px-hot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.px-hot-list>a{background:var(--green);color:#fff;border-radius:25px;padding:21px;display:flex;flex-direction:column;gap:18px;min-height:210px;position:relative}.px-hot-list>a:nth-child(2n){background:#c84620}.px-hot-list .px-avatar{position:absolute;bottom:20px;right:18px;background:#ffffff25;color:#fff}.px-hot-list>a>span:nth-child(2){margin-bottom:auto}.px-hot-list strong{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}.px-hot-list small{display:block;font-size:12px;opacity:.9;margin-top:5px}.px-hot-list>a>span:last-child strong{font-size:21px;max-width:calc(100% - 28px)}.px-avatar,.ex-avatar{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;background:var(--soft);flex-shrink:0}.px-pipeline-track{display:flex;height:52px;gap:5px;border-radius:16px;overflow:hidden;margin:25px 0}.px-pipeline-track>a{min-width:8px}.px-stage-new{background:var(--yellow)}.px-stage-contacted{background:#8eaa93}.px-stage-qualified,.px-stage-won{background:var(--green)}.px-stage-quoted{background:var(--accent)}.px-stage-lost{background:#7d7772}.px-pipeline-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;font-size:12px}.px-pipeline-legend a{display:flex;gap:7px;align-items:center}.px-pipeline-legend strong{margin-left:auto}.px-pipeline-legend i,.px-task-legend i{width:8px;height:8px;display:inline-block;border-radius:50%;flex-shrink:0}.px-pipeline-stats{display:flex;gap:24px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.px-pipeline-stats small{display:block;color:var(--muted)}.px-pipeline-stats strong{display:block;font-size:22px;margin-top:6px}.px-gauge{position:relative;width:min(100%,250px);margin:24px auto 10px}.px-gauge svg{width:100%;height:auto;stroke-width:12}.px-gauge-track{stroke:var(--soft)}.px-gauge-fill{stroke:var(--yellow)}.px-gauge>div{position:absolute;bottom:0;width:100%;text-align:center}.px-gauge strong{font-size:38px;display:block;line-height:1.1}.px-gauge small{color:var(--muted)}.px-task-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:11px;margin-top:20px}.px-task-legend span{display:flex;gap:5px;align-items:center}.px-focus-card{background:var(--green)!important;color:#fff}.px-focus-card :is(.eyebrow,.muted){color:#d5e7df}.px-focus-card input{background:#ffffff16;border-color:#ffffff40;color:#fff;width:100%}.px-focus-card input::placeholder{color:#d5e7df}.px-timer{font-size:44px;font-variant-numeric:tabular-nums;letter-spacing:-.04em;margin:26px 0}.px-timer-controls{display:flex;gap:8px;flex-wrap:wrap}.px-timer-controls .btn{color:#fff;border-color:#ffffff50}.px-timer-controls .btn-primary{background:#f3f0e8;color:#263c33}.px-next h3{font-size:24px}.px-next-time{color:var(--muted);font-size:12px;margin:22px 0 10px}.px-agenda-list>a,.studio-daily-row,.px-leaderboard>a{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.studio-daily-row>div,.px-leaderboard>a>div{flex:1;min-width:0}.studio-daily-row strong,.studio-daily-row small,.px-agenda-list strong,.px-agenda-list small{display:block}.studio-daily-row small,.px-agenda-list small{color:var(--muted);margin-top:5px}.studio-day-icon{width:40px;height:40px;border-radius:50%;background:var(--soft);display:grid;place-items:center;flex-shrink:0}.studio-workdesk{margin-top:22px}.studio-attention{margin-top:20px}.px-alert-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.px-alert-row.bad{color:var(--danger)}.px-leader-track,.analytics-bar-track{display:block;height:7px;background:var(--soft);border-radius:10px;margin:9px 0;overflow:hidden}.px-leader-track i,.analytics-bar-track i{height:100%;background:var(--accent);display:block;border-radius:10px}.px-leaderboard strong{font-size:13px}.px-rank{color:var(--muted);width:18px}.px-data-note{font-size:12px;color:var(--muted);margin:24px 0}
/* New shared component skin. */
.ex-modal,.material-picker,.app-modal-panel,.ws-command{background:var(--surface);color:var(--ink);border:1px solid var(--strong);border-radius:26px;box-shadow:0 24px 90px #0005}dialog::backdrop,.app-modal-backdrop,.ws-command-backdrop{background:#0008;backdrop-filter:blur(4px)}.ex-modal{width:min(600px,calc(100vw - 24px));padding:26px;max-height:90vh;overflow:auto}.ex-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(600px,100vw);height:100vh;max-height:100vh;border-radius:28px 0 0 28px}.ex-drawer header,.app-modal-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px}.ex-detail-summary{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:14px;border:1px solid var(--line);border-radius:20px;padding:20px;margin:20px 0}.ex-detail-summary strong{overflow-wrap:anywhere}.ex-activity{padding:16px 0;border-bottom:1px solid var(--line)}.ex-activity small{display:block;color:var(--muted)}.ex-note-text{white-space:pre-wrap}.ex-tabs,.px-drawer-tabs,.px-settings-tabs,.ws-tabs,.wc-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.ex-tabs button,.px-drawer-tabs button,.px-settings-tabs button,.ws-tabs a,.wc-tabs a{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:24px;padding:9px 16px}.ex-tabs [aria-selected=true],.px-drawer-tabs [aria-selected=true],.px-settings-tabs [aria-selected=true],.ws-tabs .active,.wc-tabs .active{background:var(--ink);color:var(--canvas)}.ex-toast,.px-toast,.px-network-banner,.r18-route-error{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--strong);padding:16px 24px;border-radius:18px;box-shadow:var(--shadow);z-index:2600}.r18-route-error{display:flex;gap:12px;align-items:center}.r18-loading:before,.request-progress.active{content:'';position:fixed;z-index:3000;left:0;top:0;height:3px;width:100%;background:var(--accent);animation:r18pulse 1s ease-in-out infinite}@keyframes r18pulse{50%{opacity:.35}}.request-progress:not(.active){display:none}.app-toast-host{position:fixed;right:24px;bottom:24px;width:min(400px,calc(100vw - 32px));display:grid;gap:8px;z-index:2600}.app-toast,.request-slow-note{padding:16px 22px;background:var(--surface);border:1px solid var(--strong);border-radius:18px;box-shadow:var(--shadow)}.request-slow-note{position:fixed;bottom:24px;left:24px;z-index:2600;max-width:440px}.request-slow-note strong{display:block}.byair-offline-banner{display:none}.byair-offline-banner.show{display:block;position:fixed;bottom:0;left:0;right:0;padding:12px;background:var(--surface);color:var(--danger);z-index:3000;text-align:center}.app-modal{display:none;position:fixed;inset:0;z-index:1000;overflow:auto;padding:30px 12px}.app-modal.open{display:grid;place-items:center}.app-modal-backdrop{position:fixed;inset:0}.app-modal-panel{position:relative;z-index:1;width:min(760px,100%);padding:28px}.app-modal-sm{max-width:460px}.icon-btn{border:1px solid var(--line);background:var(--soft);border-radius:50%;width:36px;height:36px}.ex-icon-label{display:flex;align-items:center;gap:10px}.ex-semantic-icon{display:inline-flex}.ex-semantic-icon svg{width:20px;height:20px}h1 .ex-semantic-icon,.px-hero .ex-semantic-icon{display:none}.btn .ex-semantic-icon{margin-right:6px}.ex-filters{display:flex;gap:14px;flex-wrap:wrap;align-items:end}.ex-filters label{display:grid;gap:7px;flex:1;min-width:120px;color:var(--muted);font-size:12px}.ex-filters label:first-of-type{flex:2;min-width:190px}.ex-filters input,.ex-filters select{color:var(--ink)}.px-pipeline-totals{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.px-pipeline-totals>span{display:flex;gap:16px;align-items:center;border:1px solid var(--line);padding:8px 14px;border-radius:24px;font-size:12px;color:var(--muted)}.px-pipeline-totals strong{color:var(--ink)}.view-toggle{display:inline-flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:24px}.view-toggle a{padding:7px 16px;border-radius:20px}.view-toggle .active{background:var(--ink);color:var(--canvas)}.lead-kanban,.ex-board{display:flex;gap:18px;overflow:auto;align-items:flex-start;padding-bottom:20px;max-width:100%}.lead-kanban-column{flex:1 0 280px;max-width:340px;min-width:0;border:1px solid var(--line);border-radius:26px;padding:16px;background:color-mix(in srgb,var(--surface) 70%,transparent)}.lead-kanban-head{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:15px}.lead-kanban-list{display:grid;gap:12px;min-height:120px}.lead-kanban-card{background:var(--soft);border:1px solid var(--line);border-radius:22px;padding:20px;min-width:0}.lead-kanban-head>div{min-width:0}.lead-kanban-head strong{font-size:14px}.px-stage-value{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.lead-kanban-head>[data-ex-count]{border:1px solid var(--line);border-radius:50%;min-width:28px;height:28px;display:grid;place-items:center;font-size:12px}.lead-kanban-card-head{display:flex;gap:10px;align-items:start;flex-wrap:wrap}.lead-kanban-card-head>a{flex:1;min-width:120px}.lead-kanban-card-head strong{display:block;font-size:16px;line-height:1.4}.lead-kanban-card-head small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.lead-kanban-card-head>.badge{flex:0 0 auto;font-size:10px;padding:3px 7px}.lead-kanban-foot{display:grid;gap:8px}.lead-kanban-foot>strong{font-size:20px;letter-spacing:-.03em;margin:4px 0}.lead-kanban-foot>span,.lead-kanban-card p{font-size:11px;color:var(--muted)}.lead-kanban-card[data-ex-status=new]{border-top:2px solid var(--yellow)}.lead-kanban-card[data-ex-status=quoted]{border-top:2px solid var(--accent)}.lead-kanban-card[data-ex-status=won]{border-top:2px solid var(--success)}.lead-kanban-card .actions select{min-width:0;flex:1}.lead-kanban-card .actions{display:flex;gap:8px;margin-top:16px}.lead-kanban-list:empty:after{content:'No records in this stage';display:block;padding:28px 10px;color:var(--muted);font-size:12px;text-align:center}
.crm-combobox{position:relative;display:flex;align-items:center;min-width:0}.crm-combobox>select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.crm-combobox-input{padding-right:44px!important}.crm-combobox-trigger{position:absolute;right:3px;top:3px;bottom:3px;width:38px;display:grid;place-items:center;background:transparent;border:0;border-radius:16px}.crm-combobox-trigger svg{width:16px;height:16px}.crm-combobox-menu{position:fixed;z-index:1800;background:var(--surface);border:1px solid var(--strong);border-radius:16px;padding:6px;box-shadow:0 16px 50px #0004;overflow:auto;display:none}.crm-combobox-menu.is-open{display:block}.crm-combobox-option{display:block;width:100%;padding:11px;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--ink);font-size:13px}.crm-combobox-option:hover,.crm-combobox-option.active{background:var(--soft)}.crm-combobox-empty{padding:14px;color:var(--muted)}.date-field{display:block;position:relative;min-width:0}.date-field input{width:100%;padding-right:44px}.date-field input::-webkit-calendar-picker-indicator{opacity:0}.date-picker-trigger{position:absolute;right:4px;top:4px;bottom:4px;width:36px;border:0;background:transparent;border-radius:14px;display:grid;place-items:center}.date-picker-trigger svg{width:18px;height:18px}.material-picker{padding:0!important;width:370px;max-width:calc(100vw - 24px);max-height:90vh;overflow:auto}.picker-banner{padding:24px 24px 16px;background:var(--green);color:#fff}.picker-caption{font-size:12px;opacity:.8}.picker-title{font-size:28px;margin-top:6px}.picker-body{padding:18px}.picker-tabs,.picker-footer,.picker-month-bar{display:flex;align-items:center;gap:8px}.picker-tabs{margin-top:14px}.material-picker button{border:0;background:transparent;color:inherit;border-radius:50%;padding:8px;min-width:32px;min-height:32px}.material-picker button:hover{background:var(--soft)}.picker-tabs button{border-radius:20px}.picker-tabs [aria-selected=true]{background:#ffffff25}.picker-month-bar select{width:auto;flex:1;min-width:0;padding:8px}.picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:18px;text-align:center}.picker-day{aspect-ratio:1}.picker-weekday{font-size:11px;color:var(--muted);padding:8px}.picker-day[aria-selected=true],.clock-number[aria-pressed=true],.picker-period [aria-pressed=true],.picker-month-option[aria-pressed=true]{background:var(--ink)!important;color:var(--canvas)!important}.picker-day.today{box-shadow:inset 0 0 0 1px var(--accent)}.picker-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}.picker-month-option{border-radius:14px!important}.picker-footer{padding:0 18px 18px;justify-content:flex-end}.picker-footer button{border-radius:18px;padding:10px 16px}.picker-footer button:last-child{background:var(--ink);color:var(--canvas)}.picker-clear{margin-right:auto}.picker-error{color:var(--danger);font-size:12px;padding:0 18px}.picker-time-row{display:flex;align-items:center;gap:6px}.picker-time-part{flex:1;min-width:0;text-align:center}.picker-time-part input{text-align:center;font-size:24px;padding:8px}.picker-time-part label{font-size:11px;color:var(--muted)}.picker-time-colon{font-size:24px}.picker-period{display:grid;gap:4px}.picker-period button{border-radius:10px}.picker-clock{position:relative;width:240px;height:240px;border-radius:50%;background:var(--soft);margin:24px auto 12px}.clock-number{position:absolute;transform:translate(-50%,-50%);z-index:2}.clock-hand{position:absolute;left:119px;top:26px;width:2px;height:94px;transform-origin:50% 100%;background:var(--accent)}.clock-center{position:absolute;left:117px;top:117px;width:6px;height:6px;border-radius:50%;background:var(--accent)}.picker-clock-hint{font-size:11px;text-align:center;color:var(--muted)}
html[data-theme] .crm-chart-svg{height:auto;width:100%;stroke:none}html[data-theme] .crm-chart-svg text{fill:var(--muted);font:11px Desk,sans-serif}.crm-chart-tooltip{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:12px}.crm-chart-legend i{border-radius:4px}.crm-chart-control{border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);padding:5px 10px}.crm-chart-bar-track{background:var(--soft);border-radius:8px}.crm-chart-bar-track i{border-radius:8px}.px-hot-list>a:nth-child(n+5){display:none}h1[tabindex='-1']:focus{outline:none}.lead-reminder-popup{position:fixed;right:24px;bottom:24px;width:340px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto;background:var(--surface);border:1px solid var(--strong);border-radius:24px;box-shadow:0 20px 70px #0005;padding:20px;z-index:95}.lead-reminder-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.lead-reminder-head small,.lead-reminder-person span{display:block;color:var(--muted);font-size:11px}.lead-reminder-minimize{margin-left:auto;border:0;background:var(--soft);border-radius:50%;width:28px;height:28px}.lead-reminder-slide:not(.active){display:none}.lead-reminder-overdue{color:var(--danger);font-size:12px;margin:10px 0}.lead-reminder-person strong{font-size:16px}.lead-reminder-meta,.lead-reminder-actions,.lead-reminder-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.lead-reminder-meta{font-size:11px;color:var(--muted)}.lead-reminder-latest{font-size:12px;background:var(--soft);padding:10px;border-radius:12px;margin:10px 0}.lead-reminder-latest b,.lead-reminder-latest span{display:block}.lead-reminder-more{font-size:12px}.lead-reminder-snooze button,.lead-reminder-nav button{border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:6px 10px}.lead-reminder-snooze{margin-top:12px}.lead-reminder-nav{justify-content:space-between;font-size:12px;align-items:center}.required-star{color:var(--danger)}.form-error-summary:not(.show){display:none}.form-error-summary.show,.studio-save-notice{padding:14px;border:1px solid var(--danger);border-radius:14px;margin:12px 0}.has-error input,.has-error select{border-color:var(--danger)}
.profile-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:24px}.profile-identity-large{display:flex;gap:18px;align-items:center}.profile-avatar-xl{width:70px;height:70px;border-radius:24px;display:grid;place-items:center;font-size:28px;background:var(--green);color:#fff}.profile-avatar-xl img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-details strong,.profile-details span{display:block}.profile-details span{color:var(--muted);font-size:12px}.profile-photo-preview{display:flex;gap:16px;margin-bottom:18px;align-items:center}.profile-photo-preview .staff-avatar{width:56px;height:56px;border-radius:20px;display:grid;place-items:center;background:var(--soft);font-size:24px}.profile-photo-form{display:flex;gap:16px;flex-wrap:wrap;align-items:end}.profile-photo-form>.field{flex:1;min-width:0}.feature-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.feature-list-row{display:flex;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.feature-list-row>div{min-width:0}.feature-list-row small{display:block;color:var(--muted)}.feature-list-icon{flex-shrink:0}.task-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.task-actions form{display:flex;gap:8px;flex-wrap:wrap}.fw-status{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:4px 9px;font-size:11px;background:var(--soft)}.fw-approved,.fw-done{color:var(--success)}.fw-rejected,.fw-cancelled{color:var(--danger)}.fw-high{color:var(--warning)}.ex-team-card,.ex-customer-card,.ws-note,.ws-pipeline-card,.ws-plan{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px}.ex-avatar,.px-avatar{display:inline-grid;place-items:center;border-radius:50%;width:40px;height:40px;background:var(--green);color:#fff}.ws-note[data-color=mint]{background:var(--green);color:#fff}.ws-note[data-color=peach]{background:#a43f24;color:#fff}.ws-note[data-color=sand]{background:#746138;color:#fff}.ws-inline,.ws-toolbar,.wc-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ws-item-row,.ws-inbox-row,.ws-event,.wc-event{border-bottom:1px solid var(--line);padding:16px 0}.ws-pre{background:var(--soft);border-radius:16px;padding:16px;white-space:pre-wrap}.ws-command{position:fixed;top:12vh;left:50%;transform:translateX(-50%);width:min(680px,calc(100vw - 32px));z-index:1800;padding:24px}.ws-command-backdrop{position:fixed;inset:0;z-index:1790}.ws-command a{padding:12px;border-radius:12px;display:block}.ws-command a:hover{background:var(--soft)}.ws-command-close{float:right;background:transparent;border:0}.ws-stepper>*{border-radius:16px;background:var(--soft);padding:12px}.ws-stepper .done{color:var(--success)}.ws-plan{box-shadow:var(--shadow)}.ws-plan h3{font-size:24px}.ws-plan .price{font-size:32px}.ws-report-bar i,.analytics-bar i{background:var(--accent)}.ws-age-track{background:var(--soft);border-radius:6px}.ws-check,.ws-checkboxes label{border:1px solid var(--line);border-radius:14px;padding:10px}.ex-day{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:10px}.ex-day[aria-pressed=true]{background:var(--green);color:#fff}.ex-day.is-today{border-color:var(--accent)}.ex-day.muted{opacity:.5}.ex-calendar-weekdays{color:var(--muted)}.wl-wrap,.byair-system-state{max-width:1100px;width:calc(100% - 32px);margin:40px auto}.wl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wl-full{grid-column:1/-1}.wl-actions{display:flex;gap:10px;flex-wrap:wrap}.wl-grid label{display:grid;gap:6px}.login-wrap,.auth-wrap{max-width:460px;margin:8vh auto;padding:24px}.login-card,.auth-card,.byair-system-state{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:32px}
@media(max-width:1250px){.topbar{gap:12px;padding-right:22px}.r18-brand{min-width:120px;max-width:170px}.r18-brand strong{font-size:17px}.r18-primary a{padding:10px;font-size:12px}.top-actions{gap:5px}.top-actions button,.notification-center>summary,.account-trigger{width:38px;height:38px}.content{padding-right:22px}}
@media(max-width:1050px){.topbar{height:auto;min-height:120px;flex-wrap:wrap;padding-top:18px;padding-bottom:10px}.r18-primary{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto}.r18-primary a{padding:9px 14px}.r18-brand{max-width:70%;flex:1}.sidebar{top:150px}.px-bento{grid-template-columns:repeat(2,minmax(0,1fr))}.px-bento>*{grid-column:auto!important}.px-bento>.px-revenue,.px-bento>.r18-hot{grid-column:1/-1!important}.wc-grid,.ws-two,.workspace-split{grid-template-columns:1fr!important}}
@media(max-width:820px){.main{margin-left:0}.topbar{padding:16px 16px 8px;gap:10px}.top-left{display:block;order:-1}.top-left>img,.top-left>div{display:none}.mobile-toggle{display:grid;place-items:center;border:1px solid var(--line);background:var(--soft);border-radius:14px;width:40px;height:40px}.r18-brand{min-width:0;max-width:none}.r18-brand-mark{width:38px;height:38px;border-radius:12px;font-size:23px}.r18-brand strong{font-size:17px}.sidebar{left:-290px;top:12px;bottom:12px;width:258px;border-radius:28px;overflow-y:auto;transition:left .2s}.sidebar.open{left:12px}.sidebar.open .nav-label{opacity:1;visibility:visible}.sidebar.open~.sidebar-backdrop{display:block;position:fixed;inset:0;background:#0008;z-index:60}.content{padding:20px 16px 48px}.r18-primary{gap:2px}.r18-primary a{padding:8px 12px}.px-hero,.page-head,.section-head{flex-wrap:wrap;gap:16px}.px-hero>.actions{margin:0}.px-metrics,.metrics,.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.form-grid,.detail-grid,.customer-grid,.ex-team-grid,.studio-daily,.ws-plans,.ws-billing-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.card{padding:22px}.px-metric .value{font-size:28px}.calendar-layout,.ex-calendar-layout{grid-template-columns:1fr!important}.px-calendar-shell,.ws-calendar-scroll{max-width:100%;overflow:auto}.feature-grid-2,.profile-layout{grid-template-columns:1fr}.feature-list-row{flex-wrap:wrap}.feature-list-row>.task-actions{flex-basis:100%;padding-left:0}.feature-list-row>div:not(.task-actions){flex:1}.profile-photo-form{display:grid;grid-template-columns:1fr}.ex-drawer{max-width:100vw}.ws-command{width:calc(100vw - 24px)}.table-wrap{max-width:100%;overflow:auto}}
@media(max-width:520px){.top-actions{gap:4px}.top-actions button,.notification-center>summary,.account-trigger{width:32px;height:32px}.r18-brand strong{font-size:15px;max-width:120px}.r18-brand-mark{display:none}.r18-primary a{font-size:12px}.px-bento,.form-grid,.detail-grid,.customer-grid,.ex-team-grid,.studio-daily,.ws-plans,.ws-billing-kpis,.ws-note-grid,.wl-grid,.wc-metrics,.grid-2,.grid-3,.analytics-grid{grid-template-columns:1fr!important}.px-bento>*{grid-column:1/-1!important}.form-grid>*{min-width:0}.card{border-radius:22px;padding:18px}.px-metric{padding:12px 8px!important}.px-metric .value{font-size:24px;overflow-wrap:anywhere}.actions,.filters,.ws-toolbar{flex-wrap:wrap;gap:8px}.actions .btn{white-space:normal}.px-hero h1{font-size:32px}.content{padding:18px 12px 36px}.r18-route-error{flex-wrap:wrap;width:calc(100vw - 24px)}.login-wrap,.auth-wrap{width:100%;margin:24px auto;padding:16px}.notification-popover,.account-popover{position:fixed;right:12px;top:70px}.ws-stepper{flex-wrap:wrap}.ws-plan{padding:20px}.px-hot-list{gap:10px}.px-hot-list>a{padding:16px;min-height:200px}.px-hot-list strong{font-size:15px}.px-hot-list>a>span:last-child strong{font-size:18px}.px-pipeline-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}html[data-motion=reduced] *,html[data-motion=reduced] *:before{animation:none!important;transition:none!important}html[data-density=compact] td,html[data-density=compact] th{padding-top:9px;padding-bottom:9px}
html[data-theme] .topbar .account-identity,html[data-theme] .topbar .profile-chip-arrow{display:none!important}.topbar .account-trigger{min-width:0;display:grid;padding:0;gap:0}.topbar .avatar{flex:none;width:42px;height:42px}.topbar .profile-chip{padding:0;border:0;min-width:0}.px-hero{padding:0;background:transparent;border:0;min-height:0}.content{padding-left:8px}.crm-chart{--cg-1:var(--accent);--cg-2:var(--green);--cg-3:#65959f;--cg-4:var(--yellow);--cg-5:var(--danger);--cg-6:var(--muted)}.crm-chart-legend{font-size:11px;color:var(--muted)}.crm-chart-controls,.crm-chart-values{font-size:11px;color:var(--muted)}.crm-chart-controls select{width:auto;border-radius:14px}.crm-mini-caption{color:var(--muted);font-size:11px}.ex-icon-label{gap:9px}.px-metric .ex-semantic-icon{display:none}.px-metric{min-height:0}.ex-team-card,.ex-customer-card{box-shadow:var(--shadow)}.ws-note p{white-space:pre-wrap}.ws-note a{color:inherit}.wc-hero,.ws-hero{margin-bottom:24px}.wc-grid{gap:22px}.wc-title{font-size:22px}.wc-warning{padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:16px}.ws-form label,.wc-grid label{color:var(--muted);font-size:12px}.ws-form input,.ws-form select,.ws-form textarea,.wc-grid input,.wc-grid select,.wc-grid textarea{color:var(--ink)}
@media(max-width:820px){.content{padding-left:16px}.topbar .avatar{width:32px;height:32px}}@media(max-width:520px){.content{padding-left:12px}}
.btn{flex-shrink:0}.page-hero,.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 26px}.page-hero>div,.page-head>div{min-width:0}.page-hero>.actions{flex-shrink:0}.px-hero{margin-top:8px!important}.px-metric.card{min-height:0;padding:4px 12px 4px 0}.crm-chart-legend span{gap:6px}.phone-country-field{min-width:0}.phone-country-row{display:flex;gap:8px}.phone-country-row input{min-width:0}.phone-country-row select{max-width:120px}.password-field{position:relative}.password-field input{padding-right:44px}.password-toggle{position:absolute;right:5px;top:5px;width:34px;height:34px;border:0;background:transparent;border-radius:12px}.login-box{width:100%;background:var(--surface);padding:28px;border-radius:28px;border:1px solid var(--line)}.login-logo img{max-width:200px;max-height:80px}.login-wrap{width:min(460px,100%)}
@media(max-width:820px){.page-hero,.page-head{flex-wrap:wrap}.page-hero>.actions,.page-head>.actions{max-width:100%;flex-wrap:wrap}.px-calendar-month{flex-wrap:wrap;gap:8px}}
html[data-theme] .px-hero{padding:0!important;min-height:0!important;margin:8px 0 25px!important;background:none!important;border:0!important}html[data-theme] .px-hero h1{font-size:44px}html[data-theme] .px-metric.card{padding:4px 12px 4px 0!important;margin:0!important;min-height:0!important}html[data-theme] .px-metrics{margin:8px 0 32px!important}.ex-team-card h3,.ex-customer-card h3{color:var(--ink)}.ex-team-card .muted,.ex-customer-card .muted{color:var(--muted)}
@media(max-width:520px){html[data-theme] .px-hero h1{font-size:32px}html[data-theme] .px-metric.card{padding:12px 8px!important}}
/* Small-screen filters and financial values must retain their full labels. */
.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.title-row>div{min-width:0}.title-row>.actions{flex-shrink:0;max-width:100%}
@media(max-width:820px){.crm-graph-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.crm-graph-kpis{grid-template-columns:1fr}.analytics-filters .field{flex:1 1 100%;min-width:0}.analytics-filters .btn{flex:0 0 auto;min-width:max-content}.title-row>.actions{width:100%}.title-row .btn{min-width:max-content}}

.demo-banner{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 16px;margin:0 0 24px;border:1px solid var(--strong);border-radius:18px;background:var(--soft);color:var(--ink);font-size:12px}.demo-banner p{margin:0}.demo-banner strong{color:var(--ink)}.demo-reset-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.demo-reset-summary>div{padding:16px;background:var(--soft);border-radius:16px}.demo-reset-summary strong{display:block;font-size:24px}.demo-login{padding:12px;margin-bottom:18px;border:1px solid var(--line);border-radius:16px;font-size:12px;background:var(--soft);overflow-wrap:anywhere}@media(max-width:520px){.demo-reset-summary{grid-template-columns:1fr 1fr}}

/* v18.1: component contracts checked against the rendered workspace. */
@font-face{font-family:Urbanist;src:url(fonts/Urbanist.ttf) format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
body{font-family:Urbanist,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:500;line-height:1.5}button,input,select,textarea{font-family:inherit}h1,html[data-theme] .px-hero h1{font-size:36px;line-height:1.15;font-weight:600;letter-spacing:-.025em}h2,h3{letter-spacing:-.015em}.crm-chart-svg text{font-family:Urbanist,system-ui,sans-serif!important}.value,.px-metric-number,.px-revenue-total,.cell-money{font-variant-numeric:tabular-nums}
.card.table-wrap.workspace-table{padding:0;overflow:hidden}.workspace-table>.table-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 22px;margin:0;border-bottom:1px solid var(--line)}.table-tools>strong{font-size:13px;font-weight:600;color:var(--muted)}.table-search{display:block;flex:0 1 280px;margin:0}.table-search input{display:block;width:100%;min-height:42px;font-size:14px}.workspace-table>.table-scroll{width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.workspace-table .table{margin:0}.workspace-table .table th{padding:14px 20px;font-size:12px}.workspace-table .table td{padding:18px 20px;line-height:1.5}.person-cell{display:flex;align-items:center;gap:12px;min-width:190px}.person-cell>div{min-width:0;flex:1}.person-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;font-size:12px;font-weight:700;line-height:1;color:#fff;background:var(--person-color,var(--green));letter-spacing:.02em}.person-cell strong,.person-cell a{line-height:1.45}.person-cell .mini,.person-cell .muted{display:block;margin-top:3px}.cell-date,.cell-money{white-space:nowrap}.table td.cell-person{min-width:240px}.table td.cell-actions .actions{display:flex;gap:8px;flex-wrap:wrap}.table td.cell-actions .btn{white-space:nowrap}.table-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 22px;margin:0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.table-empty{padding:24px;text-align:center;color:var(--muted)}.table-pager .actions{margin:0}.table-scroll:focus-visible{outline-offset:-3px}.cell-description{min-width:220px;max-width:420px}.cell-status{min-width:105px}.cell-money{text-align:right}.table th.cell-money{text-align:right}
/* Reminder header/footer remain visible while expanded details scroll. */
.lead-reminder-popup{display:flex;flex-direction:column;width:370px;max-width:calc(100vw - 32px);max-height:min(680px,calc(100dvh - 40px));overflow:hidden;padding:0;right:20px;bottom:20px}.lead-reminder-head{display:flex;gap:10px;align-items:center;flex:0 0 auto;padding:16px 18px;margin:0;border-bottom:1px solid var(--line)}.lead-reminder-head>div{flex:1;min-width:0}.lead-reminder-head strong{font-size:14px}.lead-reminder-head small{font-size:12px}.lead-reminder-icon{font-size:22px;color:var(--accent)}.lead-reminder-slides{padding:4px 18px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.lead-reminder-slide.active{display:block}.lead-reminder-person{display:block;overflow-wrap:anywhere}.lead-reminder-person strong{font-size:16px;line-height:1.4}.lead-reminder-person span{font-size:12px;margin-top:4px}.lead-reminder-meta{font-size:12px;line-height:1.6;gap:4px 12px}.lead-reminder-latest{font-size:13px;line-height:1.5;padding:12px;margin:14px 0;max-height:120px;overflow:auto}.lead-reminder-latest b{margin-bottom:4px}.lead-reminder-snooze form{display:flex;flex-wrap:wrap;gap:8px}.lead-reminder-snooze button{min-height:36px}.lead-reminder-more summary{padding:8px 0;font-size:13px;cursor:pointer;list-style:revert}.lead-reminder-actions{display:flex;gap:8px;flex-wrap:wrap}.lead-reminder-actions .btn{min-height:36px}.lead-reminder-reschedule{display:grid;gap:10px;padding:10px 0}.lead-reminder-reschedule :is(input,textarea){width:100%}.lead-reminder-footer{flex:0 0 auto;border-top:1px solid var(--line);padding:12px 18px}.lead-reminder-nav{margin:0;align-items:center}.lead-reminder-nav button{width:34px;height:34px;display:grid;place-items:center;font-size:18px}.ex-reminder-expand{display:inline-flex;flex:none;font-size:12px;min-height:34px;padding:7px 10px}.lead-reminder-minimize{margin:0;order:3;flex:0 0 30px}.lead-reminder-popup.ex-reminder-compact:not(.ex-reminder-expanded) :is(.lead-reminder-latest,.lead-reminder-more,.lead-reminder-snooze,.lead-reminder-actions){display:none}.lead-reminder-popup.ex-reminder-compact:not(.ex-reminder-expanded) .lead-reminder-meta{margin-bottom:0}.lead-reminder-popup.ex-reminder-compact:not(.ex-reminder-expanded) .lead-reminder-slides{padding-bottom:12px}.lead-reminder-overdue{margin:10px 0 8px}
@media(max-width:820px){html[data-theme] .px-hero h1,h1{font-size:32px}.topbar{height:auto;min-height:0}.section-head{align-items:flex-start}.section-head>*{min-width:0}.ex-filters>.field,.ex-filters>label{min-width:0}.table-tools>strong{line-height:1.5}.workspace-table .table td{font-size:14px}.px-metric .value{font-size:30px}.lead-reminder-popup{right:12px;bottom:12px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.lead-reminder-head{padding:12px 14px;gap:8px}.lead-reminder-slides{padding-left:14px;padding-right:14px}.lead-reminder-footer{padding:10px 14px}}
@media(max-width:600px){
 body{font-size:14px}.content{padding:18px 12px 40px}.r18-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;flex-basis:100%;overflow:visible;gap:4px;order:5;padding:6px 0 2px}.r18-primary a{font-size:12px;min-width:0;padding:8px 2px;text-align:center;min-height:36px}.topbar{padding:12px 12px 8px;gap:8px}.top-actions{gap:5px}.top-actions :is(button,.account-trigger),.notification-center>summary{width:34px;height:34px}.topbar .avatar{width:32px;height:32px}.r18-brand{flex:1;min-width:0}.r18-brand strong{font-size:15px;max-width:130px}.top-left{flex:0 0 38px}.mobile-toggle{width:38px;height:38px}.r18-brand-mark{display:none}.workspace-table>.table-tools{padding:16px;gap:12px}.table-search{flex:1 1 100%;width:100%}.table-search input{font-size:16px;min-height:44px}.table-pager{padding:14px 16px;align-items:center}.table-pager .btn{min-height:40px}.person-cell{min-width:0;align-items:center;gap:12px}.person-avatar{width:38px;height:38px;flex-basis:38px}.workspace-table>.table-scroll:has(.mobile-record-table){overflow:visible}.mobile-record-table{display:block;width:100%;min-width:0!important}.mobile-record-table>tbody{display:block;width:100%}.mobile-record-table thead,.mobile-record-table .table-header-row{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}.mobile-record-table tr:not(.table-header-row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:18px 16px;border-bottom:1px solid var(--line)}.mobile-record-table tr:last-child{border-bottom:0}.workspace-table .mobile-record-table td{display:block;width:auto;min-width:0!important;max-width:none;padding:0;border:0;font-size:14px;overflow-wrap:anywhere;text-align:left;white-space:normal}.mobile-record-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-bottom:4px;font-weight:500}.mobile-record-table td.cell-person,.mobile-record-table td.cell-actions,.mobile-record-table td.cell-description{grid-column:1/-1}.mobile-record-table td.cell-person::before{display:none}.mobile-record-table td.cell-actions .actions{min-width:0;gap:8px}.mobile-record-table td.cell-actions .btn{min-height:40px}.mobile-record-table td.cell-money{font-variant-numeric:tabular-nums}.table td.cell-actions{min-width:0}.table-tools input{width:100%}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}.card .actions{max-width:100%}.card .actions>form{min-width:0;max-width:100%}.section-head .btn{white-space:normal}.form-grid,.ws-form{grid-template-columns:1fr!important}.form-grid>*{grid-column:1/-1}.ex-reminder-expand{min-width:0;font-size:11px;padding:6px 8px}.lead-reminder-head strong{font-size:13px}.lead-reminder-head small{font-size:11px}.lead-reminder-person strong{font-size:15px}
}
@media(max-width:360px){.r18-brand strong{font-size:14px;max-width:104px}.top-actions{gap:3px}.top-actions :is(button,.account-trigger),.notification-center>summary{width:30px;height:30px}.topbar .avatar{width:30px;height:30px}.r18-primary a{font-size:11.5px}.lead-reminder-head{gap:6px;padding:12px}.lead-reminder-icon{display:none}}

.table-sort{display:none}@media(max-width:600px){.table-sort{display:block;flex:1 1 100%;margin:0}.table-sort select{width:100%;font-size:14px;min-height:42px}}
/* Filters use explicit columns so labels can never shrink into each other. */
@media(max-width:820px){body .ex-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}body .ex-filters>label,body .ex-filters>.field{display:grid;gap:8px;min-width:0;max-width:100%;width:100%;margin:0;flex:none;font-size:13px}body .ex-filters>label:first-of-type{grid-column:1/-1;min-width:0}body .ex-filters :is(input,select){width:100%;min-width:0;max-width:100%;min-height:44px}body .ex-filters>.btn{min-width:0;max-width:100%;min-height:42px;justify-content:center}}

/* Audit fixes: readable helper copy and responsive phone controls. */
.phone-country-field .mini,.field>.mini.muted{font-size:13px;line-height:1.5}
.phone-country-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.phone-country-row select,.phone-country-row input{min-width:0;max-width:100%}
@media(max-width:850px){.phone-country-field{grid-column:1/-1}.phone-country-row select{flex:1 1 170px}.phone-country-row input{flex:2 1 190px}.searchbar input[name=q]{min-width:180px}}

html[data-theme="dark"] .login-logo-wrap{background:#f6f4ec;border-radius:14px;padding:10px 14px;margin-inline:auto;width:max-content;max-width:100%}
.login-card .captcha-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}

/* Consolidated UI audit: profile identity, target sizes, clear states and optional widgets. */
@media(min-width:700px){html[data-theme] .topbar .account-identity{display:block!important;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .account-trigger{display:flex;align-items:center;gap:8px;padding-inline:5px;min-width:0;width:auto}.topbar .account-identity>span{display:none}}
@media(max-width:820px){.r18-primary a{min-height:44px;display:flex;align-items:center;justify-content:center}.top-actions :is(button,.account-trigger),.notification-center>summary{min-width:40px;min-height:40px}.px-hero>.actions{grid-template-columns:repeat(2,minmax(0,1fr))}.px-hero>.actions .btn-primary{grid-column:auto}}
@media(max-width:360px){.r18-brand strong{display:none}.top-actions :is(button,.account-trigger),.notification-center>summary{width:40px;height:40px}.topbar .avatar{width:38px;height:38px}.r18-primary a{font-size:12px}}
body .btn:hover:disabled,body .btn[aria-busy="true"]:hover{transform:none}
.px-focus-optional{align-self:start}.px-focus-optional>summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}.px-focus-optional[open]>summary{margin-bottom:14px}
.analytics-empty-charts>summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}.analytics-empty-charts .crm-graphs-grid{margin-top:18px}
html[data-theme] .mini,html[data-theme] .mini.muted{font-size:13px;line-height:1.45}

/* Screenshot review repair: shared spacing, controls and responsive data layouts. */
html[data-theme] .card.table-wrap > :is(h1,h2,h3,p,.sub,.section-head,.searchbar,.ex-filters,.filter-chip-row) { margin-left:24px; margin-right:24px; }
html[data-theme] .card.table-wrap > :is(h1,h2,h3,.section-head):first-child { margin-top:22px; }
html[data-theme] .card.table-wrap > :is(p,.sub):last-child { margin-bottom:22px; }
html[data-theme] .card.table-wrap > .section-head { padding:0; }
html[data-theme] .card.table-wrap > .table-tools { margin:0; }
html[data-theme] .card.table-wrap > .table { min-width:max-content; }
html[data-theme] .card.table-wrap .table :is(th,td) { padding-inline:16px; }
html[data-theme] .card.table-wrap .table td:has(.empty),html[data-theme] .card.table-wrap .table td.empty { min-width:0; }
html[data-theme] .card .kpi-list { display:grid; gap:8px; min-width:0; }
html[data-theme] .card .kpi-row { display:flex; align-items:baseline; justify-content:space-between; gap:16px; min-width:0; }
html[data-theme] .card .kpi-row > :first-child { flex:1 1 38%; min-width:0; }
html[data-theme] .card .kpi-row > :last-child { flex:1 1 62%; min-width:0; overflow-wrap:anywhere; text-align:right; }
html[data-theme] .px-financial-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:20px 0; }
html[data-theme] .px-financial-grid > div { display:grid; gap:3px; min-width:0; }
html[data-theme] .px-financial-grid :is(small,strong) { display:block; overflow-wrap:anywhere; }
html[data-theme] .px-financial-grid small { color:var(--muted); }
html[data-theme] .filter-chip-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:20px 0; }
html[data-theme] .filter-chip-row > a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; text-decoration:none; white-space:nowrap; }
html[data-theme] .filter-chip-row > a.active { background:var(--ink); color:var(--canvas); }
html[data-theme] .px-stepper { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0; margin:24px 0; list-style:none; counter-reset:none; }
html[data-theme] .px-stepper > li { display:inline-flex; align-items:center; gap:9px; min-width:0; padding:9px 13px; border:1px solid var(--line); border-radius:999px; list-style:none; }
html[data-theme] .px-stepper > li::marker { content:''; }
html[data-theme] .px-stepper > li > span { display:grid; place-items:center; width:23px; height:23px; flex:none; border-radius:50%; background:var(--soft); font-size:12px; }
html[data-theme] .px-stepper > li.current { border-color:var(--accent); }
html[data-theme] .feature-product-card { min-width:0; padding:18px 0; border-bottom:1px solid var(--line); }
html[data-theme] .product-card-main { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:12px; min-width:0; }
html[data-theme] .product-card-main > div:first-child { min-width:0; }
html[data-theme] .product-price-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:15px 0; }
html[data-theme] .product-price-grid > div { display:grid; gap:3px; min-width:0; }
html[data-theme] .product-price-grid small { display:block; color:var(--muted); }
html[data-theme] .product-price-grid strong { display:block; overflow-wrap:anywhere; }
html[data-theme] .product-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
html[data-theme] .product-card-actions .actions-inline { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
html[data-theme] .product-card-actions > span { margin-left:auto; color:var(--muted); }
html[data-theme] .feature-search { align-items:center; }
html[data-theme] .feature-search :is(input,select) { flex:1 1 150px; min-width:0; }
html[data-theme] .phone-country-field { min-width:0; }
html[data-theme] .phone-country-row { display:flex; align-items:start; flex-wrap:wrap; gap:8px; }
html[data-theme] .phone-country-row > :is(input,select) { flex:1 1 185px; min-width:0; }
html[data-theme] :is(.voucher-approval-box,.table td .actions) { min-width:0; }
html[data-theme] .voucher-approval-box { display:grid; gap:12px; }
html[data-theme] .voucher-approval-box .field { min-width:0; }
html[data-theme] .btn,html[data-theme] button.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; max-width:100%; min-height:40px; padding:9px 15px; line-height:1.25; text-align:center; }
html[data-theme] .btn.btn-sm { min-height:36px; padding:7px 12px; }
html[data-theme] .r18-primary { min-width:0; }
html[data-theme] .r18-primary a { white-space:nowrap; }
@media(max-width:820px){
 html[data-theme] .card.table-wrap > :is(h1,h2,h3,p,.sub,.section-head,.searchbar,.ex-filters,.filter-chip-row){margin-left:18px;margin-right:18px}
 html[data-theme] .card.table-wrap .table{min-width:680px}
 html[data-theme] .px-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .product-card-actions > span{margin-left:0;flex-basis:100%}
}
@media(max-width:520px){
 html[data-theme] .card.table-wrap > :is(h1,h2,h3,p,.sub,.section-head,.searchbar,.ex-filters,.filter-chip-row){margin-left:14px;margin-right:14px}
 html[data-theme] .px-financial-grid,.product-price-grid{grid-template-columns:1fr 1fr}
 html[data-theme] .filter-chip-row{gap:6px}
 html[data-theme] .filter-chip-row > a{min-height:40px;padding:8px 11px}
 html[data-theme] .px-stepper{gap:7px}
 html[data-theme] .px-stepper > li{padding:7px 10px}
 html[data-theme] .card .kpi-row{align-items:start}
}

/* Screen review 4: measured fixes for the installed 18.1.1 editions. */
html[data-theme] .feature-hero.feature-hero-split{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:28px}
html[data-theme] .feature-hero.feature-hero-split>div:first-child{flex:1 1 540px;min-width:0}
html[data-theme] .feature-hero.feature-hero-split>.btn{flex:0 0 auto;align-self:center}
html[data-theme] .feature-hero.feature-hero-split .sub{max-width:75ch;line-height:1.55}

/* Quick-create leads: name occupies a row; the two contact fields line up. */
html[data-theme] #new-lead-dialog{width:min(800px,calc(100vw - 24px));max-height:min(92dvh,950px);overflow:auto}
html[data-theme] #new-lead-dialog .form-grid>.field:first-child{grid-column:1/-1}
html[data-theme] #new-lead-dialog .form-grid>.phone-country-field{grid-column:auto}
html[data-theme] .phone-country-row{display:flex;align-items:stretch;flex-wrap:nowrap;gap:8px;min-width:0}
html[data-theme] .phone-country-row>.crm-combobox{width:42%;flex:0 1 42%;min-width:125px}
html[data-theme] .phone-country-row>input{width:0;flex:1 1 0;min-width:112px;max-width:none}
html[data-theme] .phone-country-field>.mini{display:block;margin-top:6px;line-height:1.45}
html[data-theme] .phone-country-field .crm-combobox-input{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #new-lead-dialog .form-grid>.field.full:has(.mini){margin-top:-2px}

/* Search inputs stay in one deliberate grid, including the Filter action. */
html[data-theme] .feature-search{display:grid;grid-template-columns:minmax(130px,2fr) minmax(90px,1fr) minmax(90px,1fr) 74px;align-items:center;gap:10px}
html[data-theme] .feature-search>input:not([type=hidden]),html[data-theme] .feature-search>select{width:100%;min-width:0;max-width:none;margin:0}
html[data-theme] .feature-search>.btn{min-width:78px;min-height:44px}
html[data-theme] .feature-product-card{padding-block:20px}
html[data-theme] .product-card-actions{gap:10px;align-items:center}
html[data-theme] .product-card-actions .actions-inline:has(select){display:inline-flex;flex-wrap:nowrap;gap:7px}
html[data-theme] .product-card-actions .mini-select{min-width:100px}

/* Readable dense tables with visible headings and consistent action cells. */
html[data-theme] .card.table-wrap>.section-head{margin-top:24px;margin-bottom:18px}
html[data-theme] .card.table-wrap>h2,html[data-theme] .card.table-wrap>h3{margin-top:24px;margin-bottom:12px}
html[data-theme] .card.table-wrap>.sub,html[data-theme] .card.table-wrap>p{line-height:1.55}
html[data-theme] .card.table-wrap .table{font-size:14px}
html[data-theme] .card.table-wrap .table th{font-size:12px;line-height:1.35;white-space:normal}
html[data-theme] .card.table-wrap .table td{line-height:1.45;vertical-align:middle}
html[data-theme] .card.table-wrap .table :is(th,td):first-child{padding-left:24px}
html[data-theme] .card.table-wrap .table :is(th,td):last-child{padding-right:24px}
html[data-theme] .card.table-wrap .table td:has(.approval-review){min-width:250px}
html[data-theme] .card.table-wrap .table td .actions{flex-wrap:wrap;gap:8px}
html[data-theme] .card.table-wrap .empty{padding:24px;text-align:center}

/* Permission labels and customer financial summaries must not run together. */
html[data-theme] .kpi-list .kpi-row{display:grid;grid-template-columns:minmax(120px,40%) minmax(0,1fr);column-gap:18px;align-items:baseline}
html[data-theme] .kpi-list .kpi-row>strong{text-align:right;min-width:0;overflow-wrap:anywhere}
html[data-theme] .px-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
html[data-theme] .px-financial-grid>div{padding:13px 15px;border:1px solid var(--line);border-radius:15px}
html[data-theme] .px-financial-grid>div small{font-size:13px;line-height:1.4;margin:0 0 5px}
html[data-theme] .px-financial-grid>div strong{font-size:16px;line-height:1.3}

/* Compact review choices keep every server-side approval and PIN check. */
html[data-theme] .review-action-list{display:grid;gap:10px;margin-top:16px}
html[data-theme] .review-action-list details,html[data-theme] details.approval-review{border:1px solid var(--line);border-radius:16px;padding:0 16px;background:var(--soft)}
html[data-theme] .review-action-list summary,html[data-theme] details.approval-review>summary{cursor:pointer;min-height:46px;display:flex;align-items:center;font-weight:650;list-style:none}
html[data-theme] .review-action-list summary::-webkit-details-marker,html[data-theme] details.approval-review>summary::-webkit-details-marker{display:none}
html[data-theme] .review-action-list summary::after,html[data-theme] details.approval-review>summary::after{content:'⌄';margin-left:auto;font-size:18px}
html[data-theme] .review-action-list details[open] summary::after,html[data-theme] details.approval-review[open]>summary::after{transform:rotate(180deg)}
html[data-theme] .review-action-list form,html[data-theme] details.approval-review .approval-actions{border-top:1px solid var(--line);padding:16px 0;margin:0!important}
html[data-theme] .review-action-list .field{margin:0 0 12px}
html[data-theme] details.approval-review .approval-actions{display:grid;gap:14px}
html[data-theme] details.approval-review form.actions{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;justify-items:start;min-width:0;margin:0}
html[data-theme] details.approval-review :is(label,input){width:100%;max-width:100%;min-width:0}
html[data-theme] details.approval-review .btn{min-width:105px}

/* Calendar/date tools, table actions, and small viewport behavior. */
html[data-theme] .px-calendar-month{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html[data-theme] .px-calendar-month :is(.btn,button,select,input){min-height:42px}
html[data-theme] .view-toggle{flex-shrink:0}
html[data-theme] .table td .btn.btn-sm{min-height:36px;white-space:normal}
html[data-theme] .demo-reset-summary>div{display:grid;gap:5px;padding:18px 20px}
html[data-theme] .demo-reset-summary>div strong{display:block;line-height:1.1}
@media(max-width:850px){
 html[data-theme] .feature-search{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html[data-theme] .feature-search>input:not([type=hidden]){grid-column:1/-1}
 html[data-theme] .feature-search>.btn{grid-column:1/-1;justify-self:start}
 html[data-theme] .phone-country-field{grid-column:auto}
 html[data-theme] .px-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 html[data-theme] #new-lead-dialog .form-grid{grid-template-columns:1fr}
 html[data-theme] #new-lead-dialog .form-grid>.phone-country-field{grid-column:1/-1}
 html[data-theme] .feature-hero.feature-hero-split{align-items:start}
 html[data-theme] .feature-hero.feature-hero-split>.btn{align-self:start}
 html[data-theme] .card.table-wrap .table :is(th,td):first-child{padding-left:16px}
 html[data-theme] .card.table-wrap .table :is(th,td):last-child{padding-right:16px}
}
@media(max-width:420px){
 html[data-theme] .feature-search{grid-template-columns:1fr}
 html[data-theme] .feature-search>input:not([type=hidden]),html[data-theme] .feature-search>.btn{grid-column:auto}
 html[data-theme] .phone-country-row{flex-wrap:wrap}
 html[data-theme] .phone-country-row>.crm-combobox,html[data-theme] .phone-country-row>input{width:100%;flex:1 1 100%;min-width:0}
 html[data-theme] .px-financial-grid{grid-template-columns:1fr}
 html[data-theme] .kpi-list .kpi-row{grid-template-columns:minmax(80px,38%) minmax(0,1fr);gap:10px}
}


/* Shared interface alignment: all modules, including login and owner reviews. */
html[data-theme] .content{padding-top:16px}
html[data-theme] :is(.title-row,.page-hero,.page-head,.feature-hero,.wc-hero,.ws-hero){margin-top:0;margin-bottom:18px;gap:12px 20px}
html[data-theme] :is(.card,.wc-card){margin-bottom:16px}
html[data-theme] :is(.grid-2,.grid-3,.ws-two,.feature-grid-2,.workspace-split){gap:16px}
html[data-theme] :is(.cards,.kpi-cards,.crm-graph-kpis){gap:14px;margin:16px 0}
html[data-theme] .section-head{margin-bottom:14px}
html[data-theme] .field{min-width:0}
html[data-theme] .form-grid{gap:16px}
html[data-theme] :is(.title-row,.page-hero,.page-head,.section-head)>.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
html[data-theme] :is(.tabs,.simple-module-nav,.ws-tabs,.wc-tabs,.px-drawer-tabs,.view-toggle,.px-segments){display:flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--soft);margin:0 0 18px;max-width:100%;width:fit-content;overflow-x:auto;scrollbar-width:thin}
html[data-theme] :is(.tabs,.simple-module-nav,.ws-tabs,.wc-tabs,.px-drawer-tabs,.view-toggle,.px-segments)>:is(a,button,.btn){display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;line-height:1.25;text-decoration:none;white-space:nowrap;box-shadow:none}
html[data-theme] :is(.tabs,.simple-module-nav,.ws-tabs,.wc-tabs,.px-drawer-tabs,.view-toggle,.px-segments)>:is(a,button,.btn):is(.active,.selected,[aria-current="page"],[aria-current="true"],[aria-selected="true"]){background:var(--surface);color:var(--ink);box-shadow:0 1px 5px #0002}
html[data-theme] .simple-module-nav .btn{min-height:38px}
html[data-theme] :is(.tabs,.simple-module-nav,.ws-tabs,.wc-tabs) a:hover{color:var(--ink)}
html[data-theme] .topbar{min-width:0;gap:12px;padding-right:22px}
html[data-theme] .r18-brand{min-width:0;max-width:205px;flex-shrink:1}
html[data-theme] .r18-brand strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .r18-primary{min-width:0;gap:2px}
html[data-theme] .r18-primary a{padding-inline:10px}
html[data-theme] .top-actions{flex:0 0 auto;min-width:0}
html[data-theme] .password-field{position:relative;display:block;width:100%;min-width:0;max-width:100%;line-height:normal}
html[data-theme] .password-field>input:not([type=hidden]){display:block;width:100%;max-width:100%;padding-right:48px!important}
html[data-theme] .password-field>.password-toggle{position:absolute;display:grid;place-items:center;right:5px;top:50%;transform:translateY(-50%);width:36px;height:36px;min-width:36px;min-height:36px;padding:7px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;z-index:1}
html[data-theme] .password-field>.password-toggle:hover,html[data-theme] .password-field>.password-toggle:focus-visible{background:var(--soft);color:var(--ink)}
html[data-theme] .password-field>.password-toggle svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] .password-field-pin{min-width:115px}
html[data-theme] .login-wrap{width:min(460px,100%);max-width:none;margin:clamp(20px,7vh,72px) auto;padding:16px}
html[data-theme] .login-card{padding:clamp(20px,3vw,32px);box-shadow:var(--shadow)}
html[data-theme] .login-logo-wrap{text-align:center;margin-bottom:14px}
html[data-theme] .login-logo{max-width:210px;max-height:86px;width:auto;height:auto;object-fit:contain}
html[data-theme] .login-card h1{margin:0 0 6px;line-height:1.3;overflow-wrap:anywhere}
html[data-theme] .login-tagline{text-align:center;margin-bottom:22px}
html[data-theme] .login-card .field{margin:0 0 16px}
html[data-theme] .login-card .field label{display:block;margin-bottom:7px}
html[data-theme] .login-card :is(input,select){width:100%;min-height:46px}
html[data-theme] .login-card form>.btn[type=submit]{width:100%;min-height:46px;margin-top:4px}
html[data-theme] .passkey-login-panel{text-align:center;margin-top:16px}
html[data-theme] .passkey-login-panel>.btn{width:100%;min-height:44px}
html[data-theme] details.approval-review{position:relative;width:100%;min-width:200px;max-width:260px;padding:0;border-radius:12px;background:var(--surface)}
html[data-theme] details.approval-review>summary{padding:0 12px;min-height:40px;color:var(--ink);font-size:12px;line-height:1.25}
html[data-theme] details.approval-review[open]{max-width:320px;min-width:245px}
html[data-theme] details.approval-review .approval-actions{padding:12px;gap:8px}
html[data-theme] details.approval-review form.actions{gap:8px;padding:12px 0}
html[data-theme] details.approval-review form.actions:first-child{padding-top:0}
html[data-theme] details.approval-review form.actions:last-child{padding-bottom:0}
html[data-theme] details.approval-review label{display:grid;gap:6px;font-size:12px;line-height:1.4}
html[data-theme] details.approval-review .btn{min-height:38px}
html[data-theme] .receipt-details .kpi-row{display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr);gap:12px}
html[data-theme] .receipt-details .kpi-row strong{text-align:right;overflow-wrap:anywhere}
html[data-theme] .receipt-link{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1450px) and (min-width:1051px){html[data-theme] .r18-brand{max-width:155px}html[data-theme] .r18-brand-mark{width:40px;height:40px;font-size:22px}html[data-theme] .r18-brand strong{font-size:15px}html[data-theme] .r18-primary a{padding-inline:7px;font-size:12px}}
@media(max-width:1050px){html[data-theme] .topbar{padding:12px 16px;min-height:0}html[data-theme] .r18-primary{flex-basis:100%;overflow-x:auto;justify-content:flex-start;white-space:nowrap}html[data-theme] .r18-primary a{flex:0 0 auto;min-height:40px}}
@media(max-width:820px){html[data-theme] .topbar{gap:8px}html[data-theme] .r18-brand{max-width:none;flex:1}html[data-theme] .top-actions{margin-left:auto}html[data-theme] .r18-primary{display:flex;order:5;overflow-x:auto;width:100%;padding:5px 0}html[data-theme] .r18-primary a{min-height:40px;padding:8px 12px}html[data-theme] :is(.tabs,.simple-module-nav,.ws-tabs,.wc-tabs){width:100%;flex-wrap:nowrap}html[data-theme] .content{padding-top:12px}}
@media(max-width:520px){html[data-theme] .topbar{padding:10px 12px}html[data-theme] .login-wrap{padding:12px;margin:18px auto}html[data-theme] .login-card{padding:20px 16px}html[data-theme] .receipt-details .kpi-row{grid-template-columns:minmax(85px,38%) minmax(0,1fr)}html[data-theme] details.approval-review[open]{min-width:220px}}

/* Payment review opens as a viewport panel, keeping table rows aligned. */
html[data-theme] .card.table-wrap .table td:has(>details.approval-review){min-width:185px;vertical-align:middle}
html[data-theme] details.approval-review,html[data-theme] details.approval-review[open]{width:175px;min-width:0;max-width:100%;margin:0}
html[data-theme] details.approval-review>summary{min-height:40px;white-space:nowrap}
html[data-theme] details.approval-review[open]>.approval-actions{position:fixed;top:clamp(16px,12vh,110px);right:clamp(12px,3vw,42px);left:auto;z-index:1500;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;display:grid;gap:8px;padding:18px 20px;border:1px solid var(--strong);border-radius:18px;background:var(--surface);box-shadow:0 24px 75px #0009}
html[data-theme] details.approval-review[open]>.approval-actions::before{content:'Review payment';display:block;font-size:17px;font-weight:700;line-height:1.3;margin:0 0 4px}
html[data-theme] details.approval-review[open]>summary{background:var(--ink);color:var(--canvas)}
html[data-theme] details.approval-review .approval-actions form.actions{min-width:0;width:100%;border-top:1px solid var(--line)}
html[data-theme] details.approval-review .approval-actions form.actions:first-of-type{border-top:0}
html[data-theme] details.approval-review .approval-actions :is(label,input,.password-field){max-width:100%;min-width:0}
@media(max-width:520px){html[data-theme] details.approval-review[open]>.approval-actions{top:12px;right:12px;left:12px;width:auto;max-height:calc(100dvh - 24px)}}

/* Compact shared layout and predictable dashboard rows. */
html[data-theme] .content{max-width:none;min-width:0}
html[data-theme] .card,html[data-theme] .wc-card{padding:20px;margin-bottom:14px}
html[data-theme] :is(.grid-2,.grid-3,.cards,.kpi-cards,.px-metrics){gap:14px}
html[data-theme] .form-grid{gap:14px 18px}
html[data-theme] .form-grid .field{min-width:0}
html[data-theme] .form-grid .field label{margin-bottom:5px}
html[data-theme] .px-bento{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
html[data-theme] .px-bento>section{grid-column:span 1!important;min-width:0}
html[data-theme] .px-bento>:is(.px-revenue,.px-pipeline-summary,.px-recent){grid-column:1/-1!important}
html[data-theme] .px-focus-optional{display:none}
html[data-theme] .receipt-details{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
html[data-theme] .receipt-details>.card{min-width:0;overflow-wrap:anywhere}
html[data-theme] .receipt-details :is(input,.actions,a){max-width:100%;min-width:0}
html[data-theme] .receipt-details .actions{flex-wrap:wrap}
html[data-theme] .topbar{gap:12px}
html[data-theme] .r18-primary{justify-content:flex-start;gap:2px}
html[data-theme] .r18-primary a{white-space:nowrap}
@media(max-width:820px){html[data-theme] .px-bento{grid-template-columns:1fr}html[data-theme] .px-bento>section{grid-column:1/-1!important}html[data-theme] .receipt-details{grid-template-columns:1fr}html[data-theme] .card{padding:16px}}

html[data-theme] details.approval-review .approval-actions>.review-close{justify-self:end;min-height:32px;padding:4px 12px}
html[data-theme] details.approval-review .approval-actions label.inline-required{display:block;font-size:13px}
html[data-theme] details.approval-review .approval-actions label.inline-required input{display:block;width:100%;margin-top:8px}

html[data-theme] .payment-proof-review{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px;min-width:0}
html[data-theme] .payment-proof-review>.notice{width:100%;margin:0;padding:10px 12px}
html[data-theme] .payment-proof-review .btn{white-space:normal;text-align:center}

/* ===== v18.9.0 audit repair: layout, spacing and contrast for blocks that lost their styles ===== */
/* U3 Today Action Desk KPI tiles + hero buttons */
.feature-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:18px 0 22px}
.feature-kpi{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);text-decoration:none;min-width:0}
.feature-kpi:hover{border-color:var(--strong)}
.feature-kpi-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--soft);font-size:16px}
.feature-kpi>div{min-width:0}
.feature-kpi small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.feature-kpi strong{display:block;font-size:26px;line-height:1.15;margin:4px 0 2px}
.feature-kpi>div>span{display:block;color:var(--muted);font-size:12px}
.feature-hero-actions,.px-report-shortcuts,.app-modal-foot,.crm-ledger-print .actions,.byair-system-actions,.staff-photo-wrap,.voucher-source-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.px-report-shortcuts{margin:4px 0 14px}
.px-report-shortcuts+p,.px-report-shortcuts+.sub{margin-top:0}
/* U4 quick actions / export cards */
.quick-action-grid,.data-export-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-top:12px}
.quick-action-grid>a,.data-tool-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--soft);color:var(--ink);text-decoration:none}
.quick-action-grid>a:hover,.data-tool-card:hover{border-color:var(--strong)}
.quick-action-grid>a small,.data-tool-card span{color:var(--muted);font-size:12px;line-height:1.35}
/* U5 2FA QR code must stay scannable (global svg icon rule shrank it to 22px) */
.totp-qr{display:flex;justify-content:flex-start;margin:12px 0}
.totp-qr svg,#accountTotpQr svg,#totpQr svg{width:190px;height:190px;max-width:100%;background:#fff;border-radius:8px;padding:6px;box-sizing:content-box}
.totp-secret-box{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px dashed var(--strong);border-radius:14px;margin:10px 0;word-break:break-all}
.totp-secret-box span{font-size:12px;color:var(--muted)}
/* U9 booking service lines */
#services{display:grid;gap:10px;margin:8px 0}
#services .service-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center}
#services .service-row>*{min-width:0;width:100%;margin:0}
#services .service-row>.btn{width:auto;min-width:44px;justify-content:center}
@media(max-width:760px){#services .service-row{grid-template-columns:1fr 1fr}#services .service-row>:first-child,#services .service-row>:nth-child(2){grid-column:1/-1}}
/* U10 invoice item lines */
#items{display:grid;gap:10px;margin:8px 0}
.item-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1.3fr) auto;gap:10px;align-items:end}
.item-row>label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.item-row>label input{width:100%}
.item-row>.btn{justify-content:center;min-width:44px}
@media(max-width:760px){.item-row{grid-template-columns:1fr 1fr}.item-row>label:first-child{grid-column:1/-1}}
/* U11 lists: icon | text | status, aligned on every row */
.feature-list-row{justify-content:flex-start;align-items:center;flex-wrap:nowrap}
.feature-list-row>.feature-list-icon,.feature-list-row>span:first-child{flex:0 0 28px;text-align:center}
.feature-list-row>div:not(.row-end){flex:1 1 auto;min-width:0}
.feature-list-row>.row-end{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;text-align:right}
@media(max-width:560px){.feature-list-row{flex-wrap:wrap}.feature-list-row>.row-end{width:100%;justify-content:flex-start;margin-left:40px}}
/* U12/U13 label + value blocks */
.detail-grid,.trip-summary-grid,.trip-readiness-grid,.doc-health{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:10px 0}
.detail-grid>div,.trip-summary-grid>div,.trip-readiness-grid>div,.doc-health>div{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--soft);min-width:0}
.detail-grid span,.trip-summary-grid span,.trip-readiness-grid span,.doc-health span{font-size:12px;color:var(--muted)}
.trip-readiness-grid small{font-size:12px;color:var(--muted)}
.detail-grid strong,.trip-summary-grid strong,.trip-readiness-grid strong,.doc-health strong{overflow-wrap:anywhere}
.timeline{display:grid;gap:4px}
.timeline-item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.timeline-dot{flex:0 0 10px;height:10px;margin-top:6px;border-radius:50%;background:var(--accent)}
.timeline-body{flex:1;min-width:0}
.timeline-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}
.timeline-head span{color:var(--muted);font-size:12px}
.workflow-list{display:grid;gap:10px;counter-reset:none}
.workflow-list>div{display:grid;grid-template-columns:28px 1fr;gap:2px 10px;align-items:start}
.workflow-list>div>span{grid-row:span 2;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--soft);font-weight:700;font-size:13px}
.workflow-list>div>small{color:var(--muted);font-size:12px}
.feature-callout,.latest-remark-card>div{display:flex;flex-direction:column;gap:4px}
.feature-callout{padding:12px 14px;border-radius:14px;background:var(--soft)}
.feature-callout span,.latest-remark-card span,.latest-remark-card small{color:var(--muted);font-size:12px}
.px-heatmap-key{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}
.mini-list-item>div{display:flex;flex-direction:column;gap:2px}
.mini-list-item>div>span{font-size:12px;color:var(--muted)}
.inline-form-card{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.inline-form-card>label{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1}
.inline-form-card>select,.inline-form-card>input:not([type=hidden]){flex:1;min-width:160px;width:auto}
/* U14 global search results */
.search-results{display:grid;gap:16px}
.search-list{display:grid}
.search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.search-result>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.search-result>div>span{font-size:12px;color:var(--muted)}
.search-result>span{flex:0 0 auto;color:var(--muted)}
/* U15 appearance choices: real segmented buttons with spacing */
.px-appearance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.px-appearance-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.px-appearance-options>button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--ink);font:inherit;cursor:pointer}
.px-appearance-options>button[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.px-accent-dot{display:inline-block;width:12px;height:12px;border-radius:50%}
/* U17/U18 avatars */
.staff-photo-wrap{flex-wrap:nowrap}
.staff-avatar{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--soft);color:var(--ink);font-weight:700;text-decoration:none;overflow:hidden}
.staff-avatar img{width:100%;height:100%;object-fit:cover}
.ex-team-avatar{border-radius:50%;background:var(--soft);color:var(--ink);font-size:22px;font-weight:700;overflow:hidden}
/* U19 status pages */
.byair-system-kicker{display:block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.byair-system-card{max-width:620px;margin:60px auto;padding:32px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.byair-system-actions{margin-top:18px}
.byair-system-actions a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none}
.byair-system-actions a.primary{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.byair-system-ref{margin-top:14px;font-size:12px;color:var(--muted)}
/* U20 staff transfer toolbar */
.staff-transfer-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:10px}
.staff-transfer-tools>label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}
/* U21 menu fly-out is opaque; scrolls on touch screens too */
.sidebar:is(:hover,:focus-within,.open){background:var(--surface);overflow-y:auto;overscroll-behavior:contain}
/* U22 truncated selects / small fields */
.field select,.field input{min-width:0}
.phone-row,.field .phone-input{display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:8px}
.toolbar-search{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.toolbar-search>input[type=search],.toolbar-search>input[name=q]{flex:1 1 220px;min-width:180px}
input[type=file]{max-width:100%;min-width:0}
@media(max-width:700px){.title-row .actions select,.page-hero select{min-width:0;max-width:100%}}
/* U23 page titles use the full width */
.suite-hero h1,.ws-hero h1,.page-hero h1,.feature-hero h1{max-width:none}
.suite-hero>div:first-child,.ws-hero>div:first-child{flex:1 1 auto;min-width:0}
/* U24 modal close button */
.app-modal-head .icon-btn{min-width:40px;min-height:40px;display:grid;place-items:center;padding:0;font-size:20px;line-height:1}
/* U27 mobile tab strips show they scroll */
@media(max-width:760px){.r18-primary,.simple-module-nav,.cp-tabs,.suite-subtabs,.ws-tabs{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}}
/* U28 money on detail KPI cards on one line */
.cards .ex-money-metric .ex-money-unit{display:inline;font-size:.62em;margin-right:4px;opacity:.85}
.cards .ex-money-metric .ex-money-number{display:inline}
/* U29 settings card uses the full width when alone */
.grid-2>.card:only-child{grid-column:1/-1}
/* U7 mobile: wide tables scroll sideways instead of squeezing columns to one word */
@media(max-width:760px){.table-wrap,.ex-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap>table:not(.mobile-record-table),.ex-table-scroll>table:not(.mobile-record-table){min-width:620px}.table td,.table th{white-space:normal}}
/* U8 actions column never hides behind the card edge */
.table td:last-child .btn,.table td:last-child summary.btn{white-space:nowrap}
.table td.cell-description{min-width:220px}
/* H2 mobile print pages */
@media(max-width:700px){.receipt-box .grid-2{grid-template-columns:1fr}.receipt-box .kpi-row{flex-wrap:wrap}.crm-print-page .sheet{overflow-x:auto}}
/* H14 clipped labels */
.ux-cal-jump label,label[for=ws-note-search]{white-space:normal;overflow:visible}
/* L5 empty tables explain themselves */
.ex-table-empty,.crm189-empty{padding:14px 16px;color:var(--muted);font-size:13px}
/* L6 contrast */
html[data-theme=light] .badge.bad{color:#8f241d}
html[data-theme=light] .badge.warn{color:#634409}
.ux-day.is-today .ux-day-num{background:#b8441f}
html[data-theme=dark] .ux-agenda-time,html[data-theme=dark] .ux-agenda-t,html[data-theme=dark] .ux-k-followup .ux-agenda-t{color:#f07a52}
.px-hot-list>a:nth-child(2n){background:#a93b1a}
/* product cards: actions in one wrapped row */
.feature-product-list{display:grid;gap:14px}
.feature-product-card{padding:16px 0;border-bottom:1px solid var(--line)}
.product-card-main{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.product-price-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:12px 0}
.product-price-grid small{display:block;color:var(--muted);font-size:12px}
.product-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.product-card-actions .actions-inline{display:inline-flex;gap:6px;align-items:center;margin:0}
.product-card-actions select{width:auto;min-width:110px}
/* invoice item labels keep the star on the label line */
.item-row>label{display:block}
.item-row>label input{display:block;margin-top:6px}
html[data-theme=dark]{--ux-followup:#f07a52}
#services .service-row>small{grid-column:1/-1}
#services .service-row>small:empty{display:none}
.crm-combobox{min-width:0}
html[data-theme] body .product-card-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
html[data-theme] body .product-card-actions>a.btn,html[data-theme] body .product-card-actions form,html[data-theme] body .product-card-actions form .btn{width:auto;flex:0 1 auto}
.card>a.btn+a.btn{margin-left:8px}
@media (max-width:560px){.card>a.btn+a.btn{margin-left:0;margin-top:8px}}
.btn.btn-sm{white-space:nowrap}

/* ---------- 18.11.0 WhatsApp team workflow ---------- */
.wa209-hero-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wa209-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.2fr);gap:22px;align-items:start}
.wa209-grid>.wa209-wide{grid-column:1/-1}
.wa209-form{display:grid;gap:14px;margin-top:6px}
.wa209-form label{display:grid;gap:6px;font-weight:500}
.wa209-form input:not([type=radio]):not([type=checkbox]),.wa209-form select{width:100%;min-height:44px}
.wa209-form small{color:var(--muted);font-weight:400;font-size:12.5px}
.wa209-mode{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:10px;margin:0}
.wa209-mode legend{font-weight:600;padding:0 6px}
.wa209-mode .wc-check{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.wa209-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.wa209-table{width:100%;border-collapse:collapse;font-size:14px}
.wa209-table th,.wa209-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.wa209-table th{font-size:12px;color:var(--muted);font-weight:600}
.wa209-table td small{display:block;color:var(--muted);font-size:12px}
.wa209-table .num{text-align:right;font-variant-numeric:tabular-nums}
.wa209-miss{color:var(--danger)}
.wa209-steps{margin:0;padding-left:20px;display:grid;gap:8px;line-height:1.55}
.wa209-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--soft);font-size:12px;margin-left:4px}
.wa209-status:empty{display:none}
.wa209-status{padding:12px 14px;border-radius:12px;margin:0 0 16px;background:var(--success-bg,var(--soft))}
.wa209-status.error{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
.wa209-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px;max-height:620px;overflow:auto}
.wa209-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 6px;border-bottom:1px solid var(--line)}
.wa209-list li.off{opacity:.7}
.wa209-list .wc-check{display:flex;gap:10px;align-items:flex-start;min-width:0}
.wa209-list strong{display:block}.wa209-list small{display:block;color:var(--muted);font-size:12.5px}
.wa209-state{font-size:12px;color:var(--muted);text-align:right;flex:0 0 auto;max-width:45%}
.wa209-state.good{color:var(--success)}.wa209-state.bad{color:var(--danger)}
.wa209-runner textarea{width:100%;min-height:180px}
.wa209-runner label{display:grid;gap:6px;margin:12px 0}
.wa209-meta{color:var(--muted)}
.wa209-who strong{display:block;font-size:18px}.wa209-who small{display:block;color:var(--muted)}
.wa209-buttons{display:flex;flex-wrap:wrap;gap:10px}
.wa209-after{margin-top:16px;padding:14px;border-radius:14px;background:var(--soft)}
.wa209-after p{margin:0 0 10px}
.wa209-sender{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;margin:12px 0;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.wa209-sender>div{flex:1;min-width:0}.wa209-sender small{display:block;color:var(--muted);margin-top:3px;line-height:1.5}
.wa209-sender .wa209-warn{color:var(--warning)}
.wa209-dot{width:10px;height:10px;border-radius:50%;background:#25d366;margin-top:6px;flex:0 0 auto}
@media (max-width:900px){.wa209-grid{grid-template-columns:1fr}.wa209-row3{grid-template-columns:1fr}.wa209-sender{flex-wrap:wrap}}
@media (max-width:640px){.wa209-table thead{display:none}.wa209-table tr{display:block;border-bottom:1px solid var(--line);padding:8px 0}.wa209-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 2px}.wa209-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:12px}.wa209-table .num{text-align:right}}
.wc-tabs a.selected .wa209-count{background:color-mix(in srgb,currentColor 20%,transparent);color:inherit}
@media (max-width:640px){.wa209-hero-actions{margin-top:14px}.wc-hero:has(.wa209-hero-actions){display:block}}
