:root{--ink:var(--text);--dim:var(--muted);--green:#087967;--ui-caption:12px;--ui-label:13px;--ui-body:14px}html,body{font-family:var(--font-sans), ui-sans-serif, system-ui, sans-serif}.shell>main,.content,.builder,.builder-grid>*,.product-editor-grid>*,.settings-complete>*,.rule-editor-grid>*,.template-form>*,.quantity-limits>*,.heading>div,.subpage-head>div{min-width:0}.heading{flex-wrap:wrap}.heading>div:first-child{flex:1}.heading>.button{flex:none}.button{height:auto;min-height:40px;font-size:var(--ui-body);padding-block:8px;line-height:1.4}.button svg,.notice>svg,.protected-price svg{flex-shrink:0}.button:disabled{opacity:1;background:var(--sub);color:var(--muted);border:1px solid var(--border);box-shadow:none;cursor:not-allowed}.button:disabled:hover{transform:none}input:disabled,input[readonly],select:disabled,textarea[readonly]{background:var(--sub);color:var(--muted);border-color:var(--border);opacity:1;cursor:not-allowed}.shell input::placeholder,.auth-card input::placeholder{color:var(--muted);opacity:1}.shell :is(input,select,textarea):focus-visible,.auth-card :is(input,select):focus-visible{outline:2px solid var(--primary);outline-offset:2px}.auth-card>label>div:focus-within,.price-grid>label:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--pale)}.shell .table,.shell .table-wrap{width:100%;display:block;overflow-x:auto}.shell :is(.table,.table-wrap) table{border-collapse:collapse;width:100%;min-width:720px}.shell .table-card th{font-size:var(--ui-caption)}.shell .table-card td,.shell .table-card td b{font-size:var(--ui-body)}.shell :is(th,td){vertical-align:middle;padding:12px 16px}.shell .table td small{font-size:var(--ui-caption)}.shell .table td{overflow-wrap:anywhere}.shell .table td:first-child{max-width:340px}.shell .status{font-size:var(--ui-caption);white-space:nowrap}.shell :is(.table,.table-wrap) :is(th,td).numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.shell .content :is(.catalog-metrics span,.catalog-metrics small,.pricing-tabs small,.rule-target-grid label,.template-form small,.quantity-limits span,.settings-complete>aside small,.condition-builder>span,.rule-summary,.terms-editor>span,.modal-fields small,.notice p){font-size:var(--ui-caption);line-height:1.5}.shell .content :is(.template-form label>span,.rule-fields label>span,.settings-panel label>span,.pricing-tabs strong,.settings-complete>aside strong,.toolbar-filter,.template-status-filter){font-size:var(--ui-label);line-height:1.4}.shell .content :is(.template-form input,.template-form select,.template-form textarea,.rule-fields input,.rule-fields select,.settings-panel input,.settings-panel select,.settings-panel textarea,.condition-builder input,.condition-builder select,.terms-editor textarea,.toolbar input,.template-status-filter select,.rule-simulator input){font-size:var(--ui-body)}.shell .content :is(.template-form,.rule-fields,.quantity-limits) input,.shell .content :is(.template-form,.rule-fields) select{width:100%;min-width:0}.quantity-limits label{flex-direction:column;gap:6px;display:flex}.quantity-limits input{border:1px solid var(--border);background:var(--card);height:38px;font-size:var(--ui-body);border-radius:8px;padding:0 9px}.rule-section>label:has(input[type=checkbox]){font-size:var(--ui-label);align-items:center;gap:8px;margin-top:12px;display:flex}.condition-builder{grid-template-columns:50px minmax(0,1fr) minmax(0,1fr) minmax(70px,1fr) auto}.shell .toolbar{flex-wrap:wrap}.shell .toolbar>label{min-width:0}.shell .toolbar>.search{flex:260px}.builder-grid{grid-template-columns:minmax(0,870px) 280px}.builder-card{min-width:0}.builder-nav{flex-wrap:wrap;height:auto;min-height:64px;padding-block:10px}.builder-nav strong{overflow-wrap:anywhere}.builder-nav small,.stepper b{font-size:var(--ui-caption)}.stepper{justify-content:flex-start;padding-inline:24px;overflow-x:auto}.stepper>div{flex-shrink:0}.quote-pricing-scroll{border-radius:9px;width:100%;margin-bottom:16px;overflow-x:auto}.quote-pricing-scroll .price-grid{min-width:690px;font-size:var(--ui-label);grid-template-columns:minmax(190px,2fr) 64px minmax(125px,1fr) 84px minmax(115px,1fr);gap:12px}.quote-pricing-scroll .price-grid.head{font-size:var(--ui-caption)}.quote-pricing-scroll .price-grid:last-child{border-radius:0 0 9px 9px}.quote-pricing-scroll .price-grid:not(:last-child):not(.head){border-radius:0}.quote-pricing-scroll .price-grid>:nth-child(3),.quote-pricing-scroll .price-grid>:nth-child(4){display:flex}.quote-pricing-scroll .price-grid.head>:nth-child(3),.quote-pricing-scroll .price-grid.head>:nth-child(4){display:block}.quote-pricing-scroll .price-grid :is(strong,small){overflow-wrap:anywhere}.quote-pricing-scroll .price-grid small{font-size:var(--ui-caption)}.quote-pricing-scroll .price-grid>input{width:64px}.quote-pricing-scroll .price-grid>label{max-width:none}.quote-pricing-scroll .price-grid :is(input,label){min-width:0;min-height:36px}.quote-pricing-scroll .price-grid>label input{min-height:32px}.quote-pricing-scroll .price-grid>:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}.quote-pricing-scroll .price-grid>input{justify-self:end}.protected-price{color:var(--muted);justify-content:flex-end;align-items:center;gap:6px}.summary>small,.summary-customer small,.secure{font-size:var(--ui-caption)}.summary>small{color:var(--muted)}.summary p,.summary-customer strong{font-size:var(--ui-body)}.summary p{font-variant-numeric:tabular-nums;gap:12px;margin-block:12px}.summary p:last-of-type{border-top:1px solid var(--border);padding-top:16px;font-size:20px;font-weight:700}.summary p:last-of-type span{color:var(--text)}.summary-customer>div,.customer>div,.picker>div>div{overflow-wrap:anywhere;min-width:0}.review b,.review span{overflow-wrap:anywhere}.review small,.review span,.validation-pass small,.review-confirm small{font-size:var(--ui-caption)}.review b,.review-confirm strong,.validation-pass b{font-size:var(--ui-label)}.builder .notice,.builder .notice strong,.builder .notice p{font-size:var(--ui-label);line-height:1.5}.backdrop{padding:16px;overflow-y:auto}.modal{flex-direction:column;max-height:calc(100dvh - 32px);display:flex}.modal>header,.modal>footer{flex-shrink:0}.modal>.modal-fields,.modal>form{min-height:0;overflow-y:auto}.modal .modal-fields :is(input,select,textarea){min-width:0;font-size:var(--ui-body)}.modal .modal-fields label>span{font-size:var(--ui-label)}.modal footer{flex-wrap:wrap}.drawer{max-width:100vw}.drawer :is(strong,small){overflow-wrap:anywhere}.toast{max-width:calc(100vw - 32px)}.toast :is(strong,small){font-size:var(--ui-caption)}.auth-card>p,.auth-card>label>span,.auth-row,.auth-row button,.auth-error,.auth-divider,.auth-card>.text-back,.auth-card small{font-size:var(--ui-label);line-height:1.5}.auth-kicker{font-size:var(--ui-caption);color:var(--primary)}.auth-card input{font-size:var(--ui-body);color:var(--text);min-width:0}.auth-card>label>div{height:auto;min-height:44px;padding-block:8px}.auth-card label>div>button{font-size:var(--ui-caption);min-height:28px}.auth-row{flex-wrap:wrap;gap:8px}.auth-row button{min-height:32px}.auth-divider{color:var(--muted)}.auth-art>small{font-size:var(--ui-caption)}@media (max-width:1200px){.product-editor-grid,.settings-complete{grid-template-columns:minmax(0,1fr)}.product-preview{position:static}.settings-complete>aside{display:flex;overflow-x:auto}.settings-complete>aside button{min-width:180px}}@media (max-width:1100px){.builder-grid{grid-template-columns:minmax(0,1fr)}.summary{display:block}}@media (max-width:760px){.builder-grid{gap:16px;display:grid}.builder-card{min-height:0}.builder-foot{margin-top:24px}.builder-nav>div{flex:120px}.role-guardrail{display:inline-flex}.heading>div:first-child{flex-basis:100%}.quantity-limits{grid-template-columns:repeat(2,minmax(0,1fr))}.condition-builder,.rule-target-grid{grid-template-columns:minmax(0,1fr)}.auth-panel{padding:24px}.auth-card input{font-size:16px}}.builder-grid.preview-step{grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}.document-preview{width:100%;min-width:0}.document-preview>article{aspect-ratio:auto;padding:20px;overflow:visible}.document-preview article :is(header,section,.document-meta,.document-row)>*{overflow-wrap:anywhere;min-width:0}.document-preview article header{grid-template-columns:30px minmax(0,1fr)}.document-preview article header h2{grid-column:1/-1}.document-preview article :is(small,.document-meta b,.document-parties span,.document-row>span,.document-row b,.document-row small,.document-terms p,footer span){font-size:11px;line-height:1.5}.document-preview article :is(small,.document-parties span,.document-row small,.document-terms p,footer span){color:var(--muted)}.document-preview article :is(header strong,.document-parties strong,h3,footer strong){font-size:12px}.document-preview .document-row{grid-template-columns:minmax(0,1fr) 38px minmax(90px,auto)}.document-preview .document-row.head span{font-size:10px}.document-preview .document-row small{white-space:normal}.document-preview .document-terms p{max-height:none;overflow:visible}.document-preview .document-total{width:100%;max-width:250px}.document-preview .document-total>span{gap:12px;font-size:11px}.document-preview .document-total>strong{gap:12px;font-size:14px}.shell .table-card th{color:var(--muted)}.shell .status.muted{color:#505a70}.shell input:not(:disabled):not([readonly]){color:var(--text)}.shell .button:disabled{background:var(--sub);color:var(--muted)}.sidebar>.logo>small{font-size:9px}.product-editor-head{flex-wrap:wrap}@media (max-width:1100px){.builder-grid.preview-step{grid-template-columns:minmax(0,1fr)}}@media (max-width:760px){.document-preview>article{padding:14px}.document-preview .document-parties section:nth-child(2){display:grid}}.shell th{color:var(--muted);font-size:var(--ui-caption)}.shell td{font-size:var(--ui-body)}.pricing-tabs .active small{color:#505a70}.status.warn{color:#925600}.type-picker button strong,.control-grid strong{font-size:var(--ui-label)}.type-picker button small,.control-grid small{font-size:var(--ui-caption)}.subpage-head{flex-wrap:wrap}.subpage-head>div{flex:240px}.shell .toast>div>span{font-size:var(--ui-caption);line-height:1.5}.toast.error>svg{color:#ffb4b9}.drawer>header>div{min-width:0}.drawer>header h2{overflow-wrap:anywhere}.drawer :is(input,textarea,select){max-width:100%}.quote-document>span{color:#505a70;font-size:var(--ui-caption)}.type-picker .active small{color:#505a70}.rule-simulator h2{font-size:16px}.shell th{position:relative}.builder-split>*{min-width:0}.custom-column-add{flex-wrap:wrap}.custom-column-add>input{flex-basis:150px;width:0}.template-section-title{margin:0 0 12px;font-size:16px}.template-workspace :is(.toggle-row strong,.permission-section strong,.column-list strong){font-size:var(--ui-label)}.template-workspace :is(.toggle-row small,.selection-summary span,.custom-fields-list small){font-size:var(--ui-caption);line-height:1.5}.selection-summary>span{color:#35665c}.template-builder-top{flex-wrap:wrap;height:auto;min-height:58px;padding-block:10px}.template-builder-top>div{min-width:0}.template-builder-top strong{font-size:var(--ui-label)}.template-builder-top small,.template-builder-top>button,.template-builder-footer>button:first-child{font-size:var(--ui-caption)}.template-builder-footer{flex-wrap:wrap;justify-content:space-between;gap:12px}.quote-brand-preview>div>strong{font-size:20px}.user-detail-overlay{left:248px}.sidebar.collapsed~main .user-detail-overlay{left:76px}.profile-banner{flex-wrap:wrap;padding-right:48px}.profile-banner>div{min-width:0}.profile-banner h2{flex-wrap:wrap}.profile-banner p{font-size:var(--ui-caption);overflow-wrap:anywhere}.close-detail{border:1px solid var(--border);border-radius:9px;place-items:center;width:40px;height:40px;display:grid}.profile-facts{gap:12px 20px}.profile-facts h3,.quick-user h3,.user-detail-grid .activity-card h3{margin:0;padding-bottom:12px;font-size:16px}.profile-facts span{font-size:var(--ui-caption)}.profile-facts strong{font-size:var(--ui-label);overflow-wrap:anywhere}.quick-user button{height:40px;font-size:var(--ui-label);text-align:left;align-items:center;gap:10px;padding:0 12px;display:flex}.quick-user button.danger{color:#b83240}.activity-unavailable{font-size:var(--ui-caption);color:var(--muted);line-height:1.5}@media (max-width:760px){.user-detail-overlay,.sidebar.collapsed~main .user-detail-overlay{left:0}.profile-banner>.button{margin-left:67px}.profile-banner{grid-template-columns:55px minmax(0,1fr);align-items:start;display:grid}.profile-banner>.button{grid-column:1/-1;justify-self:start;margin-left:67px}}.workspace-settings-refined .settings-panel{min-width:0;padding:28px}.workspace-settings-refined .settings-panel h3{margin:28px 0 16px;font-size:15px}.workspace-settings-refined .settings-panel p{font-size:var(--ui-label);color:var(--muted);max-width:720px;line-height:1.6}.workspace-settings-refined .settings-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:760px;margin-bottom:24px;display:grid}.workspace-settings-refined label{flex-direction:column;gap:8px;min-width:0;display:flex}.workspace-settings-refined input:not([type=checkbox]):not([type=color]):not([type=file]),.workspace-settings-refined select{width:100%;min-height:44px}.workspace-settings-refined input[readonly]{background:var(--bg);color:var(--muted)}.workspace-settings-refined small{font-size:var(--ui-caption);color:var(--muted);line-height:1.5;display:block}.workspace-settings-refined .settings-checks{gap:16px;margin:24px 0;display:grid}.workspace-settings-refined .settings-checks label{flex-direction:row;align-items:center}.workspace-settings-refined .settings-checks input{flex:none;width:17px;height:17px;margin:0}.workspace-settings-refined .settings-info{background:var(--bg);border-radius:10px;padding:16px}.workspace-settings-refined .settings-color{align-items:center;gap:12px;display:flex}.workspace-settings-refined .settings-color input[type=color]{flex:none;width:44px;height:44px;padding:3px}.workspace-settings-refined .settings-logo-upload{align-items:center;gap:20px;margin-bottom:24px;display:flex}.workspace-settings-refined .settings-logo-upload img{object-fit:contain;width:80px;height:80px}.workspace-settings-refined .settings-logo-upload button{margin:0 8px 10px 0}.workspace-settings-refined .settings-pdf-preview iframe{border:1px solid var(--border);border-radius:10px;width:100%;height:680px;margin-top:12px}.workspace-settings-refined .settings-security dt{margin-top:24px;font-weight:600}.workspace-settings-refined .settings-security dd{color:var(--muted);margin:8px 0;line-height:1.6}.workspace-settings-refined .settings-actions{background:#fff;padding:16px 0 0}.workspace-settings-refined .settings-complete>aside button{white-space:normal;min-height:64px}@media (max-width:760px){.workspace-settings-refined .settings-fields{grid-template-columns:1fr}.workspace-settings-refined .settings-panel{padding:20px}.workspace-settings-refined .settings-pdf-preview iframe{height:460px}}.workspace-settings-refined .settings-mobile-nav{display:none}.workspace-settings-refined .settings-panel input:not([type=checkbox]):not([type=file]),.workspace-settings-refined .settings-panel select{border:1px solid var(--border);color:inherit;background:#fff;border-radius:8px;padding:10px 12px}.workspace-settings-refined .settings-color input[type=color]{padding:3px}@media (max-width:760px){.workspace-settings-refined .settings-mobile-nav{margin-bottom:16px;display:flex}.workspace-settings-refined .settings-complete>aside{display:none}}.workspace-settings-refined .settings-group+.settings-group{border-top:1px solid var(--border);margin-top:28px;padding-top:8px}.workspace-settings-refined .settings-status-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;padding:16px 0;display:flex}.workspace-settings-refined .settings-status-row:last-child{border-bottom:0}.workspace-settings-refined .settings-status-row strong,.workspace-settings-refined .settings-checks strong{font-size:var(--ui-label);font-weight:600}.workspace-settings-refined .settings-status-row small,.workspace-settings-refined .settings-checks small{margin-top:4px}.workspace-settings-refined .settings-status{background:var(--bg);font-size:var(--ui-caption);white-space:nowrap;border-radius:6px;flex:none;padding:5px 10px}.workspace-settings-refined .settings-export-format{border:1px solid var(--border);border-radius:10px;align-items:center;gap:14px;margin-top:20px;padding:16px;display:flex}.workspace-settings-refined .settings-export-format>svg{flex:none}.workspace-settings-refined .settings-export-format>div{flex:1}.workspace-settings-refined .settings-format-preview{background:var(--bg);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;display:grid}.workspace-settings-refined .settings-format-preview dt{font-size:var(--ui-caption);color:var(--muted)}.workspace-settings-refined .settings-format-preview dd{font-size:var(--ui-label);overflow-wrap:anywhere;margin:8px 0 0}@media (max-width:760px){.workspace-settings-refined .settings-status-row{flex-wrap:wrap;gap:10px}.workspace-settings-refined .settings-export-format{flex-wrap:wrap}.workspace-settings-refined .settings-format-preview{grid-template-columns:1fr}}.admin-performance-grid>.dashboard-performance{grid-column:1/-1}.dashboard-performance .performance-heading,.dashboard-performance .performance-filters,.dashboard-performance .performance-table header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.dashboard-performance select{border:1px solid var(--border);background:#fff;border-radius:8px;max-width:240px;padding:10px 12px}.dashboard-performance .quote-performance-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-performance .performance-counts{margin:20px 0}.dashboard-performance .performance-charts{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;display:grid}.dashboard-performance .performance-chart{border:1px solid var(--border);border-radius:10px;min-width:0;padding:20px}.dashboard-performance h3{margin:0 0 12px;font-size:16px}.dashboard-performance p{color:var(--muted);font-size:var(--ui-label);line-height:1.6}.dashboard-performance .performance-legend,.dashboard-performance .performance-legend span{font-size:var(--ui-caption);align-items:center;gap:8px;display:flex}.dashboard-performance .performance-legend{justify-content:flex-end;gap:16px;margin:16px 0}.dashboard-performance i{border-radius:50%;flex:none;width:9px;height:9px;display:inline-block}.dashboard-performance .performance-bars{gap:12px;height:220px;margin-top:16px;display:flex}.dashboard-performance .performance-axis{font-size:var(--ui-caption);color:var(--muted);flex-direction:column;justify-content:space-between;padding-bottom:28px;display:flex}.dashboard-performance .performance-month{text-align:center;flex-direction:column;flex:1;gap:10px;min-width:0;font-size:11px;display:flex}.dashboard-performance .performance-bar-pair{border-bottom:1px solid var(--border);background:repeating-linear-gradient(to top,transparent 0,transparent 47px,var(--border) 48px,transparent 49px);flex:1;align-items:flex-end;gap:6px;display:flex}.dashboard-performance .performance-bar{border-radius:3px 3px 0 0;flex:1}.dashboard-performance .performance-bar.quoted{background:#c6baff}.dashboard-performance .performance-bar.won{background:#6840e8}.dashboard-performance .performance-outcomes{flex-wrap:wrap;align-items:center;gap:24px;min-height:260px;display:flex}.dashboard-performance .performance-donut{border-radius:50%;flex:none;width:160px;height:160px;padding:24px}.dashboard-performance .performance-donut>div{background:#fff;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.dashboard-performance .performance-donut strong{font-size:26px}.dashboard-performance .performance-outcomes dl{flex:1;min-width:140px}.dashboard-performance .performance-outcomes dl>div{border-bottom:1px solid var(--border);gap:16px;padding:14px 0;display:flex}.dashboard-performance dt{flex:1;align-items:center;gap:8px;display:flex}.dashboard-performance dd{margin:0}.dashboard-performance .performance-note{background:var(--bg);border-radius:8px;padding:14px}.dashboard-performance .performance-table{margin:28px 0}.dashboard-performance .performance-table .table{overflow-x:auto}@media (max-width:1000px){.dashboard-performance .performance-charts{grid-template-columns:1fr}}@media (max-width:600px){.dashboard-performance .quote-performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-performance{min-width:0;padding:16px}.dashboard-performance .performance-bars{gap:6px}.dashboard-performance .performance-chart{padding:14px}.dashboard-performance .performance-outcomes{justify-content:center}.dashboard-performance select{max-width:100%}}.dashboard-performance .performance-table th,.dashboard-performance .performance-table td{white-space:nowrap}@media (max-width:600px){.dashboard-performance .quote-performance-metrics strong{white-space:nowrap;font-size:18px}}
