/* ============================================================
   LEAD DISCOVERY — MAIN STYLESHEET
   ============================================================

   Purpose
   -------
   Global styling for the Lead Discovery application.

   Main sections
   -------------
   1. Global / Reset
   2. Header + Navigation
   3. General Cards
   4. Page / Search Layout
   5. Search Results
   6. Dashboard Cards
   7. Person Lookup
   8. Login
   9. Campaign Workspace
   10. Email Workspace
   11. Campaign Dashboard
   12. Import Methods
   13. Status Indicators

   Handover
   --------
   This stylesheet is primarily presentation.
   Avoid changing layout structure unless the corresponding
   HTML/JavaScript workflow is understood first.

   ============================================================ */


/* ============================================================
   1. GLOBAL RESET
   ============================================================ */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f9;

    color: #333;

}


/* ============================================================
   2. HEADER
   ============================================================ */

header {

    background: #1f3b5b;

    color: white;

    padding: 20px 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.logo {

    font-size: 24px;

    font-weight: bold;

}


.title {

    font-size: 18px;

}

.header-actions,
.header-email-control {
    display: flex;
    align-items: center;
}.header-actions {
    gap: 18px;
}

.header-email-control {
    min-height: 36px;
    gap: 9px;
    padding: 6px 12px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
}

.header-email-control .header-connection-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: #94a3b8;
    border-radius: 50%;
}

.header-email-control.connected .header-connection-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .14);
}

.header-email-control.needs-attention .header-connection-dot {
    background: #d97706;
}

.header-email-button {
    padding: 4px 10px;
    color: #1e293b;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.header-email-button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ============================================================
   3. NAVIGATION
   ============================================================ */

nav,
.app-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.nav-spacer {
    flex: 1;
}

.header-email-control {
    display: flex;
    justify-self: end;
    width: fit-content;
}

nav button,
.nav-links button,
nav a.nav-admin-btn,
.nav-links a.nav-admin-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: var(--slate-700);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}

nav button:hover,
.nav-links button:hover,
nav a.nav-admin-btn:hover,
.nav-links a.nav-admin-btn:hover {
    background: #e8edf5;
    color: var(--slate-950);
}

nav button.active,
.nav-links button.active,
nav a.nav-admin-btn.active,
.nav-links a.nav-admin-btn.active {
    background: #1f3b5b;
    color: white;
}

.nav-admin-badge {
    background: #ef4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-left: 2px;
}

/* ============================================================
   4. GENERAL PAGE LAYOUT
   ============================================================ */

main {

    padding: 50px;

}


.page {

    display: none;

}


h2 {

    text-align: center;

    margin-bottom: 40px;

}


/* ============================================================
   5. GENERAL CARD LAYOUT
   ============================================================ */

.cards {

    display: flex;

    justify-content: center;

    gap: 30px;

}


.card {

    width: 280px;

    background: white;

    border-radius: 12px;

    padding: 30px;

    text-align: center;

    cursor: pointer;

    transition: 0.25s;

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);

}


.card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.15);

}


.icon {

    font-size: 50px;

    margin-bottom: 20px;

}


.card h3 {

    margin-bottom: 15px;

}


/* ============================================================
   6. FOOTER
   ============================================================ */

footer {

    position: fixed;

    bottom: 0;

    width: 100%;

    background: white;

    border-top: 1px solid #ddd;

    padding: 15px;

    display: flex;

    justify-content: space-around;

}


/* ============================================================
   7. SEARCH CONTAINER
   ============================================================ */

.search-container {

    max-width: 700px;

    margin: auto;

    background: white;

    padding: 35px;

    border-radius: 12px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);

}


.subtitle {

    text-align: center;

    margin-bottom: 35px;

    color: #666;

}


.search-container label {

    display: block;

    margin-top: 18px;

    margin-bottom: 6px;

    font-weight: bold;

}


.search-container input[type=text] {

    width: 100%;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #ccc;

}


.search-container button {

    margin-top: 30px;

    width: 100%;

    padding: 14px;

    border: none;

    background: #1f3b5b;

    color: white;

    border-radius: 8px;

    cursor: pointer;

}

/* ============================================================
   8. PERSON / ROCKETREACH SEARCH CARDS
   ============================================================ */

.person-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    border: 2px solid transparent;
    transition: background-color 0.15s, border-color 0.15s;
}

.person-card.selected,
.person-card:has(.person-select:checked),
.person-card:has(.rocketreach-review-checkbox:checked) {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.person-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.person-header input[type="checkbox"] {
    margin-top: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.person-title {
    color: #444;
    margin-top: 6px;
}

.person-company {
    font-weight: bold;
    color: #1f3b5b;
}

.person-location {
    margin-top: 18px;
    color: #666;
}

.email-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    margin-top: 8px;
}

.email-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
    min-width: 0;
    white-space: nowrap;
}

.email-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.email-address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.person-links {
    margin-top: 18px;
}

.person-links a {
    color: #2563eb;
    text-decoration: none;
}

.person-links a:hover {
    text-decoration: underline;
}

.person-status {
    margin-top: 18px;
    font-size: .9rem;
    color: #666;
}

/* ============================================================
   9. SEARCH RESULTS TOOLBAR
   ============================================================ */

