:root {
    --mt-bg: #eef3f8;
    --mt-panel: rgba(255, 255, 255, .88);
    --mt-panel-solid: #ffffff;
    --mt-panel-dark: #0f172a;
    --mt-border: rgba(15, 23, 42, .08);
    --mt-border-strong: rgba(15, 23, 42, .13);
    --mt-muted: #64748b;
    --mt-text: #0f172a;
    --mt-primary: #1d4d4f;
    --mt-primary-2: #0f766e;
    --mt-warning: #d97706;
    --mt-danger: #dc2626;
    --mt-info: #2563eb;
    --mt-success: #16a34a;
    --mt-radius-xl: 28px;
    --mt-radius-lg: 22px;
    --mt-radius-md: 16px;
    --mt-shadow-soft: 0 18px 45px rgba(15, 23, 42, .08);
    --mt-shadow-strong: 0 28px 70px rgba(15, 23, 42, .16);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(217, 119, 6, .10), transparent 32rem),
        radial-gradient(circle at 92% 6%, rgba(29, 77, 79, .13), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, var(--mt-bg) 100%);
    color: var(--mt-text);
}

.dashboard-shell--premium {
    display: grid;
    gap: 0;
}

.dashboard-hero--command {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--mt-radius-xl);
    padding: 30px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(29, 77, 79, .94)),
        radial-gradient(circle at top right, rgba(217, 119, 6, .30), transparent 28rem);
    box-shadow: var(--mt-shadow-strong);
}

.dashboard-hero--command::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, .9), transparent 72%);
    pointer-events: none;
}

.dashboard-hero--command::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow:
        0 0 0 38px rgba(255, 255, 255, .035),
        0 0 0 92px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.dashboard-hero__main,
.dashboard-hero__meta {
    position: relative;
    z-index: 1;
}

.dashboard-hero__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.dashboard-hero__copy {
    max-width: 980px;
}

.dashboard-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -.045em;
}

.dashboard-hero-subtitle {
    max-width: 880px;
    color: rgba(226, 232, 240, .78);
    font-size: 1rem;
    line-height: 1.62;
}

.dashboard-hero__actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 260px;
}

.dashboard-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-hero__meta-item {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
}

.dashboard-hero__meta-item span {
    display: block;
    margin-bottom: 5px;
    color: rgba(226, 232, 240, .62);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dashboard-hero__meta-item strong {
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    line-height: 1.35;
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    border: 1px solid rgba(187, 247, 208, .25);
    font-size: .82rem;
    font-weight: 800;
}

.dashboard-action-btn {
    border-radius: 999px;
    font-weight: 800;
    padding: 9px 15px;
}

.dashboard-search-panel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--mt-shadow-soft);
    backdrop-filter: blur(16px);
}

.dashboard-search-form {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.dashboard-search-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(29, 77, 79, .13), rgba(217, 119, 6, .12));
    color: var(--mt-primary);
    font-size: 1.4rem;
    font-weight: 900;
}

.dashboard-search-input {
    min-height: 46px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 15px;
    background: rgba(255, 255, 255, .86);
    box-shadow: none;
}

.dashboard-search-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-search-actions .btn {
    border-radius: 999px;
    font-weight: 800;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 146px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, var(--metric-glow, rgba(29, 77, 79, .10)), transparent 11rem),
        var(--mt-panel);
    box-shadow: var(--mt-shadow-soft);
    backdrop-filter: blur(14px);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--metric-color, var(--mt-primary));
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -32px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: var(--metric-glow, rgba(29, 77, 79, .10));
}

