/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
    --bg:           #f1f5f9;
    --surface:      #ffffff;
    --surface-2:    #f8fafc;
    --border:       #e2e8f0;
    --border-2:     #cbd5e1;
    --primary:      #3b82f6;
    --primary-dark: #2563eb;
    --primary-light:#eff6ff;
    --text:         #1e293b;
    --text-sub:     #64748b;
    --text-muted:   #94a3b8;
    --green:        #10b981;
    --green-light:  #ecfdf5;
    --red:          #ef4444;
    --red-light:    #fef2f2;
    --orange:       #f59e0b;
    --orange-light: #fffbeb;
    --purple:       #8b5cf6;
    --purple-light: #f5f3ff;
    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    14px;
    --shadow:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --transition:   150ms ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Top navbar ──────────────────────────────────────────────────────────── */
.topnav {
    height: 60px;
    background: var(--primary);
    background-image: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    border-bottom: none;
    display: flex; align-items: center;
    padding: 0 32px;
    position: sticky; top: 0; z-index: 100;
    gap: 0;
}

.logo-mark {
    width: 40px; height: 40px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.logo-text {
    font-size: 16px; font-weight: 700;
    color: #fff; letter-spacing: -0.3px;
    margin-left: 10px; margin-right: 36px;
    white-space: nowrap;
}

.topnav-links {
    display: flex; align-items: center; gap: 2px;
    flex: 1;
}

.nav-link {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
}

.nav-link svg { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.nav-link.active svg, .nav-link:hover svg { opacity: 1; }

.topnav-right {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto;
}

.icon-btn {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,0.85);
    font-size: 15px;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-1px);
}

.nav-divider {
    width: 1px; height: 20px;
    background: rgba(255,255,255,0.12);
    margin: 0 8px;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; align-items: center; }

/* ── Page body — centered container ─────────────────────────────────────── */
.page-body {
    width: 100%;
    max-width: 1280px;
    padding: 28px clamp(16px, 4vw, 40px);
    flex: 1;
}

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}

.page-header-title { font-size: 20px; font-weight: 700; color: var(--text); }
.page-header-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.stat-icon-wrap {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-wrap.blue   { background: var(--primary-light); }
.stat-icon-wrap.green  { background: var(--green-light); }
.stat-icon-wrap.orange { background: var(--orange-light); }
.stat-icon-wrap.purple { background: var(--purple-light); }

.stat-body { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; line-height: 1.2; }

.stat-footer {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px; font-size: 12px;
}

.change { display: flex; align-items: center; gap: 3px; font-weight: 600; }
.change.up   { color: var(--green); }
.change.down { color: var(--red); }
.period { color: var(--text-muted); }

/* ── 2-col grid ──────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 16px 20px; }

/* ── Agent bar ───────────────────────────────────────────────────────────── */
.agent-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.agent-row:last-child { border-bottom: none; }

.agent-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}

.agent-name { flex: 1; font-size: 13px; font-weight: 500; }
.agent-pct  { font-size: 12px; color: var(--text-muted); width: 36px; text-align: right; }

.bar-track {
    flex: 2;
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 600ms ease;
}

/* ── Commit list ─────────────────────────────────────────────────────────── */
.commit-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.commit-row:last-child { border-bottom: none; }

.commit-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.commit-info { flex: 1; min-width: 0; }
.commit-msg { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commit-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11.5px; font-weight: 600;
    flex-shrink: 0;
}

.badge-blue   { color: var(--primary);  background: var(--primary-light); }
.badge-green  { color: var(--green);    background: var(--green-light);   }
.badge-red    { color: var(--red);      background: var(--red-light);     }
.badge-orange { color: var(--orange);   background: var(--orange-light);  }
.badge-gray   { color: var(--text-sub); background: var(--surface-2);  border: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer; border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
    background: var(--surface);
    color: var(--text-sub);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }

.btn-ghost { background: transparent; color: var(--text-sub); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary);
    color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Login ───────────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.login-left {
    flex: 1;
    background: var(--primary);
    background-image: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -100px; right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -80px; left: -80px;
}

.login-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 48px;
    position: relative; z-index: 1;
}

