/**
 * 星河 AI V2 — 宏观布局（对齐 xhai.tv）
 */

#app-root {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: transparent;
  color: var(--text-primary);
}

#sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8, 9, 14, 0.58);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: transparent;
}

@media (max-width: 720px) {
  body.xh-secondary-page-open #sidebar {
    display: none;
  }

  body.xh-secondary-page-open #main-viewport {
    width: 100vw;
    flex: 0 0 100vw;
  }
}
