/* Reference-inspired navigation: quiet surfaces, compact groups, clear blue focus. */
body:has(#dashboard-screen:not(.hidden)) {
  --bg: #f2f3f8;
  --surface-soft: #f7f8fb;
  --text: #343f4c;
  --text-2: #505969;
  --text-3: #69788f;
  --line: #e7eaf1;
  --blue: #0668df;
  --blue-2: #3699ed;
  --cyan: #00a7e6;
  --amber: #ffb600;
  --control-focus: #0668df;
}
body.dark:has(#dashboard-screen:not(.hidden)) {
  --bg: #11171f;
  --surface-solid: #18212b;
  --surface-soft: #1e2935;
  --text: #e7edf5;
  --text-2: #b6c2d1;
  --text-3: #97a9bf;
  --line: #2c3948;
  --blue: #79b7ff;
  --blue-2: #9bcbff;
  --control-focus: #79b7ff;
}
#dashboard-screen { grid-template-columns: 248px minmax(0, 1fr); }
#dashboard-screen .sidebar { padding: 28px 18px 16px; border-radius: 0 16px 16px 0; border-right: 1px solid var(--line); }
#dashboard-screen .sidebar-brand { gap: 10px; padding: 0 6px 23px; }
.brand-symbol:has(img) { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 0; }
.brand-symbol:has(img)::before, .brand-symbol:has(img)::after { content: none; }
.brand-symbol img { display: block; width: 100%; height: 100%; }
#dashboard-screen .sidebar-brand strong { font-size: 19px; font-weight: 600; letter-spacing: -.055em; }
#dashboard-screen .sidebar-brand small { font-size: 8px; letter-spacing: .16em; }
#dashboard-screen .sidebar-toggle { width: 25px; min-width: 25px; height: 28px; border: 0; background: transparent; border-radius: 5px; }
#dashboard-screen .sidebar-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 10px 10px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 9px; }
#dashboard-screen .sidebar-status b { margin-left: auto; font-size: 9px; font-weight: 500; }
#dashboard-screen .main-nav { gap: 2px; padding: 0; }
#dashboard-screen .nav-section-label { margin: 18px 12px 6px; color: var(--text-3); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; line-height: 1.5; }
#dashboard-screen .nav-item { min-height: 37px; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 8px 11px; border-radius: 6px; font-size: 12px; line-height: 1.5; font-weight: 400; }
#dashboard-screen .nav-item svg { width: 17px; height: 17px; color: var(--text-3); stroke-width: 1.4; }
#dashboard-screen .nav-item:hover { background: var(--surface-soft); border-color: transparent; color: var(--blue); }
#dashboard-screen .nav-item.active { background: #edf5ff; border-color: transparent; color: #075fc5; border-left-color: #0668df; font-weight: 600; }
#dashboard-screen .nav-item.active svg, #dashboard-screen .nav-item:hover svg { color: var(--blue); }
#dashboard-screen .nav-item.section-active { background: var(--surface-soft); color: var(--blue); border-color: transparent; }
#dashboard-screen .nav-group-head > .nav-item { padding-right: 34px; }
#dashboard-screen .nav-group-toggle { right: 3px; width: 26px; height: 26px; border-radius: 5px; }
#dashboard-screen .nav-sub-item { min-height: 34px; font-size: 10px; }
#dashboard-screen .sidebar-bottom { padding-top: 22px; }
#dashboard-screen .operator-card { padding: 14px 8px; border-top-color: var(--line); }
#dashboard-screen .operator-avatar { width: 30px; height: 30px; border-radius: 9px; background: #eaf5ff; color: #0764d9; }
#dashboard-screen .logout-button { padding: 10px 11px; font-size: 11px; }
body.dark #dashboard-screen .nav-item.active { color: #a4ceff; background: #203951; border-left-color: #79b7ff; }
body.dark #dashboard-screen .operator-avatar { background: #203951; color: #a4ceff; }
#dashboard-screen.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
#dashboard-screen.sidebar-collapsed .sidebar { padding-inline: 10px; }
#dashboard-screen.sidebar-collapsed .sidebar-brand { display: grid; padding-inline: 0; }
#dashboard-screen.sidebar-collapsed .nav-section-label { height: 1px; margin: 12px 12px 8px; overflow: hidden; font-size: 0; background: var(--line); }
#dashboard-screen.sidebar-collapsed .nav-item { grid-template-columns: 1fr; padding-inline: 5px; }
#dashboard-screen.sidebar-collapsed .sidebar-status { justify-content: center; margin-inline: 8px; }
@media (max-width: 860px) {
  #dashboard-screen, #dashboard-screen.sidebar-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
  #dashboard-screen .sidebar { padding: 20px 7px 12px; border-radius: 0; }
  #dashboard-screen .sidebar-brand, #dashboard-screen.sidebar-collapsed .sidebar-brand { display: flex; padding: 0 0 14px; }
  #dashboard-screen .brand-symbol { width: 34px; height: 34px; flex-basis: 34px; }
  #dashboard-screen .nav-section-label { height: 1px; margin: 12px 12px 8px; overflow: hidden; font-size: 0; background: var(--line); }
  #dashboard-screen .nav-item { grid-template-columns: 1fr; justify-items: center; min-height: 40px; padding: 10px 5px; }
  #dashboard-screen .nav-group-head > .nav-item { padding-inline: 5px; }
  #dashboard-screen .nav-group-toggle { right: 0; width: 19px; }
  #dashboard-screen .sidebar-status { justify-content: center; margin-inline: 8px; }
  #dashboard-screen .sidebar-status b { display: none; }
  #dashboard-screen .sidebar-bottom { padding-top: 14px; }
}

/* Keep the same mark on the sign-in surface and the initial loading state. */
#login-screen .art-copy .brand-mark:has(img), .boot-splash-mark:has(img) { border: 0; background: transparent; box-shadow: none; }
.brand-mark img, .boot-splash-mark img { display: block; width: 100%; height: 100%; }
.boot-splash-mark:has(img)::before { content: none; }