#results-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    flex-wrap: wrap;

    margin-top: 30px;

}

.results-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 8px;

}

.results-actions button {

    min-height: 38px;

    border: 1px solid #d8e0ea;

    background: #fff;

    color: #1f3b5b;

    padding: 10px 16px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);

}

.results-actions button:hover:not(:disabled) {

    border-color: #9fb3c8;

    background: #f8fafc;

}

#add-to-campaign {

    background: #1f3b5b;

    border-color: #1f3b5b;

    color: white;

}

#add-to-campaign:hover:not(:disabled) {

    background: #172d46;

    border-color: #172d46;

}

.results-actions button:disabled {

    background: #f1f5f9;

    border-color: #e2e8f0;

    color: #94a3b8;

    cursor: not-allowed;

    box-shadow: none;

}


/* ============================================================
   10. DASHBOARD CARDS
   ============================================================ */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap: 20px;

    margin-bottom: 35px;

}


.dashboard-card {

    background: white;

    border-radius: 12px;

    padding: 25px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.08);

    margin-bottom: 25px;

}


.dashboard-card h3 {

    margin-bottom: 15px;

}


.big-number {

    display: block;

    font-size: 42px;

    font-weight: bold;

    color: #1f3b5b;

}


.dashboard-card button {

    margin-top: 20px;

    padding: 12px 20px;

    border: none;

    background: #1f3b5b;

    color: white;

    border-radius: 8px;

    cursor: pointer;

}


.section-heading {

    text-align: center;

    margin: 40px 0 30px;

}


.quick-actions {

    text-align: center;

    margin-top: 40px;

}


.quick-actions h3 {

    margin-bottom: 30px;

}


#dashboard {

    max-width: 1200px;

    margin: 0 auto;

}


/* ============================================================
   11. PERSON LOOKUP
   ============================================================ */

.lookup-card {

    max-width: 600px;

    margin: 30px auto;

    padding: 30px;

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

}


.lookup-profile {

    text-align: center;

}


.lookup-info {

    margin-top: 20px;

}


.lookup-info p {

    margin: 12px 0;

}


/* ============================================================
   12. LOGIN
   ============================================================ */

.login-container {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

}


.login-card {

    width: 380px;

    background: white;

    border-radius: 18px;

    padding: 40px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);

}


.login-card h1 {

    text-align: center;

    margin-bottom: 10px;

}


.login-subtitle {

    text-align: center;

    color: #666;

    margin-bottom: 35px;

}


.login-card input {

    width: 100%;

    box-sizing: border-box;

    padding: 14px;

    margin-bottom: 18px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 15px;

}


.login-card input:focus {

    outline: none;

    border-color: #2563eb;

}


.login-card button {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}


.login-card button:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

}


.login-error {

    color: crimson;

    text-align: center;

    margin-top: 18px;

}


/* ============================================================
   13. CAMPAIGN WORKSPACE
   ============================================================ */

.campaign-workspace {

    display: flex;

    gap: 24px;

    align-items: flex-start;

    margin-top: 20px;

}


.campaign-list {

    width: 280px;

    flex-shrink: 0;

}


.campaign-detail {

    flex: 1;

    background: white;

    border-radius: 16px;

    padding: 24px;

    min-height: 500px;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.08);

}


/* ============================================================
   14. CAMPAIGN CONTACT CARDS
   ============================================================ */

.campaign-contact-card {
    background: white;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.campaign-contact-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.campaign-contact-card.selected {
    border-color: var(--blue-500, #3b82f6);
    background: #f8faff;
}

.campaign-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 8px 24px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .campaign-contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-col-left p,
.contact-col-right p {
    margin: 4px 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}

.contact-col-left strong,
.contact-col-right strong {
    color: #0f172a;
    font-weight: 600;
}

.contact-col-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    text-align: right;
    background: transparent;
    border: none;
    padding: 0;
}

.contact-reason-inline-container {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
}

.linkedin-button-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0077b5;
    color: white !important;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1.2;
}

.linkedin-button-compact:hover {
    background: #005582;
}

.campaign-contact-card h3 {
    margin: 0;
    font-size: 1.05rem;
}


.linkedin-button {

    display: inline-block;

    margin-top: 12px;

    text-decoration: none;

    padding: 8px 14px;

    border-radius: 8px;

    background: #0077b5;

    color: white;

}


.linkedin-button:hover {

    opacity: 0.9;

}


/* ============================================================
   15. CAMPAIGN ACTIONS
   ============================================================ */

.campaign-actions {

    display: flex;

    gap: 12px;

    margin: 20px 0;

}


.campaign-button {

    border: none;

    border-radius: 10px;

    padding: 12px 20px;

    cursor: pointer;

    font-weight: bold;

}


.campaign-button:hover {

    transform: translateY(-2px);

}


/* ============================================================
   16. CAMPAIGN CARD INTERACTIONS
   ============================================================ */

.campaign-card {

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

    border: 2px solid transparent;

}


.campaign-card:hover {

    transform: translateY(-4px);

    border-color: #2563eb;

    box-shadow:
        0 12px 28px rgba(0,0,0,.14);

}


.campaign-card:active {

    transform: translateY(-2px);

}


.campaign-contact-card {

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}


