/* Base — Reset, Variables, Typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-primary: #0d1117; --bg-secondary: #161b22; --bg-tertiary: #1c2128;
  --bg-hover: #21262d; --bg-active: #2d333b;
  --border-color: #30363d; --border-color-subtle: #21262d;
  --text-primary: #e6edf3; --text-secondary: #7d8590; --text-tertiary: #484f58;
  --accent: #f38024; --accent-hover: #ff9a3d; --accent-subtle: rgba(243,128,36,0.12);
  --success: #3fb950; --success-subtle: rgba(63,185,80,0.12);
  --danger: #f85149; --danger-subtle: rgba(248,81,73,0.12);
  --warning: #d29922; --warning-subtle: rgba(210,153,34,0.12);
  --info: #58a6ff; --info-subtle: rgba(88,166,255,0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3); --shadow-md: 0 3px 8px rgba(0,0,0,0.35); --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --sidebar-width: 256px; --topbar-height: 56px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --transition: 150ms cubic-bezier(0.4,0,0.2,1);
}
[data-theme="light"] {
  --bg-primary: #f6f8fa; --bg-secondary: #fff; --bg-tertiary: #f0f2f5;
  --bg-hover: #e8eaed; --bg-active: #d8dde2;
  --border-color: #d0d7de; --border-color-subtle: #e8eaed;
  --text-primary: #1f2328; --text-secondary: #656d76; --text-tertiary: #8c959f;
  --accent: #d96e1a; --accent-hover: #f38024; --accent-subtle: rgba(217,110,26,0.08);
  --success: #1a7f37; --success-subtle: rgba(26,127,55,0.08);
  --danger: #cf222e; --danger-subtle: rgba(207,34,46,0.08);
  --warning: #9a6700; --warning-subtle: rgba(154,103,0,0.08);
  --info: #0969da; --info-subtle: rgba(9,105,218,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06); --shadow-md: 0 3px 8px rgba(0,0,0,0.1); --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}
html, body { height: 100%; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
code, pre { font-family: var(--font-mono); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
#app { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; background: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform var(--transition); z-index: 100; }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.content { flex: 1; overflow-y: auto; padding: 24px 32px; }
@media (max-width: 768px) { .sidebar { position: fixed; left: 0; top: 0; height: 100%; transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .content { padding: 16px; } }