.login-brand-icon {
    width: 120px; height: 120px;
    background: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.login-brand-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.login-brand-name { font-size: 22px; font-weight: 700; color: #fff; }

.login-headline {
    font-size: 32px; font-weight: 700;
    color: #fff; line-height: 1.3;
    margin-bottom: 16px;
    position: relative; z-index: 1;
    text-align: center;
}

.login-desc {
    font-size: 15px; color: rgba(255,255,255,0.75);
    text-align: center; line-height: 1.7;
    max-width: 380px;
    position: relative; z-index: 1;
}

.login-right {
    width: 480px;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 56px;
    background: var(--surface);
}

.login-form-wrap { width: 100%; }

.login-title   { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.login-subtitle { font-size: 13.5px; color: var(--text-muted); margin-bottom: 36px; }

.btn-login {
    width: 100%;
    padding: 13px;
    font-size: 14px; font-weight: 600;
    border: none; border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 1px 2px rgba(59,130,246,0.3);
}

.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
    transform: translateY(-1px);
}

.btn-login:active { transform: scale(0.99); }

.login-info {
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px; color: var(--text-muted);
    line-height: 1.6;
}

/* ── Blazor error ────────────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #fff;
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    bottom: 16px; left: 16px; right: 16px;
    box-shadow: var(--shadow-md);
    display: none;
    padding: 14px 20px;
    position: fixed; z-index: 1000;
    font-size: 13px; color: var(--text);
}

#blazor-error-ui .dismiss {
    cursor: pointer; position: absolute;
    right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

.td-muted { color: var(--text-muted); font-size: 12px; }
.td-mono  { font-family: 'Fira Code', 'Consolas', monospace; font-size: 12px; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb-nav {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-nav a { color: var(--text-sub); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-2); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Repo card ───────────────────────────────────────────────────────────── */
.repo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
    text-decoration: none; color: inherit;
}

.repo-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.repo-icon {
    width: 42px; height: 42px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.repo-info { flex: 1; min-width: 0; }
.repo-name { font-size: 14px; font-weight: 600; color: var(--text); }
.repo-url  {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}

.repo-stats { display: flex; gap: 16px; flex-shrink: 0; }
.repo-stat  { text-align: center; }
.repo-stat-value { font-size: 15px; font-weight: 700; color: var(--text); }
.repo-stat-label { font-size: 11px; color: var(--text-muted); }

/* ── Commit detail ───────────────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.detail-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { width: 130px; color: var(--text-muted); flex-shrink: 0; font-size: 12.5px; padding-top: 1px; }
.detail-value { color: var(--text); flex: 1; }

.sha-block {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    color: var(--text-sub);
    display: inline-block;
}

.file-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--surface-2);
    margin-bottom: 6px;
}

.file-name { flex: 1; font-family: 'Fira Code', 'Consolas', monospace; font-size: 12px; }
.file-lang { font-size: 11px; color: var(--text-muted); }

/* ── Donut chart (CSS only) ──────────────────────────────────────────────── */
.donut-wrap { display: flex; align-items: center; gap: 24px; }

.donut {
    width: 100px; height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--text-sub); }
.legend-pct { font-weight: 600; color: var(--text); }

/* ── Role badge ──────────────────────────────────────────────────────────── */
.role-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11.5px; font-weight: 600;
}

.role-admin      { background: #fef3c7; color: #d97706; }
.role-supervisor { background: #e0e7ff; color: #6366f1; }
.role-user       { background: var(--primary-light); color: var(--primary); }

/* ── Topbar scope banner (admin) ─────────────────────────────────────────── */
.scope-banner {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: 12px; color: #92400e;
}

/* ── GitHub link ─────────────────────────────────────────────────────────── */
.gh-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all var(--transition);
    text-decoration: none;
}

.gh-link:hover { border-color: var(--text-sub); color: var(--text); background: var(--surface-2); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 24px;
    color: var(--text-muted);
    text-align: center;
    gap: 8px;
}

.empty-icon { font-size: 36px; margin-bottom: 8px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-sub); }
.empty-desc  { font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Large screens — 4 stat columns, side-by-side charts */
@media (max-width: 1200px) {
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .three-col   { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* Medium screens — single column for most grids */
@media (max-width: 900px) {
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .two-col     { grid-template-columns: 1fr; }
    .three-col   { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* Small screens — phones */
@media (max-width: 600px) {
    .stats-grid  { grid-template-columns: 1fr; }
    .topnav-links .nav-link span { display: none; }   /* icon-only nav */
    .logo-text   { margin-right: 12px; }
    .login-left  { display: none; }
    .login-right { width: 100%; padding: 32px 20px; }
}

/* ── Settings Page ───────────────────────────────────────────────────────── */
.api-key-input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition);
}

.api-key-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

.btn-danger {
    background: var(--red);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert-error {
    padding: 12px 16px;
    background: var(--red-light);
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-size: 14px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Language switcher ───────────────────────────────────────────────────── */
.lang-switcher select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    min-width: 38px;
    text-align: center;
}
.lang-switcher select:hover { background: rgba(255,255,255,0.25); }
.lang-switcher select option { background: var(--primary-dark); color: #fff; font-weight: 400; }

/* ── Prose (tutorial/docs pages) ─────────────────────────────────────────── */
.prose { line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.prose h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.prose p { margin: 0 0 12px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 12px 0; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }
.prose code { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; }
.prose :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.prose th { background: var(--surface-2); font-weight: 600; text-align: left; padding: 8px 12px; border: 1px solid var(--border); }
.prose td { padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--surface-2); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose .note { background: var(--primary-light); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; margin: 12px 0; font-size: 13px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.prose strong { font-weight: 600; }
.prose a { color: var(--primary); }
.prose a:hover { color: var(--primary-dark); }
