@media (min-width:801px){
  body:has(#homePage:not(.hidden)){background:#f4f7fb}
  body:has(#homePage:not(.hidden)) #shell{grid-template-columns:244px minmax(0,1fr)}
  body:has(#homePage:not(.hidden)) #shell>aside{position:sticky;top:0;height:100vh;padding:18px 12px;gap:12px;overflow:hidden;background:#082d59}
  body:has(#homePage:not(.hidden)) #shell>aside h1{display:flex;align-items:center;min-height:42px;margin:0 10px;padding-left:46px;background:url('project-one-icon.svg') no-repeat left center/36px;color:#fff;font-size:18px;text-transform:uppercase}
  body:has(#homePage:not(.hidden)) #shell>aside nav{gap:5px;min-height:0}
  body:has(#homePage:not(.hidden)) #shell>aside nav button{display:flex;align-items:center;gap:10px;min-height:41px;padding:9px 12px;border-radius:7px;background:transparent;color:#d9e7f7;font-size:13px;font-weight:750;line-height:1.2}
  body:has(#homePage:not(.hidden)) #shell>aside nav button:hover{background:#123f70;color:#fff}
  body:has(#homePage:not(.hidden)) #shell>aside nav button.active{background:#1769e0;color:#fff;box-shadow:0 4px 12px #001a3c55}
  body:has(#homePage:not(.hidden)) #shell>aside nav button img{width:19px;height:19px;filter:brightness(0) invert(1)}
  body:has(#homePage:not(.hidden)) #shell>aside>small{margin-top:auto;padding:0 10px;color:#d8e6f5;font-weight:700}
  body:has(#homePage:not(.hidden)) #shell>aside>#logout{min-height:38px;padding:8px 12px;background:#174574}
  body:has(#homePage:not(.hidden)) #shell>main{padding:0;background:#f4f7fb}
  body:has(#homePage:not(.hidden)) #shell>main>header,
  body:has(#homePage:not(.hidden)) #pinSecurityBanner,
  body:has(#homePage:not(.hidden)) #languageSafetyNote{display:none!important}
  #homePage.home-page{display:block;min-height:100vh}
  .desktop-home-dashboard{min-height:100vh;color:#172235}
  .desktop-dashboard-loading{display:grid;place-items:center;min-height:100vh;color:#607086;font-weight:750}
  .desktop-dashboard-topbar{display:grid;grid-template-columns:minmax(360px,640px) auto 1fr;gap:18px;align-items:center;min-height:68px;margin:0;padding:10px 20px;border-bottom:1px solid #dce3ec;background:#fff}
  .desktop-dashboard-brand{display:none}
  .desktop-dashboard-search{display:flex;align-items:center;gap:10px;height:42px;padding:0 14px;border:1px solid #d4dde8;border-radius:8px;background:#fff}
  .desktop-dashboard-search img{width:18px;height:18px;opacity:.68}
  .desktop-dashboard-search input{width:100%;border:0;outline:0;color:#172235;font-size:13px}
  .desktop-dashboard-new{display:flex;align-items:center;gap:7px;height:42px;padding:0 18px;border:0;border-radius:7px;background:#1769e0;color:#fff;font-size:13px;font-weight:850;white-space:nowrap}
  .desktop-dashboard-new img{width:18px;height:18px;filter:brightness(0) invert(1)}
  .desktop-dashboard-tools{display:flex;justify-content:flex-end;gap:5px;align-items:center}
  .desktop-dashboard-tools button{position:relative;display:grid;place-items:center;width:39px;height:39px;padding:0;border:0;border-radius:8px;background:#fff;color:#172235}
  .desktop-dashboard-tools button:hover{background:#eef4fb}
  .desktop-dashboard-tools button img{width:21px;height:21px}
  .desktop-dashboard-tools button>span{position:absolute;top:0;right:0;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e23a3a;color:#fff;font-size:9px;font-weight:900}
  .desktop-dashboard-tools .desktop-dashboard-profile{display:flex;width:auto;gap:8px;padding:0 8px;margin-left:6px}
  .desktop-dashboard-tools .desktop-dashboard-profile img{width:28px;height:28px}
  .desktop-dashboard-tools .desktop-dashboard-profile b{font-size:12px;white-space:nowrap}
  .desktop-dashboard-content{display:grid;gap:10px;padding:14px 18px 10px}
  .desktop-dashboard-heading{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 2px}
  .desktop-dashboard-heading h2{margin:0;color:#111827;font-size:22px;letter-spacing:-.02em}
  .desktop-dashboard-heading p{margin:4px 0 0;color:#66758a;font-size:11px}
  .desktop-dashboard-heading button{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #d6e0eb;border-radius:7px;background:#fff;color:#31506e;font-size:10px;font-weight:800}
  .desktop-dashboard-heading button img{width:14px;height:14px}
  .desktop-dashboard-section{min-width:0;border:1px solid #d8e1eb;border-radius:9px;background:#fff;box-shadow:0 2px 6px #0c31550a}
  .desktop-dashboard-section>header{display:flex;align-items:center;justify-content:space-between;min-height:41px;margin:0;padding:9px 13px;border-bottom:1px solid #e3e8ef}
  .desktop-dashboard-section>header h3,.desktop-dashboard-section>header h4{margin:0;font-size:14px}
  .desktop-dashboard-section>header p{margin:2px 0 0;color:#758296;font-size:9px}
  .desktop-dashboard-section>header button,.desktop-panel-link{display:flex;align-items:center;gap:4px;border:0;background:transparent;color:#1769e0;font-size:10px;font-weight:800}
  .desktop-dashboard-section>header button img,.desktop-panel-link img{width:13px;height:13px}
  .desktop-alert-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:10px 13px 12px}
  .desktop-alert-card{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;padding:8px;border:1px solid #dce3ec;border-radius:8px;background:#fff;color:#172235;text-align:left}
  .desktop-alert-card:hover{border-color:#98b8dc;box-shadow:0 3px 10px #12385a12}
  .desktop-alert-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#edf4ff}
  .desktop-alert-card img{width:23px;height:23px}
  .desktop-alert-card div{display:grid;gap:2px}
  .desktop-alert-card small{font-size:11px;font-weight:800;white-space:nowrap}
  .desktop-alert-card b{font-size:22px;line-height:1}
  .desktop-alert-card.danger>span{background:#fff0ef}.desktop-alert-card.danger b{color:#d53232}
  .desktop-alert-card.warning>span{background:#fff5df}.desktop-alert-card.warning b{color:#d97706}
  .desktop-alert-card.success>span{background:#eaf8f2}.desktop-alert-card.success b{color:#138a5b}
  .desktop-alert-card.info>span{background:#eaf3ff}.desktop-alert-card.info b{color:#1769e0}
  .desktop-alert-card.purple>span{background:#f5edff}.desktop-alert-card.purple b{color:#7c3db4}
  .desktop-dashboard-work-grid{display:grid;grid-template-columns:minmax(460px,.94fr) minmax(540px,1.1fr);gap:10px}
  .desktop-today-schedule>header nav{display:flex;gap:4px}
  .desktop-today-schedule>header nav button{display:grid;gap:0;padding:5px 9px;border:1px solid #d9e2ec;border-radius:6px;color:#526277}
  .desktop-today-schedule>header nav button small{font-size:8px}
  .desktop-today-schedule>header nav button.active{border-color:#1769e0;background:#1769e0;color:#fff}
  .desktop-table-head{display:grid;align-items:center;min-height:30px;padding:0 9px;background:#f2f5f8;color:#5c697a;font-size:10px;font-weight:800}
  .desktop-schedule-table>.desktop-table-head{grid-template-columns:58px 104px 78px minmax(150px,1fr) 112px}
  .desktop-schedule-table>article{display:grid;grid-template-columns:58px 104px 78px minmax(150px,1fr) 112px;align-items:center;min-height:53px;padding:6px 9px;border-top:1px solid #e5eaf0;cursor:pointer}
  .desktop-schedule-table>article:hover{background:#f7fbff}
  .desktop-schedule-table time{font-size:12px;font-weight:850}.desktop-schedule-table time small{display:block;color:#7a8796;font-size:9px}
  .desktop-schedule-table>article>b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  .desktop-type-chip{justify-self:start;padding:4px 6px;border-radius:5px;background:#e9f2ff;color:#1761b4;font-size:9px;font-weight:850;white-space:nowrap}
  .desktop-type-chip.type-inspection{background:#e6f8f4;color:#057c71}.desktop-type-chip.type-completion{background:#fff0e5;color:#bd5a13}.desktop-type-chip.type-meeting{background:#f4edff;color:#7040a0}
  .desktop-schedule-table>article>div{display:grid;gap:2px;min-width:0}.desktop-schedule-table>article>div strong,.desktop-schedule-table>article>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-schedule-table>article>div strong{font-size:11px}.desktop-schedule-table>article>div small{color:#6b778c;font-size:9px}
  .desktop-schedule-table>article nav{display:flex;justify-content:flex-end;gap:3px}.desktop-schedule-table>article nav button,.desktop-schedule-table>article nav a{display:grid;place-items:center;min-width:30px;height:27px;padding:0 6px;border:1px solid #cfe0f5;border-radius:5px;background:#f7fbff;color:#1769e0;font-size:9px;font-weight:800;text-decoration:none}.desktop-schedule-table>article nav img{width:14px;height:14px}
  .desktop-panel-link{margin:4px 9px 7px 0;margin-left:auto;padding:5px}
  .desktop-operations-table>header>b{padding:4px 7px;border-radius:10px;background:#edf4ff;color:#1769e0;font-size:10px}
  .desktop-operation-list>.desktop-table-head{grid-template-columns:42px minmax(220px,1fr) 84px 88px 66px}
  .desktop-operation-list>article{display:grid;grid-template-columns:42px minmax(220px,1fr) 84px 88px 66px;align-items:center;min-height:53px;padding:6px 9px;border-top:1px solid #e5eaf0}
  .desktop-priority{justify-self:start;padding:4px 5px;border-radius:4px;background:#fff1df;color:#ba6500;font-size:9px;font-weight:900}.desktop-priority.critical{background:#feeceb;color:#bd302c}
  .desktop-operation-list>article>div{display:grid;gap:2px;min-width:0}.desktop-operation-list>article>div b,.desktop-operation-list>article>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-operation-list>article>div b{font-size:11px}.desktop-operation-list>article>div small,.desktop-operation-list>article>span,.desktop-operation-list>article>time{color:#66758a;font-size:9px}
  .desktop-operation-list>article>button{height:28px;border:0;border-radius:5px;background:#1769e0;color:#fff;font-size:9px;font-weight:850}
  .desktop-dashboard-empty{display:grid;place-items:center;min-height:80px;color:#758296;font-size:11px}
  .desktop-management-overview>header{min-height:44px}
  .desktop-finance-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px 13px}
  .desktop-finance-kpis article{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #dce3ec;border-radius:7px}
  .desktop-finance-kpis article>span{display:grid;place-items:center;width:31px;height:31px;border-radius:6px;background:#eef4fb}.desktop-finance-kpis article img{width:18px;height:18px}.desktop-finance-kpis article div{display:grid;min-width:0}.desktop-finance-kpis small{color:#657287;font-size:9px;font-weight:800}.desktop-finance-kpis b{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
  .desktop-finance-kpis article.teal>span{background:#e5f8f5}.desktop-finance-kpis article.purple>span{background:#f2eaff}.desktop-finance-kpis article.orange>span{background:#fff0df}.desktop-finance-kpis article.red>span{background:#ffeded}
  .desktop-dashboard-chart-grid{display:grid;grid-template-columns:minmax(360px,1.5fr) minmax(280px,.82fr) minmax(260px,.78fr);gap:9px;padding:0 13px 12px}
  .desktop-dashboard-chart-grid>section{min-width:0;padding:9px;border:1px solid #dce3ec;border-radius:7px;background:#fff}
  .desktop-dashboard-chart-grid>section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.desktop-dashboard-chart-grid h4{margin:0;font-size:11px}.desktop-dashboard-chart-grid header span{color:#7a8796;font-size:9px}
  .desktop-dashboard-chart-grid canvas{display:block;width:100%}
  .desktop-billing-chart{display:grid;grid-template-columns:minmax(130px,1fr) minmax(110px,.8fr);align-items:center}.desktop-billing-chart ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.desktop-billing-chart li{display:grid;grid-template-columns:8px 1fr auto;gap:5px;align-items:center;font-size:9px}.desktop-billing-chart li i{width:7px;height:7px;border-radius:2px}.desktop-billing-chart li b{font-size:9px}
  .desktop-progress-panel>div{display:grid;gap:3px;padding:5px 6px 1px}.desktop-progress-panel button{display:grid;grid-template-columns:1fr 32px;gap:8px;align-items:center;width:100%;padding:0;border:0;background:#fff;color:#172235}.desktop-progress-panel button>span{display:grid;place-items:center;justify-self:center;width:100%;min-height:22px;clip-path:polygon(6% 0,94% 0,88% 100%,12% 100%);background:#1769e0;color:#fff;font-size:10px;font-weight:900}.desktop-progress-panel button:nth-child(2)>span{width:88%;background:#16a39a}.desktop-progress-panel button:nth-child(3)>span{width:76%;background:#35a85b}.desktop-progress-panel button:nth-child(4)>span{width:64%;background:#f18412}.desktop-progress-panel button:nth-child(5)>span{width:52%;background:#d93a36}.desktop-progress-panel button>b{font-size:11px;text-align:right}
  .desktop-mobile-lock-note{margin:0;color:#7a8796;font-size:8px;text-align:center}
}

@media (min-width:801px) and (max-width:1250px){
  .desktop-dashboard-topbar{grid-template-columns:minmax(280px,1fr) auto auto}
  .desktop-dashboard-work-grid{grid-template-columns:1fr}
  .desktop-alert-grid{grid-template-columns:repeat(3,1fr)}
  .desktop-dashboard-chart-grid{grid-template-columns:1.25fr .9fr}.desktop-progress-panel{grid-column:1/-1}
}
