.site-topbar {
  box-sizing: border-box; display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 12px; background: #fff; border-bottom: 1px solid #dbe3ec;
}
.site-topbar-logo {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; margin-right: auto;
  color: #233c59; font: 600 clamp(14px, 4.5vw, 18px)/1.1 system-ui, sans-serif;
  text-decoration: none; white-space: nowrap;
}
.site-topbar-logo img { display: block; height: 36px; width: auto; }
.site-menu-button {
  min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 6px;
  background: #fff; color: #233c59; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.site-menu-button:hover, .site-menu-links a:hover { background: #edf3fa; }
.site-menu :focus-visible, .site-topbar :focus-visible { outline: 2px solid #1765b4; outline-offset: 2px; }
.site-menu {
  box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(320px, calc(100% - 24px)); height: 100%; max-width: none; max-height: none;
  padding: 0; border: 0; background: #fff; color: #233c59; overflow: auto; overscroll-behavior: contain;
  font: 14px/1.5 system-ui, sans-serif;
}
.site-menu[open] { box-shadow: -8px 0 24px #1a2a4226; }
.site-menu::backdrop { background: #17263766; }
html:has(.site-menu[open]) { overflow: hidden; scrollbar-gutter: stable; }
.site-menu-panel { box-sizing: border-box; min-height: 100%; padding: 12px 16px 20px; }
.site-menu-heading { display: flex; align-items: center; justify-content: space-between; }
.site-menu-heading h2 { margin: 0; font-size: 18px; }
.site-mode-switch {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 5px 12px; border: 1px solid #9ab5d5; border-radius: 6px;
  background: #edf5ff; color: #244d7b; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.site-mode-switch:hover { border-color: #6f96c3; background: #dfeeff; }
.site-mode-switch:focus-visible { outline: 2px solid #1765b4; outline-offset: 2px; }
.site-mode-tablet-icon,
.site-mode-desktop-icon {
  box-sizing: border-box; position: relative; border: 1.5px solid currentColor;
}
.site-mode-tablet-icon { width: 14px; height: 16px; border-radius: 3px; }
.site-mode-tablet-icon::after {
  content: ""; position: absolute; bottom: 2px; left: calc(50% - 2px);
  width: 4px; height: 1px; background: currentColor;
}
.site-mode-desktop-icon { width: 16px; height: 11px; margin-bottom: 3px; border-radius: 2px; }
.site-mode-desktop-icon::after {
  content: ""; position: absolute; bottom: -4px; left: calc(50% - 3px);
  width: 6px; height: 3px; border-bottom: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.site-menu-links section { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e4ebf2; }
.site-menu-links h3 { margin: 0 8px 3px; color: #52637a; font-size: 13px; }
.site-menu-links a {
  box-sizing: border-box; display: flex; align-items: center; min-height: 44px; padding: 4px 8px;
  border-radius: 6px; color: #233c59; text-decoration: none;
}
.site-menu-levels { display: flex; flex-wrap: wrap; gap: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .site-menu[open] { animation: site-menu-slide-in 180ms ease-out; }
  @keyframes site-menu-slide-in { from { transform: translateX(100%); } }
}
.site-sidebar-links { margin-bottom: 32px; }
@media screen {
  html[data-site-mode="desktop"] .divtopmenu { display: none; }
  html[data-site-mode="touch"] .divleftside { display: none; }
  html[data-site-mode="touch"] .divtopmenu { display: block; padding: 0; background: #fff; }
  .divtopmenu > .divtopside { display: block; width: auto; padding: 0; text-align: left; }
  html[data-site-mode="touch"] .divcontent {
    box-sizing: border-box; float: none; width: 100%; max-width: none;
    min-width: 0; border: 0; padding: 0 10px 10px;
  }
  html[data-site-mode="touch"] .contentcontainer { min-width: 0; }
  html[data-site-mode="touch"] .home-layout-test .divcontent { padding: 0; }
  html[data-site-mode-fixed] .site-mode-switch { display: none; }
}
@media print {
  .site-topbar, .site-menu, .site-mode-switch { display: none; }
}
