:root {
  color-scheme: dark;
  --bg: #111316;
  --panel: #191d22;
  --panel-alpha: rgba(25, 29, 34, 0.92);
  --panel-2: #20262d;
  --text: #f4f7fb;
  --muted: #9aa5b1;
  --line: #303842;
  --accent: #66d9c3;
  --accent-text: #07100e;
  --bg-glow-a: rgba(102, 217, 195, 0.12);
  --bg-glow-b: rgba(218, 95, 95, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-alpha: rgba(255, 255, 255, 0.94);
  --panel-2: #edf2f7;
  --text: #151a21;
  --muted: #5c6875;
  --line: #d7e0ea;
  --accent: #18b39a;
  --accent-text: #061412;
  --bg-glow-a: rgba(24, 179, 154, 0.16);
  --bg-glow-b: rgba(219, 91, 91, 0.12);
  --shadow: 0 18px 56px rgba(41, 52, 65, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, var(--bg-glow-a), transparent 34%),
    linear-gradient(225deg, var(--bg-glow-b), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar,
.panel {
  background: var(--panel-alpha);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 800;
}

.nav-link:hover {
  filter: brightness(1.06);
}

.nav-link.active {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
}

.content {
  display: flex;
}

.home-stack {
  display: grid;
  gap: 18px;
  width: 100%;
}

.panel {
  width: 100%;
  min-height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel h2 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.9;
}

.intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.action-link {
  min-width: 220px;
  justify-content: center;
}

.hint {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: var(--text);
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 18px;
  }

  .panel {
    min-height: 320px;
    justify-content: flex-start;
  }
}