.campaign-contact-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.12);

}


/* ============================================================
   17. EMAIL VARIABLES
   ============================================================ */

.variable-pill {

    border: none;

    background: #eef4ff;

    color: #2563eb;

    padding: 6px 12px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: all .2s ease;

}


.variable-pill:hover {

    background: #2563eb;

    color: white;

}


.email-variables {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    align-items: center;

    margin: 18px 0;

    padding: 12px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

}


.email-toolbar {

    margin: 18px 0;

}


.toolbar-title {

    display: block;

    margin-bottom: 10px;

    font-weight: bold;

    color: #555;

}


/* ============================================================
   18. EMAIL COMPOSER
   ============================================================ */

.email-composer {

    max-width: 900px;

    margin: 0 auto;

}


#email-subject {

    width: 100%;

    margin-bottom: 20px;

}


#email-body {

    width: 100%;

    min-height: 320px;

}


/* ============================================================
   19. CAMPAIGN DASHBOARD
   ============================================================
//
// NOTE:
// This currently creates a two-column dashboard.
//
// If Campaign Health and Import Methods need to stack,
// change this rule to:
// 
//     display: flex;
//     flex-direction: column;
//
// The current application has used both layouts during
// development, so check the intended demo layout before
// changing this.
// ============================================================ */

.campaign-dashboard {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin: 30px 0;

}


/* ============================================================
   20. CAMPAIGN RESOURCES
   ============================================================ */

.resource {

    padding: 10px 0;

    border-bottom: 1px solid #eee;

}


/* ============================================================
   21. IMPORT METHODS
   ============================================================ */

.import-toolbar {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin: 20px 0;

}


.import-pill {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    border: none;

    border-radius: 999px;

    background: #eef4ff;

    color: #1f3b5b;

    cursor: pointer;

    font-weight: 600;

    transition: .2s;

}


.import-pill:hover {

    transform: translateY(-2px);

    background: #1f3b5b;

    color: white;

}


/* ============================================================
   22. STATUS INDICATORS
   ============================================================ */

.status-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    display: inline-block;

}


.green {

    background: #3ccf73;

}


.yellow {

    background: #f4c542;

}


/* ============================================================
   23. CREATE ACCOUNT
   ============================================================
   
   The Create Account button lives inside the login form,
   but is intentionally NOT a submit button.

   The spacing separates it visually from Sign In.
   ============================================================ */

#create-account {

    margin-top: 15px;

}


/* ============================================================
   24. V1 INTERFACE POLISH
   ============================================================ */

:root {
    --navy-950: #10253f;
    --navy-800: #1f3b5b;
    --blue-600: #2563eb;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --slate-950: #172033;
    --slate-700: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --surface: #ffffff;
    --success: #16a34a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, .08);
    --radius-md: 12px;
    --radius-lg: 18px;
}

body {
    min-width: 320px;
    padding-bottom: 66px;
    color: var(--slate-950);
    background: #f6f8fc;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

header {
    min-height: 72px;
    padding: 18px clamp(24px, 4vw, 64px);
    background: var(--navy-950);
    box-shadow: var(--shadow-sm);
}

.logo {
    letter-spacing: -.02em;
}

nav {
    min-height: 68px;
    align-items: center;
    padding: 12px 24px;
    border-color: var(--slate-200);
}

nav button {
    min-height: 44px;
    padding: 11px 20px;
    color: var(--slate-700);
    font-weight: 700;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

nav button:hover {
    transform: translateY(-1px);
}

nav button.active {
    background: var(--navy-800);
    box-shadow: 0 6px 16px rgba(31, 59, 91, .18);
}

main {
    padding: clamp(28px, 4vw, 56px);
}

#campaigns,
#monday-search {
    width: min(100%, 1500px);
    margin: 0 auto;
}

#campaigns > h2 {
    margin-bottom: 8px;
    color: var(--slate-950);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
}

#campaigns > .subtitle {
    margin-bottom: 34px;
    color: var(--slate-500);
}

footer {
    z-index: 20;
    min-height: 58px;
    align-items: center;
    padding: 12px clamp(20px, 4vw, 60px);
    color: var(--slate-700);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-color: var(--slate-200);
    font-size: .92rem;
}

.campaign-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.campaign-sidebar {
    min-width: 0;
}

.campaign-toolbar {
    margin-bottom: 14px;
}

#new-campaign {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: var(--radius-md);
    color: white;
    background: var(--navy-800);
    box-shadow: 0 8px 18px rgba(31, 59, 91, .16);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#new-campaign:hover {
    transform: translateY(-1px);
    background: var(--navy-950);
    box-shadow: 0 10px 22px rgba(31, 59, 91, .22);
}

.campaign-list {
    display: grid;
    width: auto;
    gap: 12px;
}

.campaign-card {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    text-align: left;
    color: var(--slate-950);
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font: inherit;
}

.campaign-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-md);
}

.campaign-card.active {
    border-color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.campaign-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
}

