/* ===== Reset & Variables ===== */
:root {
    --bg:           #0d1117;
    --surface:      #161b22;
    --surface-2:    #21262d;
    --surface-3:    #2d333b;
    --border:       #30363d;
    --border-light: #3d444d;
    --text:         #e6edf3;
    --text-2:       #c9d1d9;
    --muted:        #7d8590;
    --primary:      #4493f8;
    --primary-dark: #1f6feb;
    --primary-glow: rgba(68,147,248,0.15);
    --danger:       #f85149;
    --danger-bg:    rgba(248,81,73,0.1);
    --success:      #3fb950;
    --success-bg:   rgba(63,185,80,0.1);
    --warn:         #d29922;
    --warn-bg:      rgba(210,153,34,0.1);
    --purple:       #bc8cff;
    --radius:       6px;
    --radius-lg:    10px;
    --shadow:       0 1px 3px rgba(0,0,0,0.3);
    --sidebar-w:    220px;
    --transition:   0.15s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--text); }

h1 { font-size: 1.5rem; font-weight: 600; }
h2 { font-size: 1.1rem; font-weight: 600; }
h3 { font-size: 0.95rem; font-weight: 600; }

code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.85em;
    background: var(--surface-3);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--purple);
}

.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warn    { color: var(--warn); }
.text-muted   { color: var(--muted); }

/* ===== App Layout (Sidebar) ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.sidebar-brand:hover { text-decoration: none; color: var(--text); }
.brand-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.nav-section {
    padding: 0.9rem 1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
    margin: 1px 0.4rem;
    border-radius: var(--radius);
}
.nav-item:hover { background: var(--surface-2); color: var(--text-2); text-decoration: none; }
.nav-item.active { background: var(--primary-glow); color: var(--primary); }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-icon { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }

.nav-item.nav-sub {
    padding-left: 2.2rem;
    font-size: 0.825rem;
    font-weight: 400;
    color: var(--muted);
}
.nav-item.nav-sub:hover { color: var(--text); }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.sidebar-user {
    font-size: 0.8rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Main Area ===== */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    width: 100%;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header h1 { font-size: 1.4rem; }
.page-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border-light); }

/* ===== Cards ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.card + .card { margin-top: 0; }
.card h2 { margin-bottom: 1rem; }
.card h3 { margin: 1rem 0 0.5rem; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
}
.card-header h2 { margin: 0; }

/* ===== Forms ===== */
.grid-form { display: grid; gap: 0.875rem; max-width: 680px; }

.form-label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}
.form-label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2);
    font-weight: 400;
}
.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* legacy support */
.grid-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.grid-form label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    width: 100%;
    transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea { resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--primary); }

.grid-form input, .grid-form select, .grid-form textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.grid-form input:focus, .grid-form select:focus, .grid-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.grid-form textarea { resize: vertical; }
.grid-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}
.grid-form fieldset legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.8rem; }
.grid-form fieldset label { margin: 0.3rem 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-light); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: white; }
.btn-success { background: rgba(63,185,80,0.15); border-color: var(--success); color: var(--success); }
.btn-success:hover { background: var(--success); color: var(--bg); }
.btn-danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.btn-warn:hover { background: var(--warn); color: var(--bg); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.btn-link { background: none; border-color: transparent; color: var(--muted); padding: 0.3rem 0.5rem; }
.btn-link:hover { background: var(--surface-2); color: var(--text); }
.btn-icon { padding: 0.35rem 0.5rem; }

/* ===== Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 500;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--surface-2);
}
.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.data-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.actions { display: flex; gap: 0.3rem; align-items: center; justify-content: flex-end; }

/* ===== Status Badges ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.status-pending   { background: rgba(125,133,144,0.15); color: var(--muted); }
.status-scheduled { background: rgba(188,140,255,0.15); color: var(--purple); }
.status-running   { background: rgba(68,147,248,0.15);  color: var(--primary);
    animation: pulse-dot 1.5s ease-in-out infinite; }
.status-done      { background: var(--success-bg);       color: var(--success); }
.status-error     { background: var(--danger-bg);        color: var(--danger); }
.status-cancelled { background: var(--warn-bg);          color: var(--warn); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Progress ===== */
.progress {
    height: 5px;
    background: var(--surface-3);
    border-radius: 99px;
    overflow: hidden;
}
.progress.big { height: 12px; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.4s ease; border-radius: 99px; }
.progress-bar.success { background: var(--success); }

/* ===== Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.alert-error  { background: var(--danger-bg);  border: 1px solid var(--danger);  color: #ffb3b0; }
.alert-warn   { background: var(--warn-bg);    border: 1px solid var(--warn);    color: #ffd9a3; }
.alert-info   { background: var(--primary-glow); border: 1px solid var(--primary); color: #a3c8ff; }
.alert-success{ background: var(--success-bg); border: 1px solid var(--success); color: #9be9a8; }

/* ===== Auth Pages ===== */
.auth-card {
    max-width: 380px;
    margin: 5rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.auth-card h1 { margin-bottom: 1.5rem; font-size: 1.35rem; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.55rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    font-family: inherit;
}
.auth-card input:focus { outline: none; border-color: var(--primary); }
.auth-card label { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; }

/* ===== Dashboard ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1rem;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.4;
}
.stat-card.stat-success::before { background: var(--success); }
.stat-card.stat-danger::before  { background: var(--danger);  }
.stat-card.stat-running::before { background: var(--primary); opacity: 1; }
.stat-card.stat-warn::before    { background: var(--warn);    }
.stat-card.stat-purple::before  { background: var(--purple);  }
.stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.stat-card.stat-success .stat-value { color: var(--success); }
.stat-card.stat-danger  .stat-value { color: var(--danger);  }
.stat-card.stat-running .stat-value { color: var(--primary); }
.stat-card.stat-warn    .stat-value { color: var(--warn);    }
.stat-card.stat-purple  .stat-value { color: var(--purple);  }
.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.stat-icon {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    font-size: 1.4rem;
    opacity: 0.15;
}

/* ===== Campaign Detail ===== */
.campaign-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.25rem;
}
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.meta-value { font-size: 0.9rem; color: var(--text-2); }

.counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.counter {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem;
    text-align: center;
}
.counter-label { color: var(--muted); font-size: 0.75rem; margin-bottom: 0.3rem; text-transform: uppercase; }
.counter-value { font-size: 1.75rem; font-weight: 700; }
.counter-ok  .counter-value { color: var(--success); }
.counter-err .counter-value { color: var(--danger); }

/* ===== Tracking Stats Cards ===== */
.track-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.track-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
}
.track-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.track-stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; text-transform: uppercase; }

