/* 3D-стройка. Only the authenticated home view receives these styles. */
body.app-shell:has(#tabs [data-view="home"][aria-current="page"], .header-navigation [aria-current="page"][data-view="home"]) #view::before,
body.app-shell.shift-home #view::before {
  content: "Рабочий стол";
  display: grid;
  align-content: center;
  box-sizing: border-box;
  min-height: clamp(110px, 18vw, 224px);
  padding: clamp(15px, 3vw, 40px);
  padding-inline-end: 43%;
  border: 1px solid #dfe1fb;
  border-radius: 22px;
  color: #202441;
  background: url('./home-3d-site.png') right clamp(12px, 5vw, 68px) center / auto 94% no-repeat,
              linear-gradient(110deg, #e1e4ff, #f3effa 68%, #e1e7ff);
  font-size: clamp(25px, 5vw, 62px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.05em;
}
body.app-shell #view > .admin-work-home {
  background: #f9f7fe;
  border-color: #e0def4;
}
body.app-shell #view > .admin-work-home h2,
body.app-shell.shift-home #view .shift-dashboard > .shift-secondary {
  background: url('./home-3d-crane.png') right 6px center / auto 38px no-repeat;
  min-height: 40px;
  padding-inline-end: 55px;
}
body.app-shell.shift-home #view .shift-dashboard > .shift-quick {
  padding: 5px 52px 5px 5px;
  background: #f2f1ff url('./home-3d-helmet.png') right 6px center / 43px auto no-repeat;
  border-radius: 13px;
}
body.app-shell.shift-home #view .shift-dashboard > .shift-overview:not(:empty) {
  border-radius: 13px;
  padding: 4px 51px 4px 5px;
  background: #fbf7ea url('./home-3d-plans.png') right 5px top 5px / 42px auto no-repeat;
}
@media (max-width: 520px) {
  body.app-shell:has(#tabs [data-view="home"][aria-current="page"], .header-navigation [aria-current="page"][data-view="home"]) #view::before,
  body.app-shell.shift-home #view::before {
    background-size: auto 85%, auto;
    background-position: right 10px center, center;
  }
  body.app-shell.shift-home #view .shift-dashboard > .shift-quick,
  body.app-shell.shift-home #view .shift-dashboard > .shift-secondary,
  body.app-shell.shift-home #view .shift-dashboard > .shift-overview:not(:empty) {
    padding-inline-end: 5px;
    padding-top: 40px;
    background-position: right 7px top 3px;
  }
}

/* Blue palette for the home view, including the mobile active tab. */
body.app-shell {
  --desktop-header: #1e2949;
  --desktop-header-line: #455479;
}
body.app-shell .top {
  background: #1e2949;
  border-color: #455479;
}
body.app-shell :is(.shift-date, .shift-identity > span, .shift-header-stats small) {
  color: #d7dff7;
}
body.app-shell :is(.header-navigation, #tabs) button[aria-current="page"] {
  background: #e2e8ff;
  border-color: #e2e8ff;
  color: #222f58;
}
body.app-shell:is(.shift-home, :has([data-view="home"][aria-current="page"])) #view .compact-summary {
  background: #e5e9fb;
  border-color: #d8dff8;
}

body.app-shell .top .shift-compact > .btn {
  background: #354468;
  border-color: #52638c;
  color: #fff;
}