/* ============================================
   DLG AI 자문 — Common Stylesheet
   ============================================ */

/* --- Design Tokens (DLG Law Firm Branding) --- */
:root {
    --primary: #C8232C;
    --primary-hover: #A71D24;
    --primary-bg: #fef2f2;
    --accent: #2c3e50;
    --accent-light: #6B7C93;
    --success: #059669;
    --success-hover: #047857;
    --success-bg: #d1fae5;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-bg: #fee2e2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --bg: #f5f5f5;
    --card-bg: #fff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset + Typography --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.topbar {
    background: var(--card-bg);
    border-bottom: 2px solid var(--primary);
    padding: 0 32px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.topbar-brand:hover { text-decoration: none; }
.topbar-logo { height: 32px; }
.topbar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    border-left: 1px solid var(--border);
    padding-left: 10px;
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-link { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; }
.topbar-link:hover { color: var(--text); text-decoration: none; }

/* --- Sidebar --- */
.layout {
    display: flex;
    min-height: calc(100vh - 60px);
}
.sidebar {
    width: 220px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 16px 0;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-item:hover { background: var(--border-light); color: var(--text); text-decoration: none; }
.sidebar-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-divider { height: 1px; background: var(--border-light); margin: 12px 16px; }
.sidebar-group-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 16px 4px; font-weight: 600; }
.sidebar-toggle { display: none; background: none; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 4px 8px; margin-right: 8px; }
.main-content { flex: 1; min-width: 0; padding: 28px 24px; max-width: 1400px; }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -220px; top: 60px; z-index: 99; transition: left 0.2s; box-shadow: var(--shadow-md); }
    .sidebar.open { left: 0; }
    .sidebar-toggle { display: block; }
    .main-content { padding: 20px 16px; }
}

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0; }