.campaign-card-content {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.campaign-card-content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.campaign-card-objective {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-700);
    font-size: .9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.campaign-card-content small {
    margin-top: 3px;
    color: var(--slate-500);
}

.campaign-detail {
    min-width: 0;
    min-height: 560px;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.campaign-detail > h3:first-child {
    margin-bottom: 8px;
}

.campaign-detail > p:first-of-type {
    color: var(--slate-500);
}

.campaign-detail-header,
.card-heading-row,
.section-title-row,
.campaign-primary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.campaign-detail-header {
    margin-bottom: 24px;
}

.campaign-detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.campaign-header-button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: .82rem;
}

.campaign-detail-header h2,
.monday-page-header h2 {
    margin: 3px 0 0;
    text-align: left;
    color: var(--slate-950);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    letter-spacing: -.03em;
}

.eyebrow,
.summary-label {
    display: block;
    color: var(--blue-600);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.campaign-count-badge {
    flex-shrink: 0;
    padding: 7px 12px;
    color: var(--navy-800);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 750;
}

.campaign-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 18px;
}

.campaign-overview-grid .dashboard-card {
    height: 100%;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.campaign-overview-grid .dashboard-card h3 {
    margin: 3px 0 0;
    font-size: 1.1rem;
}

.health-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, .1);
}

.health-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.health-metric {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 13px;
    background: var(--slate-100);
    border-radius: 10px;
}

.health-metric span {
    color: var(--slate-500);
    font-size: .76rem;
}

.health-metric strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--slate-950);
    font-size: .95rem;
}

.health-metric-wide {
    grid-column: 1 / -1;
}

.card-description {
    margin-top: 8px;
    color: var(--slate-500);
    font-size: .9rem;
}

.import-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 0;
}

.import-methods-card .import-pill {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    color: var(--navy-800);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 10px;
    box-shadow: none;
    font-size: .84rem;
}

.import-methods-card .import-pill:hover {
    color: white;
    background: var(--navy-800);
    border-color: var(--navy-800);
}

.import-methods-card .import-pill.coming-soon {
    color: var(--slate-500);
    background: var(--slate-100);
    border-color: var(--slate-200);
    border-style: dashed;
}

.import-methods-card .import-pill.disabled,
.import-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.import-methods-card .status-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
}

.campaign-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
    padding: 20px 22px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
}

.campaign-summary p {
    margin-top: 7px;
    color: var(--slate-700);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.campaign-deleted-state {
    padding: 48px 24px;
    text-align: center;
}

.campaign-primary-actions {
    margin-top: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.campaign-primary-actions h3 {
    margin-top: 2px;
}

.campaign-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

.campaign-button {
    min-height: 43px;
    margin: 0;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease,
        background .18s ease, border-color .18s ease;
}

.campaign-button-primary {
    color: white;
    background: var(--navy-800);
    box-shadow: 0 6px 14px rgba(31, 59, 91, .15);
}

.campaign-button-secondary {
    color: var(--navy-800);
    background: white;
    border-color: var(--slate-300);
}

.campaign-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.campaign-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.campaign-button[aria-busy="true"] {
    cursor: wait;
}

.campaign-contacts-section {
    margin-top: 24px;
}

#campaign-contacts {
    max-height: 900px;
    overflow-y: auto;
    padding-right: 8px;
}

.section-title-row {
    margin-bottom: 14px;
}

.section-title-row h3 {
    margin-top: 2px;
}

.section-title-row > span {
    color: var(--slate-500);
    font-size: .86rem;
}

.campaign-contact-count {
    color: var(--slate-500);
    font-size: .86rem;
}

.campaign-contact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
}

.campaign-select-all,
.campaign-contact-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.campaign-select-all {
    color: var(--slate-700);
    font-weight: 750;
    cursor: pointer;
}

.campaign-select-all input,
.campaign-contact-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--navy-800);
    cursor: pointer;
}

.campaign-contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.campaign-contact-card-header h3 {
    margin: 0;
}

.campaign-button-danger,
.contact-remove-button {
    color: #b42318;
    background: #fff;
    border: 1px solid #f1b4ae;
}

.campaign-button-danger:hover:not(:disabled),
.contact-remove-button:hover {
    color: #8f1710;
    background: #fff1f0;
    border-color: #e9867c;
}

.campaign-button-danger:disabled {
    color: var(--slate-400);
    background: var(--slate-100);
    border-color: var(--slate-200);
    cursor: not-allowed;
}

.contact-remove-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 750;
}

.campaign-contact-card {
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.campaign-contact-card:hover {
    border-color: var(--slate-300);
    box-shadow: var(--shadow-md);
}

.campaign-contact-card.selected {
    background-color: #f0f7ff;
    border-color: var(--blue-500);
}

.contact-reason-inline-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-200);
}

.contact-reason-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.reason-text {
    flex: 1;
    color: var(--slate-700);
}

