/* Final layout layer: current components override historical page styling. */
:root{--pk-ink:#13271c;--pk-green:#07663d;--pk-mint:#eff6f0;--pk-paper:#fffefb;--pk-line:#d7e3d8;--pk-muted:#68766d;--pk-danger:#c4433c;--pk-radius:22px;--pk-space:clamp(14px,4vw,28px)}
*{box-sizing:border-box}.app-shell{width:min(100%,1120px)!important;min-height:100dvh!important;margin:0 auto!important;background:var(--pk-paper)!important;color:var(--pk-ink)!important;overflow-x:clip!important;padding-bottom:112px!important}.app-shell :is(h1,h2,h3,p,dl,dd){max-inline-size:100%}.app-shell h1{font-size:clamp(34px,8vw,58px)!important;line-height:1.02!important;letter-spacing:-.035em!important;margin:0!important}.app-shell h2{font-size:clamp(24px,5.5vw,35px)!important;line-height:1.08!important;margin:0!important}.app-shell .intro{padding:var(--pk-space)!important}.app-shell .intro p{color:var(--pk-muted)!important;margin:.5rem 0 0!important;font-size:clamp(16px,3.8vw,21px)!important;line-height:1.3!important}.app-shell .counter{font-weight:750!important;color:var(--pk-green)!important}
/* Shared controls */
.app-shell :is(.action-primary,.action-secondary,.action-danger,.primary,.secondary,.danger,.catalogue-actions a,.home-actions a){display:flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;padding:10px 14px!important;border:1px solid var(--pk-line)!important;border-radius:18px!important;font:750 clamp(16px,3.9vw,21px)/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:none!important;cursor:pointer!important}.app-shell :is(.action-primary,.primary){background:var(--pk-green)!important;border-color:var(--pk-green)!important;color:#fff!important}.app-shell :is(.action-secondary,.secondary){background:var(--pk-mint)!important;border-color:var(--pk-line)!important;color:#075b37!important}.app-shell :is(.action-danger,.danger){background:#fff2f0!important;border-color:#f0c4c0!important;color:var(--pk-danger)!important}.app-shell :is(button,a):focus-visible{outline:3px solid #267af0!important;outline-offset:2px!important}.app-shell :is(button,a):active{transform:translateY(1px)!important}
/* Home */
.app-shell .home-screen{display:grid!important;gap:18px!important;padding:var(--pk-space)!important}.app-shell .home-screen .intro{padding:0!important}.app-shell .home-actions,.app-shell .catalogue-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}.app-shell .empty{display:grid!important;gap:5px!important;place-items:center!important;min-height:112px!important;padding:22px!important;border:1px dashed #ccdbef!important;border-radius:var(--pk-radius)!important;background:#fff!important;color:#5f7396!important;text-align:center!important;font-size:clamp(16px,4vw,21px)!important}.app-shell .empty small{font-size:inherit!important}.app-shell .task-list,.app-shell .home-feed{display:grid!important;gap:10px!important}.app-shell .private-appeals{display:grid!important;gap:12px!important;margin:8px 0 0!important;padding-top:18px!important;border-top:1px solid var(--pk-line)!important}.app-shell .private-appeals h2{font-size:clamp(25px,6vw,38px)!important}
/* Users */
.app-shell.users-shell{padding-inline:var(--pk-space)!important}.app-shell .users-intro{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:16px!important;padding-inline:0!important;flex-wrap:wrap!important}.app-shell .users-intro>div{min-inline-size:0!important}.app-shell .users-intro button{flex:0 1 280px!important}.app-shell .users-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:14px!important;padding-bottom:20px!important}.app-shell .user-summary-card{display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;align-items:center!important;gap:12px!important;min-height:150px!important;padding:20px!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:var(--pk-paper)!important;color:var(--pk-ink)!important;text-decoration:none!important}.app-shell .user-summary-card span{display:grid!important;gap:7px!important;min-inline-size:0!important}.app-shell .user-summary-card b{font-size:clamp(22px,5vw,32px)!important;line-height:1.08!important;overflow-wrap:anywhere!important}.app-shell .user-summary-card small{font-size:clamp(15px,3.8vw,19px)!important;line-height:1.25!important;color:#687992!important;overflow-wrap:anywhere!important}.app-shell .user-summary-card i,.app-shell .machine-arrow{color:var(--pk-green)!important;font-size:34px!important;font-style:normal!important}.app-shell .user-detail-intro{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding-inline:0!important}.app-shell .user-detail-intro>a{width:max-content!important;color:#1769dc!important;font-size:clamp(16px,3.8vw,20px)!important;font-weight:750!important}.app-shell .user-detail-heading{min-inline-size:0!important}.app-shell .user-detail-heading h1{overflow-wrap:anywhere!important;word-break:normal!important}.app-shell .user-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.app-shell :is(.user-access-card,.user-change-log){display:grid!important;align-content:start!important;gap:16px!important;padding:20px!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:var(--pk-paper)!important;min-inline-size:0!important}.app-shell .user-access-card p{font-size:clamp(18px,4.2vw,23px)!important;line-height:1.28!important;margin:0!important}.app-shell .user-detail-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.app-shell .user-change-log>div{display:grid!important;gap:3px!important;padding:0 0 12px!important;border-bottom:1px solid var(--pk-line)!important}.app-shell .user-change-log b{font-size:clamp(17px,4vw,22px)!important}.app-shell .user-change-log small{font-size:15px!important;color:var(--pk-muted)!important}
/* Permission sheet */
dialog#sheet{width:min(calc(100% - 24px),600px)!important;max-height:min(92dvh,840px)!important;margin:auto!important;padding:0!important;border:0!important;border-radius:28px!important;background:var(--pk-paper)!important;box-shadow:0 24px 80px #10261c55!important}dialog#sheet::backdrop{background:#10261c88!important}dialog#sheet form{display:grid!important;gap:16px!important;padding:24px!important;overflow:auto!important;max-height:min(92dvh,840px)!important}dialog#sheet .sheet-head{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:start!important}dialog#sheet .sheet-head h1{font-size:clamp(30px,8vw,44px)!important}dialog#sheet .sheet-close{display:grid!important;place-items:center!important;min-width:48px!important;min-height:48px!important;border:1px solid #8bc4a4!important;border-radius:16px!important;background:#f5f7fc!important;color:#172844!important;font-size:34px!important}dialog#sheet .access-field{display:grid!important;gap:6px!important;font-weight:750!important}dialog#sheet .user-warehouse-select{display:grid!important;gap:10px!important;margin:0!important;padding:12px!important;border:1px solid var(--pk-line)!important;border-radius:16px!important;min-inline-size:0!important}dialog#sheet .user-warehouse-options{display:grid!important;gap:8px!important}dialog#sheet .access-choice{display:flex!important;align-items:center!important;gap:10px!important;min-height:44px!important;margin:0!important;padding:0!important}dialog#sheet .access-choice input{inline-size:22px!important;block-size:22px!important;min-inline-size:22px!important;margin:0!important;accent-color:var(--pk-green)!important}dialog#sheet .access-choice small{display:block!important;margin-top:2px!important;color:#687992!important}dialog#sheet .upload-status,dialog#sheet .draft-warning{display:none!important}
/* Catalogue */
.app-shell.catalogue-shell{container-type:inline-size!important;padding-inline:var(--pk-space)!important}.app-shell .catalogue-intro{padding-inline:0!important}.app-shell .catalogue-search{display:grid!important;gap:7px!important;margin-top:16px!important;font-weight:750!important}.app-shell .catalogue-search input{min-height:50px!important;padding:12px!important;border:1px solid var(--pk-line)!important;border-radius:16px!important;background:#fff!important;font:inherit!important}.app-shell .catalogue-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.app-shell .catalogue-card{display:grid!important;gap:10px!important;align-content:start!important;min-height:0!important;padding:18px!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;color:var(--pk-ink)!important;text-decoration:none!important}.app-shell .catalogue-card h2{font-size:clamp(19px,4.5vw,26px)!important;line-height:1.12!important;margin:0!important}.app-shell .catalogue-card-meta{display:flex!important;flex-wrap:wrap!important;gap:6px 12px!important;color:var(--pk-muted)!important;font-weight:700!important}.app-shell .catalogue-card-meta span{white-space:nowrap!important}
/* Equipment */
.app-shell .machine-card{position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:72px minmax(0,1fr) 30px!important;align-items:center!important;gap:12px!important;min-height:96px!important;padding:12px!important;margin:0!important;overflow:hidden!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:linear-gradient(135deg,#fffefb,#f5faf5)!important;color:var(--pk-ink)!important;text-decoration:none!important;box-shadow:0 6px 18px #103c2408!important}.app-shell .machine-card:hover{border-color:#8fc3a6!important;background:#f3faf4!important}.app-shell .machine-image{position:relative!important;inset:auto!important;display:block!important;inline-size:72px!important;block-size:72px!important;min-inline-size:72px!important;margin:0!important;overflow:hidden!important;border-radius:14px!important;background:#e8f2e9!important}.app-shell .machine-image img,.app-shell .machine-image svg{position:static!important;display:block!important;inline-size:100%!important;block-size:100%!important;max-inline-size:none!important;object-fit:cover!important}.app-shell .machine-info{position:relative!important;inset:auto!important;display:grid!important;gap:4px!important;min-inline-size:0!important;margin:0!important;padding:0!important}.app-shell .machine-info strong{font-size:clamp(20px,4.8vw,26px)!important;line-height:1.07!important;overflow-wrap:anywhere!important}.app-shell .machine-info small{font-size:clamp(15px,3.8vw,19px)!important;line-height:1.18!important;color:#66756b!important;overflow-wrap:anywhere!important}.app-shell .machine-card-meta{display:flex!important;flex-wrap:wrap!important;gap:3px 10px!important;color:#52695c!important;font-size:clamp(13px,3.4vw,17px)!important}.app-shell .machine-card-meta b{font-weight:700!important}.app-shell .machine-info em{font-size:13px!important;font-style:normal!important}.app-shell .insurance.ok{color:#07663d!important}.app-shell .insurance.warning{color:#a05d00!important}.app-shell .insurance.danger{color:#b33631!important}
/* Explicit selectors retain compatibility with the static visual contract. */
.access-choice input[type="checkbox"]{inline-size:22px!important;block-size:22px!important;min-inline-size:22px!important;margin:0!important;accent-color:var(--pk-green)!important}.app-shell.catalogue-shell .catalogue-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media(max-width:700px){.app-shell .user-detail-grid{grid-template-columns:1fr!important}.app-shell.catalogue-shell .catalogue-list{grid-template-columns:1fr!important}.app-shell .users-intro button{width:100%!important;flex-basis:100%!important}.app-shell .user-summary-card{min-height:0!important}.app-shell{padding-bottom:106px!important}}@media(max-width:390px){.app-shell .home-actions,.app-shell .catalogue-actions{grid-template-columns:1fr!important}.app-shell .machine-card{grid-template-columns:60px minmax(0,1fr) 25px!important;gap:9px!important;padding:10px!important;min-height:82px!important}.app-shell .machine-image{inline-size:60px!important;block-size:60px!important;min-inline-size:60px!important}.app-shell .machine-arrow{font-size:28px!important}.app-shell .user-summary-card{padding:16px!important}}
@media(max-width:360px){.app-shell{--page-pad:14px}.app-shell .machine-card{grid-template-columns:54px minmax(0,1fr) 24px!important;gap:8px!important;padding:9px!important}.app-shell .machine-image{inline-size:54px!important;block-size:54px!important;min-inline-size:54px!important}.app-shell .machine-info strong{font-size:19px!important}.app-shell .machine-card-meta{font-size:13px!important}}

/* Route-specific resets are kept last so historic one-off rules cannot
   reappear above the shared layout system. */
.app-shell.home-shell{display:block!important;padding:0 var(--pk-space) 112px!important}.app-shell.home-shell .home-actions{margin:0!important;padding:var(--pk-space) 0 0!important}.app-shell.home-shell .home-screen{margin:0!important;padding:28px 0 0!important;min-height:0!important;background:transparent!important}.app-shell.home-shell .home-intro{padding:0!important}.app-shell.home-shell .home-title-row{display:grid!important;gap:12px!important}.app-shell.home-shell .home-summary{display:block!important;padding:0!important;border:0!important;background:transparent!important}.app-shell.home-shell .home-summary h2{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:clamp(18px,4.4vw,24px)!important;letter-spacing:0!important;color:var(--pk-muted)!important}.app-shell.home-shell .home-feed{margin:0!important;min-height:0!important}.app-shell.home-shell .home-feed h2{font-size:clamp(25px,6vw,38px)!important}.app-shell.home-shell .private-tasks{display:grid!important;gap:12px!important;margin-top:10px!important;padding-top:18px!important;border-top:1px solid var(--pk-line)!important}.app-shell.home-shell .empty{margin:0!important;min-height:112px!important}.app-shell.home-shell a.action-secondary:visited{color:#075b37!important}
.app-shell.users-shell{padding-block:0!important}.app-shell.users-shell .users-intro{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,280px)!important;align-items:end!important;overflow:visible!important}.app-shell.users-shell .users-intro button{position:static!important;inline-size:100%!important;min-inline-size:0!important;max-inline-size:none!important;transform:none!important}.app-shell.users-shell .users-list{margin:0!important}.app-shell.users-shell .user-summary-card{position:relative!important;overflow:hidden!important}.app-shell.users-shell .user-summary-card b{overflow-wrap:normal!important;word-break:keep-all!important;font-size:clamp(22px,3vw,30px)!important}.app-shell.users-shell .user-summary-card i{position:static!important;align-self:center!important}.app-shell.users-shell .user-detail-intro{padding-top:var(--pk-space)!important}.app-shell.users-shell .user-detail-heading p{font-size:clamp(17px,3.8vw,22px)!important}.app-shell.users-shell .user-detail-grid{padding-bottom:18px!important}
.app-shell.warehouse-list-shell{padding:0 var(--pk-space) 112px!important}.app-shell.warehouse-list-shell .warehouses-intro{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:12px!important;padding:var(--pk-space) 0!important}.app-shell.warehouse-list-shell .warehouses-catalogue-action{inline-size:auto!important;min-inline-size:170px!important}.app-shell.warehouse-list-shell .professional-warehouse-list{display:grid!important;gap:12px!important;margin:0!important;padding:0!important}.app-shell.warehouse-list-shell .warehouse-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(110px,160px) 26px!important;align-items:center!important;gap:12px!important;min-height:104px!important;padding:18px!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:var(--pk-paper)!important;color:var(--pk-ink)!important;text-decoration:none!important;box-shadow:0 6px 18px #103c2408!important}.app-shell.warehouse-list-shell .warehouse-row>span{display:grid!important;gap:5px!important;min-inline-size:0!important}.app-shell.warehouse-list-shell .warehouse-row b{font-size:clamp(21px,4.7vw,30px)!important;line-height:1.1!important;overflow-wrap:anywhere!important}.app-shell.warehouse-list-shell .warehouse-row small,.app-shell.warehouse-list-shell .warehouse-row strong{font:700 clamp(14px,3.4vw,18px)/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:var(--pk-muted)!important}.app-shell.warehouse-list-shell .warehouse-row strong{text-align:right!important}.app-shell.warehouse-list-shell .warehouse-row i{color:var(--pk-green)!important;font-size:30px!important;font-style:normal!important}
.app-shell.equipment-shell{padding-inline:var(--pk-space)!important}.app-shell.equipment-shell .equipment-top-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important;padding:var(--pk-space) 0 12px!important}.app-shell.equipment-shell .machine-list{display:grid!important;gap:12px!important;margin:0!important}.app-shell.equipment-shell .equipment-bottom-actions{margin:14px 0 0!important}.app-shell.equipment-shell .equipment-bottom-actions .action-secondary{inline-size:100%!important}.app-shell.equipment-shell .machine-card{z-index:0!important}.app-shell.equipment-shell .machine-image,.app-shell.equipment-shell .machine-info,.app-shell.equipment-shell .machine-arrow{transform:none!important}.app-shell.equipment-shell .machine-card-meta{max-inline-size:100%!important}.app-shell.equipment-shell .machine-arrow{justify-self:end!important}
@media(max-width:700px){.app-shell.users-shell .users-intro{grid-template-columns:1fr!important;align-items:start!important}.app-shell.users-shell .users-intro button{width:100%!important}.app-shell.warehouse-list-shell .warehouses-intro{align-items:start!important;flex-direction:column!important}.app-shell.warehouse-list-shell .warehouses-catalogue-action{inline-size:100%!important}.app-shell.warehouse-list-shell .warehouse-row{grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important}.app-shell.warehouse-list-shell .warehouse-row i{display:none!important}.app-shell.warehouse-list-shell .warehouse-row strong{text-align:left!important}.app-shell.equipment-shell .equipment-top-actions{grid-template-columns:1fr!important}}

/* Parts journal: every delivery, transfer or order opens as one working card. */
.app-shell.parts-journal-shell{padding-inline:var(--pk-space)!important}.app-shell.parts-journal-shell :is(.pj-page,.pj-detail){display:grid!important;gap:14px!important;padding:var(--pk-space) 0 20px!important}.app-shell .pj-top-actions,.app-shell .pj-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.app-shell .pj-title{display:grid!important;gap:6px!important}.app-shell .pj-title p,.app-shell .pj-title span{margin:0!important;color:var(--pk-muted)!important;font-size:clamp(15px,3.7vw,19px)!important;line-height:1.3!important}.app-shell .pj-list{display:grid!important;gap:10px!important}.app-shell .pj-record-card{display:grid!important;grid-template-columns:54px minmax(0,1fr) 26px!important;align-items:center!important;gap:12px!important;min-height:90px!important;padding:12px!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:linear-gradient(135deg,#fffefb,#f5faf5)!important;color:var(--pk-ink)!important;text-decoration:none!important;box-shadow:0 6px 18px #103c2408!important}.app-shell .pj-record-card:hover{border-color:#8fc3a6!important;background:#f3faf4!important}.app-shell .pj-record-media{display:grid!important;place-items:center!important;inline-size:54px!important;block-size:54px!important;overflow:hidden!important;border-radius:14px!important;background:#e8f2e9!important;color:var(--pk-green)!important;font-size:27px!important}.app-shell .pj-record-media img{inline-size:100%!important;block-size:100%!important;object-fit:cover!important}.app-shell .pj-record-copy{display:grid!important;gap:4px!important;min-inline-size:0!important}.app-shell .pj-record-copy strong{overflow:hidden!important;font-size:clamp(17px,4.2vw,23px)!important;line-height:1.14!important;text-overflow:ellipsis!important;white-space:nowrap!important}.app-shell .pj-record-copy small,.app-shell .pj-record-copy em{overflow:hidden!important;color:var(--pk-muted)!important;font-size:clamp(13px,3.4vw,16px)!important;font-style:normal!important;line-height:1.15!important;text-overflow:ellipsis!important;white-space:nowrap!important}.app-shell .pj-record-arrow{justify-self:end!important;color:var(--pk-green)!important;font-size:30px!important;line-height:1!important}.app-shell .pj-empty{display:grid!important;place-items:center!important;min-height:112px!important;padding:20px!important;border:1px dashed #ccdbef!important;border-radius:var(--pk-radius)!important;color:#5f7396!important;text-align:center!important}.app-shell .pj-archive-link,.app-shell .pj-back-link{color:#075b37!important;font-size:clamp(16px,3.8vw,20px)!important;font-weight:750!important;text-decoration:none!important}.app-shell .pj-detail-card{display:grid!important;gap:16px!important;padding:clamp(16px,4vw,24px)!important;border:1px solid var(--pk-line)!important;border-radius:var(--pk-radius)!important;background:var(--pk-paper)!important}.app-shell .pj-detail-card header{display:grid!important;gap:7px!important}.app-shell .pj-detail-card header p,.app-shell .pj-detail-card header small{margin:0!important;color:var(--pk-muted)!important;font-size:clamp(14px,3.5vw,17px)!important}.app-shell .pj-detail-card section{display:grid!important;gap:10px!important;padding-top:15px!important;border-top:1px solid var(--pk-line)!important}.app-shell .pj-detail-card section h2{font-size:clamp(21px,5vw,29px)!important}.app-shell .pj-files,.app-shell .pj-comments{display:grid!important;gap:9px!important}.app-shell .pj-file,.app-shell .pj-comment{display:grid!important;gap:7px!important;padding:12px!important;border:1px solid var(--pk-line)!important;border-radius:16px!important;background:#f8fbf8!important;color:var(--pk-ink)!important;text-decoration:none!important}.app-shell .pj-file{grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important}.app-shell .pj-file img{inline-size:44px!important;block-size:44px!important;object-fit:cover!important;border-radius:10px!important}.app-shell .pj-file span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:750!important}.app-shell .pj-comment p,.app-shell .pj-comment small{margin:0!important}.app-shell .pj-comment small{color:var(--pk-muted)!important}.app-shell .pj-archived-note{margin:0!important;color:var(--pk-muted)!important}.app-shell .pj-sheet label{display:grid!important;gap:7px!important;font-weight:750!important}.app-shell .pj-sheet textarea{min-block-size:126px!important;padding:12px!important;border:1px solid var(--pk-line)!important;border-radius:16px!important;background:#fff!important;color:var(--pk-ink)!important;font:inherit!important;resize:vertical!important}.app-shell .pj-sheet input[type=file]{padding:10px!important;border:1px dashed var(--pk-line)!important;border-radius:14px!important;background:#f8fbf8!important}.app-shell .pj-form-error{margin:0!important;color:var(--pk-danger)!important;font-weight:700!important}
@media(max-width:390px){.app-shell.parts-journal-shell .pj-record-card{grid-template-columns:48px minmax(0,1fr) 23px!important;gap:9px!important;padding:10px!important;min-height:82px!important}.app-shell.parts-journal-shell .pj-record-media{inline-size:48px!important;block-size:48px!important;font-size:24px!important}.app-shell.parts-journal-shell .pj-record-copy strong{font-size:18px!important}.app-shell.parts-journal-shell .pj-detail-actions{grid-template-columns:1fr!important}.app-shell.parts-journal-shell .pj-detail-actions .action-danger{grid-column:auto!important}}

/* Final interaction pass: one header and compact working controls on every route. */
main.app-shell>.portal-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:80px!important;margin:0!important;padding:16px var(--pk-space)!important;background:var(--pk-paper)!important;border-bottom:1px solid var(--pk-line)!important}main.app-shell>.portal-header .brand{min-inline-size:0!important;flex:1 1 auto!important;font-size:clamp(18px,5vw,32px)!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}main.app-shell>.portal-header .header-actions{display:flex!important;align-items:center!important;gap:10px!important;flex:none!important}main.app-shell>.portal-header .language-trigger{min-height:48px!important;padding:8px 13px!important;border:1px solid var(--pk-line)!important;border-radius:17px!important;background:var(--pk-mint)!important;color:var(--pk-green)!important;font:750 clamp(15px,3.8vw,19px)/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}main.app-shell>.portal-header .avatar{display:grid!important;place-items:center!important;inline-size:48px!important;block-size:48px!important;min-inline-size:48px!important;margin:0!important;border:0!important;border-radius:50%!important;background:#f3f8f3!important;color:var(--pk-green)!important;font:800 22px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

/* Equipment: keep the two primary actions in one responsive row. */
.app-shell.equipment-shell .equipment-top-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.app-shell.equipment-shell .equipment-top-actions>:is(a,button){min-inline-size:0!important;min-height:52px!important;padding:10px 8px!important;font-size:clamp(11px,3.1vw,18px)!important;line-height:1.08!important;white-space:nowrap!important}.app-shell.equipment-shell .equipment-top-actions .action-primary{background:var(--pk-green)!important;color:#fff!important;border-color:var(--pk-green)!important}

/* Equipment card actions are grouped by outcome instead of appearing as a loose list. */
.app-shell.fleet-shell .fleet-detail .equipment-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:20px 0 0!important;padding:0!important}.app-shell.fleet-shell .fleet-detail .equipment-card-actions :is(button,a){min-inline-size:0!important;min-height:48px!important;margin:0!important;padding:10px!important}.app-shell.fleet-shell .fleet-detail .equipment-card-actions .action-primary{grid-column:1/-1!important}.app-shell.fleet-shell .fleet-detail .equipment-card-actions .action-danger{background:#fff2f0!important;border-color:var(--pk-danger,#c8463d)!important;color:var(--pk-danger,#c8463d)!important}

/* Warehouse inventory: revision is a readable, resilient action button. */
.app-shell.inventory-shell .inventory-intro{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(152px,.9fr)!important;align-items:center!important;gap:12px!important;padding:16px var(--pk-space)!important}.app-shell.inventory-shell .inventory-review-trigger{display:grid!important;place-content:center!important;gap:3px!important;min-inline-size:0!important;min-height:60px!important;height:auto!important;margin:0!important;padding:10px 12px!important;border-radius:18px!important;text-align:center!important}.app-shell.inventory-shell .inventory-review-trigger b{font-size:clamp(16px,4vw,21px)!important;line-height:1.05!important;white-space:nowrap!important}.app-shell.inventory-shell .inventory-review-trigger small{display:block!important;font-size:clamp(11px,2.8vw,14px)!important;line-height:1.12!important;color:#c3e0ce!important}

@media(max-width:340px){main.app-shell>.portal-header{padding-inline:14px!important}.app-shell.equipment-shell .equipment-top-actions{gap:6px!important}.app-shell.equipment-shell .equipment-top-actions>:is(a,button){padding-inline:5px!important;font-size:11px!important}.app-shell.inventory-shell .inventory-intro{grid-template-columns:1fr!important}.app-shell.inventory-shell .inventory-review-trigger{inline-size:100%!important}.app-shell.fleet-shell .fleet-detail .equipment-card-actions{grid-template-columns:1fr!important}.app-shell.fleet-shell .fleet-detail .equipment-card-actions .action-primary{grid-column:auto!important}}

/* The two equipment entry points stay side by side on every supported phone. */
@media(max-width:700px){
  .app-shell.equipment-shell .equipment-top-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  .app-shell.equipment-shell .equipment-top-actions>:is(a,button){min-width:0!important;min-height:48px!important;padding:8px 6px!important;font-size:clamp(11px,3vw,14px)!important;line-height:1.15!important;white-space:normal!important}
  .app-shell.fleet-shell .fleet-detail .equipment-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .app-shell.fleet-shell .fleet-detail .equipment-card-actions :is(button,a){min-width:0!important;min-height:48px!important;padding-inline:8px!important;font-size:clamp(12px,3.1vw,14px)!important;line-height:1.15!important}
  .app-shell.inventory-shell .inventory-review-trigger{min-width:0!important;white-space:nowrap!important}
}

/* Parts journal: keep the whole record readable on a phone. */
.app-shell.parts-journal-shell .pj-list{gap:12px!important}
.app-shell.parts-journal-shell .pj-record-card{grid-template-columns:60px minmax(0,1fr) 28px!important;align-items:start!important;gap:13px!important;min-height:126px!important;padding:16px!important}
.app-shell.parts-journal-shell .pj-record-media{inline-size:60px!important;block-size:60px!important;font-size:28px!important}
.app-shell.parts-journal-shell .pj-record-copy{align-content:start!important;gap:6px!important;padding-block:1px!important}
.app-shell.parts-journal-shell .pj-record-copy strong{display:block!important;overflow:visible!important;font-size:clamp(17px,4.35vw,21px)!important;line-height:1.24!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
.app-shell.parts-journal-shell .pj-record-copy small,.app-shell.parts-journal-shell .pj-record-copy em{display:block!important;overflow:visible!important;color:var(--pk-muted)!important;font-size:clamp(12px,3.15vw,14px)!important;font-style:normal!important;line-height:1.25!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
.app-shell.parts-journal-shell .pj-record-arrow{padding-top:5px!important;font-size:28px!important}
@media(max-width:390px){
  .app-shell.parts-journal-shell .pj-record-card{grid-template-columns:54px minmax(0,1fr) 24px!important;gap:10px!important;min-height:118px!important;padding:13px!important}
  .app-shell.parts-journal-shell .pj-record-media{inline-size:54px!important;block-size:54px!important}
  .app-shell.parts-journal-shell .pj-record-copy strong{font-size:17px!important}
  .app-shell.parts-journal-shell .pj-record-copy small,.app-shell.parts-journal-shell .pj-record-copy em{font-size:12px!important}
}

/* OWNER CHROME LOCK: the approved homepage header and equipment bottom bar
   are the single visual reference for every authenticated portal route. */
main.app-shell>.portal-header{
  inline-size:100vw!important;
  margin-inline:calc(50% - 50vw)!important;
}
main.app-shell>nav[aria-label="Основная навигация"]{
  position:fixed!important;
  z-index:30!important;
  inset-inline-start:50%!important;
  inset-block-end:calc(12px + env(safe-area-inset-bottom))!important;
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  align-items:center!important;
  inline-size:min(calc(100vw - 32px),528px)!important;
  block-size:76px!important;
  min-block-size:76px!important;
  margin:0!important;
  padding:7px 10px!important;
  transform:translateX(-50%)!important;
  border:0!important;
  border-radius:26px!important;
  background:rgba(255,254,250,.98)!important;
  box-shadow:0 8px 22px rgba(17,48,30,.16)!important;
}
main.app-shell>nav[aria-label="Основная навигация"]>a{
  display:grid!important;
  place-items:center!important;
  gap:3px!important;
  min-block-size:60px!important;
  margin:0!important;
  padding:4px 2px!important;
  color:#929b94!important;
  font:500 clamp(12px,3.6vw,14px)/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
}
main.app-shell>nav[aria-label="Основная навигация"]>a.on{
  color:var(--ui-green,#075d39)!important;
  font-weight:700!important;
}
main.app-shell>nav[aria-label="Основная навигация"]>a::after{display:none!important}
main.app-shell>nav[aria-label="Основная навигация"] .nav-icon{inline-size:28px!important;block-size:28px!important}

/* Warehouse creation uses the established portal action controls. */
.app-shell.warehouse-list-shell .warehouse-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-inline-size:min(100%,360px)!important}
.app-shell.warehouse-list-shell .warehouse-actions :is(a,button){min-inline-size:0!important;margin:0!important}
@media(max-width:700px){.app-shell.warehouse-list-shell .warehouse-actions{inline-size:100%!important}}

/* Completed tasks: the title occupies all space that the status does not need. */
.app-shell .completed-page{padding-inline:clamp(10px,3vw,20px)!important}
.app-shell .completed-page .completed-list{padding-inline:0!important}
.app-shell .completed-page .completed-list .task-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:clamp(8px,2.5vw,12px)!important;padding:clamp(12px,3.5vw,16px)!important}
.app-shell .completed-page .completed-list .task-card-body{min-inline-size:0!important;padding-right:0!important}
.app-shell .completed-page .completed-list .task-card>.status{position:static!important;align-self:start!important;justify-self:end!important;min-inline-size:0!important;padding:7px 9px!important;white-space:nowrap!important}
.app-shell .completed-page .completed-list :is(.task-card-title,.task-card-meta){min-inline-size:0!important;overflow-wrap:anywhere!important}

/* Dense warehouse and owner-control views retain every fact in the portal card language. */
.app-shell.catalogue-shell .catalogue-list{display:grid!important;gap:10px!important}.app-shell.catalogue-shell .catalogue-list-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:72px!important;padding:14px 16px!important}.app-shell.catalogue-shell .catalogue-list-card h2{margin:0!important;font-size:clamp(18px,4.4vw,24px)!important;line-height:1.14!important;overflow-wrap:anywhere!important}.app-shell.catalogue-shell .catalogue-list-meta{display:grid!important;gap:2px!important;margin:0!important;min-inline-size:0!important;text-align:right!important}.app-shell.catalogue-shell .catalogue-list-meta span{color:var(--pk-muted)!important;font-size:12px!important;font-weight:700!important}.app-shell.catalogue-shell .catalogue-list-meta b{max-inline-size:min(42vw,230px)!important;color:var(--pk-green)!important;font-size:clamp(13px,3.3vw,16px)!important;line-height:1.2!important;overflow-wrap:anywhere!important}.app-shell.catalogue-shell .catalogue-stock{margin-top:16px!important;padding-top:14px!important;border-top:1px solid var(--pk-line)!important}.app-shell.catalogue-shell .catalogue-stock h2{margin:0 0 9px!important;font-size:clamp(18px,4.5vw,24px)!important}.app-shell.catalogue-shell .catalogue-stock ul{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;list-style:none!important}.app-shell.catalogue-shell .catalogue-stock li{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:9px 0!important;border-bottom:1px solid #e4ede5!important}.app-shell.catalogue-shell .catalogue-stock li:last-child{border-bottom:0!important}.app-shell.catalogue-shell .catalogue-stock span{color:var(--pk-muted)!important;text-align:right!important}
.app-shell.login-history-shell .login-history,.app-shell.change-history-shell .change-history{display:grid!important;gap:8px!important;padding-inline:var(--pk-space)!important}.app-shell.login-history-shell .login-history-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 10px!important;min-height:0!important;padding:12px 14px!important}.app-shell.login-history-shell .login-history-item>div b{font-size:clamp(16px,4vw,20px)!important}.app-shell.login-history-shell .login-history-item>div small{font-size:clamp(11px,3vw,14px)!important;line-height:1.2!important}.app-shell.login-history-shell .login-history-item>i{align-self:start!important;padding:5px 8px!important;font-size:12px!important;white-space:nowrap!important}.app-shell.login-history-shell .login-history-item dl{grid-column:1/-1!important;display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:4px 9px!important;margin:5px 0 0!important;padding-top:8px!important;border-top:1px solid var(--pk-line)!important}.app-shell.login-history-shell .login-history-item dl div{display:contents!important}.app-shell.login-history-shell .login-history-item dt{font-size:11px!important}.app-shell.login-history-shell .login-history-item dd{min-inline-size:0!important;margin:0!important;font-size:12px!important;line-height:1.22!important;overflow-wrap:anywhere!important}.app-shell.change-history-shell .change-history-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 10px!important;min-height:0!important;padding:12px 14px!important}.app-shell.change-history-shell .change-history-item p{grid-column:1/-1!important;margin:0!important;font-size:13px!important;line-height:1.25!important}.app-shell.change-history-shell .change-history-item a{align-self:center!important;font-size:13px!important;white-space:nowrap!important}
.app-shell.equipment-shell .professional-machine-card{min-height:104px!important;padding:12px!important}.app-shell.equipment-shell .professional-machine-card .machine-info{gap:5px!important}.app-shell.equipment-shell .professional-machine-card strong{font-size:clamp(18px,4.4vw,24px)!important;overflow-wrap:anywhere!important}.app-shell.fleet-detail-shell .fleet-detail{gap:14px!important;padding:clamp(14px,4vw,20px)!important}.app-shell.fleet-detail-shell .fleet-detail .history-event{padding:13px!important}.app-shell.fleet-detail-shell .equipment-actions{margin-top:0!important}
@media(max-width:390px){.app-shell.catalogue-shell .catalogue-list-card{grid-template-columns:1fr!important;gap:7px!important}.app-shell.catalogue-shell .catalogue-list-meta{text-align:left!important}.app-shell.catalogue-shell .catalogue-list-meta b{max-inline-size:none!important}.app-shell.catalogue-shell .catalogue-stock li{display:grid!important;grid-template-columns:1fr!important;gap:3px!important}.app-shell.catalogue-shell .catalogue-stock span{text-align:left!important}.app-shell.login-history-shell .login-history-item dl{grid-template-columns:86px minmax(0,1fr)!important}}

/* Audit corrections: scope styles to the live containers, including body-level dialogs. */
.app-shell .equipment-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-block:12px!important}
.app-shell .equipment-card-actions :is(button,a){width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:10px!important;border:1px solid #d6e3d7!important;border-radius:18px!important;background:#f5f9f5!important;color:#075d39!important;font:700 14px/1.2 Inter,sans-serif!important;white-space:normal!important}
.app-shell .equipment-card-actions .action-primary{background:#075d39!important;color:white!important}
.app-shell .equipment-card-actions .action-danger{background:#fff3f2!important;color:#bf3b33!important;border-color:#efb8b3!important}
#equipment-cover-sheet :is(button[type=submit],.equipment-photo-buttons button){min-height:48px!important;padding:10px 14px!important;border:1px solid #d6e3d7!important;border-radius:18px!important;background:#f5f9f5!important;color:#075d39!important;font:700 15px/1.2 Inter,sans-serif!important}
#equipment-cover-sheet button[type=submit]{background:#075d39!important;color:white!important}
#equipment-cover-sheet button:disabled{opacity:.55!important;cursor:not-allowed}
.app-shell.login-history-shell .login-history-item :is(dt,small,b){min-width:0!important;overflow-wrap:anywhere!important}
.app-shell.login-history-shell .login-history-item dt{white-space:normal!important}
.app-shell.home-shell .home-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:12px var(--pk-space)!important;margin:0!important}
.app-shell.home-shell .home-actions>*{min-height:48px!important;width:100%!important;min-width:0!important;margin:0!important;padding:8px!important;font-size:14px!important;line-height:1.15!important}
.app-shell.home-shell .home-screen{padding-top:0!important}
.app-shell.home-shell .home-title-row{padding-block:8px!important;margin-block:0!important}
.app-shell.home-shell .home-title-row h1{margin:0 0 6px!important;font-size:32px!important;line-height:1.1!important}
.app-shell.home-shell .home-summary h2{margin:0!important;font-size:16px!important;line-height:1.2!important}
.app-shell.home-shell .task-filters{padding-block:8px!important;margin:0!important;gap:8px!important}
.app-shell.home-shell .task-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.app-shell.home-shell .task-filters label{min-width:0!important}
.app-shell.home-shell .home-title-row{gap:6px!important}
.app-shell.home-shell .home-summary{padding:0!important;margin:0!important}
.app-shell.home-shell .task-filters label{gap:3px!important;font-size:12px!important}
.app-shell.home-shell .task-filters select{min-height:44px!important;padding:6px!important;font-size:13px!important}
.app-shell.home-shell .home-feed{gap:8px!important;margin:0!important;padding-top:0!important}
.app-shell.home-shell .home-feed>.task-card{min-height:0!important;padding:10px!important;gap:8px!important}
.app-shell.home-shell .task-card-title{font-size:17px!important;line-height:1.15!important}
.app-shell.home-shell .task-card-meta{gap:3px 7px!important;font-size:12px!important;line-height:1.2!important}
.app-shell.home-shell .task-source{font-size:11px!important}
.app-shell.home-shell .task-card>.status{font-size:11px!important;padding:5px 7px!important}
.app-shell .completed-page .completed-heading{padding-block:14px!important;margin:0!important}
.app-shell .completed-page .completed-heading h1{font-size:32px!important;line-height:1.1!important;margin:0 0 10px!important}
.app-shell .completed-page .completed-heading p{font-size:15px!important;line-height:1.3!important;margin:0!important}
.app-shell .completed-page .completed-summary{margin-block:12px!important;padding-block:8px!important}
.app-shell .task-card-created{white-space:normal!important}
.parts-stock-page>section{margin-top:18px}
.parts-stock-page>label{display:grid;gap:6px;margin-block:12px}
.parts-stock-page select{width:100%;min-height:44px}
.parts-stock-values,.parts-stock-history{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}
.parts-stock-values li,.parts-stock-history li{display:grid;gap:5px;padding:10px;border:1px solid #d6e3d7;border-radius:12px;overflow-wrap:anywhere}
.parts-stock-values small,.parts-stock-history small{color:#637367;font-size:12px}
.parts-journal-shell .pj-title>a{display:inline-flex;margin-block:10px;min-height:44px;align-items:center}
.parts-journal-shell .pj-detail-card .pj-back-link{display:block;margin-top:10px}
@media(max-width:440px){.app-shell.catalogue-shell .catalogue-intro:has(.catalogue-actions) h1{font-size:clamp(20px,5.2vw,23px)!important}}
/* Unified parts events: existing cream/green portal theme, mobile-first controls. */
.spare-sheet { width:min(96vw,42rem); max-width:42rem; max-height:92dvh; overflow:auto; }
.spare-sheet form { min-width:0; }
.spare-sheet label { display:grid; gap:.35rem; margin:.55rem 0; font-size:1rem; }
.spare-sheet input,.spare-sheet select,.spare-sheet textarea { width:100%; min-width:0; box-sizing:border-box; font:inherit; padding:.65rem; border:1px solid #c9d9cc; border-radius:.65rem; background:#fffefa; }
.spare-editor h3 { margin:.8rem 0; }
.spare-line { min-width:0; padding:.8rem; margin:.8rem 0; border:1px solid #c9d9cc; border-radius:1rem; }
.spare-line legend { font-weight:700; padding:0 .3rem; }
.spare-line output { display:block; padding:.7rem; margin:.5rem 0; border-radius:.6rem; background:#eaf4ed; color:#075936; font-size:1rem; font-weight:700; overflow-wrap:anywhere; }
.spare-line output.spare-invalid { color:#9f2e22; background:#fce9e3; }
.spare-remove,.spare-refresh { min-height:44px; padding:.5rem .7rem; margin:.35rem 0; border:1px solid #c9d9cc; border-radius:.65rem; background:#f7faf7; color:#075936; font:inherit; }
.spare-remove { color:#97382c; }
.spare-balance { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem .2rem; border-bottom:1px solid #d6e2d8; color:inherit; text-decoration:none; }
.spare-balance>span { display:grid; gap:.2rem; min-width:0; overflow-wrap:anywhere; }
.spare-balance>strong { flex-shrink:0; color:#075936; }
.spare-balance small,.spare-movement small { font-size:.875rem; color:#58695f; }
.spare-movement { display:grid; gap:.35rem; padding:.8rem; margin:.6rem 0; border:1px solid #d6e2d8; border-radius:.8rem; min-width:0; overflow-wrap:anywhere; font-size:1rem; }
.spare-movement a { color:#075936; }
.spare-sheet [hidden] { display:none!important; }
.spare-sheet .pj-form-error { color:#9f2e22; }

/* The spare editor lives outside .app-shell; keep its actions in the same palette. */
dialog#sheet.spare-sheet .action-primary{background:var(--pk-green)!important;color:#fff!important;border:1px solid var(--pk-green)!important;border-radius:18px!important;font-weight:750!important}
dialog#sheet.spare-sheet .action-secondary{background:var(--pk-mint)!important;color:var(--pk-green)!important;border:1px solid var(--pk-line)!important;border-radius:18px!important}
dialog#sheet.spare-sheet button:disabled{opacity:.6!important;cursor:wait!important}
dialog#sheet.spare-sheet .spare-save-status:empty,dialog#sheet.spare-sheet [hidden]{display:none!important}
dialog#sheet.spare-sheet .spare-save-status,dialog#sheet.spare-sheet .pj-form-error{margin:0!important}
dialog#sheet.spare-sheet .pj-composer{overscroll-behavior:contain}


/* Warehouse cards: one surface, quiet secondary actions, clear list navigation. */
.app-shell.warehouse-list-shell .warehouses-intro{display:block!important;padding-bottom:20px!important}
.app-shell.warehouse-list-shell .warehouse-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px;width:100%}
.app-shell.warehouse-list-shell .warehouse-actions>*{min-width:0;width:100%;min-height:46px;font-size:14px!important;padding:12px 8px!important;border-radius:14px!important}
.app-shell.warehouse-list-shell .warehouse-actions .action-primary{background:var(--pk-green)!important;color:#fff!important;border-color:var(--pk-green)!important}
.app-shell.warehouse-list-shell .warehouse-tabs{display:flex;gap:4px;padding:4px;margin:0 0 20px;background:#edf2ee;border:1px solid #e2e9e3;border-radius:14px}
.app-shell.warehouse-list-shell .warehouse-tabs a{flex:1;text-align:center;padding:11px 12px;border-radius:10px;color:var(--pk-muted);font-size:14px;font-weight:650;text-decoration:none;min-height:44px}
.app-shell.warehouse-list-shell .warehouse-tabs a[aria-current]{background:var(--pk-paper);color:var(--pk-green);box-shadow:0 2px 5px #173f2510}
.app-shell.warehouse-list-shell .warehouse-archive-card{min-width:0;overflow:hidden;border:1px solid var(--pk-line);border-radius:20px;background:var(--pk-paper);box-shadow:0 4px 16px #103c2405}
.app-shell.warehouse-list-shell .professional-warehouse-list .warehouse-archive-card .warehouse-row{grid-template-columns:minmax(0,1fr) 20px!important;min-height:0!important;padding:20px 18px 18px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.app-shell.warehouse-list-shell .professional-warehouse-list .warehouse-archive-card .warehouse-row b{font:700 clamp(19px,4.7vw,23px)/1.25 system-ui,sans-serif!important;letter-spacing:-.025em!important;text-wrap:pretty!important}
.app-shell.warehouse-list-shell .professional-warehouse-list .warehouse-archive-card .warehouse-row small{font:400 13px/1.4 system-ui,sans-serif!important;margin-top:3px!important}
.app-shell.warehouse-list-shell .professional-warehouse-list .warehouse-archive-card .warehouse-row i{display:block!important;color:#829487!important;font-size:27px!important;grid-column:auto!important;grid-row:auto!important}
.app-shell.warehouse-list-shell .warehouse-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:0 18px;border-top:1px solid #e8ede7}
.app-shell.warehouse-list-shell .warehouse-task-count{display:flex;align-items:center;gap:8px;color:var(--pk-muted);font-size:12px}
.app-shell.warehouse-list-shell .warehouse-task-count b{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:8px;background:#edf3ee;color:var(--pk-green);font-size:13px}
.app-shell.warehouse-list-shell .professional-warehouse-list .warehouse-archive-card .warehouse-archive-button{width:auto!important;min-height:44px!important;padding:8px 0 8px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--pk-green)!important;font-size:13px!important;font-weight:600!important}
.app-shell.warehouse-list-shell .warehouse-archive-button:hover{text-decoration:underline}
.app-shell.warehouse-list-shell :is(.warehouse-tabs a,.warehouse-archive-button):focus-visible{outline:2px solid var(--pk-green);outline-offset:2px}


/* One viewport frame on every page that has primary navigation. */
#app:has(>main.portal-frame){padding:0!important;min-height:0!important;height:100svh;height:100dvh;overflow:hidden!important}
#app>main.app-shell.portal-frame{display:flex!important;flex-direction:column!important;height:100svh!important;height:100dvh!important;min-height:0!important;padding:0!important;overflow:hidden!important}
#app>main.portal-frame>.app-shell.portal-scroll-region{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:24px!important;scroll-padding-bottom:24px}
main.portal-frame>.portal-scroll-region>.portal-header{width:100vw!important;inline-size:100vw!important;margin-inline:calc(50% - 50vw)!important;padding-top:max(12px,env(safe-area-inset-top))!important}
main.app-shell.portal-frame>nav[aria-label="Основная навигация"]{position:static!important;inset:auto!important;transform:none!important;flex:0 0 76px!important;align-self:center!important;margin:8px 16px calc(12px + env(safe-area-inset-bottom))!important;width:min(calc(100% - 32px),528px)!important;inline-size:min(calc(100% - 32px),528px)!important}
main.portal-frame .portal-scroll-region .inventory-toolbar{position:sticky!important;left:auto!important;bottom:0!important;transform:none!important;width:100%!important;margin-inline:0!important}

/* Task card: comfortable mobile actions and the task's original attachments. */
.app-shell.task-shell .task-detail .task-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:16px 0!important;padding:0!important}
.app-shell.task-shell .task-detail .task-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px 10px!important;border:1px solid var(--pk-line)!important;border-radius:14px!important;background:var(--pk-mint)!important;color:var(--pk-green)!important;font:650 14px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important;box-shadow:none!important}
.app-shell.task-shell .task-detail .task-actions>#assign{grid-column:1/-1!important}
.app-shell.task-shell .task-detail .task-actions>button.primary{grid-column:1/-1!important;background:var(--pk-green)!important;border-color:var(--pk-green)!important;color:#fff!important}
.app-shell.task-shell .task-detail .task-actions>:is(#delete-task,#purge-portal-task){grid-column:1/-1!important;background:transparent!important;border-color:transparent!important;color:var(--pk-danger)!important;font-size:13px!important}
.app-shell.task-shell .task-detail .task-actions>button:hover{filter:brightness(.97)}
.app-shell.task-shell .task-attachments{margin:18px 0;min-width:0}
.app-shell.task-shell .task-attachments h2{margin:0 0 10px!important;font:700 16px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
.app-shell.task-shell .task-attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.app-shell.task-shell .task-photo-link{display:grid;min-width:0;overflow:hidden;border:1px solid var(--pk-line);border-radius:14px;background:var(--pk-mint);color:var(--pk-green);text-decoration:none}
.app-shell.task-shell .task-photo-link img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#edf1ec}
.app-shell.task-shell .task-photo-link span{display:block;overflow:hidden;padding:8px 10px;white-space:nowrap;text-overflow:ellipsis;font:500 12px/1.3 system-ui,sans-serif}
.app-shell.task-shell .task-file-link{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid var(--pk-line);border-radius:12px;color:var(--pk-green);overflow-wrap:anywhere;font:600 14px/1.35 system-ui,sans-serif}
@media(min-width:700px){.app-shell.task-shell .task-attachment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Preparation feedback must remain visible in every photo form. */
.photo-preparation{display:grid!important;gap:7px!important;margin:10px 0!important;padding:14px!important;border:1px solid #9dc5aa!important;border-radius:14px!important;background:#eef7f0!important;color:#174d2a!important;min-width:0!important}
.photo-preparation[hidden]{display:none!important}.photo-preparation b{font:700 15px/1.3 system-ui,sans-serif!important}.photo-preparation span{font:500 13px/1.4 system-ui,sans-serif!important;overflow-wrap:anywhere}.photo-preparation progress{width:100%;height:10px;accent-color:#07663d}.photo-preparation>div{display:flex;flex-wrap:wrap;gap:8px}.photo-preparation button{min-height:44px;padding:8px;border:1px solid #9dc5aa;border-radius:10px;background:#fff;color:#174d2a}.photo-preparation button[hidden]{display:none!important}.photo-preparation[data-phase=error],.photo-preparation[data-phase=expired]{background:#fff4e5!important;border-color:#d7a857!important;color:#714600!important}.photo-preparation-host button:disabled{cursor:not-allowed!important;opacity:.55!important}
dialog#sheet .upload-status:not([hidden]){display:grid!important}
