/* ============================================
   Job Outreach Platform — Premium Dark Theme
   ============================================ */

:root {
    --bg: #0b0f1a;
    --bg-secondary: #111827;
    --surface: #1a1f2e;
    --surface-hover: #222839;
    --surface-alt: rgba(99, 102, 241, 0.08);
    --text: #e8eaf0;
    --text-secondary: #8b92a5;
    --muted: #5d6b80;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-strong: #a5b4fc;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-strong); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin-top: 0; font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.2rem; color: var(--text-secondary); }
p { margin-top: 0; color: var(--text-secondary); }
img { max-width: 100%; }

/* ============ TOPBAR (PUBLIC) ============ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.75rem 1.25rem;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.1rem; font-weight: 800; color: var(--text);
    text-decoration: none;
}
.brand-icon { font-size: 1.3rem; }
.brand-accent { color: var(--primary); }

.topnav-public { flex-direction: row; justify-content: flex-end; display: flex; width: auto; padding: 0; gap: 1rem; align-items: center; }
.btn-nav-signup {
    background: var(--primary) !important; color: #fff !important;
    padding: 0.5rem 1.1rem !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important;
    white-space: nowrap;
}
@media (max-width: 400px) {
    .topnav-public { gap: 0.5rem; }
    .btn-nav-signup { padding: 0.4rem 0.8rem !important; font-size: 0.85rem !important; }
    .topnav-public a:not(.btn-nav-signup) { font-size: 0.85rem; }
}

/* ============ APP LAYOUT (SIDEBAR + MAIN) ============ */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open {
    transform: translateX(0);
}

.sidebar-header { margin-bottom: 2rem; padding-left: 0.5rem; }
.sidebar-header .brand { font-size: 1.2rem; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
    transition: all var(--transition);
}

.sidebar-nav a:hover {
    background: var(--surface-alt); color: var(--text);
}
.sidebar-nav a.active {
    background: var(--surface-hover); color: var(--text); border-left: 3px solid var(--primary);
}

.sidebar-footer {
    display: flex; flex-direction: column; gap: 0.25rem;
    margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
}
.sidebar-footer a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 1rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem;
}
.sidebar-footer a:hover { background: var(--surface-alt); color: var(--text); }
.nav-logout { color: var(--danger) !important; }
.nav-logout:hover { background: var(--danger-bg) !important; }

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    margin-left: 0; /* default for mobile */
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky; top: 0; z-index: 40;
}

.header-search {
    position: relative;
    width: 300px;
}
.header-search input {
    width: 100%; padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.header-search::before {
    content: "🔍"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; opacity: 0.5;
}

.header-actions {
    display: flex; align-items: center; gap: 1.5rem;
}

.gmail-connected {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.gmail-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }

.avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--surface-hover);
    display: flex; align-items: center; justify-content: center; font-weight: bold; border: 1px solid var(--line);
}

.page-shell { padding: 2rem; max-width: 1400px; margin: 0 auto; width: 100%; }

/* ============ GRID LAYOUTS ============ */
.hero, .dashboard-grid, .content-grid { display: grid; gap: 1rem; }
.content-grid-full { grid-template-columns: 1fr !important; }

/* ============ CARDS ============ */
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); transition: border-color var(--transition);
}
.card:hover { border-color: var(--line-strong); }

.card-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}

/* ============ HERO ============ */
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, var(--primary-strong) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-copy p { font-size: 1.05rem; max-width: 42rem; }
.hero-workflow { margin-top: 1.25rem; }
.hero-workflow-title { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

.eyebrow {
    display: inline-block; margin-bottom: 0.75rem;
    padding: 0.4rem 0.8rem; border-radius: 999px;
    background: var(--surface-alt); color: var(--primary-strong);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; font-family: var(--font);
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--primary); }
.btn-sm { min-height: 34px; padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ============ METRICS ============ */
.metric {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.25rem; text-align: center; padding: 1.25rem;
}
.metric-icon { font-size: 1.5rem; }
.metric strong { font-size: 2rem; color: var(--primary-strong); font-weight: 800; }
.metric span { font-size: 0.85rem; color: var(--text-secondary); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem; }
.stat-card strong { font-size: 1.5rem; }

/* ============ FORMS ============ */
.form-grid { display: grid; gap: 1rem; }
.form-single { grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1 / -1; }

label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }

input, textarea, select {
    width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg-secondary);
    font: inherit; color: var(--text); font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 160px; resize: vertical; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b92a5' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ============ FILE UPLOAD ============ */
.file-upload-wrapper {
    min-height: 140px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.5rem;
    border: 2px dashed var(--line-strong); border-radius: var(--radius);
    background: var(--bg-secondary); color: var(--text-secondary);
    font-weight: 600; cursor: pointer; transition: all var(--transition);
    position: relative;
}
.file-upload-wrapper:hover { border-color: var(--primary); background: var(--surface-alt); }
.file-upload-wrapper input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; }
.upload-text span { color: var(--primary-strong); }

/* ============ LISTS & ITEMS ============ */
.stack { display: flex; flex-direction: column; gap: 0.6rem; }

.item-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg-secondary);
    transition: border-color var(--transition);
}
.item-row:hover { border-color: var(--line-strong); }
.item-info { flex: 1; min-width: 0; }
.item-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--surface);
    color: var(--text-secondary); font-size: 0.85rem; cursor: pointer;
    transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary-strong); background: var(--surface-alt); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