.edit-reason-btn {
    padding: 2px 6px;
    font-size: 0.8rem;
    color: var(--slate-500);
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.edit-reason-btn:hover {
    color: var(--slate-800);
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.contact-reason-editor-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-reason-input-inline {
    width: 100%;
    padding: 6px 10px;
    color: var(--slate-950);
    background: white;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
}

.contact-reason-input-inline:focus {
    border-color: var(--blue-600);
    outline: 2px solid rgba(37, 99, 235, .14);
}

.contact-reason-actions-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.contact-reason-status {
    margin-right: auto;
    color: var(--slate-600);
    font-size: .78rem;
}

.contact-reason-save {
    padding: 6px 12px;
    color: white;
    background: var(--navy-800);
    border: 1px solid var(--navy-800);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
}

.contact-reason-save:disabled {
    cursor: wait;
    opacity: .65;
}

.contact-reason-cancel {
    padding: 6px 12px;
    color: var(--slate-700);
    background: white;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
}

.empty-state {
    padding: 28px 20px;
    text-align: center;
    color: var(--slate-500);
    background: var(--surface);
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-md);
}

.empty-state h3,
.empty-state h4 {
    margin: 8px 0 4px;
    color: var(--slate-950);
}

.empty-state-icon {
    font-size: 1.65rem;
}

.campaign-list-empty {
    padding: 24px 18px;
}

.compact-empty-state {
    background: var(--slate-100);
}

.campaign-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
}

.campaign-form-card {
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.archived-modal-card {
    width: min(100%, 1060px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

/* ============================================================
   ARCHIVED CAMPAIGN GRID CARDS
   ============================================================ */

.archived-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.archived-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-align: left;
    min-height: 155px;
}

.archived-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    border-color: var(--blue-400);
}

.archived-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.archived-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archived-card-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--slate-100);
    color: var(--slate-700);
    white-space: nowrap;
}

.archived-card-objective {
    font-size: 0.88rem;
    color: var(--slate-600);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archived-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--slate-500);
    border-top: 1px solid var(--slate-100);
    padding-top: 12px;
    margin-top: auto;
    gap: 8px;
}

.archived-card-dates {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.76rem;
    color: var(--slate-500);
}

.archived-card-dates span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.campaign-meta-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--slate-600);
    margin-top: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.campaign-meta-dates span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-preview-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 12px;
}

.email-preview-subject-line {
    font-size: 0.95rem;
    color: var(--slate-800);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-200);
}

.email-preview-body-rendered {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate-700);
    min-height: 48px;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}

.archived-section-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-200);
}

.archived-section-block h3 {
    margin-top: 4px;
    margin-bottom: 12px;
}

.campaign-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--slate-200);
}

.campaign-form-header h3 {
    margin-top: 4px;
    font-size: 1.35rem;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--slate-700);
    background: var(--slate-100);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.4rem;
}

.campaign-form-fields {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.campaign-form-fields label,
.form-field > span {
    margin-top: 10px;
    color: var(--slate-700);
    font-size: .86rem;
    font-weight: 750;
}

.campaign-form-fields input,
.campaign-form-fields textarea,
.form-field input,
.form-field select,
#email-subject,
#email-body {
    width: 100%;
    padding: 12px 13px;
    color: var(--slate-950);
    background: white;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.campaign-form-fields textarea {
    min-height: 120px;
    resize: vertical;
}

.campaign-form-fields input:focus,
.campaign-form-fields textarea:focus,
.form-field input:focus,
.form-field select:focus,
#email-subject:focus,
#email-body:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

#create-campaign {
    min-height: 48px;
    margin-top: 18px;
    color: white;
    background: var(--navy-800);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.monday-page-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 26px;
}

.monday-page-header p {
    margin-top: 8px;
    color: var(--slate-500);
}

.back-button {
    white-space: nowrap;
}

.monday-search-panel {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
}

.monday-field-grid {
    display: grid;
    gap: 16px;
    align-items: end;
}

.monday-destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monday-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span {
    margin: 0;
}

.panel-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--slate-200);
}

.monday-search-button {
    white-space: nowrap;
}

.monday-results {
    margin-top: 20px;
}

.monday-results > p {
    color: var(--slate-500);
}

.monday-import-actions {
    position: sticky;
    bottom: 78px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.monday-selection-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.monday-selection-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--navy-800);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-weight: 800;
}

.monday-selection-summary div {
    display: grid;
    gap: 2px;
}

.monday-selection-summary strong {
    color: var(--slate-950);
    font-size: .95rem;
}

.monday-selection-summary div > span {
    color: var(--slate-500);
    font-size: .8rem;
}

.monday-import-actions .campaign-button {
    min-width: 170px;
}

.monday-import-actions .campaign-button:disabled {
    cursor: not-allowed;
}

.monday-import-actions .campaign-button[aria-busy="true"] {
    cursor: wait;
}

.email-composer {
    margin-top: 22px;
    padding: 24px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
}

.email-composer h2 {
    margin-bottom: 6px;
    text-align: left;
}

.email-composer-header,
.mailgun-account-card,
.mailgun-account-main,
.mailgun-account-actions,
.email-draft-row,
.email-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.email-composer-header {
    align-items: flex-start;
    margin-bottom: 20px;
}

.email-composer-header p,
.field-help,
.safe-mode-note,
.muted-copy {
    color: var(--slate-500);
}

.mailgun-account-card {
    margin-bottom: 22px;
    padding: 17px 18px;
    background: white;
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--slate-300);
    border-radius: 12px;
}

.mailgun-account-card.connected {
    border-left-color: #16a34a;
}

.mailgun-account-card.connection-error {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.mailgun-account-main {
    justify-content: flex-start;
}

.mailgun-account-main p,
.mailgun-account-card > div > p {
    margin-top: 4px;
}

.mailgun-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    background: #eef6ff;
    border-radius: 10px;
    font-size: 1.3rem;
}

