/* AdsGame extras on top of OA moban/style — metric cards + tables */

.header-content,
.main-content {
    max-width: 1920px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-year-charts .chart-card {
    min-height: 420px;
    margin-bottom: 0;
}

.dash-year-plats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-year-plat {
    min-width: 0;
}

.dash-year-plat-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-primary);
}

.dash-year-plat-name i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dash-year-plat-name.is-baidu i { background: #4285f4; }
.dash-year-plat-name.is-360 i { background: #34d399; }

.dash-year-geo {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(168px, 0.8fr);
    gap: 12px 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(127, 127, 127, 0.12);
    align-items: start;
}

.dash-year-geo-k {
    font-size: 12px;
    font-weight: 650;
    color: #a1a1aa;
    margin-bottom: 10px;
}

.dash-year-region-legend {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
}

.dash-year-region-legend li {
    padding: 2px 0;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 12px;
    border-bottom: 0;
}

.dash-year-region-legend i {
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.dash-year-region-legend span {
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-year-region-legend b {
    display: inline;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
    white-space: nowrap;
}

.dash-year-peaks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-year-peaks li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 8px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
    font-size: 12px;
}

.dash-year-peaks li:last-child {
    border-bottom: 0;
}

.dash-year-peaks b {
    font-size: 13px;
    font-weight: 650;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.dash-year-peaks em {
    font-style: normal;
    color: #71717a;
    white-space: nowrap;
}

.dash-year-peaks strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 3.2em;
    text-align: right;
}

.dash-year-peaks li.is-hot b,
.dash-year-peaks li.is-hot strong {
    color: #fbbf24;
}

@media (max-width: 720px) {
    .dash-year-geo {
        grid-template-columns: 1fr;
    }

    .dash-year-region-legend {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.metric-card.large {
    padding: 24px;
}

.dash-today-body {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.dash-today-main {
    min-width: 0;
    flex: 1;
}

.dash-today-main .card-header {
    margin-bottom: 8px;
}

.dash-today-main .card-info .card-sub {
    margin-top: 2px;
}

.dash-today-n {
    color: var(--text-secondary);
}

.dash-today-main .card-value {
    margin-top: 0;
}

.dash-today-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 132px;
    padding-left: 14px;
    border-left: 1px solid var(--border-color);
}

.dash-today-plats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.dash-today-plats .card-account-row,
.dash-today-kpi .card-account-row {
    gap: 8px;
}

.dash-today-kpi .card-account-num {
    font-size: 12px;
}

.dash-today-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-today-kpi span {
    font-size: 12px;
    color: var(--text-secondary);
}

.dash-today-kpi b {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--text-primary);
}

a.metric-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.metric-card-link .card-sub {
    color: #8b9cff;
}

.metric-card.chart-card {
    min-height: 280px;
}

.metric-card.chart-wide {
    min-height: 320px;
    margin-bottom: 24px;
}

.dash-darkhorse td:first-child {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-darkhorse .dash-rank {
    display: inline-block;
    min-width: 1.35em;
    margin-right: 6px;
    color: #a1a1aa;
    font-variant-numeric: tabular-nums;
}

.dash-darkhorse .profit-pos {
    color: #ef4444;
    font-weight: 700;
}

.dash-darkhorse .profit-neg {
    color: #22c55e;
    font-weight: 700;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #fff;
}

.card-icon.sales { background: var(--gradient-green); }
.card-icon.ads { background: var(--gradient-orange); }
.card-icon.profit { background: var(--gradient-purple); }
.card-icon.orders { background: var(--gradient-pink); }
.card-icon.products { background: var(--gradient-blue); }
.card-icon.comparison { background: var(--gradient-purple); }

.card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 0;
    letter-spacing: -0.5px;
}

.card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-card);
}

.status-pill.ok {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
}

.status-pill.warn {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.status-pill.danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

.data-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
}

.data-table-wrapper h2,
.metric-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.data-table-wrapper h2.mt {
    margin-top: 28px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(102, 126, 234, 0.1);
}

.data-table th {
    padding: 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

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

.click-device {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.click-mac {
    max-width: 190px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.click-same {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.16);
    color: #a5b4fc;
    font-size: 11px;
    font-family: inherit;
}

.click-os {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.click-os-pc {
    background: rgba(161, 161, 170, 0.16);
    color: #a1a1aa;
}

.click-os-linux {
    background: rgba(34, 211, 238, 0.16);
    color: #22d3ee;
}

.click-os-android {
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
}

.click-os-ios {
    background: rgba(96, 165, 250, 0.16);
    color: #60a5fa;
}

.click-os-mac {
    background: rgba(192, 132, 252, 0.16);
    color: #c084fc;
}

.click-os-mobile {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.click-other td {
    padding-top: 0;
    padding-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.click-other-item {
    display: inline-block;
    margin: 0 14px 0 0;
}

.click-other-item b {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 4px;
}

.muted {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.ip-cell {
    line-height: 1.35;
}

.ip-region {
    margin-top: 2px;
    font-size: 12px;
    color: #a1a1aa;
}

.coming-card {
    text-align: center;
    padding: 60px 20px;
}

.coming-card .coming-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #667eea;
}

.nav-menu a.active::after {
    display: none;
    content: none;
}

.nowrap { white-space: nowrap; }

.cell-title {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-baidu {
    background: rgba(66, 133, 244, 0.2);
    color: #5b9cfb;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-360 {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-hub {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
}

.auto-target-btn {
    border: 0;
    border-radius: 6px;
    min-width: 36px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    color: #fff;
}

.auto-target-btn.on {
    background: #4285f4;
}

.auto-target-btn.off {
    background: #71717a;
}

.auto-target-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ads-auto-target-hint {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.ads-auto-target-hint.on {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.ads-auto-target-hint.off {
    background: rgba(161, 161, 170, 0.1);
    color: var(--text-secondary);
}
    color: #10b981;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-plain {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-baidu,
.badge-360,
.badge-hub,
.badge-plain {
    white-space: nowrap;
}

.badge-paid {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-pending {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-expired,
.badge-cancelled {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--bg-card);
    text-decoration: none;
    font-size: 14px;
}

a.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-tab.active {
    color: #fff;
    background: var(--gradient-blue);
    border-color: transparent;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

a.pagination-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination-btn.active {
    color: #fff;
    background: var(--gradient-blue);
    border-color: transparent;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    display: block;
}

.product-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-module {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    min-height: 118px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 36px 18px 22px;
    position: relative;
    overflow: hidden;
    cursor: default;
    animation: productIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(min(var(--i, 0), 12) * 40ms);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}

.product-module.is-live {
    border-color: rgba(102, 126, 234, 0.28);
    background:
        linear-gradient(90deg, rgba(102, 126, 234, 0.10) 0, rgba(118, 75, 162, 0.04) 96px, transparent 180px),
        var(--bg-card);
    box-shadow: inset 3px 0 0 #667eea;
}

.product-module.is-live::after {
    background: radial-gradient(circle at 10% 50%, rgba(102, 126, 234, 0.16), transparent 48%);
}

.product-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-module::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 50%, rgba(102, 126, 234, 0.12), transparent 46%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-module:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(102, 126, 234, 0.18);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.product-module.is-live:hover {
    border-color: rgba(102, 126, 234, 0.48);
    background:
        linear-gradient(90deg, rgba(102, 126, 234, 0.14) 0, rgba(118, 75, 162, 0.06) 110px, transparent 200px),
        var(--bg-card-hover);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(102, 126, 234, 0.2), inset 3px 0 0 #818cf8;
}

.product-module:hover::before,
.product-module:hover::after {
    opacity: 1;
}

.product-module:active {
    transform: translateY(-1px) scale(0.997);
}

@keyframes productIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-module-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 160px;
    flex: 0 1 200px;
    position: relative;
    z-index: 1;
}

.product-rank {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.product-rank.top-1 {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.product-rank.top-2 {
    color: #fff;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    border-color: transparent;
}

.product-rank.top-3 {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: transparent;
}

.product-module-info {
    min-width: 0;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-id {
    font-size: 12px;
    color: var(--text-muted);
}

.product-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 8px 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.32);
}

.product-live-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.product-hist-tag {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: #a1a1aa;
    background: rgba(161, 161, 170, 0.12);
    border: 1px solid rgba(161, 161, 170, 0.28);
}

.product-module-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 650;
    color: var(--text-primary);
    line-height: 1.35;
}

.product-today-sum {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 0 1 168px;
    min-width: 148px;
    width: 168px;
    min-height: 92px;
    margin-left: auto;
    padding: 10px 14px 11px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.16);
    position: relative;
    z-index: 1;
}

.product-today-sum .product-today-kicker,
.product-alert .product-today-kicker {
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.product-alert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 0 1 168px;
    min-width: 148px;
    width: 168px;
    min-height: 92px;
    padding: 10px 14px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.product-alert.is-ok {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.14);
}

.product-alert.is-watch {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.28);
}

.product-alert.is-watch .product-today-kicker,
.product-alert.is-watch strong {
    color: #fbbf24;
}

.product-alert.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.product-alert.is-warn .product-today-kicker,
.product-alert.is-warn strong {
    color: #f59e0b;
}

.product-alert.is-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.38);
}

.product-alert.is-danger .product-today-kicker,
.product-alert.is-danger strong {
    color: #f87171;
}

.product-alert-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.product-alert-body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-alert-body span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
    word-break: break-word;
}

.product-today-sum-metrics.is-history {
    display: none;
}

html.show-product-history .product-today-sum-metrics.is-live {
    display: none;
}

html.show-product-history .product-today-sum-metrics.is-history {
    display: flex;
}

html:not(.show-product-history) .product-today-account.is-historic {
    display: none;
}

.pagination-btn.js-history-toggle.is-on {
    border-color: rgba(102, 126, 234, 0.55);
    color: #c4b5fd;
}

.product-today-sum-metrics {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-today-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.product-today-metric span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
}

.product-today-metric strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    line-height: 1.2;
}

.product-today-metric strong.profit-pos {
    color: #ef4444;
}

.product-today-metric strong.profit-neg {
    color: #22c55e;
}

.product-today-metric strong em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 500;
    color: var(--text-secondary);
}

.product-today {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 92px;
    padding: 0;
    background: none;
    border: none;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.product-today-accounts {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    min-height: 0;
}

.product-today-account {
    flex: 0 0 168px;
    width: 168px;
    min-width: 168px;
    max-width: 168px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-today-account-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-today-acc {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-today-acc .badge-baidu,
.product-today-acc .badge-360 {
    flex-shrink: 0;
    padding: 1px 6px;
    font-size: 11px;
}

.product-today-acc-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-today-none {
    font-size: 13px;
    color: var(--text-muted);
}

.product-today.is-empty .product-today-none {
    color: var(--text-muted);
}

.product-module-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 148px;
    width: 168px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: 12px;
    padding-right: 2px;
}

.product-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.product-stat span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
}

.product-stat strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.domain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.domain-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: var(--text-primary);
    font-size: 12px;
    word-break: break-all;
}

@media (max-width: 960px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

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

    .page-title {
        font-size: 32px;
    }

    .product-module {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }

    .product-today-sum {
        min-width: 0;
        width: auto;
        margin-left: 0;
        order: 2;
    }

    .product-alert {
        min-width: 0;
        width: auto;
        order: 3;
    }

    .product-today {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        order: 4;
    }

    .product-today-accounts {
        flex-wrap: wrap;
    }

    .product-module-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        min-width: 0;
        margin-left: 0;
        padding-right: 0;
        gap: 8px 12px;
        order: 5;
    }

    .product-module-main {
        order: 1;
    }

    .product-stat {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        padding: 8px 12px;
    }
}

a.channel-module {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.page-back {
    margin: -8px 0 18px;
}

.page-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.page-back a:hover {
    color: var(--text-primary);
}

.monitor-url {
    width: 100%;
    min-height: 72px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.secret-status {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--text-primary);
    font-size: 14px;
}

.settings-card + .settings-card,
form.settings-card {
    margin-top: 16px;
}

.ads-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ads-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ads-auto-hint {
    color: var(--text-muted, #8b97a8);
    font-size: 13px;
    white-space: nowrap;
}

.ads-actions .pagination-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ads-sync-banner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ads-sync-banner i {
    color: #8b9ef8;
}

.ads-sync-meta {
    margin: 0 0 16px;
    font-size: 13px;
}

.ads-account-card.budget-warn {
    border-color: rgba(251, 191, 36, 0.55);
}

.ads-account-card.budget-danger {
    border-color: rgba(248, 113, 113, 0.7);
}

.budget-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 12px 0 6px;
}

.budget-bar {
    height: 100%;
    background: var(--gradient-blue);
}

.budget-warn .budget-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.budget-danger .budget-bar {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.quota-panel {
    margin-bottom: 24px;
}

.dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-panel h2 {
    margin: 0 0 16px;
}

.dash-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dash-panel-head h2 {
    margin: 0;
}

.dash-panel-head span {
    font-size: 12px;
    color: #71717a;
}

.dash-pies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dash-pie-item {
    display: block;
    text-align: center;
    color: inherit;
    text-decoration: none;
    padding: 4px 4px 8px;
    border-radius: 12px;
}

a.dash-pie-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.dash-pie-item .dash-pie-box {
    margin: 0 auto 8px;
}

.dash-pie-name {
    font-size: 14px;
    font-weight: 650;
}

.dash-pie-sub,
.dash-pie-meta {
    font-size: 12px;
    color: #71717a;
    line-height: 1.4;
}

.dash-pie-sub {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-pie-item.is-over .dash-pie-meta {
    color: #ef4444;
}

.dash-pie-row {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.dash-pie-box {
    position: relative;
    width: 176px;
    height: 176px;
}

.dash-pie-sm {
    width: 148px;
    height: 148px;
}

.dash-pie-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.dash-pie-center strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dash-pie-center span {
    margin-top: 4px;
    font-size: 12px;
    color: #71717a;
}

.dash-legend {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 7px 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
    font-size: 13px;
}

.dash-legend li:last-child {
    border-bottom: 0;
}

.dash-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}

.dash-legend span {
    min-width: 0;
    line-height: 1.35;
}

.dash-legend em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #71717a;
    margin-top: 2px;
}

.dash-legend b {
    font-weight: 650;
    white-space: nowrap;
}

.dash-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 0;
    font-size: 12px;
    color: #71717a;
}

.dash-foot a {
    color: var(--text-primary);
}

.dash-words {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.dash-word-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.dash-word-stat {
    display: block;
    padding: 16px 16px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: inherit;
    text-decoration: none;
}

a.dash-word-stat:hover {
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

.dash-word-click {
    display: grid;
    grid-template-columns: minmax(108px, 0.72fr) minmax(0, 1.28fr);
    gap: 10px 16px;
    align-items: center;
}

.dash-click-head b {
    margin-bottom: 6px;
}

.dash-click-mix {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    min-width: 0;
}

.dash-pie-xs {
    width: 92px;
    height: 92px;
}

.dash-click-legend li {
    padding: 3px 0;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 12px;
}

.dash-click-legend i {
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.dash-word-click .dash-click-legend b {
    display: inline;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
    color: #a1a1aa;
    white-space: nowrap;
}

.dash-word-k {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 6px;
}

.dash-word-k.add { color: #34d399; }
.dash-word-k.neg { color: #f87171; }
.dash-word-k.discover { color: #fbbf24; }
.dash-word-k.click { color: #667eea; }

.dash-word-stat b {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.dash-word-stat em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #71717a;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .dash-split,
    .dash-pie-row,
    .dash-word-top,
    .dash-pies {
        grid-template-columns: 1fr;
    }

    .dash-word-click {
        grid-template-columns: 1fr;
    }

    .dash-today-body {
        flex-wrap: wrap;
    }

    .dash-today-side {
        flex-direction: row;
        min-width: 0;
        width: 100%;
        padding-left: 0;
        border-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

    .dash-pie-box,
    .dash-pie-sm {
        margin: 0 auto;
    }
}

.quota-grid {
    margin-bottom: 0;
}

.quota-card.quota-warn {
    border-color: rgba(251, 191, 36, 0.55);
}

.quota-card.quota-danger {
    border-color: rgba(248, 113, 113, 0.7);
}

.quota-card .card-value {
    font-size: 28px;
}

.quota-card.quota-warn .budget-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.quota-card.quota-danger .budget-bar {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.ads-error {
    color: #f87171 !important;
    margin-top: 10px;
    word-break: break-all;
}

.ads-unlinked {
    color: #fbbf24 !important;
}

.ads-table td .muted {
    font-size: 12px;
    margin-top: 4px;
}

.kw-check-col {
    width: 42px;
    text-align: center;
    vertical-align: middle;
}

.kw-check,
.kw-check-all {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4285f4;
    cursor: pointer;
    vertical-align: middle;
}

.kw-bulk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(66, 133, 244, 0.12);
    border: 1px solid rgba(66, 133, 244, 0.35);
}

.kw-bulk-bar[hidden] {
    display: none;
}

.kw-bulk-count {
    font-weight: 650;
    margin-right: 4px;
}

.kw-bulk-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e8eaf2;
    border-radius: 6px;
    padding: 4px 12px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.kw-bulk-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.kw-bulk-btn.danger {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.45);
}

.kw-bulk-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.bid-edit-btn,
.match-edit-btn {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: underline dotted rgba(232, 234, 242, 0.45);
    text-underline-offset: 3px;
}

.bid-edit-btn:hover,
.match-edit-btn:hover {
    color: #93c5fd;
    text-decoration-color: #93c5fd;
}

.bid-edit-btn:disabled,
.match-edit-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.match-edit-select {
    border: 1px solid rgba(147, 197, 253, 0.55);
    background: rgba(15, 23, 42, 0.75);
    color: #e8eaf2;
    border-radius: 4px;
    padding: 2px 4px;
    font: inherit;
}

.bid-edit-input {
    width: 5.5rem;
    border: 1px solid rgba(147, 197, 253, 0.55);
    background: rgba(15, 23, 42, 0.75);
    color: #e8eaf2;
    border-radius: 4px;
    padding: 2px 6px;
    font: inherit;
    text-align: right;
}

.ads-table-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ads-table-head h2 {
    margin-bottom: 0;
}

.ads-sort-hint {
    margin: 0;
    font-size: 13px;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    color: #8b9ef8;
}

.data-table th .sort-icon {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.35;
}

.data-table th[aria-sort] .sort-icon {
    opacity: 0.9;
    color: #8b9ef8;
}

.ads-table .cell-title,
.ads-table a.cell-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    max-width: 280px;
}

.ads-table a.cell-title:hover {
    color: #8b9ef8;
}

.ads-entity-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ads-tab-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ads-tab-tools .ads-pull-form {
    display: inline-flex;
    margin: 0;
}

.ads-tab-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #1a1a2e;
    color: #a1a1aa;
}

.ads-tab-search:focus-within {
    border-color: #667eea;
}

.ads-tab-search-go {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ads-tab-search-input {
    width: 200px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.ads-tab-search-input::placeholder {
    color: #71717a;
}

.ads-tab-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.kw-index {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kw-index-input {
    width: 148px;
}

.kw-index-btn {
    min-height: 36px;
    white-space: nowrap;
}

.kw-index-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.kw-index-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 280px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #16162a;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.kw-index-word {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.kw-index-pv {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kw-index-pv span {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
}

.kw-index-meta,
.kw-index-note,
.kw-index-error {
    margin-top: 6px;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 1.5;
}

.kw-index-error {
    color: #f0a0a0;
}

.kw-index-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.kw-index-reason {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.18);
    color: #c7d2fe;
    font-size: 12px;
}

.ads-table-row.is-hidden,
.ads-table tbody tr.is-hidden {
    display: none !important;
}

.plan-name-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.plan-id {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.quality-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1;
    color: #fbbf24;
}

.quality-stars .far.fa-star {
    color: rgba(251, 191, 36, 0.28);
}

.ads-table td[data-key="region"],
.ads-table td[data-key="schedule"],
.ads-table td[data-key="plan"],
.ads-table td[data-key="unit"] {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 220px;
    line-height: 1.45;
}

.ads-table td[data-key="plan"] a,
.ads-table td[data-key="unit"] a,
.ads-table td[data-key="keyword"] a {
    color: inherit;
    text-decoration: none;
}

.ads-table td[data-key="plan"] a:hover,
.ads-table td[data-key="unit"] a:hover,
.ads-table td[data-key="keyword"] a:hover {
    color: #8b9ef8;
}

.ads-table td[data-key="summary"] {
    min-width: 420px;
}

.pic-add {
    margin: 0 0 12px;
}

.pic-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pic-add-row select,
.pic-add-row input,
.pic-add-row textarea {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
}

.pic-add-row textarea {
    min-width: 220px;
}

.pic-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
}

.pic-theme {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(139, 158, 248, 0.16);
    font-size: 12px;
}

.pic-theme-edit,
.pic-delete {
    background: none;
    border: none;
    padding: 0;
    color: #8b9ef8;
    cursor: pointer;
    font: inherit;
}

.pic-delete {
    color: #e07a7a;
}

.pic-theme-box {
    width: 220px;
    min-height: 64px;
}

.adv-shots {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 6px;
}

.adv-shots a {
    display: block;
    line-height: 0;
}

.adv-shots img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.creative-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    max-width: 420px;
}

.creative-desc + .creative-desc {
    margin-top: 4px;
}

.neg-btn {
    background: none;
    border: none;
    padding: 0;
    color: #8b9ef8;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.neg-btn:hover {
    text-decoration: underline;
}

.ads-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ads-modal.is-open {
    display: flex !important;
}

.ads-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 20, 0.55);
}

.ads-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(580px, 92vw);
    max-height: 80vh;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid #34345a;
    border-radius: 16px;
    box-shadow: 0 24px 64px #000;
}

.ads-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #2c2c4a;
}

.ads-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.ads-modal-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #a1a1aa;
}

.ads-modal-x {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #2a2a48;
    border: 1px solid #3a2a5a;
    color: #e4e4e7;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.ads-modal-x:hover {
    background: #34345a;
    color: #fff;
}

.ads-modal-body {
    overflow: auto;
    padding: 16px 20px;
    background: #16162b;
}

.neg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.neg-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 10px;
    background: #24243c;
    border: 1px solid #3a3a5c;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
}

.neg-list li.neg-empty {
    width: 100%;
    justify-content: center;
    padding: 28px 12px;
    background: transparent;
    border: none;
    color: #a1a1aa;
}

.neg-word {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neg-match {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    color: #fff;
}

.neg-match.is-phrase {
    background: #2563eb;
}

.neg-match.is-exact {
    background: #059669;
}

.ads-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 14px 20px 16px;
    border-top: 1px solid #2c2c4a;
    background: #1a1a2e;
}

.ads-modal-close {
    min-width: 88px;
    padding: 8px 18px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ads-modal-close:hover {
    background: #1d4ed8;
}

.ads-table th[data-type="num"],
.ads-table td[data-type="num"],
.ads-table td.num {
    text-align: right;
}

.ads-table th[data-type="num"] {
    padding-right: 18px;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.page-back .crumb-sep {
    margin: 0 8px;
    color: var(--text-secondary);
}

.page-back span:last-child {
    color: var(--text-primary);
}

.ads-toolbar .filter-tabs {
    margin-bottom: 0;
}

.ads-date {
    position: relative;
    flex-shrink: 0;
}

.ads-toolbar .ads-date {
    margin-left: auto;
}

.ads-entity-tabs .ads-date {
    margin-left: 0;
}

.ads-pull-btn {
    background: var(--gradient-blue);
    border: none;
    color: #fff;
}

.ads-pull-btn:hover:not(:disabled) {
    opacity: 0.92;
    color: #fff;
}

.date-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 168px;
    min-height: 36px;
    padding: 0 14px;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.date-trigger i {
    color: #a1a1aa;
    font-size: 14px;
}

.date-trigger:hover,
.ads-date.is-open .date-trigger {
    border-color: #667eea;
    color: #fff;
}

.ads-date.is-open .date-trigger i {
    color: #8b9ef8;
}

.date-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 90;
    display: none;
    width: 640px;
    max-width: min(640px, 92vw);
    background: #1a1a2e;
    border: 1px solid #34345a;
    border-radius: 16px;
    box-shadow: 0 24px 64px #000;
    color: #fff;
    overflow: hidden;
}

.ads-toolbar .date-pop,
.ads-entity-tabs .date-pop {
    left: auto;
    right: 0;
}

.ads-date.is-open .date-pop {
    display: flex;
}

.date-presets {
    width: 118px;
    flex-shrink: 0;
    padding: 10px 8px;
    border-right: 1px solid #2c2c4a;
    background: #16162b;
}

.date-preset {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
}

.date-preset:hover {
    background: #24243c;
    color: #fff;
}

.date-preset.is-on {
    background: var(--gradient-blue);
    color: #fff;
}

.date-main {
    flex: 1;
    min-width: 0;
    padding: 12px 16px 16px;
    background: #1a1a2e;
}

.date-range-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.date-range-sep {
    color: #a1a1aa;
    font-size: 13px;
}

.date-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #16162b;
    color: #fff;
    font-size: 13px;
    color-scheme: dark;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.date-apply {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: var(--gradient-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.date-apply:hover {
    opacity: 0.92;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.date-nav-grow {
    flex: 1;
}

.date-nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
}

.date-nav-btn:hover:not(:disabled) {
    background: #24243c;
    color: #fff;
}

.date-nav-btn:disabled {
    color: #3f3f52;
    cursor: default;
}

.date-cal-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.date-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
    min-height: 28px;
}

.date-cal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 650;
    color: #fff;
}

.date-day.is-edge {
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.7);
}

.date-cal-week,
.date-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.date-cal-week span {
    font-size: 12px;
    color: #71717a;
    padding: 4px 0;
}

.date-day {
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
}

.date-day.is-empty {
    visibility: hidden;
}

.date-day.is-future,
.date-day:disabled {
    color: #52525b;
    cursor: default;
}

.date-day.is-in {
    background: rgba(102, 126, 234, 0.28);
    color: #fff;
}

.date-day.is-on {
    background: var(--gradient-blue);
    color: #fff;
}

.date-day:not(:disabled):hover {
    background: #24243c;
}

.date-day.is-on:hover {
    background: var(--gradient-blue);
}

.analytics-query {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.analytics-query-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analytics-date-label {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.analytics-query .query-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-query .query-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analytics-query .query-btn:hover {
    background: var(--bg-tertiary, #16213e);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.analytics-query .query-btn.active {
    background: var(--primary-blue, #2563eb);
    color: #fff;
    border-color: var(--primary-blue, #2563eb);
}

.analytics-query .query-btn.custom {
    background: var(--gradient-purple, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: #fff;
    border-color: transparent;
}

.analytics-query .query-btn.custom:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 120%);
}

.analytics-top-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.analytics-top-stats b {
    font-weight: 700;
}

.analytics-top-stats b:not(.profit-pos):not(.profit-neg) {
    color: var(--text-primary);
}

.analytics-custom-range {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.analytics-custom-range[hidden] {
    display: none;
}

.analytics-custom-range label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.analytics-custom-range input[type="date"] {
    min-width: 180px;
    padding: 10px 16px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.profit-pos {
    color: #ef4444;
}

.profit-neg {
    color: #22c55e;
}

.data-table-wrapper.analytics-wrap {
    padding: 0;
    overflow: hidden;
}

.analytics-wrap .table-container {
    overflow: visible;
    padding: 0;
    position: relative;
}

.analytics-sticky-header {
    position: fixed;
    top: 70px;
    z-index: 40;
    background: #0f0f23;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.analytics-wrap .excel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    line-height: 1.45;
    table-layout: fixed;
}

.analytics-wrap .excel-table th,
.analytics-wrap .excel-table td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.analytics-wrap .excel-table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.4px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.analytics-wrap .excel-table th:first-child,
.analytics-wrap .excel-table td:first-child {
    border-left: none;
}

.analytics-wrap .excel-table th:last-child,
.analytics-wrap .excel-table td:last-child {
    border-right: none;
}

.analytics-wrap .excel-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.045);
}

.analytics-wrap .excel-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.analytics-wrap .excel-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.analytics-wrap .excel-table tbody tr:last-child td {
    border-bottom: none;
}

.analytics-wrap .excel-table .product-column {
    width: 220px;
    min-width: 180px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    background: inherit;
}

.analytics-wrap .excel-table th.product-column {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.analytics-wrap .excel-table .product-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 0 2px 2px 0;
}

.analytics-wrap .excel-table .product-column.high-roi {
    color: #dc2626;
    font-weight: 800;
}

.analytics-wrap .excel-table .product-column.loss-highlight {
    color: #16a34a;
    font-weight: 700;
}

.analytics-wrap .excel-table .platform-section {
    background: rgba(255, 255, 255, 0.035);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.analytics-wrap .excel-table .platform-section.baidu {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(66, 133, 244, 0.15) 100%);
    color: #4285f4;
    border-left: 3px solid #4285f4;
}

.analytics-wrap .excel-table .platform-section.qh360 {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #34d399;
    border-left: 3px solid #34d399;
}

.analytics-wrap .excel-table .platform-section.total {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.12) 100%);
    color: #7c3aed;
    border-left: 3px solid #7c3aed;
}

.analytics-wrap .excel-table .data-column {
    text-align: right;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", ui-monospace, monospace;
    font-weight: 600;
    font-size: 14px;
    width: 88px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.analytics-wrap .excel-table th.data-column,
.analytics-wrap .excel-table td.data-column {
    padding: 12px 8px;
}

.analytics-wrap .excel-table .data-column.currency {
    color: #3b82f6;
    font-weight: 700;
}

.analytics-wrap .excel-table .data-column.revenue {
    color: #3b82f6;
    font-weight: 600;
}

.analytics-wrap .excel-table .data-column.profit.positive {
    color: #ef4444;
    font-weight: 800;
}

.analytics-wrap .excel-table .data-column.profit.negative {
    color: #22c55e;
    font-weight: 800;
}

.analytics-wrap .excel-table .data-column.roi {
    color: #fff;
    font-weight: 700;
}

.analytics-wrap .excel-table tr.report-total td {
    font-weight: 800;
    background: rgba(102, 126, 234, 0.08);
}

.analytics-wrap .excel-table .empty-data {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.analytics-wrap .excel-table .empty-data i {
    display: block;
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.analytics-hint {
    padding: 12px 20px 16px;
}

.card-mini {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.analytics-metrics {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.analytics-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.analytics-metric .card-header {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.analytics-metric .card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.analytics-metric .card-info h3 {
    flex-shrink: 0;
    line-height: 1.2;
}

.analytics-metric .card-value {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.analytics-metric .card-account-split {
    flex: 0 0 auto;
    margin-top: 0;
    padding-left: 14px;
    border-left: 1px solid var(--border-color);
    min-width: 118px;
}

.card-account-split {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-account-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.card-account-name {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.card-account-name.is-baidu {
    color: #60a5fa;
}

.card-account-name.is-360 {
    color: #34d399;
}

.card-account-num {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", ui-monospace, monospace;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    font-size: 13px;
}

.preview-btn,
.preview-refresh {
    background: none;
    border: none;
    padding: 0;
    color: #8b9ef8;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.preview-btn:hover,
.preview-refresh:hover {
    text-decoration: underline;
}

.preview-btn:disabled,
.preview-refresh:disabled {
    opacity: 0.55;
    cursor: wait;
    text-decoration: none;
}

.preview-result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 148px;
}

.preview-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 12px;
}

.preview-device {
    color: #a1a1aa;
    font-weight: 600;
    width: 28px;
    flex-shrink: 0;
}

.preview-slot {
    color: #71717a;
}

.preview-slot.is-on {
    color: #34d399;
    font-weight: 700;
}

.preview-slot.is-own {
    color: #fbbf24;
}

.preview-refresh {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.preview-error {
    color: #f87171;
    font-size: 12px;
    margin-bottom: 4px;
    max-width: 180px;
}

.hint-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.hint-add {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.hint-neg {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
}

.hint-dryrun {
    background: rgba(167, 139, 250, 0.18);
    color: #c4b5fd;
}

.ads-review-tabs {
    margin: -4px 0 12px;
}

.kw-review-rejected {
    color: #f87171;
    font-weight: 600;
}

.kw-review-pending {
    color: #fbbf24;
    font-weight: 600;
}

.review-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: #a1a1aa;
    border-radius: 6px;
    padding: 2px 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.review-btn:hover {
    color: #fff;
    border-color: #667eea;
}

.review-btn.is-on[data-decision="add"] {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    border-color: transparent;
}

.review-btn.is-on[data-decision="neg"] {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
    border-color: transparent;
}

.review-btn.is-on[data-decision="ignore"] {
    background: rgba(161, 161, 170, 0.18);
    color: #d4d4d8;
    border-color: transparent;
}

.review-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.page-added .ads-table th,
.page-added .ads-table td {
    padding: 10px 6px;
}

.page-added .ads-table th[data-type="num"] {
    padding-right: 10px;
}

.page-added .ads-table td[data-key="status"] {
    white-space: normal;
    max-width: 4.5em;
    line-height: 1.35;
}

.page-added .ads-table .cell-title,
.page-added .ads-table a.cell-title {
    max-width: 220px;
}

.page-added .cell-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 160px;
    line-height: 1.35;
}

.page-added th[data-key="origin"],
.page-added td[data-key="origin"] {
    text-align: left;
}

.page-added td[data-key="origin"] .cell-stack {
    max-width: 120px;
}

.page-added .cell-stack-main {
    color: var(--text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-added .cell-stack-sub {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.added-toolbar {
    align-items: center;
}

.added-toolbar .ads-date {
    margin-left: 0;
}

.added-toolbar .ads-tab-search {
    margin: 0;
}

.notify-kinds {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify-kind {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

.notify-kind input {
    margin-top: 4px;
}

.notify-kind strong {
    display: block;
    font-size: 14px;
}

.notify-kind .muted {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.notify-kind.ai-feed {
    cursor: default;
}

.settings-home-hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
}

.ai-studio-out {
    margin: 12px 0 0;
    padding: 12px 14px;
    max-height: 420px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
}

.hint-discover {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.discover-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 420px;
}

.discover-query {
    display: inline-block;
    font-size: 12px;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discover-query:hover {
    color: #fff;
    border-color: rgba(251, 191, 36, 0.55);
}

.discover-unit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}

.discover-unit:last-child {
    margin-bottom: 0;
}

.discover-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.discover-dismiss-form {
    display: inline-flex;
    margin: 0;
}

.discover-dismiss {
    appearance: none;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: transparent;
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.2;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.discover-dismiss:hover {
    color: #fff;
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.75);
}

.ads-table-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.style-modal-card {
    width: min(920px, 96vw);
    max-height: calc(100vh - 48px);
}

.style-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.style-field[hidden] {
    display: none;
}

.style-field input,
.style-field select,
.style-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
}

.style-field select {
    background: #16162b;
    color: #fff;
    color-scheme: dark;
}

.style-field select option {
    background: #16162b;
    color: #fff;
}

.style-cards,
.style-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.style-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.style-card h4,
.style-links h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.style-shot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.style-shot img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.style-error {
    color: #e07a7a;
    margin: 0;
}

.style-edit {
    background: none;
    border: none;
    padding: 0;
    margin-right: 10px;
    color: #8b9ef8;
    cursor: pointer;
    font: inherit;
}

.creative-modal-card {
    max-height: calc(100vh - 48px);
}

.creative-modal-card .ads-modal-body {
    flex: 1;
    min-height: 0;
}

.copy-meter {
    margin: 0;
    font-size: 12px;
}

.creative-url-tools {
    display: flex;
}

@media (max-width: 720px) {
    .style-cards,
    .style-links {
        grid-template-columns: 1fr;
    }
}
