/* One type scale for both cabinets. Important declarations override legacy
   section-specific ID selectors; geometry, colours and status logic stay local. */
:root{
 --crm-font:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
 --type-page:28px;--type-section:20px;--type-subsection:18px;--type-card:16px;
 --type-input:16px;--type-body:14px;--type-caption:12px;--type-tool:12px;
 --type-normal:400;--type-medium:600;--type-bold:700;
 --type-reading:1.55;--type-control:1.4;--type-heading:1.25;
}
body.crm-type{font:var(--type-normal) var(--type-body)/var(--type-reading) var(--crm-font);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.crm-type,body.crm-type *:not(svg):not(svg *){font-family:var(--crm-font)!important}
body.crm-type :is(code,pre,kbd,samp){font-family:ui-monospace,Consolas,monospace!important}
body.crm-type :is(h1,h2,h3,h4){font-weight:var(--type-bold)!important;line-height:var(--type-heading)!important;letter-spacing:-.015em!important;text-align:start;overflow-wrap:anywhere;word-break:normal}
body.crm-type h1{font-size:var(--type-page)!important}
body.crm-type h2{font-size:var(--type-section)!important}
body.crm-type h3{font-size:var(--type-subsection)!important}
body.crm-type h4{font-size:var(--type-card)!important}
body.crm-type :is(.page-heading,.feed-heading,.emp-head,.auth-heading) h1{margin:0 0 6px!important}
body.crm-type :is(.page-heading,.feed-heading,.emp-head,.auth-heading) p:not(.eyebrow):not(.emp-caption):not(.auth-eyebrow){font-size:var(--type-body)!important;line-height:var(--type-reading)!important;letter-spacing:normal!important;margin:0}
body.crm-type :is(p,li,dd){line-height:var(--type-reading);word-break:normal}
body.crm-type p{font-size:var(--type-body)!important}
body.crm-type :is(.eyebrow,.emp-caption,.auth-eyebrow,.admin-eyebrow,.contract-eyebrow){font-size:var(--type-caption)!important;font-weight:var(--type-medium)!important;line-height:1.4!important;letter-spacing:.06em!important}
body.crm-type :is(button,[role="button"]){font-size:var(--type-body)!important;font-weight:var(--type-medium)!important;line-height:var(--type-control)!important;letter-spacing:normal!important;word-break:normal}
body.crm-type :is(.button,.auth-primary,.auth-secondary,.admin-primary,.admin-secondary){height:auto;min-height:40px;white-space:normal;overflow-wrap:anywhere}
body.crm-type :is(.button,.auth-primary,.auth-secondary,.admin-primary,.admin-secondary)>:is(svg,[data-icon],img){flex-shrink:0}
body.crm-type :is(.icon-button,.modal-close){font-size:18px!important;line-height:1!important}
body.crm-type :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:var(--type-input)!important;font-weight:var(--type-normal)!important;line-height:var(--type-control)!important;letter-spacing:normal!important;text-align:start;font-variant-numeric:lining-nums tabular-nums}
body.crm-type :is(input,textarea)::placeholder{font-size:inherit!important;font-weight:var(--type-normal)!important;line-height:inherit;letter-spacing:normal!important}
body.crm-type :is(form label,.contracts-toolbar>label,.cities-add label,.cities-editor label){font-size:var(--type-body)!important;font-weight:var(--type-medium)!important;line-height:var(--type-control)!important;letter-spacing:normal!important;text-align:start}
body.crm-type :is(form legend,.profile-type strong){font-size:var(--type-card)!important;font-weight:var(--type-medium)!important;line-height:var(--type-control)!important;letter-spacing:normal!important}
body.crm-type :is(.profile-type,.profile-type strong,.profile-type small){text-align:center}
body.crm-type .profile-type>small{margin:0;align-self:center}
body.crm-type :is(small,.profile-hint,.contract-note,.contract-pack-number,.contract-print-help,.review-card-hint,.review-next-hint,.review-file-count,.mat-filemeta,.emp-meta,.feed-meta,.message-meta,.message-thread-meta,.message-composer-hint,.board-guide,.board-foot,.client-record-count){font-size:var(--type-caption)!important;font-weight:var(--type-normal)!important;line-height:1.5!important;letter-spacing:normal!important}
body.crm-type :is(.partner-profile-banner strong,.profile-section-lead,.profile-footer p,.admin-card p,.auth-card p,.contract-form-intro p,.contract-heading p,.contract-row>div,.feed-caption,.message-bubble p){font-size:var(--type-body)!important;line-height:var(--type-reading)!important;letter-spacing:normal!important}
body.crm-type .partner-profile-banner strong{font-size:var(--type-card)!important;font-weight:var(--type-medium)!important}
body.crm-type :is(.client-tile-name,.orders-entry-name,.order-name strong,.dock-city strong,.emp-order strong,.message-thread-copy strong,.messages-conversation-head strong,.contract-row strong){font-size:var(--type-card)!important;font-weight:var(--type-medium)!important;line-height:var(--type-control)!important;letter-spacing:normal!important}
body.crm-type :is(.client-tile-name,.orders-entry-name,.review-heading h2,.profile-summary h2,.mat-name){white-space:normal;overflow-wrap:anywhere;word-break:normal}
body.crm-type .review-heading h2{font-size:var(--type-page)!important;line-height:var(--type-heading)!important}
body.crm-type :is(.mat-name,.review-subtitle,.messages-feed p,.contract-declaration-intro,.contract-declaration-sections){font-size:var(--type-body)!important;line-height:var(--type-reading)!important}
body.crm-type :is(.contract-reading .contract-attestation,.contract-attestation){text-align:start}
body.crm-type .contract-reading :is(.contract-declaration-intro,.contract-declaration-sections){line-height:1.7!important}
body.crm-type :is(.contract-check,.profile-check,.gate-note){font-size:var(--type-body)!important;line-height:var(--type-reading)!important;font-weight:var(--type-normal)!important}
body.crm-type :is(.profile-summary dt,th){font-size:var(--type-caption)!important;font-weight:var(--type-medium)!important;line-height:1.5!important;letter-spacing:normal!important}
body.crm-type :is(.profile-summary dd,td){font-size:var(--type-body)!important;line-height:var(--type-reading)!important;font-variant-numeric:lining-nums tabular-nums}
body.crm-type :is(.metric-body strong,.emp-metrics strong){font-size:28px!important;font-weight:var(--type-bold)!important;line-height:1.15!important;letter-spacing:-.02em!important;font-variant-numeric:lining-nums tabular-nums}
body.crm-type :is(.metric-body span,.emp-metrics span,.status-title,.dock-counts,.status-key,.contract-state,.order-status,.review-card-badge,.emp-chip){font-size:var(--type-caption)!important;font-weight:var(--type-medium)!important;line-height:1.4!important;letter-spacing:normal!important}
body.crm-type :is(.no-results,.messages-online,.messages-inbox-head span,.messages-count,.messages-filter b,.messages-empty,.messages-date-pill,.message-mini-avatar,.feed-brand,.feed-endnote){font-size:var(--type-caption)!important;line-height:1.5!important;letter-spacing:normal!important}
body.crm-type :is(.review-flow-step,.review-art-label,.s3-foot,.s3-foot span,.s3-zoom output,.pg-foot,.pg-foot span,.ak-view output){font-size:var(--type-caption)!important;line-height:1.5!important;letter-spacing:normal!important}
body.crm-type .messages-count{width:auto;min-width:28px;padding-inline:6px}
body.crm-type :is(.contract-dialog summary,.contract-agreement-jump span,.contract-step-number,.draft-pill){font-size:var(--type-caption)!important;line-height:1.5!important;letter-spacing:normal!important}
body.crm-type :is(.ak-badge,.pg-badge,.pg-ends){font-size:var(--type-caption)!important;line-height:1.5!important}
body.crm-type .pg-ends{gap:8px;flex-wrap:wrap}
body.crm-type :is(.nav-item,.emp-sidebar nav button){font-size:var(--type-body)!important;font-weight:var(--type-medium)!important;line-height:var(--type-control)!important}
body.crm-type :is(.nav-item,.emp-sidebar nav button) b{font-size:var(--type-caption)!important;line-height:1.4!important;font-variant-numeric:tabular-nums}
body.crm-type :is(.ak-editor,#ors-plantogram,#ors-scan-lab,.lab-tools,.lab-toolbar) button,
body.crm-type :is(.review-card-open,.review-card-request,.contract-tabs button,.contract-workspace-tabs button,.filter-tabs button,.feed-tabs button){font-size:var(--type-tool)!important;line-height:1.4!important;white-space:normal}
body.crm-type :is(.ak-editor,#ors-plantogram,#ors-scan-lab) :is(input:not([type=range]),select){font-size:var(--type-body)!important}
body.crm-type :is(.ak-editor,#ors-plantogram,#ors-scan-lab) :is(td,th){font-size:var(--type-caption)!important}
/* Circular labels use the same family and weights but retain their fitted scale. */
body.crm-type .bubble-style-neon .orb-ball>small{font-size:clamp(12px,1.8vw,21px)!important;font-weight:var(--type-medium)!important;line-height:1.15!important;text-align:center}
body.crm-type .orb-family{font-weight:var(--type-bold)!important;letter-spacing:-.015em!important;text-align:center}
body.crm-type .orb-names{font-weight:var(--type-normal)!important;letter-spacing:normal!important;text-align:center}
body.crm-type .orb-status{font-weight:var(--type-medium)!important;letter-spacing:normal!important}
@media(max-width:860px){
 :root{--type-page:24px}
 body.crm-type #crm-navigation .nav-item{font-size:11px!important;line-height:1.3!important}
 body.crm-type .app-shell .page-heading{align-items:flex-start}
}
@media(max-width:560px){body.crm-type .ak-rail button{min-width:62px}}
@media(prefers-reduced-motion:reduce){body.crm-type :is(h1,h2,h3,h4,p,label){scroll-behavior:auto}}
