:root {
    color-scheme: light;
    --ink-950: #0b1220;
    --ink-700: #334155;
    --ink-500: #64748b;
    --accent-600: #0ea5e9;
    --accent-700: #0284c7;
    --sand-50: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink-950);
    background:
        radial-gradient(1200px circle at 10% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
        radial-gradient(900px circle at 95% 10%, rgba(250, 204, 21, 0.2) 0%, transparent 40%),
        radial-gradient(700px circle at 0% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        var(--sand-50);
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
}

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

.app-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.app-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.responsive-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.responsive-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-500);
}

.responsive-table tr {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.responsive-table tr.details-row,
.responsive-table tr.progress-row {
    background: transparent;
    border: 0;
}

.action-menu {
    width: 100%;
}

.action-menu summary {
    list-style: none;
}

.action-menu summary::-webkit-details-marker {
    display: none;
}

.action-menu__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-menu__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.action-menu__chevron {
    font-size: 12px;
    color: var(--ink-500);
}

.action-menu__panel {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.action-menu__item {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: none;
}

.email-remove-btn {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.email-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.responsive-table tr.campaign-row td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.responsive-table tr.campaign-row td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.responsive-table td {
    padding: 14px 16px;
    vertical-align: top;
}

.responsive-table tr.details-row td,
.responsive-table tr.progress-row td {
    background: transparent;
    border: 0;
    padding-top: 0;
}

@media (max-width: 768px) {
    .app-container {
        padding: 16px;
    }

    .responsive-table {
        border-spacing: 0 16px;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        padding: 12px 16px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .responsive-table tr.hidden {
        display: none;
    }

    .responsive-table tr.campaign-row td:first-child,
    .responsive-table tr.campaign-row td:last-child {
        border-radius: 0;
    }

    .responsive-table td {
        padding: 8px 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--ink-500);
        margin-bottom: 4px;
    }

    .responsive-table td.no-label::before {
        content: none;
    }

    .responsive-table tr.progress-row,
    .responsive-table tr.details-row {
        background: transparent;
        border: 0;
        padding: 0;
        margin-top: -4px;
    }

    .responsive-table tr.progress-row td,
    .responsive-table tr.details-row td {
        padding: 0 0 12px 0;
    }
}
