:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #0284c7;
    --border: #e2e8f0;
    --code-bg: #f1f5f9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: #f8fafc;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sidebar .logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #38bdf8;
    display: block;
    margin-bottom: 0.4rem;
    text-decoration: none;
}
.sidebar .sub { font-size: 0.78rem; color: #94a3b8; margin-bottom: 2rem; display: block; }
.sidebar nav a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background-color: rgba(56, 189, 248, 0.15);
    color: #fff;
}
.workspace {
    flex: 1;
    padding: 2.5rem 3.5rem;
    max-width: 1080px;
}
.sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.header-block {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}
.header-block h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.header-block p { color: var(--text-secondary); font-size: 1rem; }
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-left: 4px solid var(--accent);
}
.metric-card .title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.metric-card .value { font-size: 1.35rem; font-weight: 700; margin-top: 0.3rem; color: var(--text-primary); }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: 1.5rem 0 2.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
th { background: #f1f5f9; color: var(--text-primary); font-weight: 600; }
td a { color: var(--accent); text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; }
pre { background: var(--code-bg); border: 1px solid var(--border); padding: 1.1rem; overflow-x: auto; margin: 1rem 0; }
.tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-family: sans-serif;
    font-weight: 600;
    border-radius: 3px;
}
footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.82rem; font-family: sans-serif; }
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; padding: 1.25rem; }
    .workspace { padding: 1.5rem; }
}