.list { margin: 0; padding-left: 1.2rem; color: var(--text-secondary); }
.ordered { list-style: decimal; }
.list li { margin-bottom: 0.4rem; }

/* ============ BADGES ============ */
.badge {
    display: inline-flex; padding: 0.2rem 0.6rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-sent { background: var(--success-bg); color: var(--success); }
.badge-failed { background: var(--danger-bg); color: var(--danger); }
.badge-queued { background: var(--surface-alt); color: var(--primary-strong); }
.badge-running { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-sending { background: var(--warning-bg); color: var(--warning); }

/* ============ ALERTS ============ */
.alert {
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500; margin-bottom: 1rem;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.2); }

/* ============ AUTH PAGES ============ */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 80px); }
.auth-card { width: min(100%, 480px); }
.auth-card h1 { text-align: center; margin-bottom: 0.25rem; }
.auth-subtitle { text-align: center; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; color: var(--text-secondary); }

/* ============ CAMPAIGN ============ */
.campaign-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.campaign-note { font-size: 0.82rem; text-align: center; margin-top: 1rem; color: var(--muted); }
.validation-box { padding: 1rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--line); margin-top: 1rem; }
.validation-row { display: flex; gap: 0.5rem; align-items: center; padding: 0.3rem 0; font-size: 0.88rem; }

/* ============ HISTORY TABLE ============ */
.history-table-wrapper { overflow-x: auto; margin-top: 0.75rem; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.history-table th {
    text-align: left; padding: 0.75rem 0.75rem;
    border-bottom: 2px solid var(--line-strong);
    color: var(--text-secondary); font-weight: 600; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.history-table td {
    padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line);
    color: var(--text); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-table tbody tr { transition: background var(--transition); }
.history-table tbody tr:hover { background: var(--surface-hover); }

/* ============ NEW DASHBOARD UI ============ */
.dashboard-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card-new {
    background: #161b22;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.metric-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.25rem;
}
.metric-card-value {
    font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 1rem;
}
.sparkline {
    height: 40px; width: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q10,30 20,10 T40,25 T60,5 T80,20 T100,10' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/cover;
}
.sparkline-cyan {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M0,25 Q15,5 30,15 T60,25 T80,10 T100,20' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/cover;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.queue-card, .intelligence-card {
    background: #161b22;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-title-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.card-title-row h3 { font-size: 1.1rem; margin: 0; }
.card-title-row a { font-size: 0.85rem; color: var(--text-secondary); }

.campaign-queue-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.campaign-queue-item:last-child { border-bottom: none; padding-bottom: 0; }

.cq-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.cq-title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.75rem;}
.cq-icon { width: 32px; height: 32px; background: var(--surface-hover); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.cq-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

.cq-progress-row { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; font-weight: 600; }
.progress-bar-bg { flex: 1; height: 6px; background: var(--surface-hover); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* Timeline */
.intelligence-timeline {
    position: relative;
    padding-left: 1.5rem;
}
.intelligence-timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-strong);
}

.timeline-item {
    position: relative; margin-bottom: 1.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -1.8rem; top: 0.2rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--text-secondary);
}
.dot-success { border-color: var(--success); }
.dot-danger { border-color: var(--danger); }

.timeline-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.timeline-time { font-size: 0.75rem; color: var(--muted); font-weight: normal; margin-left: 0.5rem; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.timeline-extra { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.75rem; color: var(--text-secondary); background: var(--surface); }

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    z-index: 9999; display: flex; flex-direction: column-reverse;
    gap: 0.5rem; pointer-events: none;
}
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1.2rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line-strong);
    color: var(--text); font-size: 0.88rem; font-weight: 500;
    box-shadow: var(--shadow); min-width: 280px; max-width: 420px;
    animation: slideIn 0.3s ease-out;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============ UTILITIES ============ */
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.dashboard-welcome p { max-width: 600px; }

/* ============ RESPONSIVE & MOBILE ============ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
    margin-right: 0.75rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile defaults */
.dashboard-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .main-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    .header-search {
        flex: 1;
        width: 100%;
        max-width: none;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .header-actions > a:not(.btn):not(.gmail-connected) {
        display: none; /* Hide non-essential links */
    }
    .gmail-connected {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

@media (min-width: 480px) {
    .dashboard-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        z-index: 50;
    }
    .main-wrapper {
        margin-left: 250px;
    }
    .menu-toggle-btn {
        display: none;
    }
    .sidebar-overlay {
        display: none !important;
    }
    
    .page-shell { padding: 1.5rem; }
    .menu-toggle { display: none; }
    .topbar { flex-wrap: nowrap; padding: 0.75rem 2rem; }
    .topnav { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 0.25rem; width: auto; padding: 0; }
    .topnav a { background: transparent; }
    .nav-user { border: none; padding: 0; margin: 0; margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid var(--line); }
    .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; min-height: 70vh; }
    .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
    .dashboard-grid-new { grid-template-columns: repeat(4, 1fr); }
    .dashboard-split { grid-template-columns: 2fr 1fr; }
    .content-grid { grid-template-columns: 1.2fr 0.8fr; }
    .section-span { grid-column: 1 / -1; }
    .form-grid:not(.form-single) { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .page-shell { padding: 2rem; }
}