.metric-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: var(--metric-color, var(--mt-primary));
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.metric-label {
    color: var(--mt-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.metric-value {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: #0f172a;
    font-size: clamp(1.55rem, 2.6vw, 2.18rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.metric-value--compact {
    font-size: clamp(1.2rem, 1.8vw, 1.72rem);
}

.metric-caption {
    position: relative;
    z-index: 1;
    margin-top: 9px;
    color: var(--mt-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.metric-primary {
    --metric-color: var(--mt-primary);
    --metric-glow: rgba(29, 77, 79, .13);
}

.metric-warning {
    --metric-color: var(--mt-warning);
    --metric-glow: rgba(217, 119, 6, .15);
}

.metric-info {
    --metric-color: var(--mt-info);
    --metric-glow: rgba(37, 99, 235, .12);
}

.metric-secondary {
    --metric-color: #64748b;
    --metric-glow: rgba(100, 116, 139, .13);
}

.metric-success {
    --metric-color: var(--mt-success);
    --metric-glow: rgba(22, 163, 74, .13);
}

.metric-danger {
    --metric-color: var(--mt-danger);
    --metric-glow: rgba(220, 38, 38, .13);
}

.dashboard-grid {
    display: grid;
    gap: 16px;
}

.dashboard-grid--attention {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .45fr);
}

.dashboard-grid--attention .ops-card--clusters {
    grid-column: 1 / -1;
}

.dashboard-grid--topics {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}

.dashboard-grid--risk-sync {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    align-items: start;
}

.dashboard-grid--geo {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
}

.dashboard-grid--sources {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.ops-card,
.ai-brief-card,
.sync-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: var(--mt-panel);
    box-shadow: var(--mt-shadow-soft);
    backdrop-filter: blur(16px);
}

.ops-card .card-header,
.sync-card__head {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(248, 250, 252, .72));
    border-bottom: 1px solid var(--mt-border);
}

.ops-kicker {
    margin-bottom: 4px;
    color: var(--mt-warning);
    font-size: .68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.ops-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 920;
    letter-spacing: -.018em;
}

.ops-subtitle {
    margin-top: 3px;
    color: var(--mt-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.ops-help {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 6px;
    padding: 2px 8px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    background: rgba(37, 99, 235, .07);
    color: #1d4ed8;
    font-size: .7rem;
    font-weight: 760;
    white-space: nowrap;
    cursor: help;
}

.ai-brief-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(29, 77, 79, .10), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 249, 255, .78));
}

.ai-brief-card__right {
    display: grid;
    align-content: center;
    gap: 10px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(29, 77, 79, .10);
    color: var(--mt-primary);
    font-size: .76rem;
    font-weight: 920;
}

.ai-summary {
    border: 1px solid var(--mt-border);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .72);
    line-height: 1.58;
}

.dashboard-day-brief {
    position: relative;
}

.dashboard-day-brief__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.2;
}

.dashboard-day-brief__icon,
.dashboard-btn-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.dashboard-day-brief__icon {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(29, 77, 79, .16), rgba(217, 119, 6, .16));
    border: 1px solid rgba(29, 77, 79, .13);
}

.dashboard-day-brief__icon::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--mt-primary);
    box-shadow: 8px -5px 0 -4px var(--mt-warning), -7px 6px 0 -4px var(--mt-info);
}

.ai-badge--icon::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mt-success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.dashboard-action-btn--generate,
.dashboard-action-btn--archive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.dashboard-btn-icon {
    width: 17px;
    height: 17px;
    position: relative;
}

.dashboard-btn-icon--spark::before,
.dashboard-btn-icon--spark::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.dashboard-btn-icon--spark::before {
    width: 3px;
    height: 15px;
    border-radius: 999px;
}

.dashboard-btn-icon--spark::after {
    width: 15px;
    height: 3px;
    border-radius: 999px;
}

.dashboard-btn-icon--archive {
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dashboard-btn-icon--archive::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 4px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.attention-list,
.signal-list,
.influence-list,
.sync-card__list,
.cluster-board__trends,
.cluster-board__clusters {
    display: grid;
}

.attention-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--mt-border);
    transition: background .16s ease, transform .16s ease;
}

.attention-row:hover {
    background: rgba(217, 119, 6, .055);
    transform: translateX(2px);
}

.attention-row__title {
    color: #0f172a;
    font-weight: 820;
    line-height: 1.35;
}

.attention-row__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--mt-muted);
    font-size: .8rem;
}

.attention-row__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.attention-metric {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(100, 116, 139, .18);
    border-radius: 999px;
    background: rgba(248, 250, 252, .9);
    color: #334155;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.15;
    cursor: help;
}

.attention-row__side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.attention-urgency {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: help;
}

.attention-urgency--critical {
    background: rgba(220, 38, 38, .12);
    color: #b91c1c;
}

.attention-urgency--growth {
    background: rgba(217, 119, 6, .14);
    color: #b45309;
}

.attention-urgency--watch {
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.attention-urgency--check {
    background: rgba(100, 116, 139, .13);
    color: #475569;
}

.attention-row__side strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 950;
}

.chart-card-body {
    position: relative;
    min-height: 310px;
    padding: 16px;
}

.chart-card-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-card-body-medium {
    min-height: 320px;
}

.chart-card-body-large {
    min-height: 380px;
}

.table-responsive--compact {
    max-height: 430px;
}

.dashboard-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(248, 250, 252, .96);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(29, 77, 79, .045);
}

.table thead th {
    color: var(--mt-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .055em;
    font-weight: 950;
    border-bottom-color: var(--mt-border-strong);
}

.table tbody td {
    font-size: .86rem;
    vertical-align: middle;
    border-color: var(--mt-border);
}

.sync-card {
    position: sticky;
    top: 14px;
}

.sync-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.sync-card__count {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--mt-warning), #f97316);
    box-shadow: 0 14px 26px rgba(217, 119, 6, .24);
    font-size: 1.35rem;
    font-weight: 950;
}

.sync-card__chart {
    height: 150px;
    padding: 14px 18px 4px;
}

/* Operational dashboard controls and health strip. */
.dashboard-shell--premium .dashboard-hero--command {
    min-height: 0;
    padding: 22px 24px;
}

.dashboard-shell--premium .dashboard-hero-subtitle {
    max-width: 760px;
    font-size: .86rem;
    line-height: 1.45;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: var(--mt-panel-solid);
}

