body.app-shell {
  --app-staging-height: 0px;
  --app-topbar-height: 36px;
  padding-top: calc(var(--app-staging-height) + var(--app-topbar-height));
}
body.app-shell.is-staging { --app-staging-height: 32px; }
body.app-shell > aside.fixed { top: calc(var(--app-staging-height) + var(--app-topbar-height)); }
body.app-shell > aside.w-16 { top: var(--app-staging-height); }
.app-topbar {
  position: fixed;
  top: var(--app-staging-height);
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--app-topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181818;
  border: 0;
}
.app-mode-nav { display: flex; align-items: center; gap: 4px; }
.app-mode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #f2f5f8;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.app-mode-link[aria-current="page"] { background: #232826; color: #a6f7af; }
.app-mode-link:hover { background: #232826; color: #a6f7af !important; }
.app-mode-link:focus-visible { outline: 2px solid #45a465; outline-offset: 2px; }
.app-topbar-brand { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 36px; color: #a9fbb1; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-size: 20px; line-height: 20px; }
.app-topbar-brand span { font-size-adjust: none; }
.app-topbar-brand:focus-visible { outline: 2px solid #45a465; outline-offset: -2px; }
.app-topbar-database { position: absolute; left: 12px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(50% - 80px); min-width: 0; padding: 4px 6px; border: 1px solid rgb(40 43 48 / 55%); border-radius: 4px; color: #9ba3b4; font-size: 11px; font-weight: 600; line-height: 16px; }
.app-topbar-database svg { width: 13px; height: 13px; flex-shrink: 0; }
.app-topbar-database span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-topbar-database:hover { background: #222325; color: #a9fbb1; }
.app-topbar-database:focus-visible { outline: 2px solid #45a465; outline-offset: 2px; }
.app-sidebar-toggle { position: absolute; left: 6px; top: 0; display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #4d5068; cursor: pointer; }
.app-sidebar-toggle svg { width: 15px; height: 15px; }
.app-sidebar-toggle:hover { background: #222325; color: #a9fbb1; }
.app-sidebar-toggle:focus-visible { outline: 2px solid #45a465; outline-offset: -2px; }
@media (min-width: 1024px) {
  .app-sidebar-toggle { display: flex; }
  .app-topbar-with-sidebar-toggle .app-topbar-database { left: 48px; max-width: calc(50% - 116px); }
}
.app-system-menu { position: absolute; top: 0; right: 12px; }
.app-system-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; cursor: pointer; list-style: none; border-radius: 4px; color: #4d5068; }
.app-system-toggle::-webkit-details-marker { display: none; }
.app-system-toggle svg { width: 15px; height: 15px; }
.app-system-toggle:hover, .app-system-menu[open] > .app-system-toggle { background: #222325; color: #a9fbb1; }
.app-system-toggle:focus-visible { outline: 2px solid #45a465; outline-offset: -2px; }
.app-topbar .app-system-panel { position: absolute; right: 0; top: 100%; width: 256px; max-width: calc(100vw - 24px); max-height: calc(100dvh - var(--app-staging-height) - var(--app-topbar-height) - 8px); overflow-y: auto; background: #0b0e13 !important; border-color: var(--poker-border) !important; color: var(--poker-text); box-shadow: 0 24px 60px rgb(0 0 0 / 50%); }
.app-system-panel a { color: #e8edf3; font-size: 12.4px; }
.app-system-panel a svg { color: #45a4657a; }
.app-system-panel a:hover { background: var(--poker-active-soft) !important; color: var(--poker-active) !important; }
body.analytics-shell > aside.analytics-icon-strip { background: #171717 !important; border: 0 !important; }
.analytics-icon-strip > nav { padding-top: 0; gap: 0; }
.analytics-icon-strip > .analytics-quick-nav { margin-top: 8px; }
body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 !important; border: 0; border-radius: 4px; color: #4d5068 !important; transform: none; }
body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a svg { width: 15px; height: 15px; color: #4d5068 !important; }
body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a:hover, body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a[aria-current="page"] { background: #222325 !important; color: #a9fbb1 !important; }
body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a:hover svg, body.analytics-shell .analytics-icon-strip .analytics-quick-nav > a[aria-current="page"] svg { color: #a9fbb1 !important; }
.analytics-quick-nav > a:focus-visible { outline: 2px solid #45a465; outline-offset: -2px; }
.analytics-icon-strip > div:last-child { padding: 8px 0; gap: 0; border: 0; }
.analytics-icon-strip > div > :is(a, button), .analytics-icon-strip > nav > details > summary { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0 !important; border-radius: 4px; background: transparent !important; color: #4d5068 !important; }
body.analytics-shell .analytics-icon-strip > div > :is(a, button) svg, body.analytics-shell .analytics-icon-strip > nav > details > summary svg { width: 15px; height: 15px; color: #4d5068 !important; }
.analytics-icon-strip > div > :is(a, button):hover, .analytics-icon-strip > nav > details > summary:hover { background: #222325 !important; color: #a9fbb1 !important; }
body.analytics-shell .analytics-icon-strip > div > :is(a, button):hover svg, body.analytics-shell .analytics-icon-strip > nav > details > summary:hover svg { color: #a9fbb1 !important; }
.analytics-icon-strip > div > :is(a, button):focus-visible, .analytics-icon-strip > nav > details > summary:focus-visible { outline: 2px solid #45a465; outline-offset: -2px; }
body.analytics-shell > .analytics-sidebar[hidden] { display: none !important; }
