/* EDM V2 page-specific styles extracted from edm_dashboard_v2.html. */
.campaign-stack {
        display: grid;
        gap: 24px;
    }

    .campaign-switcher {
        display: inline-flex;
        max-width: 100%;
        padding: 4px;
        gap: 2px;
        overflow-x: auto;
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 6px;
    }

    .campaign-tab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        color: var(--momo-text-secondary);
        border-radius: 4px;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
        transition: var(--momo-transition-base);
    }

    .campaign-tab:hover {
        color: var(--momo-text-primary);
        background: var(--momo-bg-paper);
    }

    .campaign-tab.is-active {
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
    }

    .campaign-tab-count {
        padding: 1px 6px;
        color: var(--momo-text-tertiary);
        background: var(--momo-bg-subtle);
        border-radius: var(--momo-radius-pill);
        font-size: 10px;
        font-weight: 800;
    }

    .campaign-tab.is-active .campaign-tab-count {
        color: var(--momo-text-inverse);
        background: rgba(250, 247, 240, 0.22);
    }

    .campaign-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 12px;
    }

    .campaign-hero {
        position: relative;
        min-height: 220px;
        overflow: hidden;
        padding: 28px 32px;
        color: var(--momo-text-primary);
        background: var(--momo-bg-paper);
        border: 1px solid var(--momo-border-light);
        border-radius: 8px;
        --campaign-accent: var(--momo-warm-caramel);
    }

    .campaign-hero.is-edm {
        --campaign-accent: var(--momo-warm-caramel);
    }

    .campaign-hero.is-festival {
        --campaign-accent: var(--momo-warm-honey);
    }

    .campaign-hero.is-mothers-day {
        --campaign-accent: var(--momo-warm-rust);
    }

    .campaign-hero.is-valentine-520 {
        --campaign-accent: var(--momo-warm-mahogany);
    }

    .campaign-hero.is-labor-day {
        --campaign-accent: var(--momo-warm-earth);
    }

    .campaign-hero::before {
        position: absolute;
        inset: 0;
        content: "";
        background-image: radial-gradient(circle, rgba(42, 37, 32, 0.12) 1px, transparent 1px);
        background-size: 8px 8px;
        opacity: 0.6;
    }

    .campaign-hero::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 64px;
        height: 4px;
        content: "";
        background: var(--campaign-accent);
    }

    .campaign-hero-content {
        position: relative;
        display: flex;
        min-height: 172px;
        flex-direction: column;
        gap: 16px;
    }

    .campaign-hero-content::before {
        position: absolute;
        top: -28px;
        left: -32px;
        width: 4px;
        height: 64px;
        content: "";
        background: var(--campaign-accent);
    }

    .campaign-eyebrow {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .campaign-eyebrow-label {
        padding: 3px 10px;
        color: var(--campaign-accent);
        border: 1px solid var(--campaign-accent);
        border-radius: 2px;
        background: var(--momo-bg-surface);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .campaign-promo-id {
        color: var(--momo-text-tertiary);
        font-size: 11px;
    }

    .campaign-title {
        margin: 0;
        color: var(--momo-text-primary);
        font-family: var(--momo-font-display);
        font-size: 40px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.05;
    }

    .campaign-growth-copy {
        max-width: 42ch;
        margin: -8px 0 0;
        color: var(--momo-text-secondary);
        font-size: 0.9rem;
        font-weight: 760;
        line-height: 1.45;
        letter-spacing: 0;
    }

    .campaign-meta-grid {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .campaign-meta-label {
        margin-bottom: 2px;
        color: var(--momo-text-tertiary);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .campaign-meta-value {
        color: var(--momo-text-primary);
        font-weight: 800;
    }

    .campaign-meta-value--total {
        font-size: 20px;
    }

    .campaign-actions {
        display: flex;
        gap: 8px;
        margin-top: auto;
        flex-wrap: wrap;
    }

    .campaign-action {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 8px 14px;
        color: var(--momo-text-primary);
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 4px;
        font-size: 13px;
        font-weight: 800;
    }

    .campaign-action.is-light {
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
        border-color: var(--momo-ink);
    }

    .campaign-kpi-panel {
        display: flex;
        flex-direction: column;
        min-height: 220px;
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 8px;
    }

    .campaign-panel-title {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--momo-border-light);
        font-size: 13px;
        font-weight: 800;
    }

    .campaign-kpi-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0;
        flex: 1;
    }

    .campaign-kpi {
        padding: 20px;
        background: transparent;
        border-right: 1px solid var(--momo-border-light);
        border-bottom: 1px solid var(--momo-border-light);
        border-radius: 0;
    }

    .campaign-kpi:nth-child(2n) {
        border-right: 0;
    }

    .campaign-kpi:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .campaign-kpi-label {
        margin-bottom: 4px;
        color: var(--momo-text-secondary);
        font-family: var(--momo-font-family-mono);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .campaign-kpi-value {
        color: var(--momo-text-primary);
        font-size: 26px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1;
    }

    .campaign-kpi-value--info {
        color: var(--momo-info);
    }

    .campaign-kpi-value--danger {
        color: var(--momo-danger);
    }

    .campaign-kpi-value--success {
        color: var(--momo-success);
    }

    .campaign-panel-footer {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        color: var(--momo-text-secondary);
        background: var(--momo-bg-paper);
        border-top: 1px solid var(--momo-border-light);
        border-radius: 0 0 8px 8px;
        font-size: 11px;
    }

    .campaign-section-label {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 12px;
    }

    .campaign-section-label .num {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--momo-text-tertiary);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .campaign-section-label .num::after {
        display: inline-block;
        width: 56px;
        height: 6px;
        content: "";
        background-image: radial-gradient(circle, var(--momo-text-tertiary) 1px, transparent 1px);
        background-size: 6px 6px;
        opacity: 0.5;
    }

    .campaign-section-label .title {
        color: var(--momo-text-primary);
        font-size: 13px;
        font-weight: 800;
    }

    .campaign-slot-tabs {
        display: flex;
        gap: 8px;
        padding-bottom: 4px;
        overflow-x: auto;
    }

    .campaign-slot-tab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        color: var(--momo-text-secondary);
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 6px;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    .campaign-slot-tab.active {
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
        border-color: var(--momo-ink);
    }

    .campaign-slot-count {
        color: inherit;
        font-size: 10px;
    }

    .campaign-table-card {
        overflow: hidden;
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 8px;
    }

    .campaign-table-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--momo-border-light);
        flex-wrap: wrap;
    }

    .campaign-section-index {
        color: var(--momo-text-tertiary);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .campaign-visible-count {
        color: var(--momo-text-tertiary);
        font-size: 12px;
    }

    .campaign-stat-badges {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .campaign-badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        color: var(--momo-text-secondary);
        background: var(--momo-bg-paper);
        border: 1px solid var(--momo-border-light);
        border-radius: var(--momo-radius-pill);
        font-size: 11px;
        font-weight: 800;
    }

    .campaign-badge--success {
        color: var(--momo-success);
    }

    .campaign-badge--danger {
        color: var(--momo-danger);
    }

    .campaign-filterbar {
        display: inline-flex;
        padding: 2px;
        gap: 0;
        background: var(--momo-bg-paper);
        border: 1px solid var(--momo-border-light);
        border-radius: 4px;
        flex-wrap: wrap;
    }

    .campaign-filter-chip {
        padding: 5px 10px;
        color: var(--momo-text-secondary);
        background: transparent;
        border: 0;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 800;
    }

    .campaign-filter-chip:hover {
        color: var(--momo-text-primary);
        background: var(--momo-bg-subtle);
    }

    .campaign-filter-chip.is-active {
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
    }

    .campaign-pagination {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        color: var(--momo-text-secondary);
        font-family: var(--momo-font-family-mono);
        font-size: 11px;
        font-weight: 800;
    }

    .campaign-page-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 30px;
        padding: 5px 9px;
        color: var(--momo-text-primary);
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 6px;
        text-decoration: none;
    }

    .campaign-page-link[aria-disabled="true"] {
        pointer-events: none;
        color: var(--momo-text-disabled);
        background: var(--momo-bg-paper);
    }

    .campaign-table-wrap {
        overflow-x: auto;
    }

    .campaign-table {
        width: 100%;
        min-width: 1080px;
        border-collapse: collapse;
        font-size: var(--momo-font-size-sm);
    }

    .campaign-table th {
        padding: 11px 14px;
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
        border-bottom: 1px solid var(--momo-border-light);
        font-family: var(--momo-font-family-mono);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .campaign-table th a {
        color: inherit;
        text-decoration: none;
    }

    .campaign-table td {
        padding: 14px;
        border-bottom: 1px solid var(--momo-border-light);
        vertical-align: middle;
    }

    .campaign-table tbody tr:hover {
        background: var(--momo-bg-paper);
    }

    .campaign-product-cell {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .campaign-product-thumb {
        width: 52px;
        height: 52px;
        flex: 0 0 auto;
        object-fit: cover;
        background: var(--momo-bg-paper);
        border: 1px solid var(--momo-border-light);
        border-radius: 6px;
    }

    .campaign-product-thumb--empty {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--momo-text-tertiary);
        font-size: 11px;
    }

    .campaign-product-name {
        display: -webkit-box;
        overflow: hidden;
        color: var(--momo-text-primary);
        font-weight: 800;
        line-height: 1.35;
        text-decoration: none;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .campaign-product-name:hover {
        color: var(--momo-accent);
    }

    .campaign-product-id {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
        color: var(--momo-text-tertiary);
        background: transparent;
        border: 0;
        font-size: 11px;
        font-family: var(--momo-font-family-mono);
        font-weight: 800;
        line-height: 1.4;
    }

    .campaign-product-id:hover {
        color: var(--momo-accent-strong);
    }

    .campaign-product-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .campaign-category {
        display: inline-flex;
        max-width: 120px;
        padding: 3px 8px;
        overflow: hidden;
        color: var(--momo-text-primary);
        background: var(--momo-bg-subtle);
        border: 1px solid var(--momo-border-light);
        border-radius: var(--momo-radius-pill);
        font-size: 11px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .campaign-price {
        color: var(--momo-text-primary);
        font-size: 16px;
        font-weight: 800;
    }

    .campaign-history-button {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        width: 100%;
        padding: 0;
        color: var(--momo-text-primary);
        background: transparent;
        border: 0;
        font: inherit;
        text-align: right;
    }

    .campaign-history-button:hover {
        color: var(--momo-accent-strong);
    }

    .campaign-history-button i {
        color: var(--momo-accent-strong);
        font-size: 12px;
    }

    .campaign-old-price {
        color: var(--momo-text-tertiary);
        text-decoration: line-through;
    }

    .campaign-change-up {
        color: var(--momo-danger);
        font-weight: 800;
    }

    .campaign-change-down {
        color: var(--momo-success);
        font-weight: 800;
    }

    .campaign-change-pct {
        margin-left: 4px;
        color: currentColor;
        opacity: 0.72;
        font-size: 11px;
    }

    .campaign-sales-stack,
    .campaign-track-stack {
        display: grid;
        gap: 6px;
    }

    .campaign-sales-main {
        color: var(--momo-text-primary);
        font-size: 14px;
        font-weight: 900;
    }

    .campaign-sales-main--muted,
    .campaign-muted-placeholder {
        color: var(--momo-text-tertiary);
    }

    .campaign-sales-sub,
    .campaign-track-line {
        color: var(--momo-text-tertiary);
        font-size: 11px;
        font-weight: 800;
    }

    .campaign-tooltip-trigger {
        width: max-content;
        color: var(--momo-accent-strong);
        background: transparent;
        border: 0;
        font-size: 11px;
        font-weight: 900;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .campaign-empty {
        padding: 48px 16px;
        color: var(--momo-text-secondary);
        text-align: center;
    }

    .campaign-filter-empty.is-hidden,
    .campaign-row.is-hidden {
        display: none;
    }

    .campaign-history-modal .modal-content {
        overflow: hidden;
        color: var(--momo-text-primary);
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 8px;
        box-shadow: var(--momo-shadow-lg);
    }

    .campaign-history-modal .modal-header {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
        background: var(--momo-bg-paper);
        border-bottom: 1px solid var(--momo-border-light);
    }

    .campaign-history-modal .modal-title {
        color: var(--momo-text-primary);
        font-size: 18px;
        font-weight: 800;
        line-height: 1.45;
    }

    .campaign-history-subtitle {
        margin-top: 4px;
        color: var(--momo-text-tertiary);
        font-size: 11px;
        font-weight: 700;
    }

    .campaign-history-range {
        display: inline-flex;
        padding: 2px;
        margin-top: 10px;
        gap: 0;
        background: var(--momo-bg-surface);
        border: 1px solid var(--momo-border-light);
        border-radius: 4px;
    }

    .campaign-history-range button {
        padding: 5px 10px;
        color: var(--momo-text-secondary);
        background: transparent;
        border: 0;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 800;
    }

    .campaign-history-range button.is-active {
        color: var(--momo-text-inverse);
        background: var(--momo-ink);
    }

    .campaign-chart-shell {
        position: relative;
        min-height: 360px;
    }

    .campaign-chart-state {
        display: grid;
        min-height: 360px;
        color: var(--momo-text-secondary);
        place-items: center;
        text-align: center;
    }

    .campaign-chart-state.is-hidden,
    .campaign-chart-canvas.is-hidden {
        display: none;
    }

    .campaign-chart-canvas {
        max-height: 380px;
    }

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

    @media (max-width: 640px) {
        .campaign-title {
            font-size: 28px;
        }

        .campaign-growth-copy {
            font-size: 0.84rem;
        }

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

        .campaign-pagination {
            width: 100%;
            margin-left: 0;
            justify-content: space-between;
        }
    }