/* Keep the period controls as a full-width row. */
.dashboard-shell--premium > .dashboard-toolbar {
    grid-column: 1 / -1;
    width: 100%;
}

.dashboard-period-form,
.dashboard-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-period-form label,
.dashboard-toolbar__meta {
    color: var(--mt-muted);
    font-size: .76rem;
    font-weight: 700;
}

.dashboard-period-form .form-select {
    width: 130px;
    min-height: 32px;
    border-radius: 8px;
    font-size: .78rem;
}

.dashboard-toolbar__meta {
    justify-content: flex-end;
    flex-wrap: wrap;
    font-weight: 600;
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.health-dot--warning { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .12); }
.health-dot--critical { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }

.metric-delta {
    min-height: 16px;
    color: var(--mt-muted);
    font-size: .67rem;
    font-weight: 750;
    line-height: 1.2;
}

.metric-delta--up { color: #15803d; }
.metric-delta--down { color: #b91c1c; }

@media (max-width: 767px) {
    .dashboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-toolbar__meta { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .dashboard-period-form { width: 100%; }
    .dashboard-period-form .form-select { flex: 1; width: auto; }
}

.sync-card__chart--sources {
    height: 172px;
    padding-top: 6px;
}

.sync-card__chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.wave-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 12px;
}

.wave-actions .btn {
    min-height: 30px;
    font-size: .72rem;
    font-weight: 780;
}

.wave-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 8px;
}

.wave-metric {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, .68);
}

.wave-metric span,
.wave-metric small {
    display: block;
    color: var(--mt-muted);
    font-size: .68rem;
    line-height: 1.2;
}

.wave-metric strong {
    display: block;
    margin: 2px 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.05;
    font-weight: 920;
}

.sync-item {
    display: grid;
    gap: 5px;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid var(--mt-border);
    transition: background .16s ease;
}

.sync-item:hover {
    background: rgba(217, 119, 6, .06);
}

.sync-item__text {
    color: #0f172a;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.32;
    text-decoration: none;
}

.sync-item__meta {
    color: var(--mt-muted);
    font-size: .77rem;
}

.sync-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sync-item__actions .btn {
    min-height: 28px;
    padding: 3px 8px;
    font-size: .68rem;
    font-weight: 760;
}

.signal-list--large {
    max-height: 520px;
    overflow: auto;
}

.signal-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--mt-border);
    transition: background .16s ease, transform .16s ease;
}

.signal-card:hover {
    background: rgba(29, 77, 79, .045);
    transform: translateX(2px);
}

.signal-card__mark {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, .16);
}

.signal-card__mark--danger {
    background: var(--mt-danger);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, .14);
}

.signal-card__mark--telegram {
    background: var(--mt-info);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .14);
}

.signal-card__mark--editorial {
    background: var(--mt-success);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, .14);
}

.signal-card__body strong {
    display: block;
    color: #0f172a;
    font-size: .9rem;
    line-height: 1.38;
}

.signal-card__title-link {
    display: block;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.34;
    text-decoration: none;
}

.signal-card__title-link:hover {
    color: var(--mt-primary);
}

.signal-card__body small {
    display: block;
    margin-top: 5px;
    color: var(--mt-muted);
    font-size: .78rem;
}

.signal-card__reason {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    color: #334155;
    font-size: .74rem;
    font-weight: 650;
}

.signal-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.editorial-cluster-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(217, 119, 6, .24);
    border-radius: 999px;
    background: rgba(217, 119, 6, .08);
    color: #92400e;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.editorial-cluster-link:hover {
    background: rgba(217, 119, 6, .14);
    color: #78350f;
}

.editorial-wave-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .12);
    color: #475569;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
}

.editorial-wave-badge--wave {
    background: rgba(217, 119, 6, .16);
    color: #b45309;
}

.influence-list {
    max-height: 420px;
    overflow: auto;
}

.influence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--mt-border);
}

.influence-item span:first-child {
    color: #0f172a;
    font-size: .9rem;
    font-weight: 760;
}

.influence-item--danger {
    background: rgba(220, 38, 38, .035);
}

.cluster-board {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.cluster-board__trends {
    border-right: 1px solid var(--mt-border);
}

.cluster-board__section-head {
    display: grid;
    gap: 3px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--mt-border);
    background: rgba(248, 250, 252, .68);
}

.cluster-board__section-head strong {
    color: #0f172a;
    font-size: .82rem;
    font-weight: 850;
}

.cluster-board__section-head span {
    color: var(--mt-muted);
    font-size: .72rem;
    line-height: 1.28;
}

.trend-card {
    display: grid;
    gap: 8px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--mt-border);
    transition: background .16s ease;
}

.trend-card:hover {
    background: rgba(29, 77, 79, .045);
}

.trend-card__text {
    color: #0f172a;
    font-weight: 820;
    line-height: 1.35;
}

.trend-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--mt-muted);
    font-size: .78rem;
}

.cluster-pill {
    display: grid;
    gap: 5px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--mt-border);
    transition: background .16s ease;
}