/* --- Card --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.card-header {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header .count { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}
.badge-intake { background: #e0e7ff; color: #3730a3; }
.badge-uploaded { background: var(--warning-bg); color: #92400e; }
.badge-draft_generated { background: var(--info-bg); color: #1e40af; }
.badge-approved { background: var(--success-bg); color: #065f46; }
.badge-sent { background: #d1fae5; color: #065f46; }
.badge-rejected { background: var(--danger-bg); color: #991b1b; }
.badge-draft { background: var(--info-bg); color: #1e40af; }
.badge-generating { background: #fef3c7; color: #92400e; }
.badge-generating_failed { background: var(--danger-bg); color: #991b1b; }
.badge-send_failed { background: var(--danger-bg); color: #991b1b; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-hover); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* --- Forms --- */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,35,44,0.1);
}
.form-textarea { resize: vertical; min-height: 60px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-group { margin-bottom: 16px; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th {
    background: #f9fafb;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: #f9fafb; }
.table .case-link { color: var(--primary); font-weight: 500; }

/* --- Filter Tabs --- */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
    white-space: nowrap;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Search --- */
.search-wrap { margin-bottom: 16px; position: relative; }
.search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: #fff;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,35,44,0.1); }
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* --- Stat Cards --- */
.stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
    min-width: 120px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.15s;
    border: 2px solid transparent;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card.active { border-color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

/* --- Tabs (Case Detail) --- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}
.tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Case Detail Header --- */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.case-title { font-size: 1.3rem; font-weight: 700; }
.case-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.case-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Case Detail Grid --- */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

/* --- Info Rows --- */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }

/* --- Draft Viewer --- */
.draft-content {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-size: 0.88rem;
    line-height: 1.8;
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Draft Accordion */
.draft-accordion { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.draft-accordion-header {
    padding: 14px 20px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    border-bottom: 1px solid transparent;
}
.draft-accordion-header:hover { background: var(--border-light); }
.draft-accordion-header .arrow { font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s; }
.draft-accordion.open .draft-accordion-header { border-bottom-color: var(--border); }
.draft-accordion.open .draft-accordion-header .arrow { transform: rotate(90deg); }
.draft-accordion-body { display: none; padding: 20px; background: #fff; }
.draft-accordion.open .draft-accordion-body { display: block; }
.draft-version-title { font-weight: 600; flex: 1; }
.draft-date { color: var(--text-muted); font-size: 0.8rem; }

/* Diff */
.diff-add { background: var(--success-bg); text-decoration: underline; text-decoration-color: var(--success); }
.diff-del { background: var(--danger-bg); text-decoration: line-through; text-decoration-color: var(--danger); }
.diff-view { display: none; }
.diff-view.active { display: block; }
.original-view { display: block; }
.view-toggle-group { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.view-toggle-btn { padding: 6px 14px; font-size: 0.8rem; border: none; background: #fff; cursor: pointer; color: var(--text-muted); }
.view-toggle-btn.active { background: var(--primary); color: #fff; }

/* QA Flags */
.qa-flag { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 0.85rem; }
.qa-high { background: #fef2f2; border-left: 3px solid var(--danger); }
.qa-medium { background: var(--warning-bg); border-left: 3px solid var(--warning); }
.qa-low { background: #f0f9ff; border-left: 3px solid var(--info); }

/* --- Section Divider --- */
.section-divider {
    border-top: 1px solid var(--border);
    margin: 24px 0;
    position: relative;
}
.section-divider-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #fff;
    padding: 0 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Chat --- */
.chat-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
    margin-bottom: 12px;
}
.chat-msg { margin-bottom: 12px; }
.chat-role { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.chat-user .chat-text { background: var(--info-bg); padding: 10px 14px; border-radius: var(--radius); display: inline-block; max-width: 90%; }
.chat-assistant .chat-text { background: #fff; border: 1px solid var(--border); padding: 10px 14px; border-radius: var(--radius); display: inline-block; max-width: 90%; white-space: pre-wrap; }
.chat-form { display: flex; gap: 8px; }
.chat-form input[type="text"] { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }
.chat-form input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,35,44,0.1); }
.chat-form button { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.chat-form button:hover { background: var(--primary-hover); }
.chat-empty { text-align: center; color: var(--text-light); padding: 40px 20px; }
.chat-input-row { display: flex; gap: 8px; align-items: flex-start; }

/* --- Email Items --- */
.email-item { border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 0.9rem; overflow: hidden; }
.email-inbound { background: #f0f9ff; border-left: 3px solid var(--info); }
.email-outbound { background: #f0fdf4; border-left: 3px solid #22c55e; }
.email-header { padding: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; user-select: none; }
.email-header:hover { filter: brightness(0.97); }
.email-header .arrow { font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s; flex-shrink: 0; }
.email-item.open .email-header .arrow { transform: rotate(90deg); }
.email-header .subject { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-header .meta-inline { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; white-space: nowrap; }
.email-body { display: none; padding: 0 12px 12px; }
.email-item.open .email-body { display: block; }
.email-body .meta-detail { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; line-height: 1.6; }
.email-body .meta-detail span { color: var(--text); }
.email-body-text { white-space: pre-wrap; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; background: #fff; padding: 12px; border-radius: 4px; border: 1px solid var(--border); }

/* --- File Items --- */
.file-item { padding: 8px 0; font-size: 0.88rem; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.file-item:last-child { border-bottom: none; }
.file-item a { color: var(--primary); }

/* --- Event Log --- */
.event-item { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
.event-item:last-child { border-bottom: none; }
.event-time { color: var(--text-light); font-size: 0.8rem; margin-top: 2px; }

/* --- Status Banners --- */
.banner { padding: 14px 20px; border-radius: var(--radius); font-weight: 600; text-align: center; margin-bottom: 16px; }
.banner-success { background: var(--success-bg); color: #065f46; }
.banner-danger { background: var(--danger-bg); color: #991b1b; }
.banner-danger .comment { font-weight: 400; margin-top: 6px; font-size: 0.9rem; }

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(40px); } }

/* --- Spinner --- */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
.spinner-dark { border-color: rgba(0,0,0,0.1); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }

/* --- Login Page --- */
.login-wrap { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f5f5f5; }
.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 400px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary);
}
.login-logo { display: block; margin: 0 auto 24px; height: 40px; }
.login-title { font-size: 1.2rem; text-align: center; margin-bottom: 6px; color: var(--accent); }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }

/* --- Upload Page --- */
.upload-container { max-width: 720px; margin: 0 auto; padding: 32px 20px; }
.upload-steps { display: flex; gap: 0; margin-bottom: 32px; justify-content: center; }
.upload-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); padding: 8px 16px; }
.upload-step.active { color: var(--primary); font-weight: 600; }
.upload-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
}
.upload-step.active .upload-step-num { background: var(--primary); color: #fff; }
.upload-step-arrow { color: var(--border); margin: 0 4px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; font-size: 0.9rem; }
.radio-group { display: flex; gap: 20px; margin-top: 8px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; font-size: 0.9rem; }

.file-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.file-area:hover { border-color: var(--primary); }
.file-area input[type="file"] { display: none; }
.hint { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* --- Collapsible --- */
.collapsible-header { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.collapsible-header .arrow { font-size: 0.65rem; color: var(--text-light); transition: transform 0.2s; }
.collapsible.open .collapsible-header .arrow { transform: rotate(90deg); }
.collapsible-body { display: none; }
.collapsible.open .collapsible-body { display: block; }

/* --- Pulsing Button --- */
.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,35,44,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(200,35,44,0); }
}

/* --- Confirm Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.15s ease;
}
.modal-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.2s ease;
}
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.modal-icon-warn { background: var(--warning-bg); }
.modal-icon-success { background: var(--success-bg); }
.modal-icon-danger { background: var(--danger-bg); }
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.modal-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions .btn { min-width: 80px; }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }

/* --- Utilities --- */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.fw-600 { font-weight: 600; }
.hidden { display: none; }