.mailgun-account-actions {
    flex: 0 0 auto;
}

.connection-badge,
.send-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    text-transform: capitalize;
}

.connection-badge.connected,
.send-status.sent,
.send-status.delivered {
    color: #166534;
    background: #dcfce7;
}

.connection-badge.disconnected,
.send-status.pending,
.send-status.sending,
.send-status.accepted,
.send-status.delayed {
    color: #92400e;
    background: #fef3c7;
}

.send-status.failed,
.send-status.unsubscribed,
.send-status.complained {
    color: #991b1b;
    background: #fee2e2;
}

.campaign-contact-email-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-button {
    padding: 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.danger-text {
    color: #b91c1c;
}

.safe-mode-note {
    font-size: .82rem;
}

.email-field {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.email-field label,
.preview-contact-label {
    color: var(--slate-700);
    font-size: .86rem;
    font-weight: 750;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.campaign-attachments {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
}

.campaign-attachments-header,
.campaign-attachment-item,
.campaign-attachment-details {
    display: flex;
    align-items: center;
}

.campaign-attachments-header,
.campaign-attachment-item {
    justify-content: space-between;
    gap: 16px;
}

.campaign-attachments-header .field-help {
    margin-top: 3px;
}

.campaign-attachment-list {
    display: grid;
    gap: 8px;
    margin: 13px 0 10px;
}

.campaign-attachment-item {
    padding: 10px 12px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 9px;
}

.campaign-attachment-details {
    min-width: 0;
    gap: 10px;
}

.campaign-attachment-details > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.campaign-attachment-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    background: white;
    border-radius: 8px;
}

.campaign-attachment-name {
    overflow: hidden;
    color: var(--navy-800);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-attachment-details span,
.campaign-attachment-empty {
    color: var(--slate-500);
    font-size: .8rem;
}

.campaign-attachment-empty {
    padding: 10px 2px;
}

.email-draft-row {
    margin-top: 10px;
}

#draft-status {
    color: var(--slate-500);
    font-size: .82rem;
}

.preview-contact-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

#preview-contact {
    max-width: 320px;
    padding: 8px 10px;
    background: white;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font: inherit;
}

.email-send-result {
    margin-top: 18px;
    padding: 12px 14px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.email-send-result.has-errors {
    color: #991b1b;
    background: #fff7f7;
    border-color: #fecaca;
}

.email-send-result.has-warnings {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.email-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--slate-200);
}

.email-history-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.email-history-section h3 {
    margin-top: 4px;
}

.email-history {
    margin-top: 14px;
}

.email-history-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 410px;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
}

.email-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.email-history-table th,
.email-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--slate-200);
    text-align: left;
}

.email-history-table th {
    color: var(--slate-700);
    background: var(--slate-100);
}

.email-history-table tr:last-child td {
    border-bottom: 0;
}

.email-history-attachments {
    display: block;
    max-width: 260px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--slate-500);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-history-error {
    display: block;
    margin-top: 4px;
    color: #b91c1c;
    font-size: .76rem;
}