.cluster-pill:hover {
    background: rgba(29, 77, 79, .045);
}

.cluster-pill strong {
    color: #0f172a;
    line-height: 1.35;
}

.cluster-pill small {
    color: var(--mt-muted);
}

.card-header--telegram-rating {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.telegram-rating-board {
    display: grid;
}

.telegram-rating-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-bottom: 1px solid var(--mt-border);
    background: rgba(248, 250, 252, .54);
}

.telegram-rating-summary div {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-right: 1px solid var(--mt-border);
}

.telegram-rating-summary div:last-child {
    border-right: 0;
}

.telegram-rating-summary span {
    color: var(--mt-muted);
    font-size: .66rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.telegram-rating-summary strong {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 820;
    line-height: 1.1;
}

.telegram-rating-list {
    display: grid;
}

.telegram-rank-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px 16px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--mt-border);
    transition: background .16s ease;
}

.telegram-rank-card:hover {
    background: rgba(37, 99, 235, .045);
}

.telegram-rank-card__place {
    display: grid;
    place-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .1);
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 850;
}

.telegram-rank-card__body {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.telegram-rank-card__body strong {
    color: #0f172a;
    font-size: .86rem;
    font-weight: 620;
    line-height: 1.3;
}

.telegram-rank-card__body small {
    color: var(--mt-muted);
    font-size: .72rem;
}

.telegram-rank-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.telegram-rank-card__metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .1);
    color: #334155;
    font-size: .66rem;
    font-weight: 720;
    line-height: 1.15;
}

.source-chip {
    display: inline-flex;
    align-items: center;
    max-width: 230px;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .76rem;
    font-weight: 820;
}

.risk-badge {
    border-radius: 999px;
    font-weight: 900;
    padding: 5px 9px;
}

.empty-state {
    padding: 22px 18px;
    color: var(--mt-muted);
    font-size: .9rem;
    text-align: center;
}

.empty-state--small {
    padding: 14px 18px;
    font-size: .82rem;
}