/* ===== Email Preview ===== */
.email-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow: auto;
}
.email-preview.html { padding: 0; }
.email-preview iframe { width: 100%; min-height: 300px; border: 0; background: white; }

/* ===== Live Log ===== */
.account-list { list-style: none; padding: 0; margin: 0; }
.account-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--text-2); }
.account-list li:last-child { border-bottom: none; }

.live-log {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8rem;
}
.live-log li { padding: 0.3rem 0.75rem; border-bottom: 1px solid var(--border); }
.live-log li:last-child { border-bottom: none; }
.log-ok   { color: var(--success); }
.log-fail { color: var(--danger);  }
.log-warn { color: var(--warn); font-weight: 600; }

/* ===== Bulk test log ===== */
.bulk-test-log {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.bt-row {
    display: grid;
    grid-template-columns: 1.2rem 1fr 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.bt-row:last-child { border-bottom: none; }
.bt-ok  { border-left: 3px solid var(--success); }
.bt-fail { border-left: 3px solid var(--danger); }
.bt-status { font-weight: 700; }
.bt-ok  .bt-status { color: var(--success); }
.bt-fail .bt-status { color: var(--danger); }
.bt-name { font-weight: 500; }
.bt-user { font-size: 0.8rem; }
.bt-error { color: var(--danger); font-size: 0.78rem; grid-column: 2 / -1; padding-left: 1.8rem; }

/* ===== Account group selector ===== */
.acc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.acc-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.acc-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.acc-group-hdr {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    background: var(--surface-2);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}
.acc-group-hdr:hover { background: var(--surface-3); }
.acc-group-name { font-weight: 600; font-size: 0.9rem; }
.acc-group-meta { margin-left: auto; }
.acc-group-arrow { font-size: 0.75rem; color: var(--muted); }
.acc-group-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0;
}
.acc-item {
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.acc-item:last-child { border-bottom: none; }
.acc-item:hover { background: var(--surface-2); }
.acc-item span.muted { margin-left: auto; font-size: 0.78rem; }

/* ===== Send-test inline panel ===== */
.send-test-panel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    animation: slideDown 0.15s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #2ea043; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}
.page-info { color: var(--muted); font-size: 0.85rem; }

/* ===== Dialogs ===== */
.preview-dialog {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 500px;
    max-height: 80vh;
    overflow: auto;
}
.preview-dialog::backdrop { background: rgba(0,0,0,0.6); }
.preview-dialog h3 { margin-top: 0; margin-bottom: 1rem; }
.preview-dialog ul { font-family: monospace; font-size: 0.85rem; padding-left: 1.2rem; }

/* ===== Template Cards ===== */
.tmpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.tmpl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: border-color var(--transition);
}
.tmpl-card:hover { border-color: var(--border-light); }
.tmpl-card-title { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.tmpl-card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; }
.tmpl-card-footer { display: flex; gap: 0.4rem; justify-content: flex-end; }

/* ===== Tracking page ===== */
.track-filter-bar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.track-filter-bar .btn.active-filter {
    background: var(--primary-dark);
    border-color: var(--primary);
    color: white;
}

.check-cell { color: var(--success); font-size: 1rem; }
.dash-cell  { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.2s; }
    .sidebar.open { transform: none; }
    .main-area { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .counters { grid-template-columns: 1fr 1fr; }
    .track-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Misc utilities ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Import progress ===== */
.import-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