.email-preview-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 24px;
    background: white;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.email-preview-dialog::backdrop {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.rocketreach-review-dialog {
    width: min(900px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 24px;
    overflow: hidden;
    color: var(--slate-950);
    background: white;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.rocketreach-review-dialog::backdrop {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.rocketreach-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.rocketreach-review-header h3 {
    margin: 5px 0 0;
    font-size: 1.3rem;
}

.rocketreach-review-help {
    margin: 16px 0 12px;
    color: var(--slate-600);
    line-height: 1.5;
}

.rocketreach-review-summary {
    padding: 10px 12px;
    color: var(--navy-800);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 750;
}

.rocketreach-review-list {
    display: grid;
    gap: 9px;
    max-height: min(420px, 48vh);
    margin-top: 14px;
    padding-right: 4px;
    overflow-y: auto;
}

.rocketreach-review-contact-copy strong,
.rocketreach-review-contact-copy small {
    overflow-wrap: anywhere;
}

.rocketreach-review-contact-copy small {
    color: var(--slate-600);
}

.rocketreach-review-contact.email-found small {
    color: #137333;
}

.rocketreach-review-contact.failed small {
    color: #b42318;
}

.rocketreach-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.rocketreach-review-actions button {
    padding: 10px 15px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.rocketreach-review-cancel {
    color: var(--navy-800);
    background: white;
    border: 1px solid var(--slate-300);
}

.rocketreach-review-confirm {
    color: white;
    background: var(--navy-800);
    border: 1px solid var(--navy-800);
}

.rocketreach-review-confirm:disabled {
    color: var(--slate-400);
    background: var(--slate-100);
    border-color: var(--slate-200);
    cursor: not-allowed;
}

.email-preview-meta {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 14px;
    background: var(--slate-100);
    border-radius: 10px;
}

.email-preview-meta > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
}

.email-preview-meta dt {
    color: var(--slate-500);
    font-size: .8rem;
    font-weight: 750;
}

.email-preview-meta dd {
    overflow-wrap: anywhere;
}

.email-preview-body {
    min-height: 180px;
    max-height: 360px;
    margin-bottom: 18px;
    padding: 18px;
    overflow: auto;
    white-space: pre-wrap;
    color: var(--slate-950);
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .campaign-workspace {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }

    .campaign-overview-grid {
        grid-template-columns: 1fr;
    }

    .monday-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    header {
        min-height: 64px;
        padding: 16px 20px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .title {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-email-control {
        padding-left: 9px;
        font-size: .75rem;
    }

    main {
        padding: 24px 16px;
    }

    .campaign-workspace {
        grid-template-columns: 1fr;
    }

    .campaign-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .campaign-detail {
        min-height: 420px;
    }

    .campaign-detail-header,
    .campaign-primary-actions,
    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .campaign-detail-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .campaign-actions {
        width: 100%;
        justify-content: stretch;
    }

    .campaign-actions .campaign-button {
        flex: 1;
    }

    .campaign-contact-toolbar,
    .campaign-contact-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .campaign-contact-toolbar .campaign-button,
    .contact-remove-button {
        width: 100%;
    }

    .email-composer-header,
    .mailgun-account-card,
    .email-draft-row,
    .campaign-attachments-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mailgun-account-actions,
    .preview-contact-label {
        align-items: stretch;
        flex-direction: column;
    }

    #preview-contact {
        max-width: none;
    }

    .campaign-summary,
    .monday-destination-grid,
    .monday-filter-grid {
        grid-template-columns: 1fr;
    }

    .health-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .monday-page-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .monday-import-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .monday-import-actions .campaign-button {
        width: 100%;
    }

    .back-button {
        justify-self: start;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 6px;
        overflow: hidden;
        padding: 9px 10px;
        white-space: normal;
        text-align: center;
        font-size: .68rem;
    }

    footer span {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .campaign-detail {
        padding: 18px;
    }

    .campaign-count-badge {
        display: none;
    }

    .health-metrics,
    .import-toolbar {
        grid-template-columns: 1fr;
    }

    .campaign-actions {
        flex-direction: column;
    }

    .campaign-form-overlay {
        padding: 12px;
    }

    .campaign-form-card {
        padding: 20px;
    }
}

/* ============================================================
   AUTH TABS, NOTICES, & REGISTRATION ENHANCEMENTS
   ============================================================ */

.login-card {
    width: min(440px, calc(100vw - 32px)) !important;
    padding: 32px 28px !important;
}

.login-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--slate-600, #475569);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.login-tab.active {
    background: white;
    color: var(--navy-900, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-notice {
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 18px;
    display: grid;
    gap: 4px;
}

.auth-notice-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.auth-notice-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 18px;
}

.auth-footnote a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

.auth-feedback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.86rem;
    text-align: center;
    line-height: 1.4;
}

.auth-feedback-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-feedback-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-feedback-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Header User Widget */
.header-user-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: white;
    margin-right: 12px;
}

.header-admin-link {
    color: #fbbf24 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-admin-link:hover {
    background: rgba(251, 191, 36, 0.35);
}

.header-admin-badge {
    background: #ef4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    margin-left: 2px;
}

.header-logout-link {
    color: #fca5a5 !important;
    text-decoration: none;
    font-weight: 500;
}

.header-logout-link:hover {
    text-decoration: underline;
}


/* ============================================================
   ADMIN CONSOLE LAYOUT & COMPONENTS
   ============================================================ */

.admin-body {
    background: var(--slate-100);
    color: var(--slate-950);
    font-family: inherit;
    margin: 0;
    padding: 0;
}

.admin-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.admin-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 32px;
    background: var(--navy-950);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: white;
}

.admin-header-left {
    display: flex;
    justify-content: flex-start;
}

.admin-header-center {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.admin-header-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-header-center h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.01em;
}

.admin-back-btn {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-300);
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-logout-btn {
    color: #fca5a5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Metrics Grid */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .admin-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-metric-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
}

.admin-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--slate-950);
    line-height: 1;
}

.metric-amber {
    color: #d97706 !important;
}

.metric-green {
    color: var(--success) !important;
}

/* Cards */
.admin-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-card h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--slate-950);
    font-weight: 700;
}

.admin-card-subtitle {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.admin-settings-card {
    padding: 20px 24px;
}

.admin-settings-card h3 {
    font-size: 1.05rem;
    margin: 0 0 3px;
}

.admin-settings-card .admin-card-subtitle {
    font-size: 0.84rem;
}

/* Settings Toggle */
.admin-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-settings-divider {
    border: none;
    border-top: 1px solid var(--slate-200);
    margin: 14px 0;
}

.admin-number-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 0;
    background: transparent;
    border: none;
    transition: 0.2s;
}

.admin-toggle-switch:hover {
    opacity: 0.9;
}

.admin-toggle-switch input {
    display: none;
}

.admin-toggle-switch .slider {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--slate-300);
    border-radius: 999px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-toggle-switch input:checked + .slider {
    background: var(--blue-600);
}

.admin-toggle-switch input:checked + .slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-700);
}

/* User Table */
.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-search-input,
.admin-filter-select {
    padding: 10px 16px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    color: var(--slate-700);
    background: white;
    transition: 0.2s;
}

.admin-search-input {
    min-width: 240px;
}