@media (max-width: 1399px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid--sources {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    }

    .ops-card--source-chart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1199px) {
    .dashboard-grid--attention,
    .dashboard-grid--topics,
    .dashboard-grid--risk-sync,
    .dashboard-grid--geo {
        grid-template-columns: 1fr;
    }

    .sync-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .dashboard-hero__main,
    .ai-brief-card--wide,
    .cluster-board {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__main {
        flex-direction: column;
    }

    .dashboard-hero__actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .dashboard-hero__meta,
    .dashboard-grid--sources {
        grid-template-columns: 1fr;
    }

    .cluster-board__trends {
        border-right: 0;
        border-bottom: 1px solid var(--mt-border);
    }
}

@media (max-width: 767px) {
    .dashboard-hero--command,
    .dashboard-search-panel,
    .ops-card,
    .ai-brief-card,
    .sync-card {
        border-radius: 18px;
    }

    .dashboard-hero--command {
        padding: 20px;
    }

    .dashboard-search-form {
        grid-template-columns: 1fr;
    }

    .dashboard-search-icon {
        display: none;
    }

    .dashboard-search-actions .btn {
        flex: 1 1 45%;
    }

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

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .metric-card {
        min-height: 132px;
        padding: 15px;
    }

    .metric-value {
        font-size: 1.48rem;
    }

    .attention-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .attention-row__side {
        justify-items: start;
    }

    .chart-card-body-small,
    .chart-card-body-medium,
    .chart-card-body-large {
        min-height: 260px;
    }
}

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

/* =========================================================
   Compact mode: таблицы, списки, карточки
   ========================================================= */

/* Общая плотность таблиц */
.dashboard-shell--premium .table {
    font-size: .82rem;
    line-height: 1.28;
}

.dashboard-shell--premium .table th,
.dashboard-shell--premium .table td {
    padding: .42rem .56rem;
    vertical-align: middle;
}

/* Заголовки таблиц — меньше, спокойнее, без чрезмерного bold */
.dashboard-shell--premium .table thead th {
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .045em;
    line-height: 1.15;
    padding-top: .48rem;
    padding-bottom: .48rem;
}

/* Текст внутри таблиц */
.dashboard-shell--premium .table tbody td {
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.28;
}

/* Ссылки в таблицах — не такие жирные */
.dashboard-shell--premium .table a,
.dashboard-shell--premium .dashboard-table a {
    font-weight: 550 !important;
    line-height: 1.25;
}

/* Обычный fw-semibold в дашборде делаем спокойнее */
.dashboard-shell--premium .fw-semibold {
    font-weight: 550 !important;
}

.dashboard-shell--premium .fw-bold {
    font-weight: 650 !important;
}

/* Числа score оставляем заметными, но не огромными */
.dashboard-shell--premium td.fw-bold,
.dashboard-shell--premium .attention-row__side strong {
    font-weight: 700 !important;
}

/* Компактные бейджи */
.dashboard-shell--premium .badge,
.dashboard-shell--premium .risk-badge,
.dashboard-shell--premium .source-chip {
    min-height: 20px;
    padding: 3px 7px;
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.1;
}

/* Источники в таблицах */
.dashboard-shell--premium .source-chip {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Меньше воздуха в карточках */
.dashboard-shell--premium .ops-card .card-header,
.dashboard-shell--premium .sync-card__head {
    padding: 13px 16px;
}

.dashboard-shell--premium .ops-card .card-body {
    padding: 14px 16px;
}

.dashboard-shell--premium .ops-title {
    font-size: .94rem;
    font-weight: 720;
    letter-spacing: -.01em;
}

.dashboard-shell--premium .ops-subtitle {
    margin-top: 2px;
    font-size: .76rem;
    line-height: 1.35;
}

.dashboard-shell--premium .ops-kicker {
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .08em;
}

/* Компактные строки "Требует внимания" */
.dashboard-shell--premium .attention-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 14px;
}

.dashboard-shell--premium .attention-row__title {
    font-size: .84rem;
    font-weight: 580;
    line-height: 1.28;
}

.dashboard-shell--premium .attention-row__meta {
    margin-top: 5px;
    gap: 6px;
    font-size: .72rem;
    line-height: 1.2;
}

.dashboard-shell--premium .attention-row__metrics {
    gap: 4px;
    margin-top: 5px;
}

.dashboard-shell--premium .attention-metric {
    min-height: 20px;
    padding: 2px 6px;
    font-size: .62rem;
    font-weight: 700;
}

.dashboard-shell--premium .attention-row__side {
    gap: 5px;
}

.dashboard-shell--premium .attention-urgency {
    min-height: 20px;
    padding: 2px 6px;
    font-size: .58rem;
    letter-spacing: .02em;
}

.dashboard-shell--premium .attention-row__side strong {
    font-size: .9rem;
}

/* Компактные списки сигналов */
.dashboard-shell--premium .signal-card {
    gap: 9px;
    padding: 10px 14px;
}

.dashboard-shell--premium .signal-card__body strong {
    font-size: .82rem;
    font-weight: 560;
    line-height: 1.28;
}

.dashboard-shell--premium .signal-card__body small {
    margin-top: 4px;
    font-size: .72rem;
    line-height: 1.22;
}

.dashboard-shell--premium .signal-card__mark {
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

/* Компактный блок синхронных волн */
.dashboard-shell--premium .sync-card__count {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.05rem;
}

.dashboard-shell--premium .sync-card__chart {
    height: 118px;
    padding: 10px 14px 2px;
}

.dashboard-shell--premium .sync-item {
    gap: 3px;
    padding: 9px 14px;
}

.dashboard-shell--premium .sync-item__text {
    font-size: .8rem;
    font-weight: 560;
    line-height: 1.25;
}

.dashboard-shell--premium .sync-item__meta {
    font-size: .7rem;
}

/* Компактные блоки влияния */
.dashboard-shell--premium .influence-item {
    padding: 9px 14px;
}

.dashboard-shell--premium .influence-item span:first-child {
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Компактные тренд-карточки */
.dashboard-shell--premium .trend-card {
    gap: 5px;
    padding: 10px 14px;
}

.dashboard-shell--premium .cluster-board__section-head {
    gap: 2px;
    padding: 8px 11px;
}

.dashboard-shell--premium .cluster-board__section-head strong {
    font-size: .74rem;
    line-height: 1.18;
}

.dashboard-shell--premium .cluster-board__section-head span {
    font-size: .64rem;
    line-height: 1.18;
}

.dashboard-shell--premium .trend-card__text {
    font-size: .82rem;
    font-weight: 560;
    line-height: 1.28;
}

.dashboard-shell--premium .trend-card__meta {
    gap: 6px;
    font-size: .7rem;
}

/* Компактные кластеры */
.dashboard-shell--premium .cluster-pill {
    gap: 3px;
    padding: 10px 14px;
}

.dashboard-shell--premium .cluster-pill strong {
    font-size: .82rem;
    font-weight: 560;
    line-height: 1.28;
}

.dashboard-shell--premium .cluster-pill small {
    font-size: .72rem;
    line-height: 1.22;
}

/* Компактная AI-сводка */
.dashboard-shell--premium .ai-brief-card--wide {
    padding: 15px 16px;
    gap: 14px;
}

.dashboard-shell--premium .ai-badge {
    padding: 4px 8px;
    font-size: .68rem;
    font-weight: 720;
}

.dashboard-shell--premium .ai-summary {
    padding: 10px 12px;
    font-size: .82rem;
    line-height: 1.38;
}

/* Графики немного ниже по высоте */
.dashboard-shell--premium .chart-card-body {
    min-height: 260px;
    padding: 12px;
}

.dashboard-shell--premium .chart-card-body-small {
    min-height: 230px;
}

.dashboard-shell--premium .chart-card-body-medium {
    min-height: 260px;
}

.dashboard-shell--premium .chart-card-body-large {
    min-height: 310px;
}

/* Метрики тоже чуть компактнее */
.dashboard-shell--premium .metric-card {
    min-height: 118px;
    padding: 14px 15px;
}

.dashboard-shell--premium .metric-label {
    font-size: .66rem;
    font-weight: 750;
}

.dashboard-shell--premium .metric-value {
    margin-top: 10px;
    font-size: clamp(1.35rem, 2vw, 1.78rem);
}

.dashboard-shell--premium .metric-value--compact {
    font-size: clamp(1.08rem, 1.55vw, 1.42rem);
}

.dashboard-shell--premium .metric-caption {
    margin-top: 7px;
    font-size: .74rem;
    line-height: 1.25;
}

/* Более плотные пустые состояния */
.dashboard-shell--premium .empty-state {
    padding: 14px 12px;
    font-size: .78rem;
}

.dashboard-shell--premium .empty-state--small {
    padding: 10px 12px;
    font-size: .74rem;
}

/* Мобильная плотность */
@media (max-width: 767px) {
    .dashboard-shell--premium .table th,
    .dashboard-shell--premium .table td {
        padding: .38rem .48rem;
    }

    .dashboard-shell--premium .attention-row,
    .dashboard-shell--premium .signal-card,
    .dashboard-shell--premium .sync-item,
    .dashboard-shell--premium .trend-card,
    .dashboard-shell--premium .cluster-pill {
        padding: 9px 12px;
    }

    .dashboard-shell--premium .signal-card--editorial-item {
        grid-template-columns: 8px minmax(0, 1fr);
        gap: 8px;
    }

    .dashboard-shell--premium .signal-card__title-link {
        font-size: .82rem;
        font-weight: 500;
        line-height: 1.28;
    }

    .dashboard-shell--premium .signal-card__body small,
    .dashboard-shell--premium .signal-card__reason {
        font-size: .68rem;
        line-height: 1.25;
    }

    .dashboard-shell--premium .signal-card__actions {
        margin-top: 6px;
    }

    .dashboard-shell--premium .ops-help {
        margin-left: 0;
        margin-top: 5px;
        white-space: normal;
    }

    .dashboard-shell--premium .attention-row__metrics {
        gap: 4px;
    }

    .dashboard-shell--premium .attention-metric {
        max-width: 100%;
        white-space: normal;
    }

    .dashboard-shell--premium .attention-urgency {
        justify-self: start;
    }

    .dashboard-shell--premium .editorial-cluster-link {
        width: 100%;
        min-height: 26px;
        justify-content: center;
        padding: 5px 8px;
        border-radius: 7px;
        font-size: .66rem;
        line-height: 1.18;
        text-align: center;
        white-space: normal;
    }

    .dashboard-shell--premium .card-header--telegram-rating {
        align-items: stretch;
    }

    .dashboard-shell--premium .card-header--telegram-rating .btn {
        width: 100%;
    }

    .dashboard-shell--premium .telegram-rating-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shell--premium .telegram-rating-summary div {
        padding: 9px 11px;
    }

    .dashboard-shell--premium .telegram-rating-summary div:nth-child(2n) {
        border-right: 0;
    }

    .dashboard-shell--premium .telegram-rank-card {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 12px;
    }

    .dashboard-shell--premium .telegram-rank-card__body strong {
        font-size: .8rem;
        line-height: 1.25;
    }

    .dashboard-shell--premium .telegram-rank-card__body small,
    .dashboard-shell--premium .telegram-rank-card__metrics span {
        font-size: .64rem;
    }

    .dashboard-shell--premium .metric-card {
        min-height: 108px;
    }
}

/* Compact operations dashboard pass */
.dashboard-shell--premium {
    gap: 0;
}

.dashboard-shell--premium .mb-4 {
    margin-bottom: .85rem !important;
}

.dashboard-shell--premium .dashboard-hero--command {
    padding: 18px 20px;
    border-radius: 20px;
}

.dashboard-shell--premium .dashboard-hero__main {
    gap: 16px;
}

.dashboard-shell--premium .dashboard-hero-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    letter-spacing: -.025em;
}

.dashboard-shell--premium .dashboard-hero-subtitle {
    max-width: 780px;
    font-size: .86rem;
    line-height: 1.42;
}

.dashboard-shell--premium .dashboard-status-pill {
    margin-bottom: .45rem !important;
    padding: 5px 9px;
    font-size: .72rem;
}

.dashboard-shell--premium .dashboard-action-btn {
    padding: 6px 11px;
    font-size: .78rem;
}

.dashboard-shell--premium .dashboard-hero__meta {
    margin-top: .8rem !important;
    gap: 8px;
}

.dashboard-shell--premium .dashboard-hero__meta-item {
    padding: 9px 11px;
    border-radius: 13px;
}

.dashboard-shell--premium .dashboard-hero__meta-item span {
    margin-bottom: 3px;
    font-size: .6rem;
}

.dashboard-shell--premium .dashboard-hero__meta-item strong {
    font-size: .76rem;
    line-height: 1.25;
}

.dashboard-shell--premium .dashboard-search-panel {
    padding: 9px 10px;
    border-radius: 18px;
}

.dashboard-shell--premium .dashboard-search-form {
    grid-template-columns: 34px minmax(220px, 1fr) auto;
    gap: 8px;
}

.dashboard-shell--premium .dashboard-search-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 1rem;
}

.dashboard-shell--premium .dashboard-search-input {
    min-height: 36px;
    border-radius: 11px;
    font-size: .82rem;
}

.dashboard-shell--premium .dashboard-search-actions {
    gap: 6px;
}

.dashboard-shell--premium .dashboard-search-actions .btn {
    padding: 5px 9px;
    font-size: .76rem;
}

.dashboard-shell--premium .metric-grid,
.dashboard-shell--premium .dashboard-grid {
    gap: 10px;
}

.dashboard-shell--premium .metric-card {
    min-height: 92px;
    padding: 10px 12px;
    border-radius: 16px;
}

.dashboard-shell--premium .metric-icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    font-size: .62rem;
}

