html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.app {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: #09090b;
  color: #fafafa;
}

.app-sidebar {
  width: 240px;
  flex: 0 0 240px;
  min-width: 240px;
  max-width: 240px;
  border-right: 1px solid #27272a;
  background: #0c0c0e;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  overflow: hidden;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  text-decoration: none;
  color: #fafafa;
  flex-shrink: 0;
}

.app-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fb923c;
}

.app-brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-brand-text span {
  font-size: 11px;
  color: #71717a;
}

.app-nav-section {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #52525b;
  padding: 14px 10px 8px;
  flex-shrink: 0;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.app-nav a:hover {
  background: #18181b;
  color: #fafafa;
}

.app-nav a.active {
  background: rgba(249, 115, 22, 0.12);
  color: #fafafa;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.app-nav a .nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f46;
  flex-shrink: 0;
}

.app-nav a.active .nav-dot {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.app-nav a.soon {
  opacity: 0.45;
  pointer-events: none;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.page-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  color: #fafafa;
}

.app-main::-webkit-scrollbar {
  width: 8px;
}

.app-main::-webkit-scrollbar-track {
  background: transparent;
}

.app-main::-webkit-scrollbar-thumb {
  background-color: #3f3f46;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.app-main::-webkit-scrollbar-thumb:hover {
  background-color: #52525b;
}

@media (max-width: 768px) {
  .app-sidebar {
    width: 72px;
    flex: 0 0 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 16px 8px;
  }

  .app-brand-text,
  .app-nav-section,
  .app-nav a span.label {
    display: none;
  }

  .app-brand {
    justify-content: center;
    padding-bottom: 12px;
  }

  .app-nav a {
    justify-content: center;
    padding: 10px;
  }
}