.admin-search-input:focus,
.admin-filter-select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px var(--blue-50);
}

.admin-table-responsive {
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th {
    text-align: left;
    padding: 16px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    font-weight: 600;
    color: var(--slate-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-700);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--slate-50);
}

.row-pending td {
    background: #fffbeb;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid var(--blue-100);
}

.user-cell > div {
    display: flex;
    flex-direction: column;
}

.user-cell strong {
    color: var(--slate-950);
    font-weight: 600;
}

.user-email-copy {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-admin {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.badge-member {
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
}

.badge-active {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-reset {
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid var(--blue-100);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.badge-dot.dot-green {
    background-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.badge-dot.dot-gray {
    background-color: #94a3b8;
}

.email-badge-approved,
.email-badge-disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 220px;
}

.email-badge-approved .badge-text,
.email-badge-disabled .badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-badge-approved {
    color: #15803d;
    font-weight: 600;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.email-badge-disabled {
    color: var(--slate-500);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
}

.admin-table th.text-right,
.admin-table td.text-right {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

/* Action Buttons */
.action-btn-group {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.btn-action {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--slate-200);
    background: white;
    color: var(--slate-700);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}

.btn-action:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-950);
}

.btn-approve {
    background: #16a34a !important;
    color: white !important;
    border: 1px solid #15803d !important;
}

.btn-approve:hover {
    background: #15803d !important;
    border-color: #166534 !important;
}

.btn-delete {
    color: #ef4444 !important;
    border-color: #fee2e2 !important;
    background: #fef2f2 !important;
}

.btn-delete:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

/* Modals */
.admin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 500px;
    width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--surface);
}

.admin-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-950);
}

.admin-modal-close {
    background: white;
    border: 1px solid var(--slate-200);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--slate-500);
    transition: 0.2s;
    padding: 0;
    line-height: 1;
}

.admin-modal-close:hover {
    background: var(--slate-100);
    color: var(--slate-950);
}

.admin-modal-body {
    padding: 28px;
}

.admin-modal-body .form-group {
    margin-bottom: 20px;
}

.admin-modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-700);
    font-size: 0.95rem;
}

.admin-modal-body input[type="text"],
.admin-modal-body input[type="email"],
.admin-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.admin-modal-body input[type="text"]:focus,
.admin-modal-body input[type="email"]:focus,
.admin-modal-body textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px var(--blue-50);
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.admin-btn-primary {
    background: var(--blue-600);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.admin-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.admin-btn-secondary {
    background: white;
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.admin-btn-secondary:hover {
    background: var(--slate-50);
    color: var(--slate-950);
}

.admin-checkbox-group {
    margin-top: 24px;
    background: var(--slate-50);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}

.admin-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0;
    color: var(--slate-950);
}

.admin-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-600);
    cursor: pointer;
}

.help-text {
    display: block;
    color: var(--slate-500);
    font-size: 0.85rem;
    margin-top: 8px;
    margin-left: 30px;
    line-height: 1.4;
}

.admin-empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--slate-500);
    font-size: 1.1rem;
}

.campaign-contact-email-event {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.84rem;
}

.campaign-review-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--slate-300);
    border-left: 4px solid var(--slate-500);
    border-radius: 12px;
    background: white;
}

.campaign-review-card h3,
.campaign-review-card p {
    margin: 4px 0 0;
}

.campaign-review-pending {
    border-left-color: #d97706;
    background: #fffbeb;
}

.campaign-review-approved {
    border-left-color: #16a34a;
    background: #f0fdf4;
}

.campaign-review-rejected,
.campaign-review-changes_required {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.campaign-review-notes {
    color: #991b1b;
}

.admin-review-list {
    display: grid;
    gap: 12px;
}

.admin-review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--slate-400);
    border-radius: 12px;
    background: var(--slate-50);
}

.admin-review-pending,
.admin-review-changes_required {
    border-left-color: #d97706;
}

.admin-review-approved {
    border-left-color: #16a34a;
}

.admin-review-rejected {
    border-left-color: #dc2626;
}

.admin-review-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.admin-review-status {
    padding: 4px 9px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-review-meta,
.admin-review-empty {
    color: var(--slate-500);
    font-size: 0.88rem;
}

.admin-review-empty {
    padding: 24px;
    border: 1px dashed var(--slate-300);
    border-radius: 12px;
    text-align: center;
}

.admin-review-modal {
    max-width: 800px;
    width: min(92vw, 800px);
}

.admin-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.admin-review-scroll {
    margin-top: 6px;
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: #ffffff;
}

.admin-review-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--slate-100);
}

.admin-review-person:last-child {
    border-bottom: 0;
}

.admin-review-person strong {
    font-size: 0.9rem;
    color: var(--slate-900);
}

.admin-review-person span {
    color: var(--slate-500);
    font-size: 0.8rem;
}

.admin-review-content {
    padding: 10px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: #ffffff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    color: var(--slate-800);
}

.admin-review-message {
    max-height: 280px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.5;
}

.admin-review-message img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.admin-review-reject {
    color: #b91c1c;
    border-color: #fecaca;
}

@media (max-width: 720px) {
    .campaign-review-card,
    .admin-review-item {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-review-grid {
        grid-template-columns: 1fr;
    }
}