.dashboard-shell--premium .metric-label {
    font-size: .6rem;
    letter-spacing: .045em;
}

.dashboard-shell--premium .metric-value {
    margin-top: 7px;
    font-size: clamp(1.18rem, 1.8vw, 1.55rem);
    letter-spacing: -.025em;
}

.dashboard-shell--premium .metric-value--compact {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.dashboard-shell--premium .metric-caption {
    margin-top: 5px;
    font-size: .68rem;
    line-height: 1.18;
}

.dashboard-shell--premium .ops-card,
.dashboard-shell--premium .ai-brief-card,
.dashboard-shell--premium .sync-card {
    border-radius: 16px;
}

.dashboard-shell--premium .ops-card .card-header,
.dashboard-shell--premium .sync-card__head {
    padding: 10px 12px;
}

.dashboard-shell--premium .ops-card .card-body {
    padding: 10px 12px;
}

.dashboard-shell--premium .ops-kicker {
    margin-bottom: 2px;
    font-size: .56rem;
    letter-spacing: .065em;
}

.dashboard-shell--premium .ops-title {
    font-size: .84rem;
    line-height: 1.15;
}

.dashboard-shell--premium .ops-subtitle {
    margin-top: 2px;
    font-size: .68rem;
    line-height: 1.25;
}

.dashboard-shell--premium .attention-row,
.dashboard-shell--premium .signal-card,
.dashboard-shell--premium .trend-card,
.dashboard-shell--premium .cluster-pill {
    padding: 8px 11px;
}

.dashboard-shell--premium .attention-row {
    gap: 10px;
}

.dashboard-shell--premium .attention-row__title,
.dashboard-shell--premium .signal-card__body strong,
.dashboard-shell--premium .trend-card__text,
.dashboard-shell--premium .cluster-pill strong {
    font-size: .76rem;
    line-height: 1.22;
}

.dashboard-shell--premium .attention-row__meta,
.dashboard-shell--premium .signal-card__body small,
.dashboard-shell--premium .trend-card__meta,
.dashboard-shell--premium .cluster-pill small {
    margin-top: 3px;
    font-size: .66rem;
    line-height: 1.18;
}

.dashboard-shell--premium .editorial-wave-badge {
    min-height: 16px;
    padding: 2px 6px;
    font-size: .58rem;
}

.dashboard-shell--premium .attention-row__side {
    gap: 4px;
}

.dashboard-shell--premium .attention-row__side strong {
    font-size: .8rem;
}

.dashboard-shell--premium .badge,
.dashboard-shell--premium .risk-badge,
.dashboard-shell--premium .source-chip {
    min-height: 18px;
    padding: 2px 6px;
    font-size: .62rem;
}

.dashboard-shell--premium .ai-brief-card--wide {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    padding: 11px 12px;
}

.dashboard-shell--premium .ai-badge {
    margin-bottom: .25rem !important;
    padding: 3px 7px;
    font-size: .62rem;
}

.dashboard-shell--premium .ai-summary {
    margin-top: .55rem !important;
    padding: 8px 10px;
    font-size: .74rem;
    line-height: 1.28;
}

.dashboard-shell--premium .ai-brief-card__right {
    gap: 7px;
}

.dashboard-shell--premium .chart-card-body {
    min-height: 190px;
    padding: 8px 10px;
}

.dashboard-shell--premium .chart-card-body-small {
    min-height: 180px;
}

.dashboard-shell--premium .chart-card-body-medium {
    min-height: 205px;
}

.dashboard-shell--premium .chart-card-body-large {
    min-height: 245px;
}

.dashboard-shell--premium .sync-card__count {
    min-width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: .9rem;
}

.dashboard-shell--premium .sync-card__chart {
    height: 92px;
    padding: 8px 10px 0;
}

.dashboard-shell--premium .sync-card__chart--sources {
    height: 128px;
    padding-top: 2px;
}

.dashboard-shell--premium .wave-actions {
    gap: 5px;
    padding: 0 11px 8px;
}

.dashboard-shell--premium .wave-actions .btn {
    min-height: 24px;
    padding: 2px 7px;
    font-size: .6rem;
}

.dashboard-shell--premium .wave-metrics {
    gap: 5px;
    padding: 0 11px 6px;
}

.dashboard-shell--premium .wave-metric {
    border-radius: 9px;
    padding: 6px 7px;
}

.dashboard-shell--premium .wave-metric span,
.dashboard-shell--premium .wave-metric small {
    font-size: .56rem;
}

.dashboard-shell--premium .wave-metric strong {
    font-size: .82rem;
}

.dashboard-shell--premium .sync-item,
.dashboard-shell--premium .influence-item {
    padding: 7px 11px;
}

.dashboard-shell--premium .sync-item__text,
.dashboard-shell--premium .influence-item span:first-child {
    font-size: .73rem;
    line-height: 1.2;
}

.dashboard-shell--premium .sync-item__meta {
    font-size: .62rem;
}

.dashboard-shell--premium .sync-item__actions {
    gap: 5px;
}

.dashboard-shell--premium .sync-item__actions .btn {
    min-height: 23px;
    padding: 2px 7px;
    font-size: .58rem;
}

.dashboard-shell--premium .table-responsive--compact {
    max-height: 330px;
}

.dashboard-shell--premium .table th,
.dashboard-shell--premium .table td {
    padding: .32rem .42rem;
}

.dashboard-shell--premium .table thead th {
    font-size: .6rem;
}

.dashboard-shell--premium .table tbody td {
    font-size: .72rem;
    line-height: 1.18;
}

.dashboard-shell--premium .signal-list--large {
    max-height: 390px;
}

.dashboard-shell--premium .influence-list {
    max-height: 310px;
}

.dashboard-shell--premium .empty-state {
    padding: 10px;
    font-size: .72rem;
}

@media (max-width: 1399px) {
    .dashboard-shell--premium .metric-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .dashboard-shell--premium .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-shell--premium .dashboard-hero__meta,
    .dashboard-shell--premium .dashboard-search-form {
        grid-template-columns: 1fr;
    }

    .dashboard-shell--premium .dashboard-search-icon {
        display: none;
    }

    .dashboard-shell--premium .ai-brief-card--wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-shell--premium .dashboard-hero--command {
        padding: 14px;
    }

    .dashboard-shell--premium .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shell--premium .metric-card {
        min-height: 86px;
    }

    .dashboard-shell--premium .chart-card-body,
    .dashboard-shell--premium .chart-card-body-small,
    .dashboard-shell--premium .chart-card-body-medium,
    .dashboard-shell--premium .chart-card-body-large {
        min-height: 210px;
    }
}

/* Three-column operations workspace */
@media (min-width: 1200px) {
    .dashboard-shell--premium {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        align-items: start;
        grid-auto-flow: row dense;
    }

    .dashboard-shell--premium > .dashboard-hero,
    .dashboard-shell--premium > .dashboard-day-brief,
    .dashboard-shell--premium > .dashboard-search-panel,
    .dashboard-shell--premium > .metric-grid {
        grid-column: 1 / -1;
    }

    .dashboard-shell--premium > .dashboard-grid {
        display: contents;
    }

    .dashboard-shell--premium > .dashboard-grid > *,
    .dashboard-shell--premium > .ai-brief-card:not(.dashboard-day-brief),
    .dashboard-shell--premium > .ops-card--clusters {
        min-width: 0;
        height: 100%;
        margin-bottom: 0 !important;
    }

    .dashboard-shell--premium .dashboard-grid--attention .ops-card--clusters {
        grid-column: auto;
    }

    .dashboard-shell--premium .sync-card {
        position: static;
    }

    .dashboard-shell--premium .ops-card--attention .card-header,
    .dashboard-shell--premium .ops-card--risk .card-header {
        align-items: flex-start !important;
    }

    .dashboard-shell--premium .ops-card--attention .card-header .btn {
        margin-top: 4px;
    }

    .dashboard-shell--premium .ai-brief-card--wide {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .dashboard-shell--premium .ai-brief-card__right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
    }

    .dashboard-shell--premium .chart-card-body,
    .dashboard-shell--premium .chart-card-body-small,
    .dashboard-shell--premium .chart-card-body-medium {
        min-height: 190px;
    }

    .dashboard-shell--premium .chart-card-body-large {
        min-height: 230px;
    }

    .dashboard-shell--premium .table-responsive--compact {
        max-height: 285px;
    }

    .dashboard-shell--premium .signal-list--large {
        max-height: 340px;
    }

    .dashboard-shell--premium .influence-list {
        max-height: 280px;
    }

    .dashboard-shell--premium .cluster-board {
        grid-template-columns: 1fr;
    }

    .dashboard-shell--premium .cluster-board__trends {
        border-right: 0;
        border-bottom: 1px solid var(--mt-border);
    }
}
