/* Shared reading and interaction scale. Loaded after the component styles. */
:root{--muted:#59685f;--reading-small:13px;--reading-body:15px}
body{font-size:var(--reading-body);line-height:1.55}
.help,.muted,.settings-list,.card-meta,.inventory-description,.machine-card-location,.machine-card-inventory>div,.machine-card-inventory strong small,.machine-card-health-title,.machine-card-health>span:last-child,.machine-card-issue-preview,.machine-card-problems ul,.machine-card-open,.machine-card-model small,.machine-card-status,.machine-code,.notification-meta,.notification-item p,.dashboard-task-meta,.dashboard-task-summary,.dashboard-task-content p,.dashboard-task-action,.dashboard-task-details summary,.dashboard-task-details p,.photo-upload-note,.photo-upload-empty,.photo-upload-formats{font-size:var(--reading-small)}
.sidebar nav a,.sidebar nav a>span:not(.notification-count),.button,.text-button,.back-link,.breadcrumbs,.topbar-profile,.workspace-tabs a,.inventory-edit-label{font-size:14px}
.sidebar nav a{min-height:44px}.sidebar-account strong,.sidebar-account small{font-size:12px}.sidebar-account strong{max-width:145px}.nav-group-label,.eyebrow{font-size:11px;letter-spacing:.055em;color:var(--muted)}
.machine-card-title{font-size:21px}.machine-card-model>span{font-size:14px}.machine-card-problems,.machine-card-health{min-height:78px}.machine-card-health>span:last-child,.machine-card-issue-preview{margin-left:0}.machine-card-issue-count{font-size:12px}.machine-card-status{white-space:normal}.machine-card-open,.machine-card-qr{min-height:44px}.machine-card-qr{width:44px}.machine-card{padding:22px}
.dashboard-task-content h3{font-size:15px}.dashboard-task-action{min-height:44px;max-width:210px}.dashboard-task-meta{font-size:13px}.dashboard-task-meta>span{display:inline}.dashboard-task-content p{line-height:1.5}.notification-meta{gap:12px}.badge,.stat small,.machine-summary small,.dashboard-order-row small,.dashboard-machine-row small{font-size:13px}
button,a,input,select,textarea,summary{scroll-margin-block:90px}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #327557;outline-offset:3px}
.icon-button,.text-button,.copy-field button{min-width:44px;min-height:44px}input,select,textarea{font-size:16px}label{font-size:14px}.check{min-height:44px}.check input{flex-shrink:0}.button{min-height:44px}.field-error{display:block;color:#a12a28;font-size:13px;line-height:1.5;margin-top:6px}[aria-invalid=true]{border-color:#a12a28}
.stats-grid.fleet-stats{gap:12px;margin-bottom:18px}.fleet-stats .stat{padding:16px 20px}.fleet-stats .stat strong{font-size:25px;margin:6px 0 0}.fleet-stats .stat strong small{display:block;margin:4px 0 0}.fleet-stats .stat span{font-size:13px}
.machine-summary.readable-summary{grid-template-columns:2fr 1fr 1fr}.readable-summary article{padding:20px}.readable-summary article>span{font-size:14px}.readable-summary small{font-size:13px}.readable-summary .summary-ready strong{color:var(--green)}.summary-ready strong small{display:inline;font-size:20px}.inventory-cell[data-changed=true]{border-color:#8aaf98;background:#fbfdfb}.inventory-cell[data-changed=true] .inventory-edit-label{color:var(--green)}.inventory-cell[data-changed=true] .inventory-edit-label:before{content:'● ';font-size:10px}.inventory-cell[data-changed=true] .inventory-edit-label:after{content:' · изменено'}.save-status{font-size:14px}.form-save-bar{gap:20px;flex-wrap:wrap}.form-save-bar[data-unsaved=true]{border-color:#a9c7b4;background:#f1f7f3}.workspace-tabs a[data-unsaved=true]:after{content:' ●';color:var(--green)}
.catalogue-heading{margin-bottom:22px}.catalogue-heading .badge{letter-spacing:0}.catalogue-heading h1{margin-top:12px}.catalogue-connect-panel{max-width:640px;margin:0 auto 20px;padding:28px}.catalogue-connect-panel h2{font-size:24px}.catalogue-connect-panel .button{width:100%;margin-top:8px;min-height:50px}.catalogue-connect-panel [role=status]{min-height:2.5em}.purchase-history-label{display:block;margin:16px 0}.purchase-history-label[hidden]{display:none}.catalogue-app-option{display:flex;align-items:center;gap:18px;margin:28px auto 0;max-width:640px;border-top:1px solid var(--line);padding:22px 0}.catalogue-app-option img{width:48px;height:48px}.catalogue-app-option p{margin:0 0 8px;font-size:14px}.catalogue-app-option .button-row{gap:8px}.catalogue-app-option a{font-size:14px}.catalogue-note{font-size:13px}.product-info>p{font-size:14px}.product-bottom .badge,.slot-tag{font-size:13px}.product-grid .product-buy{min-height:48px;font-size:15px}.product-unavailable{margin:10px 0 0;font-size:13px;color:var(--muted)}
.purchase-progress{gap:8px}.purchase-progress li{font-size:13px;line-height:1.4}.purchase-progress li span{flex-shrink:0}.purchase-dialog{max-width:560px;width:calc(100% - 24px);padding:24px}.purchase-dialog h2{line-height:1.35}.purchase-status{font-size:16px;padding:16px;border-radius:12px;background:var(--soft);line-height:1.55}.purchase-dialog .button-row{margin-block:14px}.purchase-dialog .button-row:has([data-purchase-pay]:not([hidden])),.purchase-dialog .button-row:has([data-purchase-link]:not([hidden])){flex-direction:column;align-items:stretch}.purchase-reference{overflow-wrap:anywhere}.purchase-details{margin-block:16px}.purchase-details summary{font-size:13px;cursor:pointer;min-height:36px;display:flex;align-items:center}.purchase-reference:empty{display:none}.purchase-product-preview{display:flex;gap:16px;align-items:center;margin-block:18px}.purchase-product-preview[hidden]{display:none}.purchase-product-preview img{width:76px;height:76px;object-fit:contain;background:var(--surface);border-radius:10px}.purchase-product-preview strong{font-size:20px}.purchase-help{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}
.role-permission-group{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0;min-width:0}.role-permission-group legend{font-weight:600;padding:0 7px;font-size:15px}.role-permission-group .check{margin:0}.role-scope{padding:16px;background:var(--soft);border-radius:10px;font-size:14px}.revenue-preview{background:var(--soft);border-radius:12px;padding:20px}.revenue-preview h2{font-size:17px;margin:0 0 14px}.revenue-preview dl{margin:0}.revenue-preview dl div{display:flex;justify-content:space-between;gap:20px;padding:8px 0}.revenue-preview dd{font-weight:600;margin:0}.revenue-preview dt{color:var(--muted)}
@media(max-width:900px){.sidebar nav a{min-height:44px}.sidebar nav a>span:not(.notification-count){font-size:14px}}
@media(max-width:600px){.stats-grid.fleet-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-stats .stat{padding:14px}.fleet-stats .stat strong{font-size:24px}.machine-summary.readable-summary{grid-template-columns:1fr 1fr}.readable-summary .summary-ready{grid-column:1/-1}.machine-card{padding:20px}.machine-card-status{font-size:13px}.dashboard-task-action{max-width:120px;font-size:13px}.dashboard-task-content h3{font-size:15px}.dashboard-task-meta{font-size:13px}.catalogue-app-option{align-items:flex-start}.purchase-progress{flex-wrap:wrap}.purchase-progress li{flex:1 1 calc(50% - 8px)}.purchase-dialog{padding:20px}.form-save-bar .button{width:100%}.button-row .button{white-space:normal}.role-rights{grid-template-columns:1fr}.table-scroll{overscroll-behavior-inline:contain}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:900px){.fleet-stats .stat{display:flex;justify-content:space-between;align-items:center;gap:12px}.fleet-stats .stat>span{font-size:13px;max-width:70%}.fleet-stats .stat strong{margin:0;line-height:1.2}.fleet-stats .stat strong small{display:none}}
.password-toggle{width:fit-content;justify-self:end;padding:4px 0}.role-permission-group[hidden]{display:none}
.issue-action{display:block;width:fit-content;font-size:13px;font-weight:600;min-height:36px;padding-block:7px;color:var(--green)}
.badge.gray,.machine-card-status.is-hidden{color:#536258;background:#eef2ef}.badge.green,.machine-card-status.is-published{color:#315b43;background:#e9f3eb}.badge.warning,.machine-card-status.is-maintenance{color:#735020;background:#fff4dc}.machine-card-model>span,.machine-card-model small,.machine-card-location,.machine-card-id{color:var(--muted)}.machine-card-problems .machine-card-health-title{color:#785b2f}.machine-card-inventory strong small{color:var(--muted)}.machine-card-qr{color:#536258}.dashboard-chart-dates,.dashboard-chart-scale,.dashboard-footnote,.dashboard-period,.task-filter,.case-meta,.cell-subline,.dashboard-fleet-metrics,.page-context{font-size:13px;color:var(--muted)}
.fleet-summary>summary{display:none}.fleet-summary{margin-bottom:18px}.fleet-summary .fleet-stats{margin-bottom:0}
@media(max-width:900px){.fleet-summary>summary{display:block;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:white;padding:12px 16px;font-size:14px;color:var(--muted);min-height:46px}.fleet-summary>summary:after{content:'⌄';float:right}.fleet-summary[open]>summary{margin-bottom:12px}.fleet-summary[open]>summary:after{content:'⌃'}}
.purchase-progress li{opacity:1;color:var(--muted)}.purchase-progress li.current,.purchase-progress li.done{color:var(--green)}
.machine-card-model>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
