/* Mobile layout only: no commercial calculations, permissions or API changes. */
.mobile-basket,.mobile-kp-jump{display:none}
.mobile-plan-controls{display:contents}
@media(max-width:760px){
 .mobile-plan-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.8fr);gap:8px;align-items:start;margin-bottom:12px}.mobile-plan-controls .yrbar,.mobile-plan-controls .mobile-filters{margin:0;min-width:0}.mobile-plan-controls .mobile-filters>summary>span{display:none}.mobile-plan-controls .mobile-filters[open]{grid-column:1/-1}.mobile-plan-controls .mobile-filters>summary:after{content:'⌄';font-size:15px}.mobile-plan-controls .yrbar{padding:0;min-height:50px}
 body[data-mobile-view=orders] .stats.pkpi .stat{display:flex;align-items:center;gap:10px;flex-basis:auto;min-height:56px;padding:10px 12px}body[data-mobile-view=orders] .stats.pkpi .stat .k{max-width:85px;font-size:11px;line-height:1.3}body[data-mobile-view=orders] .stats.pkpi .stat .v{margin:0;font-size:22px!important}
 body[data-mobile-view=admin] .card[onclick]>.cb{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 14px;padding:16px!important}body[data-mobile-view=admin] .card[onclick]>.cb>div:first-child{grid-column:1;grid-row:1/3;font-size:26px!important}body[data-mobile-view=admin] .card[onclick]>.cb>h3{grid-column:2;margin:0!important;font-size:15px!important}body[data-mobile-view=admin] .card[onclick]>.cb>div:last-child{grid-column:2;font-size:12px!important;line-height:1.5}
 .modal>.sd-head{display:block!important;padding:18px 16px!important}.sd-head>.sd-avatar,.sd-head>.close{display:none}.sd-head .sd-grow{width:100%;min-width:0}.sd-head h2{font-size:21px;line-height:1.3;margin:6px 0}.sd-head .sd-head-actions{margin-top:14px;display:flex;gap:8px}.sd-head-actions>.btn,.sd-head-actions>select{flex:1;min-width:0}.sd-chat-stream{max-height:46dvh!important;min-height:220px!important;overflow:auto;overscroll-behavior:contain}.sd-compose textarea{min-height:90px}
 .modal :is(p,strong,b,dd,.mcust){overflow-wrap:anywhere}.modal button{max-width:100%}.modal select{min-width:0}
 .mobile-kp-jump{display:block;position:sticky;bottom:calc(72px + var(--sa-bottom));width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--text);color:var(--surface);font-size:14px;font-weight:600;z-index:12;box-shadow:0 4px 18px #11182720}.mobile-overlay-open .mobile-kp-jump{visibility:hidden}
 .kp-exc .cb{max-height:42dvh;overflow:auto;overscroll-behavior:contain}.kp-catalog-list.cb{overscroll-behavior:contain}.card:has(.mobile-records) h3{scroll-margin-top:125px}
 table.tbl.mobile-records td[data-label="Кол-во"],table.tbl.mobile-records td[data-label="Цена, ₽"]{grid-column:auto}
 .mobile-workshop #mobileNav,.mobile-workshop #mobileBrand,.mobile-workshop #mobileAccount{display:none!important}
 .mobile-records.plan td[data-mobile-slot=checks],.mobile-records.plan td[data-mobile-slot=actions]{display:block!important;order:7;grid-column:1/-1}.mobile-records.plan tr:not(:has(.mobile-row-more)) td[data-mobile-slot=extra]{display:block!important}
 .so-catalog{max-height:46dvh;overflow:auto;overscroll-behavior:contain}.so-product{min-height:66px}.so-product b{font-size:13px;line-height:1.4}.so-product strong{white-space:nowrap;font-size:13px}.so-aside{scroll-margin-top:72px}.mobile-basket{display:block;position:sticky;bottom:0;z-index:20;width:100%;min-height:58px;border:0;border-top:1px solid var(--line);background:var(--red);color:white;padding:14px 16px calc(14px + var(--sa-bottom));font-family:inherit;font-size:14px;font-weight:600;text-align:center}
 .unified-customer .uc-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}.unified-customer .uc-actions>.btn{width:100%;font-size:12px;padding:10px}.unified-customer .uc-actions>.btn:last-child{grid-column:1/-1}
 .order-card-head>.mobile-inline-flex{padding-right:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}.order-card-head>.mobile-inline-flex>.btn{width:100%!important;min-width:0!important;font-size:11px!important;padding:8px 6px!important}
 .sr-categories,.sr-parts{grid-auto-flow:row!important;grid-auto-columns:auto!important;overflow:visible!important}
 .bn-tabs{display:flex;max-width:100%;overflow-x:auto;gap:8px;flex-wrap:nowrap}.bn-tabs>.btn{flex:0 0 auto;white-space:nowrap}
 .modal.unified-customer>.mhead.uc-head{padding:44px 16px 16px!important}
 .unified-customer .uc-context{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px}
 .unified-customer .uc-context>label{display:grid;gap:8px;width:100%;min-width:0;font-size:12px}
 .unified-customer .uc-context>span{white-space:normal}
 .unified-customer .uc-context select{max-width:100%;width:100%;text-overflow:ellipsis}
 body[data-mobile-view=orders] .page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
 body[data-mobile-view=orders] .page-head h1{font-size:23px}
 body[data-mobile-view=orders] .stats{display:flex!important;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;padding-bottom:4px}
 body[data-mobile-view=orders] .stat{flex:0 0 124px;scroll-snap-align:start;padding:12px}
 body[data-mobile-view=orders] .stat .v{font-size:25px!important}
}
#mobileNav,#mobileBrand,#mobileAccount,.mobile-modal-bar,.mobile-row-more{display:none}
.mobile-filters{margin-bottom:14px}.mobile-filters>summary{display:none}
.mobile-filters:not([open])>.toolbar{display:flex}
.mobile-profile{margin:auto;width:min(440px,calc(100% - 28px));padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}
.mobile-profile::backdrop{background:#11182780}.mobile-profile header{display:flex;justify-content:space-between;gap:16px;align-items:start}.mobile-profile header button{border:0;background:var(--surface-2);color:var(--text);border-radius:10px;width:44px;height:44px;flex-shrink:0;font-size:24px}.mobile-profile h2{font-size:20px}.mobile-profile-actions{display:grid;gap:8px;margin:20px 0}.mobile-profile label{display:grid;gap:8px}.mobile-profile select{padding:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;font:inherit}.mobile-preview-note{font-size:13px;color:var(--steel);margin:16px 0}.mobile-role-apply{margin-top:12px;width:100%;justify-content:center}
@media(max-width:760px){
 html{scroll-padding-top:128px;color-scheme:light}html[data-theme=dark]{color-scheme:dark}
 body{font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%;--radius:14px}
 button,a,input,select,textarea,summary,[role=button]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--blue);outline-offset:3px}
 :is(input,select,textarea){font-size:16px!important;max-width:100%;min-width:0;color:var(--text);background-color:var(--surface);border-radius:10px}
 :is(input,select):not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:46px}
 textarea{min-height:112px;line-height:1.5}input[type=file]{width:100%;padding:10px;border:1px dashed var(--line)}
 .mobile-check,input[type=checkbox],input[type=radio]{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--red)}
 label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;align-items:center;gap:10px}
 .btn,.iconbtn,.iconbtn-del,.chip-toggle,.catmove,.pttab{min-height:44px;font-size:14px;justify-content:center;padding:10px 14px;line-height:1.3;white-space:normal}
 .iconbtn,.iconbtn-del{width:44px;flex-shrink:0}.btn:active{transform:translateY(1px)}
 .app{min-height:100dvh}.main{width:100%;max-width:100%;min-width:0}.content{padding:20px max(16px,var(--sa-right)) calc(92px + var(--sa-bottom)) max(16px,var(--sa-left));overflow-x:clip;min-width:0}
 .topbar{height:auto;min-height:0;display:flex;align-items:center;gap:8px;padding:calc(8px + var(--sa-top)) 12px 10px;background:var(--surface);box-shadow:0 2px 14px #0f172a05;backdrop-filter:none}
 .topbar .burger,.topbar #themeBtn,.topbar #logoutBtn,.topbar>.user,.topbar>#refreshAppBtn{display:none}
 #mobileBrand{display:flex;gap:8px;align-items:center;flex:1;min-width:0;font-size:10px;line-height:1.3;color:var(--steel)}#mobileBrand b{font-size:25px;letter-spacing:-1px;color:var(--red)}#mobileBrand b span{font-weight:400;color:var(--line)}
 #mobileAccount{display:block;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);padding:10px;font-size:12px;min-height:44px}
 .topbar #newBtn{min-width:44px;height:44px;margin:0;padding:8px 12px;border-radius:11px}.topbar .search{order:10;flex-basis:100%;margin:0}.topbar .search input{background:var(--bg);border-color:transparent;padding:11px 12px 11px 38px;height:46px}.topbar .search svg{top:14px}
 #mobileNav{display:grid;grid-template-columns:repeat(var(--mobile-nav-columns,4),minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:6px 8px calc(6px + var(--sa-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:40;box-shadow:0 -4px 22px #11182706}
 #mobileNav button{min-height:50px;display:flex;align-items:center;justify-content:center;border:0;border-radius:11px;background:transparent;color:var(--steel);font-size:12px;font-weight:600;padding:8px 4px;position:relative}
 #mobileNav button[aria-current=page]{background:var(--red-bg);color:var(--red)}#mobileNav button[aria-current=page]:before{content:'';position:absolute;top:4px;width:16px;height:3px;background:var(--red);border-radius:5px}
 .sidebar{width:min(360px,calc(100vw - 28px));height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(20px + var(--sa-bottom))}.sidebar .nav{flex:0 0 auto}.sidebar .nav a{min-height:48px;font-size:15px;margin-bottom:3px}.sidebar .nav-sub-item{font-size:14px}.sidebar .nav-group-head{border-bottom:1px solid var(--line);border-radius:8px}.sidebar .brand{padding-top:16px;padding-bottom:16px}.sidebar .side-foot{margin-top:auto}.navbd{backdrop-filter:blur(3px)}
 .page-head{align-items:stretch;margin-bottom:16px;gap:12px}.page-head h1{font-size:25px;line-height:1.15;letter-spacing:-.65px;overflow-wrap:anywhere}.page-head .sub{font-size:12px;line-height:1.5;margin-top:7px}.page-head>div:last-child:has(button){flex-wrap:wrap;gap:8px;max-width:100%}
 .page-head button{flex:1 1 auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;margin-bottom:16px}.stat{padding:14px;min-width:0}.stat .v{font-size:26px!important}.stat .k{font-size:10px;letter-spacing:.02em}.stat .d{font-size:11px}
 .grid2,.loadgrid,.frm,.uc-grid,.sd-grid,.so-grid,.ra-summary,.ra-points-grid,.rx-machine-grid,.su-form-grid,.sm-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px}
 .frm>.fld,.frm>label{min-width:0;grid-column:auto}.frm>.full{grid-column:1/-1}.fld{gap:7px}.fld label{font-size:12px;text-transform:none;letter-spacing:0;font-weight:600}.fld input,.fld select,.fld textarea{padding:12px}
 .mobile-inline-grid{grid-template-columns:minmax(0,1fr)!important}.mobile-inline-flex{flex-wrap:wrap;min-width:0}.mobile-inline-flex>*{min-width:0;max-width:100%}.mobile-min-reset{min-width:0!important;max-width:100%!important}
 .card,.card .cb,.card .ch{min-width:0}.card .cb{padding:14px}.card .ch{padding:14px;gap:10px}.card .ch h3{letter-spacing:0;text-transform:none;font-size:15px}.card .ch .btn{flex-shrink:0}
 .mobile-filters{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:16px}.mobile-filters>summary{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;min-height:48px;font-size:14px;font-weight:700;cursor:pointer}.mobile-filters>summary>span{font-size:11px;color:var(--steel);font-weight:400}.mobile-filters[open]>summary{border-bottom:1px solid var(--line)}.mobile-filters:not([open])>.toolbar{display:none}.mobile-filters .toolbar{padding:14px;margin:0;display:grid;grid-template-columns:1fr;gap:10px}.mobile-filters .toolbar>*{width:100%;min-width:0!important;max-width:100%}.mobile-filters .toolbar>div[style="flex:1"]{display:none}.toolbar{gap:10px}.toolbar input,.toolbar select{width:100%;max-width:100%;font-size:16px}.cbx{min-width:0;width:100%}.cbx-inp{min-width:0!important}.cbx-list{width:100%;max-width:100%;max-height:40dvh}.cbx-item{padding:13px;min-height:46px}
 .yrbar,.pttabs,.tabbar,.uc-tabs,.rx-tabs,.ra-tabs,.su-tabs,.sm-tabs,.sd-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:thin;overscroll-behavior-x:contain;gap:5px}.yrbar>*,:is(.pttabs,.tabbar,.uc-tabs,.rx-tabs,.ra-tabs,.su-tabs,.sm-tabs,.sd-tabs)>button{flex-shrink:0;white-space:nowrap;min-height:44px;padding:10px 13px}
 table.tbl.mobile-records{display:block!important;width:100%!important;min-width:0!important;max-width:100%;table-layout:auto;border:0;background:transparent;box-shadow:none;overflow:visible}
 table.tbl.mobile-records>thead{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;overflow:hidden;clip-path:inset(50%)}
 table.tbl.mobile-records>tbody{display:grid!important;width:100%!important;min-width:0!important;gap:12px}
 table.tbl.mobile-records>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:0 2px 6px #11182703;overflow:visible;position:relative}
 table.tbl.mobile-records>tbody>tr>td{display:block;width:auto!important;max-width:none!important;min-width:0;white-space:normal!important;text-overflow:clip;overflow:visible;padding:0!important;border:0;background:transparent!important;text-align:left!important;font-size:14px;overflow-wrap:anywhere}
 table.tbl.mobile-records td[data-label]:not([data-label=""]):before{content:attr(data-label);display:block;font-size:11px;line-height:1.4;color:var(--steel);font-weight:500;margin-bottom:4px;text-transform:none;letter-spacing:0}
 table.tbl.mobile-records tr:not(.mobile-group-row)>td:first-child{font-weight:650}table.tbl.mobile-records td:has(input:not([type=checkbox]),select,textarea){grid-column:1/-1}
 table.tbl.mobile-records .mobile-group-row{display:block;padding:10px 0;background:none;border:0;box-shadow:none}.mobile-group-row td{font-size:14px!important}.mobile-group-row.mrow{margin-top:8px}.mobile-group-row.orow-sub{padding:14px!important;background:var(--surface-2);margin-top:-10px}.mobile-group-row.orow-sub td{position:static!important}.mobile-group-row.orow-sub td>div{width:100%!important}
 table.tbl.plan.mobile-records tr:not(.mobile-group-row){gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mobile-records.plan td[data-mobile-slot=number]{grid-column:1/-1;order:0;display:flex!important;align-items:center;gap:8px;font-size:16px!important}.mobile-records.plan td[data-mobile-slot=number]:before{content:'Заказ №';display:inline;margin:0;font-size:12px}
 .mobile-records.plan td[data-mobile-slot=model]{grid-column:1/-1;order:1;font-size:18px!important;font-weight:750;line-height:1.3}.mobile-records.plan td[data-mobile-slot=model]:before,.mobile-records.plan td[data-mobile-slot=customer]:before,.mobile-records.plan td[data-mobile-slot=stage]:before{display:none!important}
 .mobile-records.plan td[data-mobile-slot=customer]{grid-column:1/-1;order:2;color:var(--steel);font-size:13px!important;line-height:1.5}.mobile-records.plan td[data-mobile-slot=customer]>*{white-space:normal!important;overflow:visible!important;max-width:100%!important}
 .mobile-records.plan td[data-mobile-slot=stage]{grid-column:1/-1;order:3}.mobile-records.plan td[data-mobile-slot=plan]{order:4}.mobile-records.plan td[data-mobile-slot=payment]{order:5}.mobile-records.plan td[data-mobile-slot=docs]{order:6}.mobile-records.plan td[data-mobile-slot=caret]{order:7;min-height:44px;display:flex!important;align-items:center;gap:8px}.mobile-records.plan td[data-mobile-slot=caret]:after{content:'Состав заказа';font-size:12px}.mobile-records.plan td[data-mobile-slot=extra]{display:none!important;order:8}.mobile-records.plan .mobile-expanded td[data-mobile-slot=extra]{display:block!important}.mobile-records.plan td[data-mobile-slot=selection]{order:-1;grid-column:1/-1}
 .mobile-row-more{display:block;margin-left:auto;border:1px solid var(--line);background:var(--surface);color:var(--steel);border-radius:8px;padding:7px 10px;min-height:36px;font-size:11px}.mobile-records.plan .badge{white-space:normal;line-height:1.4}.mobile-records.plan .paybar{max-width:140px}.mobile-records .dind{width:30px;height:30px;font-size:16px}
 .mobile-records.plan tr.st-assembly{border-left:4px solid var(--amber)}.mobile-records.plan tr.st-ready{border-left:4px solid var(--green)}.mobile-records.plan tr.st-shipped{border-left:4px solid var(--green);background:color-mix(in srgb,var(--surface) 92%,var(--green))}
 .mobile-matrix{overflow:auto;max-width:100%;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:12px}.mobile-matrix:before{content:'Прокрутите таблицу вправо →';display:block;position:sticky;left:0;padding:10px 12px;color:var(--steel);font-size:11px;background:var(--surface)}.mobile-matrix-table{display:table!important;min-width:680px!important}.mobile-matrix-table thead,.mobile-matrix-table tbody{display:table-header-group!important}.mobile-matrix-table tbody{display:table-row-group!important}
 .overlay{padding:0!important;align-items:flex-start;overscroll-behavior:contain;overflow-y:auto;height:100dvh}.overlay>.modal{width:100%!important;max-width:100%!important;min-height:100dvh;border-radius:0;overflow:visible;border:0;animation:mobile-sheet .2s ease-out!important}.modal>.mhead{position:relative;padding:18px 16px!important}.modal>.mhead>.close{display:none}.mobile-modal-bar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:15;background:var(--surface);border-bottom:1px solid var(--line);min-height:58px;padding:calc(6px + var(--sa-top)) 16px 6px}.mobile-modal-bar>span{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-back{height:44px;border:0;background:var(--surface-2);color:var(--text);border-radius:10px;padding:0 14px;font-size:14px;flex-shrink:0}.modal .mbody{padding:16px 16px calc(28px + var(--sa-bottom))}.modal .mhead .mnum{font-size:24px;line-height:1.2}.modal .mhead .mcust{font-size:13px}.mobile-overlay-open #mobileNav{visibility:hidden}.mobile-save-bar{position:sticky;bottom:0;background:var(--surface);padding:12px 0 calc(12px + var(--sa-bottom));z-index:10;box-shadow:0 -6px 20px var(--surface);display:flex;flex-wrap:wrap;gap:8px}.mobile-save-bar>.btn:first-child{flex:1;min-width:180px}
 dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;overscroll-behavior:contain}dialog .mhead{position:sticky;top:0;padding:18px 52px 18px 16px;min-height:65px}dialog .mhead h2{font-size:19px}dialog .mbody{padding:16px}dialog .close{width:44px;height:44px;top:10px;right:10px}
 .order-manager-top{padding-right:34px;display:grid;gap:5px;font-size:12px}.order-manager-top select{max-width:100%!important;width:100%;font-size:14px!important;white-space:normal}.order-card-head>.order-docs-trigger{top:18px;right:16px;width:30px;height:30px}.order-card-head .order-heading{display:block;margin-top:14px}.order-note-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.order-note-tile{min-height:68px;padding:12px;text-align:left;font-size:12px;line-height:1.4}.order-card-head .btn.ghost{width:auto!important;margin:0!important;order:0!important;font-size:12px;padding:10px;flex:1;min-width:88px}.order-card-head .mobile-inline-flex{gap:8px!important}
 .order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.order-summary-tile{padding:14px;min-height:160px;gap:9px;overflow-wrap:anywhere}.order-summary-tile .os-v{font-size:27px}.order-model-title{font-size:19px!important;line-height:1.3}.order-customer-name{font-size:14px;line-height:1.4}.order-plan-date,.order-shipped-date{font-size:19px}.order-customer-link{font-size:11px!important;padding:9px!important}.order-summary-tile .btn{width:100%;min-height:42px}.order-summary-tile select{width:100%;font-size:13px!important;min-height:40px}.order-summary-tile .os-k{font-size:11px}.order-docs-popover{position:absolute;right:0;left:auto;width:min(320px,calc(100vw - 32px));max-width:calc(100vw - 32px);font-size:13px}
 .stepper{max-width:100%;overflow-x:auto;scroll-snap-type:x proximity;gap:5px;padding:14px 10px!important;margin:0 0 16px}.stepper .st{flex:0 0 88px;scroll-snap-align:center;min-height:44px;white-space:normal;text-align:center!important;line-height:1.4}
 .msec{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.msec h4{font-size:14px!important;text-transform:none;letter-spacing:0;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}.msec h4[role=button]:after{content:'−';color:var(--steel);font-size:20px}.msec.mobile-collapsed h4[role=button]:after{content:'+'}.msec.mobile-collapsed>:not(h4){display:none!important}.itemlist{font-size:14px;line-height:1.5}.itemlist li{min-width:0;overflow-wrap:anywhere}.itemlist button{min-width:40px;min-height:40px}
 .uc-head{gap:12px!important}.uc-identity{min-width:0}.uc-tabs{margin:0!important;padding:0 12px}.uc-body{padding:16px!important}.uc-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.uc-stat{padding:10px 6px!important}.uc-stat strong{font-size:17px!important;overflow-wrap:anywhere}.uc-panel{padding:14px}.uc-row{flex-wrap:wrap}.uc-row-main{min-width:0}.uc-row-end{margin-left:auto}.cprow{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 0}.cpnm{min-width:0!important;grid-column:1/-1;font-size:14px}.cpsum{font-size:15px;white-space:nowrap}.uc-context{flex-wrap:wrap}.uc-context select{width:100%}
 .kboard,.kanban,.svc-board{overflow-x:auto!important;display:flex!important;max-width:100%;gap:12px;scroll-snap-type:x mandatory;padding:0 0 16px;overscroll-behavior-x:contain}.kcol,.svc-lane{flex:0 0 calc(100vw - 50px)!important;min-width:0!important;scroll-snap-align:start;max-height:none}.kcard,.svc-ticket{padding:15px;min-width:0}.kcard *,.svc-ticket *{overflow-wrap:anywhere}
 .sd-grid,.sd-doc-grid,.rx-access-card,.ra-points-grid{grid-template-columns:1fr!important}.sd-head{flex-wrap:wrap;gap:12px}.sd-head-actions,.sd-actions,.sq-footer,.rx-access-actions,.su-actions{display:flex;flex-wrap:wrap;gap:8px}.sd-head-actions>*:not(input),.sd-actions>.btn,.sq-footer>.btn,.su-actions>.btn{flex:1}.sd-tabs{padding:0 12px}.sd-card{padding:16px}.sd-message{max-width:94%;overflow-wrap:anywhere}.sd-chat{height:auto;min-height:350px}.sq-part{flex-wrap:wrap}.sq-part-actions{gap:10px}.sq-part-actions button{min-width:44px;min-height:44px}.sq-checklist label{min-height:56px;padding:14px;gap:12px}
 .psm-row,.psm-order-card,.su-row{grid-template-columns:minmax(0,1fr)!important;gap:12px;padding:16px}.psm-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}.psm-actions .btn{flex:1}.psm-heading{font-size:17px}.su-main{min-width:0;padding:0;text-align:left}.su-main strong,.su-customer{white-space:normal;line-height:1.5}.su-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.su-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.su-component{gap:12px}.su-component>span{min-width:0;overflow-wrap:anywhere}
 .rx-table-head{display:none}.ra-rows{overflow:visible}.ra-row{min-width:0!important;grid-template-columns:1fr 1fr!important;gap:10px;padding:16px}.ra-row strong{grid-column:1/-1;white-space:normal!important}.ra-row span{white-space:normal!important;overflow-wrap:anywhere}.rx-card{padding:16px;min-width:0}.rx-profile-head{flex-wrap:wrap}.rx-section-heading{align-items:flex-start;gap:8px}.rx-form{grid-template-columns:1fr!important}.rx-access-details{grid-template-columns:1fr!important}.rx-machine-grid{grid-template-columns:1fr!important}.ra-tabs{margin-top:16px}.ra-panel{padding-top:16px}.ra-doc{flex-wrap:wrap;gap:12px}.ra-doc>strong{min-width:0;overflow-wrap:anywhere}
 .sr-total{padding:18px}.sr-categories{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.sr-category{padding:12px;min-width:0}.sr-category b{font-size:12px}.sr-parts{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sr-case{grid-template-columns:1fr!important;gap:9px}.sr-section{padding:14px}.sr-section header{flex-wrap:wrap;gap:8px}.sr-label{font-size:11px;gap:8px}.sr-diagnosis form{display:grid;gap:12px}
 .so-grid{display:grid!important}.so-summary,.so-aside{position:static!important;max-height:none!important}.so-line-head{gap:8px;flex-wrap:wrap}.so-item{min-width:0}.so-items{min-width:0}.svc-ticket-head{gap:8px;flex-wrap:wrap}
 .sm-actions{flex-wrap:wrap}.sm-actions .btn{flex:1}.sm-chart{max-width:100%;overflow-x:auto}.sm-cal-grid{min-width:0;gap:3px}.sm-popup{max-width:calc(100vw - 24px)!important}.sm-popup-head{gap:8px;flex-wrap:wrap}.sm-kpi{padding:14px}
 .chatlayout{display:grid!important;grid-template-columns:1fr;gap:12px;height:auto!important}.chatcontacts{max-height:210px!important;overflow:auto}.chatconv{height:65dvh!important;min-height:380px}#chatFeed{overscroll-behavior:contain}#chatBar{align-items:end}#chatText{min-height:46px;max-height:160px}#chatSend{width:48px;min-height:46px;padding:8px;flex-shrink:0}
 .kp-layout,.kp-catalog-columns{grid-template-columns:1fr!important}.kp-catalog-list.cb{max-height:45dvh}.kp-catalog-toolbar{display:flex;flex-wrap:wrap;gap:10px}.kp-catalog-toolbar input{flex-basis:100%}.kp-choice{min-height:48px;padding:12px}.kp-summary{position:static!important}.catrow{flex-wrap:wrap;gap:10px;padding:14px}.catalog-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-section{min-height:130px;padding:14px}.permgrid{grid-template-columns:1fr!important}.access-row{flex-wrap:wrap;gap:10px}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-card{min-width:0}.bn-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-summary{grid-template-columns:1fr}.kb-layout{grid-template-columns:1fr!important}
 .toast{left:12px!important;right:12px!important;bottom:calc(84px + var(--sa-bottom))!important;transform:none!important;max-width:none!important;font-size:14px;line-height:1.5;padding:14px 16px;z-index:300}.mobile-overlay-open .toast{bottom:calc(20px + var(--sa-bottom))!important}
 @keyframes mobile-sheet{from{transform:translateY(12px);opacity:.7}to{transform:none;opacity:1}}
}
@media(max-width:360px){.content{padding-left:12px;padding-right:12px}.order-summary-grid{gap:8px}.order-summary-tile{padding:11px}.order-plan-date,.order-model-title{font-size:17px!important}.order-note-tile{font-size:11px}.topbar{gap:6px}#mobileBrand>span{font-size:9px}.mobile-records.plan td[data-mobile-slot=number]{gap:5px}.mobile-row-more{padding:6px}.uc-stats{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){#mobileNav *,#content *,.modal *,dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.order-summary-tile .order-card-action{min-height:52px;font-size:12px!important;padding:10px 8px!important;gap:7px}.order-card-action svg{width:18px;height:18px;flex-basis:18px}}
@media print{#mobileNav,#mobileBrand,#mobileAccount,.mobile-modal-bar,.mobile-row-more{display:none!important}}

@media(max-width:760px){
 .login{padding:16px;overflow-y:auto;align-items:safe center}.login .box{width:100%;max-width:400px;padding:26px 22px}.login h2{font-size:20px}.login input{scroll-margin-block:90px}
 input,select,textarea{font-size:16px!important;scroll-margin-block:100px}
 .mobile-profile-actions .btn:last-child{color:var(--red)}
 .mobile-save-bar{padding-bottom:calc(12px + var(--sa-bottom))}
 .mobile-records .dind,.order-card-head>.order-docs-trigger{min-width:44px;min-height:44px}
 .order-manager-top{padding-right:46px}
}

/* Dense navigation lists. Forms and desktop tables keep their original size. */
@media(max-width:760px){
 .content{padding-top:12px}.page-head{margin-bottom:10px;gap:8px}.page-head h1{font-size:22px}.page-head .sub{margin-top:3px}.stats{margin-bottom:10px;gap:6px}.stat{padding:10px}.stat .v{font-size:22px!important}
 body[data-mobile-view=orders] .stats.pkpi .stat{min-height:40px;padding:6px 9px;gap:7px}body[data-mobile-view=orders] .stats.pkpi .stat .v{font-size:19px!important}
 .mobile-plan-controls{margin-bottom:4px;gap:6px}.mobile-plan-controls .yrbar{min-height:44px}.mobile-filters>summary{min-height:44px;padding:10px 12px}.mobile-plan-controls .mobile-filters{margin-bottom:0}
 table.tbl.mobile-records>tbody{gap:6px}
 table.tbl.mobile-records>tbody>tr{padding:10px 12px;gap:6px 12px;border-radius:10px;box-shadow:none}
 table.tbl.mobile-records>tbody>tr>td{font-size:13px;line-height:1.35}
 table.tbl.mobile-records td[data-label]:not([data-label=""]):before{font-size:10px;margin-bottom:1px}
 table.tbl.mobile-records .mobile-group-row{padding:5px 0;margin-top:0}
 .mobile-row-more{position:absolute;right:2px;top:1px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:9px;font-size:20px;color:var(--steel);margin:0}
 .mobile-row-more[aria-expanded=true]{transform:rotate(180deg)}.mobile-row-more:active{background:var(--surface-2)}
 table.tbl.mobile-records .mobile-list-title{padding-right:32px!important;font-weight:700}
 table.tbl.mobile-records tr.mobile-foldable:not(.mobile-expanded)>td.mobile-secondary{display:none!important}
 table.tbl.plan.mobile-records tr:not(.mobile-group-row):not(.mobile-expanded):has(.mobile-row-more){grid-template-columns:max-content minmax(0,1fr);gap:3px 8px;padding:9px 43px 9px 10px;min-height:80px;align-content:center}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=number]{grid-column:1;grid-row:1;order:0;font-size:13px!important;line-height:19px;max-width:118px;overflow-wrap:anywhere;gap:3px}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=number]:before{content:'№';font-size:12px}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=model]{grid-column:2;grid-row:1;order:0;font-size:13px!important;line-height:19px;align-self:center}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=customer]{grid-column:1/-1;grid-row:2;order:0;font-size:12px!important;line-height:17px;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=stage]{grid-column:1;grid-row:3;order:0;align-self:center}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=stage] .badge{font-size:10px;line-height:16px;padding:0 5px;white-space:nowrap}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=plan]{grid-column:2;grid-row:3;order:0;font-size:11px!important;align-self:center;white-space:nowrap!important;text-align:right!important;font-variant-numeric:tabular-nums}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=plan]:before{content:'Срок ';display:inline;font-size:10px;margin-right:3px}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td:is([data-mobile-slot=payment],[data-mobile-slot=docs],[data-mobile-slot=caret]){display:none!important}
 table.tbl.plan.mobile-records tr:not(.mobile-expanded):has(.mobile-row-more)>td[data-mobile-slot=selection]{grid-row:4;min-height:44px;align-content:center}
 table.tbl.plan.mobile-records tr.mobile-expanded{padding-top:14px;gap:8px 12px}.mobile-records.plan tr.mobile-expanded td[data-mobile-slot=number]{padding-right:34px!important}
 table.tbl.plan.mobile-records tr.mobile-expanded td[data-mobile-slot=model]{font-size:16px!important}
 .mobile-compact-item{position:relative}.psm-list .psm-order-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4px 10px;padding:10px 44px 10px 12px}
 .psm-order-card .psm-order-open{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:24px}.psm-order-card .psm-order-open strong{font-size:13px}.psm-order-card .psm-order-open>span{font-size:11px;margin:0}.psm-order-card .psm-customer{grid-column:1/-1;font-size:12px}.psm-order-card .psm-mobile-label{display:none}.psm-order-card .psm-stage{font-size:11px}.psm-order-card .psm-status{font-size:10px;padding:2px 5px}.psm-order-card:not(.mobile-list-expanded) .psm-actions,.psm-order-card:not(.mobile-list-expanded) .psm-customer small,.psm-order-card:not(.mobile-list-expanded) .psm-number{display:none}
 .psm-order-card .psm-actions{padding-top:8px}.psm-order-card .psm-customer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psm-order-card.mobile-list-expanded .psm-customer{white-space:normal}
 .su-list .su-row{grid-template-columns:minmax(0,1fr) auto!important;gap:4px 8px;padding:10px 44px 10px 12px}.su-row .su-main{grid-column:1/-1;min-height:44px}.su-row .su-main strong{font-size:13px;line-height:1.4}.su-row .su-customer{font-size:12px;display:inline;margin-left:5px}.su-row .su-main small{font-size:11px;line-height:1.4;margin-top:3px}.su-row:not(.mobile-list-expanded) .su-main>small{display:none}.su-row .su-meta{gap:5px;font-size:11px}.su-row .su-meta small{font-size:10px}.su-row .su-end{padding:0;border:0;gap:4px;align-self:center}.su-row .su-end>strong{font-size:12px}.su-row:not(.mobile-list-expanded) .su-end>button{display:none}.su-row.mobile-list-expanded .su-end{grid-column:1/-1;padding-top:6px}.su-row .su-link{min-height:44px}
 .ra-row{gap:3px 10px;padding:10px 12px}.ra-row strong{font-size:13px}.ra-row span{font-size:11px}.ra-row .ra-status{padding:2px 0}.ra-row span:empty,.ra-row>span:last-child{display:none}
 .sr-case{grid-template-columns:minmax(0,1fr) auto!important;gap:3px 8px;padding:10px 12px}.sr-case>span:first-child{grid-column:1/-1}.sr-case b{font-size:13px}.sr-case small,.sr-case .sr-machine{font-size:11px}.sr-case .sr-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:12px}.sr-case .sr-status{font-size:10px;padding:3px 6px}
 .svc-ticket,.kcard{padding:10px!important;margin-bottom:6px!important}.svc-ticket-head{gap:5px}.svc-ticket :is(p,.sub){font-size:12px;line-height:1.4;margin-block:4px}
 .chatcontacts>*{padding-block:9px}.catrow{padding:9px 12px;gap:6px}.ra-doc{padding-block:10px;gap:8px}
}
.mobile-row-controls{display:none}
@media(max-width:760px){
 table.tbl.mobile-records>tbody>tr>td.mobile-row-controls{display:block;position:absolute;right:2px;top:1px;width:44px!important;height:44px;z-index:1}
 .mobile-row-controls>.mobile-row-more{position:static}
 table.tbl.mobile-records tr.mobile-foldable{padding-right:44px}
}
.mobile-page-help{display:contents}.mobile-page-help>summary{display:none}.mobile-page-help>.sub{display:block}
@media(max-width:760px){
 .mobile-page-help{display:block}.mobile-page-help>summary{display:block;cursor:pointer;font-size:12px;color:var(--steel);padding:6px 0;min-height:30px}.mobile-page-help>summary:after{content:' ⌄'}.mobile-page-help:not([open])>.sub{display:none}
 table.tbl.mobile-records tr.mobile-foldable:not(.mobile-expanded)>.mobile-list-title:before{display:none}
 table.tbl.mobile-records tr.mobile-foldable:not(.mobile-expanded)>.mobile-list-title{grid-column:1/-1;padding-right:0!important}
 table.tbl.mobile-records tr.mobile-foldable:not(.mobile-expanded)>td[data-label="Заказчик"]{grid-column:1/-1}
 table.tbl.mobile-records tr.mobile-foldable:not(.mobile-expanded)>td[data-label="Заказчик"]:before{display:none}
 #content .rx-client{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:9px 44px 9px 10px}
 #content .rx-client .rx-select-client{grid-column:1/-1;gap:6px;min-width:0}
 #content .rx-client .rx-client-name{padding:0;min-width:0;min-height:44px}
 #content .rx-client .rx-client-name strong{font-size:13px;line-height:1.35}
 #content .rx-client .rx-client-name small{font-size:11px;line-height:1.35;margin-top:3px}
 #content .rx-client:not(.mobile-list-expanded) .rx-client-name small:nth-of-type(n+2){display:none}
 #content .rx-client .rx-phone{font-size:11px;line-height:1.4;padding-left:28px;overflow-wrap:anywhere}
 #content .rx-client .rx-badge{font-size:10px;padding:2px 5px;white-space:nowrap}
 #content .rx-client:not(.mobile-list-expanded)>.btn{display:none}
 #content .rx-client.mobile-list-expanded>.btn{grid-column:1/-1;margin-top:6px}
 #content .rx-case,#content .rx-document{padding:10px 12px;gap:6px 10px}
 #content .rx-case strong,#content .rx-document strong{font-size:13px}
 #content .rx-case p{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:4px 0}
 .psm-filters{gap:8px;margin-bottom:10px}.psm-filters label{min-width:0!important;flex:1 1 130px!important;gap:3px}.psm-filters select{font-size:13px!important;padding:8px}
}
@media(max-width:760px){table.tbl.mobile-records>thead{display:block!important}}
