:root {
  --home-sidebar-bg: #f4f4f0;
  --home-sidebar-line: #e9e5dd;
  --home-sidebar-text: #223426;
  --home-sidebar-green-900: #0f4c33;
  --home-sidebar-green-800: #156140;
}

:is(.unified-shell,.dashboard-shell,.scene-page,.lesson-shell,.grammar-shell,.shell,.learn-shell,.culture-shell) {
  min-height: 100vh;
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) !important;
}

:is(.unified-main) {
  min-width: 0;
}

:is(.dashboard-shell,.scene-page,.lesson-shell,.grammar-shell,.shell,.learn-shell,.culture-shell) {
  grid-template-columns: 220px minmax(0, 1fr) !important;
}

.home-app .dashboard-shell {
  width: min(1520px, calc(100vw - 24px));
  max-width: none;
  margin: 0 auto 0 0;
  padding-left: 48px;
  grid-template-columns: 180px minmax(0, 1fr) !important;
  column-gap: 56px;
}

.home-app .dashboard-sidebar {
  width: 180px;
  padding: 12px 10px 18px !important;
}

:is(.dashboard-sidebar,.scene-page-sidebar,.lesson-sidebar,.grammar-sidebar,.rail,.learn-rail,.culture-rail,.video-page-sidebar,.sidebar) {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 12px 14px 18px !important;
  background: var(--home-sidebar-bg) !important;
  border-right: 1px solid var(--home-sidebar-line) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.site-nav-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.site-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 12px;
}

.site-nav-brand img {
  width: 170px;
  height: auto;
  display: block;
}

.site-nav-subtitle {
  margin-top: 10px;
  color: #7b8078;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.site-nav-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0 14px;
  background: var(--home-sidebar-line);
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.site-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--home-sidebar-text);
  font-size: 14px;
  line-height: 44px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav-item:hover,
.site-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  outline: none;
}

.site-nav-item.is-active {
  background: rgba(232, 246, 236, 0.95);
  border-left: 4px solid var(--home-sidebar-green-800);
  padding-left: 14px;
  color: var(--home-sidebar-green-900);
}

.site-nav-icon {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
}

.site-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-nav-daily-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #03271a 0%, #1b3d2f 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(3, 39, 26, 0.16);
}

.site-nav-daily-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  :is(.unified-shell,.dashboard-shell,.scene-page,.lesson-shell,.grammar-shell,.shell,.learn-shell,.culture-shell) {
    grid-template-columns: 1fr !important;
  }

  .home-app .dashboard-shell {
    width: 100%;
    margin: 0;
    padding-left: 0;
    column-gap: 0;
    grid-template-columns: 1fr !important;
  }

  :is(.dashboard-sidebar,.scene-page-sidebar,.lesson-sidebar,.grammar-sidebar,.rail,.learn-rail,.culture-rail,.video-page-sidebar,.sidebar) {
    display: none !important;
  }
}
